Class TensorDescription.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, TensorDescriptionOrBuilder
    Enclosing class:
    TensorDescription

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public int getDtypeValue()
         Data type of tensor elements
         
        .org.platanios.tensorflow.proto.DataType dtype = 1;
        Specified by:
        getDtypeValue in interface TensorDescriptionOrBuilder
        Returns:
        The enum numeric value on the wire for dtype.
      • setDtypeValue

        public TensorDescription.Builder setDtypeValue​(int value)
         Data type of tensor elements
         
        .org.platanios.tensorflow.proto.DataType dtype = 1;
        Parameters:
        value - The enum numeric value on the wire for dtype to set.
        Returns:
        This builder for chaining.
      • setDtype

        public TensorDescription.Builder setDtype​(DataType value)
         Data type of tensor elements
         
        .org.platanios.tensorflow.proto.DataType dtype = 1;
        Parameters:
        value - The dtype to set.
        Returns:
        This builder for chaining.
      • clearDtype

        public TensorDescription.Builder clearDtype()
         Data type of tensor elements
         
        .org.platanios.tensorflow.proto.DataType dtype = 1;
        Returns:
        This builder for chaining.
      • hasShape

        public boolean hasShape()
         Shape of the tensor.
         
        .org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
        Specified by:
        hasShape in interface TensorDescriptionOrBuilder
        Returns:
        Whether the shape field is set.
      • clearShape

        public TensorDescription.Builder clearShape()
         Shape of the tensor.
         
        .org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
      • getShapeBuilder

        public TensorShapeProto.Builder getShapeBuilder()
         Shape of the tensor.
         
        .org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
      • hasAllocationDescription

        public boolean hasAllocationDescription()
         Information about the size and allocator used for the data
         
        .org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
        Specified by:
        hasAllocationDescription in interface TensorDescriptionOrBuilder
        Returns:
        Whether the allocationDescription field is set.
      • setAllocationDescription

        public TensorDescription.Builder setAllocationDescription​(AllocationDescription value)
         Information about the size and allocator used for the data
         
        .org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
      • setAllocationDescription

        public TensorDescription.Builder setAllocationDescription​(AllocationDescription.Builder builderForValue)
         Information about the size and allocator used for the data
         
        .org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
      • mergeAllocationDescription

        public TensorDescription.Builder mergeAllocationDescription​(AllocationDescription value)
         Information about the size and allocator used for the data
         
        .org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
      • clearAllocationDescription

        public TensorDescription.Builder clearAllocationDescription()
         Information about the size and allocator used for the data
         
        .org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
      • getAllocationDescriptionBuilder

        public AllocationDescription.Builder getAllocationDescriptionBuilder()
         Information about the size and allocator used for the data
         
        .org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
      • setUnknownFields

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

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