Class Gnmi.Path.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
- org.opennms.features.openconfig.proto.gnmi.Gnmi.Path.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,Gnmi.PathOrBuilder
- Enclosing class:
- Gnmi.Path
public static final class Gnmi.Path.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder> implements Gnmi.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 typegnmi.Path
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Gnmi.Path.Builder
addAllElem(java.lang.Iterable<? extends Gnmi.PathElem> values)
Elements of the path.Gnmi.Path.Builder
addAllElement(java.lang.Iterable<java.lang.String> values)
Deprecated.Gnmi.Path.Builder
addElem(int index, Gnmi.PathElem value)
Elements of the path.Gnmi.Path.Builder
addElem(int index, Gnmi.PathElem.Builder builderForValue)
Elements of the path.Gnmi.Path.Builder
addElem(Gnmi.PathElem value)
Elements of the path.Gnmi.Path.Builder
addElem(Gnmi.PathElem.Builder builderForValue)
Elements of the path.Gnmi.PathElem.Builder
addElemBuilder()
Elements of the path.Gnmi.PathElem.Builder
addElemBuilder(int index)
Elements of the path.Gnmi.Path.Builder
addElement(java.lang.String value)
Deprecated.Gnmi.Path.Builder
addElementBytes(com.google.protobuf.ByteString value)
Deprecated.Gnmi.Path.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Gnmi.Path
build()
Gnmi.Path
buildPartial()
Gnmi.Path.Builder
clear()
Gnmi.Path.Builder
clearElem()
Elements of the path.Gnmi.Path.Builder
clearElement()
Deprecated.Gnmi.Path.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Gnmi.Path.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Gnmi.Path.Builder
clearOrigin()
Label to disambiguate path.Gnmi.Path.Builder
clearTarget()
The name of the targetGnmi.Path.Builder
clone()
Gnmi.Path
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Gnmi.PathElem
getElem(int index)
Elements of the path.Gnmi.PathElem.Builder
getElemBuilder(int index)
Elements of the path.java.util.List<Gnmi.PathElem.Builder>
getElemBuilderList()
Elements of the path.int
getElemCount()
Elements of the path.java.lang.String
getElement(int index)
Deprecated.com.google.protobuf.ByteString
getElementBytes(int index)
Deprecated.int
getElementCount()
Deprecated.com.google.protobuf.ProtocolStringList
getElementList()
Deprecated.java.util.List<Gnmi.PathElem>
getElemList()
Elements of the path.Gnmi.PathElemOrBuilder
getElemOrBuilder(int index)
Elements of the path.java.util.List<? extends Gnmi.PathElemOrBuilder>
getElemOrBuilderList()
Elements of the path.java.lang.String
getOrigin()
Label to disambiguate path.com.google.protobuf.ByteString
getOriginBytes()
Label to disambiguate path.java.lang.String
getTarget()
The name of the targetcom.google.protobuf.ByteString
getTargetBytes()
The name of the targetprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Gnmi.Path.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Gnmi.Path.Builder
mergeFrom(com.google.protobuf.Message other)
Gnmi.Path.Builder
mergeFrom(Gnmi.Path other)
Gnmi.Path.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Gnmi.Path.Builder
removeElem(int index)
Elements of the path.Gnmi.Path.Builder
setElem(int index, Gnmi.PathElem value)
Elements of the path.Gnmi.Path.Builder
setElem(int index, Gnmi.PathElem.Builder builderForValue)
Elements of the path.Gnmi.Path.Builder
setElement(int index, java.lang.String value)
Deprecated.Gnmi.Path.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Gnmi.Path.Builder
setOrigin(java.lang.String value)
Label to disambiguate path.Gnmi.Path.Builder
setOriginBytes(com.google.protobuf.ByteString value)
Label to disambiguate path.Gnmi.Path.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Gnmi.Path.Builder
setTarget(java.lang.String value)
The name of the targetGnmi.Path.Builder
setTargetBytes(com.google.protobuf.ByteString value)
The name of the targetGnmi.Path.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
clear
public Gnmi.Path.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
getDefaultInstanceForType
public Gnmi.Path getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Gnmi.Path build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Gnmi.Path buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Gnmi.Path.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
setField
public Gnmi.Path.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
clearField
public Gnmi.Path.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
clearOneof
public Gnmi.Path.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
setRepeatedField
public Gnmi.Path.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
addRepeatedField
public Gnmi.Path.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
mergeFrom
public Gnmi.Path.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Gnmi.Path.Builder>
-
mergeFrom
public Gnmi.Path.Builder mergeFrom(Gnmi.Path other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
mergeFrom
public Gnmi.Path.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Gnmi.Path.Builder>
- Throws:
java.io.IOException
-
getElementList
@Deprecated public com.google.protobuf.ProtocolStringList getElementList()
Deprecated.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];
- Specified by:
getElementList
in interfaceGnmi.PathOrBuilder
-
getElementCount
@Deprecated public int getElementCount()
Deprecated.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];
- Specified by:
getElementCount
in interfaceGnmi.PathOrBuilder
-
getElement
@Deprecated public java.lang.String getElement(int index)
Deprecated.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];
- Specified by:
getElement
in interfaceGnmi.PathOrBuilder
-
getElementBytes
@Deprecated public com.google.protobuf.ByteString getElementBytes(int index)
Deprecated.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];
- Specified by:
getElementBytes
in interfaceGnmi.PathOrBuilder
-
setElement
@Deprecated public Gnmi.Path.Builder setElement(int index, java.lang.String value)
Deprecated.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];
-
addElement
@Deprecated public Gnmi.Path.Builder addElement(java.lang.String value)
Deprecated.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];
-
addAllElement
@Deprecated public Gnmi.Path.Builder addAllElement(java.lang.Iterable<java.lang.String> values)
Deprecated.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];
-
clearElement
@Deprecated public Gnmi.Path.Builder clearElement()
Deprecated.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];
-
addElementBytes
@Deprecated public Gnmi.Path.Builder addElementBytes(com.google.protobuf.ByteString value)
Deprecated.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];
-
getOrigin
public java.lang.String getOrigin()
Label to disambiguate path.
string origin = 2;
- Specified by:
getOrigin
in interfaceGnmi.PathOrBuilder
-
getOriginBytes
public com.google.protobuf.ByteString getOriginBytes()
Label to disambiguate path.
string origin = 2;
- Specified by:
getOriginBytes
in interfaceGnmi.PathOrBuilder
-
setOrigin
public Gnmi.Path.Builder setOrigin(java.lang.String value)
Label to disambiguate path.
string origin = 2;
-
clearOrigin
public Gnmi.Path.Builder clearOrigin()
Label to disambiguate path.
string origin = 2;
-
setOriginBytes
public Gnmi.Path.Builder setOriginBytes(com.google.protobuf.ByteString value)
Label to disambiguate path.
string origin = 2;
-
getElemList
public java.util.List<Gnmi.PathElem> getElemList()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
- Specified by:
getElemList
in interfaceGnmi.PathOrBuilder
-
getElemCount
public int getElemCount()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
- Specified by:
getElemCount
in interfaceGnmi.PathOrBuilder
-
getElem
public Gnmi.PathElem getElem(int index)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
- Specified by:
getElem
in interfaceGnmi.PathOrBuilder
-
setElem
public Gnmi.Path.Builder setElem(int index, Gnmi.PathElem value)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
setElem
public Gnmi.Path.Builder setElem(int index, Gnmi.PathElem.Builder builderForValue)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
addElem
public Gnmi.Path.Builder addElem(Gnmi.PathElem value)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
addElem
public Gnmi.Path.Builder addElem(int index, Gnmi.PathElem value)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
addElem
public Gnmi.Path.Builder addElem(Gnmi.PathElem.Builder builderForValue)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
addElem
public Gnmi.Path.Builder addElem(int index, Gnmi.PathElem.Builder builderForValue)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
addAllElem
public Gnmi.Path.Builder addAllElem(java.lang.Iterable<? extends Gnmi.PathElem> values)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
clearElem
public Gnmi.Path.Builder clearElem()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
removeElem
public Gnmi.Path.Builder removeElem(int index)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
getElemBuilder
public Gnmi.PathElem.Builder getElemBuilder(int index)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
getElemOrBuilder
public Gnmi.PathElemOrBuilder getElemOrBuilder(int index)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
- Specified by:
getElemOrBuilder
in interfaceGnmi.PathOrBuilder
-
getElemOrBuilderList
public java.util.List<? extends Gnmi.PathElemOrBuilder> getElemOrBuilderList()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
- Specified by:
getElemOrBuilderList
in interfaceGnmi.PathOrBuilder
-
addElemBuilder
public Gnmi.PathElem.Builder addElemBuilder()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
addElemBuilder
public Gnmi.PathElem.Builder addElemBuilder(int index)
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
getElemBuilderList
public java.util.List<Gnmi.PathElem.Builder> getElemBuilderList()
Elements of the path.
repeated .gnmi.PathElem elem = 3;
-
getTarget
public java.lang.String getTarget()
The name of the target
string target = 4;
- Specified by:
getTarget
in interfaceGnmi.PathOrBuilder
-
getTargetBytes
public com.google.protobuf.ByteString getTargetBytes()
The name of the target
string target = 4;
- Specified by:
getTargetBytes
in interfaceGnmi.PathOrBuilder
-
setTarget
public Gnmi.Path.Builder setTarget(java.lang.String value)
The name of the target
string target = 4;
-
clearTarget
public Gnmi.Path.Builder clearTarget()
The name of the target
string target = 4;
-
setTargetBytes
public Gnmi.Path.Builder setTargetBytes(com.google.protobuf.ByteString value)
The name of the target
string target = 4;
-
setUnknownFields
public final Gnmi.Path.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
mergeUnknownFields
public final Gnmi.Path.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
-
-