123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- syntax = "proto3";
- package google.cloud.talent.v4;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/talent/v4/common.proto";
- import "google/cloud/talent/v4/company.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
- option java_multiple_files = true;
- option java_outer_classname = "CompanyServiceProto";
- option java_package = "com.google.cloud.talent.v4";
- option objc_class_prefix = "CTS";
- service CompanyService {
- option (google.api.default_host) = "jobs.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform,"
- "https://www.googleapis.com/auth/jobs";
-
- rpc CreateCompany(CreateCompanyRequest) returns (Company) {
- option (google.api.http) = {
- post: "/v4/{parent=projects/*/tenants/*}/companies"
- body: "company"
- };
- option (google.api.method_signature) = "parent,company";
- }
-
- rpc GetCompany(GetCompanyRequest) returns (Company) {
- option (google.api.http) = {
- get: "/v4/{name=projects/*/tenants/*/companies/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc UpdateCompany(UpdateCompanyRequest) returns (Company) {
- option (google.api.http) = {
- patch: "/v4/{company.name=projects/*/tenants/*/companies/*}"
- body: "company"
- };
- option (google.api.method_signature) = "company,update_mask";
- }
-
-
- rpc DeleteCompany(DeleteCompanyRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v4/{name=projects/*/tenants/*/companies/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListCompanies(ListCompaniesRequest) returns (ListCompaniesResponse) {
- option (google.api.http) = {
- get: "/v4/{parent=projects/*/tenants/*}/companies"
- };
- option (google.api.method_signature) = "parent";
- }
- }
- message CreateCompanyRequest {
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "jobs.googleapis.com/Tenant"
- }
- ];
-
- Company company = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message GetCompanyRequest {
-
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "jobs.googleapis.com/Company"
- }
- ];
- }
- message UpdateCompanyRequest {
-
- Company company = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message DeleteCompanyRequest {
-
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "jobs.googleapis.com/Company"
- }
- ];
- }
- message ListCompaniesRequest {
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "jobs.googleapis.com/Tenant"
- }
- ];
-
- string page_token = 2;
-
-
- int32 page_size = 3;
-
-
-
-
-
-
- bool require_open_jobs = 4;
- }
- message ListCompaniesResponse {
-
- repeated Company companies = 1;
-
- string next_page_token = 2;
-
-
- ResponseMetadata metadata = 3;
- }
|