Class AnnotatedDataset.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnnotatedDataset.Builder>
com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder
- All Implemented Interfaces:
AnnotatedDatasetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnnotatedDataset
public static final class AnnotatedDataset.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnnotatedDataset.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllBlockingResources(Iterable<String> values) Output only.addBlockingResources(String value) Output only.addBlockingResourcesBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.intOutput only.Output only.intOutput only.getBlockingResources(int index) Output only.com.google.protobuf.ByteStringgetBlockingResourcesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.longOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.longOutput only.Output only.Output only.Output only.Output only.Output only.Output only.getName()Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(AnnotatedDataset other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLabelStats(LabelStats value) Output only.Output only.Output only.setAnnotationSourceValue(int value) Output only.setAnnotationType(AnnotationType value) Output only.setAnnotationTypeValue(int value) Output only.setBlockingResources(int index, String value) Output only.setCompletedExampleCount(long value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) Output only.setDescriptionBytes(com.google.protobuf.ByteString value) Output only.setDisplayName(String value) Output only.setDisplayNameBytes(com.google.protobuf.ByteString value) Output only.setExampleCount(long value) Output only.setLabelStats(LabelStats value) Output only.setLabelStats(LabelStats.Builder builderForValue) Output only.Output only.setMetadata(AnnotatedDatasetMetadata.Builder builderForValue) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AnnotatedDataset.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnnotatedDataset.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnnotatedDataset.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotatedDataset.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnnotatedDataset.Builder>
-
mergeFrom
public AnnotatedDataset.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotatedDataset.Builder>- Throws:
IOException
-
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.
-
setName
Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setDisplayName
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;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
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;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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.
-
setDescription
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;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
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;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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.
-
setAnnotationSourceValue
Output only. Source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3;- Parameters:
value- The enum numeric value on the wire for annotationSource to set.- Returns:
- This builder for chaining.
-
getAnnotationSource
Output only. Source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3;- Specified by:
getAnnotationSourcein interfaceAnnotatedDatasetOrBuilder- Returns:
- The annotationSource.
-
setAnnotationSource
Output only. Source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3;- Parameters:
value- The annotationSource to set.- Returns:
- This builder for chaining.
-
clearAnnotationSource
Output only. Source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3;- Returns:
- This builder for chaining.
-
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.
-
setAnnotationTypeValue
Output only. Type of the annotation. It is specified when starting labeling task.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8;- Parameters:
value- The enum numeric value on the wire for annotationType to set.- Returns:
- This builder for chaining.
-
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.
-
setAnnotationType
Output only. Type of the annotation. It is specified when starting labeling task.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8;- Parameters:
value- The annotationType to set.- Returns:
- This builder for chaining.
-
clearAnnotationType
Output only. Type of the annotation. It is specified when starting labeling task.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8;- Returns:
- This builder for chaining.
-
getExampleCount
public long getExampleCount()Output only. Number of examples in the annotated dataset.
int64 example_count = 4;- Specified by:
getExampleCountin interfaceAnnotatedDatasetOrBuilder- Returns:
- The exampleCount.
-
setExampleCount
Output only. Number of examples in the annotated dataset.
int64 example_count = 4;- Parameters:
value- The exampleCount to set.- Returns:
- This builder for chaining.
-
clearExampleCount
Output only. Number of examples in the annotated dataset.
int64 example_count = 4;- Returns:
- This builder for chaining.
-
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.
-
setCompletedExampleCount
Output only. Number of examples that have annotation in the annotated dataset.
int64 completed_example_count = 5;- Parameters:
value- The completedExampleCount to set.- Returns:
- This builder for chaining.
-
clearCompletedExampleCount
Output only. Number of examples that have annotation in the annotated dataset.
int64 completed_example_count = 5;- Returns:
- This builder for chaining.
-
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
Output only. Per label statistics.
.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;- Specified by:
getLabelStatsin interfaceAnnotatedDatasetOrBuilder- Returns:
- The labelStats.
-
setLabelStats
Output only. Per label statistics.
.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; -
setLabelStats
Output only. Per label statistics.
.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; -
mergeLabelStats
Output only. Per label statistics.
.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; -
clearLabelStats
Output only. Per label statistics.
.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; -
getLabelStatsBuilder
Output only. Per label statistics.
.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; -
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.
-
setCreateTime
Output only. Time the AnnotatedDataset was created.
.google.protobuf.Timestamp create_time = 7; -
setCreateTime
public AnnotatedDataset.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Time the AnnotatedDataset was created.
.google.protobuf.Timestamp create_time = 7; -
mergeCreateTime
Output only. Time the AnnotatedDataset was created.
.google.protobuf.Timestamp create_time = 7; -
clearCreateTime
Output only. Time the AnnotatedDataset was created.
.google.protobuf.Timestamp create_time = 7; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Time the AnnotatedDataset was created.
.google.protobuf.Timestamp create_time = 7; -
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
Output only. Additional information about AnnotatedDataset.
.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;- Specified by:
getMetadatain interfaceAnnotatedDatasetOrBuilder- Returns:
- The metadata.
-
setMetadata
Output only. Additional information about AnnotatedDataset.
.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; -
setMetadata
Output only. Additional information about AnnotatedDataset.
.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; -
mergeMetadata
Output only. Additional information about AnnotatedDataset.
.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; -
clearMetadata
Output only. Additional information about AnnotatedDataset.
.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; -
getMetadataBuilder
Output only. Additional information about AnnotatedDataset.
.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; -
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
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.
-
setBlockingResources
Output only. The names of any related resources that are blocking changes to the annotated dataset.
repeated string blocking_resources = 11;- Parameters:
index- The index to set the value at.value- The blockingResources to set.- Returns:
- This builder for chaining.
-
addBlockingResources
Output only. The names of any related resources that are blocking changes to the annotated dataset.
repeated string blocking_resources = 11;- Parameters:
value- The blockingResources to add.- Returns:
- This builder for chaining.
-
addAllBlockingResources
Output only. The names of any related resources that are blocking changes to the annotated dataset.
repeated string blocking_resources = 11;- Parameters:
values- The blockingResources to add.- Returns:
- This builder for chaining.
-
clearBlockingResources
Output only. The names of any related resources that are blocking changes to the annotated dataset.
repeated string blocking_resources = 11;- Returns:
- This builder for chaining.
-
addBlockingResourcesBytes
Output only. The names of any related resources that are blocking changes to the annotated dataset.
repeated string blocking_resources = 11;- Parameters:
value- The bytes of the blockingResources to add.- Returns:
- This builder for chaining.
-