Class Service.Builder (2.4.1)

public static final class Service.Builder extends GeneratedMessageV3.Builder<Service.Builder> implements ServiceOrBuilder

A managed metastore service that serves metadata queries.

Protobuf type google.cloud.metastore.v1.Service

Implements

ServiceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Service.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Service.Builder
Overrides

build()

public Service build()
Returns
TypeDescription
Service

buildPartial()

public Service buildPartial()
Returns
TypeDescription
Service

clear()

public Service.Builder clear()
Returns
TypeDescription
Service.Builder
Overrides

clearArtifactGcsUri()

public Service.Builder clearArtifactGcsUri()

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearCreateTime()

public Service.Builder clearCreateTime()

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

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Service.Builder

clearEndpointUri()

public Service.Builder clearEndpointUri()

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

string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Service.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Service.Builder
Overrides

clearHiveMetastoreConfig()

public Service.Builder clearHiveMetastoreConfig()

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

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

Returns
TypeDescription
Service.Builder

clearLabels()

public Service.Builder clearLabels()
Returns
TypeDescription
Service.Builder

clearMaintenanceWindow()

public Service.Builder clearMaintenanceWindow()

The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time.

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

Returns
TypeDescription
Service.Builder

clearMetadataManagementActivity()

public Service.Builder clearMetadataManagementActivity()

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

.google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Service.Builder

clearMetastoreConfig()

public Service.Builder clearMetastoreConfig()
Returns
TypeDescription
Service.Builder

clearName()

public Service.Builder clearName()

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

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearNetwork()

public Service.Builder clearNetwork()

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 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Service.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Service.Builder
Overrides

clearPort()

public Service.Builder clearPort()

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

int32 port = 9;

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearReleaseChannel()

public Service.Builder clearReleaseChannel()

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

.google.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearState()

public Service.Builder clearState()

Output only. The current state of the metastore service.

.google.cloud.metastore.v1.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearStateMessage()

public Service.Builder clearStateMessage()

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

string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearTier()

public Service.Builder clearTier()

The tier of the service.

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

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearUid()

public Service.Builder clearUid()

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

string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearUpdateTime()

public Service.Builder clearUpdateTime()

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

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Service.Builder

clone()

public Service.Builder clone()
Returns
TypeDescription
Service.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

User-defined labels for the metastore service.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

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

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Service getDefaultInstanceForType()
Returns
TypeDescription
Service

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndpointUri()

public String getEndpointUri()

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

string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The endpointUri.

getEndpointUriBytes()

public ByteString getEndpointUriBytes()

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

string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for endpointUri.

getHiveMetastoreConfig()

public HiveMetastoreConfig getHiveMetastoreConfig()

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

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

Returns
TypeDescription
HiveMetastoreConfig

The hiveMetastoreConfig.

getHiveMetastoreConfigBuilder()

public HiveMetastoreConfig.Builder getHiveMetastoreConfigBuilder()

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

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

Returns
TypeDescription
HiveMetastoreConfig.Builder

getHiveMetastoreConfigOrBuilder()

public HiveMetastoreConfigOrBuilder getHiveMetastoreConfigOrBuilder()

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

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

Returns
TypeDescription
HiveMetastoreConfigOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

User-defined labels for the metastore service.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

User-defined labels for the metastore service.

map<string, string> labels = 4;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

User-defined labels for the metastore service.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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.

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

Returns
TypeDescription
MaintenanceWindow

The maintenanceWindow.

getMaintenanceWindowBuilder()

public MaintenanceWindow.Builder getMaintenanceWindowBuilder()

The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time.

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

Returns
TypeDescription
MaintenanceWindow.Builder

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.

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

Returns
TypeDescription
MaintenanceWindowOrBuilder

getMetadataManagementActivity()

public MetadataManagementActivity getMetadataManagementActivity()

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

.google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MetadataManagementActivity

The metadataManagementActivity.

