Class DatabaseConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DatabaseConfig.Builder>
com.google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig.Builder
All Implemented Interfaces:
DatabaseConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DatabaseConfig

public static final class DatabaseConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<DatabaseConfig.Builder> implements DatabaseConfigOrBuilder
 The configuration of Cloud SQL instance that is used by the Apache Airflow
 software.
 
Protobuf type google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
  • Method Details

    • getDescriptor

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

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

      public DatabaseConfig.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.GeneratedMessage.Builder<DatabaseConfig.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.GeneratedMessage.Builder<DatabaseConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public DatabaseConfig.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<DatabaseConfig.Builder>
    • mergeFrom

      public DatabaseConfig.Builder mergeFrom(DatabaseConfig other)
    • isInitialized

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

      public DatabaseConfig.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<DatabaseConfig.Builder>
      Throws:
      IOException
    • getMachineType

      public String getMachineType()
       Optional. Cloud SQL machine type used by Airflow database.
       It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8
       or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
       Supported for Cloud Composer environments in versions
       composer-1.*.*-airflow-*.*.*.
       
      string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMachineType in interface DatabaseConfigOrBuilder
      Returns:
      The machineType.
    • getMachineTypeBytes

      public com.google.protobuf.ByteString getMachineTypeBytes()
       Optional. Cloud SQL machine type used by Airflow database.
       It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8
       or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
       Supported for Cloud Composer environments in versions
       composer-1.*.*-airflow-*.*.*.
       
      string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMachineTypeBytes in interface DatabaseConfigOrBuilder
      Returns:
      The bytes for machineType.
    • setMachineType

      public DatabaseConfig.Builder setMachineType(String value)
       Optional. Cloud SQL machine type used by Airflow database.
       It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8
       or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
       Supported for Cloud Composer environments in versions
       composer-1.*.*-airflow-*.*.*.
       
      string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The machineType to set.
      Returns:
      This builder for chaining.
    • clearMachineType

      public DatabaseConfig.Builder clearMachineType()
       Optional. Cloud SQL machine type used by Airflow database.
       It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8
       or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
       Supported for Cloud Composer environments in versions
       composer-1.*.*-airflow-*.*.*.
       
      string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setMachineTypeBytes

      public DatabaseConfig.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
       Optional. Cloud SQL machine type used by Airflow database.
       It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8
       or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
       Supported for Cloud Composer environments in versions
       composer-1.*.*-airflow-*.*.*.
       
      string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for machineType to set.
      Returns:
      This builder for chaining.
    • getZone

      public String getZone()
       Optional. The Compute Engine zone where the Airflow database is created. If
       zone is provided, it must be in the region selected for the environment. If
       zone is not provided, a zone is automatically selected. The zone can only
       be set during environment creation. Supported for Cloud Composer
       environments in versions composer-2.*.*-airflow-*.*.*.
       
      string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getZone in interface DatabaseConfigOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       Optional. The Compute Engine zone where the Airflow database is created. If
       zone is provided, it must be in the region selected for the environment. If
       zone is not provided, a zone is automatically selected. The zone can only
       be set during environment creation. Supported for Cloud Composer
       environments in versions composer-2.*.*-airflow-*.*.*.
       
      string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getZoneBytes in interface DatabaseConfigOrBuilder
      Returns:
      The bytes for zone.
    • setZone

      public DatabaseConfig.Builder setZone(String value)
       Optional. The Compute Engine zone where the Airflow database is created. If
       zone is provided, it must be in the region selected for the environment. If
       zone is not provided, a zone is automatically selected. The zone can only
       be set during environment creation. Supported for Cloud Composer
       environments in versions composer-2.*.*-airflow-*.*.*.
       
      string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

      public DatabaseConfig.Builder clearZone()
       Optional. The Compute Engine zone where the Airflow database is created. If
       zone is provided, it must be in the region selected for the environment. If
       zone is not provided, a zone is automatically selected. The zone can only
       be set during environment creation. Supported for Cloud Composer
       environments in versions composer-2.*.*-airflow-*.*.*.
       
      string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setZoneBytes

      public DatabaseConfig.Builder setZoneBytes(com.google.protobuf.ByteString value)
       Optional. The Compute Engine zone where the Airflow database is created. If
       zone is provided, it must be in the region selected for the environment. If
       zone is not provided, a zone is automatically selected. The zone can only
       be set during environment creation. Supported for Cloud Composer
       environments in versions composer-2.*.*-airflow-*.*.*.
       
      string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.