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 classAnnotatedDataset.BuilderAnnotatedDataset 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 intANNOTATION_SOURCE_FIELD_NUMBERstatic intANNOTATION_TYPE_FIELD_NUMBERstatic intBLOCKING_RESOURCES_FIELD_NUMBERstatic intCOMPLETED_EXAMPLE_COUNT_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intEXAMPLE_COUNT_FIELD_NUMBERstatic intLABEL_STATS_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intNAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AnnotationSourcegetAnnotationSource()Output only.intgetAnnotationSourceValue()Output only.AnnotationTypegetAnnotationType()Output only.intgetAnnotationTypeValue()Output only.StringgetBlockingResources(int index)Output only.com.google.protobuf.ByteStringgetBlockingResourcesBytes(int index)Output only.intgetBlockingResourcesCount()Output only.com.google.protobuf.ProtocolStringListgetBlockingResourcesList()Output only.longgetCompletedExampleCount()Output only.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.static AnnotatedDatasetgetDefaultInstance()AnnotatedDatasetgetDefaultInstanceForType()StringgetDescription()Output only.com.google.protobuf.ByteStringgetDescriptionBytes()Output only.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()Output only.com.google.protobuf.ByteStringgetDisplayNameBytes()Output only.longgetExampleCount()Output only.LabelStatsgetLabelStats()Output only.LabelStatsOrBuildergetLabelStatsOrBuilder()Output only.AnnotatedDatasetMetadatagetMetadata()Output only.AnnotatedDatasetMetadataOrBuildergetMetadataOrBuilder()Output only.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.com.google.protobuf.Parser<AnnotatedDataset>getParserForType()intgetSerializedSize()booleanhasCreateTime()Output only.inthashCode()booleanhasLabelStats()Output only.booleanhasMetadata()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AnnotatedDataset.BuildernewBuilder()static AnnotatedDataset.BuildernewBuilder(AnnotatedDataset prototype)AnnotatedDataset.BuildernewBuilderForType()protected AnnotatedDataset.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AnnotatedDatasetparseDelimitedFrom(InputStream input)static AnnotatedDatasetparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotatedDatasetparseFrom(byte[] data)static AnnotatedDatasetparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotatedDatasetparseFrom(com.google.protobuf.ByteString data)static AnnotatedDatasetparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotatedDatasetparseFrom(com.google.protobuf.CodedInputStream input)static AnnotatedDatasetparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotatedDatasetparseFrom(InputStream input)static AnnotatedDatasetparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotatedDatasetparseFrom(ByteBuffer data)static AnnotatedDatasetparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AnnotatedDataset>parser()AnnotatedDataset.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getNamein 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:
getNameBytesin 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:
getDisplayNamein 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:
getDisplayNameBytesin 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:
getDescriptionin 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:
getDescriptionBytesin 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:
getAnnotationSourceValuein 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:
getAnnotationSourcein 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:
getAnnotationTypeValuein 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:
getAnnotationTypein interfaceAnnotatedDatasetOrBuilder- Returns:
- The annotationType.
-
getExampleCount
public long getExampleCount()
Output only. Number of examples in the annotated dataset.
int64 example_count = 4;- Specified by:
getExampleCountin 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:
getCompletedExampleCountin interfaceAnnotatedDatasetOrBuilder- Returns:
- The completedExampleCount.
-
hasLabelStats
public boolean hasLabelStats()
Output only. Per label statistics.
.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;- Specified by:
hasLabelStatsin 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:
getLabelStatsin interfaceAnnotatedDatasetOrBuilder- Returns:
- The labelStats.
-
getLabelStatsOrBuilder
public LabelStatsOrBuilder getLabelStatsOrBuilder()
Output only. Per label statistics.
.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;- Specified by:
getLabelStatsOrBuilderin interfaceAnnotatedDatasetOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. Time the AnnotatedDataset was created.
.google.protobuf.Timestamp create_time = 7;- Specified by:
hasCreateTimein 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:
getCreateTimein 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:
getCreateTimeOrBuilderin interfaceAnnotatedDatasetOrBuilder
-
hasMetadata
public boolean hasMetadata()
Output only. Additional information about AnnotatedDataset.
.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;- Specified by:
hasMetadatain 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:
getMetadatain interfaceAnnotatedDatasetOrBuilder- Returns:
- The metadata.
-
getMetadataOrBuilder
public AnnotatedDatasetMetadataOrBuilder getMetadataOrBuilder()
Output only. Additional information about AnnotatedDataset.
.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;- Specified by:
getMetadataOrBuilderin 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:
getBlockingResourcesListin 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:
getBlockingResourcesCountin 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:
getBlockingResourcesin 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:
getBlockingResourcesBytesin 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:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnnotatedDataset.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AnnotatedDataset getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-