Class Gnmi.GetResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
- org.opennms.features.openconfig.proto.gnmi.Gnmi.GetResponse.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,Gnmi.GetResponseOrBuilder
- Enclosing class:
- Gnmi.GetResponse
public static final class Gnmi.GetResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder> implements Gnmi.GetResponseOrBuilder
GetResponse is used by the target to respond to a GetRequest from a client. The set of Notifications corresponds to the data values that are requested by the client in the GetRequest. Reference: gNMI Specification Section 3.3.2
Protobuf typegnmi.GetResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Gnmi.GetResponse.Builder
addAllExtension(java.lang.Iterable<? extends GnmiExt.Extension> values)
Extension messages associated with the GetResponse.Gnmi.GetResponse.Builder
addAllNotification(java.lang.Iterable<? extends Gnmi.Notification> values)
Data values.Gnmi.GetResponse.Builder
addExtension(int index, GnmiExt.Extension value)
Extension messages associated with the GetResponse.Gnmi.GetResponse.Builder
addExtension(int index, GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the GetResponse.Gnmi.GetResponse.Builder
addExtension(GnmiExt.Extension value)
Extension messages associated with the GetResponse.Gnmi.GetResponse.Builder
addExtension(GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the GetResponse.GnmiExt.Extension.Builder
addExtensionBuilder()
Extension messages associated with the GetResponse.GnmiExt.Extension.Builder
addExtensionBuilder(int index)
Extension messages associated with the GetResponse.Gnmi.GetResponse.Builder
addNotification(int index, Gnmi.Notification value)
Data values.Gnmi.GetResponse.Builder
addNotification(int index, Gnmi.Notification.Builder builderForValue)
Data values.Gnmi.GetResponse.Builder
addNotification(Gnmi.Notification value)
Data values.Gnmi.GetResponse.Builder
addNotification(Gnmi.Notification.Builder builderForValue)
Data values.Gnmi.Notification.Builder
addNotificationBuilder()
Data values.Gnmi.Notification.Builder
addNotificationBuilder(int index)
Data values.Gnmi.GetResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Gnmi.GetResponse
build()
Gnmi.GetResponse
buildPartial()
Gnmi.GetResponse.Builder
clear()
Gnmi.GetResponse.Builder
clearError()
Deprecated.Gnmi.GetResponse.Builder
clearExtension()
Extension messages associated with the GetResponse.Gnmi.GetResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Gnmi.GetResponse.Builder
clearNotification()
Data values.Gnmi.GetResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Gnmi.GetResponse.Builder
clone()
Gnmi.GetResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Gnmi.Error
getError()
Deprecated.Gnmi.Error.Builder
getErrorBuilder()
Deprecated.Gnmi.ErrorOrBuilder
getErrorOrBuilder()
Deprecated.GnmiExt.Extension
getExtension(int index)
Extension messages associated with the GetResponse.GnmiExt.Extension.Builder
getExtensionBuilder(int index)
Extension messages associated with the GetResponse.java.util.List<GnmiExt.Extension.Builder>
getExtensionBuilderList()
Extension messages associated with the GetResponse.int
getExtensionCount()
Extension messages associated with the GetResponse.java.util.List<GnmiExt.Extension>
getExtensionList()
Extension messages associated with the GetResponse.GnmiExt.ExtensionOrBuilder
getExtensionOrBuilder(int index)
Extension messages associated with the GetResponse.java.util.List<? extends GnmiExt.ExtensionOrBuilder>
getExtensionOrBuilderList()
Extension messages associated with the GetResponse.Gnmi.Notification
getNotification(int index)
Data values.Gnmi.Notification.Builder
getNotificationBuilder(int index)
Data values.java.util.List<Gnmi.Notification.Builder>
getNotificationBuilderList()
Data values.int
getNotificationCount()
Data values.java.util.List<Gnmi.Notification>
getNotificationList()
Data values.Gnmi.NotificationOrBuilder
getNotificationOrBuilder(int index)
Data values.java.util.List<? extends Gnmi.NotificationOrBuilder>
getNotificationOrBuilderList()
Data values.boolean
hasError()
Deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Gnmi.GetResponse.Builder
mergeError(Gnmi.Error value)
Deprecated.Gnmi.GetResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Gnmi.GetResponse.Builder
mergeFrom(com.google.protobuf.Message other)
Gnmi.GetResponse.Builder
mergeFrom(Gnmi.GetResponse other)
Gnmi.GetResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Gnmi.GetResponse.Builder
removeExtension(int index)
Extension messages associated with the GetResponse.Gnmi.GetResponse.Builder
removeNotification(int index)
Data values.Gnmi.GetResponse.Builder
setError(Gnmi.Error value)
Deprecated.Gnmi.GetResponse.Builder
setError(Gnmi.Error.Builder builderForValue)
Deprecated.Gnmi.GetResponse.Builder
setExtension(int index, GnmiExt.Extension value)
Extension messages associated with the GetResponse.Gnmi.GetResponse.Builder
setExtension(int index, GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the GetResponse.Gnmi.GetResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Gnmi.GetResponse.Builder
setNotification(int index, Gnmi.Notification value)
Data values.Gnmi.GetResponse.Builder
setNotification(int index, Gnmi.Notification.Builder builderForValue)
Data values.Gnmi.GetResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Gnmi.GetResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
clear
public Gnmi.GetResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
getDefaultInstanceForType
public Gnmi.GetResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Gnmi.GetResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Gnmi.GetResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Gnmi.GetResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
setField
public Gnmi.GetResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
clearField
public Gnmi.GetResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
clearOneof
public Gnmi.GetResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
setRepeatedField
public Gnmi.GetResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
addRepeatedField
public Gnmi.GetResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
mergeFrom
public Gnmi.GetResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Gnmi.GetResponse.Builder>
-
mergeFrom
public Gnmi.GetResponse.Builder mergeFrom(Gnmi.GetResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
mergeFrom
public Gnmi.GetResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Gnmi.GetResponse.Builder>
- Throws:
java.io.IOException
-
getNotificationList
public java.util.List<Gnmi.Notification> getNotificationList()
Data values.
repeated .gnmi.Notification notification = 1;
- Specified by:
getNotificationList
in interfaceGnmi.GetResponseOrBuilder
-
getNotificationCount
public int getNotificationCount()
Data values.
repeated .gnmi.Notification notification = 1;
- Specified by:
getNotificationCount
in interfaceGnmi.GetResponseOrBuilder
-
getNotification
public Gnmi.Notification getNotification(int index)
Data values.
repeated .gnmi.Notification notification = 1;
- Specified by:
getNotification
in interfaceGnmi.GetResponseOrBuilder
-
setNotification
public Gnmi.GetResponse.Builder setNotification(int index, Gnmi.Notification value)
Data values.
repeated .gnmi.Notification notification = 1;
-
setNotification
public Gnmi.GetResponse.Builder setNotification(int index, Gnmi.Notification.Builder builderForValue)
Data values.
repeated .gnmi.Notification notification = 1;
-
addNotification
public Gnmi.GetResponse.Builder addNotification(Gnmi.Notification value)
Data values.
repeated .gnmi.Notification notification = 1;
-
addNotification
public Gnmi.GetResponse.Builder addNotification(int index, Gnmi.Notification value)
Data values.
repeated .gnmi.Notification notification = 1;
-
addNotification
public Gnmi.GetResponse.Builder addNotification(Gnmi.Notification.Builder builderForValue)
Data values.
repeated .gnmi.Notification notification = 1;
-
addNotification
public Gnmi.GetResponse.Builder addNotification(int index, Gnmi.Notification.Builder builderForValue)
Data values.
repeated .gnmi.Notification notification = 1;
-
addAllNotification
public Gnmi.GetResponse.Builder addAllNotification(java.lang.Iterable<? extends Gnmi.Notification> values)
Data values.
repeated .gnmi.Notification notification = 1;
-
clearNotification
public Gnmi.GetResponse.Builder clearNotification()
Data values.
repeated .gnmi.Notification notification = 1;
-
removeNotification
public Gnmi.GetResponse.Builder removeNotification(int index)
Data values.
repeated .gnmi.Notification notification = 1;
-
getNotificationBuilder
public Gnmi.Notification.Builder getNotificationBuilder(int index)
Data values.
repeated .gnmi.Notification notification = 1;
-
getNotificationOrBuilder
public Gnmi.NotificationOrBuilder getNotificationOrBuilder(int index)
Data values.
repeated .gnmi.Notification notification = 1;
- Specified by:
getNotificationOrBuilder
in interfaceGnmi.GetResponseOrBuilder
-
getNotificationOrBuilderList
public java.util.List<? extends Gnmi.NotificationOrBuilder> getNotificationOrBuilderList()
Data values.
repeated .gnmi.Notification notification = 1;
- Specified by:
getNotificationOrBuilderList
in interfaceGnmi.GetResponseOrBuilder
-
addNotificationBuilder
public Gnmi.Notification.Builder addNotificationBuilder()
Data values.
repeated .gnmi.Notification notification = 1;
-
addNotificationBuilder
public Gnmi.Notification.Builder addNotificationBuilder(int index)
Data values.
repeated .gnmi.Notification notification = 1;
-
getNotificationBuilderList
public java.util.List<Gnmi.Notification.Builder> getNotificationBuilderList()
Data values.
repeated .gnmi.Notification notification = 1;
-
hasError
@Deprecated public boolean hasError()
Deprecated.Errors that occurred in the Get.
.gnmi.Error error = 2 [deprecated = true];
- Specified by:
hasError
in interfaceGnmi.GetResponseOrBuilder
-
getError
@Deprecated public Gnmi.Error getError()
Deprecated.Errors that occurred in the Get.
.gnmi.Error error = 2 [deprecated = true];
- Specified by:
getError
in interfaceGnmi.GetResponseOrBuilder
-
setError
@Deprecated public Gnmi.GetResponse.Builder setError(Gnmi.Error value)
Deprecated.Errors that occurred in the Get.
.gnmi.Error error = 2 [deprecated = true];
-
setError
@Deprecated public Gnmi.GetResponse.Builder setError(Gnmi.Error.Builder builderForValue)
Deprecated.Errors that occurred in the Get.
.gnmi.Error error = 2 [deprecated = true];
-
mergeError
@Deprecated public Gnmi.GetResponse.Builder mergeError(Gnmi.Error value)
Deprecated.Errors that occurred in the Get.
.gnmi.Error error = 2 [deprecated = true];
-
clearError
@Deprecated public Gnmi.GetResponse.Builder clearError()
Deprecated.Errors that occurred in the Get.
.gnmi.Error error = 2 [deprecated = true];
-
getErrorBuilder
@Deprecated public Gnmi.Error.Builder getErrorBuilder()
Deprecated.Errors that occurred in the Get.
.gnmi.Error error = 2 [deprecated = true];
-
getErrorOrBuilder
@Deprecated public Gnmi.ErrorOrBuilder getErrorOrBuilder()
Deprecated.Errors that occurred in the Get.
.gnmi.Error error = 2 [deprecated = true];
- Specified by:
getErrorOrBuilder
in interfaceGnmi.GetResponseOrBuilder
-
getExtensionList
public java.util.List<GnmiExt.Extension> getExtensionList()
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
- Specified by:
getExtensionList
in interfaceGnmi.GetResponseOrBuilder
-
getExtensionCount
public int getExtensionCount()
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
- Specified by:
getExtensionCount
in interfaceGnmi.GetResponseOrBuilder
-
getExtension
public GnmiExt.Extension getExtension(int index)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
- Specified by:
getExtension
in interfaceGnmi.GetResponseOrBuilder
-
setExtension
public Gnmi.GetResponse.Builder setExtension(int index, GnmiExt.Extension value)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
setExtension
public Gnmi.GetResponse.Builder setExtension(int index, GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
addExtension
public Gnmi.GetResponse.Builder addExtension(GnmiExt.Extension value)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
addExtension
public Gnmi.GetResponse.Builder addExtension(int index, GnmiExt.Extension value)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
addExtension
public Gnmi.GetResponse.Builder addExtension(GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
addExtension
public Gnmi.GetResponse.Builder addExtension(int index, GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
addAllExtension
public Gnmi.GetResponse.Builder addAllExtension(java.lang.Iterable<? extends GnmiExt.Extension> values)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
clearExtension
public Gnmi.GetResponse.Builder clearExtension()
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
removeExtension
public Gnmi.GetResponse.Builder removeExtension(int index)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
getExtensionBuilder
public GnmiExt.Extension.Builder getExtensionBuilder(int index)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
getExtensionOrBuilder
public GnmiExt.ExtensionOrBuilder getExtensionOrBuilder(int index)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
- Specified by:
getExtensionOrBuilder
in interfaceGnmi.GetResponseOrBuilder
-
getExtensionOrBuilderList
public java.util.List<? extends GnmiExt.ExtensionOrBuilder> getExtensionOrBuilderList()
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
- Specified by:
getExtensionOrBuilderList
in interfaceGnmi.GetResponseOrBuilder
-
addExtensionBuilder
public GnmiExt.Extension.Builder addExtensionBuilder()
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
addExtensionBuilder
public GnmiExt.Extension.Builder addExtensionBuilder(int index)
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
getExtensionBuilderList
public java.util.List<GnmiExt.Extension.Builder> getExtensionBuilderList()
Extension messages associated with the GetResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 3;
-
setUnknownFields
public final Gnmi.GetResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
mergeUnknownFields
public final Gnmi.GetResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
-
-