Class BackupPlanDetail (0.58.0)

public final class BackupPlanDetail extends GeneratedMessage implements BackupPlanDetailOrBuilder

BackupPlanDetail defines configuration of protection.

Protobuf type google.cloud.backupdr.v1beta.BackupPlanDetail

Static Fields

BACKUP_PLAN_FIELD_NUMBER

public static final int BACKUP_PLAN_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BackupPlanDetail getDefaultInstance()
Returns
Type Description
BackupPlanDetail

getDescriptor()

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

newBuilder()

public static BackupPlanDetail.Builder newBuilder()
Returns
Type Description
BackupPlanDetail.Builder

newBuilder(BackupPlanDetail prototype)

public static BackupPlanDetail.Builder newBuilder(BackupPlanDetail prototype)
Parameter
Name Description
prototype BackupPlanDetail
Returns
Type Description
BackupPlanDetail.Builder

parseDelimitedFrom(InputStream input)

public static BackupPlanDetail parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupPlanDetail parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BackupPlanDetail parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackupPlanDetail parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackupPlanDetail parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackupPlanDetail parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackupPlanDetail parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupPlanDetail parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BackupPlanDetail parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupPlanDetail parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BackupPlanDetail parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackupPlanDetail parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanDetail
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BackupPlanDetail> parser()
Returns
Type Description
Parser<BackupPlanDetail>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<BackupPlanDetail> getParserForType()
Returns
Type Description
Parser<BackupPlanDetail>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BackupPlanDetail.Builder newBuilderForType()
Returns
Type Description
BackupPlanDetail.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected BackupPlanDetail.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BackupPlanDetail.Builder
Overrides

toBuilder()

public BackupPlanDetail.Builder toBuilder()
Returns
Type Description
BackupPlanDetail.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException