pub struct Company {Show 13 fields
pub name: String,
pub display_name: String,
pub external_id: String,
pub size: i32,
pub headquarters_address: String,
pub hiring_agency: bool,
pub eeo_text: String,
pub website_uri: String,
pub career_site_uri: String,
pub image_uri: String,
pub keyword_searchable_job_custom_attributes: Vec<String>,
pub derived_info: Option<DerivedInfo>,
pub suspended: bool,
}
Expand description
A Company resource represents a company in the service. A company is the entity that owns job postings, that is, the hiring entity responsible for employing applicants for the job position.
Fields§
§name: String
Required during company update.
The resource name for a company. This is generated by the service when a company is created.
The format is “projects/{project_id}/tenants/{tenant_id}/companies/{company_id}”, for example, “projects/foo/tenants/bar/companies/baz”.
If tenant id is unspecified, the default tenant is used. For example, “projects/foo/companies/bar”.
display_name: String
Required. The display name of the company, for example, “Google LLC”.
external_id: String
Required. Client side company identifier, used to uniquely identify the company.
The maximum number of allowed characters is 255.
size: i32
The employer’s company size.
headquarters_address: String
The street address of the company’s main headquarters, which may be different from the job location. The service attempts to geolocate the provided address, and populates a more specific location wherever possible in [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
hiring_agency: bool
Set to true if it is the hiring agency that post jobs for other employers.
Defaults to false if not provided.
eeo_text: String
Equal Employment Opportunity legal disclaimer text to be associated with all jobs, and typically to be displayed in all roles.
The maximum number of allowed characters is 500.
website_uri: String
The URI representing the company’s primary web site or home page, for example, “https://www.google.com".
The maximum number of allowed characters is 255.
career_site_uri: String
The URI to employer’s career site or careers page on the employer’s web site, for example, “https://careers.google.com".
image_uri: String
A URI that hosts the employer’s company logo.
keyword_searchable_job_custom_attributes: Vec<String>
This field is deprecated. Please set the searchability of the custom attribute in the [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] going forward.
A list of keys of filterable
[Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
whose corresponding string_values
are used in keyword searches. Jobs with
string_values
under these specified field keys are returned if any
of the values match the search keyword. Custom field values with
parenthesis, brackets and special symbols are not searchable as-is,
and those keyword queries must be surrounded by quotes.
derived_info: Option<DerivedInfo>
Output only. Derived details about the company.
suspended: bool
Output only. Indicates whether a company is flagged to be suspended from public availability by the service when job content appears suspicious, abusive, or spammy.
Implementations§
source§impl Company
impl Company
sourcepub fn size(&self) -> CompanySize
pub fn size(&self) -> CompanySize
Returns the enum value of size
, or the default if the field is set to an invalid enum value.
sourcepub fn set_size(&mut self, value: CompanySize)
pub fn set_size(&mut self, value: CompanySize)
Sets size
to the provided enum value.
Trait Implementations§
source§impl Message for Company
impl Message for Company
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 Company
impl PartialEq for Company
impl StructuralPartialEq for Company
Auto Trait Implementations§
impl Freeze for Company
impl RefUnwindSafe for Company
impl Send for Company
impl Sync for Company
impl Unpin for Company
impl UnwindSafe for Company
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