Package com.google.firestore.admin.v1
Class Database.SourceInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Database.SourceInfo.Builder>
com.google.firestore.admin.v1.Database.SourceInfo.Builder
- All Implemented Interfaces:
Database.SourceInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Database.SourceInfo
public static final class Database.SourceInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Database.SourceInfo.Builder>
implements Database.SourceInfoOrBuilder
Information about the provenance of this database.Protobuf type
google.firestore.admin.v1.Database.SourceInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If set, this database was restored from the specified backup (or a snapshot thereof).The associated long-running operation.If set, this database was restored from the specified backup (or a snapshot thereof).If set, this database was restored from the specified backup (or a snapshot thereof).If set, this database was restored from the specified backup (or a snapshot thereof).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe associated long-running operation.com.google.protobuf.ByteStringThe associated long-running operation.booleanIf set, this database was restored from the specified backup (or a snapshot thereof).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanIf set, this database was restored from the specified backup (or a snapshot thereof).mergeFrom(Database.SourceInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) If set, this database was restored from the specified backup (or a snapshot thereof).setBackup(Database.SourceInfo.BackupSource.Builder builderForValue) If set, this database was restored from the specified backup (or a snapshot thereof).setOperation(String value) The associated long-running operation.setOperationBytes(com.google.protobuf.ByteString value) The associated long-running operation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Database.SourceInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Database.SourceInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Database.SourceInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Database.SourceInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Database.SourceInfo.Builder>
-
mergeFrom
public Database.SourceInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Database.SourceInfo.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceDatabase.SourceInfoOrBuilder
-
clearSource
-
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;- Specified by:
hasBackupin interfaceDatabase.SourceInfoOrBuilder- Returns:
- Whether the backup field is set.
-
getBackup
If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;- Specified by:
getBackupin interfaceDatabase.SourceInfoOrBuilder- Returns:
- The backup.
-
setBackup
If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1; -
setBackup
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; -
mergeBackup
If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1; -
clearBackup
If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1; -
getBackupBuilder
If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1; -
getBackupOrBuilder
If set, this database was restored from the specified backup (or a snapshot thereof).
.google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;- Specified by:
getBackupOrBuilderin interfaceDatabase.SourceInfoOrBuilder
-
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) = { ... }- Specified by:
getOperationin interfaceDatabase.SourceInfoOrBuilder- Returns:
- The operation.
-
getOperationBytes
public com.google.protobuf.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) = { ... }- Specified by:
getOperationBytesin interfaceDatabase.SourceInfoOrBuilder- Returns:
- The bytes for operation.
-
setOperation
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) = { ... }- Parameters:
value- The operation to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setOperationBytes
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) = { ... }- Parameters:
value- The bytes for operation to set.- Returns:
- This builder for chaining.
-