getMetadataManagementActivityBuilder()

public MetadataManagementActivity.Builder getMetadataManagementActivityBuilder()

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

.google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MetadataManagementActivity.Builder

getMetadataManagementActivityOrBuilder()

public MetadataManagementActivityOrBuilder getMetadataManagementActivityOrBuilder()

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

.google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MetadataManagementActivityOrBuilder

getMetastoreConfigCase()

public Service.MetastoreConfigCase getMetastoreConfigCase()
Returns
TypeDescription
Service.MetastoreConfigCase

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

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

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
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 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
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 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for network.

getPort()

public int getPort()

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

int32 port = 9;

Returns
TypeDescription
int

The port.

getReleaseChannel()

public Service.ReleaseChannel getReleaseChannel()

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

.google.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Service.ReleaseChannel

The releaseChannel.

getReleaseChannelValue()

public int getReleaseChannelValue()

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

.google.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
int

The enum numeric value on the wire for releaseChannel.

getState()

public Service.State getState()

Output only. The current state of the metastore service.

.google.cloud.metastore.v1.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for stateMessage.

getStateValue()

public int getStateValue()

Output only. The current state of the metastore service.

.google.cloud.metastore.v1.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTier()

public Service.Tier getTier()

The tier of the service.

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

Returns
TypeDescription
Service.Tier

The tier.

getTierValue()

public int getTierValue()

The tier of the service.

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

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

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

string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

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

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

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

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

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

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasHiveMetastoreConfig()

public boolean hasHiveMetastoreConfig()

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

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

Returns
TypeDescription
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.

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

Returns
TypeDescription
boolean

Whether the maintenanceWindow field is set.

hasMetadataManagementActivity()

public boolean hasMetadataManagementActivity()

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

.google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the metadataManagementActivity field is set.

hasUpdateTime()

public boolean hasUpdateTime()

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

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Service.Builder mergeCreateTime(Timestamp value)

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

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Service.Builder

mergeFrom(Service other)

public Service.Builder mergeFrom(Service other)
Parameter
NameDescription
otherService
Returns
TypeDescription
Service.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Service.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Service.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Service.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Service.Builder
Overrides

mergeHiveMetastoreConfig(HiveMetastoreConfig value)

public Service.Builder mergeHiveMetastoreConfig(HiveMetastoreConfig value)

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

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

Parameter
NameDescription
valueHiveMetastoreConfig
Returns
TypeDescription
Service.Builder

mergeMaintenanceWindow(MaintenanceWindow value)

public Service.Builder mergeMaintenanceWindow(MaintenanceWindow value)

The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time.

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

Parameter
NameDescription
valueMaintenanceWindow
Returns
TypeDescription
Service.Builder

mergeMetadataManagementActivity(MetadataManagementActivity value)

public Service.Builder mergeMetadataManagementActivity(MetadataManagementActivity value)

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

.google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMetadataManagementActivity
Returns
TypeDescription
Service.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Service.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Service.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Service.Builder mergeUpdateTime(Timestamp value)

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

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Service.Builder

putAllLabels(Map<String,String> values)

public Service.Builder putAllLabels(Map<String,String> values)

User-defined labels for the metastore service.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Service.Builder

putLabels(String key, String value)

public Service.Builder putLabels(String key, String value)

User-defined labels for the metastore service.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Service.Builder

removeLabels(String key)

public Service.Builder removeLabels(String key)

User-defined labels for the metastore service.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Service.Builder

setArtifactGcsUri(String value)

public Service.Builder setArtifactGcsUri(String value)

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The artifactGcsUri to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setArtifactGcsUriBytes(ByteString value)

public Service.Builder setArtifactGcsUriBytes(ByteString value)

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for artifactGcsUri to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Service.Builder setCreateTime(Timestamp value)

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

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Service.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Service.Builder setCreateTime(Timestamp.Builder builderForValue)

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

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Service.Builder

setEndpointUri(String value)

