Class ExportMetadataRequest.Builder (2.47.0)

public static final class ExportMetadataRequest.Builder extends GeneratedMessageV3.Builder<ExportMetadataRequest.Builder> implements ExportMetadataRequestOrBuilder

Request message for DataprocMetastore.ExportMetadata.

Protobuf type google.cloud.metastore.v1beta.ExportMetadataRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExportMetadataRequest build()
Returns
Type Description
ExportMetadataRequest

buildPartial()

public ExportMetadataRequest buildPartial()
Returns
Type Description
ExportMetadataRequest

clear()

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

clearDatabaseDumpType()

public ExportMetadataRequest.Builder clearDatabaseDumpType()

Optional. The type of the database dump. If unspecified, defaults to MYSQL.

.google.cloud.metastore.v1beta.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportMetadataRequest.Builder

This builder for chaining.

clearDestination()

public ExportMetadataRequest.Builder clearDestination()
Returns
Type Description
ExportMetadataRequest.Builder

clearDestinationGcsFolder()

public ExportMetadataRequest.Builder clearDestinationGcsFolder()

A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <export_folder> containing exported files will be created below it.

string destination_gcs_folder = 2;

Returns
Type Description
ExportMetadataRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestId()

public ExportMetadataRequest.Builder clearRequestId()

Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

The request ID must be a valid UUID. A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportMetadataRequest.Builder

This builder for chaining.

clearService()

public ExportMetadataRequest.Builder clearService()

Required. The relative resource name of the metastore service to run export, in the following form:

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

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

Returns
Type Description
ExportMetadataRequest.Builder

This builder for chaining.

clone()

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

getDatabaseDumpType()

public DatabaseDumpSpec.Type getDatabaseDumpType()

Optional. The type of the database dump. If unspecified, defaults to MYSQL.

.google.cloud.metastore.v1beta.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DatabaseDumpSpec.Type

The databaseDumpType.

getDatabaseDumpTypeValue()

public int getDatabaseDumpTypeValue()

Optional. The type of the database dump. If unspecified, defaults to MYSQL.

.google.cloud.metastore.v1beta.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for databaseDumpType.

getDefaultInstanceForType()

public ExportMetadataRequest getDefaultInstanceForType()
Returns
Type Description
ExportMetadataRequest

getDescriptorForType()

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

getDestinationCase()

public ExportMetadataRequest.DestinationCase getDestinationCase()
Returns
Type Description
ExportMetadataRequest.DestinationCase

getDestinationGcsFolder()

public String getDestinationGcsFolder()

A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <export_folder> containing exported files will be created below it.

string destination_gcs_folder = 2;

Returns
Type Description
String

The destinationGcsFolder.

getDestinationGcsFolderBytes()

public ByteString getDestinationGcsFolderBytes()

A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <export_folder> containing exported files will be created below it.

string destination_gcs_folder = 2;

Returns
Type Description
ByteString

The bytes for destinationGcsFolder.

getRequestId()

public String getRequestId()

Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

The request ID must be a valid UUID. A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

The request ID must be a valid UUID. A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for requestId.

getService()

public String getService()

Required. The relative resource name of the metastore service to run export, in the following form:

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 run export, in the following form:

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.

hasDestinationGcsFolder()

public boolean hasDestinationGcsFolder()

A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <export_folder> containing exported files will be created below it.

string destination_gcs_folder = 2;

Returns
Type Description
boolean

Whether the destinationGcsFolder field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExportMetadataRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDatabaseDumpType(DatabaseDumpSpec.Type value)

public ExportMetadataRequest.Builder setDatabaseDumpType(DatabaseDumpSpec.Type value)

Optional. The type of the database dump. If unspecified, defaults to MYSQL.

.google.cloud.metastore.v1beta.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DatabaseDumpSpec.Type

The databaseDumpType to set.

Returns
Type Description
ExportMetadataRequest.Builder

This builder for chaining.

setDatabaseDumpTypeValue(int value)

public ExportMetadataRequest.Builder setDatabaseDumpTypeValue(int value)

Optional. The type of the database dump. If unspecified, defaults to MYSQL.

.google.cloud.metastore.v1beta.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
ExportMetadataRequest.Builder

This builder for chaining.

setDestinationGcsFolder(String value)

public ExportMetadataRequest.Builder setDestinationGcsFolder(String value)

A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <export_folder> containing exported files will be created below it.

string destination_gcs_folder = 2;

Parameter
Name Description
value String

The destinationGcsFolder to set.

Returns
Type Description
ExportMetadataRequest.Builder

This builder for chaining.

setDestinationGcsFolderBytes(ByteString value)

public ExportMetadataRequest.Builder setDestinationGcsFolderBytes(ByteString value)

A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <export_folder> containing exported files will be created below it.

string destination_gcs_folder = 2;

Parameter
Name Description
value ByteString

The bytes for destinationGcsFolder to set.

Returns
Type Description
ExportMetadataRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRequestId(String value)

public ExportMetadataRequest.Builder setRequestId(String value)

Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

The request ID must be a valid UUID. A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
ExportMetadataRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public ExportMetadataRequest.Builder setRequestIdBytes(ByteString value)

Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

The request ID must be a valid UUID. A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
ExportMetadataRequest.Builder

This builder for chaining.

setService(String value)

public ExportMetadataRequest.Builder setService(String value)

Required. The relative resource name of the metastore service to run export, in the following form:

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
ExportMetadataRequest.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public ExportMetadataRequest.Builder setServiceBytes(ByteString value)

Required. The relative resource name of the metastore service to run export, in the following form:

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
ExportMetadataRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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