public static final class AutoProtectionDetails.Builder extends GeneratedMessage.Builder<AutoProtectionDetails.Builder> implements AutoProtectionDetailsOrBuilderAutoProtectionDetails contains the protection details of a resource from the current binding's perspective.
Protobuf type google.cloud.backupdr.v1beta.AutoProtectionDetails
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AutoProtectionDetails.BuilderImplements
AutoProtectionDetailsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AutoProtectionDetails build()| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails |
|
buildPartial()
public AutoProtectionDetails buildPartial()| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails |
|
clear()
public AutoProtectionDetails.Builder clear()| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
|
clearBackupPlanAssociation()
public AutoProtectionDetails.Builder clearBackupPlanAssociation()Output only. Resource name of backup plan association linked to the resource, if any. Format: projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
This builder for chaining. |
clearDataSource()
public AutoProtectionDetails.Builder clearDataSource()Output only. Resource name of the datasource linked to the resource, if any. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
This builder for chaining. |
clearError()
public AutoProtectionDetails.Builder clearError()Output only. Error during last sync for protection/unprotection, if any.
.google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
|
clearState()
public AutoProtectionDetails.Builder clearState()Output only. Protection state of the resource from the current binding's perspective. Output only.
.google.cloud.backupdr.v1beta.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
This builder for chaining. |
getBackupPlanAssociation()
public String getBackupPlanAssociation()Output only. Resource name of backup plan association linked to the resource, if any. Format: projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The backupPlanAssociation. |
getBackupPlanAssociationBytes()
public ByteString getBackupPlanAssociationBytes()Output only. Resource name of backup plan association linked to the resource, if any. Format: projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for backupPlanAssociation. |
getDataSource()
public String getDataSource()Output only. Resource name of the datasource linked to the resource, if any. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The dataSource. |
getDataSourceBytes()
public ByteString getDataSourceBytes()Output only. Resource name of the datasource linked to the resource, if any. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for dataSource. |
getDefaultInstanceForType()
public AutoProtectionDetails getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getError()
public Status getError()Output only. Error during last sync for protection/unprotection, if any.
.google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.Status |
The error. |
getErrorBuilder()
public Status.Builder getErrorBuilder()Output only. Error during last sync for protection/unprotection, if any.
.google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.Status.Builder |
|
getErrorOrBuilder()
public StatusOrBuilder getErrorOrBuilder()Output only. Error during last sync for protection/unprotection, if any.
.google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.StatusOrBuilder |
|
getState()
public AutoProtectionDetails.State getState()Output only. Protection state of the resource from the current binding's perspective. Output only.
.google.cloud.backupdr.v1beta.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.State |
The state. |
getStateValue()
public int getStateValue()Output only. Protection state of the resource from the current binding's perspective. Output only.
.google.cloud.backupdr.v1beta.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
hasError()
public boolean hasError()Output only. Error during last sync for protection/unprotection, if any.
.google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the error field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeError(Status value)
public AutoProtectionDetails.Builder mergeError(Status value)Output only. Error during last sync for protection/unprotection, if any.
.google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
|
mergeFrom(AutoProtectionDetails other)
public AutoProtectionDetails.Builder mergeFrom(AutoProtectionDetails other)| Parameter | |
|---|---|
| Name | Description |
other |
AutoProtectionDetails |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AutoProtectionDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AutoProtectionDetails.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
|
setBackupPlanAssociation(String value)
public AutoProtectionDetails.Builder setBackupPlanAssociation(String value)Output only. Resource name of backup plan association linked to the resource, if any. Format: projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe backupPlanAssociation to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
This builder for chaining. |
setBackupPlanAssociationBytes(ByteString value)
public AutoProtectionDetails.Builder setBackupPlanAssociationBytes(ByteString value)Output only. Resource name of backup plan association linked to the resource, if any. Format: projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for backupPlanAssociation to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
This builder for chaining. |
setDataSource(String value)
public AutoProtectionDetails.Builder setDataSource(String value)Output only. Resource name of the datasource linked to the resource, if any. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe dataSource to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
This builder for chaining. |
setDataSourceBytes(ByteString value)
public AutoProtectionDetails.Builder setDataSourceBytes(ByteString value)Output only. Resource name of the datasource linked to the resource, if any. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for dataSource to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
This builder for chaining. |
setError(Status value)
public AutoProtectionDetails.Builder setError(Status value)Output only. Error during last sync for protection/unprotection, if any.
.google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
|
setError(Status.Builder builderForValue)
public AutoProtectionDetails.Builder setError(Status.Builder builderForValue)Output only. Error during last sync for protection/unprotection, if any.
.google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.rpc.Status.Builder |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
|
setState(AutoProtectionDetails.State value)
public AutoProtectionDetails.Builder setState(AutoProtectionDetails.State value)Output only. Protection state of the resource from the current binding's perspective. Output only.
.google.cloud.backupdr.v1beta.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
AutoProtectionDetails.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
This builder for chaining. |
setStateValue(int value)
public AutoProtectionDetails.Builder setStateValue(int value)Output only. Protection state of the resource from the current binding's perspective. Output only.
.google.cloud.backupdr.v1beta.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
This builder for chaining. |