Class GetBackupRequest.Builder (0.42.0)

public static final class GetBackupRequest.Builder extends GeneratedMessage.Builder<GetBackupRequest.Builder> implements GetBackupRequestOrBuilder

Request message for getting a Backup.

Protobuf type google.cloud.backupdr.v1.GetBackupRequest

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GetBackupRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GetBackupRequest.Builder
Overrides

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 String

The 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 ByteString

The 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 BackupView

The 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 int

The enum numeric value on the wire for view to set.

Returns
Type Description
GetBackupRequest.Builder

This builder for chaining.