Class TensorDescription.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TensorDescription.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
org.tensorflow.framework.TensorDescription.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, TensorDescriptionOrBuilder
Enclosing class:
TensorDescription

public static final class TensorDescription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder> implements TensorDescriptionOrBuilder
Protobuf type tensorflow.TensorDescription
  • Method Details

    • 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, 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, 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, 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>
    • mergeFrom

      public TensorDescription.Builder mergeFrom(TensorDescription other)
    • 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 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:
      IOException
    • getDtypeValue

      public int getDtypeValue()
       Data type of tensor elements
       
      .tensorflow.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
       
      .tensorflow.DataType dtype = 1;
      Parameters:
      value - The enum numeric value on the wire for dtype to set.
      Returns:
      This builder for chaining.
    • getDtype

      public DataType getDtype()
       Data type of tensor elements
       
      .tensorflow.DataType dtype = 1;
      Specified by:
      getDtype in interface TensorDescriptionOrBuilder
      Returns:
      The dtype.
    • setDtype

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

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

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

      public TensorShapeProto getShape()
       Shape of the tensor.
       
      .tensorflow.TensorShapeProto shape = 2;
      Specified by:
      getShape in interface TensorDescriptionOrBuilder
      Returns:
      The shape.
    • setShape

       Shape of the tensor.
       
      .tensorflow.TensorShapeProto shape = 2;
    • setShape

      public TensorDescription.Builder setShape(TensorShapeProto.Builder builderForValue)
       Shape of the tensor.
       
      .tensorflow.TensorShapeProto shape = 2;
    • mergeShape

      public TensorDescription.Builder mergeShape(TensorShapeProto value)
       Shape of the tensor.
       
      .tensorflow.TensorShapeProto shape = 2;
    • clearShape

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

      public TensorShapeProto.Builder getShapeBuilder()
       Shape of the tensor.
       
      .tensorflow.TensorShapeProto shape = 2;
    • getShapeOrBuilder

      public TensorShapeProtoOrBuilder getShapeOrBuilder()
       Shape of the tensor.
       
      .tensorflow.TensorShapeProto shape = 2;
      Specified by:
      getShapeOrBuilder in interface TensorDescriptionOrBuilder
    • hasAllocationDescription

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

      public AllocationDescription getAllocationDescription()
       Information about the size and allocator used for the data
       
      .tensorflow.AllocationDescription allocation_description = 4;
      Specified by:
      getAllocationDescription in interface TensorDescriptionOrBuilder
      Returns:
      The allocationDescription.
    • setAllocationDescription

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

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

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

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

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

      public AllocationDescriptionOrBuilder getAllocationDescriptionOrBuilder()
       Information about the size and allocator used for the data
       
      .tensorflow.AllocationDescription allocation_description = 4;
      Specified by:
      getAllocationDescriptionOrBuilder in interface TensorDescriptionOrBuilder
    • 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>