public static final class GetBackupRequest.Builder extends GeneratedMessage.Builder<GetBackupRequest.Builder> implements GetBackupRequestOrBuilderRequest message for getting a Backup.
Protobuf type google.cloud.backupdr.v1.GetBackupRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GetBackupRequest.BuilderImplements
GetBackupRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GetBackupRequest build()| Returns | |
|---|---|
| Type | Description |
GetBackupRequest |
|
buildPartial()
public GetBackupRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
GetBackupRequest |
|
clear()
public GetBackupRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
GetBackupRequest.Builder |
|
clearName()
public GetBackupRequest.Builder clearName()Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}'
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
GetBackupRequest.Builder |
This builder for chaining. |
clearView()
public GetBackupRequest.Builder clearView()Optional. Reserved for future use to provide a BASIC & FULL view of Backup resource.
.google.cloud.backupdr.v1.BackupView view = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GetBackupRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GetBackupRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GetBackupRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}'
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}'
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getView()
public BackupView getView()Optional. Reserved for future use to provide a BASIC & FULL view of Backup resource.
.google.cloud.backupdr.v1.BackupView view = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BackupView |
The view. |
getViewValue()
public int getViewValue()Optional. Reserved for future use to provide a BASIC & FULL view of Backup resource.
.google.cloud.backupdr.v1.BackupView view = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for view. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GetBackupRequest other)
public GetBackupRequest.Builder mergeFrom(GetBackupRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
GetBackupRequest |
| Returns | |
|---|---|
| Type | Description |
GetBackupRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GetBackupRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GetBackupRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GetBackupRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GetBackupRequest.Builder |
|
setName(String value)
public GetBackupRequest.Builder setName(String value)Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}'
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
GetBackupRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public GetBackupRequest.Builder setNameBytes(ByteString value)Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}'
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
GetBackupRequest.Builder |
This builder for chaining. |
setView(BackupView value)
public GetBackupRequest.Builder setView(BackupView value)Optional. Reserved for future use to provide a BASIC & FULL view of Backup resource.
.google.cloud.backupdr.v1.BackupView view = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupViewThe view to set. |
| Returns | |
|---|---|
| Type | Description |
GetBackupRequest.Builder |
This builder for chaining. |
setViewValue(int value)
public GetBackupRequest.Builder setViewValue(int value)Optional. Reserved for future use to provide a BASIC & FULL view of Backup resource.
.google.cloud.backupdr.v1.BackupView view = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for view to set. |
| Returns | |
|---|---|
| Type | Description |
GetBackupRequest.Builder |
This builder for chaining. |