Class Example.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Example.Builder>
com.google.cloud.datalabeling.v1beta1.Example.Builder
- All Implemented Interfaces:
ExampleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Example
public static final class Example.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllAnnotations(Iterable<? extends Annotation> values) Output only.addAnnotations(int index, Annotation value) Output only.addAnnotations(int index, Annotation.Builder builderForValue) Output only.addAnnotations(Annotation value) Output only.addAnnotations(Annotation.Builder builderForValue) Output only.Output only.addAnnotationsBuilder(int index) Output only.build()clear()Output only.The image payload, a container of the image bytes/uri.Output only.The text payload, a container of the text content.The video payload, a container of the video uri.getAnnotations(int index) Output only.getAnnotationsBuilder(int index) Output only.Output only.intOutput only.Output only.getAnnotationsOrBuilder(int index) Output only.List<? extends AnnotationOrBuilder>Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe image payload, a container of the image bytes/uri.The image payload, a container of the image bytes/uri.The image payload, a container of the image bytes/uri.getName()Output only.com.google.protobuf.ByteStringOutput only.The text payload, a container of the text content.The text payload, a container of the text content.The text payload, a container of the text content.The video payload, a container of the video uri.The video payload, a container of the video uri.The video payload, a container of the video uri.booleanThe image payload, a container of the image bytes/uri.booleanThe text payload, a container of the text content.booleanThe video payload, a container of the video uri.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeImagePayload(ImagePayload value) The image payload, a container of the image bytes/uri.mergeTextPayload(TextPayload value) The text payload, a container of the text content.mergeVideoPayload(VideoPayload value) The video payload, a container of the video uri.removeAnnotations(int index) Output only.setAnnotations(int index, Annotation value) Output only.setAnnotations(int index, Annotation.Builder builderForValue) Output only.setImagePayload(ImagePayload value) The image payload, a container of the image bytes/uri.setImagePayload(ImagePayload.Builder builderForValue) The image payload, a container of the image bytes/uri.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setTextPayload(TextPayload value) The text payload, a container of the text content.setTextPayload(TextPayload.Builder builderForValue) The text payload, a container of the text content.setVideoPayload(VideoPayload value) The video payload, a container of the video uri.setVideoPayload(VideoPayload.Builder builderForValue) The video payload, a container of the video uri.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Example.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Example.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Example.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Example.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Example.Builder>
-
mergeFrom
public Example.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Example.Builder>- Throws:
IOException
-
getPayloadCase
- Specified by:
getPayloadCasein interfaceExampleOrBuilder
-
clearPayload
-
hasImagePayload
public boolean hasImagePayload()The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;- Specified by:
hasImagePayloadin interfaceExampleOrBuilder- Returns:
- Whether the imagePayload field is set.
-
getImagePayload
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;- Specified by:
getImagePayloadin interfaceExampleOrBuilder- Returns:
- The imagePayload.
-
setImagePayload
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; -
setImagePayload
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; -
mergeImagePayload
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; -
clearImagePayload
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; -
getImagePayloadBuilder
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; -
getImagePayloadOrBuilder
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;- Specified by:
getImagePayloadOrBuilderin interfaceExampleOrBuilder
-
hasTextPayload
public boolean hasTextPayload()The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;- Specified by:
hasTextPayloadin interfaceExampleOrBuilder- Returns:
- Whether the textPayload field is set.
-
getTextPayload
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;- Specified by:
getTextPayloadin interfaceExampleOrBuilder- Returns:
- The textPayload.
-
setTextPayload
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; -
setTextPayload
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; -
mergeTextPayload
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; -
clearTextPayload
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; -
getTextPayloadBuilder
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; -
getTextPayloadOrBuilder
The text payload, a container of the text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6;- Specified by:
getTextPayloadOrBuilderin interfaceExampleOrBuilder
-
hasVideoPayload
public boolean hasVideoPayload()The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;- Specified by:
hasVideoPayloadin interfaceExampleOrBuilder- Returns:
- Whether the videoPayload field is set.
-
getVideoPayload
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;- Specified by:
getVideoPayloadin interfaceExampleOrBuilder- Returns:
- The videoPayload.
-
setVideoPayload
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; -
setVideoPayload
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; -
mergeVideoPayload
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; -
clearVideoPayload
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; -
getVideoPayloadBuilder
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; -
getVideoPayloadOrBuilder
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7;- Specified by:
getVideoPayloadOrBuilderin interfaceExampleOrBuilder
-
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;- Specified by:
getNamein interfaceExampleOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceExampleOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getAnnotationsListin interfaceExampleOrBuilder
-
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;- Specified by:
getAnnotationsCountin interfaceExampleOrBuilder
-
getAnnotations
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;- Specified by:
getAnnotationsin interfaceExampleOrBuilder
-
setAnnotations
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; -
setAnnotations
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; -
addAnnotations
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; -
addAnnotations
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; -
addAnnotations
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; -
addAnnotations
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; -
addAllAnnotations
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; -
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; -
removeAnnotations
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; -
getAnnotationsBuilder
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
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;- Specified by:
getAnnotationsOrBuilderin interfaceExampleOrBuilder
-
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;- Specified by:
getAnnotationsOrBuilderListin interfaceExampleOrBuilder
-
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; -
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; -
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;
-