Class Database.SourceInfo.Builder (3.28.0)

public static final class Database.SourceInfo.Builder extends GeneratedMessageV3.Builder<Database.SourceInfo.Builder> implements Database.SourceInfoOrBuilder

Information about the provenance of this database.

Protobuf type google.firestore.admin.v1.Database.SourceInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public Database.SourceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Database.SourceInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

public Database.SourceInfo.Builder clone()
Returns
Type Description
Database.SourceInfo.Builder
Overrides

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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setField(Descriptors.FieldDescriptor field, Object value)

public Database.SourceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Database.SourceInfo.Builder
Overrides

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 String

The 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 ByteString

The bytes for operation to set.

Returns
Type Description
Database.SourceInfo.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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