public static final class Database.SourceInfo.Builder extends GeneratedMessage.Builder<Database.SourceInfo.Builder> implements Database.SourceInfoOrBuilderInformation about the provenance of this database.
Protobuf type google.firestore.admin.v1.Database.SourceInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Database.SourceInfo.BuilderImplements
Database.SourceInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Database.SourceInfo build()| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo |
|
buildPartial()
public Database.SourceInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo |
|
clear()
public Database.SourceInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
|
clearBackup()
public Database.SourceInfo.Builder clearBackup()If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
|
clearOperation()
public Database.SourceInfo.Builder clearOperation() The associated long-running operation. This field may not be set after
the operation has completed. Format:
projects/{project}/databases/{database}/operations/{operation}.
string operation = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
This builder for chaining. |
clearSource()
public Database.SourceInfo.Builder clearSource()| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
|
getBackup()
public Database.SourceInfo.BackupSource getBackup()If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.BackupSource |
The backup. |
getBackupBuilder()
public Database.SourceInfo.BackupSource.Builder getBackupBuilder()If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.BackupSource.Builder |
|
getBackupOrBuilder()
public Database.SourceInfo.BackupSourceOrBuilder getBackupOrBuilder()If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.BackupSourceOrBuilder |
|
getDefaultInstanceForType()
public Database.SourceInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getOperation()
public String getOperation() The associated long-running operation. This field may not be set after
the operation has completed. Format:
projects/{project}/databases/{database}/operations/{operation}.
string operation = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The operation. |
getOperationBytes()
public ByteString getOperationBytes() The associated long-running operation. This field may not be set after
the operation has completed. Format:
projects/{project}/databases/{database}/operations/{operation}.
string operation = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for operation. |
getSourceCase()
public Database.SourceInfo.SourceCase getSourceCase()| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.SourceCase |
|
hasBackup()
public boolean hasBackup()If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the backup field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBackup(Database.SourceInfo.BackupSource value)
public Database.SourceInfo.Builder mergeBackup(Database.SourceInfo.BackupSource value)If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Database.SourceInfo.BackupSource |
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
|
mergeFrom(Database.SourceInfo other)
public Database.SourceInfo.Builder mergeFrom(Database.SourceInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
Database.SourceInfo |
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Database.SourceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Database.SourceInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
|
setBackup(Database.SourceInfo.BackupSource value)
public Database.SourceInfo.Builder setBackup(Database.SourceInfo.BackupSource value)If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Database.SourceInfo.BackupSource |
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
|
setBackup(Database.SourceInfo.BackupSource.Builder builderForValue)
public Database.SourceInfo.Builder setBackup(Database.SourceInfo.BackupSource.Builder builderForValue)If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Database.SourceInfo.BackupSource.Builder |
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
|
setOperation(String value)
public Database.SourceInfo.Builder setOperation(String value) The associated long-running operation. This field may not be set after
the operation has completed. Format:
projects/{project}/databases/{database}/operations/{operation}.
string operation = 3 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe operation to set. |
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
This builder for chaining. |
setOperationBytes(ByteString value)
public Database.SourceInfo.Builder setOperationBytes(ByteString value) The associated long-running operation. This field may not be set after
the operation has completed. Format:
projects/{project}/databases/{database}/operations/{operation}.
string operation = 3 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for operation to set. |
| Returns | |
|---|---|
| Type | Description |
Database.SourceInfo.Builder |
This builder for chaining. |