Class Service (0.15.0)

public final class Service extends GeneratedMessageV3 implements ServiceOrBuilder

A managed metastore service that serves metadata queries.

Protobuf type google.events.cloud.metastore.v1.Service

Implements

ServiceOrBuilder

Static Fields

ARTIFACT_GCS_URI_FIELD_NUMBER

public static final int ARTIFACT_GCS_URI_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DATABASE_TYPE_FIELD_NUMBER

public static final int DATABASE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

ENCRYPTION_CONFIG_FIELD_NUMBER

public static final int ENCRYPTION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

ENDPOINT_URI_FIELD_NUMBER

public static final int ENDPOINT_URI_FIELD_NUMBER
Field Value
Type Description
int

HIVE_METASTORE_CONFIG_FIELD_NUMBER

public static final int HIVE_METASTORE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

MAINTENANCE_WINDOW_FIELD_NUMBER

public static final int MAINTENANCE_WINDOW_FIELD_NUMBER
Field Value
Type Description
int

METADATA_MANAGEMENT_ACTIVITY_FIELD_NUMBER

public static final int METADATA_MANAGEMENT_ACTIVITY_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_CONFIG_FIELD_NUMBER

public static final int NETWORK_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
Type Description
int

RELEASE_CHANNEL_FIELD_NUMBER

public static final int RELEASE_CHANNEL_FIELD_NUMBER
Field Value
Type Description
int

SCALING_CONFIG_FIELD_NUMBER

public static final int SCALING_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

STATE_MESSAGE_FIELD_NUMBER

public static final int STATE_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

TELEMETRY_CONFIG_FIELD_NUMBER

public static final int TELEMETRY_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

TIER_FIELD_NUMBER

public static final int TIER_FIELD_NUMBER
Field Value
Type Description
int

UID_FIELD_NUMBER

public static final int UID_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Service getDefaultInstance()
Returns
Type Description
Service

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Service.Builder newBuilder()
Returns
Type Description
Service.Builder

newBuilder(Service prototype)

public static Service.Builder newBuilder(Service prototype)
Parameter
Name Description
prototype Service
Returns
Type Description
Service.Builder

parseDelimitedFrom(InputStream input)

public static Service parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Service
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Service parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Service parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Service
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Service parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Service parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Service
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Service parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Service parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Service
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Service parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Service parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Service
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Service parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Service parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Service
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Service parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Service> parser()
Returns
Type Description
Parser<Service>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

User-defined labels for the metastore service.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getArtifactGcsUri()

public String getArtifactGcsUri()

