public static final class BackupPlanAssociation.Builder extends GeneratedMessageV3.Builder<BackupPlanAssociation.Builder> implements BackupPlanAssociationOrBuilder
A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc
Protobuf type google.cloud.backupdr.v1.BackupPlanAssociation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BackupPlanAssociation.BuilderImplements
BackupPlanAssociationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllRulesConfigInfo(Iterable<? extends RuleConfigInfo> values)
public BackupPlanAssociation.Builder addAllRulesConfigInfo(Iterable<? extends RuleConfigInfo> values)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.backupdr.v1.RuleConfigInfo> |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackupPlanAssociation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
addRulesConfigInfo(RuleConfigInfo value)
public BackupPlanAssociation.Builder addRulesConfigInfo(RuleConfigInfo value)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
RuleConfigInfo |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
addRulesConfigInfo(RuleConfigInfo.Builder builderForValue)
public BackupPlanAssociation.Builder addRulesConfigInfo(RuleConfigInfo.Builder builderForValue)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
RuleConfigInfo.Builder |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
addRulesConfigInfo(int index, RuleConfigInfo value)
public BackupPlanAssociation.Builder addRulesConfigInfo(int index, RuleConfigInfo value)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
RuleConfigInfo |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
addRulesConfigInfo(int index, RuleConfigInfo.Builder builderForValue)
public BackupPlanAssociation.Builder addRulesConfigInfo(int index, RuleConfigInfo.Builder builderForValue)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
RuleConfigInfo.Builder |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
addRulesConfigInfoBuilder()
public RuleConfigInfo.Builder addRulesConfigInfoBuilder()
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
RuleConfigInfo.Builder |
addRulesConfigInfoBuilder(int index)
public RuleConfigInfo.Builder addRulesConfigInfoBuilder(int index)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
RuleConfigInfo.Builder |
build()
public BackupPlanAssociation build()
Returns | |
---|---|
Type | Description |
BackupPlanAssociation |
buildPartial()
public BackupPlanAssociation buildPartial()
Returns | |
---|---|
Type | Description |
BackupPlanAssociation |
clear()
public BackupPlanAssociation.Builder clear()
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
clearBackupPlan()
public BackupPlanAssociation.Builder clearBackupPlan()
Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
string backup_plan = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
clearCreateTime()
public BackupPlanAssociation.Builder clearCreateTime()
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
clearDataSource()
public BackupPlanAssociation.Builder clearDataSource()
Output only. Output Only.
Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
string data_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public BackupPlanAssociation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
clearName()
public BackupPlanAssociation.Builder clearName()
Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public BackupPlanAssociation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
clearResource()
public BackupPlanAssociation.Builder clearResource()
Required. Immutable. Resource name of workload on which backupplan is applied
string resource = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
clearResourceType()
public BackupPlanAssociation.Builder clearResourceType()
Optional. Resource type of workload on which backupplan is applied
string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
clearRulesConfigInfo()
public BackupPlanAssociation.Builder clearRulesConfigInfo()
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
clearState()
public BackupPlanAssociation.Builder clearState()
Output only. The BackupPlanAssociation resource state.
.google.cloud.backupdr.v1.BackupPlanAssociation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
clearUpdateTime()
public BackupPlanAssociation.Builder clearUpdateTime()
Output only. The time when the instance was updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
clone()
public BackupPlanAssociation.Builder clone()
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
getBackupPlan()
public String getBackupPlan()
Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
string backup_plan = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The backupPlan. |
getBackupPlanBytes()
public ByteString getBackupPlanBytes()
Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
string backup_plan = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for backupPlan. |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDataSource()
public String getDataSource()
Output only. Output Only.
Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
string data_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String |
The dataSource. |
getDataSourceBytes()
public ByteString getDataSourceBytes()
Output only. Output Only.
Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
string data_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for dataSource. |
getDefaultInstanceForType()
public BackupPlanAssociation getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
BackupPlanAssociation |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getName()
public String getName()
Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getResource()
public String getResource()
Required. Immutable. Resource name of workload on which backupplan is applied
string resource = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The resource. |
getResourceBytes()
public ByteString getResourceBytes()
Required. Immutable. Resource name of workload on which backupplan is applied
string resource = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for resource. |
getResourceType()
public String getResourceType()
Optional. Resource type of workload on which backupplan is applied
string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The resourceType. |
getResourceTypeBytes()
public ByteString getResourceTypeBytes()
Optional. Resource type of workload on which backupplan is applied
string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for resourceType. |
getRulesConfigInfo(int index)
public RuleConfigInfo getRulesConfigInfo(int index)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
RuleConfigInfo |
getRulesConfigInfoBuilder(int index)
public RuleConfigInfo.Builder getRulesConfigInfoBuilder(int index)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
RuleConfigInfo.Builder |
getRulesConfigInfoBuilderList()
public List<RuleConfigInfo.Builder> getRulesConfigInfoBuilderList()
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<Builder> |
getRulesConfigInfoCount()
public int getRulesConfigInfoCount()
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
getRulesConfigInfoList()
public List<RuleConfigInfo> getRulesConfigInfoList()
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<RuleConfigInfo> |
getRulesConfigInfoOrBuilder(int index)
public RuleConfigInfoOrBuilder getRulesConfigInfoOrBuilder(int index)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
RuleConfigInfoOrBuilder |
getRulesConfigInfoOrBuilderList()
public List<? extends RuleConfigInfoOrBuilder> getRulesConfigInfoOrBuilderList()
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.backupdr.v1.RuleConfigInfoOrBuilder> |
getState()
public BackupPlanAssociation.State getState()
Output only. The BackupPlanAssociation resource state.
.google.cloud.backupdr.v1.BackupPlanAssociation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.State |
The state. |
getStateValue()
public int getStateValue()
Output only. The BackupPlanAssociation resource state.
.google.cloud.backupdr.v1.BackupPlanAssociation.State state = 7 [(.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 time when the instance was updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The time when the instance was updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time when the instance was updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The time when the instance was updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public BackupPlanAssociation.Builder mergeCreateTime(Timestamp value)
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
mergeFrom(BackupPlanAssociation other)
public BackupPlanAssociation.Builder mergeFrom(BackupPlanAssociation other)
Parameter | |
---|---|
Name | Description |
other |
BackupPlanAssociation |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BackupPlanAssociation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public BackupPlanAssociation.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackupPlanAssociation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
mergeUpdateTime(Timestamp value)
public BackupPlanAssociation.Builder mergeUpdateTime(Timestamp value)
Output only. The time when the instance was updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
removeRulesConfigInfo(int index)
public BackupPlanAssociation.Builder removeRulesConfigInfo(int index)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
setBackupPlan(String value)
public BackupPlanAssociation.Builder setBackupPlan(String value)
Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
string backup_plan = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The backupPlan to set. |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
setBackupPlanBytes(ByteString value)
public BackupPlanAssociation.Builder setBackupPlanBytes(ByteString value)
Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
string backup_plan = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for backupPlan to set. |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
setCreateTime(Timestamp value)
public BackupPlanAssociation.Builder setCreateTime(Timestamp value)
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public BackupPlanAssociation.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
setDataSource(String value)
public BackupPlanAssociation.Builder setDataSource(String value)
Output only. Output Only.
Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
string data_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The dataSource to set. |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
setDataSourceBytes(ByteString value)
public BackupPlanAssociation.Builder setDataSourceBytes(ByteString value)
Output only. Output Only.
Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
string data_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for dataSource to set. |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public BackupPlanAssociation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
setName(String value)
public BackupPlanAssociation.Builder setName(String value)
Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public BackupPlanAssociation.Builder setNameBytes(ByteString value)
Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BackupPlanAssociation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
setResource(String value)
public BackupPlanAssociation.Builder setResource(String value)
Required. Immutable. Resource name of workload on which backupplan is applied
string resource = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The resource to set. |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
setResourceBytes(ByteString value)
public BackupPlanAssociation.Builder setResourceBytes(ByteString value)
Required. Immutable. Resource name of workload on which backupplan is applied
string resource = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for resource to set. |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
setResourceType(String value)
public BackupPlanAssociation.Builder setResourceType(String value)
Optional. Resource type of workload on which backupplan is applied
string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The resourceType to set. |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
setResourceTypeBytes(ByteString value)
public BackupPlanAssociation.Builder setResourceTypeBytes(ByteString value)
Optional. Resource type of workload on which backupplan is applied
string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for resourceType to set. |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
setRulesConfigInfo(int index, RuleConfigInfo value)
public BackupPlanAssociation.Builder setRulesConfigInfo(int index, RuleConfigInfo value)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
RuleConfigInfo |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
setRulesConfigInfo(int index, RuleConfigInfo.Builder builderForValue)
public BackupPlanAssociation.Builder setRulesConfigInfo(int index, RuleConfigInfo.Builder builderForValue)
Output only. The config info related to backup rules.
repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
RuleConfigInfo.Builder |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
setState(BackupPlanAssociation.State value)
public BackupPlanAssociation.Builder setState(BackupPlanAssociation.State value)
Output only. The BackupPlanAssociation resource state.
.google.cloud.backupdr.v1.BackupPlanAssociation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
BackupPlanAssociation.State The state to set. |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
This builder for chaining. |
setStateValue(int value)
public BackupPlanAssociation.Builder setStateValue(int value)
Output only. The BackupPlanAssociation resource state.
.google.cloud.backupdr.v1.BackupPlanAssociation.State state = 7 [(.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 |
BackupPlanAssociation.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final BackupPlanAssociation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
setUpdateTime(Timestamp value)
public BackupPlanAssociation.Builder setUpdateTime(Timestamp value)
Output only. The time when the instance was updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public BackupPlanAssociation.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The time when the instance was updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |