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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>
public Gnmi.Subscription getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Gnmi.Subscription build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Gnmi.Subscription buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Gnmi.Subscription.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Gnmi.Subscription.Builder>
IOException
public boolean hasPath()
The data tree path.
.gnmi.Path path = 1;
hasPath
in interface Gnmi.SubscriptionOrBuilder
public Gnmi.Path getPath()
The data tree path.
.gnmi.Path path = 1;
getPath
in interface Gnmi.SubscriptionOrBuilder
public 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.SubscriptionOrBuilder
public int getModeValue()
Subscription mode to be used.
.gnmi.SubscriptionMode mode = 2;
getModeValue
in interface Gnmi.SubscriptionOrBuilder
public 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.SubscriptionOrBuilder
public 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.SubscriptionOrBuilder
public 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.SubscriptionOrBuilder
public 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.SubscriptionOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Subscription.Builder>
Copyright © 2021. All rights reserved.