Class AttrValue.ListValue.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, AttrValue.ListValueOrBuilder
    Enclosing class:
    AttrValue.ListValue

    public static final class AttrValue.ListValue.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
    implements AttrValue.ListValueOrBuilder
     LINT.IfChange
     
    Protobuf type org.platanios.tensorflow.proto.AttrValue.ListValue
    • 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<AttrValue.ListValue.Builder>
      • clear

        public AttrValue.ListValue.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<AttrValue.ListValue.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<AttrValue.ListValue.Builder>
      • getDefaultInstanceForType

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

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

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

        public AttrValue.ListValue.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<AttrValue.ListValue.Builder>
      • setField

        public AttrValue.ListValue.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<AttrValue.ListValue.Builder>
      • clearField

        public AttrValue.ListValue.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<AttrValue.ListValue.Builder>
      • clearOneof

        public AttrValue.ListValue.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<AttrValue.ListValue.Builder>
      • setRepeatedField

        public AttrValue.ListValue.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<AttrValue.ListValue.Builder>
      • addRepeatedField

        public AttrValue.ListValue.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<AttrValue.ListValue.Builder>
      • mergeFrom

        public AttrValue.ListValue.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<AttrValue.ListValue.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
      • mergeFrom

        public AttrValue.ListValue.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<AttrValue.ListValue.Builder>
        Throws:
        java.io.IOException
      • getSList

        public java.util.List<com.google.protobuf.ByteString> getSList()
         "list(string)"
         
        repeated bytes s = 2;
        Specified by:
        getSList in interface AttrValue.ListValueOrBuilder
        Returns:
        A list containing the s.
      • getS

        public com.google.protobuf.ByteString getS​(int index)
         "list(string)"
         
        repeated bytes s = 2;
        Specified by:
        getS in interface AttrValue.ListValueOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The s at the given index.
      • setS

        public AttrValue.ListValue.Builder setS​(int index,
                                                com.google.protobuf.ByteString value)
         "list(string)"
         
        repeated bytes s = 2;
        Parameters:
        index - The index to set the value at.
        value - The s to set.
        Returns:
        This builder for chaining.
      • addS

        public AttrValue.ListValue.Builder addS​(com.google.protobuf.ByteString value)
         "list(string)"
         
        repeated bytes s = 2;
        Parameters:
        value - The s to add.
        Returns:
        This builder for chaining.
      • addAllS

        public AttrValue.ListValue.Builder addAllS​(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
         "list(string)"
         
        repeated bytes s = 2;
        Parameters:
        values - The s to add.
        Returns:
        This builder for chaining.
      • getIList

        public java.util.List<java.lang.Long> getIList()
         "list(int)"
         
        repeated int64 i = 3 [packed = true];
        Specified by:
        getIList in interface AttrValue.ListValueOrBuilder
        Returns:
        A list containing the i.
      • getI

        public long getI​(int index)
         "list(int)"
         
        repeated int64 i = 3 [packed = true];
        Specified by:
        getI in interface AttrValue.ListValueOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The i at the given index.
      • setI

        public AttrValue.ListValue.Builder setI​(int index,
                                                long value)
         "list(int)"
         
        repeated int64 i = 3 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The i to set.
        Returns:
        This builder for chaining.
      • addI

        public AttrValue.ListValue.Builder addI​(long value)
         "list(int)"
         
        repeated int64 i = 3 [packed = true];
        Parameters:
        value - The i to add.
        Returns:
        This builder for chaining.
      • addAllI

        public AttrValue.ListValue.Builder addAllI​(java.lang.Iterable<? extends java.lang.Long> values)
         "list(int)"
         
        repeated int64 i = 3 [packed = true];
        Parameters:
        values - The i to add.
        Returns:
        This builder for chaining.
      • clearI

        public AttrValue.ListValue.Builder clearI()
         "list(int)"
         
        repeated int64 i = 3 [packed = true];
        Returns:
        This builder for chaining.
      • getFList

        public java.util.List<java.lang.Float> getFList()
         "list(float)"
         
        repeated float f = 4 [packed = true];
        Specified by:
        getFList in interface AttrValue.ListValueOrBuilder
        Returns:
        A list containing the f.
      • getF

        public float getF​(int index)
         "list(float)"
         
        repeated float f = 4 [packed = true];
        Specified by:
        getF in interface AttrValue.ListValueOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The f at the given index.
      • setF

        public AttrValue.ListValue.Builder setF​(int index,
                                                float value)
         "list(float)"
         
        repeated float f = 4 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The f to set.
        Returns:
        This builder for chaining.
      • addF

        public AttrValue.ListValue.Builder addF​(float value)
         "list(float)"
         
        repeated float f = 4 [packed = true];
        Parameters:
        value - The f to add.
        Returns:
        This builder for chaining.
      • addAllF

        public AttrValue.ListValue.Builder addAllF​(java.lang.Iterable<? extends java.lang.Float> values)
         "list(float)"
         
        repeated float f = 4 [packed = true];
        Parameters:
        values - The f to add.
        Returns:
        This builder for chaining.
      • clearF

        public AttrValue.ListValue.Builder clearF()
         "list(float)"
         
        repeated float f = 4 [packed = true];
        Returns:
        This builder for chaining.
      • getBList

        public java.util.List<java.lang.Boolean> getBList()
         "list(bool)"
         
        repeated bool b = 5 [packed = true];
        Specified by:
        getBList in interface AttrValue.ListValueOrBuilder
        Returns:
        A list containing the b.
      • getB

        public boolean getB​(int index)
         "list(bool)"
         
        repeated bool b = 5 [packed = true];
        Specified by:
        getB in interface AttrValue.ListValueOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The b at the given index.
      • setB

        public AttrValue.ListValue.Builder setB​(int index,
                                                boolean value)
         "list(bool)"
         
        repeated bool b = 5 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The b to set.
        Returns:
        This builder for chaining.
      • addB

        public AttrValue.ListValue.Builder addB​(boolean value)
         "list(bool)"
         
        repeated bool b = 5 [packed = true];
        Parameters:
        value - The b to add.
        Returns:
        This builder for chaining.
      • addAllB

        public AttrValue.ListValue.Builder addAllB​(java.lang.Iterable<? extends java.lang.Boolean> values)
         "list(bool)"
         
        repeated bool b = 5 [packed = true];
        Parameters:
        values - The b to add.
        Returns:
        This builder for chaining.
      • clearB

        public AttrValue.ListValue.Builder clearB()
         "list(bool)"
         
        repeated bool b = 5 [packed = true];
        Returns:
        This builder for chaining.
      • getTypeList

        public java.util.List<DataType> getTypeList()
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Specified by:
        getTypeList in interface AttrValue.ListValueOrBuilder
        Returns:
        A list containing the type.
      • getTypeCount

        public int getTypeCount()
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Specified by:
        getTypeCount in interface AttrValue.ListValueOrBuilder
        Returns:
        The count of type.
      • getType

        public DataType getType​(int index)
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Specified by:
        getType in interface AttrValue.ListValueOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The type at the given index.
      • setType

        public AttrValue.ListValue.Builder setType​(int index,
                                                   DataType value)
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The type to set.
        Returns:
        This builder for chaining.
      • addType

        public AttrValue.ListValue.Builder addType​(DataType value)
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Parameters:
        value - The type to add.
        Returns:
        This builder for chaining.
      • addAllType

        public AttrValue.ListValue.Builder addAllType​(java.lang.Iterable<? extends DataType> values)
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Parameters:
        values - The type to add.
        Returns:
        This builder for chaining.
      • clearType

        public AttrValue.ListValue.Builder clearType()
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Returns:
        This builder for chaining.
      • getTypeValueList

        public java.util.List<java.lang.Integer> getTypeValueList()
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Specified by:
        getTypeValueList in interface AttrValue.ListValueOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for type.
      • getTypeValue

        public int getTypeValue​(int index)
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Specified by:
        getTypeValue in interface AttrValue.ListValueOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of type at the given index.
      • setTypeValue

        public AttrValue.ListValue.Builder setTypeValue​(int index,
                                                        int value)
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of type at the given index.
      • addTypeValue

        public AttrValue.ListValue.Builder addTypeValue​(int value)
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Parameters:
        value - The enum numeric value on the wire for type to add.
        Returns:
        This builder for chaining.
      • addAllTypeValue

        public AttrValue.ListValue.Builder addAllTypeValue​(java.lang.Iterable<java.lang.Integer> values)
         "list(type)"
         
        repeated .org.platanios.tensorflow.proto.DataType type = 6 [packed = true];
        Parameters:
        values - The enum numeric values on the wire for type to add.
        Returns:
        This builder for chaining.
      • clearShape

        public AttrValue.ListValue.Builder clearShape()
         "list(shape)"
         
        repeated .org.platanios.tensorflow.proto.TensorShapeProto shape = 7;
      • removeShape

        public AttrValue.ListValue.Builder removeShape​(int index)
         "list(shape)"
         
        repeated .org.platanios.tensorflow.proto.TensorShapeProto shape = 7;
      • getShapeBuilder

        public TensorShapeProto.Builder getShapeBuilder​(int index)
         "list(shape)"
         
        repeated .org.platanios.tensorflow.proto.TensorShapeProto shape = 7;
      • addShapeBuilder

        public TensorShapeProto.Builder addShapeBuilder()
         "list(shape)"
         
        repeated .org.platanios.tensorflow.proto.TensorShapeProto shape = 7;
      • addShapeBuilder

        public TensorShapeProto.Builder addShapeBuilder​(int index)
         "list(shape)"
         
        repeated .org.platanios.tensorflow.proto.TensorShapeProto shape = 7;
      • getShapeBuilderList

        public java.util.List<TensorShapeProto.Builder> getShapeBuilderList()
         "list(shape)"
         
        repeated .org.platanios.tensorflow.proto.TensorShapeProto shape = 7;
      • addAllTensor

        public AttrValue.ListValue.Builder addAllTensor​(java.lang.Iterable<? extends TensorProto> values)
         "list(tensor)"
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor = 8;
      • clearTensor

        public AttrValue.ListValue.Builder clearTensor()
         "list(tensor)"
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor = 8;
      • removeTensor

        public AttrValue.ListValue.Builder removeTensor​(int index)
         "list(tensor)"
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor = 8;
      • getTensorBuilder

        public TensorProto.Builder getTensorBuilder​(int index)
         "list(tensor)"
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor = 8;
      • addTensorBuilder

        public TensorProto.Builder addTensorBuilder()
         "list(tensor)"
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor = 8;
      • addTensorBuilder

        public TensorProto.Builder addTensorBuilder​(int index)
         "list(tensor)"
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor = 8;
      • getTensorBuilderList

        public java.util.List<TensorProto.Builder> getTensorBuilderList()
         "list(tensor)"
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor = 8;
      • clearFunc

        public AttrValue.ListValue.Builder clearFunc()
         "list(attr)"
         
        repeated .org.platanios.tensorflow.proto.NameAttrList func = 9;
      • removeFunc

        public AttrValue.ListValue.Builder removeFunc​(int index)
         "list(attr)"
         
        repeated .org.platanios.tensorflow.proto.NameAttrList func = 9;
      • getFuncBuilder

        public NameAttrList.Builder getFuncBuilder​(int index)
         "list(attr)"
         
        repeated .org.platanios.tensorflow.proto.NameAttrList func = 9;
      • addFuncBuilder

        public NameAttrList.Builder addFuncBuilder()
         "list(attr)"
         
        repeated .org.platanios.tensorflow.proto.NameAttrList func = 9;
      • addFuncBuilder

        public NameAttrList.Builder addFuncBuilder​(int index)
         "list(attr)"
         
        repeated .org.platanios.tensorflow.proto.NameAttrList func = 9;
      • getFuncBuilderList

        public java.util.List<NameAttrList.Builder> getFuncBuilderList()
         "list(attr)"
         
        repeated .org.platanios.tensorflow.proto.NameAttrList func = 9;
      • setUnknownFields

        public final AttrValue.ListValue.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<AttrValue.ListValue.Builder>
      • mergeUnknownFields

        public final AttrValue.ListValue.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<AttrValue.ListValue.Builder>