Class DataScan.Builder (1.21.0)

public static final class DataScan.Builder extends GeneratedMessageV3.Builder<DataScan.Builder> implements DataScanOrBuilder

Represents a user-visible job which provides the insights for the related data source.

For example:

  • Data Quality: generates queries based on the rules and runs against the data to get data quality check results.
  • Data Profile: analyzes the data in table(s) and generates insights about the structure, content and relationships (such as null percent, cardinality, min/max/mean, etc).

Protobuf type google.cloud.dataplex.v1.DataScan

Implements

DataScanOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataScan build()
Returns
TypeDescription
DataScan

buildPartial()

public DataScan buildPartial()
Returns
TypeDescription
DataScan

clear()

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

clearCreateTime()

public DataScan.Builder clearCreateTime()

Output only. The time when the scan was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.Builder

clearData()

public DataScan.Builder clearData()

Required. The data source for DataScan.

.google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataScan.Builder

clearDataProfileResult()

public DataScan.Builder clearDataProfileResult()

Output only. The result of the data profile scan.

.google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.Builder

clearDataProfileSpec()

public DataScan.Builder clearDataProfileSpec()

DataProfileScan related setting.

.google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101;

Returns
TypeDescription
DataScan.Builder

clearDataQualityResult()

public DataScan.Builder clearDataQualityResult()

Output only. The result of the data quality scan.

.google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.Builder

clearDataQualitySpec()

public DataScan.Builder clearDataQualitySpec()

DataQualityScan related setting.

.google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100;

Returns
TypeDescription
DataScan.Builder

clearDescription()

public DataScan.Builder clearDescription()

Optional. Description of the scan.

  • Must be between 1-1024 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

clearDisplayName()

public DataScan.Builder clearDisplayName()

Optional. User friendly display name.

  • Must be between 1-256 characters.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

clearExecutionSpec()

public DataScan.Builder clearExecutionSpec()

Optional. DataScan execution settings.

If not specified, the fields in it will use their default values.

.google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataScan.Builder

clearExecutionStatus()

public DataScan.Builder clearExecutionStatus()

Output only. Status of the data scan execution.

.google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public DataScan.Builder clearLabels()
Returns
TypeDescription
DataScan.Builder

clearName()

public DataScan.Builder clearName()

Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}, where project refers to a project_id or project_number and location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResult()

public DataScan.Builder clearResult()
Returns
TypeDescription
DataScan.Builder

clearSpec()

public DataScan.Builder clearSpec()
Returns
TypeDescription
DataScan.Builder

clearState()

public DataScan.Builder clearState()

Output only. Current state of the DataScan.

.google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

clearType()

public DataScan.Builder clearType()

Output only. The type of DataScan.

.google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

clearUid()

public DataScan.Builder clearUid()

Output only. System generated globally unique ID for the scan. This ID will be different if the scan is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

clearUpdateTime()

public DataScan.Builder clearUpdateTime()

Output only. The time when the scan was last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. User-defined labels for the scan.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the scan was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the scan was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the scan was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getData()

public DataSource getData()

Required. The data source for DataScan.

.google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataSource

The data.

getDataBuilder()

public DataSource.Builder getDataBuilder()

Required. The data source for DataScan.

.google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataSource.Builder

getDataOrBuilder()

public DataSourceOrBuilder getDataOrBuilder()

Required. The data source for DataScan.

.google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataSourceOrBuilder

getDataProfileResult()

public DataProfileResult getDataProfileResult()

Output only. The result of the data profile scan.

.google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataProfileResult

The dataProfileResult.

getDataProfileResultBuilder()

public DataProfileResult.Builder getDataProfileResultBuilder()

Output only. The result of the data profile scan.

.google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataProfileResult.Builder

getDataProfileResultOrBuilder()

public DataProfileResultOrBuilder getDataProfileResultOrBuilder()

Output only. The result of the data profile scan.

.google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataProfileResultOrBuilder

getDataProfileSpec()

public DataProfileSpec getDataProfileSpec()

DataProfileScan related setting.

.google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101;

Returns
TypeDescription
DataProfileSpec

The dataProfileSpec.

getDataProfileSpecBuilder()

public DataProfileSpec.Builder getDataProfileSpecBuilder()

DataProfileScan related setting.

.google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101;

Returns
TypeDescription
DataProfileSpec.Builder

getDataProfileSpecOrBuilder()

public DataProfileSpecOrBuilder getDataProfileSpecOrBuilder()

DataProfileScan related setting.

.google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101;

