Class 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.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>
      • clear

        public InstanceGroup.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>
      • getDefaultInstanceForType

        public InstanceGroup getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public InstanceGroup build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public InstanceGroup buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public InstanceGroup.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>
      • setField

        public InstanceGroup.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>
      • clearField

        public InstanceGroup.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>
      • clearOneof

        public InstanceGroup.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>
      • setRepeatedField

        public InstanceGroup.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>
      • addRepeatedField

        public InstanceGroup.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>
      • mergeFrom

        public InstanceGroup.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceGroup.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>
      • mergeFrom

        public InstanceGroup.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceGroup.Builder>
        Throws:
        IOException
      • hasCreationTimestamp

        public boolean hasCreationTimestamp()
         [Output Only] The creation timestamp for this instance group in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        hasCreationTimestamp in interface InstanceGroupOrBuilder
        Returns:
        Whether the creationTimestamp field is set.
      • getCreationTimestamp

        public String getCreationTimestamp()
         [Output Only] The creation timestamp for this instance group in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestamp in interface InstanceGroupOrBuilder
        Returns:
        The creationTimestamp.
      • getCreationTimestampBytes

        public com.google.protobuf.ByteString getCreationTimestampBytes()
         [Output Only] The creation timestamp for this instance group in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestampBytes in interface InstanceGroupOrBuilder
        Returns:
        The bytes for creationTimestamp.
      • setCreationTimestamp

        public InstanceGroup.Builder setCreationTimestamp​(String value)
         [Output Only] The creation timestamp for this instance group in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Parameters:
        value - The creationTimestamp to set.
        Returns:
        This builder for chaining.
      • clearCreationTimestamp

        public InstanceGroup.Builder clearCreationTimestamp()
         [Output Only] The creation timestamp for this instance group in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Returns:
        This builder for chaining.
      • setCreationTimestampBytes

        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;
        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:
        hasDescription in interface InstanceGroupOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public String getDescription()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Specified by:
        getDescription in interface InstanceGroupOrBuilder
        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:
        getDescriptionBytes in interface InstanceGroupOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public InstanceGroup.Builder setDescription​(String value)
         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

        public InstanceGroup.Builder 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

        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;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        hasFingerprint in interface InstanceGroupOrBuilder
        Returns:
        Whether the fingerprint field is set.
      • 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;
        Specified by:
        getFingerprint in interface InstanceGroupOrBuilder
        Returns:
        The fingerprint.
      • getFingerprintBytes

        public 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;
        Specified by:
        getFingerprintBytes in interface InstanceGroupOrBuilder
        Returns:
        The bytes for fingerprint.
      • setFingerprint

        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;
        Parameters:
        value - The fingerprint to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setFingerprintBytes

        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;
        Parameters:
        value - The bytes for fingerprint to set.
        Returns:
        This builder for chaining.
      • hasId

        public boolean hasId()
         [Output Only] A unique identifier for this instance group, generated by the server.
         
        optional uint64 id = 3355;
        Specified by:
        hasId in interface InstanceGroupOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         [Output Only] A unique identifier for this instance group, generated by the server.
         
        optional uint64 id = 3355;
        Specified by:
        getId in interface InstanceGroupOrBuilder
        Returns:
        The id.
      • setId

        public InstanceGroup.Builder setId​(long value)
         [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

        public InstanceGroup.Builder clearId()
         [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] The resource type, which is always compute#instanceGroup for instance groups.
         
        optional string kind = 3292052;
        Specified by:
        hasKind in interface InstanceGroupOrBuilder
        Returns:
        Whether the kind field is set.
      • getKind

        public String getKind()
         [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
         
        optional string kind = 3292052;
        Specified by:
        getKind in interface InstanceGroupOrBuilder
        Returns:
        The kind.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
         
        optional string kind = 3292052;
        Specified by:
        getKindBytes in interface InstanceGroupOrBuilder
        Returns:
        The bytes for kind.
      • setKind

        public InstanceGroup.Builder setKind​(String value)
         [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
         
        optional string kind = 3292052;
        Parameters:
        value - The kind to set.
        Returns:
        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:
        This builder for chaining.
      • setKindBytes

        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;
        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 with RFC1035.
         
        optional string name = 3373707;
        Specified by:
        hasName in interface InstanceGroupOrBuilder
        Returns:
        Whether the name field is set.
      • 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;
        Specified by:
        getName in interface InstanceGroupOrBuilder
        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 with RFC1035.
         
        optional string name = 3373707;
        Specified by:
        getNameBytes in interface InstanceGroupOrBuilder
        Returns:
        The bytes for name.
      • setName

        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;
        Parameters:
        value - The name to set.
        Returns:
        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:
        This builder for chaining.
      • setNameBytes

        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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getNamedPortsList in interface InstanceGroupOrBuilder
      • 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;
        Specified by:
        getNamedPortsCount in interface InstanceGroupOrBuilder
      • getNamedPorts

        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;
        Specified by:
        getNamedPorts in interface InstanceGroupOrBuilder
      • setNamedPorts

        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;
      • setNamedPorts

        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;
      • addNamedPorts

        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;
      • addNamedPorts

        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;
      • addNamedPorts

        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;
      • addNamedPorts

        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;
      • addAllNamedPorts

        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;
      • 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;
      • removeNamedPorts

        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;
      • getNamedPortsBuilder

        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;
      • getNamedPortsOrBuilder

        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;
        Specified by:
        getNamedPortsOrBuilder in interface InstanceGroupOrBuilder
      • 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;
        Specified by:
        getNamedPortsOrBuilderList in interface InstanceGroupOrBuilder
      • 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;
      • addNamedPortsBuilder

        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;
      • 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;
      • 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:
        hasNetwork in interface InstanceGroupOrBuilder
        Returns:
        Whether the network field is set.
      • 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;
        Specified by:
        getNetwork in interface InstanceGroupOrBuilder
        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:
        getNetworkBytes in interface InstanceGroupOrBuilder
        Returns:
        The bytes for network.
      • setNetwork

        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;
        Parameters:
        value - The network to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setNetworkBytes

        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;
        Parameters:
        value - The bytes for network to set.
        Returns:
        This builder for chaining.
      • hasRegion

        public boolean hasRegion()
         [Output Only] The URL of the region where the instance group is located (for regional resources).
         
        optional string region = 138946292;
        Specified by:
        hasRegion in interface InstanceGroupOrBuilder
        Returns:
        Whether the region field is set.
      • getRegion

        public String getRegion()
         [Output Only] The URL of the region where the instance group is located (for regional resources).
         
        optional string region = 138946292;
        Specified by:
        getRegion in interface InstanceGroupOrBuilder
        Returns:
        The region.
      • getRegionBytes

        public 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;
        Specified by:
        getRegionBytes in interface InstanceGroupOrBuilder
        Returns:
        The bytes for region.
      • setRegion

        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;
        Parameters:
        value - The region to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setRegionBytes

        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;
        Parameters:
        value - The bytes for region to set.
        Returns:
        This builder for chaining.
      • hasSelfLink

        public boolean hasSelfLink()
         [Output Only] The URL for this instance group. The server generates this URL.
         
        optional string self_link = 456214797;
        Specified by:
        hasSelfLink in interface InstanceGroupOrBuilder
        Returns:
        Whether the selfLink field is set.
      • getSelfLink

        public String getSelfLink()
         [Output Only] The URL for this instance group. The server generates this URL.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLink in interface InstanceGroupOrBuilder
        Returns:
        The selfLink.
      • getSelfLinkBytes

        public com.google.protobuf.ByteString getSelfLinkBytes()
         [Output Only] The URL for this instance group. The server generates this URL.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLinkBytes in interface InstanceGroupOrBuilder
        Returns:
        The bytes for selfLink.
      • setSelfLink

        public InstanceGroup.Builder setSelfLink​(String value)
         [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

        public InstanceGroup.Builder clearSelfLink()
         [Output Only] The URL for this instance group. The server generates this URL.
         
        optional string self_link = 456214797;
        Returns:
        This builder for chaining.
      • setSelfLinkBytes

        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;
        Parameters:
        value - The bytes for selfLink to set.
        Returns:
        This builder for chaining.
      • hasSize

        public boolean hasSize()
         [Output Only] The total number of instances in the instance group.
         
        optional int32 size = 3530753;
        Specified by:
        hasSize in interface InstanceGroupOrBuilder
        Returns:
        Whether the size field is set.
      • getSize

        public int getSize()
         [Output Only] The total number of instances in the instance group.
         
        optional int32 size = 3530753;
        Specified by:
        getSize in interface InstanceGroupOrBuilder
        Returns:
        The size.
      • setSize

        public InstanceGroup.Builder setSize​(int value)
         [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

        public InstanceGroup.Builder clearSize()
         [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] 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:
        hasSubnetwork in interface InstanceGroupOrBuilder
        Returns:
        Whether the subnetwork field is set.
      • 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;
        Specified by:
        getSubnetwork in interface InstanceGroupOrBuilder
        Returns:
        The subnetwork.
      • getSubnetworkBytes

        public 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;
        Specified by:
        getSubnetworkBytes in interface InstanceGroupOrBuilder
        Returns:
        The bytes for subnetwork.
      • setSubnetwork

        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;
        Parameters:
        value - The subnetwork to set.
        Returns:
        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:
        This builder for chaining.
      • setSubnetworkBytes

        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;
        Parameters:
        value - The bytes for subnetwork to set.
        Returns:
        This builder for chaining.
      • hasZone

        public boolean hasZone()
         [Output Only] The URL of the zone where the instance group is located (for zonal resources).
         
        optional string zone = 3744684;
        Specified by:
        hasZone in interface InstanceGroupOrBuilder
        Returns:
        Whether the zone field is set.
      • getZone

        public String getZone()
         [Output Only] The URL of the zone where the instance group is located (for zonal resources).
         
        optional string zone = 3744684;
        Specified by:
        getZone in interface InstanceGroupOrBuilder
        Returns:
        The zone.
      • getZoneBytes

        public 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;
        Specified by:
        getZoneBytes in interface InstanceGroupOrBuilder
        Returns:
        The bytes for zone.
      • setZone

        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;
        Parameters:
        value - The zone to set.
        Returns:
        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:
        This builder for chaining.
      • setZoneBytes

        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;
        Parameters:
        value - The bytes for zone to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final InstanceGroup.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>
      • mergeUnknownFields

        public final InstanceGroup.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroup.Builder>