Class InstanceGroupManagerVersion.Builder (1.54.0)

public static final class InstanceGroupManagerVersion.Builder extends GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder> implements InstanceGroupManagerVersionOrBuilder

Protobuf type google.cloud.compute.v1.InstanceGroupManagerVersion

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceGroupManagerVersion build()
Returns
Type Description
InstanceGroupManagerVersion

buildPartial()

public InstanceGroupManagerVersion buildPartial()
Returns
Type Description
InstanceGroupManagerVersion

clear()

public InstanceGroupManagerVersion.Builder clear()
Returns
Type Description
InstanceGroupManagerVersion.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstanceGroupManagerVersion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InstanceGroupManagerVersion.Builder
Overrides

clearInstanceTemplate()

public InstanceGroupManagerVersion.Builder clearInstanceTemplate()

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
InstanceGroupManagerVersion.Builder

This builder for chaining.

clearName()

public InstanceGroupManagerVersion.Builder clearName()

Name of the version. Unique among all versions in the scope of this managed instance group.

optional string name = 3373707;

Returns
Type Description
InstanceGroupManagerVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceGroupManagerVersion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InstanceGroupManagerVersion.Builder
Overrides

clearTargetSize()

public InstanceGroupManagerVersion.Builder clearTargetSize()

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
InstanceGroupManagerVersion.Builder

clone()

public InstanceGroupManagerVersion.Builder clone()
Returns
Type Description
InstanceGroupManagerVersion.Builder
Overrides

getDefaultInstanceForType()

public InstanceGroupManagerVersion getDefaultInstanceForType()
Returns
Type Description
InstanceGroupManagerVersion

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

public String 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
Type Description
ByteString

The bytes for name.

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
Type Description
FixedOrPercent

The targetSize.

getTargetSizeBuilder()

public FixedOrPercent.Builder getTargetSizeBuilder()

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
FixedOrPercent.Builder

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
Type Description
FixedOrPercentOrBuilder

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

public boolean 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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceGroupManagerVersion other)

public InstanceGroupManagerVersion.Builder mergeFrom(InstanceGroupManagerVersion other)
Parameter
Name Description
other InstanceGroupManagerVersion
Returns
Type Description
InstanceGroupManagerVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public InstanceGroupManagerVersion.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstanceGroupManagerVersion.Builder
Overrides

mergeTargetSize(FixedOrPercent value)

public InstanceGroupManagerVersion.Builder mergeTargetSize(FixedOrPercent value)

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;

Parameter
Name Description
value FixedOrPercent
Returns
Type Description
InstanceGroupManagerVersion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManagerVersion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceGroupManagerVersion.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceGroupManagerVersion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceGroupManagerVersion.Builder
Overrides

setInstanceTemplate(String value)

public InstanceGroupManagerVersion.Builder setInstanceTemplate(String value)

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;

Parameter
Name Description
value String

The instanceTemplate to set.

Returns
Type Description
InstanceGroupManagerVersion.Builder

This builder for chaining.

setInstanceTemplateBytes(ByteString value)

public InstanceGroupManagerVersion.Builder setInstanceTemplateBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for instanceTemplate to set.

Returns
Type Description
InstanceGroupManagerVersion.Builder

This builder for chaining.

setName(String value)

public InstanceGroupManagerVersion.Builder setName(String value)

Name of the version. Unique among all versions in the scope of this managed instance group.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InstanceGroupManagerVersion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InstanceGroupManagerVersion.Builder setNameBytes(ByteString value)

Name of the version. Unique among all versions in the scope of this managed instance group.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InstanceGroupManagerVersion.Builder

This builder for chaining.

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

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

setTargetSize(FixedOrPercent value)

public InstanceGroupManagerVersion.Builder setTargetSize(FixedOrPercent value)

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;

Parameter
Name Description
value FixedOrPercent
Returns
Type Description
InstanceGroupManagerVersion.Builder

setTargetSize(FixedOrPercent.Builder builderForValue)

public InstanceGroupManagerVersion.Builder setTargetSize(FixedOrPercent.Builder builderForValue)

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;

Parameter
Name Description
builderForValue FixedOrPercent.Builder
Returns
Type Description
InstanceGroupManagerVersion.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManagerVersion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceGroupManagerVersion.Builder
Overrides