Class AnnotatedDataset
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.datalabeling.v1beta1.AnnotatedDataset
-
- All Implemented Interfaces:
AnnotatedDatasetOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class AnnotatedDataset extends com.google.protobuf.GeneratedMessageV3 implements AnnotatedDatasetOrBuilder
AnnotatedDataset is a set holding annotations for data in a Dataset. Each labeling task will generate an AnnotatedDataset under the Dataset that the task is requested for.
Protobuf typegoogle.cloud.datalabeling.v1beta1.AnnotatedDataset
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotatedDataset.Builder
AnnotatedDataset is a set holding annotations for data in a Dataset.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ANNOTATION_SOURCE_FIELD_NUMBER
static int
ANNOTATION_TYPE_FIELD_NUMBER
static int
BLOCKING_RESOURCES_FIELD_NUMBER
static int
COMPLETED_EXAMPLE_COUNT_FIELD_NUMBER
static int
CREATE_TIME_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
EXAMPLE_COUNT_FIELD_NUMBER
static int
LABEL_STATS_FIELD_NUMBER
static int
METADATA_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AnnotationSource
getAnnotationSource()
Output only.int
getAnnotationSourceValue()
Output only.AnnotationType
getAnnotationType()
Output only.int
getAnnotationTypeValue()
Output only.String
getBlockingResources(int index)
Output only.com.google.protobuf.ByteString
getBlockingResourcesBytes(int index)
Output only.int
getBlockingResourcesCount()
Output only.com.google.protobuf.ProtocolStringList
getBlockingResourcesList()
Output only.long
getCompletedExampleCount()
Output only.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.static AnnotatedDataset
getDefaultInstance()
AnnotatedDataset
getDefaultInstanceForType()
String
getDescription()
Output only.com.google.protobuf.ByteString
getDescriptionBytes()
Output only.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
Output only.com.google.protobuf.ByteString
getDisplayNameBytes()
Output only.long
getExampleCount()
Output only.LabelStats
getLabelStats()
Output only.LabelStatsOrBuilder
getLabelStatsOrBuilder()
Output only.AnnotatedDatasetMetadata
getMetadata()
Output only.AnnotatedDatasetMetadataOrBuilder
getMetadataOrBuilder()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<AnnotatedDataset>
getParserForType()
int
getSerializedSize()
boolean
hasCreateTime()
Output only.int
hashCode()
boolean
hasLabelStats()
Output only.boolean
hasMetadata()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AnnotatedDataset.Builder
newBuilder()
static AnnotatedDataset.Builder
newBuilder(AnnotatedDataset prototype)
AnnotatedDataset.Builder
newBuilderForType()
protected AnnotatedDataset.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AnnotatedDataset
parseDelimitedFrom(InputStream input)
static AnnotatedDataset
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnnotatedDataset
parseFrom(byte[] data)
static AnnotatedDataset
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnnotatedDataset
parseFrom(com.google.protobuf.ByteString data)
static AnnotatedDataset
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnnotatedDataset
parseFrom(com.google.protobuf.CodedInputStream input)
static AnnotatedDataset
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnnotatedDataset
parseFrom(InputStream input)
static AnnotatedDataset
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnnotatedDataset
parseFrom(ByteBuffer data)
static AnnotatedDataset
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AnnotatedDataset>
parser()
AnnotatedDataset.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANNOTATION_SOURCE_FIELD_NUMBER
public static final int ANNOTATION_SOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANNOTATION_TYPE_FIELD_NUMBER
public static final int ANNOTATION_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXAMPLE_COUNT_FIELD_NUMBER
public static final int EXAMPLE_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMPLETED_EXAMPLE_COUNT_FIELD_NUMBER
public static final int COMPLETED_EXAMPLE_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_STATS_FIELD_NUMBER
public static final int LABEL_STATS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BLOCKING_RESOURCES_FIELD_NUMBER
public static final int BLOCKING_RESOURCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}
string name = 1;
- Specified by:
getName
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}
string name = 1;
- Specified by:
getNameBytes
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
Output only. The display name of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 64 characters.
string display_name = 2;
- Specified by:
getDisplayName
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Output only. The display name of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 64 characters.
string display_name = 2;
- Specified by:
getDisplayNameBytes
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The bytes for displayName.
-
getDescription
public String getDescription()
Output only. The description of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 10000 characters.
string description = 9;
- Specified by:
getDescription
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Output only. The description of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 10000 characters.
string description = 9;
- Specified by:
getDescriptionBytes
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The bytes for description.
-
getAnnotationSourceValue
public int getAnnotationSourceValue()
Output only. Source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3;
- Specified by:
getAnnotationSourceValue
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The enum numeric value on the wire for annotationSource.
-
getAnnotationSource
public AnnotationSource getAnnotationSource()
Output only. Source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3;
- Specified by:
getAnnotationSource
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The annotationSource.
-
getAnnotationTypeValue
public int getAnnotationTypeValue()
Output only. Type of the annotation. It is specified when starting labeling task.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8;
- Specified by:
getAnnotationTypeValue
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The enum numeric value on the wire for annotationType.
-
getAnnotationType
public AnnotationType getAnnotationType()
Output only. Type of the annotation. It is specified when starting labeling task.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8;
- Specified by:
getAnnotationType
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The annotationType.
-
getExampleCount
public long getExampleCount()
Output only. Number of examples in the annotated dataset.
int64 example_count = 4;
- Specified by:
getExampleCount
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The exampleCount.
-
getCompletedExampleCount
public long getCompletedExampleCount()
Output only. Number of examples that have annotation in the annotated dataset.
int64 completed_example_count = 5;
- Specified by:
getCompletedExampleCount
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The completedExampleCount.
-
hasLabelStats
public boolean hasLabelStats()
Output only. Per label statistics.
.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;
- Specified by:
hasLabelStats
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- Whether the labelStats field is set.
-
getLabelStats
public LabelStats getLabelStats()
Output only. Per label statistics.
.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;
- Specified by:
getLabelStats
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The labelStats.
-
getLabelStatsOrBuilder
public LabelStatsOrBuilder getLabelStatsOrBuilder()
Output only. Per label statistics.
.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;
- Specified by:
getLabelStatsOrBuilder
in interfaceAnnotatedDatasetOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. Time the AnnotatedDataset was created.
.google.protobuf.Timestamp create_time = 7;
- Specified by:
hasCreateTime
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Time the AnnotatedDataset was created.
.google.protobuf.Timestamp create_time = 7;
- Specified by:
getCreateTime
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time the AnnotatedDataset was created.
.google.protobuf.Timestamp create_time = 7;
- Specified by:
getCreateTimeOrBuilder
in interfaceAnnotatedDatasetOrBuilder
-
hasMetadata
public boolean hasMetadata()
Output only. Additional information about AnnotatedDataset.
.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;
- Specified by:
hasMetadata
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public AnnotatedDatasetMetadata getMetadata()
Output only. Additional information about AnnotatedDataset.
.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;
- Specified by:
getMetadata
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The metadata.
-
getMetadataOrBuilder
public AnnotatedDatasetMetadataOrBuilder getMetadataOrBuilder()
Output only. Additional information about AnnotatedDataset.
.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;
- Specified by:
getMetadataOrBuilder
in interfaceAnnotatedDatasetOrBuilder
-
getBlockingResourcesList
public com.google.protobuf.ProtocolStringList getBlockingResourcesList()
Output only. The names of any related resources that are blocking changes to the annotated dataset.
repeated string blocking_resources = 11;
- Specified by:
getBlockingResourcesList
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- A list containing the blockingResources.
-
getBlockingResourcesCount
public int getBlockingResourcesCount()
Output only. The names of any related resources that are blocking changes to the annotated dataset.
repeated string blocking_resources = 11;
- Specified by:
getBlockingResourcesCount
in interfaceAnnotatedDatasetOrBuilder
- Returns:
- The count of blockingResources.
-
getBlockingResources
public String getBlockingResources(int index)
Output only. The names of any related resources that are blocking changes to the annotated dataset.
repeated string blocking_resources = 11;
- Specified by:
getBlockingResources
in interfaceAnnotatedDatasetOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The blockingResources at the given index.
-
getBlockingResourcesBytes
public com.google.protobuf.ByteString getBlockingResourcesBytes(int index)
Output only. The names of any related resources that are blocking changes to the annotated dataset.
repeated string blocking_resources = 11;
- Specified by:
getBlockingResourcesBytes
in interfaceAnnotatedDatasetOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the blockingResources at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AnnotatedDataset parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotatedDataset parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotatedDataset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotatedDataset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotatedDataset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotatedDataset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotatedDataset parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotatedDataset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AnnotatedDataset parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AnnotatedDataset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotatedDataset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotatedDataset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AnnotatedDataset.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AnnotatedDataset.Builder newBuilder()
-
newBuilder
public static AnnotatedDataset.Builder newBuilder(AnnotatedDataset prototype)
-
toBuilder
public AnnotatedDataset.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnnotatedDataset.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AnnotatedDataset getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AnnotatedDataset> parser()
-
getParserForType
public com.google.protobuf.Parser<AnnotatedDataset> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AnnotatedDataset getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-