lib/google/cloud/talent/v4/company_service_pb.rb in google-cloud-talent-v4-0.9.1 vs lib/google/cloud/talent/v4/company_service_pb.rb in google-cloud-talent-v4-0.10.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/talent/v4/company_service.proto
require 'google/protobuf'
@@ -10,37 +11,37 @@
require 'google/cloud/talent/v4/common_pb'
require 'google/cloud/talent/v4/company_pb'
require 'google/protobuf/empty_pb'
require 'google/protobuf/field_mask_pb'
-Google::Protobuf::DescriptorPool.generated_pool.build do
- add_file("google/cloud/talent/v4/company_service.proto", :syntax => :proto3) do
- add_message "google.cloud.talent.v4.CreateCompanyRequest" do
- optional :parent, :string, 1
- optional :company, :message, 2, "google.cloud.talent.v4.Company"
+
+descriptor_data = "\n,google/cloud/talent/v4/company_service.proto\x12\x16google.cloud.talent.v4\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/talent/v4/common.proto\x1a$google/cloud/talent/v4/company.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x81\x01\n\x14\x43reateCompanyRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\x12\x35\n\x07\x63ompany\x18\x02 \x01(\x0b\x32\x1f.google.cloud.talent.v4.CompanyB\x03\xe0\x41\x02\"F\n\x11GetCompanyRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\"~\n\x14UpdateCompanyRequest\x12\x35\n\x07\x63ompany\x18\x01 \x01(\x0b\x32\x1f.google.cloud.talent.v4.CompanyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"I\n\x14\x44\x65leteCompanyRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\"\x8c\x01\n\x14ListCompaniesRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x19\n\x11require_open_jobs\x18\x04 \x01(\x08\"\xa0\x01\n\x15ListCompaniesResponse\x12\x32\n\tcompanies\x18\x01 \x03(\x0b\x32\x1f.google.cloud.talent.v4.Company\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12:\n\x08metadata\x18\x03 \x01(\x0b\x32(.google.cloud.talent.v4.ResponseMetadata2\xc3\x07\n\x0e\x43ompanyService\x12\xad\x01\n\rCreateCompany\x12,.google.cloud.talent.v4.CreateCompanyRequest\x1a\x1f.google.cloud.talent.v4.Company\"M\x82\xd3\xe4\x93\x02\x36\"+/v4/{parent=projects/*/tenants/*}/companies:\x07\x63ompany\xda\x41\x0eparent,company\x12\x94\x01\n\nGetCompany\x12).google.cloud.talent.v4.GetCompanyRequest\x1a\x1f.google.cloud.talent.v4.Company\":\x82\xd3\xe4\x93\x02-\x12+/v4/{name=projects/*/tenants/*/companies/*}\xda\x41\x04name\x12\xba\x01\n\rUpdateCompany\x12,.google.cloud.talent.v4.UpdateCompanyRequest\x1a\x1f.google.cloud.talent.v4.Company\"Z\x82\xd3\xe4\x93\x02>23/v4/{company.name=projects/*/tenants/*/companies/*}:\x07\x63ompany\xda\x41\x13\x63ompany,update_mask\x12\x91\x01\n\rDeleteCompany\x12,.google.cloud.talent.v4.DeleteCompanyRequest\x1a\x16.google.protobuf.Empty\":\x82\xd3\xe4\x93\x02-*+/v4/{name=projects/*/tenants/*/companies/*}\xda\x41\x04name\x12\xaa\x01\n\rListCompanies\x12,.google.cloud.talent.v4.ListCompaniesRequest\x1a-.google.cloud.talent.v4.ListCompaniesResponse\"<\x82\xd3\xe4\x93\x02-\x12+/v4/{parent=projects/*/tenants/*}/companies\xda\x41\x06parent\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsBm\n\x1a\x63om.google.cloud.talent.v4B\x13\x43ompanyServiceProtoP\x01Z2cloud.google.com/go/talent/apiv4/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
+
+pool = Google::Protobuf::DescriptorPool.generated_pool
+
+begin
+ pool.add_serialized_file(descriptor_data)
+rescue TypeError => e
+ # Compatibility code: will be removed in the next major version.
+ require 'google/protobuf/descriptor_pb'
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
+ parsed.clear_dependency
+ serialized = parsed.class.encode(parsed)
+ file = pool.add_serialized_file(serialized)
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
+ imports = [
+ ["google.cloud.talent.v4.Company", "google/cloud/talent/v4/company.proto"],
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
+ ["google.cloud.talent.v4.ResponseMetadata", "google/cloud/talent/v4/common.proto"],
+ ]
+ imports.each do |type_name, expected_filename|
+ import_file = pool.lookup(type_name).file_descriptor
+ if import_file.name != expected_filename
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
end
- add_message "google.cloud.talent.v4.GetCompanyRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.talent.v4.UpdateCompanyRequest" do
- optional :company, :message, 1, "google.cloud.talent.v4.Company"
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
- end
- add_message "google.cloud.talent.v4.DeleteCompanyRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.talent.v4.ListCompaniesRequest" do
- optional :parent, :string, 1
- optional :page_token, :string, 2
- optional :page_size, :int32, 3
- optional :require_open_jobs, :bool, 4
- end
- add_message "google.cloud.talent.v4.ListCompaniesResponse" do
- repeated :companies, :message, 1, "google.cloud.talent.v4.Company"
- optional :next_page_token, :string, 2
- optional :metadata, :message, 3, "google.cloud.talent.v4.ResponseMetadata"
- end
end
+ warn "Each proto file must use a consistent fully-qualified name."
+ warn "This will become an error in the next major version."
end
module Google
module Cloud
module Talent