Class DataItem.Builder (0.147.0)

public static final class DataItem.Builder extends GeneratedMessageV3.Builder<DataItem.Builder> implements DataItemOrBuilder

DataItem is a piece of data, without annotation. For example, an image.

Protobuf type google.cloud.datalabeling.v1beta1.DataItem

Implements

DataItemOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataItem.Builder
Overrides

build()

public DataItem build()
Returns
TypeDescription
DataItem

buildPartial()

public DataItem buildPartial()
Returns
TypeDescription
DataItem

clear()

public DataItem.Builder clear()
Returns
TypeDescription
DataItem.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DataItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DataItem.Builder
Overrides

clearImagePayload()

public DataItem.Builder clearImagePayload()

The image payload, a container of the image bytes/uri.

.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;

Returns
TypeDescription
DataItem.Builder

clearName()

public DataItem.Builder clearName()

Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}

string name = 1;

Returns
TypeDescription
DataItem.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DataItem.Builder
Overrides

clearPayload()

public DataItem.Builder clearPayload()
Returns
TypeDescription
DataItem.Builder

clearTextPayload()

public DataItem.Builder clearTextPayload()

The text payload, a container of text content.

.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;

Returns
TypeDescription
DataItem.Builder

clearVideoPayload()

public DataItem.Builder clearVideoPayload()

The video payload, a container of the video uri.

.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;

Returns
TypeDescription
DataItem.Builder

clone()

public DataItem.Builder clone()
Returns
TypeDescription
DataItem.Builder
Overrides

getDefaultInstanceForType()

public DataItem getDefaultInstanceForType()
Returns
TypeDescription
DataItem

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImagePayload()

public ImagePayload getImagePayload()

The image payload, a container of the image bytes/uri.

.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;

Returns
TypeDescription
ImagePayload

The imagePayload.

getImagePayloadBuilder()

public ImagePayload.Builder getImagePayloadBuilder()

The image payload, a container of the image bytes/uri.

.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;

Returns
TypeDescription
ImagePayload.Builder

getImagePayloadOrBuilder()

public ImagePayloadOrBuilder getImagePayloadOrBuilder()

The image payload, a container of the image bytes/uri.

.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;

Returns
TypeDescription
ImagePayloadOrBuilder

getName()

public String getName()

Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPayloadCase()

public DataItem.PayloadCase getPayloadCase()
Returns
TypeDescription
DataItem.PayloadCase

getTextPayload()

public TextPayload getTextPayload()

The text payload, a container of text content.

.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;

Returns
TypeDescription
TextPayload

The textPayload.

getTextPayloadBuilder()

public TextPayload.Builder getTextPayloadBuilder()

The text payload, a container of text content.

.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;

Returns
TypeDescription
TextPayload.Builder

getTextPayloadOrBuilder()

public TextPayloadOrBuilder getTextPayloadOrBuilder()

The text payload, a container of text content.

.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;

Returns
TypeDescription
TextPayloadOrBuilder

getVideoPayload()

public VideoPayload getVideoPayload()

The video payload, a container of the video uri.

.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;

Returns
TypeDescription
VideoPayload

The videoPayload.

getVideoPayloadBuilder()

public VideoPayload.Builder getVideoPayloadBuilder()

The video payload, a container of the video uri.

.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;

Returns
TypeDescription
VideoPayload.Builder

getVideoPayloadOrBuilder()

public VideoPayloadOrBuilder getVideoPayloadOrBuilder()

The video payload, a container of the video uri.

.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;

Returns
TypeDescription
VideoPayloadOrBuilder

hasImagePayload()

public boolean hasImagePayload()

The image payload, a container of the image bytes/uri.

.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;

Returns
TypeDescription
boolean

Whether the imagePayload field is set.

hasTextPayload()

public boolean hasTextPayload()

The text payload, a container of text content.

.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;

Returns
TypeDescription
boolean

Whether the textPayload field is set.

hasVideoPayload()

public boolean hasVideoPayload()

The video payload, a container of the video uri.

.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;

Returns
TypeDescription
boolean

Whether the videoPayload field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataItem other)

public DataItem.Builder mergeFrom(DataItem other)
Parameter
NameDescription
otherDataItem
Returns
TypeDescription
DataItem.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataItem.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DataItem.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DataItem.Builder
Overrides

mergeImagePayload(ImagePayload value)

public DataItem.Builder mergeImagePayload(ImagePayload value)

The image payload, a container of the image bytes/uri.

.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;

Parameter
NameDescription
valueImagePayload
Returns
TypeDescription
DataItem.Builder

mergeTextPayload(TextPayload value)

public DataItem.Builder mergeTextPayload(TextPayload value)

The text payload, a container of text content.

.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;

Parameter
NameDescription
valueTextPayload
Returns
TypeDescription
DataItem.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataItem.Builder
Overrides

mergeVideoPayload(VideoPayload value)

public DataItem.Builder mergeVideoPayload(VideoPayload value)

The video payload, a container of the video uri.

.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;

Parameter
NameDescription
valueVideoPayload
Returns
TypeDescription
DataItem.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DataItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataItem.Builder
Overrides

setImagePayload(ImagePayload value)

public DataItem.Builder setImagePayload(ImagePayload value)

The image payload, a container of the image bytes/uri.

.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;

Parameter
NameDescription
valueImagePayload
Returns
TypeDescription
DataItem.Builder

setImagePayload(ImagePayload.Builder builderForValue)

public DataItem.Builder setImagePayload(ImagePayload.Builder builderForValue)

The image payload, a container of the image bytes/uri.

.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;

Parameter
NameDescription
builderForValueImagePayload.Builder
Returns
TypeDescription
DataItem.Builder

setName(String value)

public DataItem.Builder setName(String value)

Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DataItem.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataItem.Builder setNameBytes(ByteString value)

Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DataItem.Builder

This builder for chaining.

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

public DataItem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DataItem.Builder
Overrides

setTextPayload(TextPayload value)

public DataItem.Builder setTextPayload(TextPayload value)

The text payload, a container of text content.

.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;

Parameter
NameDescription
valueTextPayload
Returns
TypeDescription
DataItem.Builder

setTextPayload(TextPayload.Builder builderForValue)

public DataItem.Builder setTextPayload(TextPayload.Builder builderForValue)

The text payload, a container of text content.

.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;

Parameter
NameDescription
builderForValueTextPayload.Builder
Returns
TypeDescription
DataItem.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DataItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataItem.Builder
Overrides

setVideoPayload(VideoPayload value)

public DataItem.Builder setVideoPayload(VideoPayload value)

The video payload, a container of the video uri.

.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;

Parameter
NameDescription
valueVideoPayload
Returns
TypeDescription
DataItem.Builder

setVideoPayload(VideoPayload.Builder builderForValue)

public DataItem.Builder setVideoPayload(VideoPayload.Builder builderForValue)

The video payload, a container of the video uri.

.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;

Parameter
NameDescription
builderForValueVideoPayload.Builder
Returns
TypeDescription
DataItem.Builder