Returns
TypeDescription
DataProfileSpecOrBuilder

getDataQualityResult()

public DataQualityResult getDataQualityResult()

Output only. The result of the data quality scan.

.google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataQualityResult

The dataQualityResult.

getDataQualityResultBuilder()

public DataQualityResult.Builder getDataQualityResultBuilder()

Output only. The result of the data quality scan.

.google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataQualityResult.Builder

getDataQualityResultOrBuilder()

public DataQualityResultOrBuilder getDataQualityResultOrBuilder()

Output only. The result of the data quality scan.

.google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataQualityResultOrBuilder

getDataQualitySpec()

public DataQualitySpec getDataQualitySpec()

DataQualityScan related setting.

.google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100;

Returns
TypeDescription
DataQualitySpec

The dataQualitySpec.

getDataQualitySpecBuilder()

public DataQualitySpec.Builder getDataQualitySpecBuilder()

DataQualityScan related setting.

.google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100;

Returns
TypeDescription
DataQualitySpec.Builder

getDataQualitySpecOrBuilder()

public DataQualitySpecOrBuilder getDataQualitySpecOrBuilder()

DataQualityScan related setting.

.google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100;

Returns
TypeDescription
DataQualitySpecOrBuilder

getDefaultInstanceForType()

public DataScan getDefaultInstanceForType()
Returns
TypeDescription
DataScan

getDescription()

public String getDescription()

Optional. Description of the scan.

  • Must be between 1-1024 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the scan.

  • Must be between 1-1024 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. User friendly display name.

  • Must be between 1-256 characters.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. User friendly display name.

  • Must be between 1-256 characters.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for displayName.

getExecutionSpec()

public DataScan.ExecutionSpec getExecutionSpec()

Optional. DataScan execution settings.

If not specified, the fields in it will use their default values.

.google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataScan.ExecutionSpec

The executionSpec.

getExecutionSpecBuilder()

public DataScan.ExecutionSpec.Builder getExecutionSpecBuilder()

Optional. DataScan execution settings.

If not specified, the fields in it will use their default values.

.google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataScan.ExecutionSpec.Builder

getExecutionSpecOrBuilder()

public DataScan.ExecutionSpecOrBuilder getExecutionSpecOrBuilder()

Optional. DataScan execution settings.

If not specified, the fields in it will use their default values.

.google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataScan.ExecutionSpecOrBuilder

getExecutionStatus()

public DataScan.ExecutionStatus getExecutionStatus()

Output only. Status of the data scan execution.

.google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.ExecutionStatus

The executionStatus.

getExecutionStatusBuilder()

public DataScan.ExecutionStatus.Builder getExecutionStatusBuilder()

Output only. Status of the data scan execution.

.google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.ExecutionStatus.Builder

getExecutionStatusOrBuilder()

public DataScan.ExecutionStatusOrBuilder getExecutionStatusOrBuilder()

Output only. Status of the data scan execution.

.google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScan.ExecutionStatusOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. User-defined labels for the scan.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. User-defined labels for the scan.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. User-defined labels for the scan.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. User-defined labels for the scan.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}, where project refers to a project_id or project_number and location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}, where project refers to a project_id or project_number and location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getResultCase()

public DataScan.ResultCase getResultCase()
Returns
TypeDescription
DataScan.ResultCase

getSpecCase()

public DataScan.SpecCase getSpecCase()
Returns
TypeDescription
DataScan.SpecCase

getState()

public State getState()

Output only. Current state of the DataScan.

.google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
State

The state.

getStateValue()

public int getStateValue()

Output only. Current state of the DataScan.

.google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getType()

public DataScanType getType()

Output only. The type of DataScan.

.google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataScanType

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of DataScan.

.google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUid()

public String getUid()

Output only. System generated globally unique ID for the scan. This ID will be different if the scan is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System generated globally unique ID for the scan. This ID will be different if the scan is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the scan was last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the scan was last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the scan was last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the scan was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasData()

public boolean hasData()

Required. The data source for DataScan.

.google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the data field is set.

hasDataProfileResult()

public boolean hasDataProfileResult()

Output only. The result of the data profile scan.

.google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the dataProfileResult field is set.

hasDataProfileSpec()

public boolean hasDataProfileSpec()

DataProfileScan related setting.

.google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101;

Returns
TypeDescription
boolean

Whether the dataProfileSpec field is set.

hasDataQualityResult()

public boolean hasDataQualityResult()

Output only. The result of the data quality scan.

.google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the dataQualityResult field is set.

hasDataQualitySpec()

public boolean hasDataQualitySpec()

