Struct google_api_proto::google::cloud::translation::v3::ListGlossariesRequest
source · pub struct ListGlossariesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
}
Expand description
Request message for ListGlossaries.
Fields§
§parent: String
Required. The name of the project from which to list all of the glossaries.
page_size: i32
Optional. Requested page size. The server may return fewer glossaries than requested. If unspecified, the server picks an appropriate default.
page_token: String
Optional. A token identifying a page of results the server should return.
Typically, this is the value of [ListGlossariesResponse.next_page_token]
returned from the previous call to ListGlossaries
method.
The first page is returned if page_token
is empty or missing.
filter: String
Optional. Filter specifying constraints of a list operation. Specify the constraint by the format of “key=value”, where key must be “src” or “tgt”, and the value must be a valid language code. For multiple restrictions, concatenate them by “AND” (uppercase only), such as: “src=en-US AND tgt=zh-CN”. Notice that the exact match is used here, which means using ‘en-US’ and ‘en’ can lead to different results, which depends on the language code you used when you create the glossary. For the unidirectional glossaries, the “src” and “tgt” add restrictions on the source and target language code separately. For the equivalent term set glossaries, the “src” and/or “tgt” add restrictions on the term set. For example: “src=en-US AND tgt=zh-CN” will only pick the unidirectional glossaries which exactly match the source language code as “en-US” and the target language code “zh-CN”, but all equivalent term set glossaries which contain “en-US” and “zh-CN” in their language set will be picked. If missing, no filtering is performed.
Trait Implementations§
source§impl Clone for ListGlossariesRequest
impl Clone for ListGlossariesRequest
source§fn clone(&self) -> ListGlossariesRequest
fn clone(&self) -> ListGlossariesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListGlossariesRequest
impl Debug for ListGlossariesRequest
source§impl Default for ListGlossariesRequest
impl Default for ListGlossariesRequest
source§impl Message for ListGlossariesRequest
impl Message for ListGlossariesRequest
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 ListGlossariesRequest
impl PartialEq for ListGlossariesRequest
source§fn eq(&self, other: &ListGlossariesRequest) -> bool
fn eq(&self, other: &ListGlossariesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListGlossariesRequest
Auto Trait Implementations§
impl Freeze for ListGlossariesRequest
impl RefUnwindSafe for ListGlossariesRequest
impl Send for ListGlossariesRequest
impl Sync for ListGlossariesRequest
impl Unpin for ListGlossariesRequest
impl UnwindSafe for ListGlossariesRequest
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