Class CloudResourceProperties.Builder (2.18.0)

public static final class CloudResourceProperties.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudResourceProperties build()
Returns
TypeDescription
CloudResourceProperties

buildPartial()

public CloudResourceProperties buildPartial()
Returns
TypeDescription
CloudResourceProperties

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudResourceProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CloudResourceProperties.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CloudResourceProperties getDefaultInstanceForType()
Returns
TypeDescription
CloudResourceProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for serviceAccountId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CloudResourceProperties other)

public CloudResourceProperties.Builder mergeFrom(CloudResourceProperties other)
Parameter
NameDescription
otherCloudResourceProperties
Returns
TypeDescription
CloudResourceProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public CloudResourceProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serviceAccountId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for serviceAccountId to set.

Returns
TypeDescription
CloudResourceProperties.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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