#[non_exhaustive]pub struct BatchDeleteEntitiesRequest {
pub parent: String,
pub entity_values: Vec<String>,
pub language_code: String,
/* private fields */
}Available on crate feature
entity-types only.Expand description
The request message for EntityTypes.BatchDeleteEntities.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The name of the entity type to delete entries for. Format:
projects/<Project ID>/agent/entityTypes/<Entity Type ID>.
entity_values: Vec<String>Required. The reference values of the entities to delete. Note that
these are not fully-qualified names, i.e. they don’t start with
projects/<Project ID>.
language_code: StringOptional. The language used to access language-specific data. If not specified, the agent’s default language is used. For more information, see Multilingual intent and entity data.
Implementations§
Source§impl BatchDeleteEntitiesRequest
impl BatchDeleteEntitiesRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_entity_values<T, V>(self, v: T) -> Self
pub fn set_entity_values<T, V>(self, v: T) -> Self
Sets the value of entity_values.
§Example
ⓘ
let x = BatchDeleteEntitiesRequest::new().set_entity_values(["a", "b", "c"]);Sourcepub fn set_language_code<T: Into<String>>(self, v: T) -> Self
pub fn set_language_code<T: Into<String>>(self, v: T) -> Self
Sets the value of language_code.
§Example
ⓘ
let x = BatchDeleteEntitiesRequest::new().set_language_code("example");Trait Implementations§
Source§impl Clone for BatchDeleteEntitiesRequest
impl Clone for BatchDeleteEntitiesRequest
Source§fn clone(&self) -> BatchDeleteEntitiesRequest
fn clone(&self) -> BatchDeleteEntitiesRequest
Returns a duplicate 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 BatchDeleteEntitiesRequest
impl Debug for BatchDeleteEntitiesRequest
Source§impl Default for BatchDeleteEntitiesRequest
impl Default for BatchDeleteEntitiesRequest
Source§fn default() -> BatchDeleteEntitiesRequest
fn default() -> BatchDeleteEntitiesRequest
Returns the “default value” for a type. Read more
Source§impl Message for BatchDeleteEntitiesRequest
impl Message for BatchDeleteEntitiesRequest
impl StructuralPartialEq for BatchDeleteEntitiesRequest
Auto Trait Implementations§
impl Freeze for BatchDeleteEntitiesRequest
impl RefUnwindSafe for BatchDeleteEntitiesRequest
impl Send for BatchDeleteEntitiesRequest
impl Sync for BatchDeleteEntitiesRequest
impl Unpin for BatchDeleteEntitiesRequest
impl UnwindSafe for BatchDeleteEntitiesRequest
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