Class HiveMetastoreConfig

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

    public final class HiveMetastoreConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements HiveMetastoreConfigOrBuilder
     Specifies configuration information specific to running Hive metastore
     software as the metastore service.
     
    Protobuf type google.cloud.metastore.v1alpha.HiveMetastoreConfig
    See Also:
    Serialized Form
    • Field Detail

      • CONFIG_OVERRIDES_FIELD_NUMBER

        public static final int CONFIG_OVERRIDES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KERBEROS_CONFIG_FIELD_NUMBER

        public static final int KERBEROS_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENDPOINT_PROTOCOL_FIELD_NUMBER

        public static final int ENDPOINT_PROTOCOL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AUXILIARY_VERSIONS_FIELD_NUMBER

        public static final int AUXILIARY_VERSIONS_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()
      • 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
      • getVersion

        public String getVersion()
         Immutable. The Hive metastore schema version.
         
        string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getVersion in interface HiveMetastoreConfigOrBuilder
        Returns:
        The version.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         Immutable. The Hive metastore schema version.
         
        string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getVersionBytes in interface HiveMetastoreConfigOrBuilder
        Returns:
        The bytes for version.
      • getConfigOverridesCount

        public int getConfigOverridesCount()
        Description copied from interface: HiveMetastoreConfigOrBuilder
         A mapping of Hive metastore configuration key-value pairs to apply to the
         Hive metastore (configured in `hive-site.xml`). The mappings
         override system defaults (some keys cannot be overridden). These
         overrides are also applied to auxiliary versions and can be further
         customized in the auxiliary version's `AuxiliaryVersionConfig`.
         
        map<string, string> config_overrides = 2;
        Specified by:
        getConfigOverridesCount in interface HiveMetastoreConfigOrBuilder
      • containsConfigOverrides

        public boolean containsConfigOverrides​(String key)
         A mapping of Hive metastore configuration key-value pairs to apply to the
         Hive metastore (configured in `hive-site.xml`). The mappings
         override system defaults (some keys cannot be overridden). These
         overrides are also applied to auxiliary versions and can be further
         customized in the auxiliary version's `AuxiliaryVersionConfig`.
         
        map<string, string> config_overrides = 2;
        Specified by:
        containsConfigOverrides in interface HiveMetastoreConfigOrBuilder
      • getConfigOverridesMap

        public Map<String,​String> getConfigOverridesMap()
         A mapping of Hive metastore configuration key-value pairs to apply to the
         Hive metastore (configured in `hive-site.xml`). The mappings
         override system defaults (some keys cannot be overridden). These
         overrides are also applied to auxiliary versions and can be further
         customized in the auxiliary version's `AuxiliaryVersionConfig`.
         
        map<string, string> config_overrides = 2;
        Specified by:
        getConfigOverridesMap in interface HiveMetastoreConfigOrBuilder
      • getConfigOverridesOrDefault

        public String getConfigOverridesOrDefault​(String key,
                                                  String defaultValue)
         A mapping of Hive metastore configuration key-value pairs to apply to the
         Hive metastore (configured in `hive-site.xml`). The mappings
         override system defaults (some keys cannot be overridden). These
         overrides are also applied to auxiliary versions and can be further
         customized in the auxiliary version's `AuxiliaryVersionConfig`.
         
        map<string, string> config_overrides = 2;
        Specified by:
        getConfigOverridesOrDefault in interface HiveMetastoreConfigOrBuilder
      • getConfigOverridesOrThrow

        public String getConfigOverridesOrThrow​(String key)
         A mapping of Hive metastore configuration key-value pairs to apply to the
         Hive metastore (configured in `hive-site.xml`). The mappings
         override system defaults (some keys cannot be overridden). These
         overrides are also applied to auxiliary versions and can be further
         customized in the auxiliary version's `AuxiliaryVersionConfig`.
         
        map<string, string> config_overrides = 2;
        Specified by:
        getConfigOverridesOrThrow in interface HiveMetastoreConfigOrBuilder
      • hasKerberosConfig

        public boolean hasKerberosConfig()
         Information used to configure the Hive metastore service as a service
         principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
         method and specify this field's path
         (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
         while omitting this field from the request's `service`.
         
        .google.cloud.metastore.v1alpha.KerberosConfig kerberos_config = 3;
        Specified by:
        hasKerberosConfig in interface HiveMetastoreConfigOrBuilder
        Returns:
        Whether the kerberosConfig field is set.
      • getKerberosConfig

        public KerberosConfig getKerberosConfig()
         Information used to configure the Hive metastore service as a service
         principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
         method and specify this field's path
         (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
         while omitting this field from the request's `service`.
         
        .google.cloud.metastore.v1alpha.KerberosConfig kerberos_config = 3;
        Specified by:
        getKerberosConfig in interface HiveMetastoreConfigOrBuilder
        Returns:
        The kerberosConfig.
      • getKerberosConfigOrBuilder

        public KerberosConfigOrBuilder getKerberosConfigOrBuilder()
         Information used to configure the Hive metastore service as a service
         principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
         method and specify this field's path
         (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
         while omitting this field from the request's `service`.
         
        .google.cloud.metastore.v1alpha.KerberosConfig kerberos_config = 3;
        Specified by:
        getKerberosConfigOrBuilder in interface HiveMetastoreConfigOrBuilder
      • getEndpointProtocolValue

        public int getEndpointProtocolValue()
         The protocol to use for the metastore service endpoint. If unspecified,
         defaults to `THRIFT`.
         
        .google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
        Specified by:
        getEndpointProtocolValue in interface HiveMetastoreConfigOrBuilder
        Returns:
        The enum numeric value on the wire for endpointProtocol.
      • getAuxiliaryVersionsCount

        public int getAuxiliaryVersionsCount()
        Description copied from interface: HiveMetastoreConfigOrBuilder
         A mapping of Hive metastore version to the auxiliary version
         configuration. When specified, a secondary Hive metastore service is
         created along with the primary service. All auxiliary versions must be less
         than the service's primary version. The key is the auxiliary service name
         and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
         means that the first character must be a lowercase letter, and all the
         following characters must be hyphens, lowercase letters, or digits, except
         the last character, which cannot be a hyphen.
         
        map<string, .google.cloud.metastore.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;
        Specified by:
        getAuxiliaryVersionsCount in interface HiveMetastoreConfigOrBuilder
      • containsAuxiliaryVersions

        public boolean containsAuxiliaryVersions​(String key)
         A mapping of Hive metastore version to the auxiliary version
         configuration. When specified, a secondary Hive metastore service is
         created along with the primary service. All auxiliary versions must be less
         than the service's primary version. The key is the auxiliary service name
         and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
         means that the first character must be a lowercase letter, and all the
         following characters must be hyphens, lowercase letters, or digits, except
         the last character, which cannot be a hyphen.
         
        map<string, .google.cloud.metastore.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;
        Specified by:
        containsAuxiliaryVersions in interface HiveMetastoreConfigOrBuilder
      • getAuxiliaryVersionsMap

        public Map<String,​AuxiliaryVersionConfig> getAuxiliaryVersionsMap()
         A mapping of Hive metastore version to the auxiliary version
         configuration. When specified, a secondary Hive metastore service is
         created along with the primary service. All auxiliary versions must be less
         than the service's primary version. The key is the auxiliary service name
         and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
         means that the first character must be a lowercase letter, and all the
         following characters must be hyphens, lowercase letters, or digits, except
         the last character, which cannot be a hyphen.
         
        map<string, .google.cloud.metastore.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;
        Specified by:
        getAuxiliaryVersionsMap in interface HiveMetastoreConfigOrBuilder
      • getAuxiliaryVersionsOrDefault

        public AuxiliaryVersionConfig getAuxiliaryVersionsOrDefault​(String key,
                                                                    AuxiliaryVersionConfig defaultValue)
         A mapping of Hive metastore version to the auxiliary version
         configuration. When specified, a secondary Hive metastore service is
         created along with the primary service. All auxiliary versions must be less
         than the service's primary version. The key is the auxiliary service name
         and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
         means that the first character must be a lowercase letter, and all the
         following characters must be hyphens, lowercase letters, or digits, except
         the last character, which cannot be a hyphen.
         
        map<string, .google.cloud.metastore.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;
        Specified by:
        getAuxiliaryVersionsOrDefault in interface HiveMetastoreConfigOrBuilder
      • getAuxiliaryVersionsOrThrow

        public AuxiliaryVersionConfig getAuxiliaryVersionsOrThrow​(String key)
         A mapping of Hive metastore version to the auxiliary version
         configuration. When specified, a secondary Hive metastore service is
         created along with the primary service. All auxiliary versions must be less
         than the service's primary version. The key is the auxiliary service name
         and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
         means that the first character must be a lowercase letter, and all the
         following characters must be hyphens, lowercase letters, or digits, except
         the last character, which cannot be a hyphen.
         
        map<string, .google.cloud.metastore.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;
        Specified by:
        getAuxiliaryVersionsOrThrow in interface HiveMetastoreConfigOrBuilder
      • 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 HiveMetastoreConfig parseFrom​(ByteBuffer data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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