Class CreateBackupPlanRequest.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateBackupPlanRequest build()
Returns
TypeDescription
CreateBackupPlanRequest

buildPartial()

public CreateBackupPlanRequest buildPartial()
Returns
TypeDescription
CreateBackupPlanRequest

clear()

public CreateBackupPlanRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateBackupPlanRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public CreateBackupPlanRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
BackupPlanOrBuilder

getDefaultInstanceForType()

public CreateBackupPlanRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateBackupPlanRequest

getDescriptorForType()

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

Whether the backupPlan field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBackupPlan
Returns
TypeDescription
CreateBackupPlanRequest.Builder

mergeFrom(CreateBackupPlanRequest other)

public CreateBackupPlanRequest.Builder mergeFrom(CreateBackupPlanRequest other)
Parameter
NameDescription
otherCreateBackupPlanRequest
Returns
TypeDescription
CreateBackupPlanRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateBackupPlanRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateBackupPlanRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateBackupPlanRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueBackupPlan
Returns
TypeDescription
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
NameDescription
builderForValueBackupPlan.Builder
Returns
TypeDescription
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
NameDescription
valueString

The backupPlanId to set.

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

The bytes for backupPlanId to set.

Returns
TypeDescription
CreateBackupPlanRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateBackupPlanRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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