Struct google_api_proto::google::cloud::talent::v4::CompleteQueryRequest
source · pub struct CompleteQueryRequest {
pub tenant: String,
pub query: String,
pub language_codes: Vec<String>,
pub page_size: i32,
pub company: String,
pub scope: i32,
pub type: i32,
}
Expand description
Auto-complete parameters.
Fields§
§tenant: String
Required. Resource name of tenant the completion is performed within.
The format is “projects/{project_id}/tenants/{tenant_id}”, for example, “projects/foo/tenants/bar”.
query: String
Required. The query used to generate suggestions.
The maximum number of allowed characters is 255.
language_codes: Vec<String>
The list of languages of the query. This is the BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see Tags for Identifying Languages.
The maximum number of allowed characters is 255.
page_size: i32
Required. Completion result count.
The maximum allowed page size is 10.
company: String
If provided, restricts completion to specified company.
The format is “projects/{project_id}/tenants/{tenant_id}/companies/{company_id}”, for example, “projects/foo/tenants/bar/companies/baz”.
scope: i32
The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC].
type: i32
The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
Implementations§
source§impl CompleteQueryRequest
impl CompleteQueryRequest
sourcepub fn scope(&self) -> CompletionScope
pub fn scope(&self) -> CompletionScope
Returns the enum value of scope
, or the default if the field is set to an invalid enum value.
sourcepub fn set_scope(&mut self, value: CompletionScope)
pub fn set_scope(&mut self, value: CompletionScope)
Sets scope
to the provided enum value.
sourcepub fn type(&self) -> CompletionType
pub fn type(&self) -> CompletionType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: CompletionType)
pub fn set_type(&mut self, value: CompletionType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Clone for CompleteQueryRequest
impl Clone for CompleteQueryRequest
source§fn clone(&self) -> CompleteQueryRequest
fn clone(&self) -> CompleteQueryRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CompleteQueryRequest
impl Debug for CompleteQueryRequest
source§impl Default for CompleteQueryRequest
impl Default for CompleteQueryRequest
source§impl Message for CompleteQueryRequest
impl Message for CompleteQueryRequest
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 CompleteQueryRequest
impl PartialEq for CompleteQueryRequest
source§fn eq(&self, other: &CompleteQueryRequest) -> bool
fn eq(&self, other: &CompleteQueryRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CompleteQueryRequest
Auto Trait Implementations§
impl Freeze for CompleteQueryRequest
impl RefUnwindSafe for CompleteQueryRequest
impl Send for CompleteQueryRequest
impl Sync for CompleteQueryRequest
impl Unpin for CompleteQueryRequest
impl UnwindSafe for CompleteQueryRequest
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