Class DataplexSpec.Builder (1.23.0)

public static final class DataplexSpec.Builder extends GeneratedMessageV3.Builder<DataplexSpec.Builder> implements DataplexSpecOrBuilder

Common Dataplex fields.

Protobuf type google.cloud.datacatalog.v1.DataplexSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataplexSpec build()
Returns
TypeDescription
DataplexSpec

buildPartial()

public DataplexSpec buildPartial()
Returns
TypeDescription
DataplexSpec

clear()

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

clearAsset()

public DataplexSpec.Builder clearAsset()

Fully qualified resource name of an asset in Dataplex, to which the underlying data source (Cloud Storage bucket or BigQuery dataset) of the entity is attached.

string asset = 1;

Returns
TypeDescription
DataplexSpec.Builder

This builder for chaining.

clearCompressionFormat()

public DataplexSpec.Builder clearCompressionFormat()

Compression format of the data, e.g., zip, gzip etc.

string compression_format = 3;

Returns
TypeDescription
DataplexSpec.Builder

This builder for chaining.

clearDataFormat()

public DataplexSpec.Builder clearDataFormat()

Format of the data.

.google.cloud.datacatalog.v1.PhysicalSchema data_format = 2;

Returns
TypeDescription
DataplexSpec.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public DataplexSpec.Builder clearProjectId()

Project ID of the underlying Cloud Storage or BigQuery data. Note that this may not be the same project as the correspondingly Dataplex lake / zone / asset.

string project_id = 4;

Returns
TypeDescription
DataplexSpec.Builder

This builder for chaining.

clone()

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

getAsset()

public String getAsset()

Fully qualified resource name of an asset in Dataplex, to which the underlying data source (Cloud Storage bucket or BigQuery dataset) of the entity is attached.

string asset = 1;

Returns
TypeDescription
String

The asset.

getAssetBytes()

public ByteString getAssetBytes()

Fully qualified resource name of an asset in Dataplex, to which the underlying data source (Cloud Storage bucket or BigQuery dataset) of the entity is attached.

string asset = 1;

Returns
TypeDescription
ByteString

The bytes for asset.

getCompressionFormat()

public String getCompressionFormat()

Compression format of the data, e.g., zip, gzip etc.

string compression_format = 3;

Returns
TypeDescription
String

The compressionFormat.

getCompressionFormatBytes()

public ByteString getCompressionFormatBytes()

Compression format of the data, e.g., zip, gzip etc.

string compression_format = 3;

Returns
TypeDescription
ByteString

The bytes for compressionFormat.

getDataFormat()

public PhysicalSchema getDataFormat()

Format of the data.

.google.cloud.datacatalog.v1.PhysicalSchema data_format = 2;

Returns
TypeDescription
PhysicalSchema

The dataFormat.

getDataFormatBuilder()

public PhysicalSchema.Builder getDataFormatBuilder()

Format of the data.

.google.cloud.datacatalog.v1.PhysicalSchema data_format = 2;

Returns
TypeDescription
PhysicalSchema.Builder

getDataFormatOrBuilder()

public PhysicalSchemaOrBuilder getDataFormatOrBuilder()

Format of the data.

.google.cloud.datacatalog.v1.PhysicalSchema data_format = 2;

Returns
TypeDescription
PhysicalSchemaOrBuilder

getDefaultInstanceForType()

public DataplexSpec getDefaultInstanceForType()
Returns
TypeDescription
DataplexSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProjectId()

public String getProjectId()

Project ID of the underlying Cloud Storage or BigQuery data. Note that this may not be the same project as the correspondingly Dataplex lake / zone / asset.

string project_id = 4;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Project ID of the underlying Cloud Storage or BigQuery data. Note that this may not be the same project as the correspondingly Dataplex lake / zone / asset.

string project_id = 4;

Returns
TypeDescription
ByteString

The bytes for projectId.

hasDataFormat()

public boolean hasDataFormat()

Format of the data.

.google.cloud.datacatalog.v1.PhysicalSchema data_format = 2;

Returns
TypeDescription
boolean

Whether the dataFormat field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDataFormat(PhysicalSchema value)

public DataplexSpec.Builder mergeDataFormat(PhysicalSchema value)

Format of the data.

.google.cloud.datacatalog.v1.PhysicalSchema data_format = 2;

Parameter
NameDescription
valuePhysicalSchema
Returns
TypeDescription
DataplexSpec.Builder

mergeFrom(DataplexSpec other)

public DataplexSpec.Builder mergeFrom(DataplexSpec other)
Parameter
NameDescription
otherDataplexSpec
Returns
TypeDescription
DataplexSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAsset(String value)

public DataplexSpec.Builder setAsset(String value)

Fully qualified resource name of an asset in Dataplex, to which the underlying data source (Cloud Storage bucket or BigQuery dataset) of the entity is attached.

string asset = 1;

Parameter
NameDescription
valueString

The asset to set.

Returns
TypeDescription
DataplexSpec.Builder

This builder for chaining.

setAssetBytes(ByteString value)

public DataplexSpec.Builder setAssetBytes(ByteString value)

Fully qualified resource name of an asset in Dataplex, to which the underlying data source (Cloud Storage bucket or BigQuery dataset) of the entity is attached.

string asset = 1;

Parameter
NameDescription
valueByteString

The bytes for asset to set.

Returns
TypeDescription
DataplexSpec.Builder

This builder for chaining.

setCompressionFormat(String value)

public DataplexSpec.Builder setCompressionFormat(String value)

Compression format of the data, e.g., zip, gzip etc.

string compression_format = 3;

Parameter
NameDescription
valueString

The compressionFormat to set.

Returns
TypeDescription
DataplexSpec.Builder

This builder for chaining.

setCompressionFormatBytes(ByteString value)

public DataplexSpec.Builder setCompressionFormatBytes(ByteString value)

Compression format of the data, e.g., zip, gzip etc.

string compression_format = 3;

Parameter
NameDescription
valueByteString

The bytes for compressionFormat to set.

Returns
TypeDescription
DataplexSpec.Builder

This builder for chaining.

setDataFormat(PhysicalSchema value)

public DataplexSpec.Builder setDataFormat(PhysicalSchema value)

Format of the data.

.google.cloud.datacatalog.v1.PhysicalSchema data_format = 2;

Parameter
NameDescription
valuePhysicalSchema
Returns
TypeDescription
DataplexSpec.Builder

setDataFormat(PhysicalSchema.Builder builderForValue)

public DataplexSpec.Builder setDataFormat(PhysicalSchema.Builder builderForValue)

Format of the data.

.google.cloud.datacatalog.v1.PhysicalSchema data_format = 2;

Parameter
NameDescription
builderForValuePhysicalSchema.Builder
Returns
TypeDescription
DataplexSpec.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProjectId(String value)

public DataplexSpec.Builder setProjectId(String value)

Project ID of the underlying Cloud Storage or BigQuery data. Note that this may not be the same project as the correspondingly Dataplex lake / zone / asset.

string project_id = 4;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
DataplexSpec.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public DataplexSpec.Builder setProjectIdBytes(ByteString value)

Project ID of the underlying Cloud Storage or BigQuery data. Note that this may not be the same project as the correspondingly Dataplex lake / zone / asset.

string project_id = 4;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
DataplexSpec.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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