Class NodeGroup.Builder

  • All Implemented Interfaces:
    NodeGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    NodeGroup

    public static final class NodeGroup.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
    implements NodeGroupOrBuilder
     Represents a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes.
     
    Protobuf type google.cloud.compute.v1.NodeGroup
    • 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<NodeGroup.Builder>
      • clear

        public NodeGroup.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<NodeGroup.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<NodeGroup.Builder>
      • getDefaultInstanceForType

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

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

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

        public NodeGroup.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<NodeGroup.Builder>
      • setField

        public NodeGroup.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<NodeGroup.Builder>
      • clearField

        public NodeGroup.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<NodeGroup.Builder>
      • clearOneof

        public NodeGroup.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<NodeGroup.Builder>
      • setRepeatedField

        public NodeGroup.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<NodeGroup.Builder>
      • addRepeatedField

        public NodeGroup.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<NodeGroup.Builder>
      • mergeFrom

        public NodeGroup.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<NodeGroup.Builder>
      • isInitialized

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

        public NodeGroup.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<NodeGroup.Builder>
        Throws:
        IOException
      • hasAutoscalingPolicy

        public boolean hasAutoscalingPolicy()
         Specifies how autoscaling should behave.
         
        optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
        Specified by:
        hasAutoscalingPolicy in interface NodeGroupOrBuilder
        Returns:
        Whether the autoscalingPolicy field is set.
      • setAutoscalingPolicy

        public NodeGroup.Builder setAutoscalingPolicy​(NodeGroupAutoscalingPolicy value)
         Specifies how autoscaling should behave.
         
        optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
      • setAutoscalingPolicy

        public NodeGroup.Builder setAutoscalingPolicy​(NodeGroupAutoscalingPolicy.Builder builderForValue)
         Specifies how autoscaling should behave.
         
        optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
      • mergeAutoscalingPolicy

        public NodeGroup.Builder mergeAutoscalingPolicy​(NodeGroupAutoscalingPolicy value)
         Specifies how autoscaling should behave.
         
        optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
      • clearAutoscalingPolicy

        public NodeGroup.Builder clearAutoscalingPolicy()
         Specifies how autoscaling should behave.
         
        optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
      • getAutoscalingPolicyBuilder

        public NodeGroupAutoscalingPolicy.Builder getAutoscalingPolicyBuilder()
         Specifies how autoscaling should behave.
         
        optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
      • hasCreationTimestamp

        public boolean hasCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        hasCreationTimestamp in interface NodeGroupOrBuilder
        Returns:
        Whether the creationTimestamp field is set.
      • getCreationTimestamp

        public String getCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestamp in interface NodeGroupOrBuilder
        Returns:
        The creationTimestamp.
      • getCreationTimestampBytes

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

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

        public NodeGroup.Builder clearCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Returns:
        This builder for chaining.
      • setCreationTimestampBytes

        public NodeGroup.Builder setCreationTimestampBytes​(com.google.protobuf.ByteString value)
         [Output Only] Creation timestamp 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 NodeGroupOrBuilder
        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 NodeGroupOrBuilder
        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 NodeGroupOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public NodeGroup.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 NodeGroup.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 NodeGroup.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()
        optional string fingerprint = 234678500;
        Specified by:
        hasFingerprint in interface NodeGroupOrBuilder
        Returns:
        Whether the fingerprint field is set.
      • getFingerprintBytes

        public com.google.protobuf.ByteString getFingerprintBytes()
        optional string fingerprint = 234678500;
        Specified by:
        getFingerprintBytes in interface NodeGroupOrBuilder
        Returns:
        The bytes for fingerprint.
      • setFingerprint

        public NodeGroup.Builder setFingerprint​(String value)
        optional string fingerprint = 234678500;
        Parameters:
        value - The fingerprint to set.
        Returns:
        This builder for chaining.
      • clearFingerprint

        public NodeGroup.Builder clearFingerprint()
        optional string fingerprint = 234678500;
        Returns:
        This builder for chaining.
      • setFingerprintBytes

        public NodeGroup.Builder setFingerprintBytes​(com.google.protobuf.ByteString value)
        optional string fingerprint = 234678500;
        Parameters:
        value - The bytes for fingerprint to set.
        Returns:
        This builder for chaining.
      • hasId

        public boolean hasId()
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Specified by:
        hasId in interface NodeGroupOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Specified by:
        getId in interface NodeGroupOrBuilder
        Returns:
        The id.
      • setId

        public NodeGroup.Builder setId​(long value)
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public NodeGroup.Builder clearId()
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Returns:
        This builder for chaining.
      • hasKind

        public boolean hasKind()
         [Output Only] The type of the resource. Always compute#nodeGroup for node group.
         
        optional string kind = 3292052;
        Specified by:
        hasKind in interface NodeGroupOrBuilder
        Returns:
        Whether the kind field is set.
      • getKind

        public String getKind()
         [Output Only] The type of the resource. Always compute#nodeGroup for node group.
         
        optional string kind = 3292052;
        Specified by:
        getKind in interface NodeGroupOrBuilder
        Returns:
        The kind.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         [Output Only] The type of the resource. Always compute#nodeGroup for node group.
         
        optional string kind = 3292052;
        Specified by:
        getKindBytes in interface NodeGroupOrBuilder
        Returns:
        The bytes for kind.
      • setKind

        public NodeGroup.Builder setKind​(String value)
         [Output Only] The type of the resource. Always compute#nodeGroup for node group.
         
        optional string kind = 3292052;
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public NodeGroup.Builder clearKind()
         [Output Only] The type of the resource. Always compute#nodeGroup for node group.
         
        optional string kind = 3292052;
        Returns:
        This builder for chaining.
      • setKindBytes

        public NodeGroup.Builder setKindBytes​(com.google.protobuf.ByteString value)
         [Output Only] The type of the resource. Always compute#nodeGroup for node group.
         
        optional string kind = 3292052;
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • hasLocationHint

        public boolean hasLocationHint()
         An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
         
        optional string location_hint = 350519505;
        Specified by:
        hasLocationHint in interface NodeGroupOrBuilder
        Returns:
        Whether the locationHint field is set.
      • getLocationHint

        public String getLocationHint()
         An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
         
        optional string location_hint = 350519505;
        Specified by:
        getLocationHint in interface NodeGroupOrBuilder
        Returns:
        The locationHint.
      • getLocationHintBytes

        public com.google.protobuf.ByteString getLocationHintBytes()
         An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
         
        optional string location_hint = 350519505;
        Specified by:
        getLocationHintBytes in interface NodeGroupOrBuilder
        Returns:
        The bytes for locationHint.
      • setLocationHint

        public NodeGroup.Builder setLocationHint​(String value)
         An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
         
        optional string location_hint = 350519505;
        Parameters:
        value - The locationHint to set.
        Returns:
        This builder for chaining.
      • clearLocationHint

        public NodeGroup.Builder clearLocationHint()
         An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
         
        optional string location_hint = 350519505;
        Returns:
        This builder for chaining.
      • setLocationHintBytes

        public NodeGroup.Builder setLocationHintBytes​(com.google.protobuf.ByteString value)
         An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
         
        optional string location_hint = 350519505;
        Parameters:
        value - The bytes for locationHint to set.
        Returns:
        This builder for chaining.
      • hasMaintenancePolicy

        public boolean hasMaintenancePolicy()
         Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies.
         Check the MaintenancePolicy enum for the list of possible values.
         
        optional string maintenance_policy = 528327646;
        Specified by:
        hasMaintenancePolicy in interface NodeGroupOrBuilder
        Returns:
        Whether the maintenancePolicy field is set.
      • getMaintenancePolicy

        public String getMaintenancePolicy()
         Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies.
         Check the MaintenancePolicy enum for the list of possible values.
         
        optional string maintenance_policy = 528327646;
        Specified by:
        getMaintenancePolicy in interface NodeGroupOrBuilder
        Returns:
        The maintenancePolicy.
      • getMaintenancePolicyBytes

        public com.google.protobuf.ByteString getMaintenancePolicyBytes()
         Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies.
         Check the MaintenancePolicy enum for the list of possible values.
         
        optional string maintenance_policy = 528327646;
        Specified by:
        getMaintenancePolicyBytes in interface NodeGroupOrBuilder
        Returns:
        The bytes for maintenancePolicy.
      • setMaintenancePolicy

        public NodeGroup.Builder setMaintenancePolicy​(String value)
         Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies.
         Check the MaintenancePolicy enum for the list of possible values.
         
        optional string maintenance_policy = 528327646;
        Parameters:
        value - The maintenancePolicy to set.
        Returns:
        This builder for chaining.
      • clearMaintenancePolicy

        public NodeGroup.Builder clearMaintenancePolicy()
         Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies.
         Check the MaintenancePolicy enum for the list of possible values.
         
        optional string maintenance_policy = 528327646;
        Returns:
        This builder for chaining.
      • setMaintenancePolicyBytes

        public NodeGroup.Builder setMaintenancePolicyBytes​(com.google.protobuf.ByteString value)
         Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies.
         Check the MaintenancePolicy enum for the list of possible values.
         
        optional string maintenance_policy = 528327646;
        Parameters:
        value - The bytes for maintenancePolicy to set.
        Returns:
        This builder for chaining.
      • hasMaintenanceWindow

        public boolean hasMaintenanceWindow()
        optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
        Specified by:
        hasMaintenanceWindow in interface NodeGroupOrBuilder
        Returns:
        Whether the maintenanceWindow field is set.
      • clearMaintenanceWindow

        public NodeGroup.Builder clearMaintenanceWindow()
        optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
      • getMaintenanceWindowBuilder

        public NodeGroupMaintenanceWindow.Builder getMaintenanceWindowBuilder()
        optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
      • hasName

        public boolean hasName()
         The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Specified by:
        hasName in interface NodeGroupOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Specified by:
        getName in interface NodeGroupOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Specified by:
        getNameBytes in interface NodeGroupOrBuilder
        Returns:
        The bytes for name.
      • setName

        public NodeGroup.Builder setName​(String value)
         The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public NodeGroup.Builder clearName()
         The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Returns:
        This builder for chaining.
      • setNameBytes

        public NodeGroup.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasNodeTemplate

        public boolean hasNodeTemplate()
         URL of the node template to create the node group from.
         
        optional string node_template = 323154455;
        Specified by:
        hasNodeTemplate in interface NodeGroupOrBuilder
        Returns:
        Whether the nodeTemplate field is set.
      • getNodeTemplate

        public String getNodeTemplate()
         URL of the node template to create the node group from.
         
        optional string node_template = 323154455;
        Specified by:
        getNodeTemplate in interface NodeGroupOrBuilder
        Returns:
        The nodeTemplate.
      • getNodeTemplateBytes

        public com.google.protobuf.ByteString getNodeTemplateBytes()
         URL of the node template to create the node group from.
         
        optional string node_template = 323154455;
        Specified by:
        getNodeTemplateBytes in interface NodeGroupOrBuilder
        Returns:
        The bytes for nodeTemplate.
      • setNodeTemplate

        public NodeGroup.Builder setNodeTemplate​(String value)
         URL of the node template to create the node group from.
         
        optional string node_template = 323154455;
        Parameters:
        value - The nodeTemplate to set.
        Returns:
        This builder for chaining.
      • clearNodeTemplate

        public NodeGroup.Builder clearNodeTemplate()
         URL of the node template to create the node group from.
         
        optional string node_template = 323154455;
        Returns:
        This builder for chaining.
      • setNodeTemplateBytes

        public NodeGroup.Builder setNodeTemplateBytes​(com.google.protobuf.ByteString value)
         URL of the node template to create the node group from.
         
        optional string node_template = 323154455;
        Parameters:
        value - The bytes for nodeTemplate to set.
        Returns:
        This builder for chaining.
      • hasSelfLink

        public boolean hasSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        hasSelfLink in interface NodeGroupOrBuilder
        Returns:
        Whether the selfLink field is set.
      • getSelfLink

        public String getSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLink in interface NodeGroupOrBuilder
        Returns:
        The selfLink.
      • getSelfLinkBytes

        public com.google.protobuf.ByteString getSelfLinkBytes()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLinkBytes in interface NodeGroupOrBuilder
        Returns:
        The bytes for selfLink.
      • setSelfLink

        public NodeGroup.Builder setSelfLink​(String value)
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The selfLink to set.
        Returns:
        This builder for chaining.
      • clearSelfLink

        public NodeGroup.Builder clearSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Returns:
        This builder for chaining.
      • setSelfLinkBytes

        public NodeGroup.Builder setSelfLinkBytes​(com.google.protobuf.ByteString value)
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The bytes for selfLink to set.
        Returns:
        This builder for chaining.
      • hasShareSettings

        public boolean hasShareSettings()
         Share-settings for the node group
         
        optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
        Specified by:
        hasShareSettings in interface NodeGroupOrBuilder
        Returns:
        Whether the shareSettings field is set.
      • getShareSettings

        public ShareSettings getShareSettings()
         Share-settings for the node group
         
        optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
        Specified by:
        getShareSettings in interface NodeGroupOrBuilder
        Returns:
        The shareSettings.
      • setShareSettings

        public NodeGroup.Builder setShareSettings​(ShareSettings value)
         Share-settings for the node group
         
        optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
      • setShareSettings

        public NodeGroup.Builder setShareSettings​(ShareSettings.Builder builderForValue)
         Share-settings for the node group
         
        optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
      • mergeShareSettings

        public NodeGroup.Builder mergeShareSettings​(ShareSettings value)
         Share-settings for the node group
         
        optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
      • clearShareSettings

        public NodeGroup.Builder clearShareSettings()
         Share-settings for the node group
         
        optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
      • getShareSettingsBuilder

        public ShareSettings.Builder getShareSettingsBuilder()
         Share-settings for the node group
         
        optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
      • hasSize

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

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

        public NodeGroup.Builder setSize​(int value)
         [Output Only] The total number of nodes in the node group.
         
        optional int32 size = 3530753;
        Parameters:
        value - The size to set.
        Returns:
        This builder for chaining.
      • clearSize

        public NodeGroup.Builder clearSize()
         [Output Only] The total number of nodes in the node group.
         
        optional int32 size = 3530753;
        Returns:
        This builder for chaining.
      • hasStatus

        public boolean hasStatus()
        
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Specified by:
        hasStatus in interface NodeGroupOrBuilder
        Returns:
        Whether the status field is set.
      • getStatus

        public String getStatus()
        
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Specified by:
        getStatus in interface NodeGroupOrBuilder
        Returns:
        The status.
      • getStatusBytes

        public com.google.protobuf.ByteString getStatusBytes()
        
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Specified by:
        getStatusBytes in interface NodeGroupOrBuilder
        Returns:
        The bytes for status.
      • setStatus

        public NodeGroup.Builder setStatus​(String value)
        
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public NodeGroup.Builder clearStatus()
        
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Returns:
        This builder for chaining.
      • setStatusBytes

        public NodeGroup.Builder setStatusBytes​(com.google.protobuf.ByteString value)
        
         Check the Status enum for the list of possible values.
         
        optional string status = 181260274;
        Parameters:
        value - The bytes for status to set.
        Returns:
        This builder for chaining.
      • hasZone

        public boolean hasZone()
         [Output Only] The name of the zone where the node group resides, such as us-central1-a.
         
        optional string zone = 3744684;
        Specified by:
        hasZone in interface NodeGroupOrBuilder
        Returns:
        Whether the zone field is set.
      • getZone

        public String getZone()
         [Output Only] The name of the zone where the node group resides, such as us-central1-a.
         
        optional string zone = 3744684;
        Specified by:
        getZone in interface NodeGroupOrBuilder
        Returns:
        The zone.
      • getZoneBytes

        public com.google.protobuf.ByteString getZoneBytes()
         [Output Only] The name of the zone where the node group resides, such as us-central1-a.
         
        optional string zone = 3744684;
        Specified by:
        getZoneBytes in interface NodeGroupOrBuilder
        Returns:
        The bytes for zone.
      • setZone

        public NodeGroup.Builder setZone​(String value)
         [Output Only] The name of the zone where the node group resides, such as us-central1-a.
         
        optional string zone = 3744684;
        Parameters:
        value - The zone to set.
        Returns:
        This builder for chaining.
      • clearZone

        public NodeGroup.Builder clearZone()
         [Output Only] The name of the zone where the node group resides, such as us-central1-a.
         
        optional string zone = 3744684;
        Returns:
        This builder for chaining.
      • setZoneBytes

        public NodeGroup.Builder setZoneBytes​(com.google.protobuf.ByteString value)
         [Output Only] The name of the zone where the node group resides, such as us-central1-a.
         
        optional string zone = 3744684;
        Parameters:
        value - The bytes for zone to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NodeGroup.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<NodeGroup.Builder>
      • mergeUnknownFields

        public final NodeGroup.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<NodeGroup.Builder>