Class NodeGroup

  • All Implemented Interfaces:
    NodeGroupOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class NodeGroup
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static NodeGroup parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static NodeGroup parseFrom​(ByteBuffer data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static NodeGroup parseFrom​(com.google.protobuf.ByteString data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static NodeGroup parseFrom​(com.google.protobuf.ByteString data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static NodeGroup parseFrom​(byte[] data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static NodeGroup parseFrom​(byte[] data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static NodeGroup parseFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected NodeGroup.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static NodeGroup getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<NodeGroup> parser()
      • getParserForType

        public com.google.protobuf.Parser<NodeGroup> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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