public static final class CreateRestoreTemplateRequest.Builder extends GeneratedMessage.Builder<CreateRestoreTemplateRequest.Builder> implements CreateRestoreTemplateRequestOrBuilderRequest message for creating a RestoreTemplate instance.
Protobuf type google.cloud.backupdr.v1.CreateRestoreTemplateRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateRestoreTemplateRequest.BuilderImplements
CreateRestoreTemplateRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateRestoreTemplateRequest build()| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest |
|
buildPartial()
public CreateRestoreTemplateRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest |
|
clear()
public CreateRestoreTemplateRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
|
clearParent()
public CreateRestoreTemplateRequest.Builder clearParent()Required. The restore template project and location in the format 'projects/{project_id}/locations/{location}'.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
This builder for chaining. |
clearRequestId()
public CreateRestoreTemplateRequest.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 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 |
CreateRestoreTemplateRequest.Builder |
This builder for chaining. |
clearRestoreTemplate()
public CreateRestoreTemplateRequest.Builder clearRestoreTemplate()Required. A RestoreTemplate resource.
.google.cloud.backupdr.v1.RestoreTemplate restore_template = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
|
clearRestoreTemplateId()
public CreateRestoreTemplateRequest.Builder clearRestoreTemplateId()Required. The ID of the restore template to create. The ID must be unique for the specified project and location.
string restore_template_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CreateRestoreTemplateRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent()Required. The restore template project and location in the format 'projects/{project_id}/locations/{location}'.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()Required. The restore template project and location in the format 'projects/{project_id}/locations/{location}'.
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 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 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. |
getRestoreTemplate()
public RestoreTemplate getRestoreTemplate()Required. A RestoreTemplate resource.
.google.cloud.backupdr.v1.RestoreTemplate restore_template = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RestoreTemplate |
The restoreTemplate. |
getRestoreTemplateBuilder()
public RestoreTemplate.Builder getRestoreTemplateBuilder()Required. A RestoreTemplate resource.
.google.cloud.backupdr.v1.RestoreTemplate restore_template = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RestoreTemplate.Builder |
|
getRestoreTemplateId()
public String getRestoreTemplateId()Required. The ID of the restore template to create. The ID must be unique for the specified project and location.
string restore_template_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The restoreTemplateId. |
getRestoreTemplateIdBytes()
public ByteString getRestoreTemplateIdBytes()Required. The ID of the restore template to create. The ID must be unique for the specified project and location.
string restore_template_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for restoreTemplateId. |
getRestoreTemplateOrBuilder()
public RestoreTemplateOrBuilder getRestoreTemplateOrBuilder()Required. A RestoreTemplate resource.
.google.cloud.backupdr.v1.RestoreTemplate restore_template = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RestoreTemplateOrBuilder |
|
hasRestoreTemplate()
public boolean hasRestoreTemplate()Required. A RestoreTemplate resource.
.google.cloud.backupdr.v1.RestoreTemplate restore_template = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the restoreTemplate field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CreateRestoreTemplateRequest other)
public CreateRestoreTemplateRequest.Builder mergeFrom(CreateRestoreTemplateRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateRestoreTemplateRequest |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateRestoreTemplateRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateRestoreTemplateRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
|
mergeRestoreTemplate(RestoreTemplate value)
public CreateRestoreTemplateRequest.Builder mergeRestoreTemplate(RestoreTemplate value)Required. A RestoreTemplate resource.
.google.cloud.backupdr.v1.RestoreTemplate restore_template = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
RestoreTemplate |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
|
setParent(String value)
public CreateRestoreTemplateRequest.Builder setParent(String value)Required. The restore template project and location in the format 'projects/{project_id}/locations/{location}'.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateRestoreTemplateRequest.Builder setParentBytes(ByteString value)Required. The restore template project and location in the format 'projects/{project_id}/locations/{location}'.
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 |
CreateRestoreTemplateRequest.Builder |
This builder for chaining. |
setRequestId(String value)
public CreateRestoreTemplateRequest.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 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 |
CreateRestoreTemplateRequest.Builder |
This builder for chaining. |
setRequestIdBytes(ByteString value)
public CreateRestoreTemplateRequest.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 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 |
CreateRestoreTemplateRequest.Builder |
This builder for chaining. |
setRestoreTemplate(RestoreTemplate value)
public CreateRestoreTemplateRequest.Builder setRestoreTemplate(RestoreTemplate value)Required. A RestoreTemplate resource.
.google.cloud.backupdr.v1.RestoreTemplate restore_template = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
RestoreTemplate |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
|
setRestoreTemplate(RestoreTemplate.Builder builderForValue)
public CreateRestoreTemplateRequest.Builder setRestoreTemplate(RestoreTemplate.Builder builderForValue)Required. A RestoreTemplate resource.
.google.cloud.backupdr.v1.RestoreTemplate restore_template = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
RestoreTemplate.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
|
setRestoreTemplateId(String value)
public CreateRestoreTemplateRequest.Builder setRestoreTemplateId(String value)Required. The ID of the restore template to create. The ID must be unique for the specified project and location.
string restore_template_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe restoreTemplateId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
This builder for chaining. |
setRestoreTemplateIdBytes(ByteString value)
public CreateRestoreTemplateRequest.Builder setRestoreTemplateIdBytes(ByteString value)Required. The ID of the restore template to create. The ID must be unique for the specified project and location.
string restore_template_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for restoreTemplateId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest.Builder |
This builder for chaining. |