company.proto 4.5 KB

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