public static final class Subscription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder> implements 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 |
|---|---|
Subscription.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Subscription |
build() |
Subscription |
buildPartial() |
Subscription.Builder |
clear() |
Subscription.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Subscription.Builder |
clearHeartbeatInterval()
Specifies the maximum allowable silent period in nanoseconds when
suppress_redundant is in use.
|
Subscription.Builder |
clearMode()
Subscription mode to be used.
|
Subscription.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Subscription.Builder |
clearPath()
The data tree path.
|
Subscription.Builder |
clearSampleInterval()
ns between samples in SAMPLE mode.
|
Subscription.Builder |
clearSuppressRedundant()
Indicates whether values that not changed should be sent in a SAMPLE
subscription.
|
Subscription.Builder |
clone() |
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.
|
SubscriptionMode |
getMode()
Subscription mode to be used.
|
int |
getModeValue()
Subscription mode to be used.
|
Path |
getPath()
The data tree path.
|
Path.Builder |
getPathBuilder()
The data tree path.
|
PathOrBuilder |
getPathOrBuilder()
The data tree path.
|
long |
getSampleInterval()
ns between samples in SAMPLE mode.
|
boolean |
getSuppressRedundant()
Indicates whether values that not changed should be sent in a SAMPLE
subscription.
|
boolean |
hasPath()
The data tree path.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Subscription.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Subscription.Builder |
mergeFrom(com.google.protobuf.Message other) |
Subscription.Builder |
mergeFrom(Subscription other) |
Subscription.Builder |
mergePath(Path value)
The data tree path.
|
Subscription.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Subscription.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Subscription.Builder |
setHeartbeatInterval(long value)
Specifies the maximum allowable silent period in nanoseconds when
suppress_redundant is in use.
|
Subscription.Builder |
setMode(SubscriptionMode value)
Subscription mode to be used.
|
Subscription.Builder |
setModeValue(int value)
Subscription mode to be used.
|
Subscription.Builder |
setPath(Path.Builder builderForValue)
The data tree path.
|
Subscription.Builder |
setPath(Path value)
The data tree path.
|
Subscription.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Subscription.Builder |
setSampleInterval(long value)
ns between samples in SAMPLE mode.
|
Subscription.Builder |
setSuppressRedundant(boolean value)
Indicates whether values that not changed should be sent in a SAMPLE
subscription.
|
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<Subscription.Builder>public 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<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<Subscription.Builder>public Subscription getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Subscription build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Subscription buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic 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<Subscription.Builder>public 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<Subscription.Builder>public Subscription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public 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<Subscription.Builder>public 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<Subscription.Builder>public Subscription.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Subscription.Builder>public Subscription.Builder mergeFrom(Subscription other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public 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<Subscription.Builder>IOExceptionpublic boolean hasPath()
The data tree path.
.gnmi.Path path = 1;hasPath in interface SubscriptionOrBuilderpublic Path getPath()
The data tree path.
.gnmi.Path path = 1;getPath in interface SubscriptionOrBuilderpublic Subscription.Builder setPath(Path value)
The data tree path.
.gnmi.Path path = 1;public Subscription.Builder setPath(Path.Builder builderForValue)
The data tree path.
.gnmi.Path path = 1;public Subscription.Builder mergePath(Path value)
The data tree path.
.gnmi.Path path = 1;public Subscription.Builder clearPath()
The data tree path.
.gnmi.Path path = 1;public Path.Builder getPathBuilder()
The data tree path.
.gnmi.Path path = 1;public PathOrBuilder getPathOrBuilder()
The data tree path.
.gnmi.Path path = 1;getPathOrBuilder in interface SubscriptionOrBuilderpublic int getModeValue()
Subscription mode to be used.
.gnmi.SubscriptionMode mode = 2;getModeValue in interface SubscriptionOrBuilderpublic Subscription.Builder setModeValue(int value)
Subscription mode to be used.
.gnmi.SubscriptionMode mode = 2;public SubscriptionMode getMode()
Subscription mode to be used.
.gnmi.SubscriptionMode mode = 2;getMode in interface SubscriptionOrBuilderpublic Subscription.Builder setMode(SubscriptionMode value)
Subscription mode to be used.
.gnmi.SubscriptionMode mode = 2;public 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 SubscriptionOrBuilderpublic Subscription.Builder setSampleInterval(long value)
ns between samples in SAMPLE mode.
uint64 sample_interval = 3;public Subscription.Builder clearSampleInterval()
ns between samples in SAMPLE mode.
uint64 sample_interval = 3;public boolean getSuppressRedundant()
Indicates whether values that not changed should be sent in a SAMPLE subscription.
bool suppress_redundant = 4;getSuppressRedundant in interface SubscriptionOrBuilderpublic Subscription.Builder setSuppressRedundant(boolean value)
Indicates whether values that not changed should be sent in a SAMPLE subscription.
bool suppress_redundant = 4;public Subscription.Builder clearSuppressRedundant()
Indicates whether values that 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 SubscriptionOrBuilderpublic 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 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 Subscription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public final Subscription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>Copyright © 2018 OpenDaylight. All rights reserved.