Class SparkProperties.Builder (2.21.0)

public static final class SparkProperties.Builder extends GeneratedMessageV3.Builder<SparkProperties.Builder> implements SparkPropertiesOrBuilder

Container for connection properties to execute stored procedures for Apache Spark.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SparkProperties build()
Returns
TypeDescription
SparkProperties

buildPartial()

public SparkProperties buildPartial()
Returns
TypeDescription
SparkProperties

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetastoreServiceConfig()

public SparkProperties.Builder clearMetastoreServiceConfig()

Optional. Dataproc Metastore Service configuration for the connection.

.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SparkProperties.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceAccountId()

public SparkProperties.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 a stored procedure for Apache Spark in BigQuery, the service account will be used to connect to the desired resources in Google Cloud.

The account ID is in the form of: bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com

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

Returns
TypeDescription
SparkProperties.Builder

This builder for chaining.

clearSparkHistoryServerConfig()

public SparkProperties.Builder clearSparkHistoryServerConfig()

Optional. Spark History Server configuration for the connection.

.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SparkProperties.Builder

clone()

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

getDefaultInstanceForType()

public SparkProperties getDefaultInstanceForType()
Returns
TypeDescription
SparkProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetastoreServiceConfig()

public MetastoreServiceConfig getMetastoreServiceConfig()

Optional. Dataproc Metastore Service configuration for the connection.

.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MetastoreServiceConfig

The metastoreServiceConfig.

getMetastoreServiceConfigBuilder()

public MetastoreServiceConfig.Builder getMetastoreServiceConfigBuilder()

Optional. Dataproc Metastore Service configuration for the connection.

.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MetastoreServiceConfig.Builder

getMetastoreServiceConfigOrBuilder()

public MetastoreServiceConfigOrBuilder getMetastoreServiceConfigOrBuilder()

Optional. Dataproc Metastore Service configuration for the connection.

.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MetastoreServiceConfigOrBuilder

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 a stored procedure for Apache Spark in BigQuery, the service account will be used to connect to the desired resources in Google Cloud.

The account ID is in the form of: bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.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 a stored procedure for Apache Spark in BigQuery, the service account will be used to connect to the desired resources in Google Cloud.

The account ID is in the form of: bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com

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

Returns
TypeDescription
ByteString

The bytes for serviceAccountId.

getSparkHistoryServerConfig()

public SparkHistoryServerConfig getSparkHistoryServerConfig()

Optional. Spark History Server configuration for the connection.

.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SparkHistoryServerConfig

The sparkHistoryServerConfig.

getSparkHistoryServerConfigBuilder()

public SparkHistoryServerConfig.Builder getSparkHistoryServerConfigBuilder()

Optional. Spark History Server configuration for the connection.

.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SparkHistoryServerConfig.Builder

getSparkHistoryServerConfigOrBuilder()

public SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder()

Optional. Spark History Server configuration for the connection.

.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SparkHistoryServerConfigOrBuilder

hasMetastoreServiceConfig()

public boolean hasMetastoreServiceConfig()

Optional. Dataproc Metastore Service configuration for the connection.

.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the metastoreServiceConfig field is set.

hasSparkHistoryServerConfig()

public boolean hasSparkHistoryServerConfig()

Optional. Spark History Server configuration for the connection.

.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the sparkHistoryServerConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SparkProperties other)

public SparkProperties.Builder mergeFrom(SparkProperties other)
Parameter
NameDescription
otherSparkProperties
Returns
TypeDescription
SparkProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetastoreServiceConfig(MetastoreServiceConfig value)

public SparkProperties.Builder mergeMetastoreServiceConfig(MetastoreServiceConfig value)

Optional. Dataproc Metastore Service configuration for the connection.

.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueMetastoreServiceConfig
Returns
TypeDescription
SparkProperties.Builder

mergeSparkHistoryServerConfig(SparkHistoryServerConfig value)

public SparkProperties.Builder mergeSparkHistoryServerConfig(SparkHistoryServerConfig value)

Optional. Spark History Server configuration for the connection.

.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueSparkHistoryServerConfig
Returns
TypeDescription
SparkProperties.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetastoreServiceConfig(MetastoreServiceConfig value)

public SparkProperties.Builder setMetastoreServiceConfig(MetastoreServiceConfig value)

Optional. Dataproc Metastore Service configuration for the connection.

.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueMetastoreServiceConfig
Returns
TypeDescription
SparkProperties.Builder

setMetastoreServiceConfig(MetastoreServiceConfig.Builder builderForValue)

public SparkProperties.Builder setMetastoreServiceConfig(MetastoreServiceConfig.Builder builderForValue)

Optional. Dataproc Metastore Service configuration for the connection.

.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueMetastoreServiceConfig.Builder
Returns
TypeDescription
SparkProperties.Builder

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

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

setServiceAccountId(String value)

public SparkProperties.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 a stored procedure for Apache Spark in BigQuery, the service account will be used to connect to the desired resources in Google Cloud.

The account ID is in the form of: bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com

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

Parameter
NameDescription
valueString

The serviceAccountId to set.

Returns
TypeDescription
SparkProperties.Builder

This builder for chaining.

setServiceAccountIdBytes(ByteString value)

public SparkProperties.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 a stored procedure for Apache Spark in BigQuery, the service account will be used to connect to the desired resources in Google Cloud.

The account ID is in the form of: bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.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
SparkProperties.Builder

This builder for chaining.

setSparkHistoryServerConfig(SparkHistoryServerConfig value)

public SparkProperties.Builder setSparkHistoryServerConfig(SparkHistoryServerConfig value)

Optional. Spark History Server configuration for the connection.

.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueSparkHistoryServerConfig
Returns
TypeDescription
SparkProperties.Builder

setSparkHistoryServerConfig(SparkHistoryServerConfig.Builder builderForValue)

public SparkProperties.Builder setSparkHistoryServerConfig(SparkHistoryServerConfig.Builder builderForValue)

Optional. Spark History Server configuration for the connection.

.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueSparkHistoryServerConfig.Builder
Returns
TypeDescription
SparkProperties.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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