Class 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.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
    • Method Detail

      • 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.Builder<Dataset.Builder>
      • clear

        public Dataset.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Dataset.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Dataset.Builder>
      • getDefaultInstanceForType

        public Dataset getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Dataset build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Dataset buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Dataset.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Dataset.Builder>
      • setField

        public Dataset.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Dataset.Builder>
      • clearField

        public Dataset.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Dataset.Builder>
      • clearOneof

        public Dataset.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Dataset.Builder>
      • setRepeatedField

        public Dataset.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                int index,
                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Dataset.Builder>
      • addRepeatedField

        public Dataset.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Dataset.Builder>
      • mergeFrom

        public Dataset.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Dataset.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Dataset.Builder>
      • mergeFrom

        public Dataset.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Dataset.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. Dataset resource name, format is:
         projects/{project_id}/datasets/{dataset_id}
         
        string name = 1;
        Specified by:
        getName in interface DatasetOrBuilder
        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:
        getNameBytes in interface DatasetOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Dataset.Builder setName​(String value)
         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

        public Dataset.Builder clearName()
         Output only. Dataset resource name, format is:
         projects/{project_id}/datasets/{dataset_id}
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Dataset.Builder setNameBytes​(com.google.protobuf.ByteString value)
         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

        public String getDisplayName()
         Required. The display name of the dataset. Maximum of 64 characters.
         
        string display_name = 2;
        Specified by:
        getDisplayName in interface DatasetOrBuilder
        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:
        getDisplayNameBytes in interface DatasetOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public Dataset.Builder setDisplayName​(String value)
         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

        public Dataset.Builder clearDisplayName()
         Required. The display name of the dataset. Maximum of 64 characters.
         
        string display_name = 2;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public Dataset.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         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

        public String getDescription()
         Optional. User-provided description of the annotation specification set.
         The description can be up to 10000 characters long.
         
        string description = 3;
        Specified by:
        getDescription in interface DatasetOrBuilder
        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:
        getDescriptionBytes in interface DatasetOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        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;
        Parameters:
        value - The description to set.
        Returns:
        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:
        This builder for chaining.
      • setDescriptionBytes

        public Dataset.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         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:
        hasCreateTime in interface DatasetOrBuilder
        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:
        getCreateTime in interface DatasetOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Dataset.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Time the dataset is created.
         
        .google.protobuf.Timestamp create_time = 4;
      • setCreateTime

        public Dataset.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Time the dataset is created.
         
        .google.protobuf.Timestamp create_time = 4;
      • mergeCreateTime

        public Dataset.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Time the dataset is created.
         
        .google.protobuf.Timestamp create_time = 4;
      • clearCreateTime

        public Dataset.Builder 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:
        getCreateTimeOrBuilder in interface DatasetOrBuilder
      • 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;
        Specified by:
        getInputConfigsList in interface DatasetOrBuilder
      • 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:
        getInputConfigsCount in interface DatasetOrBuilder
      • getInputConfigs

        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;
        Specified by:
        getInputConfigs in interface DatasetOrBuilder
      • setInputConfigs

        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;
      • setInputConfigs

        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;
      • addInputConfigs

        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;
      • addInputConfigs

        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;
      • addInputConfigs

        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;
      • addInputConfigs

        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;
      • addAllInputConfigs

        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;
      • 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;
      • removeInputConfigs

        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;
      • getInputConfigsBuilder

        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;
      • getInputConfigsOrBuilder

        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;
        Specified by:
        getInputConfigsOrBuilder in interface DatasetOrBuilder
      • 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;
        Specified by:
        getInputConfigsOrBuilderList in interface DatasetOrBuilder
      • 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;
      • addInputConfigsBuilder

        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;
      • 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;
      • 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:
        getBlockingResourcesList in interface DatasetOrBuilder
        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:
        getBlockingResourcesCount in interface DatasetOrBuilder
        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 dataset.
         
        repeated string blocking_resources = 6;
        Specified by:
        getBlockingResources in interface DatasetOrBuilder
        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:
        getBlockingResourcesBytes in interface DatasetOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the blockingResources at the given index.
      • setBlockingResources

        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:
        index - The index to set the value at.
        value - The blockingResources to set.
        Returns:
        This builder for chaining.
      • addBlockingResources

        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;
        Parameters:
        value - The blockingResources to add.
        Returns:
        This builder for chaining.
      • addAllBlockingResources

        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;
        Parameters:
        values - The blockingResources to add.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • addBlockingResourcesBytes

        public Dataset.Builder addBlockingResourcesBytes​(com.google.protobuf.ByteString value)
         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:
        getDataItemCount in interface DatasetOrBuilder
        Returns:
        The dataItemCount.
      • setDataItemCount

        public Dataset.Builder setDataItemCount​(long value)
         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

        public Dataset.Builder clearDataItemCount()
         Output only. The number of data items in the dataset.
         
        int64 data_item_count = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Dataset.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Dataset.Builder>
      • mergeUnknownFields

        public final Dataset.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Dataset.Builder>