Class CreateRestorePlanRequest.Builder (0.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateRestorePlanRequest build()
Returns
TypeDescription
CreateRestorePlanRequest

buildPartial()

public CreateRestorePlanRequest buildPartial()
Returns
TypeDescription
CreateRestorePlanRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateRestorePlanRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateRestorePlanRequest

getDescriptorForType()

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

Whether the restorePlan field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateRestorePlanRequest other)

public CreateRestorePlanRequest.Builder mergeFrom(CreateRestorePlanRequest other)
Parameter
NameDescription
otherCreateRestorePlanRequest
Returns
TypeDescription
CreateRestorePlanRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateRestorePlanRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRestorePlan
Returns
TypeDescription
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
NameDescription
builderForValueRestorePlan.Builder
Returns
TypeDescription
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
NameDescription
valueString

The restorePlanId to set.

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

The bytes for restorePlanId to set.

Returns
TypeDescription
CreateRestorePlanRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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