Class Asset.Builder (1.34.0)

public static final class Asset.Builder extends GeneratedMessageV3.Builder<Asset.Builder> implements AssetOrBuilder

An asset represents a cloud resource that is being managed within a lake as a member of a zone.

Protobuf type google.cloud.dataplex.v1.Asset

Implements

AssetOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Asset build()
Returns
TypeDescription
Asset

buildPartial()

public Asset buildPartial()
Returns
TypeDescription
Asset

clear()

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

clearCreateTime()

public Asset.Builder clearCreateTime()

Output only. The time when the asset was created.

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

Returns
TypeDescription
Asset.Builder

clearDescription()

public Asset.Builder clearDescription()

Optional. Description of the asset.

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

Returns
TypeDescription
Asset.Builder

This builder for chaining.

clearDiscoverySpec()

public Asset.Builder clearDiscoverySpec()

Optional. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

.google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Asset.Builder

clearDiscoveryStatus()

public Asset.Builder clearDiscoveryStatus()

Output only. Status of the discovery feature applied to data referenced by this asset.

.google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.Builder

clearDisplayName()

public Asset.Builder clearDisplayName()

Optional. User friendly display name.

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

Returns
TypeDescription
Asset.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearName()

public Asset.Builder clearName()

Output only. The relative resource name of the asset, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Asset.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceSpec()

public Asset.Builder clearResourceSpec()

Required. Specification of the resource that is referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Asset.Builder

clearResourceStatus()

public Asset.Builder clearResourceStatus()

Output only. Status of the resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.Builder

clearSecurityStatus()

public Asset.Builder clearSecurityStatus()

Output only. Status of the security policy applied to resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.Builder

clearState()

public Asset.Builder clearState()

Output only. Current state of the asset.

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

Returns
TypeDescription
Asset.Builder

This builder for chaining.

clearUid()

public Asset.Builder clearUid()

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

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

Returns
TypeDescription
Asset.Builder

This builder for chaining.

clearUpdateTime()

public Asset.Builder clearUpdateTime()

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

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

Returns
TypeDescription
Asset.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. User defined labels for the asset.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the asset was created.

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the asset was created.

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the asset was created.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Asset getDefaultInstanceForType()
Returns
TypeDescription
Asset

getDescription()

public String getDescription()

Optional. Description of the asset.

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the asset.

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiscoverySpec()

public Asset.DiscoverySpec getDiscoverySpec()

Optional. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

.google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Asset.DiscoverySpec

The discoverySpec.

getDiscoverySpecBuilder()

public Asset.DiscoverySpec.Builder getDiscoverySpecBuilder()

Optional. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

.google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Asset.DiscoverySpec.Builder

getDiscoverySpecOrBuilder()

public Asset.DiscoverySpecOrBuilder getDiscoverySpecOrBuilder()

Optional. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

.google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Asset.DiscoverySpecOrBuilder

getDiscoveryStatus()

public Asset.DiscoveryStatus getDiscoveryStatus()

Output only. Status of the discovery feature applied to data referenced by this asset.

.google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.DiscoveryStatus

The discoveryStatus.

getDiscoveryStatusBuilder()

public Asset.DiscoveryStatus.Builder getDiscoveryStatusBuilder()

Output only. Status of the discovery feature applied to data referenced by this asset.

.google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.DiscoveryStatus.Builder

getDiscoveryStatusOrBuilder()

public Asset.DiscoveryStatusOrBuilder getDiscoveryStatusOrBuilder()

Output only. Status of the discovery feature applied to data referenced by this asset.

.google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.DiscoveryStatusOrBuilder

getDisplayName()

public String getDisplayName()

Optional. User friendly display name.

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. User friendly display name.

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

Returns
TypeDescription
ByteString

The bytes for displayName.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. User defined labels for the asset.

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

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. User defined labels for the asset.

