public static final class InstanceGroupManagerStandbyPolicy.Builder extends GeneratedMessageV3.Builder<InstanceGroupManagerStandbyPolicy.Builder> implements InstanceGroupManagerStandbyPolicyOrBuilder
Protobuf type google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy
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 InstanceGroupManagerStandbyPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public InstanceGroupManagerStandbyPolicy build()
buildPartial()
public InstanceGroupManagerStandbyPolicy buildPartial()
clear()
public InstanceGroupManagerStandbyPolicy.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public InstanceGroupManagerStandbyPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearInitialDelaySec()
public InstanceGroupManagerStandbyPolicy.Builder clearInitialDelaySec()
Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
optional int32 initial_delay_sec = 263207002;
clearMode()
public InstanceGroupManagerStandbyPolicy.Builder clearMode()
Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is MANUAL
.
Check the Mode enum for the list of possible values.
optional string mode = 3357091;
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceGroupManagerStandbyPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public InstanceGroupManagerStandbyPolicy.Builder clone()
Overrides
getDefaultInstanceForType()
public InstanceGroupManagerStandbyPolicy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getInitialDelaySec()
public int getInitialDelaySec()
Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
optional int32 initial_delay_sec = 263207002;
Returns |
Type |
Description |
int |
The initialDelaySec.
|
getMode()
Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is MANUAL
.
Check the Mode enum for the list of possible values.
optional string mode = 3357091;
Returns |
Type |
Description |
String |
The mode.
|
getModeBytes()
public ByteString getModeBytes()
Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is MANUAL
.
Check the Mode enum for the list of possible values.
optional string mode = 3357091;
Returns |
Type |
Description |
ByteString |
The bytes for mode.
|
hasInitialDelaySec()
public boolean hasInitialDelaySec()
Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
optional int32 initial_delay_sec = 263207002;
Returns |
Type |
Description |
boolean |
Whether the initialDelaySec field is set.
|
hasMode()
Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is MANUAL
.
Check the Mode enum for the list of possible values.
optional string mode = 3357091;
Returns |
Type |
Description |
boolean |
Whether the mode field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(InstanceGroupManagerStandbyPolicy other)
public InstanceGroupManagerStandbyPolicy.Builder mergeFrom(InstanceGroupManagerStandbyPolicy other)
public InstanceGroupManagerStandbyPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public InstanceGroupManagerStandbyPolicy.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstanceGroupManagerStandbyPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public InstanceGroupManagerStandbyPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setInitialDelaySec(int value)
public InstanceGroupManagerStandbyPolicy.Builder setInitialDelaySec(int value)
Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
optional int32 initial_delay_sec = 263207002;
Parameter |
Name |
Description |
value |
int
The initialDelaySec to set.
|
setMode(String value)
public InstanceGroupManagerStandbyPolicy.Builder setMode(String value)
Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is MANUAL
.
Check the Mode enum for the list of possible values.
optional string mode = 3357091;
Parameter |
Name |
Description |
value |
String
The mode to set.
|
setModeBytes(ByteString value)
public InstanceGroupManagerStandbyPolicy.Builder setModeBytes(ByteString value)
Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is MANUAL
.
Check the Mode enum for the list of possible values.
optional string mode = 3357091;
Parameter |
Name |
Description |
value |
ByteString
The bytes for mode to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstanceGroupManagerStandbyPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final InstanceGroupManagerStandbyPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides