Class Gnmi.SubscribeResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SubscribeResponse.Builder>
-
- org.opennms.features.openconfig.proto.gnmi.Gnmi.SubscribeResponse.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.SubscribeResponseOrBuilder
- Enclosing class:
- Gnmi.SubscribeResponse
public static final class Gnmi.SubscribeResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SubscribeResponse.Builder> implements Gnmi.SubscribeResponseOrBuilder
SubscribeResponse is the message used by the target within a Subscribe RPC. The target includes a Notification message which is used to transmit values of the path(s) that are associated with the subscription. The same message is to indicate that the target has sent all data values once (is synchronized). Reference: gNMI Specification Section 3.5.1.4
Protobuf typegnmi.SubscribeResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Gnmi.SubscribeResponse.Builder
addAllExtension(java.lang.Iterable<? extends GnmiExt.Extension> values)
Extension messages associated with the SubscribeResponse.Gnmi.SubscribeResponse.Builder
addExtension(int index, GnmiExt.Extension value)
Extension messages associated with the SubscribeResponse.Gnmi.SubscribeResponse.Builder
addExtension(int index, GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the SubscribeResponse.Gnmi.SubscribeResponse.Builder
addExtension(GnmiExt.Extension value)
Extension messages associated with the SubscribeResponse.Gnmi.SubscribeResponse.Builder
addExtension(GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the SubscribeResponse.GnmiExt.Extension.Builder
addExtensionBuilder()
Extension messages associated with the SubscribeResponse.GnmiExt.Extension.Builder
addExtensionBuilder(int index)
Extension messages associated with the SubscribeResponse.Gnmi.SubscribeResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Gnmi.SubscribeResponse
build()
Gnmi.SubscribeResponse
buildPartial()
Gnmi.SubscribeResponse.Builder
clear()
Gnmi.SubscribeResponse.Builder
clearError()
Deprecated.Gnmi.SubscribeResponse.Builder
clearExtension()
Extension messages associated with the SubscribeResponse.Gnmi.SubscribeResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Gnmi.SubscribeResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Gnmi.SubscribeResponse.Builder
clearResponse()
Gnmi.SubscribeResponse.Builder
clearSyncResponse()
Indicate target has sent all values associated with the subscription at least once.Gnmi.SubscribeResponse.Builder
clearUpdate()
Changed or sampled value for a path.Gnmi.SubscribeResponse.Builder
clone()
Gnmi.SubscribeResponse
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 SubscribeResponse.GnmiExt.Extension.Builder
getExtensionBuilder(int index)
Extension messages associated with the SubscribeResponse.java.util.List<GnmiExt.Extension.Builder>
getExtensionBuilderList()
Extension messages associated with the SubscribeResponse.int
getExtensionCount()
Extension messages associated with the SubscribeResponse.java.util.List<GnmiExt.Extension>
getExtensionList()
Extension messages associated with the SubscribeResponse.GnmiExt.ExtensionOrBuilder
getExtensionOrBuilder(int index)
Extension messages associated with the SubscribeResponse.java.util.List<? extends GnmiExt.ExtensionOrBuilder>
getExtensionOrBuilderList()
Extension messages associated with the SubscribeResponse.Gnmi.SubscribeResponse.ResponseCase
getResponseCase()
boolean
getSyncResponse()
Indicate target has sent all values associated with the subscription at least once.Gnmi.Notification
getUpdate()
Changed or sampled value for a path.Gnmi.Notification.Builder
getUpdateBuilder()
Changed or sampled value for a path.Gnmi.NotificationOrBuilder
getUpdateOrBuilder()
Changed or sampled value for a path.boolean
hasError()
Deprecated.boolean
hasUpdate()
Changed or sampled value for a path.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Gnmi.SubscribeResponse.Builder
mergeError(Gnmi.Error value)
Deprecated.Gnmi.SubscribeResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Gnmi.SubscribeResponse.Builder
mergeFrom(com.google.protobuf.Message other)
Gnmi.SubscribeResponse.Builder
mergeFrom(Gnmi.SubscribeResponse other)
Gnmi.SubscribeResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Gnmi.SubscribeResponse.Builder
mergeUpdate(Gnmi.Notification value)
Changed or sampled value for a path.Gnmi.SubscribeResponse.Builder
removeExtension(int index)
Extension messages associated with the SubscribeResponse.Gnmi.SubscribeResponse.Builder
setError(Gnmi.Error value)
Deprecated.Gnmi.SubscribeResponse.Builder
setError(Gnmi.Error.Builder builderForValue)
Deprecated.Gnmi.SubscribeResponse.Builder
setExtension(int index, GnmiExt.Extension value)
Extension messages associated with the SubscribeResponse.Gnmi.SubscribeResponse.Builder
setExtension(int index, GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the SubscribeResponse.Gnmi.SubscribeResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Gnmi.SubscribeResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Gnmi.SubscribeResponse.Builder
setSyncResponse(boolean value)
Indicate target has sent all values associated with the subscription at least once.Gnmi.SubscribeResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Gnmi.SubscribeResponse.Builder
setUpdate(Gnmi.Notification value)
Changed or sampled value for a path.Gnmi.SubscribeResponse.Builder
setUpdate(Gnmi.Notification.Builder builderForValue)
Changed or sampled value for a path.-
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.SubscribeResponse.Builder>
-
clear
public Gnmi.SubscribeResponse.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.SubscribeResponse.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.SubscribeResponse.Builder>
-
getDefaultInstanceForType
public Gnmi.SubscribeResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Gnmi.SubscribeResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Gnmi.SubscribeResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Gnmi.SubscribeResponse.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.SubscribeResponse.Builder>
-
setField
public Gnmi.SubscribeResponse.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.SubscribeResponse.Builder>
-
clearField
public Gnmi.SubscribeResponse.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.SubscribeResponse.Builder>
-
clearOneof
public Gnmi.SubscribeResponse.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.SubscribeResponse.Builder>
-
setRepeatedField
public Gnmi.SubscribeResponse.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.SubscribeResponse.Builder>
-
addRepeatedField
public Gnmi.SubscribeResponse.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.SubscribeResponse.Builder>
-
mergeFrom
public Gnmi.SubscribeResponse.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.SubscribeResponse.Builder>
-
mergeFrom
public Gnmi.SubscribeResponse.Builder mergeFrom(Gnmi.SubscribeResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SubscribeResponse.Builder>
-
mergeFrom
public Gnmi.SubscribeResponse.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.SubscribeResponse.Builder>
- Throws:
java.io.IOException
-
getResponseCase
public Gnmi.SubscribeResponse.ResponseCase getResponseCase()
- Specified by:
getResponseCase
in interfaceGnmi.SubscribeResponseOrBuilder
-
clearResponse
public Gnmi.SubscribeResponse.Builder clearResponse()
-
hasUpdate
public boolean hasUpdate()
Changed or sampled value for a path.
.gnmi.Notification update = 1;
- Specified by:
hasUpdate
in interfaceGnmi.SubscribeResponseOrBuilder
-
getUpdate
public Gnmi.Notification getUpdate()
Changed or sampled value for a path.
.gnmi.Notification update = 1;
- Specified by:
getUpdate
in interfaceGnmi.SubscribeResponseOrBuilder
-
setUpdate
public Gnmi.SubscribeResponse.Builder setUpdate(Gnmi.Notification value)
Changed or sampled value for a path.
.gnmi.Notification update = 1;
-
setUpdate
public Gnmi.SubscribeResponse.Builder setUpdate(Gnmi.Notification.Builder builderForValue)
Changed or sampled value for a path.
.gnmi.Notification update = 1;
-
mergeUpdate
public Gnmi.SubscribeResponse.Builder mergeUpdate(Gnmi.Notification value)
Changed or sampled value for a path.
.gnmi.Notification update = 1;
-
clearUpdate
public Gnmi.SubscribeResponse.Builder clearUpdate()
Changed or sampled value for a path.
.gnmi.Notification update = 1;
-
getUpdateBuilder
public Gnmi.Notification.Builder getUpdateBuilder()
Changed or sampled value for a path.
.gnmi.Notification update = 1;
-
getUpdateOrBuilder
public Gnmi.NotificationOrBuilder getUpdateOrBuilder()
Changed or sampled value for a path.
.gnmi.Notification update = 1;
- Specified by:
getUpdateOrBuilder
in interfaceGnmi.SubscribeResponseOrBuilder
-
getSyncResponse
public boolean getSyncResponse()
Indicate target has sent all values associated with the subscription at least once.
bool sync_response = 3;
- Specified by:
getSyncResponse
in interfaceGnmi.SubscribeResponseOrBuilder
-
setSyncResponse
public Gnmi.SubscribeResponse.Builder setSyncResponse(boolean value)
Indicate target has sent all values associated with the subscription at least once.
bool sync_response = 3;
-
clearSyncResponse
public Gnmi.SubscribeResponse.Builder clearSyncResponse()
Indicate target has sent all values associated with the subscription at least once.
bool sync_response = 3;
-
hasError
@Deprecated public boolean hasError()
Deprecated.Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
.gnmi.Error error = 4 [deprecated = true];
- Specified by:
hasError
in interfaceGnmi.SubscribeResponseOrBuilder
-
getError
@Deprecated public Gnmi.Error getError()
Deprecated.Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
.gnmi.Error error = 4 [deprecated = true];
- Specified by:
getError
in interfaceGnmi.SubscribeResponseOrBuilder
-
setError
@Deprecated public Gnmi.SubscribeResponse.Builder setError(Gnmi.Error value)
Deprecated.Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
.gnmi.Error error = 4 [deprecated = true];
-
setError
@Deprecated public Gnmi.SubscribeResponse.Builder setError(Gnmi.Error.Builder builderForValue)
Deprecated.Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
.gnmi.Error error = 4 [deprecated = true];
-
mergeError
@Deprecated public Gnmi.SubscribeResponse.Builder mergeError(Gnmi.Error value)
Deprecated.Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
.gnmi.Error error = 4 [deprecated = true];
-
clearError
@Deprecated public Gnmi.SubscribeResponse.Builder clearError()
Deprecated.Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
.gnmi.Error error = 4 [deprecated = true];
-
getErrorBuilder
@Deprecated public Gnmi.Error.Builder getErrorBuilder()
Deprecated.Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
.gnmi.Error error = 4 [deprecated = true];
-
getErrorOrBuilder
@Deprecated public Gnmi.ErrorOrBuilder getErrorOrBuilder()
Deprecated.Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
.gnmi.Error error = 4 [deprecated = true];
- Specified by:
getErrorOrBuilder
in interfaceGnmi.SubscribeResponseOrBuilder
-
getExtensionList
public java.util.List<GnmiExt.Extension> getExtensionList()
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
- Specified by:
getExtensionList
in interfaceGnmi.SubscribeResponseOrBuilder
-
getExtensionCount
public int getExtensionCount()
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
- Specified by:
getExtensionCount
in interfaceGnmi.SubscribeResponseOrBuilder
-
getExtension
public GnmiExt.Extension getExtension(int index)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
- Specified by:
getExtension
in interfaceGnmi.SubscribeResponseOrBuilder
-
setExtension
public Gnmi.SubscribeResponse.Builder setExtension(int index, GnmiExt.Extension value)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
setExtension
public Gnmi.SubscribeResponse.Builder setExtension(int index, GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
addExtension
public Gnmi.SubscribeResponse.Builder addExtension(GnmiExt.Extension value)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
addExtension
public Gnmi.SubscribeResponse.Builder addExtension(int index, GnmiExt.Extension value)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
addExtension
public Gnmi.SubscribeResponse.Builder addExtension(GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
addExtension
public Gnmi.SubscribeResponse.Builder addExtension(int index, GnmiExt.Extension.Builder builderForValue)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
addAllExtension
public Gnmi.SubscribeResponse.Builder addAllExtension(java.lang.Iterable<? extends GnmiExt.Extension> values)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
clearExtension
public Gnmi.SubscribeResponse.Builder clearExtension()
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
removeExtension
public Gnmi.SubscribeResponse.Builder removeExtension(int index)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
getExtensionBuilder
public GnmiExt.Extension.Builder getExtensionBuilder(int index)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
getExtensionOrBuilder
public GnmiExt.ExtensionOrBuilder getExtensionOrBuilder(int index)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
- Specified by:
getExtensionOrBuilder
in interfaceGnmi.SubscribeResponseOrBuilder
-
getExtensionOrBuilderList
public java.util.List<? extends GnmiExt.ExtensionOrBuilder> getExtensionOrBuilderList()
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
- Specified by:
getExtensionOrBuilderList
in interfaceGnmi.SubscribeResponseOrBuilder
-
addExtensionBuilder
public GnmiExt.Extension.Builder addExtensionBuilder()
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
addExtensionBuilder
public GnmiExt.Extension.Builder addExtensionBuilder(int index)
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
getExtensionBuilderList
public java.util.List<GnmiExt.Extension.Builder> getExtensionBuilderList()
Extension messages associated with the SubscribeResponse. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;
-
setUnknownFields
public final Gnmi.SubscribeResponse.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.SubscribeResponse.Builder>
-
mergeUnknownFields
public final Gnmi.SubscribeResponse.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.SubscribeResponse.Builder>
-
-