Class SparkProperties.Builder

  • All Implemented Interfaces:
    SparkPropertiesOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    SparkProperties

    public static final class SparkProperties.Builder
    extends com.google.protobuf.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>
      • clear

        public SparkProperties.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>
      • getDefaultInstanceForType

        public SparkProperties getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public SparkProperties build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public SparkProperties buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public SparkProperties.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>
      • setField

        public SparkProperties.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>
      • clearField

        public SparkProperties.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>
      • clearOneof

        public SparkProperties.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>
      • setRepeatedField

        public SparkProperties.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>
      • addRepeatedField

        public SparkProperties.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>
      • mergeFrom

        public SparkProperties.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparkProperties.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>
      • mergeFrom

        public SparkProperties.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparkProperties.Builder>
        Throws:
        IOException
      • 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 is 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];
        Specified by:
        getServiceAccountId in interface SparkPropertiesOrBuilder
        Returns:
        The serviceAccountId.
      • getServiceAccountIdBytes

        public com.google.protobuf.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 is 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];
        Specified by:
        getServiceAccountIdBytes in interface SparkPropertiesOrBuilder
        Returns:
        The bytes for serviceAccountId.
      • setServiceAccountId

        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 is 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];
        Parameters:
        value - The serviceAccountId to set.
        Returns:
        This builder for chaining.
      • 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 is 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:
        This builder for chaining.
      • setServiceAccountIdBytes

        public SparkProperties.Builder setServiceAccountIdBytes​(com.google.protobuf.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 is 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];
        Parameters:
        value - The bytes for serviceAccountId to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        hasMetastoreServiceConfig in interface SparkPropertiesOrBuilder
        Returns:
        Whether the metastoreServiceConfig field is set.
      • 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];
        Specified by:
        getMetastoreServiceConfig in interface SparkPropertiesOrBuilder
        Returns:
        The metastoreServiceConfig.
      • setMetastoreServiceConfig

        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];
      • setMetastoreServiceConfig

        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];
      • mergeMetastoreServiceConfig

        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];
      • 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];
      • 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];
      • 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];
        Specified by:
        hasSparkHistoryServerConfig in interface SparkPropertiesOrBuilder
        Returns:
        Whether the sparkHistoryServerConfig field is set.
      • 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];
        Specified by:
        getSparkHistoryServerConfig in interface SparkPropertiesOrBuilder
        Returns:
        The sparkHistoryServerConfig.
      • setSparkHistoryServerConfig

        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];
      • setSparkHistoryServerConfig

        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];
      • mergeSparkHistoryServerConfig

        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];
      • 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];
      • 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];
      • setUnknownFields

        public final SparkProperties.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>
      • mergeUnknownFields

        public final SparkProperties.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparkProperties.Builder>