map<string, string> labels = 6 [(.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 asset.

map<string, string> labels = 6 [(.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 asset.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

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 asset, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The relative resource name of the asset, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getResourceSpec()

public Asset.ResourceSpec getResourceSpec()

Required. Specification of the resource that is referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Asset.ResourceSpec

The resourceSpec.

getResourceSpecBuilder()

public Asset.ResourceSpec.Builder getResourceSpecBuilder()

Required. Specification of the resource that is referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Asset.ResourceSpec.Builder

getResourceSpecOrBuilder()

public Asset.ResourceSpecOrBuilder getResourceSpecOrBuilder()

Required. Specification of the resource that is referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Asset.ResourceSpecOrBuilder

getResourceStatus()

public Asset.ResourceStatus getResourceStatus()

Output only. Status of the resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.ResourceStatus

The resourceStatus.

getResourceStatusBuilder()

public Asset.ResourceStatus.Builder getResourceStatusBuilder()

Output only. Status of the resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.ResourceStatus.Builder

getResourceStatusOrBuilder()

public Asset.ResourceStatusOrBuilder getResourceStatusOrBuilder()

Output only. Status of the resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.ResourceStatusOrBuilder

getSecurityStatus()

public Asset.SecurityStatus getSecurityStatus()

Output only. Status of the security policy applied to resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.SecurityStatus

The securityStatus.

getSecurityStatusBuilder()

public Asset.SecurityStatus.Builder getSecurityStatusBuilder()

Output only. Status of the security policy applied to resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.SecurityStatus.Builder

getSecurityStatusOrBuilder()

public Asset.SecurityStatusOrBuilder getSecurityStatusOrBuilder()

Output only. Status of the security policy applied to resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.SecurityStatusOrBuilder

getState()

public State getState()

Output only. Current state of the asset.

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

Returns
TypeDescription
State

The state.

getStateValue()

public int getStateValue()

Output only. Current state of the asset.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

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

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

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

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

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

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

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

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the asset was created.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDiscoverySpec()

public boolean hasDiscoverySpec()

Optional. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

.google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the discoverySpec field is set.

hasDiscoveryStatus()

public boolean hasDiscoveryStatus()

Output only. Status of the discovery feature applied to data referenced by this asset.

.google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the discoveryStatus field is set.

hasResourceSpec()

public boolean hasResourceSpec()

Required. Specification of the resource that is referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the resourceSpec field is set.

hasResourceStatus()

public boolean hasResourceStatus()

Output only. Status of the resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the resourceStatus field is set.

hasSecurityStatus()

public boolean hasSecurityStatus()

Output only. Status of the security policy applied to resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the securityStatus field is set.

hasUpdateTime()

public boolean hasUpdateTime()

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

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Asset.Builder mergeCreateTime(Timestamp value)

Output only. The time when the asset was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Asset.Builder

mergeDiscoverySpec(Asset.DiscoverySpec value)

public Asset.Builder mergeDiscoverySpec(Asset.DiscoverySpec value)

Optional. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

.google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAsset.DiscoverySpec
Returns
TypeDescription
Asset.Builder

mergeDiscoveryStatus(Asset.DiscoveryStatus value)

public Asset.Builder mergeDiscoveryStatus(Asset.DiscoveryStatus value)

Output only. Status of the discovery feature applied to data referenced by this asset.

.google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAsset.DiscoveryStatus
Returns
TypeDescription
Asset.Builder

mergeFrom(Asset other)

public Asset.Builder mergeFrom(Asset other)
Parameter
NameDescription
otherAsset
Returns
TypeDescription
Asset.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResourceSpec(Asset.ResourceSpec value)

public Asset.Builder mergeResourceSpec(Asset.ResourceSpec value)

Required. Specification of the resource that is referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAsset.ResourceSpec
Returns
TypeDescription
Asset.Builder

mergeResourceStatus(Asset.ResourceStatus value)

public Asset.Builder mergeResourceStatus(Asset.ResourceStatus value)

Output only. Status of the resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAsset.ResourceStatus
Returns
TypeDescription
Asset.Builder

mergeSecurityStatus(Asset.SecurityStatus value)

public Asset.Builder mergeSecurityStatus(Asset.SecurityStatus value)

Output only. Status of the security policy applied to resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAsset.SecurityStatus
Returns
TypeDescription
Asset.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Asset.Builder mergeUpdateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Asset.Builder

putAllLabels(Map<String,String> values)

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

Optional. User defined labels for the asset.

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

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

putLabels(String key, String value)

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

Optional. User defined labels for the asset.

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

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Asset.Builder

removeLabels(String key)

public Asset.Builder removeLabels(String key)

Optional. User defined labels for the asset.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
Asset.Builder

setCreateTime(Timestamp value)

public Asset.Builder setCreateTime(Timestamp value)

Output only. The time when the asset was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Asset.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Asset.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the asset was created.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Asset.Builder

setDescription(String value)

public Asset.Builder setDescription(String value)

Optional. Description of the asset.

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

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Asset.Builder setDescriptionBytes(ByteString value)

Optional. Description of the asset.

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

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setDiscoverySpec(Asset.DiscoverySpec value)

public Asset.Builder setDiscoverySpec(Asset.DiscoverySpec value)

Optional. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

.google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAsset.DiscoverySpec
Returns
TypeDescription
Asset.Builder

setDiscoverySpec(Asset.DiscoverySpec.Builder builderForValue)

public Asset.Builder setDiscoverySpec(Asset.DiscoverySpec.Builder builderForValue)

Optional. Specification of the discovery feature applied to data referenced by this asset. When this spec is left unset, the asset will use the spec set on the parent zone.

.google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAsset.DiscoverySpec.Builder
Returns
TypeDescription
Asset.Builder

setDiscoveryStatus(Asset.DiscoveryStatus value)

public Asset.Builder setDiscoveryStatus(Asset.DiscoveryStatus value)

Output only. Status of the discovery feature applied to data referenced by this asset.

.google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAsset.DiscoveryStatus
Returns
TypeDescription
Asset.Builder

setDiscoveryStatus(Asset.DiscoveryStatus.Builder builderForValue)

public Asset.Builder setDiscoveryStatus(Asset.DiscoveryStatus.Builder builderForValue)

Output only. Status of the discovery feature applied to data referenced by this asset.

.google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueAsset.DiscoveryStatus.Builder
Returns
TypeDescription
Asset.Builder

setDisplayName(String value)

public Asset.Builder setDisplayName(String value)

Optional. User friendly display name.

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

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Asset.Builder setDisplayNameBytes(ByteString value)

Optional. User friendly display name.

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

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Asset.Builder setName(String value)

Output only. The relative resource name of the asset, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Asset.Builder setNameBytes(ByteString value)

Output only. The relative resource name of the asset, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

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

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

setResourceSpec(Asset.ResourceSpec value)

public Asset.Builder setResourceSpec(Asset.ResourceSpec value)

Required. Specification of the resource that is referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAsset.ResourceSpec
Returns
TypeDescription
Asset.Builder

setResourceSpec(Asset.ResourceSpec.Builder builderForValue)

public Asset.Builder setResourceSpec(Asset.ResourceSpec.Builder builderForValue)

Required. Specification of the resource that is referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueAsset.ResourceSpec.Builder
Returns
TypeDescription
Asset.Builder

setResourceStatus(Asset.ResourceStatus value)

public Asset.Builder setResourceStatus(Asset.ResourceStatus value)

Output only. Status of the resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAsset.ResourceStatus
Returns
TypeDescription
Asset.Builder

setResourceStatus(Asset.ResourceStatus.Builder builderForValue)

public Asset.Builder setResourceStatus(Asset.ResourceStatus.Builder builderForValue)

Output only. Status of the resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueAsset.ResourceStatus.Builder
Returns
TypeDescription
Asset.Builder

setSecurityStatus(Asset.SecurityStatus value)

public Asset.Builder setSecurityStatus(Asset.SecurityStatus value)

Output only. Status of the security policy applied to resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAsset.SecurityStatus
Returns
TypeDescription
Asset.Builder

setSecurityStatus(Asset.SecurityStatus.Builder builderForValue)

public Asset.Builder setSecurityStatus(Asset.SecurityStatus.Builder builderForValue)

Output only. Status of the security policy applied to resource referenced by this asset.

.google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueAsset.SecurityStatus.Builder
Returns
TypeDescription
Asset.Builder

setState(State value)

public Asset.Builder setState(State value)

Output only. Current state of the asset.

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

Parameter
NameDescription
valueState

The state to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setStateValue(int value)

public Asset.Builder setStateValue(int value)

Output only. Current state of the asset.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setUid(String value)

public Asset.Builder setUid(String value)

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

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

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Asset.Builder setUidBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Asset.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Asset.Builder setUpdateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Asset.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Asset.Builder setUpdateTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Asset.Builder