Class CreateRestoreRequest.Builder (0.82.0)

public static final class CreateRestoreRequest.Builder extends GeneratedMessage.Builder<CreateRestoreRequest.Builder> implements CreateRestoreRequestOrBuilder

Request message for CreateRestore.

Protobuf type google.cloud.gkebackup.v1.CreateRestoreRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateRestoreRequest build()
Returns
Type Description
CreateRestoreRequest

buildPartial()

public CreateRestoreRequest buildPartial()
Returns
Type Description
CreateRestoreRequest

clear()

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

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
Type Description
CreateRestoreRequest.Builder

This builder for chaining.

clearRestore()

public CreateRestoreRequest.Builder clearRestore()

Required. The restore resource to create.

.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateRestoreRequest.Builder

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
Type Description
CreateRestoreRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateRestoreRequest getDefaultInstanceForType()
Returns
Type Description
CreateRestoreRequest

getDescriptorForType()

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

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) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRestore()

public Restore getRestore()

Required. The restore resource to create.

.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Restore

The restore.

getRestoreBuilder()

public Restore.Builder getRestoreBuilder()

Required. The restore resource to create.

.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Restore.Builder

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

Returns
Type Description
String

The restoreId.

getRestoreIdBytes()

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

Returns
Type Description
ByteString

The bytes for restoreId.

getRestoreOrBuilder()

public RestoreOrBuilder getRestoreOrBuilder()

Required. The restore resource to create.

.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RestoreOrBuilder

hasRestore()

public boolean hasRestore()

Required. The restore resource to create.

.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the restore field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateRestoreRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRestore(Restore value)

public CreateRestoreRequest.Builder mergeRestore(Restore value)

Required. The restore resource to create.

.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Restore
Returns
Type Description
CreateRestoreRequest.Builder

setParent(String value)

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) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateRestoreRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateRestoreRequest.Builder setParentBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateRestoreRequest.Builder

This builder for chaining.

setRestore(Restore value)

public CreateRestoreRequest.Builder setRestore(Restore value)

Required. The restore resource to create.

.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Restore
Returns
Type Description
CreateRestoreRequest.Builder

setRestore(Restore.Builder builderForValue)

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

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

setRestoreId(String value)

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

Parameter
Name Description
value String

The restoreId to set.

Returns
Type Description
CreateRestoreRequest.Builder

This builder for chaining.

setRestoreIdBytes(ByteString value)

public CreateRestoreRequest.Builder setRestoreIdBytes(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];

Parameter
Name Description
value ByteString

The bytes for restoreId to set.

Returns
Type Description
CreateRestoreRequest.Builder

This builder for chaining.