Package com.google.firestore.v1
Class BatchGetDocumentsResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
com.google.firestore.v1.BatchGetDocumentsResponse.Builder
- All Implemented Interfaces:
BatchGetDocumentsResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchGetDocumentsResponse
public static final class BatchGetDocumentsResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
implements BatchGetDocumentsResponseOrBuilder
The streamed response for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].Protobuf type
google.firestore.v1.BatchGetDocumentsResponse-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) A document that was requested.A document name that was requested but does not exist.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The time at which the document was read.The transaction that was started as part of this request.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFound()A document that was requested.A document that was requested.A document that was requested.A document name that was requested but does not exist.com.google.protobuf.ByteStringA document name that was requested but does not exist.com.google.protobuf.TimestampThe time at which the document was read.com.google.protobuf.Timestamp.BuilderThe time at which the document was read.com.google.protobuf.TimestampOrBuilderThe time at which the document was read.com.google.protobuf.ByteStringThe transaction that was started as part of this request.booleanhasFound()A document that was requested.booleanA document name that was requested but does not exist.booleanThe time at which the document was read.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFound(Document value) A document that was requested.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeReadTime(com.google.protobuf.Timestamp value) The time at which the document was read.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) A document that was requested.setFound(Document.Builder builderForValue) A document that was requested.setMissing(String value) A document name that was requested but does not exist.setMissingBytes(com.google.protobuf.ByteString value) A document name that was requested but does not exist.setReadTime(com.google.protobuf.Timestamp value) The time at which the document was read.setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which the document was read.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTransaction(com.google.protobuf.ByteString value) The transaction that was started as part of this request.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.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.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
-
setField
public BatchGetDocumentsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
-
clearField
public BatchGetDocumentsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
-
clearOneof
public BatchGetDocumentsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
-
setRepeatedField
public BatchGetDocumentsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
-
addRepeatedField
public BatchGetDocumentsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchGetDocumentsResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
-
mergeFrom
public BatchGetDocumentsResponse.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<BatchGetDocumentsResponse.Builder>- Throws:
IOException
-
getResultCase
- Specified by:
getResultCasein interfaceBatchGetDocumentsResponseOrBuilder
-
clearResult
-
hasFound
public boolean hasFound()A document that was requested.
.google.firestore.v1.Document found = 1;- Specified by:
hasFoundin interfaceBatchGetDocumentsResponseOrBuilder- Returns:
- Whether the found field is set.
-
getFound
A document that was requested.
.google.firestore.v1.Document found = 1;- Specified by:
getFoundin interfaceBatchGetDocumentsResponseOrBuilder- Returns:
- The found.
-
setFound
A document that was requested.
.google.firestore.v1.Document found = 1; -
setFound
A document that was requested.
.google.firestore.v1.Document found = 1; -
mergeFound
A document that was requested.
.google.firestore.v1.Document found = 1; -
clearFound
A document that was requested.
.google.firestore.v1.Document found = 1; -
getFoundBuilder
A document that was requested.
.google.firestore.v1.Document found = 1; -
getFoundOrBuilder
A document that was requested.
.google.firestore.v1.Document found = 1;- Specified by:
getFoundOrBuilderin interfaceBatchGetDocumentsResponseOrBuilder
-
hasMissing
public boolean hasMissing()A document name that was requested but does not exist. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string missing = 2;- Specified by:
hasMissingin interfaceBatchGetDocumentsResponseOrBuilder- Returns:
- Whether the missing field is set.
-
getMissing
A document name that was requested but does not exist. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string missing = 2;- Specified by:
getMissingin interfaceBatchGetDocumentsResponseOrBuilder- Returns:
- The missing.
-
getMissingBytes
public com.google.protobuf.ByteString getMissingBytes()A document name that was requested but does not exist. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string missing = 2;- Specified by:
getMissingBytesin interfaceBatchGetDocumentsResponseOrBuilder- Returns:
- The bytes for missing.
-
setMissing
A document name that was requested but does not exist. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string missing = 2;- Parameters:
value- The missing to set.- Returns:
- This builder for chaining.
-
clearMissing
A document name that was requested but does not exist. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string missing = 2;- Returns:
- This builder for chaining.
-
setMissingBytes
A document name that was requested but does not exist. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string missing = 2;- Parameters:
value- The bytes for missing to set.- Returns:
- This builder for chaining.
-
getTransaction
public com.google.protobuf.ByteString getTransaction()The transaction that was started as part of this request. Will only be set in the first response, and only if [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction] was set in the request.
bytes transaction = 3;- Specified by:
getTransactionin interfaceBatchGetDocumentsResponseOrBuilder- Returns:
- The transaction.
-
setTransaction
The transaction that was started as part of this request. Will only be set in the first response, and only if [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction] was set in the request.
bytes transaction = 3;- Parameters:
value- The transaction to set.- Returns:
- This builder for chaining.
-
clearTransaction
The transaction that was started as part of this request. Will only be set in the first response, and only if [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction] was set in the request.
bytes transaction = 3;- Returns:
- This builder for chaining.
-
hasReadTime
public boolean hasReadTime()The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.
.google.protobuf.Timestamp read_time = 4;- Specified by:
hasReadTimein interfaceBatchGetDocumentsResponseOrBuilder- Returns:
- Whether the readTime field is set.
-
getReadTime
public com.google.protobuf.Timestamp getReadTime()The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.
.google.protobuf.Timestamp read_time = 4;- Specified by:
getReadTimein interfaceBatchGetDocumentsResponseOrBuilder- Returns:
- The readTime.
-
setReadTime
The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.
.google.protobuf.Timestamp read_time = 4; -
setReadTime
public BatchGetDocumentsResponse.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.
.google.protobuf.Timestamp read_time = 4; -
mergeReadTime
The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.
.google.protobuf.Timestamp read_time = 4; -
clearReadTime
The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.
.google.protobuf.Timestamp read_time = 4; -
getReadTimeBuilder
public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.
.google.protobuf.Timestamp read_time = 4; -
getReadTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.
.google.protobuf.Timestamp read_time = 4;- Specified by:
getReadTimeOrBuilderin interfaceBatchGetDocumentsResponseOrBuilder
-
setUnknownFields
public final BatchGetDocumentsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
-
mergeUnknownFields
public final BatchGetDocumentsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsResponse.Builder>
-