Class WorkloadsConfig.Builder (1.23.0)

public static final class WorkloadsConfig.Builder extends GeneratedMessageV3.Builder<WorkloadsConfig.Builder> implements WorkloadsConfigOrBuilder

The Kubernetes workloads configuration for GKE cluster associated with the Cloud Composer environment. Supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkloadsConfig build()
Returns
Type Description
WorkloadsConfig

buildPartial()

public WorkloadsConfig buildPartial()
Returns
Type Description
WorkloadsConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScheduler()

public WorkloadsConfig.Builder clearScheduler()

Optional. Resources used by Airflow schedulers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource scheduler = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.Builder

clearWebServer()

public WorkloadsConfig.Builder clearWebServer()

Optional. Resources used by Airflow web server.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource web_server = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.Builder

clearWorker()

public WorkloadsConfig.Builder clearWorker()

Optional. Resources used by Airflow workers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource worker = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.Builder

clone()

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

getDefaultInstanceForType()

public WorkloadsConfig getDefaultInstanceForType()
Returns
Type Description
WorkloadsConfig

getDescriptorForType()

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

getScheduler()

public WorkloadsConfig.SchedulerResource getScheduler()

Optional. Resources used by Airflow schedulers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource scheduler = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.SchedulerResource

The scheduler.

getSchedulerBuilder()

public WorkloadsConfig.SchedulerResource.Builder getSchedulerBuilder()

Optional. Resources used by Airflow schedulers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource scheduler = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.SchedulerResource.Builder

getSchedulerOrBuilder()

public WorkloadsConfig.SchedulerResourceOrBuilder getSchedulerOrBuilder()

Optional. Resources used by Airflow schedulers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource scheduler = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.SchedulerResourceOrBuilder

getWebServer()

public WorkloadsConfig.WebServerResource getWebServer()

Optional. Resources used by Airflow web server.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource web_server = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.WebServerResource

The webServer.

getWebServerBuilder()

public WorkloadsConfig.WebServerResource.Builder getWebServerBuilder()

Optional. Resources used by Airflow web server.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource web_server = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.WebServerResource.Builder

getWebServerOrBuilder()

public WorkloadsConfig.WebServerResourceOrBuilder getWebServerOrBuilder()

Optional. Resources used by Airflow web server.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource web_server = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.WebServerResourceOrBuilder

getWorker()

public WorkloadsConfig.WorkerResource getWorker()

Optional. Resources used by Airflow workers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource worker = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.WorkerResource

The worker.

getWorkerBuilder()

public WorkloadsConfig.WorkerResource.Builder getWorkerBuilder()

Optional. Resources used by Airflow workers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource worker = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.WorkerResource.Builder

getWorkerOrBuilder()

public WorkloadsConfig.WorkerResourceOrBuilder getWorkerOrBuilder()

Optional. Resources used by Airflow workers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource worker = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkloadsConfig.WorkerResourceOrBuilder

hasScheduler()

public boolean hasScheduler()

Optional. Resources used by Airflow schedulers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource scheduler = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the scheduler field is set.

hasWebServer()

public boolean hasWebServer()

Optional. Resources used by Airflow web server.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource web_server = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the webServer field is set.

hasWorker()

public boolean hasWorker()

Optional. Resources used by Airflow workers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource worker = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the worker field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkloadsConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeScheduler(WorkloadsConfig.SchedulerResource value)

public WorkloadsConfig.Builder mergeScheduler(WorkloadsConfig.SchedulerResource value)

Optional. Resources used by Airflow schedulers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource scheduler = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WorkloadsConfig.SchedulerResource
Returns
Type Description
WorkloadsConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWebServer(WorkloadsConfig.WebServerResource value)

public WorkloadsConfig.Builder mergeWebServer(WorkloadsConfig.WebServerResource value)

Optional. Resources used by Airflow web server.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource web_server = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WorkloadsConfig.WebServerResource
Returns
Type Description
WorkloadsConfig.Builder

mergeWorker(WorkloadsConfig.WorkerResource value)

public WorkloadsConfig.Builder mergeWorker(WorkloadsConfig.WorkerResource value)

Optional. Resources used by Airflow workers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource worker = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WorkloadsConfig.WorkerResource
Returns
Type Description
WorkloadsConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setScheduler(WorkloadsConfig.SchedulerResource value)

public WorkloadsConfig.Builder setScheduler(WorkloadsConfig.SchedulerResource value)

Optional. Resources used by Airflow schedulers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource scheduler = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WorkloadsConfig.SchedulerResource
Returns
Type Description
WorkloadsConfig.Builder

setScheduler(WorkloadsConfig.SchedulerResource.Builder builderForValue)

public WorkloadsConfig.Builder setScheduler(WorkloadsConfig.SchedulerResource.Builder builderForValue)

Optional. Resources used by Airflow schedulers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource scheduler = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue WorkloadsConfig.SchedulerResource.Builder
Returns
Type Description
WorkloadsConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setWebServer(WorkloadsConfig.WebServerResource value)

public WorkloadsConfig.Builder setWebServer(WorkloadsConfig.WebServerResource value)

Optional. Resources used by Airflow web server.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource web_server = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WorkloadsConfig.WebServerResource
Returns
Type Description
WorkloadsConfig.Builder

setWebServer(WorkloadsConfig.WebServerResource.Builder builderForValue)

public WorkloadsConfig.Builder setWebServer(WorkloadsConfig.WebServerResource.Builder builderForValue)

Optional. Resources used by Airflow web server.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource web_server = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue WorkloadsConfig.WebServerResource.Builder
Returns
Type Description
WorkloadsConfig.Builder

setWorker(WorkloadsConfig.WorkerResource value)

public WorkloadsConfig.Builder setWorker(WorkloadsConfig.WorkerResource value)

Optional. Resources used by Airflow workers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource worker = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WorkloadsConfig.WorkerResource
Returns
Type Description
WorkloadsConfig.Builder

setWorker(WorkloadsConfig.WorkerResource.Builder builderForValue)

public WorkloadsConfig.Builder setWorker(WorkloadsConfig.WorkerResource.Builder builderForValue)

Optional. Resources used by Airflow workers.

.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource worker = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue WorkloadsConfig.WorkerResource.Builder
Returns
Type Description
WorkloadsConfig.Builder