Class QueryMetadataRequest.Builder (2.17.0)

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

Request message for DataprocMetastore.QueryMetadata.

Protobuf type google.cloud.metastore.v1alpha.QueryMetadataRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryMetadataRequest build()
Returns
TypeDescription
QueryMetadataRequest

buildPartial()

public QueryMetadataRequest buildPartial()
Returns
TypeDescription
QueryMetadataRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryMetadataRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
QueryMetadataRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public QueryMetadataRequest getDefaultInstanceForType()
Returns
TypeDescription
QueryMetadataRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for service.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QueryMetadataRequest other)

public QueryMetadataRequest.Builder mergeFrom(QueryMetadataRequest other)
Parameter
NameDescription
otherQueryMetadataRequest
Returns
TypeDescription
QueryMetadataRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public QueryMetadataRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The query to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for query to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The service to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
QueryMetadataRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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