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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BasicScaling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BasicScaling build()
buildPartial()
public BasicScaling buildPartial()
clear()
public BasicScaling.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public BasicScaling.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearMaxInstances()
public BasicScaling.Builder clearMaxInstances()
Maximum number of instances to create for this version.
int32 max_instances = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public BasicScaling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public BasicScaling.Builder clone()
Overrides
getDefaultInstanceForType()
public BasicScaling getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
Duration | The idleTimeout.
|
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BasicScaling other)
public BasicScaling.Builder mergeFrom(BasicScaling other)
public BasicScaling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BasicScaling.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BasicScaling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public BasicScaling.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BasicScaling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BasicScaling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides