Package com.google.cloud.metastore.v1
Class ExportMetadataRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
- com.google.cloud.metastore.v1.ExportMetadataRequest.Builder
-
- All Implemented Interfaces:
ExportMetadataRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ExportMetadataRequest
public static final class ExportMetadataRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder> implements ExportMetadataRequestOrBuilder
Request message for [DataprocMetastore.ExportMetadata][google.cloud.metastore.v1.DataprocMetastore.ExportMetadata].
Protobuf typegoogle.cloud.metastore.v1.ExportMetadataRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportMetadataRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExportMetadataRequest
build()
ExportMetadataRequest
buildPartial()
ExportMetadataRequest.Builder
clear()
ExportMetadataRequest.Builder
clearDatabaseDumpType()
Optional.ExportMetadataRequest.Builder
clearDestination()
ExportMetadataRequest.Builder
clearDestinationGcsFolder()
A Cloud Storage URI of a folder, in the format `gs://<bucket_name>/<path_inside_bucket>`.ExportMetadataRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ExportMetadataRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ExportMetadataRequest.Builder
clearRequestId()
Optional.ExportMetadataRequest.Builder
clearService()
Required.ExportMetadataRequest.Builder
clone()
DatabaseDumpSpec.Type
getDatabaseDumpType()
Optional.int
getDatabaseDumpTypeValue()
Optional.ExportMetadataRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ExportMetadataRequest.DestinationCase
getDestinationCase()
String
getDestinationGcsFolder()
A Cloud Storage URI of a folder, in the format `gs://<bucket_name>/<path_inside_bucket>`.com.google.protobuf.ByteString
getDestinationGcsFolderBytes()
A Cloud Storage URI of a folder, in the format `gs://<bucket_name>/<path_inside_bucket>`.String
getRequestId()
Optional.com.google.protobuf.ByteString
getRequestIdBytes()
Optional.String
getService()
Required.com.google.protobuf.ByteString
getServiceBytes()
Required.boolean
hasDestinationGcsFolder()
A Cloud Storage URI of a folder, in the format `gs://<bucket_name>/<path_inside_bucket>`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ExportMetadataRequest.Builder
mergeFrom(ExportMetadataRequest other)
ExportMetadataRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ExportMetadataRequest.Builder
mergeFrom(com.google.protobuf.Message other)
ExportMetadataRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ExportMetadataRequest.Builder
setDatabaseDumpType(DatabaseDumpSpec.Type value)
Optional.ExportMetadataRequest.Builder
setDatabaseDumpTypeValue(int value)
Optional.ExportMetadataRequest.Builder
setDestinationGcsFolder(String value)
A Cloud Storage URI of a folder, in the format `gs://<bucket_name>/<path_inside_bucket>`.ExportMetadataRequest.Builder
setDestinationGcsFolderBytes(com.google.protobuf.ByteString value)
A Cloud Storage URI of a folder, in the format `gs://<bucket_name>/<path_inside_bucket>`.ExportMetadataRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExportMetadataRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ExportMetadataRequest.Builder
setRequestId(String value)
Optional.ExportMetadataRequest.Builder
setRequestIdBytes(com.google.protobuf.ByteString value)
Optional.ExportMetadataRequest.Builder
setService(String value)
Required.ExportMetadataRequest.Builder
setServiceBytes(com.google.protobuf.ByteString value)
Required.ExportMetadataRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
clear
public ExportMetadataRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
getDefaultInstanceForType
public ExportMetadataRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExportMetadataRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExportMetadataRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExportMetadataRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
setField
public ExportMetadataRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
clearField
public ExportMetadataRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
clearOneof
public ExportMetadataRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
setRepeatedField
public ExportMetadataRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
addRepeatedField
public ExportMetadataRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
mergeFrom
public ExportMetadataRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExportMetadataRequest.Builder>
-
mergeFrom
public ExportMetadataRequest.Builder mergeFrom(ExportMetadataRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
mergeFrom
public ExportMetadataRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExportMetadataRequest.Builder>
- Throws:
IOException
-
getDestinationCase
public ExportMetadataRequest.DestinationCase getDestinationCase()
- Specified by:
getDestinationCase
in interfaceExportMetadataRequestOrBuilder
-
clearDestination
public ExportMetadataRequest.Builder clearDestination()
-
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;
- Specified by:
hasDestinationGcsFolder
in interfaceExportMetadataRequestOrBuilder
- Returns:
- Whether the destinationGcsFolder field is set.
-
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;
- Specified by:
getDestinationGcsFolder
in interfaceExportMetadataRequestOrBuilder
- Returns:
- The destinationGcsFolder.
-
getDestinationGcsFolderBytes
public com.google.protobuf.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;
- Specified by:
getDestinationGcsFolderBytes
in interfaceExportMetadataRequestOrBuilder
- Returns:
- The bytes for destinationGcsFolder.
-
setDestinationGcsFolder
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;
- Parameters:
value
- The destinationGcsFolder to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDestinationGcsFolderBytes
public ExportMetadataRequest.Builder setDestinationGcsFolderBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for destinationGcsFolder to set.- Returns:
- This builder for chaining.
-
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) = { ... }
- Specified by:
getService
in interfaceExportMetadataRequestOrBuilder
- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.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) = { ... }
- Specified by:
getServiceBytes
in interfaceExportMetadataRequestOrBuilder
- Returns:
- The bytes for service.
-
setService
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) = { ... }
- Parameters:
value
- The service to set.- Returns:
- 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:
- This builder for chaining.
-
setServiceBytes
public ExportMetadataRequest.Builder setServiceBytes(com.google.protobuf.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) = { ... }
- Parameters:
value
- The bytes for service to set.- Returns:
- This builder for chaining.
-
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](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getRequestId
in interfaceExportMetadataRequestOrBuilder
- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.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](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getRequestIdBytes
in interfaceExportMetadataRequestOrBuilder
- Returns:
- The bytes for requestId.
-
setRequestId
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](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The requestId to set.- Returns:
- This builder for chaining.
-
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](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setRequestIdBytes
public ExportMetadataRequest.Builder setRequestIdBytes(com.google.protobuf.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](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
getDatabaseDumpTypeValue
public int getDatabaseDumpTypeValue()
Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.
.google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDatabaseDumpTypeValue
in interfaceExportMetadataRequestOrBuilder
- Returns:
- The enum numeric value on the wire for databaseDumpType.
-
setDatabaseDumpTypeValue
public ExportMetadataRequest.Builder setDatabaseDumpTypeValue(int value)
Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.
.google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The enum numeric value on the wire for databaseDumpType to set.- Returns:
- This builder for chaining.
-
getDatabaseDumpType
public DatabaseDumpSpec.Type getDatabaseDumpType()
Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.
.google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDatabaseDumpType
in interfaceExportMetadataRequestOrBuilder
- Returns:
- The databaseDumpType.
-
setDatabaseDumpType
public ExportMetadataRequest.Builder setDatabaseDumpType(DatabaseDumpSpec.Type value)
Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.
.google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The databaseDumpType to set.- Returns:
- This builder for chaining.
-
clearDatabaseDumpType
public ExportMetadataRequest.Builder clearDatabaseDumpType()
Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.
.google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExportMetadataRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
mergeUnknownFields
public final ExportMetadataRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
-
-