public Service.Builder setEndpointUri(String value)

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

string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The endpointUri to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setEndpointUriBytes(ByteString value)

public Service.Builder setEndpointUriBytes(ByteString value)

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

string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for endpointUri to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Service.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Service.Builder
Overrides

setHiveMetastoreConfig(HiveMetastoreConfig value)

public Service.Builder setHiveMetastoreConfig(HiveMetastoreConfig value)

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

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

Parameter
NameDescription
valueHiveMetastoreConfig
Returns
TypeDescription
Service.Builder

setHiveMetastoreConfig(HiveMetastoreConfig.Builder builderForValue)

public Service.Builder setHiveMetastoreConfig(HiveMetastoreConfig.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueHiveMetastoreConfig.Builder
Returns
TypeDescription
Service.Builder

setMaintenanceWindow(MaintenanceWindow value)

public Service.Builder setMaintenanceWindow(MaintenanceWindow value)

The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time.

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

Parameter
NameDescription
valueMaintenanceWindow
Returns
TypeDescription
Service.Builder

setMaintenanceWindow(MaintenanceWindow.Builder builderForValue)

public Service.Builder setMaintenanceWindow(MaintenanceWindow.Builder builderForValue)

The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time.

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

Parameter
NameDescription
builderForValueMaintenanceWindow.Builder
Returns
TypeDescription
Service.Builder

setMetadataManagementActivity(MetadataManagementActivity value)

public Service.Builder setMetadataManagementActivity(MetadataManagementActivity value)

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

.google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMetadataManagementActivity
Returns
TypeDescription
Service.Builder

setMetadataManagementActivity(MetadataManagementActivity.Builder builderForValue)

public Service.Builder setMetadataManagementActivity(MetadataManagementActivity.Builder builderForValue)

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

.google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueMetadataManagementActivity.Builder
Returns
TypeDescription
Service.Builder

setName(String value)

public Service.Builder setName(String value)

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

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Service.Builder setNameBytes(ByteString value)

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

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setNetwork(String value)

public Service.Builder setNetwork(String value)

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 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The network to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Service.Builder setNetworkBytes(ByteString value)

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 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setPort(int value)

public Service.Builder setPort(int value)

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

int32 port = 9;

Parameter
NameDescription
valueint

The port to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setReleaseChannel(Service.ReleaseChannel value)

public Service.Builder setReleaseChannel(Service.ReleaseChannel value)

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

.google.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueService.ReleaseChannel

The releaseChannel to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setReleaseChannelValue(int value)

public Service.Builder setReleaseChannelValue(int value)

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

.google.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueint

The enum numeric value on the wire for releaseChannel to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Service.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Service.Builder
Overrides

setState(Service.State value)

public Service.Builder setState(Service.State value)

Output only. The current state of the metastore service.

.google.cloud.metastore.v1.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueService.State

The state to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setStateMessage(String value)

public Service.Builder setStateMessage(String value)

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

string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The stateMessage to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setStateMessageBytes(ByteString value)

public Service.Builder setStateMessageBytes(ByteString value)

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

string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for stateMessage to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setStateValue(int value)

public Service.Builder setStateValue(int value)

Output only. The current state of the metastore service.

.google.cloud.metastore.v1.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setTier(Service.Tier value)

public Service.Builder setTier(Service.Tier value)

The tier of the service.

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

Parameter
NameDescription
valueService.Tier

The tier to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setTierValue(int value)

public Service.Builder setTierValue(int value)

The tier of the service.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for tier to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setUid(String value)

public Service.Builder setUid(String value)

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

string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Service.Builder setUidBytes(ByteString value)

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

string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Service.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Service.Builder
Overrides

setUpdateTime(Timestamp value)

public Service.Builder setUpdateTime(Timestamp value)

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

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Service.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Service.Builder setUpdateTime(Timestamp.Builder builderForValue)

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

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Service.Builder