Class ExportMetadataRequest.Builder (2.37.0)

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

Request message for DataprocMetastore.ExportMetadata.

Protobuf type google.cloud.metastore.v1alpha.ExportMetadataRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExportMetadataRequest build()
Returns
TypeDescription
ExportMetadataRequest

buildPartial()

public ExportMetadataRequest buildPartial()
Returns
TypeDescription
ExportMetadataRequest

clear()

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

clearDatabaseDumpType()

public ExportMetadataRequest.Builder clearDatabaseDumpType()

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

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

Returns
TypeDescription
ExportMetadataRequest.Builder

This builder for chaining.

clearDestination()

public ExportMetadataRequest.Builder clearDestination()
Returns
TypeDescription
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
TypeDescription
ExportMetadataRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDatabaseDumpType()

public DatabaseDumpSpec.Type getDatabaseDumpType()

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

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

Returns
TypeDescription
DatabaseDumpSpec.Type

The databaseDumpType.

getDatabaseDumpTypeValue()

public int getDatabaseDumpTypeValue()

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

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

Returns
TypeDescription
int

The enum numeric value on the wire for databaseDumpType.

getDefaultInstanceForType()

public ExportMetadataRequest getDefaultInstanceForType()
Returns
TypeDescription
ExportMetadataRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationCase()

public ExportMetadataRequest.DestinationCase getDestinationCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the destinationGcsFolder field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExportMetadataRequest other)

public ExportMetadataRequest.Builder mergeFrom(ExportMetadataRequest other)
Parameter
NameDescription
otherExportMetadataRequest
Returns
TypeDescription
ExportMetadataRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExportMetadataRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1alpha.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDatabaseDumpSpec.Type

The databaseDumpType to set.

Returns
TypeDescription
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.v1alpha.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

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

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

The destinationGcsFolder to set.

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

The bytes for destinationGcsFolder to set.

Returns
TypeDescription
ExportMetadataRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ExportMetadataRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The requestId to set.

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

The bytes for requestId to set.

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

The service to set.

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

The bytes for service to set.

Returns
TypeDescription
ExportMetadataRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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