public static final class GetDocumentRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder> implements GetDocumentRequestOrBuilder
The request for [Firestore.GetDocument][google.firestore.v1.Firestore.GetDocument].Protobuf type
google.firestore.v1.GetDocumentRequest
Modifier and Type | Method and Description |
---|---|
GetDocumentRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GetDocumentRequest |
build() |
GetDocumentRequest |
buildPartial() |
GetDocumentRequest.Builder |
clear() |
GetDocumentRequest.Builder |
clearConsistencySelector() |
GetDocumentRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GetDocumentRequest.Builder |
clearMask()
The fields to return.
|
GetDocumentRequest.Builder |
clearName()
Required.
|
GetDocumentRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GetDocumentRequest.Builder |
clearReadTime()
Reads the version of the document at the given time.
|
GetDocumentRequest.Builder |
clearTransaction()
Reads the document in a transaction.
|
GetDocumentRequest.Builder |
clone() |
GetDocumentRequest.ConsistencySelectorCase |
getConsistencySelectorCase() |
GetDocumentRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
DocumentMask |
getMask()
The fields to return.
|
DocumentMask.Builder |
getMaskBuilder()
The fields to return.
|
DocumentMaskOrBuilder |
getMaskOrBuilder()
The fields to return.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Timestamp |
getReadTime()
Reads the version of the document at the given time.
|
com.google.protobuf.Timestamp.Builder |
getReadTimeBuilder()
Reads the version of the document at the given time.
|
com.google.protobuf.TimestampOrBuilder |
getReadTimeOrBuilder()
Reads the version of the document at the given time.
|
com.google.protobuf.ByteString |
getTransaction()
Reads the document in a transaction.
|
boolean |
hasMask()
The fields to return.
|
boolean |
hasReadTime()
Reads the version of the document at the given time.
|
boolean |
hasTransaction()
Reads the document in a transaction.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GetDocumentRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GetDocumentRequest.Builder |
mergeFrom(GetDocumentRequest other) |
GetDocumentRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
GetDocumentRequest.Builder |
mergeMask(DocumentMask value)
The fields to return.
|
GetDocumentRequest.Builder |
mergeReadTime(com.google.protobuf.Timestamp value)
Reads the version of the document at the given time.
|
GetDocumentRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GetDocumentRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GetDocumentRequest.Builder |
setMask(DocumentMask.Builder builderForValue)
The fields to return.
|
GetDocumentRequest.Builder |
setMask(DocumentMask value)
The fields to return.
|
GetDocumentRequest.Builder |
setName(String value)
Required.
|
GetDocumentRequest.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
GetDocumentRequest.Builder |
setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
Reads the version of the document at the given time.
|
GetDocumentRequest.Builder |
setReadTime(com.google.protobuf.Timestamp value)
Reads the version of the document at the given time.
|
GetDocumentRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GetDocumentRequest.Builder |
setTransaction(com.google.protobuf.ByteString value)
Reads the document in a transaction.
|
GetDocumentRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
public GetDocumentRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
public GetDocumentRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public GetDocumentRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public GetDocumentRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public GetDocumentRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
public GetDocumentRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
public GetDocumentRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
public GetDocumentRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
public GetDocumentRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
public GetDocumentRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
public GetDocumentRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GetDocumentRequest.Builder>
public GetDocumentRequest.Builder mergeFrom(GetDocumentRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
public GetDocumentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GetDocumentRequest.Builder>
IOException
public GetDocumentRequest.ConsistencySelectorCase getConsistencySelectorCase()
getConsistencySelectorCase
in interface GetDocumentRequestOrBuilder
public GetDocumentRequest.Builder clearConsistencySelector()
public String getName()
Required. The resource name of the Document to get. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
getName
in interface GetDocumentRequestOrBuilder
public com.google.protobuf.ByteString getNameBytes()
Required. The resource name of the Document to get. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
getNameBytes
in interface GetDocumentRequestOrBuilder
public GetDocumentRequest.Builder setName(String value)
Required. The resource name of the Document to get. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The name to set.public GetDocumentRequest.Builder clearName()
Required. The resource name of the Document to get. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
public GetDocumentRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The resource name of the Document to get. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for name to set.public boolean hasMask()
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 2;
hasMask
in interface GetDocumentRequestOrBuilder
public DocumentMask getMask()
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 2;
getMask
in interface GetDocumentRequestOrBuilder
public GetDocumentRequest.Builder setMask(DocumentMask value)
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 2;
public GetDocumentRequest.Builder setMask(DocumentMask.Builder builderForValue)
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 2;
public GetDocumentRequest.Builder mergeMask(DocumentMask value)
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 2;
public GetDocumentRequest.Builder clearMask()
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 2;
public DocumentMask.Builder getMaskBuilder()
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 2;
public DocumentMaskOrBuilder getMaskOrBuilder()
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 2;
getMaskOrBuilder
in interface GetDocumentRequestOrBuilder
public boolean hasTransaction()
Reads the document in a transaction.
bytes transaction = 3;
hasTransaction
in interface GetDocumentRequestOrBuilder
public com.google.protobuf.ByteString getTransaction()
Reads the document in a transaction.
bytes transaction = 3;
getTransaction
in interface GetDocumentRequestOrBuilder
public GetDocumentRequest.Builder setTransaction(com.google.protobuf.ByteString value)
Reads the document in a transaction.
bytes transaction = 3;
value
- The transaction to set.public GetDocumentRequest.Builder clearTransaction()
Reads the document in a transaction.
bytes transaction = 3;
public boolean hasReadTime()
Reads the version of the document at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 5;
hasReadTime
in interface GetDocumentRequestOrBuilder
public com.google.protobuf.Timestamp getReadTime()
Reads the version of the document at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 5;
getReadTime
in interface GetDocumentRequestOrBuilder
public GetDocumentRequest.Builder setReadTime(com.google.protobuf.Timestamp value)
Reads the version of the document at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 5;
public GetDocumentRequest.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
Reads the version of the document at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 5;
public GetDocumentRequest.Builder mergeReadTime(com.google.protobuf.Timestamp value)
Reads the version of the document at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 5;
public GetDocumentRequest.Builder clearReadTime()
Reads the version of the document at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 5;
public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()
Reads the version of the document at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 5;
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()
Reads the version of the document at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 5;
getReadTimeOrBuilder
in interface GetDocumentRequestOrBuilder
public final GetDocumentRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
public final GetDocumentRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<GetDocumentRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.