Class CloudResourceProperties.Builder (2.85.0)

public static final class CloudResourceProperties.Builder extends GeneratedMessage.Builder<CloudResourceProperties.Builder> implements CloudResourcePropertiesOrBuilder

Container for connection properties for delegation of access to GCP resources.

Protobuf type google.cloud.bigquery.connection.v1.CloudResourceProperties

Static Methods

getDescriptor()

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

Methods

build()

public CloudResourceProperties build()
Returns
Type Description
CloudResourceProperties

buildPartial()

public CloudResourceProperties buildPartial()
Returns
Type Description
CloudResourceProperties

clear()

public CloudResourceProperties.Builder clear()
Returns
Type Description
CloudResourceProperties.Builder
Overrides

clearServiceAccountId()

public CloudResourceProperties.Builder clearServiceAccountId()

Output only. The account ID of the service created for the purpose of this connection.

The service account does not have any permissions associated with it when it is created. After creation, customers delegate permissions to the service account. When the connection is used in the context of an operation in BigQuery, the service account will be used to connect to the desired resources in GCP.

The account ID is in the form of: <service-1234>@gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com

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

Returns
Type Description
CloudResourceProperties.Builder

This builder for chaining.

getDefaultInstanceForType()

public CloudResourceProperties getDefaultInstanceForType()
Returns
Type Description
CloudResourceProperties

getDescriptorForType()

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

getServiceAccountId()

public String getServiceAccountId()

Output only. The account ID of the service created for the purpose of this connection.

The service account does not have any permissions associated with it when it is created. After creation, customers delegate permissions to the service account. When the connection is used in the context of an operation in BigQuery, the service account will be used to connect to the desired resources in GCP.

The account ID is in the form of: <service-1234>@gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com

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

Returns
Type Description
String

The serviceAccountId.

getServiceAccountIdBytes()

public ByteString getServiceAccountIdBytes()

Output only. The account ID of the service created for the purpose of this connection.

The service account does not have any permissions associated with it when it is created. After creation, customers delegate permissions to the service account. When the connection is used in the context of an operation in BigQuery, the service account will be used to connect to the desired resources in GCP.

The account ID is in the form of: <service-1234>@gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com

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

Returns
Type Description
ByteString

The bytes for serviceAccountId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudResourceProperties other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setServiceAccountId(String value)

public CloudResourceProperties.Builder setServiceAccountId(String value)

Output only. The account ID of the service created for the purpose of this connection.

The service account does not have any permissions associated with it when it is created. After creation, customers delegate permissions to the service account. When the connection is used in the context of an operation in BigQuery, the service account will be used to connect to the desired resources in GCP.

The account ID is in the form of: <service-1234>@gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com

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

Parameter
Name Description
value String

The serviceAccountId to set.

Returns
Type Description
CloudResourceProperties.Builder

This builder for chaining.

setServiceAccountIdBytes(ByteString value)

public CloudResourceProperties.Builder setServiceAccountIdBytes(ByteString value)

Output only. The account ID of the service created for the purpose of this connection.

The service account does not have any permissions associated with it when it is created. After creation, customers delegate permissions to the service account. When the connection is used in the context of an operation in BigQuery, the service account will be used to connect to the desired resources in GCP.

The account ID is in the form of: <service-1234>@gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com

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

Parameter
Name Description
value ByteString

The bytes for serviceAccountId to set.

Returns
Type Description
CloudResourceProperties.Builder

This builder for chaining.