- 0.173.0 (latest)
- 0.172.0
- 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 Example.Builder extends GeneratedMessageV3.Builder<Example.Builder> implements ExampleOrBuilder
An Example is a piece of data and its annotation. For example, an image with label "house".
Protobuf type google.cloud.datalabeling.v1beta1.Example
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Example.BuilderImplements
ExampleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllAnnotations(Iterable<? extends Annotation> values)
public Example.Builder addAllAnnotations(Iterable<? extends Annotation> values)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
values | Iterable<? extends com.google.cloud.datalabeling.v1beta1.Annotation> |
Type | Description |
Example.Builder |
addAnnotations(Annotation value)
public Example.Builder addAnnotations(Annotation value)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
value | Annotation |
Type | Description |
Example.Builder |
addAnnotations(Annotation.Builder builderForValue)
public Example.Builder addAnnotations(Annotation.Builder builderForValue)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
builderForValue | Annotation.Builder |
Type | Description |
Example.Builder |
addAnnotations(int index, Annotation value)
public Example.Builder addAnnotations(int index, Annotation value)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
index | int |
value | Annotation |
Type | Description |
Example.Builder |
addAnnotations(int index, Annotation.Builder builderForValue)
public Example.Builder addAnnotations(int index, Annotation.Builder builderForValue)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
index | int |
builderForValue | Annotation.Builder |
Type | Description |
Example.Builder |
addAnnotationsBuilder()
public Annotation.Builder addAnnotationsBuilder()
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Type | Description |
Annotation.Builder |
addAnnotationsBuilder(int index)
public Annotation.Builder addAnnotationsBuilder(int index)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
index | int |
Type | Description |
Annotation.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Example.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Example.Builder |
build()
public Example build()
Type | Description |
Example |
buildPartial()
public Example buildPartial()
Type | Description |
Example |
clear()
public Example.Builder clear()
Type | Description |
Example.Builder |
clearAnnotations()
public Example.Builder clearAnnotations()
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Type | Description |
Example.Builder |
clearField(Descriptors.FieldDescriptor field)
public Example.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Example.Builder |
clearImagePayload()
public Example.Builder clearImagePayload()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;
Type | Description |
Example.Builder |
clearName()
public Example.Builder clearName()
Output only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}
string name = 1;
Type | Description |
Example.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Example.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Example.Builder |
clearPayload()
public Example.Builder clearPayload()
Type | Description |
Example.Builder |
clearTextPayload()
public Example.Builder clearTextPayload()
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;
Type | Description |
Example.Builder |
clearVideoPayload()
public Example.Builder clearVideoPayload()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;
Type | Description |
Example.Builder |
clone()
public Example.Builder clone()
Type | Description |
Example.Builder |
getAnnotations(int index)
public Annotation getAnnotations(int index)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
index | int |
Type | Description |
Annotation |
getAnnotationsBuilder(int index)
public Annotation.Builder getAnnotationsBuilder(int index)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
index | int |
Type | Description |
Annotation.Builder |
getAnnotationsBuilderList()
public List<Annotation.Builder> getAnnotationsBuilderList()
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Type | Description |
List<Builder> |
getAnnotationsCount()
public int getAnnotationsCount()
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Type | Description |
int |
getAnnotationsList()
public List<Annotation> getAnnotationsList()
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Type | Description |
List<Annotation> |
getAnnotationsOrBuilder(int index)
public AnnotationOrBuilder getAnnotationsOrBuilder(int index)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
index | int |
Type | Description |
AnnotationOrBuilder |
getAnnotationsOrBuilderList()
public List<? extends AnnotationOrBuilder> getAnnotationsOrBuilderList()
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Type | Description |
List<? extends com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder> |
getDefaultInstanceForType()
public Example getDefaultInstanceForType()
Type | Description |
Example |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
Type | Description |
ImagePayloadOrBuilder |
getName()
public String getName()
Output only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getPayloadCase()
public Example.PayloadCase getPayloadCase()
Type | Description |
Example.PayloadCase |
getTextPayload()
public TextPayload getTextPayload()
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;
Type | Description |
TextPayload | The textPayload. |
getTextPayloadBuilder()
public TextPayload.Builder getTextPayloadBuilder()
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;
Type | Description |
TextPayload.Builder |
getTextPayloadOrBuilder()
public TextPayloadOrBuilder getTextPayloadOrBuilder()
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;
Type | Description |
TextPayloadOrBuilder |
getVideoPayload()
public VideoPayload getVideoPayload()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;
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 = 7;
Type | Description |
VideoPayload.Builder |
getVideoPayloadOrBuilder()
public VideoPayloadOrBuilder getVideoPayloadOrBuilder()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;
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;
Type | Description |
boolean | Whether the imagePayload field is set. |
hasTextPayload()
public boolean hasTextPayload()
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;
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 = 7;
Type | Description |
boolean | Whether the videoPayload field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Example other)
public Example.Builder mergeFrom(Example other)
Name | Description |
other | Example |
Type | Description |
Example.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Example.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Example.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Example.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Example.Builder |
mergeImagePayload(ImagePayload value)
public Example.Builder mergeImagePayload(ImagePayload value)
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;
Name | Description |
value | ImagePayload |
Type | Description |
Example.Builder |
mergeTextPayload(TextPayload value)
public Example.Builder mergeTextPayload(TextPayload value)
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;
Name | Description |
value | TextPayload |
Type | Description |
Example.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Example.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Example.Builder |
mergeVideoPayload(VideoPayload value)
public Example.Builder mergeVideoPayload(VideoPayload value)
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;
Name | Description |
value | VideoPayload |
Type | Description |
Example.Builder |
removeAnnotations(int index)
public Example.Builder removeAnnotations(int index)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
index | int |
Type | Description |
Example.Builder |
setAnnotations(int index, Annotation value)
public Example.Builder setAnnotations(int index, Annotation value)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
index | int |
value | Annotation |
Type | Description |
Example.Builder |
setAnnotations(int index, Annotation.Builder builderForValue)
public Example.Builder setAnnotations(int index, Annotation.Builder builderForValue)
Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
Name | Description |
index | int |
builderForValue | Annotation.Builder |
Type | Description |
Example.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Example.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Example.Builder |
setImagePayload(ImagePayload value)
public Example.Builder setImagePayload(ImagePayload value)
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;
Name | Description |
value | ImagePayload |
Type | Description |
Example.Builder |
setImagePayload(ImagePayload.Builder builderForValue)
public Example.Builder setImagePayload(ImagePayload.Builder builderForValue)
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;
Name | Description |
builderForValue | ImagePayload.Builder |
Type | Description |
Example.Builder |
setName(String value)
public Example.Builder setName(String value)
Output only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
Example.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Example.Builder setNameBytes(ByteString value)
Output only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Example.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Example.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Example.Builder |
setTextPayload(TextPayload value)
public Example.Builder setTextPayload(TextPayload value)
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;
Name | Description |
value | TextPayload |
Type | Description |
Example.Builder |
setTextPayload(TextPayload.Builder builderForValue)
public Example.Builder setTextPayload(TextPayload.Builder builderForValue)
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;
Name | Description |
builderForValue | TextPayload.Builder |
Type | Description |
Example.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Example.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Example.Builder |
setVideoPayload(VideoPayload value)
public Example.Builder setVideoPayload(VideoPayload value)
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;
Name | Description |
value | VideoPayload |
Type | Description |
Example.Builder |
setVideoPayload(VideoPayload.Builder builderForValue)
public Example.Builder setVideoPayload(VideoPayload.Builder builderForValue)
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;
Name | Description |
builderForValue | VideoPayload.Builder |
Type | Description |
Example.Builder |