public static final class CreateBackupVaultRequest.Builder extends GeneratedMessageV3.Builder<CreateBackupVaultRequest.Builder> implements CreateBackupVaultRequestOrBuilder
Message for creating a BackupVault.
Protobuf type google.cloud.backupdr.v1.CreateBackupVaultRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateBackupVaultRequest.BuilderImplements
CreateBackupVaultRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateBackupVaultRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
build()
public CreateBackupVaultRequest build()
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest |
buildPartial()
public CreateBackupVaultRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest |
clear()
public CreateBackupVaultRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
clearBackupVault()
public CreateBackupVaultRequest.Builder clearBackupVault()
Required. The resource being created
.google.cloud.backupdr.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
clearBackupVaultId()
public CreateBackupVaultRequest.Builder clearBackupVaultId()
Required. ID of the requesting object If auto-generating ID server-side, remove this field and backup_vault_id from the method_signature of Create RPC
string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateBackupVaultRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateBackupVaultRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
clearParent()
public CreateBackupVaultRequest.Builder clearParent()
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
This builder for chaining. |
clearRequestId()
public CreateBackupVaultRequest.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 the 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 |
CreateBackupVaultRequest.Builder |
This builder for chaining. |
clearValidateOnly()
public CreateBackupVaultRequest.Builder clearValidateOnly()
Optional. Only validate the request, but do not perform mutations. The default is 'false'.
bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
This builder for chaining. |
clone()
public CreateBackupVaultRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
getBackupVault()
public BackupVault getBackupVault()
Required. The resource being created
.google.cloud.backupdr.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
BackupVault |
The backupVault. |
getBackupVaultBuilder()
public BackupVault.Builder getBackupVaultBuilder()
Required. The resource being created
.google.cloud.backupdr.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
BackupVault.Builder |
getBackupVaultId()
public String getBackupVaultId()
Required. ID of the requesting object If auto-generating ID server-side, remove this field and backup_vault_id from the method_signature of Create RPC
string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The backupVaultId. |
getBackupVaultIdBytes()
public ByteString getBackupVaultIdBytes()
Required. ID of the requesting object If auto-generating ID server-side, remove this field and backup_vault_id from the method_signature of Create RPC
string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for backupVaultId. |
getBackupVaultOrBuilder()
public BackupVaultOrBuilder getBackupVaultOrBuilder()
Required. The resource being created
.google.cloud.backupdr.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
BackupVaultOrBuilder |
getDefaultInstanceForType()
public CreateBackupVaultRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. Value for parent.
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 the 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 the 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. |
getValidateOnly()
public boolean getValidateOnly()
Optional. Only validate the request, but do not perform mutations. The default is 'false'.
bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
The validateOnly. |
hasBackupVault()
public boolean hasBackupVault()
Required. The resource being created
.google.cloud.backupdr.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the backupVault field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeBackupVault(BackupVault value)
public CreateBackupVaultRequest.Builder mergeBackupVault(BackupVault value)
Required. The resource being created
.google.cloud.backupdr.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
BackupVault |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
mergeFrom(CreateBackupVaultRequest other)
public CreateBackupVaultRequest.Builder mergeFrom(CreateBackupVaultRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreateBackupVaultRequest |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateBackupVaultRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateBackupVaultRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateBackupVaultRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
setBackupVault(BackupVault value)
public CreateBackupVaultRequest.Builder setBackupVault(BackupVault value)
Required. The resource being created
.google.cloud.backupdr.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
BackupVault |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
setBackupVault(BackupVault.Builder builderForValue)
public CreateBackupVaultRequest.Builder setBackupVault(BackupVault.Builder builderForValue)
Required. The resource being created
.google.cloud.backupdr.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
BackupVault.Builder |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
setBackupVaultId(String value)
public CreateBackupVaultRequest.Builder setBackupVaultId(String value)
Required. ID of the requesting object If auto-generating ID server-side, remove this field and backup_vault_id from the method_signature of Create RPC
string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The backupVaultId to set. |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
This builder for chaining. |
setBackupVaultIdBytes(ByteString value)
public CreateBackupVaultRequest.Builder setBackupVaultIdBytes(ByteString value)
Required. ID of the requesting object If auto-generating ID server-side, remove this field and backup_vault_id from the method_signature of Create RPC
string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for backupVaultId to set. |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateBackupVaultRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
setParent(String value)
public CreateBackupVaultRequest.Builder setParent(String value)
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateBackupVaultRequest.Builder setParentBytes(ByteString value)
Required. Value for parent.
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 |
CreateBackupVaultRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateBackupVaultRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
setRequestId(String value)
public CreateBackupVaultRequest.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 the 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 |
CreateBackupVaultRequest.Builder |
This builder for chaining. |
setRequestIdBytes(ByteString value)
public CreateBackupVaultRequest.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 the 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 |
CreateBackupVaultRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateBackupVaultRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
setValidateOnly(boolean value)
public CreateBackupVaultRequest.Builder setValidateOnly(boolean value)
Optional. Only validate the request, but do not perform mutations. The default is 'false'.
bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
boolean The validateOnly to set. |
Returns | |
---|---|
Type | Description |
CreateBackupVaultRequest.Builder |
This builder for chaining. |