public static final class Gnmi.Subscription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder> implements Gnmi.SubscriptionOrBuilder
Subscription is a single request within a SubscriptionList. The path specified is interpreted (along with the prefix) as the elements of the data tree that the client is subscribing to. The mode determines how the target should trigger updates to be sent. Reference: gNMI Specification Section 3.5.1.3Protobuf type
gnmi.Subscription| Modifier and Type | Method and Description |
|---|---|
Gnmi.Subscription.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Gnmi.Subscription |
build() |
Gnmi.Subscription |
buildPartial() |
Gnmi.Subscription.Builder |
clear() |
Gnmi.Subscription.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Gnmi.Subscription.Builder |
clearHeartbeatInterval()
Specifies the maximum allowable silent period in nanoseconds when
suppress_redundant is in use.
|
Gnmi.Subscription.Builder |
clearMode()
Subscription mode to be used.
|
Gnmi.Subscription.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Gnmi.Subscription.Builder |
clearPath()
The data tree path.
|
Gnmi.Subscription.Builder |
clearSampleInterval()
ns between samples in SAMPLE mode.
|
Gnmi.Subscription.Builder |
clearSuppressRedundant()
Indicates whether values that have not changed should be sent in a SAMPLE
subscription.
|
Gnmi.Subscription.Builder |
clone() |
Gnmi.Subscription |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getHeartbeatInterval()
Specifies the maximum allowable silent period in nanoseconds when
suppress_redundant is in use.
|
Gnmi.SubscriptionMode |
getMode()
Subscription mode to be used.
|
int |
getModeValue()
Subscription mode to be used.
|
Gnmi.Path |
getPath()
The data tree path.
|
Gnmi.Path.Builder |
getPathBuilder()
The data tree path.
|
Gnmi.PathOrBuilder |
getPathOrBuilder()
The data tree path.
|
long |
getSampleInterval()
ns between samples in SAMPLE mode.
|
boolean |
getSuppressRedundant()
Indicates whether values that have not changed should be sent in a SAMPLE
subscription.
|
boolean |
hasPath()
The data tree path.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Gnmi.Subscription.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Gnmi.Subscription.Builder |
mergeFrom(Gnmi.Subscription other) |
Gnmi.Subscription.Builder |
mergeFrom(com.google.protobuf.Message other) |
Gnmi.Subscription.Builder |
mergePath(Gnmi.Path value)
The data tree path.
|
Gnmi.Subscription.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Gnmi.Subscription.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Gnmi.Subscription.Builder |
setHeartbeatInterval(long value)
Specifies the maximum allowable silent period in nanoseconds when
suppress_redundant is in use.
|
Gnmi.Subscription.Builder |
setMode(Gnmi.SubscriptionMode value)
Subscription mode to be used.
|
Gnmi.Subscription.Builder |
setModeValue(int value)
Subscription mode to be used.
|
Gnmi.Subscription.Builder |
setPath(Gnmi.Path.Builder builderForValue)
The data tree path.
|
Gnmi.Subscription.Builder |
setPath(Gnmi.Path value)
The data tree path.
|
Gnmi.Subscription.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Gnmi.Subscription.Builder |
setSampleInterval(long value)
ns between samples in SAMPLE mode.
|
Gnmi.Subscription.Builder |
setSuppressRedundant(boolean value)
Indicates whether values that have not changed should be sent in a SAMPLE
subscription.
|
Gnmi.Subscription.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>public Gnmi.Subscription.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>public Gnmi.Subscription getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Gnmi.Subscription build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Gnmi.Subscription buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Gnmi.Subscription.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>public Gnmi.Subscription.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>public Gnmi.Subscription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>public Gnmi.Subscription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>public Gnmi.Subscription.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>public Gnmi.Subscription.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>public Gnmi.Subscription.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Gnmi.Subscription.Builder>public Gnmi.Subscription.Builder mergeFrom(Gnmi.Subscription other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>public Gnmi.Subscription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Gnmi.Subscription.Builder>IOExceptionpublic boolean hasPath()
The data tree path.
.gnmi.Path path = 1;hasPath in interface Gnmi.SubscriptionOrBuilderpublic Gnmi.Path getPath()
The data tree path.
.gnmi.Path path = 1;getPath in interface Gnmi.SubscriptionOrBuilderpublic Gnmi.Subscription.Builder setPath(Gnmi.Path value)
The data tree path.
.gnmi.Path path = 1;public Gnmi.Subscription.Builder setPath(Gnmi.Path.Builder builderForValue)
The data tree path.
.gnmi.Path path = 1;public Gnmi.Subscription.Builder mergePath(Gnmi.Path value)
The data tree path.
.gnmi.Path path = 1;public Gnmi.Subscription.Builder clearPath()
The data tree path.
.gnmi.Path path = 1;public Gnmi.Path.Builder getPathBuilder()
The data tree path.
.gnmi.Path path = 1;public Gnmi.PathOrBuilder getPathOrBuilder()
The data tree path.
.gnmi.Path path = 1;getPathOrBuilder in interface Gnmi.SubscriptionOrBuilderpublic int getModeValue()
Subscription mode to be used.
.gnmi.SubscriptionMode mode = 2;getModeValue in interface Gnmi.SubscriptionOrBuilderpublic Gnmi.Subscription.Builder setModeValue(int value)
Subscription mode to be used.
.gnmi.SubscriptionMode mode = 2;public Gnmi.SubscriptionMode getMode()
Subscription mode to be used.
.gnmi.SubscriptionMode mode = 2;getMode in interface Gnmi.SubscriptionOrBuilderpublic Gnmi.Subscription.Builder setMode(Gnmi.SubscriptionMode value)
Subscription mode to be used.
.gnmi.SubscriptionMode mode = 2;public Gnmi.Subscription.Builder clearMode()
Subscription mode to be used.
.gnmi.SubscriptionMode mode = 2;public long getSampleInterval()
ns between samples in SAMPLE mode.
uint64 sample_interval = 3;getSampleInterval in interface Gnmi.SubscriptionOrBuilderpublic Gnmi.Subscription.Builder setSampleInterval(long value)
ns between samples in SAMPLE mode.
uint64 sample_interval = 3;public Gnmi.Subscription.Builder clearSampleInterval()
ns between samples in SAMPLE mode.
uint64 sample_interval = 3;public boolean getSuppressRedundant()
Indicates whether values that have not changed should be sent in a SAMPLE subscription.
bool suppress_redundant = 4;getSuppressRedundant in interface Gnmi.SubscriptionOrBuilderpublic Gnmi.Subscription.Builder setSuppressRedundant(boolean value)
Indicates whether values that have not changed should be sent in a SAMPLE subscription.
bool suppress_redundant = 4;public Gnmi.Subscription.Builder clearSuppressRedundant()
Indicates whether values that have not changed should be sent in a SAMPLE subscription.
bool suppress_redundant = 4;public long getHeartbeatInterval()
Specifies the maximum allowable silent period in nanoseconds when suppress_redundant is in use. The target should send a value at least once in the period specified.
uint64 heartbeat_interval = 5;getHeartbeatInterval in interface Gnmi.SubscriptionOrBuilderpublic Gnmi.Subscription.Builder setHeartbeatInterval(long value)
Specifies the maximum allowable silent period in nanoseconds when suppress_redundant is in use. The target should send a value at least once in the period specified.
uint64 heartbeat_interval = 5;public Gnmi.Subscription.Builder clearHeartbeatInterval()
Specifies the maximum allowable silent period in nanoseconds when suppress_redundant is in use. The target should send a value at least once in the period specified.
uint64 heartbeat_interval = 5;public final Gnmi.Subscription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>public final Gnmi.Subscription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>Copyright © 2022. All rights reserved.