Class RestoreServiceRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RestoreServiceRequest.Builder>
com.google.cloud.metastore.v1beta.RestoreServiceRequest.Builder
All Implemented Interfaces:
RestoreServiceRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RestoreServiceRequest

public static final class RestoreServiceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RestoreServiceRequest.Builder> implements RestoreServiceRequestOrBuilder
 Request message for [DataprocMetastore.Restore][].
 
Protobuf type google.cloud.metastore.v1beta.RestoreServiceRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RestoreServiceRequest.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.GeneratedMessage.Builder<RestoreServiceRequest.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.GeneratedMessage.Builder<RestoreServiceRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public RestoreServiceRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RestoreServiceRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RestoreServiceRequest.Builder>
    • mergeFrom

      public RestoreServiceRequest.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<RestoreServiceRequest.Builder>
      Throws:
      IOException
    • getService

      public String getService()
       Required. The relative resource name of the metastore service to run
       restore, 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 RestoreServiceRequestOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       Required. The relative resource name of the metastore service to run
       restore, 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 RestoreServiceRequestOrBuilder
      Returns:
      The bytes for service.
    • setService

      public RestoreServiceRequest.Builder setService(String value)
       Required. The relative resource name of the metastore service to run
       restore, 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 RestoreServiceRequest.Builder clearService()
       Required. The relative resource name of the metastore service to run
       restore, 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 RestoreServiceRequest.Builder setServiceBytes(com.google.protobuf.ByteString value)
       Required. The relative resource name of the metastore service to run
       restore, 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.
    • getBackup

      public String getBackup()
       Required. The relative resource name of the metastore service backup to
       restore from, in the following form:
      
       `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
       
      string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getBackup in interface RestoreServiceRequestOrBuilder
      Returns:
      The backup.
    • getBackupBytes

      public com.google.protobuf.ByteString getBackupBytes()
       Required. The relative resource name of the metastore service backup to
       restore from, in the following form:
      
       `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
       
      string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getBackupBytes in interface RestoreServiceRequestOrBuilder
      Returns:
      The bytes for backup.
    • setBackup

      public RestoreServiceRequest.Builder setBackup(String value)
       Required. The relative resource name of the metastore service backup to
       restore from, in the following form:
      
       `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
       
      string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The backup to set.
      Returns:
      This builder for chaining.
    • clearBackup

      public RestoreServiceRequest.Builder clearBackup()
       Required. The relative resource name of the metastore service backup to
       restore from, in the following form:
      
       `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
       
      string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setBackupBytes

      public RestoreServiceRequest.Builder setBackupBytes(com.google.protobuf.ByteString value)
       Required. The relative resource name of the metastore service backup to
       restore from, in the following form:
      
       `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
       
      string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for backup to set.
      Returns:
      This builder for chaining.
    • getRestoreTypeValue

      public int getRestoreTypeValue()
       Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
       
      .google.cloud.metastore.v1beta.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRestoreTypeValue in interface RestoreServiceRequestOrBuilder
      Returns:
      The enum numeric value on the wire for restoreType.
    • setRestoreTypeValue

      public RestoreServiceRequest.Builder setRestoreTypeValue(int value)
       Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
       
      .google.cloud.metastore.v1beta.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for restoreType to set.
      Returns:
      This builder for chaining.
    • getRestoreType

      public Restore.RestoreType getRestoreType()
       Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
       
      .google.cloud.metastore.v1beta.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRestoreType in interface RestoreServiceRequestOrBuilder
      Returns:
      The restoreType.
    • setRestoreType

      public RestoreServiceRequest.Builder setRestoreType(Restore.RestoreType value)
       Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
       
      .google.cloud.metastore.v1beta.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The restoreType to set.
      Returns:
      This builder for chaining.
    • clearRestoreType

      public RestoreServiceRequest.Builder clearRestoreType()
       Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
       
      .google.cloud.metastore.v1beta.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestId in interface RestoreServiceRequestOrBuilder
      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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestIdBytes in interface RestoreServiceRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public RestoreServiceRequest.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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public RestoreServiceRequest.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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public RestoreServiceRequest.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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.