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, 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<Subscription.Builder>
public 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<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<Subscription.Builder>
public Subscription getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Subscription build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Subscription buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public 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<Subscription.Builder>
public 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<Subscription.Builder>
public 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<Subscription.Builder>
public 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<Subscription.Builder>
public 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<Subscription.Builder>
public 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<Subscription.Builder>
public Subscription.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Subscription.Builder>
IOException
public boolean hasPath()
The data tree path.
.gnmi.Path path = 1;
hasPath
in interface SubscriptionOrBuilder
public Path getPath()
The data tree path.
.gnmi.Path path = 1;
getPath
in interface SubscriptionOrBuilder
public 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 SubscriptionOrBuilder
public int getModeValue()
Subscription mode to be used.
.gnmi.SubscriptionMode mode = 2;
getModeValue
in interface SubscriptionOrBuilder
public 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 SubscriptionOrBuilder
public 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 SubscriptionOrBuilder
public 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 SubscriptionOrBuilder
public 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 SubscriptionOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.