Class CreateRestoreRequest.Builder (0.12.0)

public static final class CreateRestoreRequest.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateRestoreRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateRestoreRequest.Builder
Overrides

build()

public CreateRestoreRequest build()
Returns
TypeDescription
CreateRestoreRequest

buildPartial()

public CreateRestoreRequest buildPartial()
Returns
TypeDescription
CreateRestoreRequest

clear()

public CreateRestoreRequest.Builder clear()
Returns
TypeDescription
CreateRestoreRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateRestoreRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateRestoreRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateRestoreRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CreateRestoreRequest.Builder

This builder for chaining.

clone()

public CreateRestoreRequest.Builder clone()
Returns
TypeDescription
CreateRestoreRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateRestoreRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateRestoreRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RestoreOrBuilder

hasRestore()

public boolean hasRestore()

Required. The restore resource to create.

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

Returns
TypeDescription
boolean

Whether the restore field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateRestoreRequest other)

public CreateRestoreRequest.Builder mergeFrom(CreateRestoreRequest other)
Parameter
NameDescription
otherCreateRestoreRequest
Returns
TypeDescription
CreateRestoreRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateRestoreRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateRestoreRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateRestoreRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRestore
Returns
TypeDescription
CreateRestoreRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateRestoreRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateRestoreRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateRestoreRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateRestoreRequest.Builder
Overrides

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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateRestoreRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateRestoreRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateRestoreRequest.Builder
Overrides

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
NameDescription
valueRestore
Returns
TypeDescription
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
NameDescription
builderForValueRestore.Builder
Returns
TypeDescription
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
NameDescription
valueString

The restoreId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for restoreId to set.

Returns
TypeDescription
CreateRestoreRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateRestoreRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateRestoreRequest.Builder
Overrides