Class DataItemView.Builder

  • All Implemented Interfaces:
    DataItemViewOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    DataItemView

    public static final class DataItemView.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DataItemView.Builder>
    implements DataItemViewOrBuilder
     A container for a single DataItem and Annotations on it.
     
    Protobuf type google.cloud.aiplatform.v1.DataItemView
    • 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<DataItemView.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DataItemView.Builder>
      • mergeFrom

        public DataItemView.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<DataItemView.Builder>
        Throws:
        IOException
      • hasDataItem

        public boolean hasDataItem()
         The DataItem.
         
        .google.cloud.aiplatform.v1.DataItem data_item = 1;
        Specified by:
        hasDataItem in interface DataItemViewOrBuilder
        Returns:
        Whether the dataItem field is set.
      • setDataItem

        public DataItemView.Builder setDataItem​(DataItem value)
         The DataItem.
         
        .google.cloud.aiplatform.v1.DataItem data_item = 1;
      • mergeDataItem

        public DataItemView.Builder mergeDataItem​(DataItem value)
         The DataItem.
         
        .google.cloud.aiplatform.v1.DataItem data_item = 1;
      • clearDataItem

        public DataItemView.Builder clearDataItem()
         The DataItem.
         
        .google.cloud.aiplatform.v1.DataItem data_item = 1;
      • getDataItemBuilder

        public DataItem.Builder getDataItemBuilder()
         The DataItem.
         
        .google.cloud.aiplatform.v1.DataItem data_item = 1;
      • getAnnotationsList

        public List<Annotation> getAnnotationsList()
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
        Specified by:
        getAnnotationsList in interface DataItemViewOrBuilder
      • getAnnotationsCount

        public int getAnnotationsCount()
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
        Specified by:
        getAnnotationsCount in interface DataItemViewOrBuilder
      • getAnnotations

        public Annotation getAnnotations​(int index)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
        Specified by:
        getAnnotations in interface DataItemViewOrBuilder
      • setAnnotations

        public DataItemView.Builder setAnnotations​(int index,
                                                   Annotation value)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • setAnnotations

        public DataItemView.Builder setAnnotations​(int index,
                                                   Annotation.Builder builderForValue)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • addAnnotations

        public DataItemView.Builder addAnnotations​(Annotation value)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • addAnnotations

        public DataItemView.Builder addAnnotations​(int index,
                                                   Annotation value)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • addAnnotations

        public DataItemView.Builder addAnnotations​(Annotation.Builder builderForValue)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • addAnnotations

        public DataItemView.Builder addAnnotations​(int index,
                                                   Annotation.Builder builderForValue)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • addAllAnnotations

        public DataItemView.Builder addAllAnnotations​(Iterable<? extends Annotation> values)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • clearAnnotations

        public DataItemView.Builder clearAnnotations()
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • removeAnnotations

        public DataItemView.Builder removeAnnotations​(int index)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • getAnnotationsBuilder

        public Annotation.Builder getAnnotationsBuilder​(int index)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • getAnnotationsOrBuilder

        public AnnotationOrBuilder getAnnotationsOrBuilder​(int index)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
        Specified by:
        getAnnotationsOrBuilder in interface DataItemViewOrBuilder
      • getAnnotationsOrBuilderList

        public List<? extends AnnotationOrBuilder> getAnnotationsOrBuilderList()
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
        Specified by:
        getAnnotationsOrBuilderList in interface DataItemViewOrBuilder
      • addAnnotationsBuilder

        public Annotation.Builder addAnnotationsBuilder()
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • addAnnotationsBuilder

        public Annotation.Builder addAnnotationsBuilder​(int index)
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • getAnnotationsBuilderList

        public List<Annotation.Builder> getAnnotationsBuilderList()
         The Annotations on the DataItem. If too many Annotations should be returned
         for the DataItem, this field will be truncated per annotations_limit in
         request. If it was, then the has_truncated_annotations will be set to true.
         
        repeated .google.cloud.aiplatform.v1.Annotation annotations = 2;
      • getHasTruncatedAnnotations

        public boolean getHasTruncatedAnnotations()
         True if and only if the Annotations field has been truncated. It happens if
         more Annotations for this DataItem met the request's annotation_filter than
         are allowed to be returned by annotations_limit.
         Note that if Annotations field is not being returned due to field mask,
         then this field will not be set to true no matter how many Annotations are
         there.
         
        bool has_truncated_annotations = 3;
        Specified by:
        getHasTruncatedAnnotations in interface DataItemViewOrBuilder
        Returns:
        The hasTruncatedAnnotations.
      • setHasTruncatedAnnotations

        public DataItemView.Builder setHasTruncatedAnnotations​(boolean value)
         True if and only if the Annotations field has been truncated. It happens if
         more Annotations for this DataItem met the request's annotation_filter than
         are allowed to be returned by annotations_limit.
         Note that if Annotations field is not being returned due to field mask,
         then this field will not be set to true no matter how many Annotations are
         there.
         
        bool has_truncated_annotations = 3;
        Parameters:
        value - The hasTruncatedAnnotations to set.
        Returns:
        This builder for chaining.
      • clearHasTruncatedAnnotations

        public DataItemView.Builder clearHasTruncatedAnnotations()
         True if and only if the Annotations field has been truncated. It happens if
         more Annotations for this DataItem met the request's annotation_filter than
         are allowed to be returned by annotations_limit.
         Note that if Annotations field is not being returned due to field mask,
         then this field will not be set to true no matter how many Annotations are
         there.
         
        bool has_truncated_annotations = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final DataItemView.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<DataItemView.Builder>
      • mergeUnknownFields

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