Output only. A Cloud Storage URI (starting with gs://) that specifies where artifacts related to the metastore service are stored.

string artifact_gcs_uri = 12;

Returns
Type Description
String

The artifactGcsUri.

getArtifactGcsUriBytes()

public ByteString getArtifactGcsUriBytes()

Output only. A Cloud Storage URI (starting with gs://) that specifies where artifacts related to the metastore service are stored.

string artifact_gcs_uri = 12;

Returns
Type Description
ByteString

The bytes for artifactGcsUri.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the metastore service was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the metastore service was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDatabaseType()

public Service.DatabaseType getDatabaseType()

Immutable. The database type that the Metastore service stores its data.

.google.events.cloud.metastore.v1.Service.DatabaseType database_type = 22;

Returns
Type Description
Service.DatabaseType

The databaseType.

getDatabaseTypeValue()

public int getDatabaseTypeValue()

Immutable. The database type that the Metastore service stores its data.

.google.events.cloud.metastore.v1.Service.DatabaseType database_type = 22;

Returns
Type Description
int

The enum numeric value on the wire for databaseType.

getDefaultInstanceForType()

public Service getDefaultInstanceForType()
Returns
Type Description
Service

getEncryptionConfig()

public EncryptionConfig getEncryptionConfig()

Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated.

.google.events.cloud.metastore.v1.EncryptionConfig encryption_config = 20;

Returns
Type Description
EncryptionConfig

The encryptionConfig.

getEncryptionConfigOrBuilder()

public EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()

Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated.

.google.events.cloud.metastore.v1.EncryptionConfig encryption_config = 20;

Returns
Type Description
EncryptionConfigOrBuilder

getEndpointUri()

public String getEndpointUri()

Output only. The URI of the endpoint used to access the metastore service.

string endpoint_uri = 8;

Returns
Type Description
String

The endpointUri.

getEndpointUriBytes()

public ByteString getEndpointUriBytes()

Output only. The URI of the endpoint used to access the metastore service.

string endpoint_uri = 8;

Returns
Type Description
ByteString

The bytes for endpointUri.

getHiveMetastoreConfig()

public HiveMetastoreConfig getHiveMetastoreConfig()

Configuration information specific to running Hive metastore software as the metastore service.

.google.events.cloud.metastore.v1.HiveMetastoreConfig hive_metastore_config = 5;

Returns
Type Description
HiveMetastoreConfig

The hiveMetastoreConfig.

getHiveMetastoreConfigOrBuilder()

public HiveMetastoreConfigOrBuilder getHiveMetastoreConfigOrBuilder()

Configuration information specific to running Hive metastore software as the metastore service.

.google.events.cloud.metastore.v1.HiveMetastoreConfig hive_metastore_config = 5;

Returns
Type Description
HiveMetastoreConfigOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

User-defined labels for the metastore service.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

User-defined labels for the metastore service.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

User-defined labels for the metastore service.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

User-defined labels for the metastore service.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMaintenanceWindow()

public MaintenanceWindow getMaintenanceWindow()

The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time. Maintenance window is not needed for services with the SPANNER database type.

.google.events.cloud.metastore.v1.MaintenanceWindow maintenance_window = 15;

Returns
Type Description
MaintenanceWindow

The maintenanceWindow.

getMaintenanceWindowOrBuilder()

public MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder()

The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time. Maintenance window is not needed for services with the SPANNER database type.

.google.events.cloud.metastore.v1.MaintenanceWindow maintenance_window = 15;

Returns
Type Description
MaintenanceWindowOrBuilder

getMetadataManagementActivity()

public MetadataManagementActivity getMetadataManagementActivity()

Output only. The metadata management activities of the metastore service.

.google.events.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17;

Returns
Type Description
MetadataManagementActivity

The metadataManagementActivity.

getMetadataManagementActivityOrBuilder()

public MetadataManagementActivityOrBuilder getMetadataManagementActivityOrBuilder()

Output only. The metadata management activities of the metastore service.

.google.events.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17;

Returns
Type Description
MetadataManagementActivityOrBuilder

getMetastoreConfigCase()

public Service.MetastoreConfigCase getMetastoreConfigCase()
Returns
Type Description
Service.MetastoreConfigCase

getName()

public String getName()

Immutable. The relative resource name of the metastore service, in the following format: projects/{project_number}/locations/{location_id}/services/{service_id}.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The relative resource name of the metastore service, in the following format: projects/{project_number}/locations/{location_id}/services/{service_id}.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Immutable. The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form: projects/{project_number}/global/networks/{network_id}.

string network = 7;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Immutable. The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form: projects/{project_number}/global/networks/{network_id}.

string network = 7;

Returns
Type Description
ByteString

The bytes for network.

getNetworkConfig()

public NetworkConfig getNetworkConfig()

The configuration specifying the network settings for the Dataproc Metastore service.

.google.events.cloud.metastore.v1.NetworkConfig network_config = 21;

Returns
Type Description
NetworkConfig

The networkConfig.

getNetworkConfigOrBuilder()

public NetworkConfigOrBuilder getNetworkConfigOrBuilder()

The configuration specifying the network settings for the Dataproc Metastore service.

.google.events.cloud.metastore.v1.NetworkConfig network_config = 21;

Returns
Type Description
NetworkConfigOrBuilder

getParserForType()

public Parser<Service> getParserForType()
Returns
Type Description
Parser<Service>
Overrides

getPort()

public int getPort()

The TCP port at which the metastore service is reached. Default: 9083.

int32 port = 9;

Returns
Type Description
int

The port.

getReleaseChannel()

public Service.ReleaseChannel getReleaseChannel()

Immutable. The release channel of the service. If unspecified, defaults to STABLE.

.google.events.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19;

Returns
Type Description
Service.ReleaseChannel

The releaseChannel.

getReleaseChannelValue()

public int getReleaseChannelValue()

Immutable. The release channel of the service. If unspecified, defaults to STABLE.

.google.events.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19;

Returns
Type Description
int

The enum numeric value on the wire for releaseChannel.

getScalingConfig()

public ScalingConfig getScalingConfig()

Scaling configuration of the metastore service.

.google.events.cloud.metastore.v1.ScalingConfig scaling_config = 24;

Returns
Type Description
ScalingConfig

The scalingConfig.

getScalingConfigOrBuilder()

public ScalingConfigOrBuilder getScalingConfigOrBuilder()

Scaling configuration of the metastore service.

.google.events.cloud.metastore.v1.ScalingConfig scaling_config = 24;

Returns
Type Description
ScalingConfigOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public Service.State getState()

Output only. The current state of the metastore service.

.google.events.cloud.metastore.v1.Service.State state = 10;

Returns
Type Description
Service.State

The state.

getStateMessage()

public String getStateMessage()

Output only. Additional information about the current state of the metastore service, if available.

string state_message = 11;

Returns
Type Description
String

The stateMessage.

getStateMessageBytes()

public ByteString getStateMessageBytes()

Output only. Additional information about the current state of the metastore service, if available.

string state_message = 11;

Returns
Type Description
ByteString

The bytes for stateMessage.

getStateValue()

public int getStateValue()

Output only. The current state of the metastore service.

.google.events.cloud.metastore.v1.Service.State state = 10;

Returns
Type Description
int

The enum numeric value on the wire for state.

getTelemetryConfig()

public TelemetryConfig getTelemetryConfig()

The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.

.google.events.cloud.metastore.v1.TelemetryConfig telemetry_config = 23;

Returns
Type Description
TelemetryConfig

The telemetryConfig.

getTelemetryConfigOrBuilder()

public TelemetryConfigOrBuilder getTelemetryConfigOrBuilder()

The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.

.google.events.cloud.metastore.v1.TelemetryConfig telemetry_config = 23;

Returns
Type Description
TelemetryConfigOrBuilder

getTier()

public Service.Tier getTier()

The tier of the service.

.google.events.cloud.metastore.v1.Service.Tier tier = 13;

Returns
Type Description
Service.Tier

The tier.

getTierValue()

public int getTierValue()

The tier of the service.

.google.events.cloud.metastore.v1.Service.Tier tier = 13;

Returns
Type Description
int

The enum numeric value on the wire for tier.

getUid()

public String getUid()

Output only. The globally unique resource identifier of the metastore service.

string uid = 16;

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. The globally unique resource identifier of the metastore service.

string uid = 16;

Returns
Type Description
ByteString

The bytes for uid.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the metastore service was last updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the metastore service was last updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the metastore service was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
boolean

Whether the createTime field is set.

hasEncryptionConfig()

public boolean hasEncryptionConfig()

Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated.

.google.events.cloud.metastore.v1.EncryptionConfig encryption_config = 20;

Returns
Type Description
boolean

Whether the encryptionConfig field is set.

hasHiveMetastoreConfig()

public boolean hasHiveMetastoreConfig()

Configuration information specific to running Hive metastore software as the metastore service.

.google.events.cloud.metastore.v1.HiveMetastoreConfig hive_metastore_config = 5;

Returns
Type Description
boolean

Whether the hiveMetastoreConfig field is set.

hasMaintenanceWindow()

public boolean hasMaintenanceWindow()

The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time. Maintenance window is not needed for services with the SPANNER database type.

.google.events.cloud.metastore.v1.MaintenanceWindow maintenance_window = 15;

Returns
Type Description
boolean

Whether the maintenanceWindow field is set.

hasMetadataManagementActivity()

public boolean hasMetadataManagementActivity()

Output only. The metadata management activities of the metastore service.

.google.events.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17;

Returns
Type Description
boolean

Whether the metadataManagementActivity field is set.

hasNetworkConfig()

public boolean hasNetworkConfig()

The configuration specifying the network settings for the Dataproc Metastore service.

.google.events.cloud.metastore.v1.NetworkConfig network_config = 21;

Returns
Type Description
boolean

Whether the networkConfig field is set.

hasScalingConfig()

public boolean hasScalingConfig()

Scaling configuration of the metastore service.

.google.events.cloud.metastore.v1.ScalingConfig scaling_config = 24;

Returns
Type Description
boolean

Whether the scalingConfig field is set.

hasTelemetryConfig()

public boolean hasTelemetryConfig()

The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.

.google.events.cloud.metastore.v1.TelemetryConfig telemetry_config = 23;

Returns
Type Description
boolean

Whether the telemetryConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the metastore service was last updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Service.Builder newBuilderForType()
Returns
Type Description
Service.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Service.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Service.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Service.Builder toBuilder()
Returns
Type Description
Service.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException