Class WorkerPoolScaling.Builder (0.83.0)

public static final class WorkerPoolScaling.Builder extends GeneratedMessage.Builder<WorkerPoolScaling.Builder> implements WorkerPoolScalingOrBuilder

Worker pool scaling settings.

Protobuf type google.cloud.run.v2.WorkerPoolScaling

Static Methods

getDescriptor()

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

Methods

build()

public WorkerPoolScaling build()
Returns
Type Description
WorkerPoolScaling

buildPartial()

public WorkerPoolScaling buildPartial()
Returns
Type Description
WorkerPoolScaling

clear()

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

clearManualInstanceCount()

public WorkerPoolScaling.Builder clearManualInstanceCount()

Optional. The total number of instances in manual scaling mode.

optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkerPoolScaling.Builder

This builder for chaining.

getDefaultInstanceForType()

public WorkerPoolScaling getDefaultInstanceForType()
Returns
Type Description
WorkerPoolScaling

getDescriptorForType()

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

getManualInstanceCount()

public int getManualInstanceCount()

Optional. The total number of instances in manual scaling mode.

optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The manualInstanceCount.

hasManualInstanceCount()

public boolean hasManualInstanceCount()

Optional. The total number of instances in manual scaling mode.

optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the manualInstanceCount field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkerPoolScaling other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setManualInstanceCount(int value)

public WorkerPoolScaling.Builder setManualInstanceCount(int value)

Optional. The total number of instances in manual scaling mode.

optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The manualInstanceCount to set.

Returns
Type Description
WorkerPoolScaling.Builder

This builder for chaining.