Package com.google.cloud.compute.v1
Class InstanceGroup.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstanceGroup.Builder>
com.google.cloud.compute.v1.InstanceGroup.Builder
- All Implemented Interfaces:
InstanceGroupOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstanceGroup
public static final class InstanceGroup.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InstanceGroup.Builder>
implements InstanceGroupOrBuilder
Represents an Instance Group resource. Instance Groups can be used to configure a target forload balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager orregionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to applyload 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, readInstance groups.Protobuf type
google.cloud.compute.v1.InstanceGroup-
Method Summary
Modifier and TypeMethodDescriptionaddAllNamedPorts(Iterable<? extends NamedPort> values) Optional.addNamedPorts(int index, NamedPort value) Optional.addNamedPorts(int index, NamedPort.Builder builderForValue) Optional.addNamedPorts(NamedPort value) Optional.addNamedPorts(NamedPort.Builder builderForValue) Optional.Optional.addNamedPortsBuilder(int index) Optional.build()clear()Output only.An optional description of this resource.Output only.clearId()Output only.Output only.The name of the instance group.Optional.[Output Only] The URL of the network to which all instances in the instance group belong.Output only.Output only.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.An optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.longgetId()Output only.getKind()Output only.com.google.protobuf.ByteStringOutput only.getName()The name of the instance group.com.google.protobuf.ByteStringThe name of the instance group.getNamedPorts(int index) Optional.getNamedPortsBuilder(int index) Optional.Optional.intOptional.Optional.getNamedPortsOrBuilder(int index) Optional.List<? extends NamedPortOrBuilder>Optional.[Output Only] The URL of the network to which all instances in the instance group belong.com.google.protobuf.ByteString[Output Only] The URL of the network to which all instances in the instance group belong.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.intgetSize()Output only.Output only.com.google.protobuf.ByteStringOutput only.getZone()Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanAn optional description of this resource.booleanOutput only.booleanhasId()Output only.booleanhasKind()Output only.booleanhasName()The name of the instance group.boolean[Output Only] The URL of the network to which all instances in the instance group belong.booleanOutput only.booleanOutput only.booleanhasSize()Output only.booleanOutput only.booleanhasZone()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(InstanceGroup other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeNamedPorts(int index) Optional.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.setDescription(String value) An optional description of this resource.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this resource.setFingerprint(String value) Output only.setFingerprintBytes(com.google.protobuf.ByteString value) Output only.setId(long value) Output only.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.The name of the instance group.setNameBytes(com.google.protobuf.ByteString value) The name of the instance group.setNamedPorts(int index, NamedPort value) Optional.setNamedPorts(int index, NamedPort.Builder builderForValue) Optional.setNetwork(String value) [Output Only] The URL of the network to which all instances in the instance group belong.setNetworkBytes(com.google.protobuf.ByteString value) [Output Only] The URL of the network to which all instances in the instance group belong.Output only.setRegionBytes(com.google.protobuf.ByteString value) Output only.setSelfLink(String value) Output only.setSelfLinkBytes(com.google.protobuf.ByteString value) Output only.setSize(int value) Output only.setSubnetwork(String value) Output only.setSubnetworkBytes(com.google.protobuf.ByteString value) Output only.Output only.setZoneBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroup.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroup.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroup.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceGroup.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroup.Builder>
-
mergeFrom
public InstanceGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceGroup.Builder>- Throws:
IOException
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceInstanceGroupOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceInstanceGroupOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceInstanceGroupOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceInstanceGroupOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceInstanceGroupOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceInstanceGroupOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasFingerprint
public boolean hasFingerprint()Output only. [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;- Specified by:
hasFingerprintin interfaceInstanceGroupOrBuilder- Returns:
- Whether the fingerprint field is set.
-
getFingerprint
Output only. [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;- Specified by:
getFingerprintin interfaceInstanceGroupOrBuilder- Returns:
- The fingerprint.
-
getFingerprintBytes
public com.google.protobuf.ByteString getFingerprintBytes()Output only. [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;- Specified by:
getFingerprintBytesin interfaceInstanceGroupOrBuilder- Returns:
- The bytes for fingerprint.
-
setFingerprint
Output only. [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;- Parameters:
value- The fingerprint to set.- Returns:
- This builder for chaining.
-
clearFingerprint
Output only. [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:
- This builder for chaining.
-
setFingerprintBytes
Output only. [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;- Parameters:
value- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()Output only. [Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceInstanceGroupOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. [Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceInstanceGroupOrBuilder- Returns:
- The id.
-
setId
Output only. [Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. [Output Only] A unique identifier for this instance group, generated by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups.
optional string kind = 3292052;- Specified by:
hasKindin interfaceInstanceGroupOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups.
optional string kind = 3292052;- Specified by:
getKindin interfaceInstanceGroupOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceInstanceGroupOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035.
optional string name = 3373707;- Specified by:
hasNamein interfaceInstanceGroupOrBuilder- Returns:
- Whether the name field is set.
-
getName
The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035.
optional string name = 3373707;- Specified by:
getNamein interfaceInstanceGroupOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceInstanceGroupOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035.
optional string name = 3373707;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035.
optional string name = 3373707;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getNamedPortsList
Optional. 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;- Specified by:
getNamedPortsListin interfaceInstanceGroupOrBuilder
-
getNamedPortsCount
public int getNamedPortsCount()Optional. 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;- Specified by:
getNamedPortsCountin interfaceInstanceGroupOrBuilder
-
getNamedPorts
Optional. 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;- Specified by:
getNamedPortsin interfaceInstanceGroupOrBuilder
-
setNamedPorts
Optional. 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; -
setNamedPorts
Optional. 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; -
addNamedPorts
Optional. 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; -
addNamedPorts
Optional. 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; -
addNamedPorts
Optional. 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; -
addNamedPorts
Optional. 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; -
addAllNamedPorts
Optional. 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; -
clearNamedPorts
Optional. 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; -
removeNamedPorts
Optional. 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; -
getNamedPortsBuilder
Optional. 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
Optional. 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;- Specified by:
getNamedPortsOrBuilderin interfaceInstanceGroupOrBuilder
-
getNamedPortsOrBuilderList
Optional. 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;- Specified by:
getNamedPortsOrBuilderListin interfaceInstanceGroupOrBuilder
-
addNamedPortsBuilder
Optional. 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; -
addNamedPortsBuilder
Optional. 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; -
getNamedPortsBuilderList
Optional. 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; -
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;- Specified by:
hasNetworkin interfaceInstanceGroupOrBuilder- Returns:
- Whether the network field is set.
-
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;- Specified by:
getNetworkin interfaceInstanceGroupOrBuilder- Returns:
- The network.
-
getNetworkBytes
public 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;- Specified by:
getNetworkBytesin interfaceInstanceGroupOrBuilder- Returns:
- The bytes for network.
-
setNetwork
[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;- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNetworkBytes
[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;- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()Output only. [Output Only] The URL of theregion where the instance group is located (for regional resources).
optional string region = 138946292;- Specified by:
hasRegionin interfaceInstanceGroupOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
Output only. [Output Only] The URL of theregion where the instance group is located (for regional resources).
optional string region = 138946292;- Specified by:
getRegionin interfaceInstanceGroupOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()Output only. [Output Only] The URL of theregion where the instance group is located (for regional resources).
optional string region = 138946292;- Specified by:
getRegionBytesin interfaceInstanceGroupOrBuilder- Returns:
- The bytes for region.
-
setRegion
Output only. [Output Only] The URL of theregion where the instance group is located (for regional resources).
optional string region = 138946292;- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
Output only. [Output Only] The URL of theregion where the instance group is located (for regional resources).
optional string region = 138946292;- Returns:
- This builder for chaining.
-
setRegionBytes
Output only. [Output Only] The URL of theregion where the instance group is located (for regional resources).
optional string region = 138946292;- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()Output only. [Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceInstanceGroupOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
Output only. [Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceInstanceGroupOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()Output only. [Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceInstanceGroupOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
Output only. [Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
Output only. [Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
Output only. [Output Only] The URL for this instance group. The server generates this URL.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasSize
public boolean hasSize()Output only. [Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;- Specified by:
hasSizein interfaceInstanceGroupOrBuilder- Returns:
- Whether the size field is set.
-
getSize
public int getSize()Output only. [Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;- Specified by:
getSizein interfaceInstanceGroupOrBuilder- Returns:
- The size.
-
setSize
Output only. [Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
Output only. [Output Only] The total number of instances in the instance group.
optional int32 size = 3530753;- Returns:
- This builder for chaining.
-
hasSubnetwork
public boolean hasSubnetwork()Output only. [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;- Specified by:
hasSubnetworkin interfaceInstanceGroupOrBuilder- Returns:
- Whether the subnetwork field is set.
-
getSubnetwork
Output only. [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;- Specified by:
getSubnetworkin interfaceInstanceGroupOrBuilder- Returns:
- The subnetwork.
-
getSubnetworkBytes
public com.google.protobuf.ByteString getSubnetworkBytes()Output only. [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;- Specified by:
getSubnetworkBytesin interfaceInstanceGroupOrBuilder- Returns:
- The bytes for subnetwork.
-
setSubnetwork
Output only. [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;- Parameters:
value- The subnetwork to set.- Returns:
- This builder for chaining.
-
clearSubnetwork
Output only. [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:
- This builder for chaining.
-
setSubnetworkBytes
Output only. [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;- Parameters:
value- The bytes for subnetwork to set.- Returns:
- This builder for chaining.
-
hasZone
public boolean hasZone()Output only. [Output Only] The URL of thezone where the instance group is located (for zonal resources).
optional string zone = 3744684;- Specified by:
hasZonein interfaceInstanceGroupOrBuilder- Returns:
- Whether the zone field is set.
-
getZone
Output only. [Output Only] The URL of thezone where the instance group is located (for zonal resources).
optional string zone = 3744684;- Specified by:
getZonein interfaceInstanceGroupOrBuilder- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()Output only. [Output Only] The URL of thezone where the instance group is located (for zonal resources).
optional string zone = 3744684;- Specified by:
getZoneBytesin interfaceInstanceGroupOrBuilder- Returns:
- The bytes for zone.
-
setZone
Output only. [Output Only] The URL of thezone where the instance group is located (for zonal resources).
optional string zone = 3744684;- Parameters:
value- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
Output only. [Output Only] The URL of thezone where the instance group is located (for zonal resources).
optional string zone = 3744684;- Returns:
- This builder for chaining.
-
setZoneBytes
Output only. [Output Only] The URL of thezone where the instance group is located (for zonal resources).
optional string zone = 3744684;- Parameters:
value- The bytes for zone to set.- Returns:
- This builder for chaining.
-