Class Gnmi.ScalarArray.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.ScalarArrayOrBuilder
    Enclosing class:
    Gnmi.ScalarArray

    public static final class Gnmi.ScalarArray.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder>
    implements Gnmi.ScalarArrayOrBuilder
     ScalarArray is used to encode a mixed-type array of values.
     
    Protobuf type gnmi.ScalarArray
    • 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.ScalarArray.Builder>
      • clear

        public Gnmi.ScalarArray.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.ScalarArray.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.ScalarArray.Builder>
      • getDefaultInstanceForType

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

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

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

        public Gnmi.ScalarArray.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.ScalarArray.Builder>
      • setField

        public Gnmi.ScalarArray.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.ScalarArray.Builder>
      • clearField

        public Gnmi.ScalarArray.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.ScalarArray.Builder>
      • clearOneof

        public Gnmi.ScalarArray.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.ScalarArray.Builder>
      • setRepeatedField

        public Gnmi.ScalarArray.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.ScalarArray.Builder>
      • addRepeatedField

        public Gnmi.ScalarArray.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.ScalarArray.Builder>
      • mergeFrom

        public Gnmi.ScalarArray.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.ScalarArray.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.ScalarArray.Builder>
      • mergeFrom

        public Gnmi.ScalarArray.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.ScalarArray.Builder>
        Throws:
        java.io.IOException
      • getElementList

        public java.util.List<Gnmi.TypedValue> getElementList()
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
        Specified by:
        getElementList in interface Gnmi.ScalarArrayOrBuilder
      • getElementCount

        public int getElementCount()
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
        Specified by:
        getElementCount in interface Gnmi.ScalarArrayOrBuilder
      • getElement

        public Gnmi.TypedValue getElement​(int index)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
        Specified by:
        getElement in interface Gnmi.ScalarArrayOrBuilder
      • setElement

        public Gnmi.ScalarArray.Builder setElement​(int index,
                                                   Gnmi.TypedValue value)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • setElement

        public Gnmi.ScalarArray.Builder setElement​(int index,
                                                   Gnmi.TypedValue.Builder builderForValue)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • addElement

        public Gnmi.ScalarArray.Builder addElement​(Gnmi.TypedValue value)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • addElement

        public Gnmi.ScalarArray.Builder addElement​(int index,
                                                   Gnmi.TypedValue value)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • addElement

        public Gnmi.ScalarArray.Builder addElement​(Gnmi.TypedValue.Builder builderForValue)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • addElement

        public Gnmi.ScalarArray.Builder addElement​(int index,
                                                   Gnmi.TypedValue.Builder builderForValue)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • addAllElement

        public Gnmi.ScalarArray.Builder addAllElement​(java.lang.Iterable<? extends Gnmi.TypedValue> values)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • clearElement

        public Gnmi.ScalarArray.Builder clearElement()
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • removeElement

        public Gnmi.ScalarArray.Builder removeElement​(int index)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • getElementBuilder

        public Gnmi.TypedValue.Builder getElementBuilder​(int index)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • getElementOrBuilder

        public Gnmi.TypedValueOrBuilder getElementOrBuilder​(int index)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
        Specified by:
        getElementOrBuilder in interface Gnmi.ScalarArrayOrBuilder
      • getElementOrBuilderList

        public java.util.List<? extends Gnmi.TypedValueOrBuilder> getElementOrBuilderList()
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
        Specified by:
        getElementOrBuilderList in interface Gnmi.ScalarArrayOrBuilder
      • addElementBuilder

        public Gnmi.TypedValue.Builder addElementBuilder()
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • addElementBuilder

        public Gnmi.TypedValue.Builder addElementBuilder​(int index)
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • getElementBuilderList

        public java.util.List<Gnmi.TypedValue.Builder> getElementBuilderList()
         The set of elements within the array. Each TypedValue message should
         specify only elements that have a field identifier of 1-7 (i.e., the
         values are scalar values).
         
        repeated .gnmi.TypedValue element = 1;
      • setUnknownFields

        public final Gnmi.ScalarArray.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.ScalarArray.Builder>
      • mergeUnknownFields

        public final Gnmi.ScalarArray.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.ScalarArray.Builder>