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()
The collection ID, relative to `parent`, to list.
|
CreateDocumentRequest.Builder |
clearDocument()
The document to create.
|
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()
The parent resource.
|
CreateDocumentRequest.Builder |
clone() |
String |
getCollectionId()
The collection ID, relative to `parent`, to list.
|
com.google.protobuf.ByteString |
getCollectionIdBytes()
The collection ID, relative to `parent`, to list.
|
CreateDocumentRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Document |
getDocument()
The document to create.
|
Document.Builder |
getDocumentBuilder()
The document to create.
|
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()
The document to create.
|
DocumentMask |
getMask()
The fields to return.
|
DocumentMask.Builder |
getMaskBuilder()
The fields to return.
|
DocumentMaskOrBuilder |
getMaskOrBuilder()
The fields to return.
|
String |
getParent()
The parent resource.
|
com.google.protobuf.ByteString |
getParentBytes()
The parent resource.
|
boolean |
hasDocument()
The document to create.
|
boolean |
hasMask()
The fields to return.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CreateDocumentRequest.Builder |
mergeDocument(Document value)
The document to create.
|
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)
The collection ID, relative to `parent`, to list.
|
CreateDocumentRequest.Builder |
setCollectionIdBytes(com.google.protobuf.ByteString value)
The collection ID, relative to `parent`, to list.
|
CreateDocumentRequest.Builder |
setDocument(Document.Builder builderForValue)
The document to create.
|
CreateDocumentRequest.Builder |
setDocument(Document value)
The document to create.
|
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)
The parent resource.
|
CreateDocumentRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
The parent resource.
|
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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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()
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;getParent in interface CreateDocumentRequestOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
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;getParentBytes in interface CreateDocumentRequestOrBuilderpublic CreateDocumentRequest.Builder setParent(String value)
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;public CreateDocumentRequest.Builder clearParent()
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;public CreateDocumentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
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;public String getCollectionId()
The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2;getCollectionId in interface CreateDocumentRequestOrBuilderpublic com.google.protobuf.ByteString getCollectionIdBytes()
The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2;getCollectionIdBytes in interface CreateDocumentRequestOrBuilderpublic CreateDocumentRequest.Builder setCollectionId(String value)
The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2;public CreateDocumentRequest.Builder clearCollectionId()
The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2;public CreateDocumentRequest.Builder setCollectionIdBytes(com.google.protobuf.ByteString value)
The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2;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;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;public boolean hasDocument()
The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4;hasDocument in interface CreateDocumentRequestOrBuilderpublic Document getDocument()
The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4;getDocument in interface CreateDocumentRequestOrBuilderpublic CreateDocumentRequest.Builder setDocument(Document value)
The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4;public CreateDocumentRequest.Builder setDocument(Document.Builder builderForValue)
The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4;public CreateDocumentRequest.Builder mergeDocument(Document value)
The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4;public CreateDocumentRequest.Builder clearDocument()
The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4;public Document.Builder getDocumentBuilder()
The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4;public DocumentOrBuilder getDocumentOrBuilder()
The document to create. `name` must not be set.
.google.firestore.v1.Document document = 4;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 © 2019 Google LLC. All rights reserved.