Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

658 righe
26 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/talent/v4beta1/company_service.proto
  3. package talent // import "google.golang.org/genproto/googleapis/cloud/talent/v4beta1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import empty "github.com/golang/protobuf/ptypes/empty"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. import field_mask "google.golang.org/genproto/protobuf/field_mask"
  10. import (
  11. context "golang.org/x/net/context"
  12. grpc "google.golang.org/grpc"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the proto package it is being compiled against.
  20. // A compilation error at this line likely means your copy of the
  21. // proto package needs to be updated.
  22. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  23. // The Request of the CreateCompany method.
  24. type CreateCompanyRequest struct {
  25. // Required.
  26. //
  27. // Resource name of the project under which the company is created.
  28. //
  29. // The format is "projects/{project_id}", for example,
  30. // "projects/api-test-project".
  31. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  32. // Required.
  33. //
  34. // The company to be created.
  35. Company *Company `protobuf:"bytes,2,opt,name=company,proto3" json:"company,omitempty"`
  36. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  37. XXX_unrecognized []byte `json:"-"`
  38. XXX_sizecache int32 `json:"-"`
  39. }
  40. func (m *CreateCompanyRequest) Reset() { *m = CreateCompanyRequest{} }
  41. func (m *CreateCompanyRequest) String() string { return proto.CompactTextString(m) }
  42. func (*CreateCompanyRequest) ProtoMessage() {}
  43. func (*CreateCompanyRequest) Descriptor() ([]byte, []int) {
  44. return fileDescriptor_company_service_4f27ad8b55d83637, []int{0}
  45. }
  46. func (m *CreateCompanyRequest) XXX_Unmarshal(b []byte) error {
  47. return xxx_messageInfo_CreateCompanyRequest.Unmarshal(m, b)
  48. }
  49. func (m *CreateCompanyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  50. return xxx_messageInfo_CreateCompanyRequest.Marshal(b, m, deterministic)
  51. }
  52. func (dst *CreateCompanyRequest) XXX_Merge(src proto.Message) {
  53. xxx_messageInfo_CreateCompanyRequest.Merge(dst, src)
  54. }
  55. func (m *CreateCompanyRequest) XXX_Size() int {
  56. return xxx_messageInfo_CreateCompanyRequest.Size(m)
  57. }
  58. func (m *CreateCompanyRequest) XXX_DiscardUnknown() {
  59. xxx_messageInfo_CreateCompanyRequest.DiscardUnknown(m)
  60. }
  61. var xxx_messageInfo_CreateCompanyRequest proto.InternalMessageInfo
  62. func (m *CreateCompanyRequest) GetParent() string {
  63. if m != nil {
  64. return m.Parent
  65. }
  66. return ""
  67. }
  68. func (m *CreateCompanyRequest) GetCompany() *Company {
  69. if m != nil {
  70. return m.Company
  71. }
  72. return nil
  73. }
  74. // Request for getting a company by name.
  75. type GetCompanyRequest struct {
  76. // Required.
  77. //
  78. // The resource name of the company to be retrieved.
  79. //
  80. // The format is "projects/{project_id}/companies/{company_id}", for example,
  81. // "projects/api-test-project/companies/foo".
  82. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  83. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  84. XXX_unrecognized []byte `json:"-"`
  85. XXX_sizecache int32 `json:"-"`
  86. }
  87. func (m *GetCompanyRequest) Reset() { *m = GetCompanyRequest{} }
  88. func (m *GetCompanyRequest) String() string { return proto.CompactTextString(m) }
  89. func (*GetCompanyRequest) ProtoMessage() {}
  90. func (*GetCompanyRequest) Descriptor() ([]byte, []int) {
  91. return fileDescriptor_company_service_4f27ad8b55d83637, []int{1}
  92. }
  93. func (m *GetCompanyRequest) XXX_Unmarshal(b []byte) error {
  94. return xxx_messageInfo_GetCompanyRequest.Unmarshal(m, b)
  95. }
  96. func (m *GetCompanyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  97. return xxx_messageInfo_GetCompanyRequest.Marshal(b, m, deterministic)
  98. }
  99. func (dst *GetCompanyRequest) XXX_Merge(src proto.Message) {
  100. xxx_messageInfo_GetCompanyRequest.Merge(dst, src)
  101. }
  102. func (m *GetCompanyRequest) XXX_Size() int {
  103. return xxx_messageInfo_GetCompanyRequest.Size(m)
  104. }
  105. func (m *GetCompanyRequest) XXX_DiscardUnknown() {
  106. xxx_messageInfo_GetCompanyRequest.DiscardUnknown(m)
  107. }
  108. var xxx_messageInfo_GetCompanyRequest proto.InternalMessageInfo
  109. func (m *GetCompanyRequest) GetName() string {
  110. if m != nil {
  111. return m.Name
  112. }
  113. return ""
  114. }
  115. // Request for updating a specified company.
  116. type UpdateCompanyRequest struct {
  117. // Required.
  118. //
  119. // The company resource to replace the current resource in the system.
  120. Company *Company `protobuf:"bytes,1,opt,name=company,proto3" json:"company,omitempty"`
  121. // Optional but strongly recommended for the best service
  122. // experience.
  123. //
  124. // If
  125. // [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
  126. // is provided, only the specified fields in
  127. // [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
  128. // updated. Otherwise all the fields are updated.
  129. //
  130. // A field mask to specify the company fields to be updated. Only
  131. // top level fields of [Company][google.cloud.talent.v4beta1.Company] are
  132. // supported.
  133. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  134. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  135. XXX_unrecognized []byte `json:"-"`
  136. XXX_sizecache int32 `json:"-"`
  137. }
  138. func (m *UpdateCompanyRequest) Reset() { *m = UpdateCompanyRequest{} }
  139. func (m *UpdateCompanyRequest) String() string { return proto.CompactTextString(m) }
  140. func (*UpdateCompanyRequest) ProtoMessage() {}
  141. func (*UpdateCompanyRequest) Descriptor() ([]byte, []int) {
  142. return fileDescriptor_company_service_4f27ad8b55d83637, []int{2}
  143. }
  144. func (m *UpdateCompanyRequest) XXX_Unmarshal(b []byte) error {
  145. return xxx_messageInfo_UpdateCompanyRequest.Unmarshal(m, b)
  146. }
  147. func (m *UpdateCompanyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  148. return xxx_messageInfo_UpdateCompanyRequest.Marshal(b, m, deterministic)
  149. }
  150. func (dst *UpdateCompanyRequest) XXX_Merge(src proto.Message) {
  151. xxx_messageInfo_UpdateCompanyRequest.Merge(dst, src)
  152. }
  153. func (m *UpdateCompanyRequest) XXX_Size() int {
  154. return xxx_messageInfo_UpdateCompanyRequest.Size(m)
  155. }
  156. func (m *UpdateCompanyRequest) XXX_DiscardUnknown() {
  157. xxx_messageInfo_UpdateCompanyRequest.DiscardUnknown(m)
  158. }
  159. var xxx_messageInfo_UpdateCompanyRequest proto.InternalMessageInfo
  160. func (m *UpdateCompanyRequest) GetCompany() *Company {
  161. if m != nil {
  162. return m.Company
  163. }
  164. return nil
  165. }
  166. func (m *UpdateCompanyRequest) GetUpdateMask() *field_mask.FieldMask {
  167. if m != nil {
  168. return m.UpdateMask
  169. }
  170. return nil
  171. }
  172. // Request to delete a company.
  173. type DeleteCompanyRequest struct {
  174. // Required.
  175. //
  176. // The resource name of the company to be deleted.
  177. //
  178. // The format is "projects/{project_id}/companies/{company_id}", for example,
  179. // "projects/api-test-project/companies/foo".
  180. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  181. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  182. XXX_unrecognized []byte `json:"-"`
  183. XXX_sizecache int32 `json:"-"`
  184. }
  185. func (m *DeleteCompanyRequest) Reset() { *m = DeleteCompanyRequest{} }
  186. func (m *DeleteCompanyRequest) String() string { return proto.CompactTextString(m) }
  187. func (*DeleteCompanyRequest) ProtoMessage() {}
  188. func (*DeleteCompanyRequest) Descriptor() ([]byte, []int) {
  189. return fileDescriptor_company_service_4f27ad8b55d83637, []int{3}
  190. }
  191. func (m *DeleteCompanyRequest) XXX_Unmarshal(b []byte) error {
  192. return xxx_messageInfo_DeleteCompanyRequest.Unmarshal(m, b)
  193. }
  194. func (m *DeleteCompanyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  195. return xxx_messageInfo_DeleteCompanyRequest.Marshal(b, m, deterministic)
  196. }
  197. func (dst *DeleteCompanyRequest) XXX_Merge(src proto.Message) {
  198. xxx_messageInfo_DeleteCompanyRequest.Merge(dst, src)
  199. }
  200. func (m *DeleteCompanyRequest) XXX_Size() int {
  201. return xxx_messageInfo_DeleteCompanyRequest.Size(m)
  202. }
  203. func (m *DeleteCompanyRequest) XXX_DiscardUnknown() {
  204. xxx_messageInfo_DeleteCompanyRequest.DiscardUnknown(m)
  205. }
  206. var xxx_messageInfo_DeleteCompanyRequest proto.InternalMessageInfo
  207. func (m *DeleteCompanyRequest) GetName() string {
  208. if m != nil {
  209. return m.Name
  210. }
  211. return ""
  212. }
  213. // List companies for which the client has ACL visibility.
  214. type ListCompaniesRequest struct {
  215. // Required.
  216. //
  217. // Resource name of the project under which the company is created.
  218. //
  219. // The format is "projects/{project_id}", for example,
  220. // "projects/api-test-project".
  221. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  222. // Optional.
  223. //
  224. // The starting indicator from which to return results.
  225. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  226. // Optional.
  227. //
  228. // The maximum number of companies to be returned, at most 100.
  229. // Default is 100 if a non-positive number is provided.
  230. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  231. // Optional.
  232. //
  233. // Set to true if the companies requested must have open jobs.
  234. //
  235. // Defaults to false.
  236. //
  237. // If true, at most
  238. // [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
  239. // companies are fetched, among which only those with open jobs are returned.
  240. RequireOpenJobs bool `protobuf:"varint,4,opt,name=require_open_jobs,json=requireOpenJobs,proto3" json:"require_open_jobs,omitempty"`
  241. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  242. XXX_unrecognized []byte `json:"-"`
  243. XXX_sizecache int32 `json:"-"`
  244. }
  245. func (m *ListCompaniesRequest) Reset() { *m = ListCompaniesRequest{} }
  246. func (m *ListCompaniesRequest) String() string { return proto.CompactTextString(m) }
  247. func (*ListCompaniesRequest) ProtoMessage() {}
  248. func (*ListCompaniesRequest) Descriptor() ([]byte, []int) {
  249. return fileDescriptor_company_service_4f27ad8b55d83637, []int{4}
  250. }
  251. func (m *ListCompaniesRequest) XXX_Unmarshal(b []byte) error {
  252. return xxx_messageInfo_ListCompaniesRequest.Unmarshal(m, b)
  253. }
  254. func (m *ListCompaniesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  255. return xxx_messageInfo_ListCompaniesRequest.Marshal(b, m, deterministic)
  256. }
  257. func (dst *ListCompaniesRequest) XXX_Merge(src proto.Message) {
  258. xxx_messageInfo_ListCompaniesRequest.Merge(dst, src)
  259. }
  260. func (m *ListCompaniesRequest) XXX_Size() int {
  261. return xxx_messageInfo_ListCompaniesRequest.Size(m)
  262. }
  263. func (m *ListCompaniesRequest) XXX_DiscardUnknown() {
  264. xxx_messageInfo_ListCompaniesRequest.DiscardUnknown(m)
  265. }
  266. var xxx_messageInfo_ListCompaniesRequest proto.InternalMessageInfo
  267. func (m *ListCompaniesRequest) GetParent() string {
  268. if m != nil {
  269. return m.Parent
  270. }
  271. return ""
  272. }
  273. func (m *ListCompaniesRequest) GetPageToken() string {
  274. if m != nil {
  275. return m.PageToken
  276. }
  277. return ""
  278. }
  279. func (m *ListCompaniesRequest) GetPageSize() int32 {
  280. if m != nil {
  281. return m.PageSize
  282. }
  283. return 0
  284. }
  285. func (m *ListCompaniesRequest) GetRequireOpenJobs() bool {
  286. if m != nil {
  287. return m.RequireOpenJobs
  288. }
  289. return false
  290. }
  291. // Output only.
  292. //
  293. // The List companies response object.
  294. type ListCompaniesResponse struct {
  295. // Companies for the current client.
  296. Companies []*Company `protobuf:"bytes,1,rep,name=companies,proto3" json:"companies,omitempty"`
  297. // A token to retrieve the next page of results.
  298. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  299. // Additional information for the API invocation, such as the request
  300. // tracking id.
  301. Metadata *ResponseMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
  302. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  303. XXX_unrecognized []byte `json:"-"`
  304. XXX_sizecache int32 `json:"-"`
  305. }
  306. func (m *ListCompaniesResponse) Reset() { *m = ListCompaniesResponse{} }
  307. func (m *ListCompaniesResponse) String() string { return proto.CompactTextString(m) }
  308. func (*ListCompaniesResponse) ProtoMessage() {}
  309. func (*ListCompaniesResponse) Descriptor() ([]byte, []int) {
  310. return fileDescriptor_company_service_4f27ad8b55d83637, []int{5}
  311. }
  312. func (m *ListCompaniesResponse) XXX_Unmarshal(b []byte) error {
  313. return xxx_messageInfo_ListCompaniesResponse.Unmarshal(m, b)
  314. }
  315. func (m *ListCompaniesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  316. return xxx_messageInfo_ListCompaniesResponse.Marshal(b, m, deterministic)
  317. }
  318. func (dst *ListCompaniesResponse) XXX_Merge(src proto.Message) {
  319. xxx_messageInfo_ListCompaniesResponse.Merge(dst, src)
  320. }
  321. func (m *ListCompaniesResponse) XXX_Size() int {
  322. return xxx_messageInfo_ListCompaniesResponse.Size(m)
  323. }
  324. func (m *ListCompaniesResponse) XXX_DiscardUnknown() {
  325. xxx_messageInfo_ListCompaniesResponse.DiscardUnknown(m)
  326. }
  327. var xxx_messageInfo_ListCompaniesResponse proto.InternalMessageInfo
  328. func (m *ListCompaniesResponse) GetCompanies() []*Company {
  329. if m != nil {
  330. return m.Companies
  331. }
  332. return nil
  333. }
  334. func (m *ListCompaniesResponse) GetNextPageToken() string {
  335. if m != nil {
  336. return m.NextPageToken
  337. }
  338. return ""
  339. }
  340. func (m *ListCompaniesResponse) GetMetadata() *ResponseMetadata {
  341. if m != nil {
  342. return m.Metadata
  343. }
  344. return nil
  345. }
  346. func init() {
  347. proto.RegisterType((*CreateCompanyRequest)(nil), "google.cloud.talent.v4beta1.CreateCompanyRequest")
  348. proto.RegisterType((*GetCompanyRequest)(nil), "google.cloud.talent.v4beta1.GetCompanyRequest")
  349. proto.RegisterType((*UpdateCompanyRequest)(nil), "google.cloud.talent.v4beta1.UpdateCompanyRequest")
  350. proto.RegisterType((*DeleteCompanyRequest)(nil), "google.cloud.talent.v4beta1.DeleteCompanyRequest")
  351. proto.RegisterType((*ListCompaniesRequest)(nil), "google.cloud.talent.v4beta1.ListCompaniesRequest")
  352. proto.RegisterType((*ListCompaniesResponse)(nil), "google.cloud.talent.v4beta1.ListCompaniesResponse")
  353. }
  354. // Reference imports to suppress errors if they are not otherwise used.
  355. var _ context.Context
  356. var _ grpc.ClientConn
  357. // This is a compile-time assertion to ensure that this generated file
  358. // is compatible with the grpc package it is being compiled against.
  359. const _ = grpc.SupportPackageIsVersion4
  360. // CompanyServiceClient is the client API for CompanyService service.
  361. //
  362. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  363. type CompanyServiceClient interface {
  364. // Creates a new company entity.
  365. CreateCompany(ctx context.Context, in *CreateCompanyRequest, opts ...grpc.CallOption) (*Company, error)
  366. // Retrieves specified company.
  367. GetCompany(ctx context.Context, in *GetCompanyRequest, opts ...grpc.CallOption) (*Company, error)
  368. // Updates specified company.
  369. UpdateCompany(ctx context.Context, in *UpdateCompanyRequest, opts ...grpc.CallOption) (*Company, error)
  370. // Deletes specified company.
  371. // Prerequisite: The company has no jobs associated with it.
  372. DeleteCompany(ctx context.Context, in *DeleteCompanyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  373. // Lists all companies associated with the project.
  374. ListCompanies(ctx context.Context, in *ListCompaniesRequest, opts ...grpc.CallOption) (*ListCompaniesResponse, error)
  375. }
  376. type companyServiceClient struct {
  377. cc *grpc.ClientConn
  378. }
  379. func NewCompanyServiceClient(cc *grpc.ClientConn) CompanyServiceClient {
  380. return &companyServiceClient{cc}
  381. }
  382. func (c *companyServiceClient) CreateCompany(ctx context.Context, in *CreateCompanyRequest, opts ...grpc.CallOption) (*Company, error) {
  383. out := new(Company)
  384. err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.CompanyService/CreateCompany", in, out, opts...)
  385. if err != nil {
  386. return nil, err
  387. }
  388. return out, nil
  389. }
  390. func (c *companyServiceClient) GetCompany(ctx context.Context, in *GetCompanyRequest, opts ...grpc.CallOption) (*Company, error) {
  391. out := new(Company)
  392. err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.CompanyService/GetCompany", in, out, opts...)
  393. if err != nil {
  394. return nil, err
  395. }
  396. return out, nil
  397. }
  398. func (c *companyServiceClient) UpdateCompany(ctx context.Context, in *UpdateCompanyRequest, opts ...grpc.CallOption) (*Company, error) {
  399. out := new(Company)
  400. err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.CompanyService/UpdateCompany", in, out, opts...)
  401. if err != nil {
  402. return nil, err
  403. }
  404. return out, nil
  405. }
  406. func (c *companyServiceClient) DeleteCompany(ctx context.Context, in *DeleteCompanyRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  407. out := new(empty.Empty)
  408. err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.CompanyService/DeleteCompany", in, out, opts...)
  409. if err != nil {
  410. return nil, err
  411. }
  412. return out, nil
  413. }
  414. func (c *companyServiceClient) ListCompanies(ctx context.Context, in *ListCompaniesRequest, opts ...grpc.CallOption) (*ListCompaniesResponse, error) {
  415. out := new(ListCompaniesResponse)
  416. err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.CompanyService/ListCompanies", in, out, opts...)
  417. if err != nil {
  418. return nil, err
  419. }
  420. return out, nil
  421. }
  422. // CompanyServiceServer is the server API for CompanyService service.
  423. type CompanyServiceServer interface {
  424. // Creates a new company entity.
  425. CreateCompany(context.Context, *CreateCompanyRequest) (*Company, error)
  426. // Retrieves specified company.
  427. GetCompany(context.Context, *GetCompanyRequest) (*Company, error)
  428. // Updates specified company.
  429. UpdateCompany(context.Context, *UpdateCompanyRequest) (*Company, error)
  430. // Deletes specified company.
  431. // Prerequisite: The company has no jobs associated with it.
  432. DeleteCompany(context.Context, *DeleteCompanyRequest) (*empty.Empty, error)
  433. // Lists all companies associated with the project.
  434. ListCompanies(context.Context, *ListCompaniesRequest) (*ListCompaniesResponse, error)
  435. }
  436. func RegisterCompanyServiceServer(s *grpc.Server, srv CompanyServiceServer) {
  437. s.RegisterService(&_CompanyService_serviceDesc, srv)
  438. }
  439. func _CompanyService_CreateCompany_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  440. in := new(CreateCompanyRequest)
  441. if err := dec(in); err != nil {
  442. return nil, err
  443. }
  444. if interceptor == nil {
  445. return srv.(CompanyServiceServer).CreateCompany(ctx, in)
  446. }
  447. info := &grpc.UnaryServerInfo{
  448. Server: srv,
  449. FullMethod: "/google.cloud.talent.v4beta1.CompanyService/CreateCompany",
  450. }
  451. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  452. return srv.(CompanyServiceServer).CreateCompany(ctx, req.(*CreateCompanyRequest))
  453. }
  454. return interceptor(ctx, in, info, handler)
  455. }
  456. func _CompanyService_GetCompany_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  457. in := new(GetCompanyRequest)
  458. if err := dec(in); err != nil {
  459. return nil, err
  460. }
  461. if interceptor == nil {
  462. return srv.(CompanyServiceServer).GetCompany(ctx, in)
  463. }
  464. info := &grpc.UnaryServerInfo{
  465. Server: srv,
  466. FullMethod: "/google.cloud.talent.v4beta1.CompanyService/GetCompany",
  467. }
  468. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  469. return srv.(CompanyServiceServer).GetCompany(ctx, req.(*GetCompanyRequest))
  470. }
  471. return interceptor(ctx, in, info, handler)
  472. }
  473. func _CompanyService_UpdateCompany_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  474. in := new(UpdateCompanyRequest)
  475. if err := dec(in); err != nil {
  476. return nil, err
  477. }
  478. if interceptor == nil {
  479. return srv.(CompanyServiceServer).UpdateCompany(ctx, in)
  480. }
  481. info := &grpc.UnaryServerInfo{
  482. Server: srv,
  483. FullMethod: "/google.cloud.talent.v4beta1.CompanyService/UpdateCompany",
  484. }
  485. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  486. return srv.(CompanyServiceServer).UpdateCompany(ctx, req.(*UpdateCompanyRequest))
  487. }
  488. return interceptor(ctx, in, info, handler)
  489. }
  490. func _CompanyService_DeleteCompany_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  491. in := new(DeleteCompanyRequest)
  492. if err := dec(in); err != nil {
  493. return nil, err
  494. }
  495. if interceptor == nil {
  496. return srv.(CompanyServiceServer).DeleteCompany(ctx, in)
  497. }
  498. info := &grpc.UnaryServerInfo{
  499. Server: srv,
  500. FullMethod: "/google.cloud.talent.v4beta1.CompanyService/DeleteCompany",
  501. }
  502. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  503. return srv.(CompanyServiceServer).DeleteCompany(ctx, req.(*DeleteCompanyRequest))
  504. }
  505. return interceptor(ctx, in, info, handler)
  506. }
  507. func _CompanyService_ListCompanies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  508. in := new(ListCompaniesRequest)
  509. if err := dec(in); err != nil {
  510. return nil, err
  511. }
  512. if interceptor == nil {
  513. return srv.(CompanyServiceServer).ListCompanies(ctx, in)
  514. }
  515. info := &grpc.UnaryServerInfo{
  516. Server: srv,
  517. FullMethod: "/google.cloud.talent.v4beta1.CompanyService/ListCompanies",
  518. }
  519. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  520. return srv.(CompanyServiceServer).ListCompanies(ctx, req.(*ListCompaniesRequest))
  521. }
  522. return interceptor(ctx, in, info, handler)
  523. }
  524. var _CompanyService_serviceDesc = grpc.ServiceDesc{
  525. ServiceName: "google.cloud.talent.v4beta1.CompanyService",
  526. HandlerType: (*CompanyServiceServer)(nil),
  527. Methods: []grpc.MethodDesc{
  528. {
  529. MethodName: "CreateCompany",
  530. Handler: _CompanyService_CreateCompany_Handler,
  531. },
  532. {
  533. MethodName: "GetCompany",
  534. Handler: _CompanyService_GetCompany_Handler,
  535. },
  536. {
  537. MethodName: "UpdateCompany",
  538. Handler: _CompanyService_UpdateCompany_Handler,
  539. },
  540. {
  541. MethodName: "DeleteCompany",
  542. Handler: _CompanyService_DeleteCompany_Handler,
  543. },
  544. {
  545. MethodName: "ListCompanies",
  546. Handler: _CompanyService_ListCompanies_Handler,
  547. },
  548. },
  549. Streams: []grpc.StreamDesc{},
  550. Metadata: "google/cloud/talent/v4beta1/company_service.proto",
  551. }
  552. func init() {
  553. proto.RegisterFile("google/cloud/talent/v4beta1/company_service.proto", fileDescriptor_company_service_4f27ad8b55d83637)
  554. }
  555. var fileDescriptor_company_service_4f27ad8b55d83637 = []byte{
  556. // 673 bytes of a gzipped FileDescriptorProto
  557. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0x4f, 0x6b, 0x13, 0x41,
  558. 0x18, 0xc6, 0x99, 0xb6, 0xd6, 0xe6, 0x2d, 0xb1, 0x74, 0x8c, 0x25, 0xa4, 0x8a, 0x61, 0x91, 0x1a,
  559. 0x23, 0xee, 0x92, 0xd4, 0x8b, 0x16, 0x05, 0x5b, 0xff, 0xa0, 0x58, 0x2c, 0xdb, 0x7a, 0xf1, 0xb2,
  560. 0x4c, 0x92, 0xb7, 0xcb, 0xb6, 0xd9, 0x99, 0xed, 0xce, 0xa4, 0x68, 0xa5, 0x07, 0x3d, 0x7a, 0xb4,
  561. 0xe0, 0xc5, 0x83, 0xa0, 0xe0, 0xc7, 0xf1, 0xe2, 0x57, 0xf0, 0x83, 0xc8, 0xee, 0xce, 0x26, 0x4d,
  562. 0xb2, 0x6c, 0xa2, 0xb7, 0xcc, 0x9f, 0x67, 0xde, 0xdf, 0xfb, 0xec, 0x3c, 0x13, 0x68, 0xb8, 0x42,
  563. 0xb8, 0x5d, 0xb4, 0xda, 0x5d, 0xd1, 0xeb, 0x58, 0x8a, 0x75, 0x91, 0x2b, 0xeb, 0xf8, 0x6e, 0x0b,
  564. 0x15, 0x6b, 0x58, 0x6d, 0xe1, 0x07, 0x8c, 0xbf, 0x73, 0x24, 0x86, 0xc7, 0x5e, 0x1b, 0xcd, 0x20,
  565. 0x14, 0x4a, 0xd0, 0xd5, 0x44, 0x62, 0xc6, 0x12, 0x33, 0x91, 0x98, 0x5a, 0x52, 0xb9, 0xaa, 0xcf,
  566. 0x63, 0x81, 0x67, 0x31, 0xce, 0x85, 0x62, 0xca, 0x13, 0x5c, 0x26, 0xd2, 0x4a, 0x6d, 0x42, 0x35,
  567. 0x5f, 0x70, 0xbd, 0xf3, 0xd6, 0x14, 0x5c, 0x7a, 0xab, 0xe6, 0xb1, 0xe2, 0x51, 0xab, 0xb7, 0x6f,
  568. 0xa1, 0x1f, 0xa8, 0x74, 0xb1, 0x3a, 0xba, 0xb8, 0xef, 0x61, 0xb7, 0xe3, 0xf8, 0x4c, 0x1e, 0x26,
  569. 0x3b, 0x0c, 0x0e, 0xa5, 0xad, 0x10, 0x99, 0xc2, 0xad, 0xe4, 0x54, 0x1b, 0x8f, 0x7a, 0x28, 0x15,
  570. 0x5d, 0x81, 0xf9, 0x80, 0x85, 0xc8, 0x55, 0x99, 0x54, 0x49, 0xad, 0x60, 0xeb, 0x11, 0x7d, 0x08,
  571. 0x17, 0x75, 0xfd, 0xf2, 0x4c, 0x95, 0xd4, 0x16, 0x9b, 0x37, 0xcc, 0x1c, 0x43, 0xcc, 0xf4, 0xd4,
  572. 0x54, 0x64, 0xdc, 0x84, 0xe5, 0x67, 0xa8, 0x46, 0x8a, 0x51, 0x98, 0xe3, 0xcc, 0x47, 0x5d, 0x2a,
  573. 0xfe, 0x6d, 0x9c, 0x11, 0x28, 0xbd, 0x0e, 0x3a, 0xe3, 0x64, 0xe7, 0x08, 0xc8, 0x7f, 0x10, 0xd0,
  574. 0x0d, 0x58, 0xec, 0xc5, 0xe7, 0xc6, 0x36, 0xe8, 0x2e, 0x2a, 0xe9, 0x19, 0xa9, 0x53, 0xe6, 0xd3,
  575. 0xc8, 0xa9, 0x6d, 0x26, 0x0f, 0x6d, 0x48, 0xb6, 0x47, 0xbf, 0x8d, 0x3a, 0x94, 0x1e, 0x63, 0x17,
  576. 0xc7, 0xa0, 0xb2, 0x3a, 0xf8, 0x42, 0xa0, 0xf4, 0xd2, 0x93, 0xba, 0x59, 0x0f, 0xe5, 0x24, 0x6f,
  577. 0xaf, 0x01, 0x04, 0xcc, 0x45, 0x47, 0x89, 0x43, 0xe4, 0x31, 0x58, 0xc1, 0x2e, 0x44, 0x33, 0x7b,
  578. 0xd1, 0x04, 0x5d, 0x85, 0x78, 0xe0, 0x48, 0xef, 0x04, 0xcb, 0xb3, 0x55, 0x52, 0xbb, 0x60, 0x2f,
  579. 0x44, 0x13, 0xbb, 0xde, 0x09, 0xd2, 0x3a, 0x2c, 0x87, 0x78, 0xd4, 0xf3, 0x42, 0x74, 0x44, 0x80,
  580. 0xdc, 0x39, 0x10, 0x2d, 0x59, 0x9e, 0xab, 0x92, 0xda, 0x82, 0xbd, 0xa4, 0x17, 0x5e, 0x05, 0xc8,
  581. 0x5f, 0x88, 0x96, 0x34, 0x7e, 0x11, 0xb8, 0x32, 0x02, 0x26, 0x03, 0xc1, 0x25, 0xd2, 0x4d, 0x28,
  582. 0xb4, 0xd3, 0xc9, 0x32, 0xa9, 0xce, 0x4e, 0xed, 0xee, 0x40, 0x46, 0xd7, 0x60, 0x89, 0xe3, 0x5b,
  583. 0xe5, 0x8c, 0xb5, 0x52, 0x8c, 0xa6, 0x77, 0xfa, 0xed, 0x3c, 0x87, 0x05, 0x1f, 0x15, 0xeb, 0x30,
  584. 0xc5, 0xe2, 0x6e, 0x16, 0x9b, 0x77, 0x72, 0x4b, 0xa5, 0x90, 0xdb, 0x5a, 0x64, 0xf7, 0xe5, 0xcd,
  585. 0x6f, 0xf3, 0x70, 0x49, 0x93, 0xec, 0x26, 0x61, 0xa5, 0x5f, 0x09, 0x14, 0x87, 0x2e, 0x36, 0x6d,
  586. 0xe4, 0x37, 0x92, 0x11, 0x82, 0xca, 0x54, 0xbd, 0x1b, 0x8d, 0x8f, 0xbf, 0xff, 0x9c, 0xcd, 0xdc,
  587. 0x36, 0xd6, 0xfa, 0x09, 0x7d, 0x9f, 0x7c, 0xd0, 0x07, 0x41, 0x28, 0x0e, 0xb0, 0xad, 0xa4, 0x55,
  588. 0x3f, 0xb5, 0xfa, 0x06, 0xdd, 0x27, 0x75, 0xfa, 0x99, 0x00, 0x0c, 0x62, 0x40, 0xcd, 0xdc, 0x3a,
  589. 0x63, 0x79, 0x99, 0x92, 0xcb, 0x8c, 0xb9, 0x6a, 0xf4, 0x1c, 0x57, 0x74, 0x2f, 0xcf, 0x51, 0x0d,
  590. 0xa0, 0xac, 0xfa, 0x29, 0xfd, 0x41, 0xa0, 0x38, 0x94, 0xb8, 0x09, 0x96, 0x65, 0xa5, 0x73, 0x4a,
  591. 0xb4, 0x7b, 0x31, 0xda, 0x7a, 0xd3, 0x1c, 0xa0, 0xa5, 0xaf, 0x5a, 0x1e, 0x62, 0x64, 0xdd, 0x27,
  592. 0x02, 0xc5, 0xa1, 0x08, 0x4e, 0xa0, 0xcc, 0x8a, 0x6b, 0x65, 0x65, 0x2c, 0xee, 0x4f, 0xa2, 0x57,
  593. 0x33, 0xb5, 0xac, 0x3e, 0xad, 0x65, 0x3f, 0x09, 0x14, 0x87, 0x92, 0x34, 0x01, 0x26, 0xeb, 0x39,
  594. 0xa8, 0x34, 0xff, 0x45, 0x92, 0x64, 0x20, 0xeb, 0xdb, 0xe6, 0xdd, 0xb9, 0xcd, 0x0f, 0x04, 0xae,
  595. 0xb7, 0x85, 0x9f, 0x57, 0x69, 0xf3, 0xf2, 0x70, 0x84, 0x76, 0x22, 0x6b, 0x76, 0xc8, 0x9b, 0x47,
  596. 0x5a, 0xe3, 0x8a, 0x2e, 0xe3, 0xae, 0x29, 0x42, 0xd7, 0x72, 0x91, 0xc7, 0xc6, 0x59, 0xc9, 0x12,
  597. 0x0b, 0x3c, 0x99, 0xf9, 0x57, 0xb5, 0x91, 0x0c, 0xbf, 0xcf, 0xcc, 0x6e, 0xed, 0xed, 0xb6, 0xe6,
  598. 0x63, 0xcd, 0xfa, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x13, 0xfe, 0x0c, 0xb0, 0x75, 0x07, 0x00,
  599. 0x00,
  600. }