Class InstanceGroupManagerVersion.Builder (1.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceGroupManagerVersion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceGroupManagerVersion.Builder
Overrides

build()

public InstanceGroupManagerVersion build()
Returns
TypeDescription
InstanceGroupManagerVersion

buildPartial()

public InstanceGroupManagerVersion buildPartial()
Returns
TypeDescription
InstanceGroupManagerVersion

clear()

public InstanceGroupManagerVersion.Builder clear()
Returns
TypeDescription
InstanceGroupManagerVersion.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstanceGroupManagerVersion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
InstanceGroupManagerVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceGroupManagerVersion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
InstanceGroupManagerVersion.Builder

clone()

public InstanceGroupManagerVersion.Builder clone()
Returns
TypeDescription
InstanceGroupManagerVersion.Builder
Overrides

getDefaultInstanceForType()

public InstanceGroupManagerVersion getDefaultInstanceForType()
Returns
TypeDescription
InstanceGroupManagerVersion

getDescriptorForType()

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

Whether the targetSize field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceGroupManagerVersion other)

public InstanceGroupManagerVersion.Builder mergeFrom(InstanceGroupManagerVersion other)
Parameter
NameDescription
otherInstanceGroupManagerVersion
Returns
TypeDescription
InstanceGroupManagerVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceGroupManagerVersion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceGroupManagerVersion.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InstanceGroupManagerVersion.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueFixedOrPercent
Returns
TypeDescription
InstanceGroupManagerVersion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManagerVersion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceGroupManagerVersion.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceGroupManagerVersion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The instanceTemplate to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instanceTemplate to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueFixedOrPercent
Returns
TypeDescription
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
NameDescription
builderForValueFixedOrPercent.Builder
Returns
TypeDescription
InstanceGroupManagerVersion.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManagerVersion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceGroupManagerVersion.Builder
Overrides