Class BackupPlanDetail.Builder (0.58.0)

public static final class BackupPlanDetail.Builder extends GeneratedMessage.Builder<BackupPlanDetail.Builder> implements BackupPlanDetailOrBuilder

BackupPlanDetail defines configuration of protection.

Protobuf type google.cloud.backupdr.v1beta.BackupPlanDetail

Static Methods

getDescriptor()

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

Methods

build()

public BackupPlanDetail build()
Returns
Type Description
BackupPlanDetail

buildPartial()

public BackupPlanDetail buildPartial()
Returns
Type Description
BackupPlanDetail

clear()

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

clearBackupPlan()

public BackupPlanDetail.Builder clearBackupPlan()

Required. The resource name of the BackupPlan to apply to resources that match the policy's criteria. This backup plan must be in the same location as AutoProtectionPolicy. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
BackupPlanDetail.Builder

This builder for chaining.

clearResourceType()

public BackupPlanDetail.Builder clearResourceType()

Required. The type of resource that this policy will automatically protect. For MVP, compute.googleapis.com/Instance and compute.googleapis.com/Disk are supported.

string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupPlanDetail.Builder

This builder for chaining.

getBackupPlan()

public String getBackupPlan()

Required. The resource name of the BackupPlan to apply to resources that match the policy's criteria. This backup plan must be in the same location as AutoProtectionPolicy. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backupPlan.

getBackupPlanBytes()

public ByteString getBackupPlanBytes()

Required. The resource name of the BackupPlan to apply to resources that match the policy's criteria. This backup plan must be in the same location as AutoProtectionPolicy. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backupPlan.

getDefaultInstanceForType()

public BackupPlanDetail getDefaultInstanceForType()
Returns
Type Description
BackupPlanDetail

getDescriptorForType()

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

getResourceType()

public String getResourceType()

Required. The type of resource that this policy will automatically protect. For MVP, compute.googleapis.com/Instance and compute.googleapis.com/Disk are supported.

string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

Required. The type of resource that this policy will automatically protect. For MVP, compute.googleapis.com/Instance and compute.googleapis.com/Disk are supported.

string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for resourceType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupPlanDetail other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBackupPlan(String value)

public BackupPlanDetail.Builder setBackupPlan(String value)

Required. The resource name of the BackupPlan to apply to resources that match the policy's criteria. This backup plan must be in the same location as AutoProtectionPolicy. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The backupPlan to set.

Returns
Type Description
BackupPlanDetail.Builder

This builder for chaining.

setBackupPlanBytes(ByteString value)

public BackupPlanDetail.Builder setBackupPlanBytes(ByteString value)

Required. The resource name of the BackupPlan to apply to resources that match the policy's criteria. This backup plan must be in the same location as AutoProtectionPolicy. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for backupPlan to set.

Returns
Type Description
BackupPlanDetail.Builder

This builder for chaining.

setResourceType(String value)

public BackupPlanDetail.Builder setResourceType(String value)

Required. The type of resource that this policy will automatically protect. For MVP, compute.googleapis.com/Instance and compute.googleapis.com/Disk are supported.

string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The resourceType to set.

Returns
Type Description
BackupPlanDetail.Builder

This builder for chaining.

setResourceTypeBytes(ByteString value)

public BackupPlanDetail.Builder setResourceTypeBytes(ByteString value)

Required. The type of resource that this policy will automatically protect. For MVP, compute.googleapis.com/Instance and compute.googleapis.com/Disk are supported.

string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for resourceType to set.

Returns
Type Description
BackupPlanDetail.Builder

This builder for chaining.