Class UpdateRestoreRequest.Builder

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

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

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

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

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

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

      public UpdateRestoreRequest.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<UpdateRestoreRequest.Builder>
      Throws:
      IOException
    • hasRestore

      public boolean hasRestore()
       Required. A new version of the Restore resource that contains updated
       fields. This may be sparsely populated if an `update_mask` is provided.
       
      .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRestore in interface UpdateRestoreRequestOrBuilder
      Returns:
      Whether the restore field is set.
    • getRestore

      public Restore getRestore()
       Required. A new version of the Restore resource that contains updated
       fields. This may be sparsely populated if an `update_mask` is provided.
       
      .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRestore in interface UpdateRestoreRequestOrBuilder
      Returns:
      The restore.
    • setRestore

      public UpdateRestoreRequest.Builder setRestore(Restore value)
       Required. A new version of the Restore resource that contains updated
       fields. This may be sparsely populated if an `update_mask` is provided.
       
      .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED];
    • setRestore

      public UpdateRestoreRequest.Builder setRestore(Restore.Builder builderForValue)
       Required. A new version of the Restore resource that contains updated
       fields. This may be sparsely populated if an `update_mask` is provided.
       
      .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeRestore

      public UpdateRestoreRequest.Builder mergeRestore(Restore value)
       Required. A new version of the Restore resource that contains updated
       fields. This may be sparsely populated if an `update_mask` is provided.
       
      .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearRestore

      public UpdateRestoreRequest.Builder clearRestore()
       Required. A new version of the Restore resource that contains updated
       fields. This may be sparsely populated if an `update_mask` is provided.
       
      .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED];
    • getRestoreBuilder

      public Restore.Builder getRestoreBuilder()
       Required. A new version of the Restore resource that contains updated
       fields. This may be sparsely populated if an `update_mask` is provided.
       
      .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED];
    • getRestoreOrBuilder

      public RestoreOrBuilder getRestoreOrBuilder()
       Required. A new version of the Restore resource that contains updated
       fields. This may be sparsely populated if an `update_mask` is provided.
       
      .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRestoreOrBuilder in interface UpdateRestoreRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Optional. This is used to specify the fields to be overwritten in the
       Restore targeted for update. The values for each of these
       updated fields will be taken from the `restore` provided
       with this request. Field names are relative to the root of the resource.
       If no `update_mask` is provided, all fields in `restore` will be
       written to the target Restore resource.
       Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
       and are not used to update the target Restore.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUpdateMask in interface UpdateRestoreRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Optional. This is used to specify the fields to be overwritten in the
       Restore targeted for update. The values for each of these
       updated fields will be taken from the `restore` provided
       with this request. Field names are relative to the root of the resource.
       If no `update_mask` is provided, all fields in `restore` will be
       written to the target Restore resource.
       Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
       and are not used to update the target Restore.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMask in interface UpdateRestoreRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateRestoreRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Optional. This is used to specify the fields to be overwritten in the
       Restore targeted for update. The values for each of these
       updated fields will be taken from the `restore` provided
       with this request. Field names are relative to the root of the resource.
       If no `update_mask` is provided, all fields in `restore` will be
       written to the target Restore resource.
       Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
       and are not used to update the target Restore.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setUpdateMask

      public UpdateRestoreRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Optional. This is used to specify the fields to be overwritten in the
       Restore targeted for update. The values for each of these
       updated fields will be taken from the `restore` provided
       with this request. Field names are relative to the root of the resource.
       If no `update_mask` is provided, all fields in `restore` will be
       written to the target Restore resource.
       Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
       and are not used to update the target Restore.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUpdateMask

      public UpdateRestoreRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Optional. This is used to specify the fields to be overwritten in the
       Restore targeted for update. The values for each of these
       updated fields will be taken from the `restore` provided
       with this request. Field names are relative to the root of the resource.
       If no `update_mask` is provided, all fields in `restore` will be
       written to the target Restore resource.
       Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
       and are not used to update the target Restore.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearUpdateMask

      public UpdateRestoreRequest.Builder clearUpdateMask()
       Optional. This is used to specify the fields to be overwritten in the
       Restore targeted for update. The values for each of these
       updated fields will be taken from the `restore` provided
       with this request. Field names are relative to the root of the resource.
       If no `update_mask` is provided, all fields in `restore` will be
       written to the target Restore resource.
       Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
       and are not used to update the target Restore.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Optional. This is used to specify the fields to be overwritten in the
       Restore targeted for update. The values for each of these
       updated fields will be taken from the `restore` provided
       with this request. Field names are relative to the root of the resource.
       If no `update_mask` is provided, all fields in `restore` will be
       written to the target Restore resource.
       Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
       and are not used to update the target Restore.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Optional. This is used to specify the fields to be overwritten in the
       Restore targeted for update. The values for each of these
       updated fields will be taken from the `restore` provided
       with this request. Field names are relative to the root of the resource.
       If no `update_mask` is provided, all fields in `restore` will be
       written to the target Restore resource.
       Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
       and are not used to update the target Restore.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateRestoreRequestOrBuilder