Class KerberosConfig

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

    public final class KerberosConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements KerberosConfigOrBuilder
     Specifies Kerberos related configuration.
     
    Protobuf type google.cloud.dataproc.v1.KerberosConfig
    See Also:
    Serialized Form
    • Field Detail

      • ENABLE_KERBEROS_FIELD_NUMBER

        public static final int ENABLE_KERBEROS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER

        public static final int ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KMS_KEY_URI_FIELD_NUMBER

        public static final int KMS_KEY_URI_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KEYSTORE_URI_FIELD_NUMBER

        public static final int KEYSTORE_URI_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRUSTSTORE_URI_FIELD_NUMBER

        public static final int TRUSTSTORE_URI_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KEYSTORE_PASSWORD_URI_FIELD_NUMBER

        public static final int KEYSTORE_PASSWORD_URI_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KEY_PASSWORD_URI_FIELD_NUMBER

        public static final int KEY_PASSWORD_URI_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRUSTSTORE_PASSWORD_URI_FIELD_NUMBER

        public static final int TRUSTSTORE_PASSWORD_URI_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CROSS_REALM_TRUST_REALM_FIELD_NUMBER

        public static final int CROSS_REALM_TRUST_REALM_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CROSS_REALM_TRUST_KDC_FIELD_NUMBER

        public static final int CROSS_REALM_TRUST_KDC_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CROSS_REALM_TRUST_ADMIN_SERVER_FIELD_NUMBER

        public static final int CROSS_REALM_TRUST_ADMIN_SERVER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CROSS_REALM_TRUST_SHARED_PASSWORD_URI_FIELD_NUMBER

        public static final int CROSS_REALM_TRUST_SHARED_PASSWORD_URI_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KDC_DB_KEY_URI_FIELD_NUMBER

        public static final int KDC_DB_KEY_URI_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TGT_LIFETIME_HOURS_FIELD_NUMBER

        public static final int TGT_LIFETIME_HOURS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • getEnableKerberos

        public boolean getEnableKerberos()
         Optional. Flag to indicate whether to Kerberize the cluster (default:
         false). Set this field to true to enable Kerberos on a cluster.
         
        bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEnableKerberos in interface KerberosConfigOrBuilder
        Returns:
        The enableKerberos.
      • getRootPrincipalPasswordUri

        public String getRootPrincipalPasswordUri()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the root
         principal password.
         
        string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRootPrincipalPasswordUri in interface KerberosConfigOrBuilder
        Returns:
        The rootPrincipalPasswordUri.
      • getRootPrincipalPasswordUriBytes

        public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the root
         principal password.
         
        string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRootPrincipalPasswordUriBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for rootPrincipalPasswordUri.
      • getKmsKeyUri

        public String getKmsKeyUri()
         Optional. The uri of the KMS key used to encrypt various sensitive
         files.
         
        string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKmsKeyUri in interface KerberosConfigOrBuilder
        Returns:
        The kmsKeyUri.
      • getKmsKeyUriBytes

        public com.google.protobuf.ByteString getKmsKeyUriBytes()
         Optional. The uri of the KMS key used to encrypt various sensitive
         files.
         
        string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKmsKeyUriBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for kmsKeyUri.
      • getKeystoreUri

        public String getKeystoreUri()
         Optional. The Cloud Storage URI of the keystore file used for SSL
         encryption. If not provided, Dataproc will provide a self-signed
         certificate.
         
        string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKeystoreUri in interface KerberosConfigOrBuilder
        Returns:
        The keystoreUri.
      • getKeystoreUriBytes

        public com.google.protobuf.ByteString getKeystoreUriBytes()
         Optional. The Cloud Storage URI of the keystore file used for SSL
         encryption. If not provided, Dataproc will provide a self-signed
         certificate.
         
        string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKeystoreUriBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for keystoreUri.
      • getTruststoreUri

        public String getTruststoreUri()
         Optional. The Cloud Storage URI of the truststore file used for SSL
         encryption. If not provided, Dataproc will provide a self-signed
         certificate.
         
        string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTruststoreUri in interface KerberosConfigOrBuilder
        Returns:
        The truststoreUri.
      • getTruststoreUriBytes

        public com.google.protobuf.ByteString getTruststoreUriBytes()
         Optional. The Cloud Storage URI of the truststore file used for SSL
         encryption. If not provided, Dataproc will provide a self-signed
         certificate.
         
        string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTruststoreUriBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for truststoreUri.
      • getKeystorePasswordUri

        public String getKeystorePasswordUri()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the
         password to the user provided keystore. For the self-signed certificate,
         this password is generated by Dataproc.
         
        string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKeystorePasswordUri in interface KerberosConfigOrBuilder
        Returns:
        The keystorePasswordUri.
      • getKeystorePasswordUriBytes

        public com.google.protobuf.ByteString getKeystorePasswordUriBytes()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the
         password to the user provided keystore. For the self-signed certificate,
         this password is generated by Dataproc.
         
        string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKeystorePasswordUriBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for keystorePasswordUri.
      • getKeyPasswordUri

        public String getKeyPasswordUri()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the
         password to the user provided key. For the self-signed certificate, this
         password is generated by Dataproc.
         
        string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKeyPasswordUri in interface KerberosConfigOrBuilder
        Returns:
        The keyPasswordUri.
      • getKeyPasswordUriBytes

        public com.google.protobuf.ByteString getKeyPasswordUriBytes()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the
         password to the user provided key. For the self-signed certificate, this
         password is generated by Dataproc.
         
        string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKeyPasswordUriBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for keyPasswordUri.
      • getTruststorePasswordUri

        public String getTruststorePasswordUri()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the
         password to the user provided truststore. For the self-signed certificate,
         this password is generated by Dataproc.
         
        string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTruststorePasswordUri in interface KerberosConfigOrBuilder
        Returns:
        The truststorePasswordUri.
      • getTruststorePasswordUriBytes

        public com.google.protobuf.ByteString getTruststorePasswordUriBytes()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the
         password to the user provided truststore. For the self-signed certificate,
         this password is generated by Dataproc.
         
        string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTruststorePasswordUriBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for truststorePasswordUri.
      • getCrossRealmTrustRealm

        public String getCrossRealmTrustRealm()
         Optional. The remote realm the Dataproc on-cluster KDC will trust, should
         the user enable cross realm trust.
         
        string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCrossRealmTrustRealm in interface KerberosConfigOrBuilder
        Returns:
        The crossRealmTrustRealm.
      • getCrossRealmTrustRealmBytes

        public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes()
         Optional. The remote realm the Dataproc on-cluster KDC will trust, should
         the user enable cross realm trust.
         
        string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCrossRealmTrustRealmBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for crossRealmTrustRealm.
      • getCrossRealmTrustKdc

        public String getCrossRealmTrustKdc()
         Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
         realm trust relationship.
         
        string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCrossRealmTrustKdc in interface KerberosConfigOrBuilder
        Returns:
        The crossRealmTrustKdc.
      • getCrossRealmTrustKdcBytes

        public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes()
         Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
         realm trust relationship.
         
        string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCrossRealmTrustKdcBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for crossRealmTrustKdc.
      • getCrossRealmTrustAdminServer

        public String getCrossRealmTrustAdminServer()
         Optional. The admin server (IP or hostname) for the remote trusted realm in
         a cross realm trust relationship.
         
        string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCrossRealmTrustAdminServer in interface KerberosConfigOrBuilder
        Returns:
        The crossRealmTrustAdminServer.
      • getCrossRealmTrustAdminServerBytes

        public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes()
         Optional. The admin server (IP or hostname) for the remote trusted realm in
         a cross realm trust relationship.
         
        string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCrossRealmTrustAdminServerBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for crossRealmTrustAdminServer.
      • getCrossRealmTrustSharedPasswordUri

        public String getCrossRealmTrustSharedPasswordUri()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the
         shared password between the on-cluster Kerberos realm and the remote
         trusted realm, in a cross realm trust relationship.
         
        string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCrossRealmTrustSharedPasswordUri in interface KerberosConfigOrBuilder
        Returns:
        The crossRealmTrustSharedPasswordUri.
      • getCrossRealmTrustSharedPasswordUriBytes

        public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the
         shared password between the on-cluster Kerberos realm and the remote
         trusted realm, in a cross realm trust relationship.
         
        string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCrossRealmTrustSharedPasswordUriBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for crossRealmTrustSharedPasswordUri.
      • getKdcDbKeyUri

        public String getKdcDbKeyUri()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the
         master key of the KDC database.
         
        string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKdcDbKeyUri in interface KerberosConfigOrBuilder
        Returns:
        The kdcDbKeyUri.
      • getKdcDbKeyUriBytes

        public com.google.protobuf.ByteString getKdcDbKeyUriBytes()
         Optional. The Cloud Storage URI of a KMS encrypted file containing the
         master key of the KDC database.
         
        string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKdcDbKeyUriBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for kdcDbKeyUri.
      • getTgtLifetimeHours

        public int getTgtLifetimeHours()
         Optional. The lifetime of the ticket granting ticket, in hours.
         If not specified, or user specifies 0, then default value 10
         will be used.
         
        int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTgtLifetimeHours in interface KerberosConfigOrBuilder
        Returns:
        The tgtLifetimeHours.
      • getRealm

        public String getRealm()
         Optional. The name of the on-cluster Kerberos realm.
         If not specified, the uppercased domain of hostnames will be the realm.
         
        string realm = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRealm in interface KerberosConfigOrBuilder
        Returns:
        The realm.
      • getRealmBytes

        public com.google.protobuf.ByteString getRealmBytes()
         Optional. The name of the on-cluster Kerberos realm.
         If not specified, the uppercased domain of hostnames will be the realm.
         
        string realm = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRealmBytes in interface KerberosConfigOrBuilder
        Returns:
        The bytes for realm.
      • 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 KerberosConfig parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static KerberosConfig getDefaultInstance()
      • parser

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

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