Enum google_api_proto::google::cloud::dialogflow::v2beta1::batch_update_entity_types_request::EntityTypeBatch
source · pub enum EntityTypeBatch {
EntityTypeBatchUri(String),
EntityTypeBatchInline(EntityTypeBatch),
}
Expand description
The source of the entity type batch.
For each entity type in the batch:
- If
name
is specified, we update an existing entity type. - If
name
is not specified, we create a new entity type.
Variants§
EntityTypeBatchUri(String)
The URI to a Google Cloud Storage file containing entity types to update or create. The file format can either be a serialized proto (of EntityBatch type) or a JSON object. Note: The URI must start with “gs://”.
EntityTypeBatchInline(EntityTypeBatch)
The collection of entity types to update or create.
Implementations§
source§impl EntityTypeBatch
impl EntityTypeBatch
sourcepub fn merge<B>(
field: &mut Option<EntityTypeBatch>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<EntityTypeBatch>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for EntityTypeBatch
impl Clone for EntityTypeBatch
source§fn clone(&self) -> EntityTypeBatch
fn clone(&self) -> EntityTypeBatch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EntityTypeBatch
impl Debug for EntityTypeBatch
source§impl PartialEq for EntityTypeBatch
impl PartialEq for EntityTypeBatch
source§fn eq(&self, other: &EntityTypeBatch) -> bool
fn eq(&self, other: &EntityTypeBatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EntityTypeBatch
Auto Trait Implementations§
impl Freeze for EntityTypeBatch
impl RefUnwindSafe for EntityTypeBatch
impl Send for EntityTypeBatch
impl Sync for EntityTypeBatch
impl Unpin for EntityTypeBatch
impl UnwindSafe for EntityTypeBatch
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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request