Class WorkerPoolScaling.Builder (0.72.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public WorkerPoolScaling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public WorkerPoolScaling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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