DataQualityScan related setting.

.google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100;

Returns
TypeDescription
boolean

Whether the dataQualitySpec field is set.

hasExecutionSpec()

public boolean hasExecutionSpec()

Optional. DataScan execution settings.

If not specified, the fields in it will use their default values.

.google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the executionSpec field is set.

hasExecutionStatus()

public boolean hasExecutionStatus()

Output only. Status of the data scan execution.

.google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the executionStatus field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the scan was last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public DataScan.Builder mergeCreateTime(Timestamp value)

Output only. The time when the scan was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DataScan.Builder

mergeData(DataSource value)

public DataScan.Builder mergeData(DataSource value)

Required. The data source for DataScan.

.google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDataSource
Returns
TypeDescription
DataScan.Builder

mergeDataProfileResult(DataProfileResult value)

public DataScan.Builder mergeDataProfileResult(DataProfileResult value)

Output only. The result of the data profile scan.

.google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDataProfileResult
Returns
TypeDescription
DataScan.Builder

mergeDataProfileSpec(DataProfileSpec value)

public DataScan.Builder mergeDataProfileSpec(DataProfileSpec value)

DataProfileScan related setting.

.google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101;

Parameter
NameDescription
valueDataProfileSpec
Returns
TypeDescription
DataScan.Builder

mergeDataQualityResult(DataQualityResult value)

public DataScan.Builder mergeDataQualityResult(DataQualityResult value)

Output only. The result of the data quality scan.

.google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDataQualityResult
Returns
TypeDescription
DataScan.Builder

mergeDataQualitySpec(DataQualitySpec value)

public DataScan.Builder mergeDataQualitySpec(DataQualitySpec value)

DataQualityScan related setting.

.google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100;

Parameter
NameDescription
valueDataQualitySpec
Returns
TypeDescription
DataScan.Builder

mergeExecutionSpec(DataScan.ExecutionSpec value)

public DataScan.Builder mergeExecutionSpec(DataScan.ExecutionSpec value)

Optional. DataScan execution settings.

If not specified, the fields in it will use their default values.

.google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDataScan.ExecutionSpec
Returns
TypeDescription
DataScan.Builder

mergeExecutionStatus(DataScan.ExecutionStatus value)

public DataScan.Builder mergeExecutionStatus(DataScan.ExecutionStatus value)

Output only. Status of the data scan execution.

.google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDataScan.ExecutionStatus
Returns
TypeDescription
DataScan.Builder

mergeFrom(DataScan other)

public DataScan.Builder mergeFrom(DataScan other)
Parameter
NameDescription
otherDataScan
Returns
TypeDescription
DataScan.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public DataScan.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the scan was last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DataScan.Builder

putAllLabels(Map<String,String> values)

public DataScan.Builder putAllLabels(Map<String,String> values)

Optional. User-defined labels for the scan.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
DataScan.Builder

putLabels(String key, String value)

public DataScan.Builder putLabels(String key, String value)

Optional. User-defined labels for the scan.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
DataScan.Builder

removeLabels(String key)

public DataScan.Builder removeLabels(String key)

Optional. User-defined labels for the scan.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
DataScan.Builder

setCreateTime(Timestamp value)

public DataScan.Builder setCreateTime(Timestamp value)

Output only. The time when the scan was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DataScan.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DataScan.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the scan was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DataScan.Builder

setData(DataSource value)

public DataScan.Builder setData(DataSource value)

Required. The data source for DataScan.

.google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDataSource
Returns
TypeDescription
DataScan.Builder

setData(DataSource.Builder builderForValue)

public DataScan.Builder setData(DataSource.Builder builderForValue)

Required. The data source for DataScan.

.google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueDataSource.Builder
Returns
TypeDescription
DataScan.Builder

setDataProfileResult(DataProfileResult value)

public DataScan.Builder setDataProfileResult(DataProfileResult value)

Output only. The result of the data profile scan.

.google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDataProfileResult
Returns
TypeDescription
DataScan.Builder

setDataProfileResult(DataProfileResult.Builder builderForValue)

public DataScan.Builder setDataProfileResult(DataProfileResult.Builder builderForValue)

Output only. The result of the data profile scan.

.google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueDataProfileResult.Builder
Returns
TypeDescription
DataScan.Builder

setDataProfileSpec(DataProfileSpec value)

public DataScan.Builder setDataProfileSpec(DataProfileSpec value)

DataProfileScan related setting.

.google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101;

Parameter
NameDescription
valueDataProfileSpec
Returns
TypeDescription
DataScan.Builder

