Enum google_cognitive_apis::api::grpc::google::cloud::dialogflow::v2::batch_update_intents_request::IntentBatch
source · [−]pub enum IntentBatch {
IntentBatchUri(String),
IntentBatchInline(IntentBatch),
}
Expand description
The source of the intent batch.
Variants
IntentBatchUri(String)
The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with “gs://”.
IntentBatchInline(IntentBatch)
The collection of intents to update or create.
Implementations
sourceimpl IntentBatch
impl IntentBatch
sourcepub fn merge<B>(
field: &mut Option<IntentBatch>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
pub fn merge<B>(
field: &mut Option<IntentBatch>,
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 IntentBatch
impl Clone for IntentBatch
sourcefn clone(&self) -> IntentBatch
fn clone(&self) -> IntentBatch
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 IntentBatch
impl Debug for IntentBatch
sourceimpl PartialEq<IntentBatch> for IntentBatch
impl PartialEq<IntentBatch> for IntentBatch
sourcefn eq(&self, other: &IntentBatch) -> bool
fn eq(&self, other: &IntentBatch) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for IntentBatch
Auto Trait Implementations
impl RefUnwindSafe for IntentBatch
impl Send for IntentBatch
impl Sync for IntentBatch
impl Unpin for IntentBatch
impl UnwindSafe for IntentBatch
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