Class Dataset.Builder (0.155.0)

public static final class Dataset.Builder extends GeneratedMessageV3.Builder<Dataset.Builder> implements DatasetOrBuilder

Dataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset.

Protobuf type google.cloud.datalabeling.v1beta1.Dataset

Implements

DatasetOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllBlockingResources(Iterable<String> values)

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

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

repeated string blocking_resources = 6;

Parameter
NameDescription
valuesIterable<String>

The blockingResources to add.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

addAllInputConfigs(Iterable<? extends InputConfig> values)

public Dataset.Builder addAllInputConfigs(Iterable<? extends InputConfig> values)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.datalabeling.v1beta1.InputConfig>
Returns
TypeDescription
Dataset.Builder

addBlockingResources(String value)

public Dataset.Builder addBlockingResources(String value)

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

repeated string blocking_resources = 6;

Parameter
NameDescription
valueString

The blockingResources to add.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

addBlockingResourcesBytes(ByteString value)

public Dataset.Builder addBlockingResourcesBytes(ByteString value)

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

repeated string blocking_resources = 6;

Parameter
NameDescription
valueByteString

The bytes of the blockingResources to add.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

addInputConfigs(InputConfig value)

public Dataset.Builder addInputConfigs(InputConfig value)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameter
NameDescription
valueInputConfig
Returns
TypeDescription
Dataset.Builder

addInputConfigs(InputConfig.Builder builderForValue)

public Dataset.Builder addInputConfigs(InputConfig.Builder builderForValue)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameter
NameDescription
builderForValueInputConfig.Builder
Returns
TypeDescription
Dataset.Builder

addInputConfigs(int index, InputConfig value)

public Dataset.Builder addInputConfigs(int index, InputConfig value)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameters
NameDescription
indexint
valueInputConfig
Returns
TypeDescription
Dataset.Builder

addInputConfigs(int index, InputConfig.Builder builderForValue)

public Dataset.Builder addInputConfigs(int index, InputConfig.Builder builderForValue)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameters
NameDescription
indexint
builderForValueInputConfig.Builder
Returns
TypeDescription
Dataset.Builder

addInputConfigsBuilder()

public InputConfig.Builder addInputConfigsBuilder()

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Returns
TypeDescription
InputConfig.Builder

addInputConfigsBuilder(int index)

public InputConfig.Builder addInputConfigsBuilder(int index)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
InputConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Dataset build()
Returns
TypeDescription
Dataset

buildPartial()

public Dataset buildPartial()
Returns
TypeDescription
Dataset

clear()

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

clearBlockingResources()

public Dataset.Builder clearBlockingResources()

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

repeated string blocking_resources = 6;

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

clearCreateTime()

public Dataset.Builder clearCreateTime()

Output only. Time the dataset is created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Dataset.Builder

clearDataItemCount()

public Dataset.Builder clearDataItemCount()

Output only. The number of data items in the dataset.

int64 data_item_count = 7;

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

clearDescription()

public Dataset.Builder clearDescription()

Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.

string description = 3;

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

clearDisplayName()

public Dataset.Builder clearDisplayName()

Required. The display name of the dataset. Maximum of 64 characters.

string display_name = 2;

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInputConfigs()

public Dataset.Builder clearInputConfigs()

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Returns
TypeDescription
Dataset.Builder

clearName()

public Dataset.Builder clearName()

Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}

string name = 1;

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBlockingResources(int index)

public String getBlockingResources(int index)

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

repeated string blocking_resources = 6;

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 dataset.

repeated string blocking_resources = 6;

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 dataset.

repeated string blocking_resources = 6;

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 dataset.

repeated string blocking_resources = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the blockingResources.

getCreateTime()

public Timestamp getCreateTime()

Output only. Time the dataset is created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time the dataset is created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time the dataset is created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getDataItemCount()

public long getDataItemCount()

Output only. The number of data items in the dataset.

int64 data_item_count = 7;

Returns
TypeDescription
long

The dataItemCount.

getDefaultInstanceForType()

public Dataset getDefaultInstanceForType()
Returns
TypeDescription
Dataset

getDescription()

public String getDescription()

Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. The display name of the dataset. Maximum of 64 characters.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the dataset. Maximum of 64 characters.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getInputConfigs(int index)

public InputConfig getInputConfigs(int index)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
InputConfig

getInputConfigsBuilder(int index)

public InputConfig.Builder getInputConfigsBuilder(int index)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
InputConfig.Builder

getInputConfigsBuilderList()

public List<InputConfig.Builder> getInputConfigsBuilderList()

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Returns
TypeDescription
List<Builder>

getInputConfigsCount()

public int getInputConfigsCount()

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Returns
TypeDescription
int

getInputConfigsList()

public List<InputConfig> getInputConfigsList()

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Returns
TypeDescription
List<InputConfig>

getInputConfigsOrBuilder(int index)

public InputConfigOrBuilder getInputConfigsOrBuilder(int index)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
InputConfigOrBuilder

getInputConfigsOrBuilderList()

public List<? extends InputConfigOrBuilder> getInputConfigsOrBuilderList()

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Returns
TypeDescription
List<? extends com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>

getName()

public String getName()

Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time the dataset is created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
boolean

Whether the createTime 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 Dataset.Builder mergeCreateTime(Timestamp value)

Output only. Time the dataset is created.

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Dataset.Builder

mergeFrom(Dataset other)

public Dataset.Builder mergeFrom(Dataset other)
Parameter
NameDescription
otherDataset
Returns
TypeDescription
Dataset.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInputConfigs(int index)

public Dataset.Builder removeInputConfigs(int index)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Dataset.Builder

setBlockingResources(int index, String value)

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

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

repeated string blocking_resources = 6;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The blockingResources to set.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Dataset.Builder setCreateTime(Timestamp value)

Output only. Time the dataset is created.

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Dataset.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Dataset.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time the dataset is created.

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Dataset.Builder

setDataItemCount(long value)

public Dataset.Builder setDataItemCount(long value)

Output only. The number of data items in the dataset.

int64 data_item_count = 7;

Parameter
NameDescription
valuelong

The dataItemCount to set.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

setDescription(String value)

public Dataset.Builder setDescription(String value)

Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Dataset.Builder setDescriptionBytes(ByteString value)

Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

setDisplayName(String value)

public Dataset.Builder setDisplayName(String value)

Required. The display name of the dataset. Maximum of 64 characters.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Dataset.Builder setDisplayNameBytes(ByteString value)

Required. The display name of the dataset. Maximum of 64 characters.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInputConfigs(int index, InputConfig value)

public Dataset.Builder setInputConfigs(int index, InputConfig value)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameters
NameDescription
indexint
valueInputConfig
Returns
TypeDescription
Dataset.Builder

setInputConfigs(int index, InputConfig.Builder builderForValue)

public Dataset.Builder setInputConfigs(int index, InputConfig.Builder builderForValue)

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.

repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;

Parameters
NameDescription
indexint
builderForValueInputConfig.Builder
Returns
TypeDescription
Dataset.Builder

setName(String value)

public Dataset.Builder setName(String value)

Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Dataset.Builder setNameBytes(ByteString value)

Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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