- 1.58.0 (latest)
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class InstanceGroupManagerVersion.Builder extends GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder> implements InstanceGroupManagerVersionOrBuilder
Protobuf type google.cloud.compute.v1.InstanceGroupManagerVersion
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceGroupManagerVersion.BuilderImplements
InstanceGroupManagerVersionOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public InstanceGroupManagerVersion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
InstanceGroupManagerVersion.Builder |
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 |
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 |
getDefaultInstanceForType()
public InstanceGroupManagerVersion getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
InstanceGroupManagerVersion |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public InstanceGroupManagerVersion.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
InstanceGroupManagerVersion.Builder |
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 |
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 |
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 |
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 |