pub struct GetSupportedLanguagesRequest {
pub parent: String,
pub display_language_code: String,
pub model: String,
}
Expand description
The request message for discovering supported languages.
Fields§
§parent: String
Required. Project or location to make a call. Must refer to a caller’s project.
Format: projects/{project-number-or-id}
or
projects/{project-number-or-id}/locations/{location-id}
.
For global calls, use projects/{project-number-or-id}/locations/global
or
projects/{project-number-or-id}
.
Non-global location is required for AutoML models.
Only models within the same region (have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
display_language_code: String
Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response.
model: String
Optional. Get supported languages of this model.
The format depends on model type:
-
AutoML Translation models:
projects/{project-number-or-id}/locations/{location-id}/models/{model-id}
-
General (built-in) models:
projects/{project-number-or-id}/locations/{location-id}/models/general/nmt
,
Returns languages supported by the specified model. If missing, we get supported languages of Google general NMT model.
Trait Implementations§
source§impl Clone for GetSupportedLanguagesRequest
impl Clone for GetSupportedLanguagesRequest
source§fn clone(&self) -> GetSupportedLanguagesRequest
fn clone(&self) -> GetSupportedLanguagesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetSupportedLanguagesRequest
impl Debug for GetSupportedLanguagesRequest
source§impl Message for GetSupportedLanguagesRequest
impl Message for GetSupportedLanguagesRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for GetSupportedLanguagesRequest
impl PartialEq for GetSupportedLanguagesRequest
source§fn eq(&self, other: &GetSupportedLanguagesRequest) -> bool
fn eq(&self, other: &GetSupportedLanguagesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetSupportedLanguagesRequest
Auto Trait Implementations§
impl Freeze for GetSupportedLanguagesRequest
impl RefUnwindSafe for GetSupportedLanguagesRequest
impl Send for GetSupportedLanguagesRequest
impl Sync for GetSupportedLanguagesRequest
impl Unpin for GetSupportedLanguagesRequest
impl UnwindSafe for GetSupportedLanguagesRequest
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