Class 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 type gnmi.Path
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
      • clear

        public Gnmi.Path.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
      • getDefaultInstanceForType

        public Gnmi.Path getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Gnmi.Path build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Gnmi.Path buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Gnmi.Path.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
      • clearField

        public Gnmi.Path.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
      • clearOneof

        public Gnmi.Path.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
      • mergeFrom

        public Gnmi.Path.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Gnmi.Path.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface Gnmi.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 interface Gnmi.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 interface Gnmi.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 interface Gnmi.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 interface Gnmi.PathOrBuilder
      • getOriginBytes

        public com.google.protobuf.ByteString getOriginBytes()
         Label to disambiguate path.
         
        string origin = 2;
        Specified by:
        getOriginBytes in interface Gnmi.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;
      • getElemCount

        public int getElemCount()
         Elements of the path.
         
        repeated .gnmi.PathElem elem = 3;
        Specified by:
        getElemCount in interface Gnmi.PathOrBuilder
      • 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;
      • 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 interface Gnmi.PathOrBuilder
      • getTargetBytes

        public com.google.protobuf.ByteString getTargetBytes()
         The name of the target
         
        string target = 4;
        Specified by:
        getTargetBytes in interface Gnmi.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>
      • mergeUnknownFields

        public final Gnmi.Path.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Path.Builder>