- 0.172.0 (latest)
- 0.171.0
- 0.169.0
- 0.168.0
- 0.167.0
- 0.166.0
- 0.165.0
- 0.164.0
- 0.163.0
- 0.162.0
- 0.161.0
- 0.160.0
- 0.159.0
- 0.157.0
- 0.156.0
- 0.155.0
- 0.154.0
- 0.153.0
- 0.152.0
- 0.151.0
- 0.150.0
- 0.149.0
- 0.148.0
- 0.147.0
- 0.144.0
- 0.143.0
- 0.142.0
- 0.141.0
- 0.140.0
- 0.139.0
- 0.138.0
- 0.137.0
- 0.136.0
- 0.135.0
- 0.134.0
- 0.133.0
- 0.132.0
- 0.131.0
- 0.129.0
- 0.128.0
- 0.127.0
- 0.126.0
- 0.125.0
- 0.124.0
- 0.123.7
- 0.122.11
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DataItem.BuilderImplements
DataItemOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DataItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
build()
public DataItem build()
Returns | |
---|---|
Type | Description |
DataItem |
buildPartial()
public DataItem buildPartial()
Returns | |
---|---|
Type | Description |
DataItem |
clear()
public DataItem.Builder clear()
Returns | |
---|---|
Type | Description |
DataItem.Builder |
clearField(Descriptors.FieldDescriptor field)
public DataItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
clearImagePayload()
public DataItem.Builder clearImagePayload()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
DataItem.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DataItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
clearPayload()
public DataItem.Builder clearPayload()
Returns | |
---|---|
Type | Description |
DataItem.Builder |
clearTextPayload()
public DataItem.Builder clearTextPayload()
The text payload, a container of text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
DataItem.Builder |
clone()
public DataItem.Builder clone()
Returns | |
---|---|
Type | Description |
DataItem.Builder |
getDefaultInstanceForType()
public DataItem getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
DataItem |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getImagePayload()
public ImagePayload getImagePayload()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getPayloadCase()
public DataItem.PayloadCase getPayloadCase()
Returns | |
---|---|
Type | Description |
DataItem.PayloadCase |
getTextPayload()
public TextPayload getTextPayload()
The text payload, a container of text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TextPayload.Builder |
getTextPayloadOrBuilder()
public TextPayloadOrBuilder getTextPayloadOrBuilder()
The text payload, a container of text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;
Returns | |
---|---|
Type | Description |
TextPayloadOrBuilder |
getVideoPayload()
public VideoPayload getVideoPayload()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
VideoPayload.Builder |
getVideoPayloadOrBuilder()
public VideoPayloadOrBuilder getVideoPayloadOrBuilder()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;
Returns | |
---|---|
Type | Description |
VideoPayloadOrBuilder |
hasImagePayload()
public boolean hasImagePayload()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the videoPayload field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(DataItem other)
public DataItem.Builder mergeFrom(DataItem other)
Parameter | |
---|---|
Name | Description |
other | DataItem |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DataItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DataItem.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
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 | |
---|---|
Name | Description |
value | ImagePayload |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | TextPayload |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DataItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
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 | |
---|---|
Name | Description |
value | VideoPayload |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public DataItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
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 | |
---|---|
Name | Description |
value | ImagePayload |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | ImagePayload.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
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 | |
---|---|
Name | Description |
value | TextPayload |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | TextPayload.Builder |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DataItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DataItem.Builder |
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 | |
---|---|
Name | Description |
value | VideoPayload |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | VideoPayload.Builder |
Returns | |
---|---|
Type | Description |
DataItem.Builder |