Class VariantTensorDataProto.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, VariantTensorDataProtoOrBuilder
    Enclosing class:
    VariantTensorDataProto

    public static final class VariantTensorDataProto.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
    implements VariantTensorDataProtoOrBuilder
     Protocol buffer representing the serialization format of DT_VARIANT tensors.
     
    Protobuf type org.platanios.tensorflow.proto.VariantTensorDataProto
    • 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<VariantTensorDataProto.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public VariantTensorDataProto.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<VariantTensorDataProto.Builder>
        Throws:
        java.io.IOException
      • getTypeName

        public java.lang.String getTypeName()
         Name of the type of objects being serialized.
         
        string type_name = 1;
        Specified by:
        getTypeName in interface VariantTensorDataProtoOrBuilder
        Returns:
        The typeName.
      • getTypeNameBytes

        public com.google.protobuf.ByteString getTypeNameBytes()
         Name of the type of objects being serialized.
         
        string type_name = 1;
        Specified by:
        getTypeNameBytes in interface VariantTensorDataProtoOrBuilder
        Returns:
        The bytes for typeName.
      • setTypeName

        public VariantTensorDataProto.Builder setTypeName​(java.lang.String value)
         Name of the type of objects being serialized.
         
        string type_name = 1;
        Parameters:
        value - The typeName to set.
        Returns:
        This builder for chaining.
      • clearTypeName

        public VariantTensorDataProto.Builder clearTypeName()
         Name of the type of objects being serialized.
         
        string type_name = 1;
        Returns:
        This builder for chaining.
      • setTypeNameBytes

        public VariantTensorDataProto.Builder setTypeNameBytes​(com.google.protobuf.ByteString value)
         Name of the type of objects being serialized.
         
        string type_name = 1;
        Parameters:
        value - The bytes for typeName to set.
        Returns:
        This builder for chaining.
      • getMetadata

        public com.google.protobuf.ByteString getMetadata()
         Portions of the object that are not Tensors.
         
        bytes metadata = 2;
        Specified by:
        getMetadata in interface VariantTensorDataProtoOrBuilder
        Returns:
        The metadata.
      • setMetadata

        public VariantTensorDataProto.Builder setMetadata​(com.google.protobuf.ByteString value)
         Portions of the object that are not Tensors.
         
        bytes metadata = 2;
        Parameters:
        value - The metadata to set.
        Returns:
        This builder for chaining.
      • clearMetadata

        public VariantTensorDataProto.Builder clearMetadata()
         Portions of the object that are not Tensors.
         
        bytes metadata = 2;
        Returns:
        This builder for chaining.
      • getTensorsCount

        public int getTensorsCount()
         Tensors contained within objects being serialized.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 3;
        Specified by:
        getTensorsCount in interface VariantTensorDataProtoOrBuilder
      • setTensors

        public VariantTensorDataProto.Builder setTensors​(int index,
                                                         TensorProto value)
         Tensors contained within objects being serialized.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 3;
      • addTensors

        public VariantTensorDataProto.Builder addTensors​(int index,
                                                         TensorProto value)
         Tensors contained within objects being serialized.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 3;
      • addAllTensors

        public VariantTensorDataProto.Builder addAllTensors​(java.lang.Iterable<? extends TensorProto> values)
         Tensors contained within objects being serialized.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 3;
      • clearTensors

        public VariantTensorDataProto.Builder clearTensors()
         Tensors contained within objects being serialized.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 3;
      • removeTensors

        public VariantTensorDataProto.Builder removeTensors​(int index)
         Tensors contained within objects being serialized.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 3;
      • getTensorsBuilder

        public TensorProto.Builder getTensorsBuilder​(int index)
         Tensors contained within objects being serialized.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 3;
      • addTensorsBuilder

        public TensorProto.Builder addTensorsBuilder()
         Tensors contained within objects being serialized.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 3;
      • addTensorsBuilder

        public TensorProto.Builder addTensorsBuilder​(int index)
         Tensors contained within objects being serialized.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 3;
      • getTensorsBuilderList

        public java.util.List<TensorProto.Builder> getTensorsBuilderList()
         Tensors contained within objects being serialized.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 3;
      • setUnknownFields

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

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