Class DataItemView.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataItemView.Builder>
com.google.cloud.aiplatform.v1.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.GeneratedMessage.Builder<DataItemView.Builder> implements DataItemViewOrBuilder
 A container for a single DataItem and Annotations on it.
 
Protobuf type google.cloud.aiplatform.v1.DataItemView
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public DataItemView.Builder mergeFrom(DataItemView other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.
    • getDataItem

      public DataItem getDataItem()
       The DataItem.
       
      .google.cloud.aiplatform.v1.DataItem data_item = 1;
      Specified by:
      getDataItem in interface DataItemViewOrBuilder
      Returns:
      The dataItem.
    • setDataItem

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

      public DataItemView.Builder setDataItem(DataItem.Builder builderForValue)
       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;
    • getDataItemOrBuilder

      public DataItemOrBuilder getDataItemOrBuilder()
       The DataItem.
       
      .google.cloud.aiplatform.v1.DataItem data_item = 1;
      Specified by:
      getDataItemOrBuilder in interface DataItemViewOrBuilder
    • 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.