public final class InstanceGroupManagerVersion extends GeneratedMessageV3 implements InstanceGroupManagerVersionOrBuilder
Protobuf type google.cloud.compute.v1.InstanceGroupManagerVersion
Fields
INSTANCE_TEMPLATE_FIELD_NUMBER
public static final int INSTANCE_TEMPLATE_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
TARGET_SIZE_FIELD_NUMBER
public static final int TARGET_SIZE_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static InstanceGroupManagerVersion getDefaultInstance()
Returns
getDefaultInstanceForType()
public InstanceGroupManagerVersion getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getInstanceTemplate()
public String getInstanceTemplate()
The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the targetSize
for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the targetSize
for this version is reached.
optional string instance_template = 309248228;
Returns
Type | Description |
String | The instanceTemplate.
|
getInstanceTemplateBytes()
public ByteString getInstanceTemplateBytes()
The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the targetSize
for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the targetSize
for this version is reached.
optional string instance_template = 309248228;
Returns
Type | Description |
ByteString | The bytes for instanceTemplate.
|
getName()
Name of the version. Unique among all versions in the scope of this managed instance group.
optional string name = 3373707;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Name of the version. Unique among all versions in the scope of this managed instance group.
optional string name = 3373707;
Returns
getParserForType()
public Parser<InstanceGroupManagerVersion> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTargetSize()
public FixedOrPercent getTargetSize()
Specifies the intended number of instances to be created from the instanceTemplate. The final number of instances created from the template will be equal to: - If expressed as a fixed number, the minimum of either targetSize.fixed or instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a remainder, the number is rounded. If unset, this version will update any remaining instances not updated by another version. Read Starting a canary update for more information.
optional .google.cloud.compute.v1.FixedOrPercent target_size = 62880239;
Returns
getTargetSizeOrBuilder()
public FixedOrPercentOrBuilder getTargetSizeOrBuilder()
Specifies the intended number of instances to be created from the instanceTemplate. The final number of instances created from the template will be equal to: - If expressed as a fixed number, the minimum of either targetSize.fixed or instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a remainder, the number is rounded. If unset, this version will update any remaining instances not updated by another version. Read Starting a canary update for more information.
optional .google.cloud.compute.v1.FixedOrPercent target_size = 62880239;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasInstanceTemplate()
public boolean hasInstanceTemplate()
The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the targetSize
for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the targetSize
for this version is reached.
optional string instance_template = 309248228;
Returns
Type | Description |
boolean | Whether the instanceTemplate field is set.
|
hasName()
Name of the version. Unique among all versions in the scope of this managed instance group.
optional string name = 3373707;
Returns
Type | Description |
boolean | Whether the name field is set.
|
hasTargetSize()
public boolean hasTargetSize()
Specifies the intended number of instances to be created from the instanceTemplate. The final number of instances created from the template will be equal to: - If expressed as a fixed number, the minimum of either targetSize.fixed or instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a remainder, the number is rounded. If unset, this version will update any remaining instances not updated by another version. Read Starting a canary update for more information.
optional .google.cloud.compute.v1.FixedOrPercent target_size = 62880239;
Returns
Type | Description |
boolean | Whether the targetSize field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static InstanceGroupManagerVersion.Builder newBuilder()
Returns
newBuilder(InstanceGroupManagerVersion prototype)
public static InstanceGroupManagerVersion.Builder newBuilder(InstanceGroupManagerVersion prototype)
Parameter
Returns
newBuilderForType()
public InstanceGroupManagerVersion.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected InstanceGroupManagerVersion.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static InstanceGroupManagerVersion parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static InstanceGroupManagerVersion parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static InstanceGroupManagerVersion parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InstanceGroupManagerVersion parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static InstanceGroupManagerVersion parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstanceGroupManagerVersion parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static InstanceGroupManagerVersion parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static InstanceGroupManagerVersion parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static InstanceGroupManagerVersion parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static InstanceGroupManagerVersion parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static InstanceGroupManagerVersion parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InstanceGroupManagerVersion parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<InstanceGroupManagerVersion> parser()
Returns
toBuilder()
public InstanceGroupManagerVersion.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions