Class CreateRestoreRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateRestoreRequest.Builder>
com.google.cloud.gkebackup.v1.CreateRestoreRequest.Builder
All Implemented Interfaces:
CreateRestoreRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateRestoreRequest

public static final class CreateRestoreRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateRestoreRequest.Builder> implements CreateRestoreRequestOrBuilder
 Request message for CreateRestore.
 
Protobuf type google.cloud.gkebackup.v1.CreateRestoreRequest
  • 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<CreateRestoreRequest.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<CreateRestoreRequest.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<CreateRestoreRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CreateRestoreRequest.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<CreateRestoreRequest.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<CreateRestoreRequest.Builder>
    • mergeFrom

      public CreateRestoreRequest.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<CreateRestoreRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The RestorePlan within which to create the Restore.
       Format: `projects/*/locations/*/restorePlans/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateRestoreRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The RestorePlan within which to create the Restore.
       Format: `projects/*/locations/*/restorePlans/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateRestoreRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateRestoreRequest.Builder setParent(String value)
       Required. The RestorePlan within which to create the Restore.
       Format: `projects/*/locations/*/restorePlans/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateRestoreRequest.Builder clearParent()
       Required. The RestorePlan within which to create the Restore.
       Format: `projects/*/locations/*/restorePlans/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateRestoreRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The RestorePlan within which to create the Restore.
       Format: `projects/*/locations/*/restorePlans/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasRestore

      public boolean hasRestore()
       Required. The restore resource to create.
       
      .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRestore in interface CreateRestoreRequestOrBuilder
      Returns:
      Whether the restore field is set.
    • getRestore

      public Restore getRestore()
       Required. The restore resource to create.
       
      .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRestore in interface CreateRestoreRequestOrBuilder
      Returns:
      The restore.
    • setRestore

      public CreateRestoreRequest.Builder setRestore(Restore value)
       Required. The restore resource to create.
       
      .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
    • setRestore

      public CreateRestoreRequest.Builder setRestore(Restore.Builder builderForValue)
       Required. The restore resource to create.
       
      .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeRestore

      public CreateRestoreRequest.Builder mergeRestore(Restore value)
       Required. The restore resource to create.
       
      .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearRestore

      public CreateRestoreRequest.Builder clearRestore()
       Required. The restore resource to create.
       
      .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRestoreBuilder

      public Restore.Builder getRestoreBuilder()
       Required. The restore resource to create.
       
      .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRestoreOrBuilder

      public RestoreOrBuilder getRestoreOrBuilder()
       Required. The restore resource to create.
       
      .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRestoreOrBuilder in interface CreateRestoreRequestOrBuilder
    • getRestoreId

      public String getRestoreId()
       Required. The client-provided short name for the Restore resource.
       This name must:
      
       - be between 1 and 63 characters long (inclusive)
       - consist of only lower-case ASCII letters, numbers, and dashes
       - start with a lower-case letter
       - end with a lower-case letter or number
       - be unique within the set of Restores in this RestorePlan.
       
      string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRestoreId in interface CreateRestoreRequestOrBuilder
      Returns:
      The restoreId.
    • getRestoreIdBytes

      public com.google.protobuf.ByteString getRestoreIdBytes()
       Required. The client-provided short name for the Restore resource.
       This name must:
      
       - be between 1 and 63 characters long (inclusive)
       - consist of only lower-case ASCII letters, numbers, and dashes
       - start with a lower-case letter
       - end with a lower-case letter or number
       - be unique within the set of Restores in this RestorePlan.
       
      string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRestoreIdBytes in interface CreateRestoreRequestOrBuilder
      Returns:
      The bytes for restoreId.
    • setRestoreId

      public CreateRestoreRequest.Builder setRestoreId(String value)
       Required. The client-provided short name for the Restore resource.
       This name must:
      
       - be between 1 and 63 characters long (inclusive)
       - consist of only lower-case ASCII letters, numbers, and dashes
       - start with a lower-case letter
       - end with a lower-case letter or number
       - be unique within the set of Restores in this RestorePlan.
       
      string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The restoreId to set.
      Returns:
      This builder for chaining.
    • clearRestoreId

      public CreateRestoreRequest.Builder clearRestoreId()
       Required. The client-provided short name for the Restore resource.
       This name must:
      
       - be between 1 and 63 characters long (inclusive)
       - consist of only lower-case ASCII letters, numbers, and dashes
       - start with a lower-case letter
       - end with a lower-case letter or number
       - be unique within the set of Restores in this RestorePlan.
       
      string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setRestoreIdBytes

      public CreateRestoreRequest.Builder setRestoreIdBytes(com.google.protobuf.ByteString value)
       Required. The client-provided short name for the Restore resource.
       This name must:
      
       - be between 1 and 63 characters long (inclusive)
       - consist of only lower-case ASCII letters, numbers, and dashes
       - start with a lower-case letter
       - end with a lower-case letter or number
       - be unique within the set of Restores in this RestorePlan.
       
      string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for restoreId to set.
      Returns:
      This builder for chaining.