Class 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.v1alpha.DataprocMetastore.ExportMetadata].
     
    Protobuf type google.cloud.metastore.v1alpha.ExportMetadataRequest
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
      • clear

        public ExportMetadataRequest.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
      • getDefaultInstanceForType

        public ExportMetadataRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ExportMetadataRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ExportMetadataRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ExportMetadataRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
      • clearField

        public ExportMetadataRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
      • clearOneof

        public ExportMetadataRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
      • addRepeatedField

        public ExportMetadataRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportMetadataRequest.Builder>
        Throws:
        IOException
      • 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 interface ExportMetadataRequestOrBuilder
        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 interface ExportMetadataRequestOrBuilder
        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 interface ExportMetadataRequestOrBuilder
        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 interface ExportMetadataRequestOrBuilder
        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 interface ExportMetadataRequestOrBuilder
        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 interface ExportMetadataRequestOrBuilder
        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 interface ExportMetadataRequestOrBuilder
        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.v1alpha.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDatabaseDumpTypeValue in interface ExportMetadataRequestOrBuilder
        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.v1alpha.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.v1alpha.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDatabaseDumpType in interface ExportMetadataRequestOrBuilder
        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.v1alpha.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.v1alpha.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>
      • mergeUnknownFields

        public final ExportMetadataRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExportMetadataRequest.Builder>