- 1.62.0 (latest)
- 1.61.0
- 1.59.0
- 1.58.0
- 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 InstanceGroup.Builder extends 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceGroup.BuilderImplements
InstanceGroupOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllNamedPorts(Iterable<? extends NamedPort> values)
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;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.NamedPort> |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
addNamedPorts(NamedPort value)
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;
Parameter | |
---|---|
Name | Description |
value | NamedPort |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
addNamedPorts(NamedPort.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue | NamedPort.Builder |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
addNamedPorts(int index, NamedPort value)
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;
Parameters | |
---|---|
Name | Description |
index | int |
value | NamedPort |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
addNamedPorts(int index, NamedPort.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | NamedPort.Builder |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
addNamedPortsBuilder()
public 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;
Returns | |
---|---|
Type | Description |
NamedPort.Builder |
addNamedPortsBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
NamedPort.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
build()
public InstanceGroup build()
Returns | |
---|---|
Type | Description |
InstanceGroup |
buildPartial()
public InstanceGroup buildPartial()
Returns | |
---|---|
Type | Description |
InstanceGroup |
clear()
public InstanceGroup.Builder clear()
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
clearCreationTimestamp()
public InstanceGroup.Builder clearCreationTimestamp()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clearDescription()
public InstanceGroup.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public InstanceGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
clearFingerprint()
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;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clearId()
public InstanceGroup.Builder clearId()
[Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clearKind()
public InstanceGroup.Builder clearKind()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clearName()
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;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clearNamedPorts()
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;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
clearNetwork()
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;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
clearRegion()
public InstanceGroup.Builder clearRegion()
[Output Only] The URL of the region where the instance group is located (for regional resources).
optional string region = 138946292;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clearSelfLink()
public InstanceGroup.Builder clearSelfLink()
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clearSize()
public InstanceGroup.Builder clearSize()
[Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clearSubnetwork()
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;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clearZone()
public InstanceGroup.Builder clearZone()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
optional string zone = 3744684;
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
clone()
public InstanceGroup.Builder clone()
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
getCreationTimestamp()
public String getCreationTimestamp()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
String | The creationTimestamp. |
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for creationTimestamp. |
getDefaultInstanceForType()
public InstanceGroup getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
InstanceGroup |
getDescription()
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getFingerprint()
public 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;
Returns | |
---|---|
Type | Description |
String | The fingerprint. |
getFingerprintBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for fingerprint. |
getId()
public long getId()
[Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;
Returns | |
---|---|
Type | Description |
long | The id. |
getKind()
public String getKind()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
String | The kind. |
getKindBytes()
public ByteString getKindBytes()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for kind. |
getName()
public String getName()
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getNamedPorts(int index)
public 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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
NamedPort |
getNamedPortsBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
NamedPort.Builder |
getNamedPortsBuilderList()
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;
Returns | |
---|---|
Type | Description |
List<Builder> |
getNamedPortsCount()
public 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;
Returns | |
---|---|
Type | Description |
int |
getNamedPortsList()
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;
Returns | |
---|---|
Type | Description |
List<NamedPort> |
getNamedPortsOrBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
NamedPortOrBuilder |
getNamedPortsOrBuilderList()
public 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;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.compute.v1.NamedPortOrBuilder> |
getNetwork()
public 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;
Returns | |
---|---|
Type | Description |
String | The network. |
getNetworkBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for network. |
getRegion()
public String getRegion()
[Output Only] The URL of the region where the instance group is located (for regional resources).
optional string region = 138946292;
Returns | |
---|---|
Type | Description |
String | The region. |
getRegionBytes()
public ByteString getRegionBytes()
[Output Only] The URL of the region where the instance group is located (for regional resources).
optional string region = 138946292;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for region. |
getSelfLink()
public String getSelfLink()
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
String | The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for selfLink. |
getSize()
public int getSize()
[Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;
Returns | |
---|---|
Type | Description |
int | The size. |
getSubnetwork()
public 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;
Returns | |
---|---|
Type | Description |
String | The subnetwork. |
getSubnetworkBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for subnetwork. |
getZone()
public String getZone()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
optional string zone = 3744684;
Returns | |
---|---|
Type | Description |
String | The zone. |
getZoneBytes()
public ByteString getZoneBytes()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
optional string zone = 3744684;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for zone. |
hasCreationTimestamp()
public boolean hasCreationTimestamp()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
boolean | Whether the creationTimestamp field is set. |
hasDescription()
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
boolean | Whether the description field is set. |
hasFingerprint()
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;
Returns | |
---|---|
Type | Description |
boolean | Whether the fingerprint field is set. |
hasId()
public boolean hasId()
[Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;
Returns | |
---|---|
Type | Description |
boolean | Whether the id field is set. |
hasKind()
public boolean hasKind()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
boolean | Whether the kind field is set. |
hasName()
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;
Returns | |
---|---|
Type | Description |
boolean | Whether the name field is set. |
hasNetwork()
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;
Returns | |
---|---|
Type | Description |
boolean | Whether the network field is set. |
hasRegion()
public boolean hasRegion()
[Output Only] The URL of the region where the instance group is located (for regional resources).
optional string region = 138946292;
Returns | |
---|---|
Type | Description |
boolean | Whether the region field is set. |
hasSelfLink()
public boolean hasSelfLink()
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
boolean | Whether the selfLink field is set. |
hasSize()
public boolean hasSize()
[Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;
Returns | |
---|---|
Type | Description |
boolean | Whether the size field is set. |
hasSubnetwork()
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;
Returns | |
---|---|
Type | Description |
boolean | Whether the subnetwork field is set. |
hasZone()
public boolean hasZone()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
optional string zone = 3744684;
Returns | |
---|---|
Type | Description |
boolean | Whether the zone field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(InstanceGroup other)
public InstanceGroup.Builder mergeFrom(InstanceGroup other)
Parameter | |
---|---|
Name | Description |
other | InstanceGroup |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstanceGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public InstanceGroup.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstanceGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
removeNamedPorts(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
setCreationTimestamp(String value)
public InstanceGroup.Builder setCreationTimestamp(String value)
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;
Parameter | |
---|---|
Name | Description |
value | String The creationTimestamp to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setCreationTimestampBytes(ByteString value)
public InstanceGroup.Builder setCreationTimestampBytes(ByteString value)
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
optional string creation_timestamp = 30525366;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for creationTimestamp to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setDescription(String value)
public InstanceGroup.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Parameter | |
---|---|
Name | Description |
value | String The description to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public InstanceGroup.Builder setDescriptionBytes(ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public InstanceGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
setFingerprint(String value)
public 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;
Parameter | |
---|---|
Name | Description |
value | String The fingerprint to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setFingerprintBytes(ByteString value)
public InstanceGroup.Builder setFingerprintBytes(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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for fingerprint to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setId(long value)
public InstanceGroup.Builder setId(long value)
[Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;
Parameter | |
---|---|
Name | Description |
value | long The id to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setKind(String value)
public InstanceGroup.Builder setKind(String value)
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;
Parameter | |
---|---|
Name | Description |
value | String The kind to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setKindBytes(ByteString value)
public InstanceGroup.Builder setKindBytes(ByteString value)
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
optional string kind = 3292052;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for kind to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setName(String value)
public 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;
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public InstanceGroup.Builder setNameBytes(ByteString value)
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setNamedPorts(int index, NamedPort value)
public 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;
Parameters | |
---|---|
Name | Description |
index | int |
value | NamedPort |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
setNamedPorts(int index, NamedPort.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | NamedPort.Builder |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
setNetwork(String value)
public 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;
Parameter | |
---|---|
Name | Description |
value | String The network to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setNetworkBytes(ByteString value)
public InstanceGroup.Builder setNetworkBytes(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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for network to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setRegion(String value)
public 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;
Parameter | |
---|---|
Name | Description |
value | String The region to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setRegionBytes(ByteString value)
public InstanceGroup.Builder setRegionBytes(ByteString value)
[Output Only] The URL of the region where the instance group is located (for regional resources).
optional string region = 138946292;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for region to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstanceGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
setSelfLink(String value)
public InstanceGroup.Builder setSelfLink(String value)
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;
Parameter | |
---|---|
Name | Description |
value | String The selfLink to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setSelfLinkBytes(ByteString value)
public InstanceGroup.Builder setSelfLinkBytes(ByteString value)
[Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for selfLink to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setSize(int value)
public InstanceGroup.Builder setSize(int value)
[Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;
Parameter | |
---|---|
Name | Description |
value | int The size to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setSubnetwork(String value)
public 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;
Parameter | |
---|---|
Name | Description |
value | String The subnetwork to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setSubnetworkBytes(ByteString value)
public InstanceGroup.Builder setSubnetworkBytes(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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for subnetwork to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final InstanceGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder |
setZone(String value)
public 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;
Parameter | |
---|---|
Name | Description |
value | String The zone to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |
setZoneBytes(ByteString value)
public InstanceGroup.Builder setZoneBytes(ByteString value)
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
optional string zone = 3744684;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for zone to set. |
Returns | |
---|---|
Type | Description |
InstanceGroup.Builder | This builder for chaining. |