Enum google_cognitive_apis::api::grpc::google::cloud::dialogflow::v2::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
sourceimpl 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
sourceimpl Clone for EntityTypeBatch
impl Clone for EntityTypeBatch
sourcefn clone(&self) -> EntityTypeBatch
fn clone(&self) -> EntityTypeBatch
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EntityTypeBatch
impl Debug for EntityTypeBatch
sourceimpl PartialEq<EntityTypeBatch> for EntityTypeBatch
impl PartialEq<EntityTypeBatch> for EntityTypeBatch
sourcefn 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 ==
. Read more
impl StructuralPartialEq for EntityTypeBatch
Auto Trait Implementations
impl RefUnwindSafe for EntityTypeBatch
impl Send for EntityTypeBatch
impl Sync for EntityTypeBatch
impl Unpin for EntityTypeBatch
impl UnwindSafe for EntityTypeBatch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request