public final class Example extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Example.Builder
An Example is a piece of data and its annotation.
|
static class |
Example.PayloadCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATIONS_FIELD_NUMBER |
static int |
AUDIO_PAYLOAD_FIELD_NUMBER |
static int |
IMAGE_PAYLOAD_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
TEXT_PAYLOAD_FIELD_NUMBER |
static int |
VIDEO_PAYLOAD_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Annotation |
getAnnotations(int index)
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.
|
AudioPayloadOrBuilder |
getAudioPayloadOrBuilder()
The audio payload, a container of the audio uri.
|
static Example |
getDefaultInstance() |
Example |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ImagePayload |
getImagePayload()
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.
|
com.google.protobuf.Parser<Example> |
getParserForType() |
Example.PayloadCase |
getPayloadCase() |
int |
getSerializedSize() |
TextPayload |
getTextPayload()
The text payload, a container of the text content.
|
TextPayloadOrBuilder |
getTextPayloadOrBuilder()
The text payload, a container of the text content.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
VideoPayload |
getVideoPayload()
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.
|
int |
hashCode() |
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() |
static Example.Builder |
newBuilder() |
static Example.Builder |
newBuilder(Example prototype) |
Example.Builder |
newBuilderForType() |
protected Example.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Example |
parseDelimitedFrom(InputStream input) |
static Example |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Example |
parseFrom(byte[] data) |
static Example |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Example |
parseFrom(ByteBuffer data) |
static Example |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Example |
parseFrom(com.google.protobuf.ByteString data) |
static Example |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Example |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Example |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Example |
parseFrom(InputStream input) |
static Example |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Example> |
parser() |
Example.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int IMAGE_PAYLOAD_FIELD_NUMBER
public static final int TEXT_PAYLOAD_FIELD_NUMBER
public static final int VIDEO_PAYLOAD_FIELD_NUMBER
public static final int AUDIO_PAYLOAD_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Example.PayloadCase getPayloadCase()
getPayloadCase in interface ExampleOrBuilderpublic 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 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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Example parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Example parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Example parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Example parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Example parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Example parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Example parseFrom(InputStream input) throws IOException
IOExceptionpublic static Example parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Example parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Example parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Example parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Example parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Example.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Example.Builder newBuilder()
public static Example.Builder newBuilder(Example prototype)
public Example.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Example.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Example getDefaultInstance()
public static com.google.protobuf.Parser<Example> parser()
public com.google.protobuf.Parser<Example> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Example getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.