Class UpdateRestoreRequest.Builder (0.82.0)

public static final class UpdateRestoreRequest.Builder extends GeneratedMessage.Builder<UpdateRestoreRequest.Builder> implements UpdateRestoreRequestOrBuilder

Request message for UpdateRestore.

Protobuf type google.cloud.gkebackup.v1.UpdateRestoreRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public UpdateRestoreRequest build()
Returns
Type Description
UpdateRestoreRequest

buildPartial()

public UpdateRestoreRequest buildPartial()
Returns
Type Description
UpdateRestoreRequest

clear()

public UpdateRestoreRequest.Builder clear()
Returns
Type Description
UpdateRestoreRequest.Builder
Overrides

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];

Returns
Type Description
UpdateRestoreRequest.Builder

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];

Returns
Type Description
UpdateRestoreRequest.Builder

getDefaultInstanceForType()

public UpdateRestoreRequest getDefaultInstanceForType()
Returns
Type Description
UpdateRestoreRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
Restore

The restore.

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];

Returns
Type Description
Restore.Builder

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];

Returns
Type Description
RestoreOrBuilder

getUpdateMask()

public 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];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public 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];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public 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];

Returns
Type Description
FieldMaskOrBuilder

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];

Returns
Type Description
boolean

Whether the restore field is set.

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];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateRestoreRequest other)

public UpdateRestoreRequest.Builder mergeFrom(UpdateRestoreRequest other)
Parameter
Name Description
other UpdateRestoreRequest
Returns
Type Description
UpdateRestoreRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateRestoreRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateRestoreRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateRestoreRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateRestoreRequest.Builder
Overrides

mergeRestore(Restore value)

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];

Parameter
Name Description
value Restore
Returns
Type Description
UpdateRestoreRequest.Builder

mergeUpdateMask(FieldMask value)

public UpdateRestoreRequest.Builder mergeUpdateMask(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];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateRestoreRequest.Builder

setRestore(Restore value)

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];

Parameter
Name Description
value Restore
Returns
Type Description
UpdateRestoreRequest.Builder

setRestore(Restore.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Restore.Builder
Returns
Type Description
UpdateRestoreRequest.Builder

setUpdateMask(FieldMask value)

public UpdateRestoreRequest.Builder setUpdateMask(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];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateRestoreRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateRestoreRequest.Builder setUpdateMask(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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateRestoreRequest.Builder