Struct google_api_proto::google::cloud::discoveryengine::v1alpha::CreateDocumentRequest
source · pub struct CreateDocumentRequest {
pub parent: String,
pub document: Option<Document>,
pub document_id: String,
}
Expand description
Request message for [DocumentService.CreateDocument][google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocument] method.
Fields§
§parent: String
Required. The parent resource name, such as
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}
.
document: Option<Document>
Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to create.
document_id: String
Required. The ID to use for the [Document][google.cloud.discoveryengine.v1alpha.Document], which becomes the final component of the [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
If the caller does not have permission to create the
[Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
whether or not it exists, a PERMISSION_DENIED
error is returned.
This field must be unique among all
[Document][google.cloud.discoveryengine.v1alpha.Document]s with the same
[parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent].
Otherwise, an ALREADY_EXISTS
error is returned.
This field must conform to RFC-1034
standard with a length limit of 63 characters. Otherwise, an
INVALID_ARGUMENT
error is returned.
Trait Implementations§
source§impl Clone for CreateDocumentRequest
impl Clone for CreateDocumentRequest
source§fn clone(&self) -> CreateDocumentRequest
fn clone(&self) -> CreateDocumentRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateDocumentRequest
impl Debug for CreateDocumentRequest
source§impl Default for CreateDocumentRequest
impl Default for CreateDocumentRequest
source§impl Message for CreateDocumentRequest
impl Message for CreateDocumentRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CreateDocumentRequest
impl PartialEq for CreateDocumentRequest
source§fn eq(&self, other: &CreateDocumentRequest) -> bool
fn eq(&self, other: &CreateDocumentRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateDocumentRequest
Auto Trait Implementations§
impl !Freeze for CreateDocumentRequest
impl RefUnwindSafe for CreateDocumentRequest
impl Send for CreateDocumentRequest
impl Sync for CreateDocumentRequest
impl Unpin for CreateDocumentRequest
impl UnwindSafe for CreateDocumentRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request