1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.cloud.talent.v4beta1;
18
19import "google/api/field_behavior.proto";
20import "google/api/resource.proto";
21import "google/cloud/talent/v4beta1/common.proto";
22
23option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb";
24option java_multiple_files = true;
25option java_outer_classname = "CompanyResourceProto";
26option java_package = "com.google.cloud.talent.v4beta1";
27option objc_class_prefix = "CTS";
28
29// A Company resource represents a company in the service. A company is the
30// entity that owns job postings, that is, the hiring entity responsible for
31// employing applicants for the job position.
32message Company {
33  option (google.api.resource) = {
34    type: "jobs.googleapis.com/Company"
35    pattern: "projects/{project}/tenants/{tenant}/companies/{company}"
36    pattern: "projects/{project}/companies/{company}"
37  };
38
39  // Derived details about the company.
40  message DerivedInfo {
41    // A structured headquarters location of the company, resolved from
42    // [Company.headquarters_address][google.cloud.talent.v4beta1.Company.headquarters_address]
43    // if provided.
44    Location headquarters_location = 1;
45  }
46
47  // Required during company update.
48  //
49  // The resource name for a company. This is generated by the service when a
50  // company is created.
51  //
52  // The format is
53  // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
54  // example, "projects/foo/tenants/bar/companies/baz".
55  //
56  // If tenant id is unspecified, the default tenant is used. For
57  // example, "projects/foo/companies/bar".
58  string name = 1;
59
60  // Required. The display name of the company, for example, "Google LLC".
61  string display_name = 2 [(google.api.field_behavior) = REQUIRED];
62
63  // Required. Client side company identifier, used to uniquely identify the
64  // company.
65  //
66  // The maximum number of allowed characters is 255.
67  string external_id = 3 [(google.api.field_behavior) = REQUIRED];
68
69  // The employer's company size.
70  CompanySize size = 4;
71
72  // The street address of the company's main headquarters, which may be
73  // different from the job location. The service attempts
74  // to geolocate the provided address, and populates a more specific
75  // location wherever possible in
76  // [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
77  string headquarters_address = 5;
78
79  // Set to true if it is the hiring agency that post jobs for other
80  // employers.
81  //
82  // Defaults to false if not provided.
83  bool hiring_agency = 6;
84
85  // Equal Employment Opportunity legal disclaimer text to be
86  // associated with all jobs, and typically to be displayed in all
87  // roles.
88  //
89  // The maximum number of allowed characters is 500.
90  string eeo_text = 7;
91
92  // The URI representing the company's primary web site or home page,
93  // for example, "https://www.google.com".
94  //
95  // The maximum number of allowed characters is 255.
96  string website_uri = 8;
97
98  // The URI to employer's career site or careers page on the employer's web
99  // site, for example, "https://careers.google.com".
100  string career_site_uri = 9;
101
102  // A URI that hosts the employer's company logo.
103  string image_uri = 10;
104
105  // This field is deprecated. Please set the searchability of the custom
106  // attribute in the
107  // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
108  // going forward.
109  //
110  // A list of keys of filterable
111  // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
112  // whose corresponding `string_values` are used in keyword searches. Jobs with
113  // `string_values` under these specified field keys are returned if any
114  // of the values match the search keyword. Custom field values with
115  // parenthesis, brackets and special symbols are not searchable as-is,
116  // and those keyword queries must be surrounded by quotes.
117  repeated string keyword_searchable_job_custom_attributes = 11
118      [deprecated = true];
119
120  // Output only. Derived details about the company.
121  DerivedInfo derived_info = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
122
123  // Output only. Indicates whether a company is flagged to be suspended from
124  // public availability by the service when job content appears suspicious,
125  // abusive, or spammy.
126  bool suspended = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
127}
128