Class AnnotatedDataset.Builder (0.153.0)

public static final class AnnotatedDataset.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllBlockingResources(Iterable<String> values)

public AnnotatedDataset.Builder addAllBlockingResources(Iterable<String> values)

Output only. The names of any related resources that are blocking changes to the annotated dataset.

repeated string blocking_resources = 11;

Parameter
NameDescription
valuesIterable<String>

The blockingResources to add.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

addBlockingResources(String value)

public AnnotatedDataset.Builder addBlockingResources(String value)

Output only. The names of any related resources that are blocking changes to the annotated dataset.

repeated string blocking_resources = 11;

Parameter
NameDescription
valueString

The blockingResources to add.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

addBlockingResourcesBytes(ByteString value)

public AnnotatedDataset.Builder addBlockingResourcesBytes(ByteString value)

Output only. The names of any related resources that are blocking changes to the annotated dataset.

repeated string blocking_resources = 11;

Parameter
NameDescription
valueByteString

The bytes of the blockingResources to add.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnnotatedDataset.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnnotatedDataset.Builder
Overrides

build()

public AnnotatedDataset build()
Returns
TypeDescription
AnnotatedDataset

buildPartial()

public AnnotatedDataset buildPartial()
Returns
TypeDescription
AnnotatedDataset

clear()

public AnnotatedDataset.Builder clear()
Returns
TypeDescription
AnnotatedDataset.Builder
Overrides

clearAnnotationSource()

public AnnotatedDataset.Builder clearAnnotationSource()

Output only. Source of the annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3;

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

clearAnnotationType()

public AnnotatedDataset.Builder clearAnnotationType()

Output only. Type of the annotation. It is specified when starting labeling task.

.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8;

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

clearBlockingResources()

public AnnotatedDataset.Builder clearBlockingResources()

Output only. The names of any related resources that are blocking changes to the annotated dataset.

repeated string blocking_resources = 11;

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

clearCompletedExampleCount()

public AnnotatedDataset.Builder clearCompletedExampleCount()

Output only. Number of examples that have annotation in the annotated dataset.

int64 completed_example_count = 5;

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

clearCreateTime()

public AnnotatedDataset.Builder clearCreateTime()

Output only. Time the AnnotatedDataset was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
AnnotatedDataset.Builder

clearDescription()

public AnnotatedDataset.Builder 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
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

clearDisplayName()

public AnnotatedDataset.Builder 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
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

clearExampleCount()

public AnnotatedDataset.Builder clearExampleCount()

Output only. Number of examples in the annotated dataset.

int64 example_count = 4;

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnnotatedDataset.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AnnotatedDataset.Builder
Overrides

clearLabelStats()

public AnnotatedDataset.Builder clearLabelStats()

Output only. Per label statistics.

.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;

Returns
TypeDescription
AnnotatedDataset.Builder

clearMetadata()

public AnnotatedDataset.Builder clearMetadata()

Output only. Additional information about AnnotatedDataset.

.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;

Returns
TypeDescription
AnnotatedDataset.Builder

clearName()

public AnnotatedDataset.Builder clearName()

Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}

string name = 1;

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnnotatedDataset.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AnnotatedDataset.Builder
Overrides

clone()

public AnnotatedDataset.Builder clone()
Returns
TypeDescription
AnnotatedDataset.Builder
Overrides

getAnnotationSource()

public AnnotationSource getAnnotationSource()

Output only. Source of the annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3;

Returns
TypeDescription
AnnotationSource

The annotationSource.

getAnnotationSourceValue()

public int getAnnotationSourceValue()

Output only. Source of the annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for annotationSource.

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;

Returns
TypeDescription
AnnotationType

The annotationType.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for annotationType.

