Class BackupSelectionConfig.Builder (0.62.0)

public static final class BackupSelectionConfig.Builder extends GeneratedMessage.Builder<BackupSelectionConfig.Builder> implements BackupSelectionConfigOrBuilder

Configuration for selecting a backup.

Protobuf type google.cloud.backupdr.v1.BackupSelectionConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public BackupSelectionConfig build()
Returns
Type Description
BackupSelectionConfig

buildPartial()

public BackupSelectionConfig buildPartial()
Returns
Type Description
BackupSelectionConfig

clear()

public BackupSelectionConfig.Builder clear()
Returns
Type Description
BackupSelectionConfig.Builder
Overrides

clearDataSource()

public BackupSelectionConfig.Builder clearDataSource()

Required. Immutable. The fully qualified URI of the backupdr data source.

string data_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
BackupSelectionConfig.Builder

This builder for chaining.

clearSource()

public BackupSelectionConfig.Builder clearSource()
Returns
Type Description
BackupSelectionConfig.Builder

getDataSource()

public String getDataSource()

Required. Immutable. The fully qualified URI of the backupdr data source.

string data_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The dataSource.

getDataSourceBytes()

public ByteString getDataSourceBytes()

Required. Immutable. The fully qualified URI of the backupdr data source.

string data_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for dataSource.

getDefaultInstanceForType()

public BackupSelectionConfig getDefaultInstanceForType()
Returns
Type Description
BackupSelectionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSourceCase()

public BackupSelectionConfig.SourceCase getSourceCase()
Returns
Type Description
BackupSelectionConfig.SourceCase

hasDataSource()

public boolean hasDataSource()

Required. Immutable. The fully qualified URI of the backupdr data source.

string data_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the dataSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupSelectionConfig other)

public BackupSelectionConfig.Builder mergeFrom(BackupSelectionConfig other)
Parameter
Name Description
other BackupSelectionConfig
Returns
Type Description
BackupSelectionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackupSelectionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupSelectionConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setDataSource(String value)

public BackupSelectionConfig.Builder setDataSource(String value)

Required. Immutable. The fully qualified URI of the backupdr data source.

string data_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The dataSource to set.

Returns
Type Description
BackupSelectionConfig.Builder

This builder for chaining.

setDataSourceBytes(ByteString value)

public BackupSelectionConfig.Builder setDataSourceBytes(ByteString value)

Required. Immutable. The fully qualified URI of the backupdr data source.

string data_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for dataSource to set.

Returns
Type Description
BackupSelectionConfig.Builder

This builder for chaining.