Class VariantTensorDataProto.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<VariantTensorDataProto.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
org.tensorflow.framework.VariantTensorDataProto.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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 tensorflow.VariantTensorDataProto
  • 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<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

      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, 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, 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, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
    • mergeFrom

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

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

      public 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(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.
    • getTensorsList

      public List<TensorProto> getTensorsList()
       Tensors contained within objects being serialized.
       
      repeated .tensorflow.TensorProto tensors = 3;
      Specified by:
      getTensorsList in interface VariantTensorDataProtoOrBuilder
    • getTensorsCount

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

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

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

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

      public VariantTensorDataProto.Builder addTensors(TensorProto value)
       Tensors contained within objects being serialized.
       
      repeated .tensorflow.TensorProto tensors = 3;
    • addTensors

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

      public VariantTensorDataProto.Builder addTensors(TensorProto.Builder builderForValue)
       Tensors contained within objects being serialized.
       
      repeated .tensorflow.TensorProto tensors = 3;
    • addTensors

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

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

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

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

      public TensorProto.Builder getTensorsBuilder(int index)
       Tensors contained within objects being serialized.
       
      repeated .tensorflow.TensorProto tensors = 3;
    • getTensorsOrBuilder

      public TensorProtoOrBuilder getTensorsOrBuilder(int index)
       Tensors contained within objects being serialized.
       
      repeated .tensorflow.TensorProto tensors = 3;
      Specified by:
      getTensorsOrBuilder in interface VariantTensorDataProtoOrBuilder
    • getTensorsOrBuilderList

      public List<? extends TensorProtoOrBuilder> getTensorsOrBuilderList()
       Tensors contained within objects being serialized.
       
      repeated .tensorflow.TensorProto tensors = 3;
      Specified by:
      getTensorsOrBuilderList in interface VariantTensorDataProtoOrBuilder
    • addTensorsBuilder

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

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

      public List<TensorProto.Builder> getTensorsBuilderList()
       Tensors contained within objects being serialized.
       
      repeated .tensorflow.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>