Class AllocationDescription.Builder

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

public static final class AllocationDescription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AllocationDescription.Builder> implements AllocationDescriptionOrBuilder
Protobuf type tensorflow.AllocationDescription
  • 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<AllocationDescription.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<AllocationDescription.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<AllocationDescription.Builder>
    • getDefaultInstanceForType

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

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

      public AllocationDescription buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<AllocationDescription.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public AllocationDescription.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<AllocationDescription.Builder>
      Throws:
      IOException
    • getRequestedBytes

      public long getRequestedBytes()
       Total number of bytes requested
       
      int64 requested_bytes = 1;
      Specified by:
      getRequestedBytes in interface AllocationDescriptionOrBuilder
      Returns:
      The requestedBytes.
    • setRequestedBytes

      public AllocationDescription.Builder setRequestedBytes(long value)
       Total number of bytes requested
       
      int64 requested_bytes = 1;
      Parameters:
      value - The requestedBytes to set.
      Returns:
      This builder for chaining.
    • clearRequestedBytes

      public AllocationDescription.Builder clearRequestedBytes()
       Total number of bytes requested
       
      int64 requested_bytes = 1;
      Returns:
      This builder for chaining.
    • getAllocatedBytes

      public long getAllocatedBytes()
       Total number of bytes allocated if known
       
      int64 allocated_bytes = 2;
      Specified by:
      getAllocatedBytes in interface AllocationDescriptionOrBuilder
      Returns:
      The allocatedBytes.
    • setAllocatedBytes

      public AllocationDescription.Builder setAllocatedBytes(long value)
       Total number of bytes allocated if known
       
      int64 allocated_bytes = 2;
      Parameters:
      value - The allocatedBytes to set.
      Returns:
      This builder for chaining.
    • clearAllocatedBytes

      public AllocationDescription.Builder clearAllocatedBytes()
       Total number of bytes allocated if known
       
      int64 allocated_bytes = 2;
      Returns:
      This builder for chaining.
    • getAllocatorName

      public String getAllocatorName()
       Name of the allocator used
       
      string allocator_name = 3;
      Specified by:
      getAllocatorName in interface AllocationDescriptionOrBuilder
      Returns:
      The allocatorName.
    • getAllocatorNameBytes

      public com.google.protobuf.ByteString getAllocatorNameBytes()
       Name of the allocator used
       
      string allocator_name = 3;
      Specified by:
      getAllocatorNameBytes in interface AllocationDescriptionOrBuilder
      Returns:
      The bytes for allocatorName.
    • setAllocatorName

      public AllocationDescription.Builder setAllocatorName(String value)
       Name of the allocator used
       
      string allocator_name = 3;
      Parameters:
      value - The allocatorName to set.
      Returns:
      This builder for chaining.
    • clearAllocatorName

      public AllocationDescription.Builder clearAllocatorName()
       Name of the allocator used
       
      string allocator_name = 3;
      Returns:
      This builder for chaining.
    • setAllocatorNameBytes

      public AllocationDescription.Builder setAllocatorNameBytes(com.google.protobuf.ByteString value)
       Name of the allocator used
       
      string allocator_name = 3;
      Parameters:
      value - The bytes for allocatorName to set.
      Returns:
      This builder for chaining.
    • getAllocationId

      public long getAllocationId()
       Identifier of the allocated buffer if known
       
      int64 allocation_id = 4;
      Specified by:
      getAllocationId in interface AllocationDescriptionOrBuilder
      Returns:
      The allocationId.
    • setAllocationId

      public AllocationDescription.Builder setAllocationId(long value)
       Identifier of the allocated buffer if known
       
      int64 allocation_id = 4;
      Parameters:
      value - The allocationId to set.
      Returns:
      This builder for chaining.
    • clearAllocationId

      public AllocationDescription.Builder clearAllocationId()
       Identifier of the allocated buffer if known
       
      int64 allocation_id = 4;
      Returns:
      This builder for chaining.
    • getHasSingleReference

      public boolean getHasSingleReference()
       Set if this tensor only has one remaining reference
       
      bool has_single_reference = 5;
      Specified by:
      getHasSingleReference in interface AllocationDescriptionOrBuilder
      Returns:
      The hasSingleReference.
    • setHasSingleReference

      public AllocationDescription.Builder setHasSingleReference(boolean value)
       Set if this tensor only has one remaining reference
       
      bool has_single_reference = 5;
      Parameters:
      value - The hasSingleReference to set.
      Returns:
      This builder for chaining.
    • clearHasSingleReference

      public AllocationDescription.Builder clearHasSingleReference()
       Set if this tensor only has one remaining reference
       
      bool has_single_reference = 5;
      Returns:
      This builder for chaining.
    • getPtr

      public long getPtr()
       Address of the allocation.
       
      uint64 ptr = 6;
      Specified by:
      getPtr in interface AllocationDescriptionOrBuilder
      Returns:
      The ptr.
    • setPtr

      public AllocationDescription.Builder setPtr(long value)
       Address of the allocation.
       
      uint64 ptr = 6;
      Parameters:
      value - The ptr to set.
      Returns:
      This builder for chaining.
    • clearPtr

      public AllocationDescription.Builder clearPtr()
       Address of the allocation.
       
      uint64 ptr = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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