Class WebServerConfig.Builder (1.49.0)

public static final class WebServerConfig.Builder extends GeneratedMessageV3.Builder<WebServerConfig.Builder> implements WebServerConfigOrBuilder

The configuration settings for the Airflow web server App Engine instance. Supported for Cloud Composer environments in versions composer-1..-airflow-..*

Protobuf type google.cloud.orchestration.airflow.service.v1.WebServerConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WebServerConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WebServerConfig.Builder
Overrides

build()

public WebServerConfig build()
Returns
Type Description
WebServerConfig

buildPartial()

public WebServerConfig buildPartial()
Returns
Type Description
WebServerConfig

clear()

public WebServerConfig.Builder clear()
Returns
Type Description
WebServerConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WebServerConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WebServerConfig.Builder
Overrides

clearMachineType()

public WebServerConfig.Builder clearMachineType()

Optional. Machine type on which Airflow web server is running. It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8. If not specified, composer-n1-webserver-2 will be used. Value custom is returned only in response, if Airflow web server parameters were manually changed to a non-standard values.

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

Returns
Type Description
WebServerConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public WebServerConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WebServerConfig.Builder
Overrides

clone()

public WebServerConfig.Builder clone()
Returns
Type Description
WebServerConfig.Builder
Overrides

getDefaultInstanceForType()

public WebServerConfig getDefaultInstanceForType()
Returns
Type Description
WebServerConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMachineType()

public String getMachineType()

Optional. Machine type on which Airflow web server is running. It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8. If not specified, composer-n1-webserver-2 will be used. Value custom is returned only in response, if Airflow web server parameters were manually changed to a non-standard values.

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

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Optional. Machine type on which Airflow web server is running. It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8. If not specified, composer-n1-webserver-2 will be used. Value custom is returned only in response, if Airflow web server parameters were manually changed to a non-standard values.

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

Returns
Type Description
ByteString

The bytes for machineType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WebServerConfig other)

public WebServerConfig.Builder mergeFrom(WebServerConfig other)
Parameter
Name Description
other WebServerConfig
Returns
Type Description
WebServerConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WebServerConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebServerConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WebServerConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WebServerConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WebServerConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WebServerConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public WebServerConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WebServerConfig.Builder
Overrides

setMachineType(String value)

public WebServerConfig.Builder setMachineType(String value)

Optional. Machine type on which Airflow web server is running. It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8. If not specified, composer-n1-webserver-2 will be used. Value custom is returned only in response, if Airflow web server parameters were manually changed to a non-standard values.

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

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
WebServerConfig.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public WebServerConfig.Builder setMachineTypeBytes(ByteString value)

Optional. Machine type on which Airflow web server is running. It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8. If not specified, composer-n1-webserver-2 will be used. Value custom is returned only in response, if Airflow web server parameters were manually changed to a non-standard values.

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

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
WebServerConfig.Builder

This builder for chaining.

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

public WebServerConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WebServerConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WebServerConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WebServerConfig.Builder
Overrides