public static final class Example.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
Example.Builder |
addAllAnnotations(Iterable<? extends Annotation> values)
Output only.
|
Example.Builder |
addAnnotations(Annotation.Builder builderForValue)
Output only.
|
Example.Builder |
addAnnotations(Annotation value)
Output only.
|
Example.Builder |
addAnnotations(int index,
Annotation.Builder builderForValue)
Output only.
|
Example.Builder |
addAnnotations(int index,
Annotation value)
Output only.
|
Annotation.Builder |
addAnnotationsBuilder()
Output only.
|
Annotation.Builder |
addAnnotationsBuilder(int index)
Output only.
|
Example.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Example |
build() |
Example |
buildPartial() |
Example.Builder |
clear() |
Example.Builder |
clearAnnotations()
Output only.
|
Example.Builder |
clearAudioPayload()
The audio payload, a container of the audio uri.
|
Example.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Example.Builder |
clearImagePayload()
The image payload, a container of the image bytes/uri.
|
Example.Builder |
clearName()
Output only.
|
Example.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Example.Builder |
clearPayload() |
Example.Builder |
clearTextPayload()
The text payload, a container of the text content.
|
Example.Builder |
clearVideoPayload()
The video payload, a container of the video uri.
|
Example.Builder |
clone() |
Annotation |
getAnnotations(int index)
Output only.
|
Annotation.Builder |
getAnnotationsBuilder(int index)
Output only.
|
List<Annotation.Builder> |
getAnnotationsBuilderList()
Output only.
|
int |
getAnnotationsCount()
Output only.
|
List<Annotation> |
getAnnotationsList()
Output only.
|
AnnotationOrBuilder |
getAnnotationsOrBuilder(int index)
Output only.
|
List<? extends AnnotationOrBuilder> |
getAnnotationsOrBuilderList()
Output only.
|
AudioPayload |
getAudioPayload()
The audio payload, a container of the audio uri.
|
AudioPayload.Builder |
getAudioPayloadBuilder()
The audio payload, a container of the audio uri.
|
AudioPayloadOrBuilder |
getAudioPayloadOrBuilder()
The audio payload, a container of the audio uri.
|
Example |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ImagePayload |
getImagePayload()
The image payload, a container of the image bytes/uri.
|
ImagePayload.Builder |
getImagePayloadBuilder()
The image payload, a container of the image bytes/uri.
|
ImagePayloadOrBuilder |
getImagePayloadOrBuilder()
The image payload, a container of the image bytes/uri.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
Example.PayloadCase |
getPayloadCase() |
TextPayload |
getTextPayload()
The text payload, a container of the text content.
|
TextPayload.Builder |
getTextPayloadBuilder()
The text payload, a container of the text content.
|
TextPayloadOrBuilder |
getTextPayloadOrBuilder()
The text payload, a container of the text content.
|
VideoPayload |
getVideoPayload()
The video payload, a container of the video uri.
|
VideoPayload.Builder |
getVideoPayloadBuilder()
The video payload, a container of the video uri.
|
VideoPayloadOrBuilder |
getVideoPayloadOrBuilder()
The video payload, a container of the video uri.
|
boolean |
hasAudioPayload()
The audio payload, a container of the audio uri.
|
boolean |
hasImagePayload()
The image payload, a container of the image bytes/uri.
|
boolean |
hasTextPayload()
The text payload, a container of the text content.
|
boolean |
hasVideoPayload()
The video payload, a container of the video uri.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Example.Builder |
mergeAudioPayload(AudioPayload value)
The audio payload, a container of the audio uri.
|
Example.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Example.Builder |
mergeFrom(Example other) |
Example.Builder |
mergeFrom(com.google.protobuf.Message other) |
Example.Builder |
mergeImagePayload(ImagePayload value)
The image payload, a container of the image bytes/uri.
|
Example.Builder |
mergeTextPayload(TextPayload value)
The text payload, a container of the text content.
|
Example.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Example.Builder |
mergeVideoPayload(VideoPayload value)
The video payload, a container of the video uri.
|
Example.Builder |
removeAnnotations(int index)
Output only.
|
Example.Builder |
setAnnotations(int index,
Annotation.Builder builderForValue)
Output only.
|
Example.Builder |
setAnnotations(int index,
Annotation value)
Output only.
|
Example.Builder |
setAudioPayload(AudioPayload.Builder builderForValue)
The audio payload, a container of the audio uri.
|
Example.Builder |
setAudioPayload(AudioPayload value)
The audio payload, a container of the audio uri.
|
Example.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Example.Builder |
setImagePayload(ImagePayload.Builder builderForValue)
The image payload, a container of the image bytes/uri.
|
Example.Builder |
setImagePayload(ImagePayload value)
The image payload, a container of the image bytes/uri.
|
Example.Builder |
setName(String value)
Output only.
|
Example.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
Example.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Example.Builder |
setTextPayload(TextPayload.Builder builderForValue)
The text payload, a container of the text content.
|
Example.Builder |
setTextPayload(TextPayload value)
The text payload, a container of the text content.
|
Example.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Example.Builder |
setVideoPayload(VideoPayload.Builder builderForValue)
The video payload, a container of the video uri.
|
Example.Builder |
setVideoPayload(VideoPayload value)
The video payload, a container of the video uri.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>public Example.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>public Example getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Example build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Example buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Example.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>public Example.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>public Example.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>public Example.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>public Example.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>public Example.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>public Example.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Example.Builder>public Example.Builder mergeFrom(Example other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>public Example.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Example.Builder>IOExceptionpublic Example.PayloadCase getPayloadCase()
getPayloadCase in interface ExampleOrBuilderpublic Example.Builder clearPayload()
public boolean hasImagePayload()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;hasImagePayload in interface ExampleOrBuilderpublic ImagePayload getImagePayload()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;getImagePayload in interface ExampleOrBuilderpublic Example.Builder setImagePayload(ImagePayload value)
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;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;public Example.Builder mergeImagePayload(ImagePayload value)
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;public Example.Builder clearImagePayload()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;public ImagePayload.Builder getImagePayloadBuilder()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;public ImagePayloadOrBuilder getImagePayloadOrBuilder()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;getImagePayloadOrBuilder in interface ExampleOrBuilderpublic boolean hasTextPayload()
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;hasTextPayload in interface ExampleOrBuilderpublic TextPayload getTextPayload()
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;getTextPayload in interface ExampleOrBuilderpublic Example.Builder setTextPayload(TextPayload value)
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;public Example.Builder setTextPayload(TextPayload.Builder builderForValue)
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;public Example.Builder mergeTextPayload(TextPayload value)
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;public Example.Builder clearTextPayload()
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;public TextPayload.Builder getTextPayloadBuilder()
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;public TextPayloadOrBuilder getTextPayloadOrBuilder()
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;getTextPayloadOrBuilder in interface ExampleOrBuilderpublic boolean hasVideoPayload()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;hasVideoPayload in interface ExampleOrBuilderpublic VideoPayload getVideoPayload()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;getVideoPayload in interface ExampleOrBuilderpublic Example.Builder setVideoPayload(VideoPayload value)
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;public Example.Builder setVideoPayload(VideoPayload.Builder builderForValue)
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;public Example.Builder mergeVideoPayload(VideoPayload value)
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;public Example.Builder clearVideoPayload()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;public VideoPayload.Builder getVideoPayloadBuilder()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;public VideoPayloadOrBuilder getVideoPayloadOrBuilder()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;getVideoPayloadOrBuilder in interface ExampleOrBuilderpublic boolean hasAudioPayload()
The audio payload, a container of the audio uri.
.google.cloud.datalabeling.v1beta1.AudioPayload audio_payload = 8;hasAudioPayload in interface ExampleOrBuilderpublic AudioPayload getAudioPayload()
The audio payload, a container of the audio uri.
.google.cloud.datalabeling.v1beta1.AudioPayload audio_payload = 8;getAudioPayload in interface ExampleOrBuilderpublic Example.Builder setAudioPayload(AudioPayload value)
The audio payload, a container of the audio uri.
.google.cloud.datalabeling.v1beta1.AudioPayload audio_payload = 8;public Example.Builder setAudioPayload(AudioPayload.Builder builderForValue)
The audio payload, a container of the audio uri.
.google.cloud.datalabeling.v1beta1.AudioPayload audio_payload = 8;public Example.Builder mergeAudioPayload(AudioPayload value)
The audio payload, a container of the audio uri.
.google.cloud.datalabeling.v1beta1.AudioPayload audio_payload = 8;public Example.Builder clearAudioPayload()
The audio payload, a container of the audio uri.
.google.cloud.datalabeling.v1beta1.AudioPayload audio_payload = 8;public AudioPayload.Builder getAudioPayloadBuilder()
The audio payload, a container of the audio uri.
.google.cloud.datalabeling.v1beta1.AudioPayload audio_payload = 8;public AudioPayloadOrBuilder getAudioPayloadOrBuilder()
The audio payload, a container of the audio uri.
.google.cloud.datalabeling.v1beta1.AudioPayload audio_payload = 8;getAudioPayloadOrBuilder in interface ExampleOrBuilderpublic 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;getName in interface ExampleOrBuilderpublic com.google.protobuf.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;getNameBytes in interface ExampleOrBuilderpublic 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;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;public Example.Builder setNameBytes(com.google.protobuf.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;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;getAnnotationsList in interface ExampleOrBuilderpublic 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;getAnnotationsCount in interface ExampleOrBuilderpublic 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;getAnnotations in interface ExampleOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getAnnotationsOrBuilder in interface ExampleOrBuilderpublic 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;getAnnotationsOrBuilderList in interface ExampleOrBuilderpublic 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;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;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;public final Example.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>public final Example.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Example.Builder>Copyright © 2019 Google LLC. All rights reserved.