public static final class CreateDocumentRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder> implements CreateDocumentRequestOrBuilder
The request for [Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument].Protobuf type
google.firestore.v1.CreateDocumentRequest| Modifier and Type | Method and Description |
|---|---|
CreateDocumentRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreateDocumentRequest |
build() |
CreateDocumentRequest |
buildPartial() |
CreateDocumentRequest.Builder |
clear() |
CreateDocumentRequest.Builder |
clearCollectionId()
Required.
|
CreateDocumentRequest.Builder |
clearDocument()
Required.
|
CreateDocumentRequest.Builder |
clearDocumentId()
The client-assigned document ID to use for this document.
|
CreateDocumentRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CreateDocumentRequest.Builder |
clearMask()
The fields to return.
|
CreateDocumentRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CreateDocumentRequest.Builder |
clearParent()
Required.
|
CreateDocumentRequest.Builder |
clone() |
String |
getCollectionId()
Required.
|
com.google.protobuf.ByteString |
getCollectionIdBytes()
Required.
|
CreateDocumentRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Document |
getDocument()
Required.
|
Document.Builder |
getDocumentBuilder()
Required.
|
String |
getDocumentId()
The client-assigned document ID to use for this document.
|
com.google.protobuf.ByteString |
getDocumentIdBytes()
The client-assigned document ID to use for this document.
|
DocumentOrBuilder |
getDocumentOrBuilder()
Required.
|
DocumentMask |
getMask()
The fields to return.
|
DocumentMask.Builder |
getMaskBuilder()
The fields to return.
|
DocumentMaskOrBuilder |
getMaskOrBuilder()
The fields to return.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
boolean |
hasDocument()
Required.
|
boolean |
hasMask()
The fields to return.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CreateDocumentRequest.Builder |
mergeDocument(Document value)
Required.
|
CreateDocumentRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CreateDocumentRequest.Builder |
mergeFrom(CreateDocumentRequest other) |
CreateDocumentRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
CreateDocumentRequest.Builder |
mergeMask(DocumentMask value)
The fields to return.
|
CreateDocumentRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CreateDocumentRequest.Builder |
setCollectionId(String value)
Required.
|
CreateDocumentRequest.Builder |
setCollectionIdBytes(com.google.protobuf.ByteString value)
Required.
|
CreateDocumentRequest.Builder |
setDocument(Document.Builder builderForValue)
Required.
|
CreateDocumentRequest.Builder |
setDocument(Document value)
Required.
|
CreateDocumentRequest.Builder |
setDocumentId(String value)
The client-assigned document ID to use for this document.
|
CreateDocumentRequest.Builder |
setDocumentIdBytes(com.google.protobuf.ByteString value)
The client-assigned document ID to use for this document.
|
CreateDocumentRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreateDocumentRequest.Builder |
setMask(DocumentMask.Builder builderForValue)
The fields to return.
|
CreateDocumentRequest.Builder |
setMask(DocumentMask value)
The fields to return.
|
CreateDocumentRequest.Builder |
setParent(String value)
Required.
|
CreateDocumentRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Required.
|
CreateDocumentRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CreateDocumentRequest.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CreateDocumentRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CreateDocumentRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CreateDocumentRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder mergeFrom(CreateDocumentRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateDocumentRequest.Builder>IOExceptionpublic String getParent()
Required. The parent resource. For example:
`projects/{project_id}/databases/{database_id}/documents` or
`projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];getParent in interface CreateDocumentRequestOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
Required. The parent resource. For example:
`projects/{project_id}/databases/{database_id}/documents` or
`projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];getParentBytes in interface CreateDocumentRequestOrBuilderpublic CreateDocumentRequest.Builder setParent(String value)
Required. The parent resource. For example:
`projects/{project_id}/databases/{database_id}/documents` or
`projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];value - The parent to set.public CreateDocumentRequest.Builder clearParent()
Required. The parent resource. For example:
`projects/{project_id}/databases/{database_id}/documents` or
`projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];public CreateDocumentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. The parent resource. For example:
`projects/{project_id}/databases/{database_id}/documents` or
`projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for parent to set.public String getCollectionId()
Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2 [(.google.api.field_behavior) = REQUIRED];getCollectionId in interface CreateDocumentRequestOrBuilderpublic com.google.protobuf.ByteString getCollectionIdBytes()
Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2 [(.google.api.field_behavior) = REQUIRED];getCollectionIdBytes in interface CreateDocumentRequestOrBuilderpublic CreateDocumentRequest.Builder setCollectionId(String value)
Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2 [(.google.api.field_behavior) = REQUIRED];value - The collectionId to set.public CreateDocumentRequest.Builder clearCollectionId()
Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2 [(.google.api.field_behavior) = REQUIRED];public CreateDocumentRequest.Builder setCollectionIdBytes(com.google.protobuf.ByteString value)
Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for collectionId to set.public String getDocumentId()
The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service.
string document_id = 3;getDocumentId in interface CreateDocumentRequestOrBuilderpublic com.google.protobuf.ByteString getDocumentIdBytes()
The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service.
string document_id = 3;getDocumentIdBytes in interface CreateDocumentRequestOrBuilderpublic CreateDocumentRequest.Builder setDocumentId(String value)
The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service.
string document_id = 3;value - The documentId to set.public CreateDocumentRequest.Builder clearDocumentId()
The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service.
string document_id = 3;public CreateDocumentRequest.Builder setDocumentIdBytes(com.google.protobuf.ByteString value)
The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service.
string document_id = 3;value - The bytes for documentId to set.public boolean hasDocument()
Required. The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4 [(.google.api.field_behavior) = REQUIRED];
hasDocument in interface CreateDocumentRequestOrBuilderpublic Document getDocument()
Required. The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4 [(.google.api.field_behavior) = REQUIRED];
getDocument in interface CreateDocumentRequestOrBuilderpublic CreateDocumentRequest.Builder setDocument(Document value)
Required. The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4 [(.google.api.field_behavior) = REQUIRED];
public CreateDocumentRequest.Builder setDocument(Document.Builder builderForValue)
Required. The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4 [(.google.api.field_behavior) = REQUIRED];
public CreateDocumentRequest.Builder mergeDocument(Document value)
Required. The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4 [(.google.api.field_behavior) = REQUIRED];
public CreateDocumentRequest.Builder clearDocument()
Required. The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4 [(.google.api.field_behavior) = REQUIRED];
public Document.Builder getDocumentBuilder()
Required. The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4 [(.google.api.field_behavior) = REQUIRED];
public DocumentOrBuilder getDocumentOrBuilder()
Required. The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4 [(.google.api.field_behavior) = REQUIRED];
getDocumentOrBuilder in interface CreateDocumentRequestOrBuilderpublic 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 = 5;hasMask in interface CreateDocumentRequestOrBuilderpublic 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 = 5;getMask in interface CreateDocumentRequestOrBuilderpublic CreateDocumentRequest.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 = 5;public CreateDocumentRequest.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 = 5;public CreateDocumentRequest.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 = 5;public CreateDocumentRequest.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 = 5;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 = 5;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 = 5;getMaskOrBuilder in interface CreateDocumentRequestOrBuilderpublic final CreateDocumentRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public final CreateDocumentRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>Copyright © 2022 Google LLC. All rights reserved.