public static final class AutoProtectionPolicy.Builder extends GeneratedMessage.Builder<AutoProtectionPolicy.Builder> implements AutoProtectionPolicyOrBuilderAn AutoprotectionPolicy is a policy resource designed to automate backup management, moving from manual per-resource protection to a bulk approach. The policy dynamically discovers and applies a specified backup plan to all eligible resources that match its defined scope and criteria.
Protobuf type google.cloud.backupdr.v1beta.AutoProtectionPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AutoProtectionPolicy.BuilderImplements
AutoProtectionPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllBackupPlanDetails(Iterable<? extends BackupPlanDetail> values)
public AutoProtectionPolicy.Builder addAllBackupPlanDetails(Iterable<? extends BackupPlanDetail> values)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.backupdr.v1beta.BackupPlanDetail> |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
addBackupPlanDetails(BackupPlanDetail value)
public AutoProtectionPolicy.Builder addBackupPlanDetails(BackupPlanDetail value)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupPlanDetail |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
addBackupPlanDetails(BackupPlanDetail.Builder builderForValue)
public AutoProtectionPolicy.Builder addBackupPlanDetails(BackupPlanDetail.Builder builderForValue)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BackupPlanDetail.Builder |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
addBackupPlanDetails(int index, BackupPlanDetail value)
public AutoProtectionPolicy.Builder addBackupPlanDetails(int index, BackupPlanDetail value)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BackupPlanDetail |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
addBackupPlanDetails(int index, BackupPlanDetail.Builder builderForValue)
public AutoProtectionPolicy.Builder addBackupPlanDetails(int index, BackupPlanDetail.Builder builderForValue)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BackupPlanDetail.Builder |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
addBackupPlanDetailsBuilder()
public BackupPlanDetail.Builder addBackupPlanDetailsBuilder()Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BackupPlanDetail.Builder |
|
addBackupPlanDetailsBuilder(int index)
public BackupPlanDetail.Builder addBackupPlanDetailsBuilder(int index)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupPlanDetail.Builder |
|
build()
public AutoProtectionPolicy build()| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy |
|
buildPartial()
public AutoProtectionPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy |
|
clear()
public AutoProtectionPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
clearBackupPlanDetails()
public AutoProtectionPolicy.Builder clearBackupPlanDetails()Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
clearBindingSummary()
public AutoProtectionPolicy.Builder clearBindingSummary()Output only. Summary of total count of different containers covered through this policy.
.google.cloud.backupdr.v1beta.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
clearCreateTime()
public AutoProtectionPolicy.Builder clearCreateTime()Output only. The timestamp when the policy was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
clearCriteria()
public AutoProtectionPolicy.Builder clearCriteria()Required. The criteria for matching resources.
.google.cloud.backupdr.v1beta.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
clearDescription()
public AutoProtectionPolicy.Builder clearDescription()Optional. A description of the policy.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
clearEtag()
public AutoProtectionPolicy.Builder clearEtag()Output only. The etag for the policy. If this is provided on update, it must match the server's etag, otherwise the request will be rejected with an ABORTED error.
string etag = 6;
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
clearName()
public AutoProtectionPolicy.Builder clearName() Identifier. The resource name of the AutoprotectionPolicy.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
clearPolicyEvaluationSummary()
public AutoProtectionPolicy.Builder clearPolicyEvaluationSummary()Output only. Summary of last policy application when job was run per workload type.
.google.cloud.backupdr.v1beta.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
clearState()
public AutoProtectionPolicy.Builder clearState()Output only. The current state of the AutoprotectionPolicy.
.google.cloud.backupdr.v1beta.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
clearUpdateTime()
public AutoProtectionPolicy.Builder clearUpdateTime()Output only. The timestamp when the policy was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
getBackupPlanDetails(int index)
public BackupPlanDetail getBackupPlanDetails(int index)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupPlanDetail |
|
getBackupPlanDetailsBuilder(int index)
public BackupPlanDetail.Builder getBackupPlanDetailsBuilder(int index)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupPlanDetail.Builder |
|
getBackupPlanDetailsBuilderList()
public List<BackupPlanDetail.Builder> getBackupPlanDetailsBuilderList()Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getBackupPlanDetailsCount()
public int getBackupPlanDetailsCount()Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
|
getBackupPlanDetailsList()
public List<BackupPlanDetail> getBackupPlanDetailsList()Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<BackupPlanDetail> |
|
getBackupPlanDetailsOrBuilder(int index)
public BackupPlanDetailOrBuilder getBackupPlanDetailsOrBuilder(int index)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupPlanDetailOrBuilder |
|
getBackupPlanDetailsOrBuilderList()
public List<? extends BackupPlanDetailOrBuilder> getBackupPlanDetailsOrBuilderList()Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.backupdr.v1beta.BackupPlanDetailOrBuilder> |
|
getBindingSummary()
public BindingSummary getBindingSummary()Output only. Summary of total count of different containers covered through this policy.
.google.cloud.backupdr.v1beta.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BindingSummary |
The bindingSummary. |
getBindingSummaryBuilder()
public BindingSummary.Builder getBindingSummaryBuilder()Output only. Summary of total count of different containers covered through this policy.
.google.cloud.backupdr.v1beta.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BindingSummary.Builder |
|
getBindingSummaryOrBuilder()
public BindingSummaryOrBuilder getBindingSummaryOrBuilder()Output only. Summary of total count of different containers covered through this policy.
.google.cloud.backupdr.v1beta.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BindingSummaryOrBuilder |
|
getCreateTime()
public Timestamp getCreateTime()Output only. The timestamp when the policy was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The timestamp when the policy was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The timestamp when the policy was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getCriteria()
public Criteria getCriteria()Required. The criteria for matching resources.
.google.cloud.backupdr.v1beta.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Criteria |
The criteria. |
getCriteriaBuilder()
public Criteria.Builder getCriteriaBuilder()Required. The criteria for matching resources.
.google.cloud.backupdr.v1beta.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Criteria.Builder |
|
getCriteriaOrBuilder()
public CriteriaOrBuilder getCriteriaOrBuilder()Required. The criteria for matching resources.
.google.cloud.backupdr.v1beta.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CriteriaOrBuilder |
|
getDefaultInstanceForType()
public AutoProtectionPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy |
|
getDescription()
public String getDescription()Optional. A description of the policy.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. A description of the policy.
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 |
|
getEtag()
public String getEtag()Output only. The etag for the policy. If this is provided on update, it must match the server's etag, otherwise the request will be rejected with an ABORTED error.
string etag = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The etag. |
getEtagBytes()
public ByteString getEtagBytes()Output only. The etag for the policy. If this is provided on update, it must match the server's etag, otherwise the request will be rejected with an ABORTED error.
string etag = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for etag. |
getName()
public String getName() Identifier. The resource name of the AutoprotectionPolicy.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. The resource name of the AutoprotectionPolicy.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPolicyEvaluationSummary()
public PolicyEvaluationSummary getPolicyEvaluationSummary()Output only. Summary of last policy application when job was run per workload type.
.google.cloud.backupdr.v1beta.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary |
The policyEvaluationSummary. |
getPolicyEvaluationSummaryBuilder()
public PolicyEvaluationSummary.Builder getPolicyEvaluationSummaryBuilder()Output only. Summary of last policy application when job was run per workload type.
.google.cloud.backupdr.v1beta.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary.Builder |
|
getPolicyEvaluationSummaryOrBuilder()
public PolicyEvaluationSummaryOrBuilder getPolicyEvaluationSummaryOrBuilder()Output only. Summary of last policy application when job was run per workload type.
.google.cloud.backupdr.v1beta.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummaryOrBuilder |
|
getState()
public AutoProtectionPolicy.State getState()Output only. The current state of the AutoprotectionPolicy.
.google.cloud.backupdr.v1beta.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.State |
The state. |
getStateValue()
public int getStateValue()Output only. The current state of the AutoprotectionPolicy.
.google.cloud.backupdr.v1beta.AutoProtectionPolicy.State state = 5 [(.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 policy was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. The timestamp when the policy was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The timestamp when the policy was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasBindingSummary()
public boolean hasBindingSummary()Output only. Summary of total count of different containers covered through this policy.
.google.cloud.backupdr.v1beta.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the bindingSummary field is set. |
hasCreateTime()
public boolean hasCreateTime()Output only. The timestamp when the policy was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasCriteria()
public boolean hasCriteria()Required. The criteria for matching resources.
.google.cloud.backupdr.v1beta.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the criteria field is set. |
hasPolicyEvaluationSummary()
public boolean hasPolicyEvaluationSummary()Output only. Summary of last policy application when job was run per workload type.
.google.cloud.backupdr.v1beta.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the policyEvaluationSummary field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. The timestamp when the policy was last updated.
.google.protobuf.Timestamp update_time = 10 [(.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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBindingSummary(BindingSummary value)
public AutoProtectionPolicy.Builder mergeBindingSummary(BindingSummary value)Output only. Summary of total count of different containers covered through this policy.
.google.cloud.backupdr.v1beta.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BindingSummary |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
mergeCreateTime(Timestamp value)
public AutoProtectionPolicy.Builder mergeCreateTime(Timestamp value)Output only. The timestamp when the policy was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
mergeCriteria(Criteria value)
public AutoProtectionPolicy.Builder mergeCriteria(Criteria value)Required. The criteria for matching resources.
.google.cloud.backupdr.v1beta.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Criteria |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
mergeFrom(AutoProtectionPolicy other)
public AutoProtectionPolicy.Builder mergeFrom(AutoProtectionPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
AutoProtectionPolicy |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AutoProtectionPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AutoProtectionPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
mergePolicyEvaluationSummary(PolicyEvaluationSummary value)
public AutoProtectionPolicy.Builder mergePolicyEvaluationSummary(PolicyEvaluationSummary value)Output only. Summary of last policy application when job was run per workload type.
.google.cloud.backupdr.v1beta.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
PolicyEvaluationSummary |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
mergeUpdateTime(Timestamp value)
public AutoProtectionPolicy.Builder mergeUpdateTime(Timestamp value)Output only. The timestamp when the policy was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
removeBackupPlanDetails(int index)
public AutoProtectionPolicy.Builder removeBackupPlanDetails(int index)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setBackupPlanDetails(int index, BackupPlanDetail value)
public AutoProtectionPolicy.Builder setBackupPlanDetails(int index, BackupPlanDetail value)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BackupPlanDetail |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setBackupPlanDetails(int index, BackupPlanDetail.Builder builderForValue)
public AutoProtectionPolicy.Builder setBackupPlanDetails(int index, BackupPlanDetail.Builder builderForValue)Required. The backup plan details for matching resources.
repeated .google.cloud.backupdr.v1beta.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BackupPlanDetail.Builder |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setBindingSummary(BindingSummary value)
public AutoProtectionPolicy.Builder setBindingSummary(BindingSummary value)Output only. Summary of total count of different containers covered through this policy.
.google.cloud.backupdr.v1beta.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BindingSummary |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setBindingSummary(BindingSummary.Builder builderForValue)
public AutoProtectionPolicy.Builder setBindingSummary(BindingSummary.Builder builderForValue)Output only. Summary of total count of different containers covered through this policy.
.google.cloud.backupdr.v1beta.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BindingSummary.Builder |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setCreateTime(Timestamp value)
public AutoProtectionPolicy.Builder setCreateTime(Timestamp value)Output only. The timestamp when the policy was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public AutoProtectionPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The timestamp when the policy was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setCriteria(Criteria value)
public AutoProtectionPolicy.Builder setCriteria(Criteria value)Required. The criteria for matching resources.
.google.cloud.backupdr.v1beta.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Criteria |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setCriteria(Criteria.Builder builderForValue)
public AutoProtectionPolicy.Builder setCriteria(Criteria.Builder builderForValue)Required. The criteria for matching resources.
.google.cloud.backupdr.v1beta.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Criteria.Builder |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setDescription(String value)
public AutoProtectionPolicy.Builder setDescription(String value)Optional. A description of the policy.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public AutoProtectionPolicy.Builder setDescriptionBytes(ByteString value)Optional. A description of the policy.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
setEtag(String value)
public AutoProtectionPolicy.Builder setEtag(String value)Output only. The etag for the policy. If this is provided on update, it must match the server's etag, otherwise the request will be rejected with an ABORTED error.
string etag = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe etag to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
setEtagBytes(ByteString value)
public AutoProtectionPolicy.Builder setEtagBytes(ByteString value)Output only. The etag for the policy. If this is provided on update, it must match the server's etag, otherwise the request will be rejected with an ABORTED error.
string etag = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for etag to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
setName(String value)
public AutoProtectionPolicy.Builder setName(String value) Identifier. The resource name of the AutoprotectionPolicy.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public AutoProtectionPolicy.Builder setNameBytes(ByteString value) Identifier. The resource name of the AutoprotectionPolicy.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
setPolicyEvaluationSummary(PolicyEvaluationSummary value)
public AutoProtectionPolicy.Builder setPolicyEvaluationSummary(PolicyEvaluationSummary value)Output only. Summary of last policy application when job was run per workload type.
.google.cloud.backupdr.v1beta.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
PolicyEvaluationSummary |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setPolicyEvaluationSummary(PolicyEvaluationSummary.Builder builderForValue)
public AutoProtectionPolicy.Builder setPolicyEvaluationSummary(PolicyEvaluationSummary.Builder builderForValue)Output only. Summary of last policy application when job was run per workload type.
.google.cloud.backupdr.v1beta.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
PolicyEvaluationSummary.Builder |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setState(AutoProtectionPolicy.State value)
public AutoProtectionPolicy.Builder setState(AutoProtectionPolicy.State value)Output only. The current state of the AutoprotectionPolicy.
.google.cloud.backupdr.v1beta.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
AutoProtectionPolicy.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
setStateValue(int value)
public AutoProtectionPolicy.Builder setStateValue(int value)Output only. The current state of the AutoprotectionPolicy.
.google.cloud.backupdr.v1beta.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public AutoProtectionPolicy.Builder setUpdateTime(Timestamp value)Output only. The timestamp when the policy was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public AutoProtectionPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. The timestamp when the policy was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicy.Builder |
|