public static final class InstanceGroupManagerVersion.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder> implements InstanceGroupManagerVersionOrBuilder
Protobuf type
google.cloud.compute.v1.InstanceGroupManagerVersion| Modifier and Type | Method and Description |
|---|---|
InstanceGroupManagerVersion.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstanceGroupManagerVersion |
build() |
InstanceGroupManagerVersion |
buildPartial() |
InstanceGroupManagerVersion.Builder |
clear() |
InstanceGroupManagerVersion.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
InstanceGroupManagerVersion.Builder |
clearInstanceTemplate()
The URL of the instance template that is specified for this managed instance group.
|
InstanceGroupManagerVersion.Builder |
clearName()
Name of the version.
|
InstanceGroupManagerVersion.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
InstanceGroupManagerVersion.Builder |
clearTargetSize()
Specifies the intended number of instances to be created from the instanceTemplate.
|
InstanceGroupManagerVersion.Builder |
clone() |
InstanceGroupManagerVersion |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getInstanceTemplate()
The URL of the instance template that is specified for this managed instance group.
|
com.google.protobuf.ByteString |
getInstanceTemplateBytes()
The URL of the instance template that is specified for this managed instance group.
|
String |
getName()
Name of the version.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the version.
|
FixedOrPercent |
getTargetSize()
Specifies the intended number of instances to be created from the instanceTemplate.
|
FixedOrPercent.Builder |
getTargetSizeBuilder()
Specifies the intended number of instances to be created from the instanceTemplate.
|
FixedOrPercentOrBuilder |
getTargetSizeOrBuilder()
Specifies the intended number of instances to be created from the instanceTemplate.
|
boolean |
hasInstanceTemplate()
The URL of the instance template that is specified for this managed instance group.
|
boolean |
hasName()
Name of the version.
|
boolean |
hasTargetSize()
Specifies the intended number of instances to be created from the instanceTemplate.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
InstanceGroupManagerVersion.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
InstanceGroupManagerVersion.Builder |
mergeFrom(InstanceGroupManagerVersion other) |
InstanceGroupManagerVersion.Builder |
mergeFrom(com.google.protobuf.Message other) |
InstanceGroupManagerVersion.Builder |
mergeTargetSize(FixedOrPercent value)
Specifies the intended number of instances to be created from the instanceTemplate.
|
InstanceGroupManagerVersion.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InstanceGroupManagerVersion.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstanceGroupManagerVersion.Builder |
setInstanceTemplate(String value)
The URL of the instance template that is specified for this managed instance group.
|
InstanceGroupManagerVersion.Builder |
setInstanceTemplateBytes(com.google.protobuf.ByteString value)
The URL of the instance template that is specified for this managed instance group.
|
InstanceGroupManagerVersion.Builder |
setName(String value)
Name of the version.
|
InstanceGroupManagerVersion.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the version.
|
InstanceGroupManagerVersion.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
InstanceGroupManagerVersion.Builder |
setTargetSize(FixedOrPercent.Builder builderForValue)
Specifies the intended number of instances to be created from the instanceTemplate.
|
InstanceGroupManagerVersion.Builder |
setTargetSize(FixedOrPercent value)
Specifies the intended number of instances to be created from the instanceTemplate.
|
InstanceGroupManagerVersion.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>public InstanceGroupManagerVersion.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>public InstanceGroupManagerVersion getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic InstanceGroupManagerVersion build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic InstanceGroupManagerVersion buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic InstanceGroupManagerVersion.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>public InstanceGroupManagerVersion.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>public InstanceGroupManagerVersion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>public InstanceGroupManagerVersion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>public InstanceGroupManagerVersion.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>public InstanceGroupManagerVersion.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>public InstanceGroupManagerVersion.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceGroupManagerVersion.Builder>public InstanceGroupManagerVersion.Builder mergeFrom(InstanceGroupManagerVersion other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>public InstanceGroupManagerVersion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceGroupManagerVersion.Builder>IOExceptionpublic 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;hasInstanceTemplate in interface InstanceGroupManagerVersionOrBuilderpublic 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;getInstanceTemplate in interface InstanceGroupManagerVersionOrBuilderpublic com.google.protobuf.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;getInstanceTemplateBytes in interface InstanceGroupManagerVersionOrBuilderpublic 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;value - The instanceTemplate to set.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;public InstanceGroupManagerVersion.Builder setInstanceTemplateBytes(com.google.protobuf.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;value - The bytes for instanceTemplate to set.public boolean hasName()
Name of the version. Unique among all versions in the scope of this managed instance group.
optional string name = 3373707;hasName in interface InstanceGroupManagerVersionOrBuilderpublic String getName()
Name of the version. Unique among all versions in the scope of this managed instance group.
optional string name = 3373707;getName in interface InstanceGroupManagerVersionOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the version. Unique among all versions in the scope of this managed instance group.
optional string name = 3373707;getNameBytes in interface InstanceGroupManagerVersionOrBuilderpublic 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;value - The name to set.public InstanceGroupManagerVersion.Builder clearName()
Name of the version. Unique among all versions in the scope of this managed instance group.
optional string name = 3373707;public InstanceGroupManagerVersion.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the version. Unique among all versions in the scope of this managed instance group.
optional string name = 3373707;value - The bytes for name to set.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;hasTargetSize in interface InstanceGroupManagerVersionOrBuilderpublic 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;getTargetSize in interface InstanceGroupManagerVersionOrBuilderpublic 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;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;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;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;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;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;getTargetSizeOrBuilder in interface InstanceGroupManagerVersionOrBuilderpublic final InstanceGroupManagerVersion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>public final InstanceGroupManagerVersion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManagerVersion.Builder>Copyright © 2023 Google LLC. All rights reserved.