Class 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 type tensorflow.metadata.v0.Annotation
    • Method Detail

      • 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<Annotation.Builder>
      • clear

        public Annotation.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<Annotation.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<Annotation.Builder>
      • getDefaultInstanceForType

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

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

        public Annotation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

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

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

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

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

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

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

        public Annotation.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<Annotation.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        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<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:
        getTagList in interface AnnotationOrBuilder
        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:
        getTagCount in interface AnnotationOrBuilder
        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:
        getTag in interface AnnotationOrBuilder
        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:
        getTagBytes in interface AnnotationOrBuilder
        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:
        getCommentList in interface AnnotationOrBuilder
        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:
        getCommentCount in interface AnnotationOrBuilder
        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:
        getComment in interface AnnotationOrBuilder
        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:
        getCommentBytes in interface AnnotationOrBuilder
        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:
        getExtraMetadataList in interface AnnotationOrBuilder
      • getExtraMetadataCount

        public int getExtraMetadataCount()
         Application-specific metadata may be attached here.
         
        repeated .google.protobuf.Any extra_metadata = 3;
        Specified by:
        getExtraMetadataCount in interface AnnotationOrBuilder
      • 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:
        getExtraMetadata in interface AnnotationOrBuilder
      • 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:
        getExtraMetadataOrBuilder in interface AnnotationOrBuilder
      • 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:
        getExtraMetadataOrBuilderList in interface AnnotationOrBuilder
      • 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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
      • mergeUnknownFields

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