Package org.tensorflow.metadata.v0
Class Annotation
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.tensorflow.metadata.v0.Annotation
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,AnnotationOrBuilder
public final class Annotation extends com.google.protobuf.GeneratedMessageV3 implements AnnotationOrBuilder
Additional information about the schema or about a feature.
Protobuf typetensorflow.metadata.v0.Annotation- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotation.BuilderAdditional information about the schema or about a feature.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMMENT_FIELD_NUMBERstatic intEXTRA_METADATA_FIELD_NUMBERstatic com.google.protobuf.Parser<Annotation>PARSERDeprecated.static intTAG_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetComment(int index)Free-text comments.com.google.protobuf.ByteStringgetCommentBytes(int index)Free-text comments.intgetCommentCount()Free-text comments.com.google.protobuf.ProtocolStringListgetCommentList()Free-text comments.static AnnotationgetDefaultInstance()AnnotationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.AnygetExtraMetadata(int index)Application-specific metadata may be attached here.intgetExtraMetadataCount()Application-specific metadata may be attached here.List<com.google.protobuf.Any>getExtraMetadataList()Application-specific metadata may be attached here.com.google.protobuf.AnyOrBuildergetExtraMetadataOrBuilder(int index)Application-specific metadata may be attached here.List<? extends com.google.protobuf.AnyOrBuilder>getExtraMetadataOrBuilderList()Application-specific metadata may be attached here.com.google.protobuf.Parser<Annotation>getParserForType()intgetSerializedSize()StringgetTag(int index)Tags can be used to mark features.com.google.protobuf.ByteStringgetTagBytes(int index)Tags can be used to mark features.intgetTagCount()Tags can be used to mark features.com.google.protobuf.ProtocolStringListgetTagList()Tags can be used to mark features.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Annotation.BuildernewBuilder()static Annotation.BuildernewBuilder(Annotation prototype)Annotation.BuildernewBuilderForType()protected Annotation.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AnnotationparseDelimitedFrom(InputStream input)static AnnotationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotationparseFrom(byte[] data)static AnnotationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotationparseFrom(com.google.protobuf.ByteString data)static AnnotationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotationparseFrom(com.google.protobuf.CodedInputStream input)static AnnotationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotationparseFrom(InputStream input)static AnnotationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotationparseFrom(ByteBuffer data)static AnnotationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Annotation>parser()Annotation.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMMENT_FIELD_NUMBER
public static final int COMMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTRA_METADATA_FIELD_NUMBER
public static final int EXTRA_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Annotation> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
-
getTagList
public com.google.protobuf.ProtocolStringList getTagList()
Tags can be used to mark features. For example, tag on user_age feature can be `user_feature`, tag on user_country feature can be `location_feature`, `user_feature`.
repeated string tag = 1;- Specified by:
getTagListin interfaceAnnotationOrBuilder- Returns:
- A list containing the tag.
-
getTagCount
public int getTagCount()
Tags can be used to mark features. For example, tag on user_age feature can be `user_feature`, tag on user_country feature can be `location_feature`, `user_feature`.
repeated string tag = 1;- Specified by:
getTagCountin interfaceAnnotationOrBuilder- Returns:
- The count of tag.
-
getTag
public String getTag(int index)
Tags can be used to mark features. For example, tag on user_age feature can be `user_feature`, tag on user_country feature can be `location_feature`, `user_feature`.
repeated string tag = 1;- Specified by:
getTagin interfaceAnnotationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tag at the given index.
-
getTagBytes
public com.google.protobuf.ByteString getTagBytes(int index)
Tags can be used to mark features. For example, tag on user_age feature can be `user_feature`, tag on user_country feature can be `location_feature`, `user_feature`.
repeated string tag = 1;- Specified by:
getTagBytesin interfaceAnnotationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tag at the given index.
-
getCommentList
public com.google.protobuf.ProtocolStringList getCommentList()
Free-text comments. This can be used as a description of the feature, developer notes etc.
repeated string comment = 2;- Specified by:
getCommentListin interfaceAnnotationOrBuilder- Returns:
- A list containing the comment.
-
getCommentCount
public int getCommentCount()
Free-text comments. This can be used as a description of the feature, developer notes etc.
repeated string comment = 2;- Specified by:
getCommentCountin interfaceAnnotationOrBuilder- Returns:
- The count of comment.
-
getComment
public String getComment(int index)
Free-text comments. This can be used as a description of the feature, developer notes etc.
repeated string comment = 2;- Specified by:
getCommentin interfaceAnnotationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The comment at the given index.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes(int index)
Free-text comments. This can be used as a description of the feature, developer notes etc.
repeated string comment = 2;- Specified by:
getCommentBytesin interfaceAnnotationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the comment at the given index.
-
getExtraMetadataList
public List<com.google.protobuf.Any> getExtraMetadataList()
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;- Specified by:
getExtraMetadataListin interfaceAnnotationOrBuilder
-
getExtraMetadataOrBuilderList
public List<? extends com.google.protobuf.AnyOrBuilder> getExtraMetadataOrBuilderList()
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;- Specified by:
getExtraMetadataOrBuilderListin interfaceAnnotationOrBuilder
-
getExtraMetadataCount
public int getExtraMetadataCount()
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;- Specified by:
getExtraMetadataCountin interfaceAnnotationOrBuilder
-
getExtraMetadata
public com.google.protobuf.Any getExtraMetadata(int index)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;- Specified by:
getExtraMetadatain interfaceAnnotationOrBuilder
-
getExtraMetadataOrBuilder
public com.google.protobuf.AnyOrBuilder getExtraMetadataOrBuilder(int index)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;- Specified by:
getExtraMetadataOrBuilderin interfaceAnnotationOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- 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 Annotation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Annotation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Annotation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Annotation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Annotation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Annotation parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Annotation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Annotation parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Annotation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Annotation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Annotation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Annotation.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Annotation.Builder newBuilder()
-
newBuilder
public static Annotation.Builder newBuilder(Annotation prototype)
-
toBuilder
public Annotation.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Annotation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Annotation getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Annotation> parser()
-
getParserForType
public com.google.protobuf.Parser<Annotation> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Annotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-