Class InstanceGroupManagerStandbyPolicy.Builder (1.65.0)

See more code actions.
public static final class InstanceGroupManagerStandbyPolicy.Builder extends GeneratedMessageV3.Builder<InstanceGroupManagerStandbyPolicy.Builder> implements InstanceGroupManagerStandbyPolicyOrBuilder

Protobuf type google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy

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()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceGroupManagerStandbyPolicy build()
Returns
Type Description
InstanceGroupManagerStandbyPolicy

buildPartial()

public InstanceGroupManagerStandbyPolicy buildPartial()
Returns
Type Description
InstanceGroupManagerStandbyPolicy

clear()

public InstanceGroupManagerStandbyPolicy.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

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

Returns
Type Description
InstanceGroupManagerStandbyPolicy.Builder

This builder for chaining.

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;

Returns
Type Description
InstanceGroupManagerStandbyPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceGroupManagerStandbyPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Overrides

clone()

public InstanceGroupManagerStandbyPolicy.Builder clone()
Overrides

getDefaultInstanceForType()

public InstanceGroupManagerStandbyPolicy getDefaultInstanceForType()
Returns
Type Description
InstanceGroupManagerStandbyPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()

public String 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()

public boolean 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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceGroupManagerStandbyPolicy other)

public InstanceGroupManagerStandbyPolicy.Builder mergeFrom(InstanceGroupManagerStandbyPolicy other)
Parameter
Name Description
other InstanceGroupManagerStandbyPolicy

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceGroupManagerStandbyPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Overrides
Exceptions
Type Description
IOException

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)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

Returns
Type Description
InstanceGroupManagerStandbyPolicy.Builder

This builder for chaining.

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.

Returns
Type Description
InstanceGroupManagerStandbyPolicy.Builder

This builder for chaining.

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.

Returns
Type Description
InstanceGroupManagerStandbyPolicy.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManagerStandbyPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides