public static final class CreateDataAssetRequest.Builder extends GeneratedMessage.Builder<CreateDataAssetRequest.Builder> implements CreateDataAssetRequestOrBuilderRequest message for creating a data asset.
Protobuf type google.cloud.dataplex.v1.CreateDataAssetRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateDataAssetRequest.BuilderImplements
CreateDataAssetRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateDataAssetRequest build()| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest |
|
buildPartial()
public CreateDataAssetRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest |
|
clear()
public CreateDataAssetRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
|
clearDataAsset()
public CreateDataAssetRequest.Builder clearDataAsset()Required. The data asset to create.
.google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
|
clearDataAssetId()
public CreateDataAssetRequest.Builder clearDataAssetId()Optional. The ID of the data asset to create.
The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: ^a-z?$
If not provided, a system generated ID will be used.
string data_asset_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
This builder for chaining. |
clearParent()
public CreateDataAssetRequest.Builder clearParent()Required. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
This builder for chaining. |
clearValidateOnly()
public CreateDataAssetRequest.Builder clearValidateOnly()Optional. Validates the request without actually creating the data asset. Defaults to false.
bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
This builder for chaining. |
getDataAsset()
public DataAsset getDataAsset()Required. The data asset to create.
.google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DataAsset |
The dataAsset. |
getDataAssetBuilder()
public DataAsset.Builder getDataAssetBuilder()Required. The data asset to create.
.google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DataAsset.Builder |
|
getDataAssetId()
public String getDataAssetId()Optional. The ID of the data asset to create.
The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: ^a-z?$
If not provided, a system generated ID will be used.
string data_asset_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The dataAssetId. |
getDataAssetIdBytes()
public ByteString getDataAssetIdBytes()Optional. The ID of the data asset to create.
The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: ^a-z?$
If not provided, a system generated ID will be used.
string data_asset_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for dataAssetId. |
getDataAssetOrBuilder()
public DataAssetOrBuilder getDataAssetOrBuilder()Required. The data asset to create.
.google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DataAssetOrBuilder |
|
getDefaultInstanceForType()
public CreateDataAssetRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent()Required. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()Required. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getValidateOnly()
public boolean getValidateOnly()Optional. Validates the request without actually creating the data asset. Defaults to false.
bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The validateOnly. |
hasDataAsset()
public boolean hasDataAsset()Required. The data asset to create.
.google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the dataAsset field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDataAsset(DataAsset value)
public CreateDataAssetRequest.Builder mergeDataAsset(DataAsset value)Required. The data asset to create.
.google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
DataAsset |
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
|
mergeFrom(CreateDataAssetRequest other)
public CreateDataAssetRequest.Builder mergeFrom(CreateDataAssetRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateDataAssetRequest |
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateDataAssetRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateDataAssetRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
|
setDataAsset(DataAsset value)
public CreateDataAssetRequest.Builder setDataAsset(DataAsset value)Required. The data asset to create.
.google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
DataAsset |
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
|
setDataAsset(DataAsset.Builder builderForValue)
public CreateDataAssetRequest.Builder setDataAsset(DataAsset.Builder builderForValue)Required. The data asset to create.
.google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DataAsset.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
|
setDataAssetId(String value)
public CreateDataAssetRequest.Builder setDataAssetId(String value)Optional. The ID of the data asset to create.
The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: ^a-z?$
If not provided, a system generated ID will be used.
string data_asset_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe dataAssetId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
This builder for chaining. |
setDataAssetIdBytes(ByteString value)
public CreateDataAssetRequest.Builder setDataAssetIdBytes(ByteString value)Optional. The ID of the data asset to create.
The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: ^a-z?$
If not provided, a system generated ID will be used.
string data_asset_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for dataAssetId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateDataAssetRequest.Builder setParent(String value)Required. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateDataAssetRequest.Builder setParentBytes(ByteString value)Required. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
This builder for chaining. |
setValidateOnly(boolean value)
public CreateDataAssetRequest.Builder setValidateOnly(boolean value)Optional. Validates the request without actually creating the data asset. Defaults to false.
bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe validateOnly to set. |
| Returns | |
|---|---|
| Type | Description |
CreateDataAssetRequest.Builder |
This builder for chaining. |