public static final class BasicScaling.Builder extends GeneratedMessageV3.Builder<BasicScaling.Builder> implements BasicScalingOrBuilder
A service with basic scaling will create an instance when the application
receives a request. The instance will be turned down when the app becomes
idle. Basic scaling is ideal for work that is intermittent or driven by
user activity.
Protobuf type google.appengine.v1.BasicScaling
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BasicScaling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public BasicScaling build()
Returns
buildPartial()
public BasicScaling buildPartial()
Returns
clear()
public BasicScaling.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public BasicScaling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearIdleTimeout()
public BasicScaling.Builder clearIdleTimeout()
Duration of time after the last request that an instance must wait before
the instance is shut down.
.google.protobuf.Duration idle_timeout = 1;
Returns
clearMaxInstances()
public BasicScaling.Builder clearMaxInstances()
Maximum number of instances to create for this version.
int32 max_instances = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public BasicScaling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public BasicScaling.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public BasicScaling getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getIdleTimeout()
public Duration getIdleTimeout()
Duration of time after the last request that an instance must wait before
the instance is shut down.
.google.protobuf.Duration idle_timeout = 1;
Returns
getIdleTimeoutBuilder()
public Duration.Builder getIdleTimeoutBuilder()
Duration of time after the last request that an instance must wait before
the instance is shut down.
.google.protobuf.Duration idle_timeout = 1;
Returns
getIdleTimeoutOrBuilder()
public DurationOrBuilder getIdleTimeoutOrBuilder()
Duration of time after the last request that an instance must wait before
the instance is shut down.
.google.protobuf.Duration idle_timeout = 1;
Returns
getMaxInstances()
public int getMaxInstances()
Maximum number of instances to create for this version.
int32 max_instances = 2;
Returns
Type | Description |
int | The maxInstances.
|
hasIdleTimeout()
public boolean hasIdleTimeout()
Duration of time after the last request that an instance must wait before
the instance is shut down.
.google.protobuf.Duration idle_timeout = 1;
Returns
Type | Description |
boolean | Whether the idleTimeout field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(BasicScaling other)
public BasicScaling.Builder mergeFrom(BasicScaling other)
Parameter
Returns
public BasicScaling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BasicScaling.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeIdleTimeout(Duration value)
public BasicScaling.Builder mergeIdleTimeout(Duration value)
Duration of time after the last request that an instance must wait before
the instance is shut down.
.google.protobuf.Duration idle_timeout = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BasicScaling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public BasicScaling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setIdleTimeout(Duration value)
public BasicScaling.Builder setIdleTimeout(Duration value)
Duration of time after the last request that an instance must wait before
the instance is shut down.
.google.protobuf.Duration idle_timeout = 1;
Parameter
Returns
setIdleTimeout(Duration.Builder builderForValue)
public BasicScaling.Builder setIdleTimeout(Duration.Builder builderForValue)
Duration of time after the last request that an instance must wait before
the instance is shut down.
.google.protobuf.Duration idle_timeout = 1;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setMaxInstances(int value)
public BasicScaling.Builder setMaxInstances(int value)
Maximum number of instances to create for this version.
int32 max_instances = 2;
Parameter
Name | Description |
value | int
The maxInstances to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BasicScaling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BasicScaling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides