Class QueryMetadataRequest.Builder (2.47.0)

public static final class QueryMetadataRequest.Builder extends GeneratedMessageV3.Builder<QueryMetadataRequest.Builder> implements QueryMetadataRequestOrBuilder

Request message for DataprocMetastore.QueryMetadata.

Protobuf type google.cloud.metastore.v1.QueryMetadataRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryMetadataRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueryMetadataRequest.Builder
Overrides

build()

public QueryMetadataRequest build()
Returns
Type Description
QueryMetadataRequest

buildPartial()

public QueryMetadataRequest buildPartial()
Returns
Type Description
QueryMetadataRequest

clear()

public QueryMetadataRequest.Builder clear()
Returns
Type Description
QueryMetadataRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QueryMetadataRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QueryMetadataRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryMetadataRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QueryMetadataRequest.Builder
Overrides

clearQuery()

public QueryMetadataRequest.Builder clearQuery()

Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.

string query = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QueryMetadataRequest.Builder

This builder for chaining.

clearService()

public QueryMetadataRequest.Builder clearService()

Required. The relative resource name of the metastore service to query metadata, in the following format:

projects/{project_id}/locations/{location_id}/services/{service_id}.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
QueryMetadataRequest.Builder

This builder for chaining.

clone()

public QueryMetadataRequest.Builder clone()
Returns
Type Description
QueryMetadataRequest.Builder
Overrides

getDefaultInstanceForType()

public QueryMetadataRequest getDefaultInstanceForType()
Returns
Type Description
QueryMetadataRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getQuery()

public String getQuery()

Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.

string query = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The query.

getQueryBytes()

public ByteString getQueryBytes()

Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.

string query = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for query.

getService()

public String getService()

Required. The relative resource name of the metastore service to query metadata, in the following format:

projects/{project_id}/locations/{location_id}/services/{service_id}.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Required. The relative resource name of the metastore service to query metadata, in the following format:

projects/{project_id}/locations/{location_id}/services/{service_id}.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for service.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueryMetadataRequest other)

public QueryMetadataRequest.Builder mergeFrom(QueryMetadataRequest other)
Parameter
Name Description
other QueryMetadataRequest
Returns
Type Description
QueryMetadataRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueryMetadataRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryMetadataRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QueryMetadataRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QueryMetadataRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryMetadataRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueryMetadataRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public QueryMetadataRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueryMetadataRequest.Builder
Overrides

setQuery(String value)

public QueryMetadataRequest.Builder setQuery(String value)

Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.

string query = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The query to set.

Returns
Type Description
QueryMetadataRequest.Builder

This builder for chaining.

setQueryBytes(ByteString value)

public QueryMetadataRequest.Builder setQueryBytes(ByteString value)

Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.

string query = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for query to set.

Returns
Type Description
QueryMetadataRequest.Builder

This builder for chaining.

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

public QueryMetadataRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QueryMetadataRequest.Builder
Overrides

setService(String value)

public QueryMetadataRequest.Builder setService(String value)

Required. The relative resource name of the metastore service to query metadata, in the following format:

projects/{project_id}/locations/{location_id}/services/{service_id}.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The service to set.

Returns
Type Description
QueryMetadataRequest.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public QueryMetadataRequest.Builder setServiceBytes(ByteString value)

Required. The relative resource name of the metastore service to query metadata, in the following format:

projects/{project_id}/locations/{location_id}/services/{service_id}.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
QueryMetadataRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryMetadataRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueryMetadataRequest.Builder
Overrides