Class ManagedCluster

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

    public final class ManagedCluster
    extends com.google.protobuf.GeneratedMessageV3
    implements ManagedClusterOrBuilder
     Cluster that is managed by the workflow.
     
    Protobuf type google.cloud.dataproc.v1.ManagedCluster
    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()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getClusterName

        public String getClusterName()
         Required. The cluster name prefix. A unique cluster name will be formed by
         appending a random suffix.
        
         The name must contain only lower-case letters (a-z), numbers (0-9),
         and hyphens (-). Must begin with a letter. Cannot begin or end with
         hyphen. Must consist of between 2 and 35 characters.
         
        string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getClusterName in interface ManagedClusterOrBuilder
        Returns:
        The clusterName.
      • getClusterNameBytes

        public com.google.protobuf.ByteString getClusterNameBytes()
         Required. The cluster name prefix. A unique cluster name will be formed by
         appending a random suffix.
        
         The name must contain only lower-case letters (a-z), numbers (0-9),
         and hyphens (-). Must begin with a letter. Cannot begin or end with
         hyphen. Must consist of between 2 and 35 characters.
         
        string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getClusterNameBytes in interface ManagedClusterOrBuilder
        Returns:
        The bytes for clusterName.
      • hasConfig

        public boolean hasConfig()
         Required. The cluster configuration.
         
        .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasConfig in interface ManagedClusterOrBuilder
        Returns:
        Whether the config field is set.
      • getConfig

        public ClusterConfig getConfig()
         Required. The cluster configuration.
         
        .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getConfig in interface ManagedClusterOrBuilder
        Returns:
        The config.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: ManagedClusterOrBuilder
         Optional. The labels to associate with this cluster.
        
         Label keys must be between 1 and 63 characters long, and must conform to
         the following PCRE regular expression:
         [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
        
         Label values must be between 1 and 63 characters long, and must conform to
         the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
        
         No more than 32 labels can be associated with a given cluster.
         
        map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsCount in interface ManagedClusterOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Optional. The labels to associate with this cluster.
        
         Label keys must be between 1 and 63 characters long, and must conform to
         the following PCRE regular expression:
         [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
        
         Label values must be between 1 and 63 characters long, and must conform to
         the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
        
         No more than 32 labels can be associated with a given cluster.
         
        map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsLabels in interface ManagedClusterOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Optional. The labels to associate with this cluster.
        
         Label keys must be between 1 and 63 characters long, and must conform to
         the following PCRE regular expression:
         [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
        
         Label values must be between 1 and 63 characters long, and must conform to
         the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
        
         No more than 32 labels can be associated with a given cluster.
         
        map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsMap in interface ManagedClusterOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Optional. The labels to associate with this cluster.
        
         Label keys must be between 1 and 63 characters long, and must conform to
         the following PCRE regular expression:
         [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
        
         Label values must be between 1 and 63 characters long, and must conform to
         the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
        
         No more than 32 labels can be associated with a given cluster.
         
        map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrDefault in interface ManagedClusterOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Optional. The labels to associate with this cluster.
        
         Label keys must be between 1 and 63 characters long, and must conform to
         the following PCRE regular expression:
         [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
        
         Label values must be between 1 and 63 characters long, and must conform to
         the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
        
         No more than 32 labels can be associated with a given cluster.
         
        map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrThrow in interface ManagedClusterOrBuilder
      • 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 ManagedCluster parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static ManagedCluster getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<ManagedCluster> 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 ManagedCluster getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder