Class 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 type google.cloud.datalabeling.v1beta1.AnnotatedDataset
    See Also:
    Serialized Form
    • Field Detail

      • 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
      • 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 class com.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 class com.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 interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        Returns:
        The enum numeric value on the wire for 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 interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        Returns:
        The annotationType.
      • getExampleCount

        public long getExampleCount()
         Output only. Number of examples in the annotated dataset.
         
        int64 example_count = 4;
        Specified by:
        getExampleCount in interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        Returns:
        The completedExampleCount.
      • hasLabelStats

        public boolean hasLabelStats()
         Output only. Per label statistics.
         
        .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;
        Specified by:
        hasLabelStats in interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        Returns:
        The labelStats.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Time the AnnotatedDataset was created.
         
        .google.protobuf.Timestamp create_time = 7;
        Specified by:
        hasCreateTime in interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
      • hasMetadata

        public boolean hasMetadata()
         Output only. Additional information about AnnotatedDataset.
         
        .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;
        Specified by:
        hasMetadata in interface AnnotatedDatasetOrBuilder
        Returns:
        Whether the metadata field is set.
      • 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 interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        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 interface AnnotatedDatasetOrBuilder
        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 interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Throws:
        IOException
      • newBuilderForType

        public AnnotatedDataset.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public AnnotatedDataset.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected AnnotatedDataset.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<AnnotatedDataset> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public AnnotatedDataset getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder