Class CreateBackupPlanRequest.Builder (0.53.0)

public static final class CreateBackupPlanRequest.Builder extends GeneratedMessageV3.Builder<CreateBackupPlanRequest.Builder> implements CreateBackupPlanRequestOrBuilder

Request message for CreateBackupPlan.

Protobuf type google.cloud.gkebackup.v1.CreateBackupPlanRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateBackupPlanRequest build()
Returns
Type Description
CreateBackupPlanRequest

buildPartial()

public CreateBackupPlanRequest buildPartial()
Returns
Type Description
CreateBackupPlanRequest

clear()

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

clearBackupPlan()

public CreateBackupPlanRequest.Builder clearBackupPlan()

Required. The BackupPlan resource object to create.

.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateBackupPlanRequest.Builder

clearBackupPlanId()

public CreateBackupPlanRequest.Builder clearBackupPlanId()

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

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

Returns
Type Description
CreateBackupPlanRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateBackupPlanRequest.Builder clearParent()

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

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

Returns
Type Description
CreateBackupPlanRequest.Builder

This builder for chaining.

clone()

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

getBackupPlan()

public BackupPlan getBackupPlan()

Required. The BackupPlan resource object to create.

.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupPlan

The backupPlan.

getBackupPlanBuilder()

public BackupPlan.Builder getBackupPlanBuilder()

Required. The BackupPlan resource object to create.

.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupPlan.Builder

getBackupPlanId()

public String getBackupPlanId()

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

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

Returns
Type Description
String

The backupPlanId.

getBackupPlanIdBytes()

public ByteString getBackupPlanIdBytes()

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

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

Returns
Type Description
ByteString

The bytes for backupPlanId.

getBackupPlanOrBuilder()

public BackupPlanOrBuilder getBackupPlanOrBuilder()

Required. The BackupPlan resource object to create.

.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupPlanOrBuilder

getDefaultInstanceForType()

public CreateBackupPlanRequest getDefaultInstanceForType()
Returns
Type Description
CreateBackupPlanRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The location within which to create the BackupPlan. 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 BackupPlan. Format: projects/*/locations/*

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

Returns
Type Description
ByteString

The bytes for parent.

hasBackupPlan()

public boolean hasBackupPlan()

Required. The BackupPlan resource object to create.

.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the backupPlan field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBackupPlan(BackupPlan value)

public CreateBackupPlanRequest.Builder mergeBackupPlan(BackupPlan value)

Required. The BackupPlan resource object to create.

.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BackupPlan
Returns
Type Description
CreateBackupPlanRequest.Builder

mergeFrom(CreateBackupPlanRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBackupPlan(BackupPlan value)

public CreateBackupPlanRequest.Builder setBackupPlan(BackupPlan value)

Required. The BackupPlan resource object to create.

.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BackupPlan
Returns
Type Description
CreateBackupPlanRequest.Builder

setBackupPlan(BackupPlan.Builder builderForValue)

public CreateBackupPlanRequest.Builder setBackupPlan(BackupPlan.Builder builderForValue)

Required. The BackupPlan resource object to create.

.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue BackupPlan.Builder
Returns
Type Description
CreateBackupPlanRequest.Builder

setBackupPlanId(String value)

public CreateBackupPlanRequest.Builder setBackupPlanId(String value)

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

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

Parameter
Name Description
value String

The backupPlanId to set.

Returns
Type Description
CreateBackupPlanRequest.Builder

This builder for chaining.

setBackupPlanIdBytes(ByteString value)

public CreateBackupPlanRequest.Builder setBackupPlanIdBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for backupPlanId to set.

Returns
Type Description
CreateBackupPlanRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateBackupPlanRequest.Builder setParent(String value)

Required. The location within which to create the BackupPlan. 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
CreateBackupPlanRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateBackupPlanRequest.Builder setParentBytes(ByteString value)

Required. The location within which to create the BackupPlan. 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
CreateBackupPlanRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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