#[non_exhaustive]pub struct BatchUpdateEntityTypesRequest {
pub parent: String,
pub language_code: String,
pub update_mask: Option<FieldMask>,
pub entity_type_batch: Option<EntityTypeBatch>,
/* private fields */
}entity-types only.Expand description
The request message for EntityTypes.BatchUpdateEntityTypes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The name of the agent to update or create entity types in.
Format: projects/<Project ID>/agent.
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.
update_mask: Option<FieldMask>Optional. The mask to control which fields get updated.
entity_type_batch: Option<EntityTypeBatch>The source of the entity type batch.
For each entity type in the batch:
- If
nameis specified, we update an existing entity type. - If
nameis not specified, we create a new entity type.
Implementations§
Source§impl BatchUpdateEntityTypesRequest
impl BatchUpdateEntityTypesRequest
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_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 = BatchUpdateEntityTypesRequest::new().set_language_code("example");Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
use wkt::FieldMask;
let x = BatchUpdateEntityTypesRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
use wkt::FieldMask;
let x = BatchUpdateEntityTypesRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = BatchUpdateEntityTypesRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_entity_type_batch<T: Into<Option<EntityTypeBatch>>>(
self,
v: T,
) -> Self
pub fn set_entity_type_batch<T: Into<Option<EntityTypeBatch>>>( self, v: T, ) -> Self
Sets the value of entity_type_batch.
Note that all the setters affecting entity_type_batch are mutually
exclusive.
§Example
use google_cloud_dialogflow_v2::model::batch_update_entity_types_request::EntityTypeBatch;
let x = BatchUpdateEntityTypesRequest::new().set_entity_type_batch(Some(EntityTypeBatch::EntityTypeBatchUri("example".to_string())));Sourcepub fn entity_type_batch_uri(&self) -> Option<&String>
pub fn entity_type_batch_uri(&self) -> Option<&String>
The value of entity_type_batch
if it holds a EntityTypeBatchUri, None if the field is not set or
holds a different branch.
Sourcepub fn set_entity_type_batch_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_type_batch_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of entity_type_batch
to hold a EntityTypeBatchUri.
Note that all the setters affecting entity_type_batch are
mutually exclusive.
§Example
let x = BatchUpdateEntityTypesRequest::new().set_entity_type_batch_uri("example");
assert!(x.entity_type_batch_uri().is_some());
assert!(x.entity_type_batch_inline().is_none());Sourcepub fn entity_type_batch_inline(&self) -> Option<&Box<EntityTypeBatch>>
pub fn entity_type_batch_inline(&self) -> Option<&Box<EntityTypeBatch>>
The value of entity_type_batch
if it holds a EntityTypeBatchInline, None if the field is not set or
holds a different branch.
Sourcepub fn set_entity_type_batch_inline<T: Into<Box<EntityTypeBatch>>>(
self,
v: T,
) -> Self
pub fn set_entity_type_batch_inline<T: Into<Box<EntityTypeBatch>>>( self, v: T, ) -> Self
Sets the value of entity_type_batch
to hold a EntityTypeBatchInline.
Note that all the setters affecting entity_type_batch are
mutually exclusive.
§Example
use google_cloud_dialogflow_v2::model::EntityTypeBatch;
let x = BatchUpdateEntityTypesRequest::new().set_entity_type_batch_inline(EntityTypeBatch::default()/* use setters */);
assert!(x.entity_type_batch_inline().is_some());
assert!(x.entity_type_batch_uri().is_none());Trait Implementations§
Source§impl Clone for BatchUpdateEntityTypesRequest
impl Clone for BatchUpdateEntityTypesRequest
Source§fn clone(&self) -> BatchUpdateEntityTypesRequest
fn clone(&self) -> BatchUpdateEntityTypesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for BatchUpdateEntityTypesRequest
impl Default for BatchUpdateEntityTypesRequest
Source§fn default() -> BatchUpdateEntityTypesRequest
fn default() -> BatchUpdateEntityTypesRequest
Source§impl PartialEq for BatchUpdateEntityTypesRequest
impl PartialEq for BatchUpdateEntityTypesRequest
Source§fn eq(&self, other: &BatchUpdateEntityTypesRequest) -> bool
fn eq(&self, other: &BatchUpdateEntityTypesRequest) -> bool
self and other values to be equal, and is used by ==.