public static final class CreateDocumentRequest.Builder extends GeneratedMessageV3.Builder<CreateDocumentRequest.Builder> implements CreateDocumentRequestOrBuilder
The request for [Firestore.CreateDocument][google.firestore.v1beta1.Firestore.CreateDocument].Protobuf type
google.firestore.v1beta1.CreateDocumentRequestgetAllFields, 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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic CreateDocumentRequest build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic CreateDocumentRequest buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic CreateDocumentRequest.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder mergeFrom(CreateDocumentRequest other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public CreateDocumentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<CreateDocumentRequest.Builder>java.io.IOExceptionpublic java.lang.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 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(java.lang.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(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 java.lang.String getCollectionId()
The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2;getCollectionId in interface CreateDocumentRequestOrBuilderpublic ByteString getCollectionIdBytes()
The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2;getCollectionIdBytes in interface CreateDocumentRequestOrBuilderpublic CreateDocumentRequest.Builder setCollectionId(java.lang.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(ByteString value)
The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2;public java.lang.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 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(java.lang.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(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.v1beta1.Document document = 4;hasDocument in interface CreateDocumentRequestOrBuilderpublic Document getDocument()
The document to create. `name` must not be set.
.google.firestore.v1beta1.Document document = 4;getDocument in interface CreateDocumentRequestOrBuilderpublic CreateDocumentRequest.Builder setDocument(Document value)
The document to create. `name` must not be set.
.google.firestore.v1beta1.Document document = 4;public CreateDocumentRequest.Builder setDocument(Document.Builder builderForValue)
The document to create. `name` must not be set.
.google.firestore.v1beta1.Document document = 4;public CreateDocumentRequest.Builder mergeDocument(Document value)
The document to create. `name` must not be set.
.google.firestore.v1beta1.Document document = 4;public CreateDocumentRequest.Builder clearDocument()
The document to create. `name` must not be set.
.google.firestore.v1beta1.Document document = 4;public Document.Builder getDocumentBuilder()
The document to create. `name` must not be set.
.google.firestore.v1beta1.Document document = 4;public DocumentOrBuilder getDocumentOrBuilder()
The document to create. `name` must not be set.
.google.firestore.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.DocumentMask mask = 5;getMaskOrBuilder in interface CreateDocumentRequestOrBuilderpublic final CreateDocumentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>public final CreateDocumentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>