Class CreateRestorePlanRequest.Builder (0.51.0)

public static final class CreateRestorePlanRequest.Builder extends GeneratedMessageV3.Builder<CreateRestorePlanRequest.Builder> implements CreateRestorePlanRequestOrBuilder

Request message for CreateRestorePlan.

Protobuf type google.cloud.gkebackup.v1.CreateRestorePlanRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateRestorePlanRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateRestorePlanRequest.Builder
Overrides

build()

public CreateRestorePlanRequest build()
Returns
Type Description
CreateRestorePlanRequest

buildPartial()

public CreateRestorePlanRequest buildPartial()
Returns
Type Description
CreateRestorePlanRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateRestorePlanRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateRestorePlanRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateRestorePlanRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateRestorePlanRequest.Builder
Overrides

clearParent()

public CreateRestorePlanRequest.Builder clearParent()

Required. The location within which to create the RestorePlan. Format: projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateRestorePlanRequest.Builder

This builder for chaining.

clearRestorePlan()

public CreateRestorePlanRequest.Builder clearRestorePlan()

Required. The RestorePlan resource object to create.

.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateRestorePlanRequest.Builder

clearRestorePlanId()

public CreateRestorePlanRequest.Builder clearRestorePlanId()

Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location

string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateRestorePlanRequest.Builder

This builder for chaining.

clone()

public CreateRestorePlanRequest.Builder clone()
Returns
Type Description
CreateRestorePlanRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateRestorePlanRequest getDefaultInstanceForType()
Returns
Type Description
CreateRestorePlanRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The location within which to create the RestorePlan. Format: projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The location within which to create the RestorePlan. Format: projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRestorePlan()

public RestorePlan getRestorePlan()

Required. The RestorePlan resource object to create.

.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RestorePlan

The restorePlan.

getRestorePlanBuilder()

public RestorePlan.Builder getRestorePlanBuilder()

Required. The RestorePlan resource object to create.

.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RestorePlan.Builder

getRestorePlanId()

public String getRestorePlanId()

Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location

string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The restorePlanId.

getRestorePlanIdBytes()

public ByteString getRestorePlanIdBytes()

Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location

string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for restorePlanId.

getRestorePlanOrBuilder()

public RestorePlanOrBuilder getRestorePlanOrBuilder()

Required. The RestorePlan resource object to create.

.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RestorePlanOrBuilder

hasRestorePlan()

public boolean hasRestorePlan()

Required. The RestorePlan resource object to create.

.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the restorePlan field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateRestorePlanRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRestorePlan(RestorePlan value)

public CreateRestorePlanRequest.Builder mergeRestorePlan(RestorePlan value)

Required. The RestorePlan resource object to create.

.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RestorePlan
Returns
Type Description
CreateRestorePlanRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateRestorePlanRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateRestorePlanRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateRestorePlanRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateRestorePlanRequest.Builder
Overrides

setParent(String value)

public CreateRestorePlanRequest.Builder setParent(String value)

Required. The location within which to create the RestorePlan. Format: projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateRestorePlanRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateRestorePlanRequest.Builder setParentBytes(ByteString value)

Required. The location within which to create the RestorePlan. Format: projects/*/locations/*

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
CreateRestorePlanRequest.Builder

This builder for chaining.

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

public CreateRestorePlanRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateRestorePlanRequest.Builder
Overrides

setRestorePlan(RestorePlan value)

public CreateRestorePlanRequest.Builder setRestorePlan(RestorePlan value)

Required. The RestorePlan resource object to create.

.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RestorePlan
Returns
Type Description
CreateRestorePlanRequest.Builder

setRestorePlan(RestorePlan.Builder builderForValue)

public CreateRestorePlanRequest.Builder setRestorePlan(RestorePlan.Builder builderForValue)

Required. The RestorePlan resource object to create.

.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue RestorePlan.Builder
Returns
Type Description
CreateRestorePlanRequest.Builder

setRestorePlanId(String value)

public CreateRestorePlanRequest.Builder setRestorePlanId(String value)

Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location

string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The restorePlanId to set.

Returns
Type Description
CreateRestorePlanRequest.Builder

This builder for chaining.

setRestorePlanIdBytes(ByteString value)

public CreateRestorePlanRequest.Builder setRestorePlanIdBytes(ByteString value)

Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location

string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for restorePlanId to set.

Returns
Type Description
CreateRestorePlanRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateRestorePlanRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateRestorePlanRequest.Builder
Overrides