Package tensorflow

Class Struct.TypeSpecProto

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

public static final class Struct.TypeSpecProto extends com.google.protobuf.GeneratedMessageV3 implements Struct.TypeSpecProtoOrBuilder
 Represents a tf.TypeSpec
 
Protobuf type tensorflow.TypeSpecProto
See Also:
  • Field Details

    • TYPE_SPEC_CLASS_FIELD_NUMBER

      public static final int TYPE_SPEC_CLASS_FIELD_NUMBER
      See Also:
    • TYPE_STATE_FIELD_NUMBER

      public static final int TYPE_STATE_FIELD_NUMBER
      See Also:
    • TYPE_SPEC_CLASS_NAME_FIELD_NUMBER

      public static final int TYPE_SPEC_CLASS_NAME_FIELD_NUMBER
      See Also:
    • NUM_FLAT_COMPONENTS_FIELD_NUMBER

      public static final int NUM_FLAT_COMPONENTS_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • getTypeSpecClass

      public Struct.TypeSpecProto.TypeSpecClass getTypeSpecClass()
      .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;
      Specified by:
      getTypeSpecClass in interface Struct.TypeSpecProtoOrBuilder
      Returns:
      The typeSpecClass.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Struct.TypeSpecProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Struct.TypeSpecProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Struct.TypeSpecProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Struct.TypeSpecProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Struct.TypeSpecProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Struct.TypeSpecProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Struct.TypeSpecProto parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Struct.TypeSpecProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Struct.TypeSpecProto parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Struct.TypeSpecProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Struct.TypeSpecProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Struct.TypeSpecProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Struct.TypeSpecProto.Builder newBuilder()
    • newBuilder

      public static Struct.TypeSpecProto.Builder newBuilder(Struct.TypeSpecProto prototype)
    • toBuilder

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

      protected Struct.TypeSpecProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Struct.TypeSpecProto getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Struct.TypeSpecProto> parser()
    • getParserForType

      public com.google.protobuf.Parser<Struct.TypeSpecProto> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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