Class Dataset.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Dataset.Builder>
com.google.cloud.datalabeling.v1beta1.Dataset.Builder
- All Implemented Interfaces:
DatasetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Dataset
public static final class Dataset.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllBlockingResources(Iterable<String> values) Output only.addAllInputConfigs(Iterable<? extends InputConfig> values) Output only.addBlockingResources(String value) Output only.addBlockingResourcesBytes(com.google.protobuf.ByteString value) Output only.addInputConfigs(int index, InputConfig value) Output only.addInputConfigs(int index, InputConfig.Builder builderForValue) Output only.addInputConfigs(InputConfig value) Output only.addInputConfigs(InputConfig.Builder builderForValue) Output only.Output only.addInputConfigsBuilder(int index) Output only.build()clear()Output only.Output only.Output only.Optional.Required.Output only.Output only.getBlockingResources(int index) Output only.com.google.protobuf.ByteStringgetBlockingResourcesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.longOutput only.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getInputConfigs(int index) Output only.getInputConfigsBuilder(int index) Output only.Output only.intOutput only.Output only.getInputConfigsOrBuilder(int index) Output only.List<? extends InputConfigOrBuilder>Output only.getName()Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeInputConfigs(int index) Output only.setBlockingResources(int index, String value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDataItemCount(long value) Output only.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.setInputConfigs(int index, InputConfig value) Output only.setInputConfigs(int index, InputConfig.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<Dataset.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<Dataset.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<Dataset.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<Dataset.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Dataset.Builder>
-
mergeFrom
public Dataset.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<Dataset.Builder>- Throws:
IOException
-
getName
Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}string name = 1;- Specified by:
getNamein interfaceDatasetOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}string name = 1;- Specified by:
getNameBytesin interfaceDatasetOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
Required. The display name of the dataset. Maximum of 64 characters.
string display_name = 2;- Specified by:
getDisplayNamein interfaceDatasetOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. The display name of the dataset. Maximum of 64 characters.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceDatasetOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Required. The display name of the dataset. Maximum of 64 characters.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. The display name of the dataset. Maximum of 64 characters.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. The display name of the dataset. Maximum of 64 characters.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.
string description = 3;- Specified by:
getDescriptionin interfaceDatasetOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.
string description = 3;- Specified by:
getDescriptionBytesin interfaceDatasetOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Time the dataset is created.
.google.protobuf.Timestamp create_time = 4;- Specified by:
hasCreateTimein interfaceDatasetOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Time the dataset is created.
.google.protobuf.Timestamp create_time = 4;- Specified by:
getCreateTimein interfaceDatasetOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Time the dataset is created.
.google.protobuf.Timestamp create_time = 4; -
setCreateTime
Output only. Time the dataset is created.
.google.protobuf.Timestamp create_time = 4; -
mergeCreateTime
Output only. Time the dataset is created.
.google.protobuf.Timestamp create_time = 4; -
clearCreateTime
Output only. Time the dataset is created.
.google.protobuf.Timestamp create_time = 4; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Time the dataset is created.
.google.protobuf.Timestamp create_time = 4; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time the dataset is created.
.google.protobuf.Timestamp create_time = 4;- Specified by:
getCreateTimeOrBuilderin interfaceDatasetOrBuilder
-
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;- Specified by:
getInputConfigsListin interfaceDatasetOrBuilder
-
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;- Specified by:
getInputConfigsCountin interfaceDatasetOrBuilder
-
getInputConfigs
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;- Specified by:
getInputConfigsin interfaceDatasetOrBuilder
-
setInputConfigs
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; -
setInputConfigs
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; -
addInputConfigs
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; -
addInputConfigs
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; -
addInputConfigs
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; -
addInputConfigs
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; -
addAllInputConfigs
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; -
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; -
removeInputConfigs
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; -
getInputConfigsBuilder
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; -
getInputConfigsOrBuilder
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;- Specified by:
getInputConfigsOrBuilderin interfaceDatasetOrBuilder
-
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;- Specified by:
getInputConfigsOrBuilderListin interfaceDatasetOrBuilder
-
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; -
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; -
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; -
getBlockingResourcesList
public com.google.protobuf.ProtocolStringList getBlockingResourcesList()Output only. The names of any related resources that are blocking changes to the dataset.
repeated string blocking_resources = 6;- Specified by:
getBlockingResourcesListin interfaceDatasetOrBuilder- Returns:
- A list containing the blockingResources.
-
getBlockingResourcesCount
public int getBlockingResourcesCount()Output only. The names of any related resources that are blocking changes to the dataset.
repeated string blocking_resources = 6;- Specified by:
getBlockingResourcesCountin interfaceDatasetOrBuilder- Returns:
- The count of blockingResources.
-
getBlockingResources
Output only. The names of any related resources that are blocking changes to the dataset.
repeated string blocking_resources = 6;- Specified by:
getBlockingResourcesin interfaceDatasetOrBuilder- 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 dataset.
repeated string blocking_resources = 6;- Specified by:
getBlockingResourcesBytesin interfaceDatasetOrBuilder- 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 dataset.
repeated string blocking_resources = 6;- 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 dataset.
repeated string blocking_resources = 6;- 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 dataset.
repeated string blocking_resources = 6;- 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 dataset.
repeated string blocking_resources = 6;- Returns:
- This builder for chaining.
-
addBlockingResourcesBytes
Output only. The names of any related resources that are blocking changes to the dataset.
repeated string blocking_resources = 6;- Parameters:
value- The bytes of the blockingResources to add.- Returns:
- This builder for chaining.
-
getDataItemCount
public long getDataItemCount()Output only. The number of data items in the dataset.
int64 data_item_count = 7;- Specified by:
getDataItemCountin interfaceDatasetOrBuilder- Returns:
- The dataItemCount.
-
setDataItemCount
Output only. The number of data items in the dataset.
int64 data_item_count = 7;- Parameters:
value- The dataItemCount to set.- Returns:
- This builder for chaining.
-
clearDataItemCount
Output only. The number of data items in the dataset.
int64 data_item_count = 7;- Returns:
- This builder for chaining.
-