public static final class CreateBackupPlanAssociationRequest.Builder extends GeneratedMessageV3.Builder<CreateBackupPlanAssociationRequest.Builder> implements CreateBackupPlanAssociationRequestOrBuilder
Request message for creating a backup plan.
Protobuf type google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateBackupPlanAssociationRequest.BuilderImplements
CreateBackupPlanAssociationRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateBackupPlanAssociationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
build()
public CreateBackupPlanAssociationRequest build()
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest |
buildPartial()
public CreateBackupPlanAssociationRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest |
clear()
public CreateBackupPlanAssociationRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
clearBackupPlanAssociation()
public CreateBackupPlanAssociationRequest.Builder clearBackupPlanAssociation()
Required. The resource being created
.google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_association = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
clearBackupPlanAssociationId()
public CreateBackupPlanAssociationRequest.Builder clearBackupPlanAssociationId()
Required. The name of the backup plan association to create. The name must be unique for the specified project and location.
string backup_plan_association_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateBackupPlanAssociationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateBackupPlanAssociationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
clearParent()
public CreateBackupPlanAssociationRequest.Builder clearParent()
Required. The backup plan association project and location in the format
projects/{project_id}/locations/{location}
. In Cloud BackupDR locations
map to GCP regions, for example us-central1.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
This builder for chaining. |
clearRequestId()
public CreateBackupPlanAssociationRequest.Builder clearRequestId()
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
This builder for chaining. |
clone()
public CreateBackupPlanAssociationRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
getBackupPlanAssociation()
public BackupPlanAssociation getBackupPlanAssociation()
Required. The resource being created
.google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_association = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
BackupPlanAssociation |
The backupPlanAssociation. |
getBackupPlanAssociationBuilder()
public BackupPlanAssociation.Builder getBackupPlanAssociationBuilder()
Required. The resource being created
.google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_association = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
BackupPlanAssociation.Builder |
getBackupPlanAssociationId()
public String getBackupPlanAssociationId()
Required. The name of the backup plan association to create. The name must be unique for the specified project and location.
string backup_plan_association_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The backupPlanAssociationId. |
getBackupPlanAssociationIdBytes()
public ByteString getBackupPlanAssociationIdBytes()
Required. The name of the backup plan association to create. The name must be unique for the specified project and location.
string backup_plan_association_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for backupPlanAssociationId. |
getBackupPlanAssociationOrBuilder()
public BackupPlanAssociationOrBuilder getBackupPlanAssociationOrBuilder()
Required. The resource being created
.google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_association = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
BackupPlanAssociationOrBuilder |
getDefaultInstanceForType()
public CreateBackupPlanAssociationRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. The backup plan association project and location in the format
projects/{project_id}/locations/{location}
. In Cloud BackupDR locations
map to GCP regions, for example us-central1.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The backup plan association project and location in the format
projects/{project_id}/locations/{location}
. In Cloud BackupDR locations
map to GCP regions, for example us-central1.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for parent. |
getRequestId()
public String getRequestId()
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
String |
The requestId. |
getRequestIdBytes()
public ByteString getRequestIdBytes()
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for requestId. |
hasBackupPlanAssociation()
public boolean hasBackupPlanAssociation()
Required. The resource being created
.google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_association = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the backupPlanAssociation field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeBackupPlanAssociation(BackupPlanAssociation value)
public CreateBackupPlanAssociationRequest.Builder mergeBackupPlanAssociation(BackupPlanAssociation value)
Required. The resource being created
.google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_association = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
BackupPlanAssociation |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
mergeFrom(CreateBackupPlanAssociationRequest other)
public CreateBackupPlanAssociationRequest.Builder mergeFrom(CreateBackupPlanAssociationRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreateBackupPlanAssociationRequest |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateBackupPlanAssociationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateBackupPlanAssociationRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateBackupPlanAssociationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
setBackupPlanAssociation(BackupPlanAssociation value)
public CreateBackupPlanAssociationRequest.Builder setBackupPlanAssociation(BackupPlanAssociation value)
Required. The resource being created
.google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_association = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
BackupPlanAssociation |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
setBackupPlanAssociation(BackupPlanAssociation.Builder builderForValue)
public CreateBackupPlanAssociationRequest.Builder setBackupPlanAssociation(BackupPlanAssociation.Builder builderForValue)
Required. The resource being created
.google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_association = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
BackupPlanAssociation.Builder |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
setBackupPlanAssociationId(String value)
public CreateBackupPlanAssociationRequest.Builder setBackupPlanAssociationId(String value)
Required. The name of the backup plan association to create. The name must be unique for the specified project and location.
string backup_plan_association_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The backupPlanAssociationId to set. |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
This builder for chaining. |
setBackupPlanAssociationIdBytes(ByteString value)
public CreateBackupPlanAssociationRequest.Builder setBackupPlanAssociationIdBytes(ByteString value)
Required. The name of the backup plan association to create. The name must be unique for the specified project and location.
string backup_plan_association_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for backupPlanAssociationId to set. |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateBackupPlanAssociationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
setParent(String value)
public CreateBackupPlanAssociationRequest.Builder setParent(String value)
Required. The backup plan association project and location in the format
projects/{project_id}/locations/{location}
. In Cloud BackupDR locations
map to GCP regions, for example us-central1.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateBackupPlanAssociationRequest.Builder setParentBytes(ByteString value)
Required. The backup plan association project and location in the format
projects/{project_id}/locations/{location}
. In Cloud BackupDR locations
map to GCP regions, for example us-central1.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateBackupPlanAssociationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
setRequestId(String value)
public CreateBackupPlanAssociationRequest.Builder setRequestId(String value)
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The requestId to set. |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
This builder for chaining. |
setRequestIdBytes(ByteString value)
public CreateBackupPlanAssociationRequest.Builder setRequestIdBytes(ByteString value)
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for requestId to set. |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateBackupPlanAssociationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateBackupPlanAssociationRequest.Builder |