Class InstanceGroupManagerStandbyPolicy (1.65.0)

public final class InstanceGroupManagerStandbyPolicy extends GeneratedMessageV3 implements InstanceGroupManagerStandbyPolicyOrBuilder

Protobuf type google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > InstanceGroupManagerStandbyPolicy

Static Fields

INITIAL_DELAY_SEC_FIELD_NUMBER

public static final int INITIAL_DELAY_SEC_FIELD_NUMBER
Field Value
Type Description
int

MODE_FIELD_NUMBER

public static final int MODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InstanceGroupManagerStandbyPolicy getDefaultInstance()
Returns
Type Description
InstanceGroupManagerStandbyPolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static InstanceGroupManagerStandbyPolicy.Builder newBuilder()
Returns
Type Description
InstanceGroupManagerStandbyPolicy.Builder

newBuilder(InstanceGroupManagerStandbyPolicy prototype)

public static InstanceGroupManagerStandbyPolicy.Builder newBuilder(InstanceGroupManagerStandbyPolicy prototype)
Parameter
Name Description
prototype InstanceGroupManagerStandbyPolicy
Returns
Type Description
InstanceGroupManagerStandbyPolicy.Builder

parseDelimitedFrom(InputStream input)

public static InstanceGroupManagerStandbyPolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceGroupManagerStandbyPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static InstanceGroupManagerStandbyPolicy parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InstanceGroupManagerStandbyPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InstanceGroupManagerStandbyPolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InstanceGroupManagerStandbyPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InstanceGroupManagerStandbyPolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceGroupManagerStandbyPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static InstanceGroupManagerStandbyPolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceGroupManagerStandbyPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static InstanceGroupManagerStandbyPolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InstanceGroupManagerStandbyPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupManagerStandbyPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<InstanceGroupManagerStandbyPolicy> parser()
Returns
Type Description
Parser<InstanceGroupManagerStandbyPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public InstanceGroupManagerStandbyPolicy getDefaultInstanceForType()
Returns
Type Description
InstanceGroupManagerStandbyPolicy

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.

getParserForType()

public Parser<InstanceGroupManagerStandbyPolicy> getParserForType()
Returns
Type Description
Parser<InstanceGroupManagerStandbyPolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public InstanceGroupManagerStandbyPolicy.Builder newBuilderForType()
Returns
Type Description
InstanceGroupManagerStandbyPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InstanceGroupManagerStandbyPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
InstanceGroupManagerStandbyPolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public InstanceGroupManagerStandbyPolicy.Builder toBuilder()
Returns
Type Description
InstanceGroupManagerStandbyPolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException