Class ServiceScaling.Builder (0.37.0)

public static final class ServiceScaling.Builder extends GeneratedMessageV3.Builder<ServiceScaling.Builder> implements ServiceScalingOrBuilder

Scaling settings applied at the service level rather than at the revision level.

Protobuf type google.cloud.run.v2.ServiceScaling

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServiceScaling build()
Returns
TypeDescription
ServiceScaling

buildPartial()

public ServiceScaling buildPartial()
Returns
TypeDescription
ServiceScaling

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMinInstanceCount()

public ServiceScaling.Builder clearMinInstanceCount()

total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving. (BETA)

int32 min_instance_count = 1;

Returns
TypeDescription
ServiceScaling.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ServiceScaling getDefaultInstanceForType()
Returns
TypeDescription
ServiceScaling

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMinInstanceCount()

public int getMinInstanceCount()

total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving. (BETA)

int32 min_instance_count = 1;

Returns
TypeDescription
int

The minInstanceCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServiceScaling other)

public ServiceScaling.Builder mergeFrom(ServiceScaling other)
Parameter
NameDescription
otherServiceScaling
Returns
TypeDescription
ServiceScaling.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMinInstanceCount(int value)

public ServiceScaling.Builder setMinInstanceCount(int value)

total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving. (BETA)

int32 min_instance_count = 1;

Parameter
NameDescription
valueint

The minInstanceCount to set.

Returns
TypeDescription
ServiceScaling.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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