Package tensorflow

Class Struct.TypeSpecProto.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Struct.TypeSpecProto.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Struct.TypeSpecProto.Builder>
tensorflow.Struct.TypeSpecProto.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Struct.TypeSpecProtoOrBuilder
Enclosing class:
Struct.TypeSpecProto

public static final class Struct.TypeSpecProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Struct.TypeSpecProto.Builder> implements Struct.TypeSpecProtoOrBuilder
 Represents a tf.TypeSpec
 
Protobuf type tensorflow.TypeSpecProto
  • 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<Struct.TypeSpecProto.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<Struct.TypeSpecProto.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<Struct.TypeSpecProto.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public Struct.TypeSpecProto.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<Struct.TypeSpecProto.Builder>
      Throws:
      IOException
    • getTypeSpecClassValue

      public int getTypeSpecClassValue()
      .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;
      Specified by:
      getTypeSpecClassValue in interface Struct.TypeSpecProtoOrBuilder
      Returns:
      The enum numeric value on the wire for typeSpecClass.
    • setTypeSpecClassValue

      public Struct.TypeSpecProto.Builder setTypeSpecClassValue(int value)
      .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;
      Parameters:
      value - The enum numeric value on the wire for typeSpecClass to set.
      Returns:
      This builder for chaining.
    • getTypeSpecClass

      public Struct.TypeSpecProto.TypeSpecClass getTypeSpecClass()
      .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;
      Specified by:
      getTypeSpecClass in interface Struct.TypeSpecProtoOrBuilder
      Returns:
      The typeSpecClass.
    • setTypeSpecClass

      .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;
      Parameters:
      value - The typeSpecClass to set.
      Returns:
      This builder for chaining.
    • clearTypeSpecClass

      public Struct.TypeSpecProto.Builder clearTypeSpecClass()
      .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;
      Returns:
      This builder for chaining.
    • hasTypeState

      public boolean hasTypeState()
       The value returned by TypeSpec._serialize().
       
      .tensorflow.StructuredValue type_state = 2;
      Specified by:
      hasTypeState in interface Struct.TypeSpecProtoOrBuilder
      Returns:
      Whether the typeState field is set.
    • getTypeState

      public Struct.StructuredValue getTypeState()
       The value returned by TypeSpec._serialize().
       
      .tensorflow.StructuredValue type_state = 2;
      Specified by:
      getTypeState in interface Struct.TypeSpecProtoOrBuilder
      Returns:
      The typeState.
    • setTypeState

       The value returned by TypeSpec._serialize().
       
      .tensorflow.StructuredValue type_state = 2;
    • setTypeState

      public Struct.TypeSpecProto.Builder setTypeState(Struct.StructuredValue.Builder builderForValue)
       The value returned by TypeSpec._serialize().
       
      .tensorflow.StructuredValue type_state = 2;
    • mergeTypeState

       The value returned by TypeSpec._serialize().
       
      .tensorflow.StructuredValue type_state = 2;
    • clearTypeState

      public Struct.TypeSpecProto.Builder clearTypeState()
       The value returned by TypeSpec._serialize().
       
      .tensorflow.StructuredValue type_state = 2;
    • getTypeStateBuilder

      public Struct.StructuredValue.Builder getTypeStateBuilder()
       The value returned by TypeSpec._serialize().
       
      .tensorflow.StructuredValue type_state = 2;
    • getTypeStateOrBuilder

      public Struct.StructuredValueOrBuilder getTypeStateOrBuilder()
       The value returned by TypeSpec._serialize().
       
      .tensorflow.StructuredValue type_state = 2;
      Specified by:
      getTypeStateOrBuilder in interface Struct.TypeSpecProtoOrBuilder
    • getTypeSpecClassName

      public String getTypeSpecClassName()
       The name of the TypeSpec class.
        * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
          the one registered under this name. For types registered outside
          core TensorFlow by an add-on library, that library must be loaded
          before this value can be deserialized by nested_structure_coder.
        * If type_spec_class specifies a particular TypeSpec class, this field is
          redundant with the type_spec_class enum, and is only used for error
          reporting in older binaries that do not know the tupe_spec_class enum.
       
      string type_spec_class_name = 3;
      Specified by:
      getTypeSpecClassName in interface Struct.TypeSpecProtoOrBuilder
      Returns:
      The typeSpecClassName.
    • getTypeSpecClassNameBytes

      public com.google.protobuf.ByteString getTypeSpecClassNameBytes()
       The name of the TypeSpec class.
        * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
          the one registered under this name. For types registered outside
          core TensorFlow by an add-on library, that library must be loaded
          before this value can be deserialized by nested_structure_coder.
        * If type_spec_class specifies a particular TypeSpec class, this field is
          redundant with the type_spec_class enum, and is only used for error
          reporting in older binaries that do not know the tupe_spec_class enum.
       
      string type_spec_class_name = 3;
      Specified by:
      getTypeSpecClassNameBytes in interface Struct.TypeSpecProtoOrBuilder
      Returns:
      The bytes for typeSpecClassName.
    • setTypeSpecClassName

      public Struct.TypeSpecProto.Builder setTypeSpecClassName(String value)
       The name of the TypeSpec class.
        * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
          the one registered under this name. For types registered outside
          core TensorFlow by an add-on library, that library must be loaded
          before this value can be deserialized by nested_structure_coder.
        * If type_spec_class specifies a particular TypeSpec class, this field is
          redundant with the type_spec_class enum, and is only used for error
          reporting in older binaries that do not know the tupe_spec_class enum.
       
      string type_spec_class_name = 3;
      Parameters:
      value - The typeSpecClassName to set.
      Returns:
      This builder for chaining.
    • clearTypeSpecClassName

      public Struct.TypeSpecProto.Builder clearTypeSpecClassName()
       The name of the TypeSpec class.
        * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
          the one registered under this name. For types registered outside
          core TensorFlow by an add-on library, that library must be loaded
          before this value can be deserialized by nested_structure_coder.
        * If type_spec_class specifies a particular TypeSpec class, this field is
          redundant with the type_spec_class enum, and is only used for error
          reporting in older binaries that do not know the tupe_spec_class enum.
       
      string type_spec_class_name = 3;
      Returns:
      This builder for chaining.
    • setTypeSpecClassNameBytes

      public Struct.TypeSpecProto.Builder setTypeSpecClassNameBytes(com.google.protobuf.ByteString value)
       The name of the TypeSpec class.
        * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
          the one registered under this name. For types registered outside
          core TensorFlow by an add-on library, that library must be loaded
          before this value can be deserialized by nested_structure_coder.
        * If type_spec_class specifies a particular TypeSpec class, this field is
          redundant with the type_spec_class enum, and is only used for error
          reporting in older binaries that do not know the tupe_spec_class enum.
       
      string type_spec_class_name = 3;
      Parameters:
      value - The bytes for typeSpecClassName to set.
      Returns:
      This builder for chaining.
    • getNumFlatComponents

      public int getNumFlatComponents()
       The number of flat tensor components required by this TypeSpec.
       
      int32 num_flat_components = 4;
      Specified by:
      getNumFlatComponents in interface Struct.TypeSpecProtoOrBuilder
      Returns:
      The numFlatComponents.
    • setNumFlatComponents

      public Struct.TypeSpecProto.Builder setNumFlatComponents(int value)
       The number of flat tensor components required by this TypeSpec.
       
      int32 num_flat_components = 4;
      Parameters:
      value - The numFlatComponents to set.
      Returns:
      This builder for chaining.
    • clearNumFlatComponents

      public Struct.TypeSpecProto.Builder clearNumFlatComponents()
       The number of flat tensor components required by this TypeSpec.
       
      int32 num_flat_components = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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