getBlockingResources(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The blockingResources at the given index.

getBlockingResourcesBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the blockingResources at the given index.

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;

Returns
TypeDescription
int

The count of blockingResources.

getBlockingResourcesList()

public ProtocolStringList getBlockingResourcesList()

Output only. The names of any related resources that are blocking changes to the annotated dataset.

repeated string blocking_resources = 11;

Returns
TypeDescription
ProtocolStringList

A list containing the blockingResources.

getCompletedExampleCount()

public long getCompletedExampleCount()

Output only. Number of examples that have annotation in the annotated dataset.

int64 completed_example_count = 5;

Returns
TypeDescription
long

The completedExampleCount.

getCreateTime()

public Timestamp getCreateTime()

Output only. Time the AnnotatedDataset was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time the AnnotatedDataset was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time the AnnotatedDataset was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public AnnotatedDataset getDefaultInstanceForType()
Returns
TypeDescription
AnnotatedDataset

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;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for displayName.

getExampleCount()

public long getExampleCount()

Output only. Number of examples in the annotated dataset.

int64 example_count = 4;

Returns
TypeDescription
long

The exampleCount.

getLabelStats()

public LabelStats getLabelStats()

Output only. Per label statistics.

.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;

Returns
TypeDescription
LabelStats

The labelStats.

getLabelStatsBuilder()

public LabelStats.Builder getLabelStatsBuilder()

Output only. Per label statistics.

.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;

Returns
TypeDescription
LabelStats.Builder

getLabelStatsOrBuilder()

public LabelStatsOrBuilder getLabelStatsOrBuilder()

Output only. Per label statistics.

.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;

Returns
TypeDescription
LabelStatsOrBuilder

getMetadata()

public AnnotatedDatasetMetadata getMetadata()

Output only. Additional information about AnnotatedDataset.

.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;

Returns
TypeDescription
AnnotatedDatasetMetadata

The metadata.

getMetadataBuilder()

public AnnotatedDatasetMetadata.Builder getMetadataBuilder()

Output only. Additional information about AnnotatedDataset.

.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;

Returns
TypeDescription
AnnotatedDatasetMetadata.Builder

getMetadataOrBuilder()

public AnnotatedDatasetMetadataOrBuilder getMetadataOrBuilder()

Output only. Additional information about AnnotatedDataset.

.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;

Returns
TypeDescription
AnnotatedDatasetMetadataOrBuilder

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;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time the AnnotatedDataset was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasLabelStats()

public boolean hasLabelStats()

Output only. Per label statistics.

.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;

Returns
TypeDescription
boolean

Whether the labelStats field is set.

hasMetadata()

public boolean hasMetadata()

Output only. Additional information about AnnotatedDataset.

.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;

Returns
TypeDescription
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public AnnotatedDataset.Builder mergeCreateTime(Timestamp value)

Output only. Time the AnnotatedDataset was created.

.google.protobuf.Timestamp create_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AnnotatedDataset.Builder

mergeFrom(AnnotatedDataset other)

public AnnotatedDataset.Builder mergeFrom(AnnotatedDataset other)
Parameter
NameDescription
otherAnnotatedDataset
Returns
TypeDescription
AnnotatedDataset.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnnotatedDataset.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnnotatedDataset.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AnnotatedDataset.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AnnotatedDataset.Builder
Overrides

mergeLabelStats(LabelStats value)

public AnnotatedDataset.Builder mergeLabelStats(LabelStats value)

Output only. Per label statistics.

.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;

Parameter
NameDescription
valueLabelStats
Returns
TypeDescription
AnnotatedDataset.Builder

mergeMetadata(AnnotatedDatasetMetadata value)

public AnnotatedDataset.Builder mergeMetadata(AnnotatedDatasetMetadata value)

Output only. Additional information about AnnotatedDataset.

.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;

Parameter
NameDescription
valueAnnotatedDatasetMetadata
Returns
TypeDescription
AnnotatedDataset.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnnotatedDataset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnnotatedDataset.Builder
Overrides

setAnnotationSource(AnnotationSource value)

public AnnotatedDataset.Builder setAnnotationSource(AnnotationSource value)

Output only. Source of the annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3;

Parameter
NameDescription
valueAnnotationSource

The annotationSource to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setAnnotationSourceValue(int value)

public AnnotatedDataset.Builder setAnnotationSourceValue(int value)

Output only. Source of the annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3;

Parameter
NameDescription
valueint

The enum numeric value on the wire for annotationSource to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setAnnotationType(AnnotationType value)

public AnnotatedDataset.Builder setAnnotationType(AnnotationType value)

Output only. Type of the annotation. It is specified when starting labeling task.

.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8;

Parameter
NameDescription
valueAnnotationType

The annotationType to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setAnnotationTypeValue(int value)

public AnnotatedDataset.Builder setAnnotationTypeValue(int value)

Output only. Type of the annotation. It is specified when starting labeling task.

.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8;

Parameter
NameDescription
valueint

The enum numeric value on the wire for annotationType to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setBlockingResources(int index, String value)

public AnnotatedDataset.Builder setBlockingResources(int index, String value)

Output only. The names of any related resources that are blocking changes to the annotated dataset.

repeated string blocking_resources = 11;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The blockingResources to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setCompletedExampleCount(long value)

public AnnotatedDataset.Builder setCompletedExampleCount(long value)

Output only. Number of examples that have annotation in the annotated dataset.

int64 completed_example_count = 5;

Parameter
NameDescription
valuelong

The completedExampleCount to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public AnnotatedDataset.Builder setCreateTime(Timestamp value)

Output only. Time the AnnotatedDataset was created.

.google.protobuf.Timestamp create_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AnnotatedDataset.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AnnotatedDataset.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time the AnnotatedDataset was created.

.google.protobuf.Timestamp create_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AnnotatedDataset.Builder

setDescription(String value)

public AnnotatedDataset.Builder setDescription(String value)

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;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AnnotatedDataset.Builder setDescriptionBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setDisplayName(String value)

public AnnotatedDataset.Builder setDisplayName(String value)

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;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AnnotatedDataset.Builder setDisplayNameBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setExampleCount(long value)

public AnnotatedDataset.Builder setExampleCount(long value)

Output only. Number of examples in the annotated dataset.

int64 example_count = 4;

Parameter
NameDescription
valuelong

The exampleCount to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AnnotatedDataset.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnnotatedDataset.Builder
Overrides

setLabelStats(LabelStats value)

public AnnotatedDataset.Builder setLabelStats(LabelStats value)

Output only. Per label statistics.

.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;

Parameter
NameDescription
valueLabelStats
Returns
TypeDescription
AnnotatedDataset.Builder

setLabelStats(LabelStats.Builder builderForValue)

public AnnotatedDataset.Builder setLabelStats(LabelStats.Builder builderForValue)

Output only. Per label statistics.

.google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6;

Parameter
NameDescription
builderForValueLabelStats.Builder
Returns
TypeDescription
AnnotatedDataset.Builder

setMetadata(AnnotatedDatasetMetadata value)

public AnnotatedDataset.Builder setMetadata(AnnotatedDatasetMetadata value)

Output only. Additional information about AnnotatedDataset.

.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;

Parameter
NameDescription
valueAnnotatedDatasetMetadata
Returns
TypeDescription
AnnotatedDataset.Builder

setMetadata(AnnotatedDatasetMetadata.Builder builderForValue)

public AnnotatedDataset.Builder setMetadata(AnnotatedDatasetMetadata.Builder builderForValue)

Output only. Additional information about AnnotatedDataset.

.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10;

Parameter
NameDescription
builderForValueAnnotatedDatasetMetadata.Builder
Returns
TypeDescription
AnnotatedDataset.Builder

setName(String value)

public AnnotatedDataset.Builder setName(String value)

Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AnnotatedDataset.Builder setNameBytes(ByteString value)

Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AnnotatedDataset.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnnotatedDataset.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AnnotatedDataset.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnnotatedDataset.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnnotatedDataset.Builder
Overrides