setDataProfileSpec(DataProfileSpec.Builder builderForValue)

public DataScan.Builder setDataProfileSpec(DataProfileSpec.Builder builderForValue)

DataProfileScan related setting.

.google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101;

Parameter
NameDescription
builderForValueDataProfileSpec.Builder
Returns
TypeDescription
DataScan.Builder

setDataQualityResult(DataQualityResult value)

public DataScan.Builder setDataQualityResult(DataQualityResult value)

Output only. The result of the data quality scan.

.google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDataQualityResult
Returns
TypeDescription
DataScan.Builder

setDataQualityResult(DataQualityResult.Builder builderForValue)

public DataScan.Builder setDataQualityResult(DataQualityResult.Builder builderForValue)

Output only. The result of the data quality scan.

.google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueDataQualityResult.Builder
Returns
TypeDescription
DataScan.Builder

setDataQualitySpec(DataQualitySpec value)

public DataScan.Builder setDataQualitySpec(DataQualitySpec value)

DataQualityScan related setting.

.google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100;

Parameter
NameDescription
valueDataQualitySpec
Returns
TypeDescription
DataScan.Builder

setDataQualitySpec(DataQualitySpec.Builder builderForValue)

public DataScan.Builder setDataQualitySpec(DataQualitySpec.Builder builderForValue)

DataQualityScan related setting.

.google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100;

Parameter
NameDescription
builderForValueDataQualitySpec.Builder
Returns
TypeDescription
DataScan.Builder

setDescription(String value)

public DataScan.Builder setDescription(String value)

Optional. Description of the scan.

  • Must be between 1-1024 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public DataScan.Builder setDescriptionBytes(ByteString value)

Optional. Description of the scan.

  • Must be between 1-1024 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

setDisplayName(String value)

public DataScan.Builder setDisplayName(String value)

Optional. User friendly display name.

  • Must be between 1-256 characters.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public DataScan.Builder setDisplayNameBytes(ByteString value)

Optional. User friendly display name.

  • Must be between 1-256 characters.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

setExecutionSpec(DataScan.ExecutionSpec value)

public DataScan.Builder setExecutionSpec(DataScan.ExecutionSpec value)

Optional. DataScan execution settings.

If not specified, the fields in it will use their default values.

.google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDataScan.ExecutionSpec
Returns
TypeDescription
DataScan.Builder

setExecutionSpec(DataScan.ExecutionSpec.Builder builderForValue)

public DataScan.Builder setExecutionSpec(DataScan.ExecutionSpec.Builder builderForValue)

Optional. DataScan execution settings.

If not specified, the fields in it will use their default values.

.google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueDataScan.ExecutionSpec.Builder
Returns
TypeDescription
DataScan.Builder

setExecutionStatus(DataScan.ExecutionStatus value)

public DataScan.Builder setExecutionStatus(DataScan.ExecutionStatus value)

Output only. Status of the data scan execution.

.google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDataScan.ExecutionStatus
Returns
TypeDescription
DataScan.Builder

setExecutionStatus(DataScan.ExecutionStatus.Builder builderForValue)

public DataScan.Builder setExecutionStatus(DataScan.ExecutionStatus.Builder builderForValue)

Output only. Status of the data scan execution.

.google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueDataScan.ExecutionStatus.Builder
Returns
TypeDescription
DataScan.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DataScan.Builder setName(String value)

Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}, where project refers to a project_id or project_number and location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataScan.Builder setNameBytes(ByteString value)

Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}, where project refers to a project_id or project_number and location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

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

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

setState(State value)

public DataScan.Builder setState(State value)

Output only. Current state of the DataScan.

.google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueState

The state to set.

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

setStateValue(int value)

public DataScan.Builder setStateValue(int value)

Output only. Current state of the DataScan.

.google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

setType(DataScanType value)

public DataScan.Builder setType(DataScanType value)

Output only. The type of DataScan.

.google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDataScanType

The type to set.

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

setTypeValue(int value)

public DataScan.Builder setTypeValue(int value)

Output only. The type of DataScan.

.google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

setUid(String value)

public DataScan.Builder setUid(String value)

Output only. System generated globally unique ID for the scan. This ID will be different if the scan is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

setUidBytes(ByteString value)

public DataScan.Builder setUidBytes(ByteString value)

Output only. System generated globally unique ID for the scan. This ID will be different if the scan is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
DataScan.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public DataScan.Builder setUpdateTime(Timestamp value)

Output only. The time when the scan was last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DataScan.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DataScan.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the scan was last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DataScan.Builder