Class AutoProtectionPolicyBinding (0.58.0)

public final class AutoProtectionPolicyBinding extends GeneratedMessage implements AutoProtectionPolicyBindingOrBuilder

An AutoprotectionPolicyBinding (APPA) acts as the bridge between an AutoprotectionPolicy and the scope (Project, Folder, or Organization) where the policy should be applied.

Protobuf type google.cloud.backupdr.v1beta.AutoProtectionPolicyBinding

Static Fields

BINDING_EVALUATION_SUMMARY_FIELD_NUMBER

public static final int BINDING_EVALUATION_SUMMARY_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

SCOPE_FIELD_NUMBER

public static final int SCOPE_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AutoProtectionPolicyBinding getDefaultInstance()
Returns
Type Description
AutoProtectionPolicyBinding

getDescriptor()

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

newBuilder()

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

newBuilder(AutoProtectionPolicyBinding prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBindingEvaluationSummary()

public BindingEvaluationSummary getBindingEvaluationSummary()

Output only. Summaries of the last policy application when the job has run, with one entry per resource type specified in the AutoProtectionPolicy.

.google.cloud.backupdr.v1beta.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BindingEvaluationSummary

The bindingEvaluationSummary.

getBindingEvaluationSummaryOrBuilder()

public BindingEvaluationSummaryOrBuilder getBindingEvaluationSummaryOrBuilder()

Output only. Summaries of the last policy application when the job has run, with one entry per resource type specified in the AutoProtectionPolicy.

.google.cloud.backupdr.v1beta.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BindingEvaluationSummaryOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the binding was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the binding was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public AutoProtectionPolicyBinding getDefaultInstanceForType()
Returns
Type Description
AutoProtectionPolicyBinding

getDescription()

public String getDescription()

Optional. A description of the binding.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A description of the binding.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getEtag()

public String getEtag()

Optional. Output only. The etag for the binding. If this is provided on update, it must match the server's etag.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. Output only. The etag for the binding. If this is provided on update, it must match the server's etag.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

getName()

public String getName()

Identifier. The resource name of the AutoProtectionPolicyBinding. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the AutoProtectionPolicyBinding. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getScope()

public String getScope()

Required. Immutable. Resource Id of target container on which policy will be applied. Format: projects/{project_id}

string scope = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The scope.

getScopeBytes()

public ByteString getScopeBytes()

Required. Immutable. Resource Id of target container on which policy will be applied. Format: projects/{project_id}

string scope = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for scope.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public AutoProtectionPolicyBinding.State getState()

Output only. The current state of the AutoProtectionPolicyBinding.

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

Returns
Type Description
AutoProtectionPolicyBinding.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the AutoProtectionPolicyBinding.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the binding was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the binding was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasBindingEvaluationSummary()

public boolean hasBindingEvaluationSummary()

Output only. Summaries of the last policy application when the job has run, with one entry per resource type specified in the AutoProtectionPolicy.

.google.cloud.backupdr.v1beta.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the bindingEvaluationSummary field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the binding was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the binding was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime 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 AutoProtectionPolicyBinding.Builder newBuilderForType()
Returns
Type Description
AutoProtectionPolicyBinding.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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