Class BackupLocation.Builder (0.42.0)

public static final class BackupLocation.Builder extends GeneratedMessage.Builder<BackupLocation.Builder> implements BackupLocationOrBuilder

BackupLocation represents a cloud location where a backup can be stored.

Protobuf type google.cloud.backupdr.v1.BackupLocation

Static Methods

getDescriptor()

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

Methods

build()

public BackupLocation build()
Returns
Type Description
BackupLocation

buildPartial()

public BackupLocation buildPartial()
Returns
Type Description
BackupLocation

clear()

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

clearLocationId()

public BackupLocation.Builder clearLocationId()

Output only. The id of the cloud location. Example: "us-central1"

string location_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupLocation.Builder

This builder for chaining.

clearType()

public BackupLocation.Builder clearType()

Output only. The type of the location.

.google.cloud.backupdr.v1.BackupLocation.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupLocation.Builder

This builder for chaining.

getDefaultInstanceForType()

public BackupLocation getDefaultInstanceForType()
Returns
Type Description
BackupLocation

getDescriptorForType()

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

getLocationId()

public String getLocationId()

Output only. The id of the cloud location. Example: "us-central1"

string location_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The locationId.

getLocationIdBytes()

public ByteString getLocationIdBytes()

Output only. The id of the cloud location. Example: "us-central1"

string location_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for locationId.

getType()

public BackupLocation.Type getType()

Output only. The type of the location.

.google.cloud.backupdr.v1.BackupLocation.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupLocation.Type

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of the location.

.google.cloud.backupdr.v1.BackupLocation.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupLocation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setLocationId(String value)

public BackupLocation.Builder setLocationId(String value)

Output only. The id of the cloud location. Example: "us-central1"

string location_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The locationId to set.

Returns
Type Description
BackupLocation.Builder

This builder for chaining.

setLocationIdBytes(ByteString value)

public BackupLocation.Builder setLocationIdBytes(ByteString value)

Output only. The id of the cloud location. Example: "us-central1"

string location_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for locationId to set.

Returns
Type Description
BackupLocation.Builder

This builder for chaining.

setType(BackupLocation.Type value)

public BackupLocation.Builder setType(BackupLocation.Type value)

Output only. The type of the location.

.google.cloud.backupdr.v1.BackupLocation.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value BackupLocation.Type

The type to set.

Returns
Type Description
BackupLocation.Builder

This builder for chaining.

setTypeValue(int value)

public BackupLocation.Builder setTypeValue(int value)

Output only. The type of the location.

.google.cloud.backupdr.v1.BackupLocation.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
BackupLocation.Builder

This builder for chaining.