public static final class BackupLocation.Builder extends GeneratedMessage.Builder<BackupLocation.Builder> implements BackupLocationOrBuilderBackupLocation represents a cloud location where a backup can be stored.
Protobuf type google.cloud.backupdr.v1.BackupLocation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BackupLocation.BuilderImplements
BackupLocationOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BackupLocation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BackupLocation.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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.TypeThe 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 |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
BackupLocation.Builder |
This builder for chaining. |