Struct google_api_proto::google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest
source · pub struct ImportEntityTypesRequest {
pub parent: String,
pub merge_option: i32,
pub target_entity_type: String,
pub entity_types: Option<EntityTypes>,
}
Expand description
The request message for [EntityTypes.ImportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ImportEntityTypes].
Fields§
§parent: String
Required. The agent to import the entity types into.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>
.
merge_option: i32
Required. Merge option for importing entity types.
target_entity_type: String
Optional. The target entity type to import into.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entity_types/<EntityType ID>
.
If set, there should be only one entity type included in
[entity_types][google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.entity_types],
of which the type should match the type of the target entity type. All
[entities][google.cloud.dialogflow.cx.v3.EntityType.entities] in the
imported entity type will be added to the target entity type.
entity_types: Option<EntityTypes>
Required. The entity types to import.
Implementations§
source§impl ImportEntityTypesRequest
impl ImportEntityTypesRequest
sourcepub fn merge_option(&self) -> MergeOption
pub fn merge_option(&self) -> MergeOption
Returns the enum value of merge_option
, or the default if the field is set to an invalid enum value.
sourcepub fn set_merge_option(&mut self, value: MergeOption)
pub fn set_merge_option(&mut self, value: MergeOption)
Sets merge_option
to the provided enum value.
Trait Implementations§
source§impl Clone for ImportEntityTypesRequest
impl Clone for ImportEntityTypesRequest
source§fn clone(&self) -> ImportEntityTypesRequest
fn clone(&self) -> ImportEntityTypesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportEntityTypesRequest
impl Debug for ImportEntityTypesRequest
source§impl Default for ImportEntityTypesRequest
impl Default for ImportEntityTypesRequest
source§impl Message for ImportEntityTypesRequest
impl Message for ImportEntityTypesRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for ImportEntityTypesRequest
impl PartialEq for ImportEntityTypesRequest
source§fn eq(&self, other: &ImportEntityTypesRequest) -> bool
fn eq(&self, other: &ImportEntityTypesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImportEntityTypesRequest
Auto Trait Implementations§
impl !Freeze for ImportEntityTypesRequest
impl RefUnwindSafe for ImportEntityTypesRequest
impl Send for ImportEntityTypesRequest
impl Sync for ImportEntityTypesRequest
impl Unpin for ImportEntityTypesRequest
impl UnwindSafe for ImportEntityTypesRequest
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