public static final class Path.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Path.Builder> implements PathOrBuilder
Path encodes a data tree path as a series of repeated strings, with each element of the path representing a data tree node name and the associated attributes. Reference: gNMI Specification Section 2.2.2.Protobuf type
gnmi.Path
Modifier and Type | Method and Description |
---|---|
Path.Builder |
addAllElem(Iterable<? extends PathElem> values)
Elements of the path.
|
Path.Builder |
addAllElement(Iterable<String> values)
Deprecated.
|
Path.Builder |
addElem(int index,
PathElem.Builder builderForValue)
Elements of the path.
|
Path.Builder |
addElem(int index,
PathElem value)
Elements of the path.
|
Path.Builder |
addElem(PathElem.Builder builderForValue)
Elements of the path.
|
Path.Builder |
addElem(PathElem value)
Elements of the path.
|
PathElem.Builder |
addElemBuilder()
Elements of the path.
|
PathElem.Builder |
addElemBuilder(int index)
Elements of the path.
|
Path.Builder |
addElement(String value)
Deprecated.
|
Path.Builder |
addElementBytes(com.google.protobuf.ByteString value)
Deprecated.
|
Path.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Path |
build() |
Path |
buildPartial() |
Path.Builder |
clear() |
Path.Builder |
clearElem()
Elements of the path.
|
Path.Builder |
clearElement()
Deprecated.
|
Path.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Path.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Path.Builder |
clearOrigin()
Label to disambiguate path.
|
Path.Builder |
clearTarget()
The name of the target
|
Path.Builder |
clone() |
Path |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
PathElem |
getElem(int index)
Elements of the path.
|
PathElem.Builder |
getElemBuilder(int index)
Elements of the path.
|
List<PathElem.Builder> |
getElemBuilderList()
Elements of the path.
|
int |
getElemCount()
Elements of the path.
|
String |
getElement(int index)
Deprecated.
|
com.google.protobuf.ByteString |
getElementBytes(int index)
Deprecated.
|
int |
getElementCount()
Deprecated.
|
com.google.protobuf.ProtocolStringList |
getElementList()
Deprecated.
|
List<PathElem> |
getElemList()
Elements of the path.
|
PathElemOrBuilder |
getElemOrBuilder(int index)
Elements of the path.
|
List<? extends PathElemOrBuilder> |
getElemOrBuilderList()
Elements of the path.
|
String |
getOrigin()
Label to disambiguate path.
|
com.google.protobuf.ByteString |
getOriginBytes()
Label to disambiguate path.
|
String |
getTarget()
The name of the target
|
com.google.protobuf.ByteString |
getTargetBytes()
The name of the target
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Path.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Path.Builder |
mergeFrom(com.google.protobuf.Message other) |
Path.Builder |
mergeFrom(Path other) |
Path.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Path.Builder |
removeElem(int index)
Elements of the path.
|
Path.Builder |
setElem(int index,
PathElem.Builder builderForValue)
Elements of the path.
|
Path.Builder |
setElem(int index,
PathElem value)
Elements of the path.
|
Path.Builder |
setElement(int index,
String value)
Deprecated.
|
Path.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Path.Builder |
setOrigin(String value)
Label to disambiguate path.
|
Path.Builder |
setOriginBytes(com.google.protobuf.ByteString value)
Label to disambiguate path.
|
Path.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Path.Builder |
setTarget(String value)
The name of the target
|
Path.Builder |
setTargetBytes(com.google.protobuf.ByteString value)
The name of the target
|
Path.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<Path.Builder>
public Path.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<Path.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<Path.Builder>
public Path getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Path build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Path buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Path.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<Path.Builder>
public Path.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<Path.Builder>
public Path.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Path.Builder>
public Path.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Path.Builder>
public Path.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<Path.Builder>
public Path.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<Path.Builder>
public Path.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Path.Builder>
public Path.Builder mergeFrom(Path other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Path.Builder>
public Path.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<Path.Builder>
IOException
@Deprecated public com.google.protobuf.ProtocolStringList getElementList()
Elements of the path are no longer encoded as a string, but rather within the elem field as a PathElem message.
repeated string element = 1 [deprecated = true];
getElementList
in interface PathOrBuilder
@Deprecated public int getElementCount()
Elements of the path are no longer encoded as a string, but rather within the elem field as a PathElem message.
repeated string element = 1 [deprecated = true];
getElementCount
in interface PathOrBuilder
@Deprecated public String getElement(int index)
Elements of the path are no longer encoded as a string, but rather within the elem field as a PathElem message.
repeated string element = 1 [deprecated = true];
getElement
in interface PathOrBuilder
@Deprecated public com.google.protobuf.ByteString getElementBytes(int index)
Elements of the path are no longer encoded as a string, but rather within the elem field as a PathElem message.
repeated string element = 1 [deprecated = true];
getElementBytes
in interface PathOrBuilder
@Deprecated public Path.Builder setElement(int index, String value)
Elements of the path are no longer encoded as a string, but rather within the elem field as a PathElem message.
repeated string element = 1 [deprecated = true];
@Deprecated public Path.Builder addElement(String value)
Elements of the path are no longer encoded as a string, but rather within the elem field as a PathElem message.
repeated string element = 1 [deprecated = true];
@Deprecated public Path.Builder addAllElement(Iterable<String> values)
Elements of the path are no longer encoded as a string, but rather within the elem field as a PathElem message.
repeated string element = 1 [deprecated = true];
@Deprecated public Path.Builder clearElement()
Elements of the path are no longer encoded as a string, but rather within the elem field as a PathElem message.
repeated string element = 1 [deprecated = true];
@Deprecated public Path.Builder addElementBytes(com.google.protobuf.ByteString value)
Elements of the path are no longer encoded as a string, but rather within the elem field as a PathElem message.
repeated string element = 1 [deprecated = true];
public String getOrigin()
Label to disambiguate path.
string origin = 2;
getOrigin
in interface PathOrBuilder
public com.google.protobuf.ByteString getOriginBytes()
Label to disambiguate path.
string origin = 2;
getOriginBytes
in interface PathOrBuilder
public Path.Builder setOrigin(String value)
Label to disambiguate path.
string origin = 2;
public Path.Builder clearOrigin()
Label to disambiguate path.
string origin = 2;
public Path.Builder setOriginBytes(com.google.protobuf.ByteString value)
Label to disambiguate path.
string origin = 2;
public List<PathElem> getElemList()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
getElemList
in interface PathOrBuilder
public int getElemCount()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
getElemCount
in interface PathOrBuilder
public PathElem getElem(int index)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
getElem
in interface PathOrBuilder
public Path.Builder setElem(int index, PathElem value)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public Path.Builder setElem(int index, PathElem.Builder builderForValue)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public Path.Builder addElem(PathElem value)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public Path.Builder addElem(int index, PathElem value)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public Path.Builder addElem(PathElem.Builder builderForValue)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public Path.Builder addElem(int index, PathElem.Builder builderForValue)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public Path.Builder addAllElem(Iterable<? extends PathElem> values)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public Path.Builder clearElem()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public Path.Builder removeElem(int index)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public PathElem.Builder getElemBuilder(int index)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public PathElemOrBuilder getElemOrBuilder(int index)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
getElemOrBuilder
in interface PathOrBuilder
public List<? extends PathElemOrBuilder> getElemOrBuilderList()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
getElemOrBuilderList
in interface PathOrBuilder
public PathElem.Builder addElemBuilder()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public PathElem.Builder addElemBuilder(int index)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public List<PathElem.Builder> getElemBuilderList()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
public String getTarget()
The name of the target
string target = 4;
getTarget
in interface PathOrBuilder
public com.google.protobuf.ByteString getTargetBytes()
The name of the target
string target = 4;
getTargetBytes
in interface PathOrBuilder
public Path.Builder setTarget(String value)
The name of the target
string target = 4;
public Path.Builder clearTarget()
The name of the target
string target = 4;
public Path.Builder setTargetBytes(com.google.protobuf.ByteString value)
The name of the target
string target = 4;
public final Path.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Path.Builder>
public final Path.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Path.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.