Class DatabaseConfig.Builder

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DatabaseConfig build()
Returns
TypeDescription
DatabaseConfig

buildPartial()

public DatabaseConfig buildPartial()
Returns
TypeDescription
DatabaseConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

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.

string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DatabaseConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DatabaseConfig getDefaultInstanceForType()
Returns
TypeDescription
DatabaseConfig

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public 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.

string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for machineType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DatabaseConfig other)

public DatabaseConfig.Builder mergeFrom(DatabaseConfig other)
Parameter
NameDescription
otherDatabaseConfig
Returns
TypeDescription
DatabaseConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineType(String value)

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.

string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
DatabaseConfig.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public DatabaseConfig.Builder setMachineTypeBytes(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.

string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
DatabaseConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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