company.proto 4.8 KB

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