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.TypeSpecProtobuf type
tensorflow.TypeSpecProto- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a tf.TypeSpecstatic enumProtobuf enumtensorflow.TypeSpecProto.TypeSpecClassNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Struct.TypeSpecProtostatic final com.google.protobuf.Descriptors.DescriptorintThe number of flat tensor components required by this TypeSpec.com.google.protobuf.Parser<Struct.TypeSpecProto> int.tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;The name of the TypeSpec classcom.google.protobuf.ByteStringThe name of the TypeSpec classint.tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;The value returned by TypeSpec.The value returned by TypeSpec.inthashCode()booleanThe value returned by TypeSpec.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Struct.TypeSpecProto.Builderstatic Struct.TypeSpecProto.BuildernewBuilder(Struct.TypeSpecProto prototype) protected Struct.TypeSpecProto.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Struct.TypeSpecProtoparseDelimitedFrom(InputStream input) static Struct.TypeSpecProtoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Struct.TypeSpecProtoparseFrom(byte[] data) static Struct.TypeSpecProtoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Struct.TypeSpecProtoparseFrom(com.google.protobuf.ByteString data) static Struct.TypeSpecProtoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Struct.TypeSpecProtoparseFrom(com.google.protobuf.CodedInputStream input) static Struct.TypeSpecProtoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Struct.TypeSpecProtoparseFrom(InputStream input) static Struct.TypeSpecProtoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Struct.TypeSpecProtoparseFrom(ByteBuffer data) static Struct.TypeSpecProtoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Struct.TypeSpecProto> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTypeSpecClassValue
public int getTypeSpecClassValue().tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;- Specified by:
getTypeSpecClassValuein interfaceStruct.TypeSpecProtoOrBuilder- Returns:
- The enum numeric value on the wire for typeSpecClass.
-
getTypeSpecClass
.tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;- Specified by:
getTypeSpecClassin interfaceStruct.TypeSpecProtoOrBuilder- Returns:
- The typeSpecClass.
-
hasTypeState
public boolean hasTypeState()The value returned by TypeSpec._serialize().
.tensorflow.StructuredValue type_state = 2;- Specified by:
hasTypeStatein interfaceStruct.TypeSpecProtoOrBuilder- Returns:
- Whether the typeState field is set.
-
getTypeState
The value returned by TypeSpec._serialize().
.tensorflow.StructuredValue type_state = 2;- Specified by:
getTypeStatein interfaceStruct.TypeSpecProtoOrBuilder- Returns:
- The typeState.
-
getTypeStateOrBuilder
The value returned by TypeSpec._serialize().
.tensorflow.StructuredValue type_state = 2;- Specified by:
getTypeStateOrBuilderin interfaceStruct.TypeSpecProtoOrBuilder
-
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:
getTypeSpecClassNamein interfaceStruct.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:
getTypeSpecClassNameBytesin interfaceStruct.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:
getNumFlatComponentsin interfaceStruct.TypeSpecProtoOrBuilder- Returns:
- The numFlatComponents.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Struct.TypeSpecProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Struct.TypeSpecProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-