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.CreateDocumentRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
public CreateDocumentRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
public CreateDocumentRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public CreateDocumentRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public CreateDocumentRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public CreateDocumentRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
public CreateDocumentRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
public CreateDocumentRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
public CreateDocumentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
public CreateDocumentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
public CreateDocumentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
public CreateDocumentRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<CreateDocumentRequest.Builder>
public CreateDocumentRequest.Builder mergeFrom(CreateDocumentRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
public CreateDocumentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<CreateDocumentRequest.Builder>
java.io.IOException
public 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 CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public ByteString getCollectionIdBytes()
The collection ID, relative to `parent`, to list. For example: `chatrooms`.
string collection_id = 2;
getCollectionIdBytes
in interface CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public Document getDocument()
The document to create. `name` must not be set.
.google.firestore.v1beta1.Document document = 4;
getDocument
in interface CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
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.v1beta1.DocumentMask mask = 5;
hasMask
in interface CreateDocumentRequestOrBuilder
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.v1beta1.DocumentMask mask = 5;
getMask
in interface CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public final CreateDocumentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
public final CreateDocumentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>