Class AutoProtectionDetails (0.58.0)

public final class AutoProtectionDetails extends GeneratedMessage implements AutoProtectionDetailsOrBuilder

AutoProtectionDetails contains the protection details of a resource from the current binding's perspective.

Protobuf type google.cloud.backupdr.v1beta.AutoProtectionDetails

Static Fields

BACKUP_PLAN_ASSOCIATION_FIELD_NUMBER

public static final int BACKUP_PLAN_ASSOCIATION_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_FIELD_NUMBER

public static final int DATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AutoProtectionDetails getDefaultInstance()
Returns
Type Description
AutoProtectionDetails

getDescriptor()

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

newBuilder()

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

newBuilder(AutoProtectionDetails prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBackupPlanAssociation()

public String getBackupPlanAssociation()

Output only. Resource name of backup plan association linked to the resource, if any. Format: projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}

string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backupPlanAssociation.

getBackupPlanAssociationBytes()

public ByteString getBackupPlanAssociationBytes()

Output only. Resource name of backup plan association linked to the resource, if any. Format: projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}

string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backupPlanAssociation.

getDataSource()

public String getDataSource()

Output only. Resource name of the datasource linked to the resource, if any. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}

string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The dataSource.

getDataSourceBytes()

public ByteString getDataSourceBytes()

Output only. Resource name of the datasource linked to the resource, if any. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}

string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for dataSource.

getDefaultInstanceForType()

public AutoProtectionDetails getDefaultInstanceForType()
Returns
Type Description
AutoProtectionDetails

getError()

public Status getError()

Output only. Error during last sync for protection/unprotection, if any.

.google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The error.

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Output only. Error during last sync for protection/unprotection, if any.

.google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getParserForType()

public Parser<AutoProtectionDetails> getParserForType()
Returns
Type Description
Parser<AutoProtectionDetails>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public AutoProtectionDetails.State getState()

Output only. Protection state of the resource from the current binding's perspective. Output only.

.google.cloud.backupdr.v1beta.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AutoProtectionDetails.State

The state.

getStateValue()

public int getStateValue()

Output only. Protection state of the resource from the current binding's perspective. Output only.

.google.cloud.backupdr.v1beta.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasError()

public boolean hasError()

Output only. Error during last sync for protection/unprotection, if any.

.google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the error field is set.

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 AutoProtectionDetails.Builder newBuilderForType()
Returns
Type Description
AutoProtectionDetails.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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