Class Execution.ExternalDataSources.Builder (0.1.0)

public static final class Execution.ExternalDataSources.Builder extends GeneratedMessage.Builder<Execution.ExternalDataSources.Builder> implements Execution.ExternalDataSourcesOrBuilder

External data sources for an execution.

Protobuf type google.cloud.workloadmanager.v1.Execution.ExternalDataSources

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Execution.ExternalDataSources build()
Returns
Type Description
Execution.ExternalDataSources

buildPartial()

public Execution.ExternalDataSources buildPartial()
Returns
Type Description
Execution.ExternalDataSources

clear()

public Execution.ExternalDataSources.Builder clear()
Returns
Type Description
Execution.ExternalDataSources.Builder
Overrides

clearAssetType()

public Execution.ExternalDataSources.Builder clearAssetType()

Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user.

string asset_type = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.

clearName()

public Execution.ExternalDataSources.Builder clearName()

Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data.

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

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.

clearType()

public Execution.ExternalDataSources.Builder clearType()

Required. Type of external data source.

.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.

clearUri()

public Execution.ExternalDataSources.Builder clearUri()

Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID}.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.

getAssetType()

public String getAssetType()

Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user.

string asset_type = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The assetType.

getAssetTypeBytes()

public ByteString getAssetTypeBytes()

Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user.

string asset_type = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for assetType.

getDefaultInstanceForType()

public Execution.ExternalDataSources getDefaultInstanceForType()
Returns
Type Description
Execution.ExternalDataSources

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data.

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

Returns
Type Description
ByteString

The bytes for name.

getType()

public Execution.ExternalDataSources.Type getType()

Required. Type of external data source.

.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Execution.ExternalDataSources.Type

The type.

getTypeValue()

public int getTypeValue()

Required. Type of external data source.

.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for type.

getUri()

public String getUri()

Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID}.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID}.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Execution.ExternalDataSources other)

public Execution.ExternalDataSources.Builder mergeFrom(Execution.ExternalDataSources other)
Parameter
Name Description
other Execution.ExternalDataSources
Returns
Type Description
Execution.ExternalDataSources.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Execution.ExternalDataSources.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Execution.ExternalDataSources.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Execution.ExternalDataSources.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Execution.ExternalDataSources.Builder
Overrides

setAssetType(String value)

public Execution.ExternalDataSources.Builder setAssetType(String value)

Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user.

string asset_type = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The assetType to set.

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.

setAssetTypeBytes(ByteString value)

public Execution.ExternalDataSources.Builder setAssetTypeBytes(ByteString value)

Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user.

string asset_type = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for assetType to set.

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.

setName(String value)

public Execution.ExternalDataSources.Builder setName(String value)

Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Execution.ExternalDataSources.Builder setNameBytes(ByteString value)

Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.

setType(Execution.ExternalDataSources.Type value)

public Execution.ExternalDataSources.Builder setType(Execution.ExternalDataSources.Type value)

Required. Type of external data source.

.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Execution.ExternalDataSources.Type

The type to set.

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.

setTypeValue(int value)

public Execution.ExternalDataSources.Builder setTypeValue(int value)

Required. Type of external data source.

.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.

setUri(String value)

public Execution.ExternalDataSources.Builder setUri(String value)

Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID}.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.

setUriBytes(ByteString value)

public Execution.ExternalDataSources.Builder setUriBytes(ByteString value)

Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID}.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
Execution.ExternalDataSources.Builder

This builder for chaining.