companies
Creates, updates, deletes, gets or lists a companies
resource.
Overview
Name | companies |
Type | Resource |
Id | google.jobs.companies |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
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". |
careerSiteUri | string | The URI to employer's career site or careers page on the employer's web site, for example, "https://careers.google.com". |
derivedInfo | object | Output only. Derived details about the company. (id: CompanyDerivedInfo) |
displayName | string | Required. The display name of the company, for example, "Google LLC". |
eeoText | 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. |
externalId | string | Required. Client side company identifier, used to uniquely identify the company. The maximum number of allowed characters is 255. |
headquartersAddress | 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. |
hiringAgency | boolean | Set to true if it is the hiring agency that post jobs for other employers. Defaults to false if not provided. |
imageUri | string | A URI that hosts the employer's company logo. |
keywordSearchableJobCustomAttributes | array | This field is deprecated. Please set the searchability of the custom attribute in the Job.custom_attributes going forward. A list of keys of filterable 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. |
size | string | The employer's company size. |
suspended | boolean | 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. |
websiteUri | 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. |
Successful response
Name | Datatype | Description |
---|---|---|
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". |
careerSiteUri | string | The URI to employer's career site or careers page on the employer's web site, for example, "https://careers.google.com". |
derivedInfo | object | Output only. Derived details about the company. (id: CompanyDerivedInfo) |
displayName | string | Required. The display name of the company, for example, "Google LLC". |
eeoText | 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. |
externalId | string | Required. Client side company identifier, used to uniquely identify the company. The maximum number of allowed characters is 255. |
headquartersAddress | 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. |
hiringAgency | boolean | Set to true if it is the hiring agency that post jobs for other employers. Defaults to false if not provided. |
imageUri | string | A URI that hosts the employer's company logo. |
keywordSearchableJobCustomAttributes | array | This field is deprecated. Please set the searchability of the custom attribute in the Job.custom_attributes going forward. A list of keys of filterable 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. |
size | string | The employer's company size. |
suspended | boolean | 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. |
websiteUri | 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. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , tenantsId , companiesId | Retrieves specified company. | |
list | select | projectsId , tenantsId | pageToken , pageSize , requireOpenJobs | Lists all companies associated with the project. |
create | insert | projectsId , tenantsId | Creates a new company entity. | |
patch | update | projectsId , tenantsId , companiesId | updateMask | Updates specified company. |
delete | delete | projectsId , tenantsId , companiesId | Deletes specified company. Prerequisite: The company has no jobs associated with it. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
companiesId | string | |
projectsId | string | |
tenantsId | string | |
pageSize | integer (int32) | |
pageToken | string | |
requireOpenJobs | boolean | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Retrieves specified company.
SELECT
name,
careerSiteUri,
derivedInfo,
displayName,
eeoText,
externalId,
headquartersAddress,
hiringAgency,
imageUri,
keywordSearchableJobCustomAttributes,
size,
suspended,
websiteUri
FROM google.jobs.companies
WHERE projectsId = '{{ projectsId }}' -- required
AND tenantsId = '{{ tenantsId }}' -- required
AND companiesId = '{{ companiesId }}' -- required;
Lists all companies associated with the project.
SELECT
name,
careerSiteUri,
derivedInfo,
displayName,
eeoText,
externalId,
headquartersAddress,
hiringAgency,
imageUri,
keywordSearchableJobCustomAttributes,
size,
suspended,
websiteUri
FROM google.jobs.companies
WHERE projectsId = '{{ projectsId }}' -- required
AND tenantsId = '{{ tenantsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
AND requireOpenJobs = '{{ requireOpenJobs }}';
INSERT
examples
- create
- Manifest
Creates a new company entity.
INSERT INTO google.jobs.companies (
data__name,
data__displayName,
data__externalId,
data__size,
data__headquartersAddress,
data__hiringAgency,
data__eeoText,
data__websiteUri,
data__careerSiteUri,
data__imageUri,
data__keywordSearchableJobCustomAttributes,
projectsId,
tenantsId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ externalId }}',
'{{ size }}',
'{{ headquartersAddress }}',
{{ hiringAgency }},
'{{ eeoText }}',
'{{ websiteUri }}',
'{{ careerSiteUri }}',
'{{ imageUri }}',
'{{ keywordSearchableJobCustomAttributes }}',
'{{ projectsId }}',
'{{ tenantsId }}'
RETURNING
name,
careerSiteUri,
derivedInfo,
displayName,
eeoText,
externalId,
headquartersAddress,
hiringAgency,
imageUri,
keywordSearchableJobCustomAttributes,
size,
suspended,
websiteUri
;
# Description fields are for documentation purposes
- name: companies
props:
- name: projectsId
value: string
description: Required parameter for the companies resource.
- name: tenantsId
value: string
description: Required parameter for the companies resource.
- name: name
value: string
description: >
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".
- name: displayName
value: string
description: >
Required. The display name of the company, for example, "Google LLC".
- name: externalId
value: string
description: >
Required. Client side company identifier, used to uniquely identify the company. The maximum number of allowed characters is 255.
- name: size
value: string
description: >
The employer's company size.
valid_values: ['COMPANY_SIZE_UNSPECIFIED', 'MINI', 'SMALL', 'SMEDIUM', 'MEDIUM', 'BIG', 'BIGGER', 'GIANT']
- name: headquartersAddress
value: string
description: >
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.
- name: hiringAgency
value: boolean
description: >
Set to true if it is the hiring agency that post jobs for other employers. Defaults to false if not provided.
- name: eeoText
value: string
description: >
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.
- name: websiteUri
value: string
description: >
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.
- name: careerSiteUri
value: string
description: >
The URI to employer's career site or careers page on the employer's web site, for example, "https://careers.google.com".
- name: imageUri
value: string
description: >
A URI that hosts the employer's company logo.
- name: keywordSearchableJobCustomAttributes
value: array
description: >
This field is deprecated. Please set the searchability of the custom attribute in the Job.custom_attributes going forward. A list of keys of filterable 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.
UPDATE
examples
- patch
Updates specified company.
UPDATE google.jobs.companies
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__externalId = '{{ externalId }}',
data__size = '{{ size }}',
data__headquartersAddress = '{{ headquartersAddress }}',
data__hiringAgency = {{ hiringAgency }},
data__eeoText = '{{ eeoText }}',
data__websiteUri = '{{ websiteUri }}',
data__careerSiteUri = '{{ careerSiteUri }}',
data__imageUri = '{{ imageUri }}',
data__keywordSearchableJobCustomAttributes = '{{ keywordSearchableJobCustomAttributes }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND tenantsId = '{{ tenantsId }}' --required
AND companiesId = '{{ companiesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
careerSiteUri,
derivedInfo,
displayName,
eeoText,
externalId,
headquartersAddress,
hiringAgency,
imageUri,
keywordSearchableJobCustomAttributes,
size,
suspended,
websiteUri;
DELETE
examples
- delete
Deletes specified company. Prerequisite: The company has no jobs associated with it.
DELETE FROM google.jobs.companies
WHERE projectsId = '{{ projectsId }}' --required
AND tenantsId = '{{ tenantsId }}' --required
AND companiesId = '{{ companiesId }}' --required;