Class AutoProtectionPolicyBinding.Builder (0.58.0)

public static final class AutoProtectionPolicyBinding.Builder extends GeneratedMessage.Builder<AutoProtectionPolicyBinding.Builder> 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 Methods

getDescriptor()

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

Methods

build()

public AutoProtectionPolicyBinding build()
Returns
Type Description
AutoProtectionPolicyBinding

buildPartial()

public AutoProtectionPolicyBinding buildPartial()
Returns
Type Description
AutoProtectionPolicyBinding

clear()

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

clearBindingEvaluationSummary()

public AutoProtectionPolicyBinding.Builder clearBindingEvaluationSummary()

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
AutoProtectionPolicyBinding.Builder

clearCreateTime()

public AutoProtectionPolicyBinding.Builder clearCreateTime()

Output only. The timestamp when the binding was created.

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

Returns
Type Description
AutoProtectionPolicyBinding.Builder

clearDescription()

public AutoProtectionPolicyBinding.Builder clearDescription()

Optional. A description of the binding.

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

Returns
Type Description
AutoProtectionPolicyBinding.Builder

This builder for chaining.

clearEtag()

public AutoProtectionPolicyBinding.Builder clearEtag()

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
AutoProtectionPolicyBinding.Builder

This builder for chaining.

clearName()

public AutoProtectionPolicyBinding.Builder clearName()

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
AutoProtectionPolicyBinding.Builder

This builder for chaining.

clearScope()

public AutoProtectionPolicyBinding.Builder clearScope()

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
AutoProtectionPolicyBinding.Builder

This builder for chaining.

clearState()

public AutoProtectionPolicyBinding.Builder clearState()

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.Builder

This builder for chaining.

clearUpdateTime()

public AutoProtectionPolicyBinding.Builder clearUpdateTime()

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
AutoProtectionPolicyBinding.Builder

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.

getBindingEvaluationSummaryBuilder()

public BindingEvaluationSummary.Builder getBindingEvaluationSummaryBuilder()

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.Builder

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the binding was created.

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

Returns
Type Description
Builder

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.

getDescriptorForType()

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

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.

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.

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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBindingEvaluationSummary(BindingEvaluationSummary value)

public AutoProtectionPolicyBinding.Builder mergeBindingEvaluationSummary(BindingEvaluationSummary value)

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];

Parameter
Name Description
value BindingEvaluationSummary
Returns
Type Description
AutoProtectionPolicyBinding.Builder

mergeCreateTime(Timestamp value)

public AutoProtectionPolicyBinding.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the binding was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AutoProtectionPolicyBinding.Builder

mergeFrom(AutoProtectionPolicyBinding other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public AutoProtectionPolicyBinding.Builder mergeUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AutoProtectionPolicyBinding.Builder

setBindingEvaluationSummary(BindingEvaluationSummary value)

public AutoProtectionPolicyBinding.Builder setBindingEvaluationSummary(BindingEvaluationSummary value)

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];

Parameter
Name Description
value BindingEvaluationSummary
Returns
Type Description
AutoProtectionPolicyBinding.Builder

setBindingEvaluationSummary(BindingEvaluationSummary.Builder builderForValue)

public AutoProtectionPolicyBinding.Builder setBindingEvaluationSummary(BindingEvaluationSummary.Builder builderForValue)

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];

Parameter
Name Description
builderForValue BindingEvaluationSummary.Builder
Returns
Type Description
AutoProtectionPolicyBinding.Builder

setCreateTime(Timestamp value)

public AutoProtectionPolicyBinding.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the binding was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AutoProtectionPolicyBinding.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AutoProtectionPolicyBinding.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the binding was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AutoProtectionPolicyBinding.Builder

setDescription(String value)

public AutoProtectionPolicyBinding.Builder setDescription(String value)

Optional. A description of the binding.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
AutoProtectionPolicyBinding.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AutoProtectionPolicyBinding.Builder setDescriptionBytes(ByteString value)

Optional. A description of the binding.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
AutoProtectionPolicyBinding.Builder

This builder for chaining.

setEtag(String value)

public AutoProtectionPolicyBinding.Builder setEtag(String value)

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];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
AutoProtectionPolicyBinding.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public AutoProtectionPolicyBinding.Builder setEtagBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
AutoProtectionPolicyBinding.Builder

This builder for chaining.

setName(String value)

public AutoProtectionPolicyBinding.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AutoProtectionPolicyBinding.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AutoProtectionPolicyBinding.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AutoProtectionPolicyBinding.Builder

This builder for chaining.

setScope(String value)

public AutoProtectionPolicyBinding.Builder setScope(String value)

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) = { ... }

Parameter
Name Description
value String

The scope to set.

Returns
Type Description
AutoProtectionPolicyBinding.Builder

This builder for chaining.

setScopeBytes(ByteString value)

public AutoProtectionPolicyBinding.Builder setScopeBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for scope to set.

Returns
Type Description
AutoProtectionPolicyBinding.Builder

This builder for chaining.

setState(AutoProtectionPolicyBinding.State value)

public AutoProtectionPolicyBinding.Builder setState(AutoProtectionPolicyBinding.State value)

Output only. The current state of the AutoProtectionPolicyBinding.

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

Parameter
Name Description
value AutoProtectionPolicyBinding.State

The state to set.

Returns
Type Description
AutoProtectionPolicyBinding.Builder

This builder for chaining.

setStateValue(int value)

public AutoProtectionPolicyBinding.Builder setStateValue(int value)

Output only. The current state of the AutoProtectionPolicyBinding.

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

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
AutoProtectionPolicyBinding.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public AutoProtectionPolicyBinding.Builder setUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AutoProtectionPolicyBinding.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public AutoProtectionPolicyBinding.Builder setUpdateTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AutoProtectionPolicyBinding.Builder