public final class DataItem extends com.google.protobuf.GeneratedMessageV3 implements DataItemOrBuilder
DataItem is a piece of data, without annotation. For example, an image.Protobuf type
google.cloud.datalabeling.v1beta1.DataItem| Modifier and Type | Class and Description |
|---|---|
static class |
DataItem.Builder
DataItem is a piece of data, without annotation.
|
static class |
DataItem.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 |
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) |
AudioPayload |
getAudioPayload()
The audio payload, a container of the audio uri.
|
AudioPayloadOrBuilder |
getAudioPayloadOrBuilder()
The audio payload, a container of the audio uri.
|
static DataItem |
getDefaultInstance() |
DataItem |
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<DataItem> |
getParserForType() |
DataItem.PayloadCase |
getPayloadCase() |
int |
getSerializedSize() |
TextPayload |
getTextPayload()
The text payload, a container of text content.
|
TextPayloadOrBuilder |
getTextPayloadOrBuilder()
The text payload, a container of 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 text content.
|
boolean |
hasVideoPayload()
The video payload, a container of the video uri.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DataItem.Builder |
newBuilder() |
static DataItem.Builder |
newBuilder(DataItem prototype) |
DataItem.Builder |
newBuilderForType() |
protected DataItem.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static DataItem |
parseDelimitedFrom(InputStream input) |
static DataItem |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DataItem |
parseFrom(byte[] data) |
static DataItem |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DataItem |
parseFrom(ByteBuffer data) |
static DataItem |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DataItem |
parseFrom(com.google.protobuf.ByteString data) |
static DataItem |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DataItem |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DataItem |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DataItem |
parseFrom(InputStream input) |
static DataItem |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DataItem> |
parser() |
DataItem.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 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 DataItem.PayloadCase getPayloadCase()
getPayloadCase in interface DataItemOrBuilderpublic boolean hasImagePayload()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;hasImagePayload in interface DataItemOrBuilderpublic ImagePayload getImagePayload()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;getImagePayload in interface DataItemOrBuilderpublic ImagePayloadOrBuilder getImagePayloadOrBuilder()
The image payload, a container of the image bytes/uri.
.google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2;getImagePayloadOrBuilder in interface DataItemOrBuilderpublic boolean hasTextPayload()
The text payload, a container of text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;hasTextPayload in interface DataItemOrBuilderpublic TextPayload getTextPayload()
The text payload, a container of text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;getTextPayload in interface DataItemOrBuilderpublic TextPayloadOrBuilder getTextPayloadOrBuilder()
The text payload, a container of text content.
.google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3;getTextPayloadOrBuilder in interface DataItemOrBuilderpublic boolean hasVideoPayload()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;hasVideoPayload in interface DataItemOrBuilderpublic VideoPayload getVideoPayload()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;getVideoPayload in interface DataItemOrBuilderpublic VideoPayloadOrBuilder getVideoPayloadOrBuilder()
The video payload, a container of the video uri.
.google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4;getVideoPayloadOrBuilder in interface DataItemOrBuilderpublic boolean hasAudioPayload()
The audio payload, a container of the audio uri.
.google.cloud.datalabeling.v1beta1.AudioPayload audio_payload = 5;hasAudioPayload in interface DataItemOrBuilderpublic AudioPayload getAudioPayload()
The audio payload, a container of the audio uri.
.google.cloud.datalabeling.v1beta1.AudioPayload audio_payload = 5;getAudioPayload in interface DataItemOrBuilderpublic AudioPayloadOrBuilder getAudioPayloadOrBuilder()
The audio payload, a container of the audio uri.
.google.cloud.datalabeling.v1beta1.AudioPayload audio_payload = 5;getAudioPayloadOrBuilder in interface DataItemOrBuilderpublic 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;getName in interface DataItemOrBuilderpublic com.google.protobuf.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;getNameBytes in interface DataItemOrBuilderpublic 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 DataItem parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DataItem parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DataItem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DataItem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DataItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DataItem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DataItem parseFrom(InputStream input) throws IOException
IOExceptionpublic static DataItem parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DataItem parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DataItem parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DataItem parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DataItem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DataItem.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DataItem.Builder newBuilder()
public static DataItem.Builder newBuilder(DataItem prototype)
public DataItem.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DataItem.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DataItem getDefaultInstance()
public static com.google.protobuf.Parser<DataItem> parser()
public com.google.protobuf.Parser<DataItem> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DataItem getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.