Class DataItemView.Builder (3.49.0)

public static final class DataItemView.Builder extends GeneratedMessageV3.Builder<DataItemView.Builder> implements DataItemViewOrBuilder

A container for a single DataItem and Annotations on it.

Protobuf type google.cloud.aiplatform.v1.DataItemView

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAnnotations(Iterable<? extends Annotation> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1.Annotation>
Returns
Type Description
DataItemView.Builder

addAnnotations(Annotation value)

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;

Parameter
Name Description
value Annotation
Returns
Type Description
DataItemView.Builder

addAnnotations(Annotation.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Annotation.Builder
Returns
Type Description
DataItemView.Builder

addAnnotations(int index, Annotation value)

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;

Parameters
Name Description
index int
value Annotation
Returns
Type Description
DataItemView.Builder

addAnnotations(int index, Annotation.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Annotation.Builder
Returns
Type Description
DataItemView.Builder

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;

Returns
Type Description
Annotation.Builder

addAnnotationsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
Annotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataItemView.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataItemView.Builder
Overrides

build()

public DataItemView build()
Returns
Type Description
DataItemView

buildPartial()

public DataItemView buildPartial()
Returns
Type Description
DataItemView

clear()

public DataItemView.Builder clear()
Returns
Type Description
DataItemView.Builder
Overrides

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;

Returns
Type Description
DataItemView.Builder

clearDataItem()

public DataItemView.Builder clearDataItem()

The DataItem.

.google.cloud.aiplatform.v1.DataItem data_item = 1;

Returns
Type Description
DataItemView.Builder

clearField(Descriptors.FieldDescriptor field)

public DataItemView.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataItemView.Builder
Overrides

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
Type Description
DataItemView.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataItemView.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataItemView.Builder
Overrides

clone()

public DataItemView.Builder clone()
Returns
Type Description
DataItemView.Builder
Overrides

getAnnotations(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
Annotation

getAnnotationsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
Annotation.Builder

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
int

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;

Returns
Type Description
List<Annotation>

getAnnotationsOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AnnotationOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.AnnotationOrBuilder>

getDataItem()

public DataItem getDataItem()

The DataItem.

.google.cloud.aiplatform.v1.DataItem data_item = 1;

Returns
Type Description
DataItem

The dataItem.

getDataItemBuilder()

public DataItem.Builder getDataItemBuilder()

The DataItem.

.google.cloud.aiplatform.v1.DataItem data_item = 1;

Returns
Type Description
DataItem.Builder

getDataItemOrBuilder()

public DataItemOrBuilder getDataItemOrBuilder()

The DataItem.

.google.cloud.aiplatform.v1.DataItem data_item = 1;

Returns
Type Description
DataItemOrBuilder

getDefaultInstanceForType()

public DataItemView getDefaultInstanceForType()
Returns
Type Description
DataItemView

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
boolean

The hasTruncatedAnnotations.

hasDataItem()

public boolean hasDataItem()

The DataItem.

.google.cloud.aiplatform.v1.DataItem data_item = 1;

Returns
Type Description
boolean

Whether the dataItem field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDataItem(DataItem value)

public DataItemView.Builder mergeDataItem(DataItem value)

The DataItem.

.google.cloud.aiplatform.v1.DataItem data_item = 1;

Parameter
Name Description
value DataItem
Returns
Type Description
DataItemView.Builder

mergeFrom(DataItemView other)

public DataItemView.Builder mergeFrom(DataItemView other)
Parameter
Name Description
other DataItemView
Returns
Type Description
DataItemView.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataItemView.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataItemView.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataItemView.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataItemView.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataItemView.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataItemView.Builder
Overrides

removeAnnotations(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
DataItemView.Builder

setAnnotations(int index, Annotation value)

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;

Parameters
Name Description
index int
value Annotation
Returns
Type Description
DataItemView.Builder

setAnnotations(int index, Annotation.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Annotation.Builder
Returns
Type Description
DataItemView.Builder

setDataItem(DataItem value)

public DataItemView.Builder setDataItem(DataItem value)

The DataItem.

.google.cloud.aiplatform.v1.DataItem data_item = 1;

Parameter
Name Description
value DataItem
Returns
Type Description
DataItemView.Builder

setDataItem(DataItem.Builder builderForValue)

public DataItemView.Builder setDataItem(DataItem.Builder builderForValue)

The DataItem.

.google.cloud.aiplatform.v1.DataItem data_item = 1;

Parameter
Name Description
builderForValue DataItem.Builder
Returns
Type Description
DataItemView.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DataItemView.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataItemView.Builder
Overrides

setHasTruncatedAnnotations(boolean value)

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;

Parameter
Name Description
value boolean

The hasTruncatedAnnotations to set.

Returns
Type Description
DataItemView.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataItemView.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataItemView.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DataItemView.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataItemView.Builder
Overrides