Class BackupLocation.Builder (0.41.0)

public static final class BackupLocation.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackupLocation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupLocation.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public BackupLocation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackupLocation.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackupLocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupLocation.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BackupLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BackupLocation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BackupLocation.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final BackupLocation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupLocation.Builder
Overrides