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, 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<CreateDocumentRequest.Builder>
public CreateDocumentRequest.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<CreateDocumentRequest.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<CreateDocumentRequest.Builder>
public CreateDocumentRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public CreateDocumentRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public CreateDocumentRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public CreateDocumentRequest.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<CreateDocumentRequest.Builder>
public CreateDocumentRequest.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<CreateDocumentRequest.Builder>
public CreateDocumentRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CreateDocumentRequest.Builder>
IOException
public 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 CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public 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 CreateDocumentRequestOrBuilder
public 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 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.v1.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.v1.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.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 CreateDocumentRequestOrBuilder
public final CreateDocumentRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateDocumentRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.