public static final class InstanceGroup.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder> implements InstanceGroupOrBuilder
Represents an Instance Group resource. Instance Groups can be used to configure a target for load balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager or regionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. You cannot create regional unmanaged instance groups. For more information, read Instance groups.Protobuf type
google.cloud.compute.v1.InstanceGroup| Modifier and Type | Method and Description |
|---|---|
InstanceGroup.Builder |
addAllNamedPorts(Iterable<? extends NamedPort> values)
Assigns a name to a port number.
|
InstanceGroup.Builder |
addNamedPorts(int index,
NamedPort.Builder builderForValue)
Assigns a name to a port number.
|
InstanceGroup.Builder |
addNamedPorts(int index,
NamedPort value)
Assigns a name to a port number.
|
InstanceGroup.Builder |
addNamedPorts(NamedPort.Builder builderForValue)
Assigns a name to a port number.
|
InstanceGroup.Builder |
addNamedPorts(NamedPort value)
Assigns a name to a port number.
|
NamedPort.Builder |
addNamedPortsBuilder()
Assigns a name to a port number.
|
NamedPort.Builder |
addNamedPortsBuilder(int index)
Assigns a name to a port number.
|
InstanceGroup.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstanceGroup |
build() |
InstanceGroup |
buildPartial() |
InstanceGroup.Builder |
clear() |
InstanceGroup.Builder |
clearCreationTimestamp()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
|
InstanceGroup.Builder |
clearDescription()
An optional description of this resource.
|
InstanceGroup.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
InstanceGroup.Builder |
clearFingerprint()
[Output Only] The fingerprint of the named ports.
|
InstanceGroup.Builder |
clearId()
[Output Only] A unique identifier for this instance group, generated by the server.
|
InstanceGroup.Builder |
clearKind()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
|
InstanceGroup.Builder |
clearName()
The name of the instance group.
|
InstanceGroup.Builder |
clearNamedPorts()
Assigns a name to a port number.
|
InstanceGroup.Builder |
clearNetwork()
[Output Only] The URL of the network to which all instances in the instance group belong.
|
InstanceGroup.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
InstanceGroup.Builder |
clearRegion()
[Output Only] The URL of the region where the instance group is located (for regional resources).
|
InstanceGroup.Builder |
clearSelfLink()
[Output Only] The URL for this instance group.
|
InstanceGroup.Builder |
clearSize()
[Output Only] The total number of instances in the instance group.
|
InstanceGroup.Builder |
clearSubnetwork()
[Output Only] The URL of the subnetwork to which all instances in the instance group belong.
|
InstanceGroup.Builder |
clearZone()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
|
InstanceGroup.Builder |
clone() |
String |
getCreationTimestamp()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
|
InstanceGroup |
getDefaultInstanceForType() |
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFingerprint()
[Output Only] The fingerprint of the named ports.
|
com.google.protobuf.ByteString |
getFingerprintBytes()
[Output Only] The fingerprint of the named ports.
|
long |
getId()
[Output Only] A unique identifier for this instance group, generated by the server.
|
String |
getKind()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
|
String |
getName()
The name of the instance group.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the instance group.
|
NamedPort |
getNamedPorts(int index)
Assigns a name to a port number.
|
NamedPort.Builder |
getNamedPortsBuilder(int index)
Assigns a name to a port number.
|
List<NamedPort.Builder> |
getNamedPortsBuilderList()
Assigns a name to a port number.
|
int |
getNamedPortsCount()
Assigns a name to a port number.
|
List<NamedPort> |
getNamedPortsList()
Assigns a name to a port number.
|
NamedPortOrBuilder |
getNamedPortsOrBuilder(int index)
Assigns a name to a port number.
|
List<? extends NamedPortOrBuilder> |
getNamedPortsOrBuilderList()
Assigns a name to a port number.
|
String |
getNetwork()
[Output Only] The URL of the network to which all instances in the instance group belong.
|
com.google.protobuf.ByteString |
getNetworkBytes()
[Output Only] The URL of the network to which all instances in the instance group belong.
|
String |
getRegion()
[Output Only] The URL of the region where the instance group is located (for regional resources).
|
com.google.protobuf.ByteString |
getRegionBytes()
[Output Only] The URL of the region where the instance group is located (for regional resources).
|
String |
getSelfLink()
[Output Only] The URL for this instance group.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] The URL for this instance group.
|
int |
getSize()
[Output Only] The total number of instances in the instance group.
|
String |
getSubnetwork()
[Output Only] The URL of the subnetwork to which all instances in the instance group belong.
|
com.google.protobuf.ByteString |
getSubnetworkBytes()
[Output Only] The URL of the subnetwork to which all instances in the instance group belong.
|
String |
getZone()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
|
com.google.protobuf.ByteString |
getZoneBytes()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
|
boolean |
hasCreationTimestamp()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
|
boolean |
hasDescription()
An optional description of this resource.
|
boolean |
hasFingerprint()
[Output Only] The fingerprint of the named ports.
|
boolean |
hasId()
[Output Only] A unique identifier for this instance group, generated by the server.
|
boolean |
hasKind()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
|
boolean |
hasName()
The name of the instance group.
|
boolean |
hasNetwork()
[Output Only] The URL of the network to which all instances in the instance group belong.
|
boolean |
hasRegion()
[Output Only] The URL of the region where the instance group is located (for regional resources).
|
boolean |
hasSelfLink()
[Output Only] The URL for this instance group.
|
boolean |
hasSize()
[Output Only] The total number of instances in the instance group.
|
boolean |
hasSubnetwork()
[Output Only] The URL of the subnetwork to which all instances in the instance group belong.
|
boolean |
hasZone()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
InstanceGroup.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
InstanceGroup.Builder |
mergeFrom(InstanceGroup other) |
InstanceGroup.Builder |
mergeFrom(com.google.protobuf.Message other) |
InstanceGroup.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InstanceGroup.Builder |
removeNamedPorts(int index)
Assigns a name to a port number.
|
InstanceGroup.Builder |
setCreationTimestamp(String value)
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
|
InstanceGroup.Builder |
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
|
InstanceGroup.Builder |
setDescription(String value)
An optional description of this resource.
|
InstanceGroup.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.
|
InstanceGroup.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstanceGroup.Builder |
setFingerprint(String value)
[Output Only] The fingerprint of the named ports.
|
InstanceGroup.Builder |
setFingerprintBytes(com.google.protobuf.ByteString value)
[Output Only] The fingerprint of the named ports.
|
InstanceGroup.Builder |
setId(long value)
[Output Only] A unique identifier for this instance group, generated by the server.
|
InstanceGroup.Builder |
setKind(String value)
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
|
InstanceGroup.Builder |
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
|
InstanceGroup.Builder |
setName(String value)
The name of the instance group.
|
InstanceGroup.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the instance group.
|
InstanceGroup.Builder |
setNamedPorts(int index,
NamedPort.Builder builderForValue)
Assigns a name to a port number.
|
InstanceGroup.Builder |
setNamedPorts(int index,
NamedPort value)
Assigns a name to a port number.
|
InstanceGroup.Builder |
setNetwork(String value)
[Output Only] The URL of the network to which all instances in the instance group belong.
|
InstanceGroup.Builder |
setNetworkBytes(com.google.protobuf.ByteString value)
[Output Only] The URL of the network to which all instances in the instance group belong.
|
InstanceGroup.Builder |
setRegion(String value)
[Output Only] The URL of the region where the instance group is located (for regional resources).
|
InstanceGroup.Builder |
setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] The URL of the region where the instance group is located (for regional resources).
|
InstanceGroup.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
InstanceGroup.Builder |
setSelfLink(String value)
[Output Only] The URL for this instance group.
|
InstanceGroup.Builder |
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] The URL for this instance group.
|
InstanceGroup.Builder |
setSize(int value)
[Output Only] The total number of instances in the instance group.
|
InstanceGroup.Builder |
setSubnetwork(String value)
[Output Only] The URL of the subnetwork to which all instances in the instance group belong.
|
InstanceGroup.Builder |
setSubnetworkBytes(com.google.protobuf.ByteString value)
[Output Only] The URL of the subnetwork to which all instances in the instance group belong.
|
InstanceGroup.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InstanceGroup.Builder |
setZone(String value)
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
|
InstanceGroup.Builder |
setZoneBytes(com.google.protobuf.ByteString value)
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
|
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<InstanceGroup.Builder>public InstanceGroup.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.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<InstanceGroup.Builder>public InstanceGroup getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic InstanceGroup build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic InstanceGroup buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic InstanceGroup.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>public InstanceGroup.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<InstanceGroup.Builder>public InstanceGroup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>public InstanceGroup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>public InstanceGroup.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<InstanceGroup.Builder>public InstanceGroup.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<InstanceGroup.Builder>public InstanceGroup.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceGroup.Builder>public InstanceGroup.Builder mergeFrom(InstanceGroup other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>public InstanceGroup.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<InstanceGroup.Builder>IOExceptionpublic boolean hasCreationTimestamp()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface InstanceGroupOrBuilderpublic String getCreationTimestamp()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface InstanceGroupOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setCreationTimestamp(String value)
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;value - The creationTimestamp to set.public InstanceGroup.Builder clearCreationTimestamp()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;public InstanceGroup.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;value - The bytes for creationTimestamp to set.public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface InstanceGroupOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface InstanceGroupOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;value - The description to set.public InstanceGroup.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;public InstanceGroup.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;value - The bytes for description to set.public boolean hasFingerprint()
[Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
optional string fingerprint = 234678500;hasFingerprint in interface InstanceGroupOrBuilderpublic String getFingerprint()
[Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
optional string fingerprint = 234678500;getFingerprint in interface InstanceGroupOrBuilderpublic com.google.protobuf.ByteString getFingerprintBytes()
[Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
optional string fingerprint = 234678500;getFingerprintBytes in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setFingerprint(String value)
[Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
optional string fingerprint = 234678500;value - The fingerprint to set.public InstanceGroup.Builder clearFingerprint()
[Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
optional string fingerprint = 234678500;public InstanceGroup.Builder setFingerprintBytes(com.google.protobuf.ByteString value)
[Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
optional string fingerprint = 234678500;value - The bytes for fingerprint to set.public boolean hasId()
[Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;hasId in interface InstanceGroupOrBuilderpublic long getId()
[Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;getId in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setId(long value)
[Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;value - The id to set.public InstanceGroup.Builder clearId()
[Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;public boolean hasKind()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;hasKind in interface InstanceGroupOrBuilderpublic String getKind()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;getKind in interface InstanceGroupOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;getKindBytes in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setKind(String value)
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;value - The kind to set.public InstanceGroup.Builder clearKind()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;public InstanceGroup.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;value - The bytes for kind to set.public boolean hasName()
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;hasName in interface InstanceGroupOrBuilderpublic String getName()
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;getName in interface InstanceGroupOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;getNameBytes in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setName(String value)
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;value - The name to set.public InstanceGroup.Builder clearName()
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;public InstanceGroup.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;value - The bytes for name to set.public List<NamedPort> getNamedPortsList()
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;getNamedPortsList in interface InstanceGroupOrBuilderpublic int getNamedPortsCount()
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;getNamedPortsCount in interface InstanceGroupOrBuilderpublic NamedPort getNamedPorts(int index)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;getNamedPorts in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setNamedPorts(int index, NamedPort value)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public InstanceGroup.Builder setNamedPorts(int index, NamedPort.Builder builderForValue)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public InstanceGroup.Builder addNamedPorts(NamedPort value)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public InstanceGroup.Builder addNamedPorts(int index, NamedPort value)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public InstanceGroup.Builder addNamedPorts(NamedPort.Builder builderForValue)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public InstanceGroup.Builder addNamedPorts(int index, NamedPort.Builder builderForValue)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public InstanceGroup.Builder addAllNamedPorts(Iterable<? extends NamedPort> values)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public InstanceGroup.Builder clearNamedPorts()
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public InstanceGroup.Builder removeNamedPorts(int index)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public NamedPort.Builder getNamedPortsBuilder(int index)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public NamedPortOrBuilder getNamedPortsOrBuilder(int index)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;getNamedPortsOrBuilder in interface InstanceGroupOrBuilderpublic List<? extends NamedPortOrBuilder> getNamedPortsOrBuilderList()
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;getNamedPortsOrBuilderList in interface InstanceGroupOrBuilderpublic NamedPort.Builder addNamedPortsBuilder()
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public NamedPort.Builder addNamedPortsBuilder(int index)
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public List<NamedPort.Builder> getNamedPortsBuilderList()
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;public boolean hasNetwork()
[Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string network = 232872494;hasNetwork in interface InstanceGroupOrBuilderpublic String getNetwork()
[Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string network = 232872494;getNetwork in interface InstanceGroupOrBuilderpublic com.google.protobuf.ByteString getNetworkBytes()
[Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string network = 232872494;getNetworkBytes in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setNetwork(String value)
[Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string network = 232872494;value - The network to set.public InstanceGroup.Builder clearNetwork()
[Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string network = 232872494;public InstanceGroup.Builder setNetworkBytes(com.google.protobuf.ByteString value)
[Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string network = 232872494;value - The bytes for network to set.public boolean hasRegion()
[Output Only] The URL of the region where the instance group is located (for regional resources).
optional string region = 138946292;hasRegion in interface InstanceGroupOrBuilderpublic String getRegion()
[Output Only] The URL of the region where the instance group is located (for regional resources).
optional string region = 138946292;getRegion in interface InstanceGroupOrBuilderpublic com.google.protobuf.ByteString getRegionBytes()
[Output Only] The URL of the region where the instance group is located (for regional resources).
optional string region = 138946292;getRegionBytes in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setRegion(String value)
[Output Only] The URL of the region where the instance group is located (for regional resources).
optional string region = 138946292;value - The region to set.public InstanceGroup.Builder clearRegion()
[Output Only] The URL of the region where the instance group is located (for regional resources).
optional string region = 138946292;public InstanceGroup.Builder setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] The URL of the region where the instance group is located (for regional resources).
optional string region = 138946292;value - The bytes for region to set.public boolean hasSelfLink()
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;hasSelfLink in interface InstanceGroupOrBuilderpublic String getSelfLink()
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;getSelfLink in interface InstanceGroupOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;getSelfLinkBytes in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setSelfLink(String value)
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;value - The selfLink to set.public InstanceGroup.Builder clearSelfLink()
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;public InstanceGroup.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;value - The bytes for selfLink to set.public boolean hasSize()
[Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;hasSize in interface InstanceGroupOrBuilderpublic int getSize()
[Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;getSize in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setSize(int value)
[Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;value - The size to set.public InstanceGroup.Builder clearSize()
[Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;public boolean hasSubnetwork()
[Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string subnetwork = 307827694;hasSubnetwork in interface InstanceGroupOrBuilderpublic String getSubnetwork()
[Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string subnetwork = 307827694;getSubnetwork in interface InstanceGroupOrBuilderpublic com.google.protobuf.ByteString getSubnetworkBytes()
[Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string subnetwork = 307827694;getSubnetworkBytes in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setSubnetwork(String value)
[Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string subnetwork = 307827694;value - The subnetwork to set.public InstanceGroup.Builder clearSubnetwork()
[Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string subnetwork = 307827694;public InstanceGroup.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
[Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
optional string subnetwork = 307827694;value - The bytes for subnetwork to set.public boolean hasZone()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
optional string zone = 3744684;hasZone in interface InstanceGroupOrBuilderpublic String getZone()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
optional string zone = 3744684;getZone in interface InstanceGroupOrBuilderpublic com.google.protobuf.ByteString getZoneBytes()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
optional string zone = 3744684;getZoneBytes in interface InstanceGroupOrBuilderpublic InstanceGroup.Builder setZone(String value)
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
optional string zone = 3744684;value - The zone to set.public InstanceGroup.Builder clearZone()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
optional string zone = 3744684;public InstanceGroup.Builder setZoneBytes(com.google.protobuf.ByteString value)
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
optional string zone = 3744684;value - The bytes for zone to set.public final InstanceGroup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>public final InstanceGroup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>Copyright © 2023 Google LLC. All rights reserved.