Package org.tensorflow.metadata.v0
Class Annotation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
- org.tensorflow.metadata.v0.Annotation.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,AnnotationOrBuilder
- Enclosing class:
- Annotation
public static final class Annotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder> implements AnnotationOrBuilder
Additional information about the schema or about a feature.
Protobuf typetensorflow.metadata.v0.Annotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotation.BuilderaddAllComment(Iterable<String> values)Free-text comments.Annotation.BuilderaddAllExtraMetadata(Iterable<? extends com.google.protobuf.Any> values)Application-specific metadata may be attached here.Annotation.BuilderaddAllTag(Iterable<String> values)Tags can be used to mark features.Annotation.BuilderaddComment(String value)Free-text comments.Annotation.BuilderaddCommentBytes(com.google.protobuf.ByteString value)Free-text comments.Annotation.BuilderaddExtraMetadata(int index, com.google.protobuf.Any value)Application-specific metadata may be attached here.Annotation.BuilderaddExtraMetadata(int index, com.google.protobuf.Any.Builder builderForValue)Application-specific metadata may be attached here.Annotation.BuilderaddExtraMetadata(com.google.protobuf.Any value)Application-specific metadata may be attached here.Annotation.BuilderaddExtraMetadata(com.google.protobuf.Any.Builder builderForValue)Application-specific metadata may be attached here.com.google.protobuf.Any.BuilderaddExtraMetadataBuilder()Application-specific metadata may be attached here.com.google.protobuf.Any.BuilderaddExtraMetadataBuilder(int index)Application-specific metadata may be attached here.Annotation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Annotation.BuilderaddTag(String value)Tags can be used to mark features.Annotation.BuilderaddTagBytes(com.google.protobuf.ByteString value)Tags can be used to mark features.Annotationbuild()AnnotationbuildPartial()Annotation.Builderclear()Annotation.BuilderclearComment()Free-text comments.Annotation.BuilderclearExtraMetadata()Application-specific metadata may be attached here.Annotation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Annotation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Annotation.BuilderclearTag()Tags can be used to mark features.Annotation.Builderclone()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.AnnotationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.AnygetExtraMetadata(int index)Application-specific metadata may be attached here.com.google.protobuf.Any.BuildergetExtraMetadataBuilder(int index)Application-specific metadata may be attached here.List<com.google.protobuf.Any.Builder>getExtraMetadataBuilderList()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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Annotation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Annotation.BuildermergeFrom(com.google.protobuf.Message other)Annotation.BuildermergeFrom(Annotation other)Annotation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Annotation.BuilderremoveExtraMetadata(int index)Application-specific metadata may be attached here.Annotation.BuildersetComment(int index, String value)Free-text comments.Annotation.BuildersetExtraMetadata(int index, com.google.protobuf.Any value)Application-specific metadata may be attached here.Annotation.BuildersetExtraMetadata(int index, com.google.protobuf.Any.Builder builderForValue)Application-specific metadata may be attached here.Annotation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Annotation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Annotation.BuildersetTag(int index, String value)Tags can be used to mark features.Annotation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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.Builder<Annotation.Builder>
-
clear
public Annotation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
getDefaultInstanceForType
public Annotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Annotation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Annotation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Annotation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
setField
public Annotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
clearField
public Annotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
clearOneof
public Annotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
setRepeatedField
public Annotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
addRepeatedField
public Annotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
mergeFrom
public Annotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Annotation.Builder>
-
mergeFrom
public Annotation.Builder mergeFrom(Annotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
mergeFrom
public Annotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Annotation.Builder>- Throws:
IOException
-
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.
-
setTag
public Annotation.Builder setTag(int index, String value)
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;- Parameters:
index- The index to set the value at.value- The tag to set.- Returns:
- This builder for chaining.
-
addTag
public Annotation.Builder addTag(String value)
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;- Parameters:
value- The tag to add.- Returns:
- This builder for chaining.
-
addAllTag
public Annotation.Builder addAllTag(Iterable<String> values)
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;- Parameters:
values- The tag to add.- Returns:
- This builder for chaining.
-
clearTag
public Annotation.Builder clearTag()
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;- Returns:
- This builder for chaining.
-
addTagBytes
public Annotation.Builder addTagBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes of the tag to add.- Returns:
- This builder for chaining.
-
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.
-
setComment
public Annotation.Builder setComment(int index, String value)
Free-text comments. This can be used as a description of the feature, developer notes etc.
repeated string comment = 2;- Parameters:
index- The index to set the value at.value- The comment to set.- Returns:
- This builder for chaining.
-
addComment
public Annotation.Builder addComment(String value)
Free-text comments. This can be used as a description of the feature, developer notes etc.
repeated string comment = 2;- Parameters:
value- The comment to add.- Returns:
- This builder for chaining.
-
addAllComment
public Annotation.Builder addAllComment(Iterable<String> values)
Free-text comments. This can be used as a description of the feature, developer notes etc.
repeated string comment = 2;- Parameters:
values- The comment to add.- Returns:
- This builder for chaining.
-
clearComment
public Annotation.Builder clearComment()
Free-text comments. This can be used as a description of the feature, developer notes etc.
repeated string comment = 2;- Returns:
- This builder for chaining.
-
addCommentBytes
public Annotation.Builder addCommentBytes(com.google.protobuf.ByteString value)
Free-text comments. This can be used as a description of the feature, developer notes etc.
repeated string comment = 2;- Parameters:
value- The bytes of the comment to add.- Returns:
- This builder for chaining.
-
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
-
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
-
setExtraMetadata
public Annotation.Builder setExtraMetadata(int index, com.google.protobuf.Any value)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
setExtraMetadata
public Annotation.Builder setExtraMetadata(int index, com.google.protobuf.Any.Builder builderForValue)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
addExtraMetadata
public Annotation.Builder addExtraMetadata(com.google.protobuf.Any value)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
addExtraMetadata
public Annotation.Builder addExtraMetadata(int index, com.google.protobuf.Any value)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
addExtraMetadata
public Annotation.Builder addExtraMetadata(com.google.protobuf.Any.Builder builderForValue)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
addExtraMetadata
public Annotation.Builder addExtraMetadata(int index, com.google.protobuf.Any.Builder builderForValue)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
addAllExtraMetadata
public Annotation.Builder addAllExtraMetadata(Iterable<? extends com.google.protobuf.Any> values)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
clearExtraMetadata
public Annotation.Builder clearExtraMetadata()
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
removeExtraMetadata
public Annotation.Builder removeExtraMetadata(int index)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
getExtraMetadataBuilder
public com.google.protobuf.Any.Builder getExtraMetadataBuilder(int index)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
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
-
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
-
addExtraMetadataBuilder
public com.google.protobuf.Any.Builder addExtraMetadataBuilder()
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
addExtraMetadataBuilder
public com.google.protobuf.Any.Builder addExtraMetadataBuilder(int index)
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
getExtraMetadataBuilderList
public List<com.google.protobuf.Any.Builder> getExtraMetadataBuilderList()
Application-specific metadata may be attached here.
repeated .google.protobuf.Any extra_metadata = 3;
-
setUnknownFields
public final Annotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
mergeUnknownFields
public final Annotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
-