public static final class CreateAutoProtectionPolicyBindingRequest.Builder extends GeneratedMessage.Builder<CreateAutoProtectionPolicyBindingRequest.Builder> implements CreateAutoProtectionPolicyBindingRequestOrBuilderRequest message for creating an AutoProtectionPolicyBinding.
Protobuf type google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateAutoProtectionPolicyBindingRequest.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateAutoProtectionPolicyBindingRequest build()| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest |
|
buildPartial()
public CreateAutoProtectionPolicyBindingRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest |
|
clear()
public CreateAutoProtectionPolicyBindingRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
|
clearAutoProtectionPolicyBinding()
public CreateAutoProtectionPolicyBindingRequest.Builder clearAutoProtectionPolicyBinding()Required. The AutoProtectionPolicyBinding resource to create.
.google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
|
clearAutoProtectionPolicyBindingId()
public CreateAutoProtectionPolicyBindingRequest.Builder clearAutoProtectionPolicyBindingId()Required. The ID to use for the binding. This will become the final component of the binding's resource name.
This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
This builder for chaining. |
clearParent()
public CreateAutoProtectionPolicyBindingRequest.Builder clearParent()Required. The parent resource where this binding will be created. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
This builder for chaining. |
clearRequestId()
public CreateAutoProtectionPolicyBindingRequest.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.
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 |
CreateAutoProtectionPolicyBindingRequest.Builder |
This builder for chaining. |
getAutoProtectionPolicyBinding()
public AutoProtectionPolicyBinding getAutoProtectionPolicyBinding()Required. The AutoProtectionPolicyBinding resource to create.
.google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicyBinding |
The autoProtectionPolicyBinding. |
getAutoProtectionPolicyBindingBuilder()
public AutoProtectionPolicyBinding.Builder getAutoProtectionPolicyBindingBuilder()Required. The AutoProtectionPolicyBinding resource to create.
.google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicyBinding.Builder |
|
getAutoProtectionPolicyBindingId()
public String getAutoProtectionPolicyBindingId()Required. The ID to use for the binding. This will become the final component of the binding's resource name.
This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The autoProtectionPolicyBindingId. |
getAutoProtectionPolicyBindingIdBytes()
public ByteString getAutoProtectionPolicyBindingIdBytes()Required. The ID to use for the binding. This will become the final component of the binding's resource name.
This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for autoProtectionPolicyBindingId. |
getAutoProtectionPolicyBindingOrBuilder()
public AutoProtectionPolicyBindingOrBuilder getAutoProtectionPolicyBindingOrBuilder()Required. The AutoProtectionPolicyBinding resource to create.
.google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicyBindingOrBuilder |
|
getDefaultInstanceForType()
public CreateAutoProtectionPolicyBindingRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent()Required. The parent resource where this binding will be created. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()Required. The parent resource where this binding will be created. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
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.
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.
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. |
hasAutoProtectionPolicyBinding()
public boolean hasAutoProtectionPolicyBinding()Required. The AutoProtectionPolicyBinding resource to create.
.google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the autoProtectionPolicyBinding field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAutoProtectionPolicyBinding(AutoProtectionPolicyBinding value)
public CreateAutoProtectionPolicyBindingRequest.Builder mergeAutoProtectionPolicyBinding(AutoProtectionPolicyBinding value)Required. The AutoProtectionPolicyBinding resource to create.
.google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AutoProtectionPolicyBinding |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
|
mergeFrom(CreateAutoProtectionPolicyBindingRequest other)
public CreateAutoProtectionPolicyBindingRequest.Builder mergeFrom(CreateAutoProtectionPolicyBindingRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateAutoProtectionPolicyBindingRequest |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateAutoProtectionPolicyBindingRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateAutoProtectionPolicyBindingRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
|
setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding value)
public CreateAutoProtectionPolicyBindingRequest.Builder setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding value)Required. The AutoProtectionPolicyBinding resource to create.
.google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AutoProtectionPolicyBinding |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
|
setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.Builder builderForValue)
public CreateAutoProtectionPolicyBindingRequest.Builder setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.Builder builderForValue)Required. The AutoProtectionPolicyBinding resource to create.
.google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AutoProtectionPolicyBinding.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
|
setAutoProtectionPolicyBindingId(String value)
public CreateAutoProtectionPolicyBindingRequest.Builder setAutoProtectionPolicyBindingId(String value)Required. The ID to use for the binding. This will become the final component of the binding's resource name.
This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe autoProtectionPolicyBindingId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
This builder for chaining. |
setAutoProtectionPolicyBindingIdBytes(ByteString value)
public CreateAutoProtectionPolicyBindingRequest.Builder setAutoProtectionPolicyBindingIdBytes(ByteString value)Required. The ID to use for the binding. This will become the final component of the binding's resource name.
This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for autoProtectionPolicyBindingId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateAutoProtectionPolicyBindingRequest.Builder setParent(String value)Required. The parent resource where this binding will be created. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateAutoProtectionPolicyBindingRequest.Builder setParentBytes(ByteString value)Required. The parent resource where this binding will be created. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
This builder for chaining. |
setRequestId(String value)
public CreateAutoProtectionPolicyBindingRequest.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.
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 |
StringThe requestId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
This builder for chaining. |
setRequestIdBytes(ByteString value)
public CreateAutoProtectionPolicyBindingRequest.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.
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 |
ByteStringThe bytes for requestId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest.Builder |
This builder for chaining. |