Class DataProfileSpec.Builder

  • All Implemented Interfaces:
    DataProfileSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    DataProfileSpec

    public static final class DataProfileSpec.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DataProfileSpec.Builder>
    implements DataProfileSpecOrBuilder
     DataProfileScan related setting.
     
    Protobuf type google.cloud.dataplex.v1.DataProfileSpec
    • 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<DataProfileSpec.Builder>
      • clear

        public DataProfileSpec.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<DataProfileSpec.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<DataProfileSpec.Builder>
      • getDefaultInstanceForType

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

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

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

        public DataProfileSpec.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<DataProfileSpec.Builder>
      • setField

        public DataProfileSpec.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<DataProfileSpec.Builder>
      • clearField

        public DataProfileSpec.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<DataProfileSpec.Builder>
      • clearOneof

        public DataProfileSpec.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<DataProfileSpec.Builder>
      • setRepeatedField

        public DataProfileSpec.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<DataProfileSpec.Builder>
      • addRepeatedField

        public DataProfileSpec.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<DataProfileSpec.Builder>
      • mergeFrom

        public DataProfileSpec.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<DataProfileSpec.Builder>
      • isInitialized

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

        public DataProfileSpec.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<DataProfileSpec.Builder>
        Throws:
        IOException
      • getSamplingPercent

        public float getSamplingPercent()
         Optional. The percentage of the records to be selected from the dataset for
         DataScan.
        
         * Value can range between 0.0 and 100.0 with up to 3 significant decimal
         digits.
         * Sampling is not applied if `sampling_percent` is not specified, 0 or
         100.
         
        float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSamplingPercent in interface DataProfileSpecOrBuilder
        Returns:
        The samplingPercent.
      • setSamplingPercent

        public DataProfileSpec.Builder setSamplingPercent​(float value)
         Optional. The percentage of the records to be selected from the dataset for
         DataScan.
        
         * Value can range between 0.0 and 100.0 with up to 3 significant decimal
         digits.
         * Sampling is not applied if `sampling_percent` is not specified, 0 or
         100.
         
        float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The samplingPercent to set.
        Returns:
        This builder for chaining.
      • clearSamplingPercent

        public DataProfileSpec.Builder clearSamplingPercent()
         Optional. The percentage of the records to be selected from the dataset for
         DataScan.
        
         * Value can range between 0.0 and 100.0 with up to 3 significant decimal
         digits.
         * Sampling is not applied if `sampling_percent` is not specified, 0 or
         100.
         
        float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getRowFilter

        public String getRowFilter()
         Optional. A filter applied to all rows in a single DataScan job.
         The filter needs to be a valid SQL expression for a WHERE clause in
         BigQuery standard SQL syntax.
         Example: col1 >= 0 AND col2 < 10
         
        string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRowFilter in interface DataProfileSpecOrBuilder
        Returns:
        The rowFilter.
      • getRowFilterBytes

        public com.google.protobuf.ByteString getRowFilterBytes()
         Optional. A filter applied to all rows in a single DataScan job.
         The filter needs to be a valid SQL expression for a WHERE clause in
         BigQuery standard SQL syntax.
         Example: col1 >= 0 AND col2 < 10
         
        string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRowFilterBytes in interface DataProfileSpecOrBuilder
        Returns:
        The bytes for rowFilter.
      • setRowFilter

        public DataProfileSpec.Builder setRowFilter​(String value)
         Optional. A filter applied to all rows in a single DataScan job.
         The filter needs to be a valid SQL expression for a WHERE clause in
         BigQuery standard SQL syntax.
         Example: col1 >= 0 AND col2 < 10
         
        string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The rowFilter to set.
        Returns:
        This builder for chaining.
      • clearRowFilter

        public DataProfileSpec.Builder clearRowFilter()
         Optional. A filter applied to all rows in a single DataScan job.
         The filter needs to be a valid SQL expression for a WHERE clause in
         BigQuery standard SQL syntax.
         Example: col1 >= 0 AND col2 < 10
         
        string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRowFilterBytes

        public DataProfileSpec.Builder setRowFilterBytes​(com.google.protobuf.ByteString value)
         Optional. A filter applied to all rows in a single DataScan job.
         The filter needs to be a valid SQL expression for a WHERE clause in
         BigQuery standard SQL syntax.
         Example: col1 >= 0 AND col2 < 10
         
        string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for rowFilter to set.
        Returns:
        This builder for chaining.
      • hasPostScanActions

        public boolean hasPostScanActions()
         Optional. Actions to take upon job completion..
         
        .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasPostScanActions in interface DataProfileSpecOrBuilder
        Returns:
        Whether the postScanActions field is set.
      • setPostScanActions

        public DataProfileSpec.Builder setPostScanActions​(DataProfileSpec.PostScanActions value)
         Optional. Actions to take upon job completion..
         
        .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];
      • mergePostScanActions

        public DataProfileSpec.Builder mergePostScanActions​(DataProfileSpec.PostScanActions value)
         Optional. Actions to take upon job completion..
         
        .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];
      • clearPostScanActions

        public DataProfileSpec.Builder clearPostScanActions()
         Optional. Actions to take upon job completion..
         
        .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getPostScanActionsBuilder

        public DataProfileSpec.PostScanActions.Builder getPostScanActionsBuilder()
         Optional. Actions to take upon job completion..
         
        .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];
      • hasIncludeFields

        public boolean hasIncludeFields()
         Optional. The fields to include in data profile.
        
         If not specified, all fields at the time of profile scan job execution are
         included, except for ones listed in `exclude_fields`.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasIncludeFields in interface DataProfileSpecOrBuilder
        Returns:
        Whether the includeFields field is set.
      • getIncludeFields

        public DataProfileSpec.SelectedFields getIncludeFields()
         Optional. The fields to include in data profile.
        
         If not specified, all fields at the time of profile scan job execution are
         included, except for ones listed in `exclude_fields`.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIncludeFields in interface DataProfileSpecOrBuilder
        Returns:
        The includeFields.
      • setIncludeFields

        public DataProfileSpec.Builder setIncludeFields​(DataProfileSpec.SelectedFields value)
         Optional. The fields to include in data profile.
        
         If not specified, all fields at the time of profile scan job execution are
         included, except for ones listed in `exclude_fields`.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];
      • setIncludeFields

        public DataProfileSpec.Builder setIncludeFields​(DataProfileSpec.SelectedFields.Builder builderForValue)
         Optional. The fields to include in data profile.
        
         If not specified, all fields at the time of profile scan job execution are
         included, except for ones listed in `exclude_fields`.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];
      • mergeIncludeFields

        public DataProfileSpec.Builder mergeIncludeFields​(DataProfileSpec.SelectedFields value)
         Optional. The fields to include in data profile.
        
         If not specified, all fields at the time of profile scan job execution are
         included, except for ones listed in `exclude_fields`.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];
      • clearIncludeFields

        public DataProfileSpec.Builder clearIncludeFields()
         Optional. The fields to include in data profile.
        
         If not specified, all fields at the time of profile scan job execution are
         included, except for ones listed in `exclude_fields`.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getIncludeFieldsBuilder

        public DataProfileSpec.SelectedFields.Builder getIncludeFieldsBuilder()
         Optional. The fields to include in data profile.
        
         If not specified, all fields at the time of profile scan job execution are
         included, except for ones listed in `exclude_fields`.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getIncludeFieldsOrBuilder

        public DataProfileSpec.SelectedFieldsOrBuilder getIncludeFieldsOrBuilder()
         Optional. The fields to include in data profile.
        
         If not specified, all fields at the time of profile scan job execution are
         included, except for ones listed in `exclude_fields`.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIncludeFieldsOrBuilder in interface DataProfileSpecOrBuilder
      • hasExcludeFields

        public boolean hasExcludeFields()
         Optional. The fields to exclude from data profile.
        
         If specified, the fields will be excluded from data profile, regardless of
         `include_fields` value.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasExcludeFields in interface DataProfileSpecOrBuilder
        Returns:
        Whether the excludeFields field is set.
      • getExcludeFields

        public DataProfileSpec.SelectedFields getExcludeFields()
         Optional. The fields to exclude from data profile.
        
         If specified, the fields will be excluded from data profile, regardless of
         `include_fields` value.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getExcludeFields in interface DataProfileSpecOrBuilder
        Returns:
        The excludeFields.
      • setExcludeFields

        public DataProfileSpec.Builder setExcludeFields​(DataProfileSpec.SelectedFields value)
         Optional. The fields to exclude from data profile.
        
         If specified, the fields will be excluded from data profile, regardless of
         `include_fields` value.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];
      • setExcludeFields

        public DataProfileSpec.Builder setExcludeFields​(DataProfileSpec.SelectedFields.Builder builderForValue)
         Optional. The fields to exclude from data profile.
        
         If specified, the fields will be excluded from data profile, regardless of
         `include_fields` value.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];
      • mergeExcludeFields

        public DataProfileSpec.Builder mergeExcludeFields​(DataProfileSpec.SelectedFields value)
         Optional. The fields to exclude from data profile.
        
         If specified, the fields will be excluded from data profile, regardless of
         `include_fields` value.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];
      • clearExcludeFields

        public DataProfileSpec.Builder clearExcludeFields()
         Optional. The fields to exclude from data profile.
        
         If specified, the fields will be excluded from data profile, regardless of
         `include_fields` value.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getExcludeFieldsBuilder

        public DataProfileSpec.SelectedFields.Builder getExcludeFieldsBuilder()
         Optional. The fields to exclude from data profile.
        
         If specified, the fields will be excluded from data profile, regardless of
         `include_fields` value.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getExcludeFieldsOrBuilder

        public DataProfileSpec.SelectedFieldsOrBuilder getExcludeFieldsOrBuilder()
         Optional. The fields to exclude from data profile.
        
         If specified, the fields will be excluded from data profile, regardless of
         `include_fields` value.
         
        .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getExcludeFieldsOrBuilder in interface DataProfileSpecOrBuilder
      • setUnknownFields

        public final DataProfileSpec.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<DataProfileSpec.Builder>
      • mergeUnknownFields

        public final DataProfileSpec.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<DataProfileSpec.Builder>