|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: google/cloud/talent/v4beta1/company_service.proto
-
- package talent // import "google.golang.org/genproto/googleapis/cloud/talent/v4beta1"
-
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import empty "github.com/golang/protobuf/ptypes/empty"
- import _ "google.golang.org/genproto/googleapis/api/annotations"
- import field_mask "google.golang.org/genproto/protobuf/field_mask"
-
- import (
- context "golang.org/x/net/context"
- grpc "google.golang.org/grpc"
- )
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
-
- // The Request of the CreateCompany method.
- type CreateCompanyRequest struct {
- // Required.
- //
- // Resource name of the project under which the company is created.
- //
- // The format is "projects/{project_id}", for example,
- // "projects/api-test-project".
- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
- // Required.
- //
- // The company to be created.
- Company *Company `protobuf:"bytes,2,opt,name=company,proto3" json:"company,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *CreateCompanyRequest) Reset() { *m = CreateCompanyRequest{} }
- func (m *CreateCompanyRequest) String() string { return proto.CompactTextString(m) }
- func (*CreateCompanyRequest) ProtoMessage() {}
- func (*CreateCompanyRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_company_service_4f27ad8b55d83637, []int{0}
- }
- func (m *CreateCompanyRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_CreateCompanyRequest.Unmarshal(m, b)
- }
- func (m *CreateCompanyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_CreateCompanyRequest.Marshal(b, m, deterministic)
- }
- func (dst *CreateCompanyRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CreateCompanyRequest.Merge(dst, src)
- }
- func (m *CreateCompanyRequest) XXX_Size() int {
- return xxx_messageInfo_CreateCompanyRequest.Size(m)
- }
- func (m *CreateCompanyRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_CreateCompanyRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_CreateCompanyRequest proto.InternalMessageInfo
-
- func (m *CreateCompanyRequest) GetParent() string {
- if m != nil {
- return m.Parent
- }
- return ""
- }
-
- func (m *CreateCompanyRequest) GetCompany() *Company {
- if m != nil {
- return m.Company
- }
- return nil
- }
-
- // Request for getting a company by name.
- type GetCompanyRequest struct {
- // Required.
- //
- // The resource name of the company to be retrieved.
- //
- // The format is "projects/{project_id}/companies/{company_id}", for example,
- // "projects/api-test-project/companies/foo".
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *GetCompanyRequest) Reset() { *m = GetCompanyRequest{} }
- func (m *GetCompanyRequest) String() string { return proto.CompactTextString(m) }
- func (*GetCompanyRequest) ProtoMessage() {}
- func (*GetCompanyRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_company_service_4f27ad8b55d83637, []int{1}
- }
- func (m *GetCompanyRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_GetCompanyRequest.Unmarshal(m, b)
- }
- func (m *GetCompanyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_GetCompanyRequest.Marshal(b, m, deterministic)
- }
- func (dst *GetCompanyRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetCompanyRequest.Merge(dst, src)
- }
- func (m *GetCompanyRequest) XXX_Size() int {
- return xxx_messageInfo_GetCompanyRequest.Size(m)
- }
- func (m *GetCompanyRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GetCompanyRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GetCompanyRequest proto.InternalMessageInfo
-
- func (m *GetCompanyRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
-
- // Request for updating a specified company.
- type UpdateCompanyRequest struct {
- // Required.
- //
- // The company resource to replace the current resource in the system.
- Company *Company `protobuf:"bytes,1,opt,name=company,proto3" json:"company,omitempty"`
- // Optional but strongly recommended for the best service
- // experience.
- //
- // If
- // [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
- // is provided, only the specified fields in
- // [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
- // updated. Otherwise all the fields are updated.
- //
- // A field mask to specify the company fields to be updated. Only
- // top level fields of [Company][google.cloud.talent.v4beta1.Company] are
- // supported.
- UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *UpdateCompanyRequest) Reset() { *m = UpdateCompanyRequest{} }
- func (m *UpdateCompanyRequest) String() string { return proto.CompactTextString(m) }
- func (*UpdateCompanyRequest) ProtoMessage() {}
- func (*UpdateCompanyRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_company_service_4f27ad8b55d83637, []int{2}
- }
- func (m *UpdateCompanyRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UpdateCompanyRequest.Unmarshal(m, b)
- }
- func (m *UpdateCompanyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UpdateCompanyRequest.Marshal(b, m, deterministic)
- }
- func (dst *UpdateCompanyRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UpdateCompanyRequest.Merge(dst, src)
- }
- func (m *UpdateCompanyRequest) XXX_Size() int {
- return xxx_messageInfo_UpdateCompanyRequest.Size(m)
- }
- func (m *UpdateCompanyRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_UpdateCompanyRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_UpdateCompanyRequest proto.InternalMessageInfo
-
- func (m *UpdateCompanyRequest) GetCompany() *Company {
- if m != nil {
- return m.Company
- }
- return nil
- }
-
- func (m *UpdateCompanyRequest) GetUpdateMask() *field_mask.FieldMask {
- if m != nil {
- return m.UpdateMask
- }
- return nil
- }
-
- // Request to delete a company.
- type DeleteCompanyRequest struct {
- // Required.
- //
- // The resource name of the company to be deleted.
- //
- // The format is "projects/{project_id}/companies/{company_id}", for example,
- // "projects/api-test-project/companies/foo".
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *DeleteCompanyRequest) Reset() { *m = DeleteCompanyRequest{} }
- func (m *DeleteCompanyRequest) String() string { return proto.CompactTextString(m) }
- func (*DeleteCompanyRequest) ProtoMessage() {}
- func (*DeleteCompanyRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_company_service_4f27ad8b55d83637, []int{3}
- }
- func (m *DeleteCompanyRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_DeleteCompanyRequest.Unmarshal(m, b)
- }
- func (m *DeleteCompanyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_DeleteCompanyRequest.Marshal(b, m, deterministic)
- }
- func (dst *DeleteCompanyRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeleteCompanyRequest.Merge(dst, src)
- }
- func (m *DeleteCompanyRequest) XXX_Size() int {
- return xxx_messageInfo_DeleteCompanyRequest.Size(m)
- }
- func (m *DeleteCompanyRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_DeleteCompanyRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_DeleteCompanyRequest proto.InternalMessageInfo
-
- func (m *DeleteCompanyRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
-
- // List companies for which the client has ACL visibility.
- type ListCompaniesRequest struct {
- // Required.
- //
- // Resource name of the project under which the company is created.
- //
- // The format is "projects/{project_id}", for example,
- // "projects/api-test-project".
- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
- // Optional.
- //
- // The starting indicator from which to return results.
- PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
- // Optional.
- //
- // The maximum number of companies to be returned, at most 100.
- // Default is 100 if a non-positive number is provided.
- PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
- // Optional.
- //
- // Set to true if the companies requested must have open jobs.
- //
- // Defaults to false.
- //
- // If true, at most
- // [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
- // companies are fetched, among which only those with open jobs are returned.
- RequireOpenJobs bool `protobuf:"varint,4,opt,name=require_open_jobs,json=requireOpenJobs,proto3" json:"require_open_jobs,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *ListCompaniesRequest) Reset() { *m = ListCompaniesRequest{} }
- func (m *ListCompaniesRequest) String() string { return proto.CompactTextString(m) }
- func (*ListCompaniesRequest) ProtoMessage() {}
- func (*ListCompaniesRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_company_service_4f27ad8b55d83637, []int{4}
- }
- func (m *ListCompaniesRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_ListCompaniesRequest.Unmarshal(m, b)
- }
- func (m *ListCompaniesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_ListCompaniesRequest.Marshal(b, m, deterministic)
- }
- func (dst *ListCompaniesRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ListCompaniesRequest.Merge(dst, src)
- }
- func (m *ListCompaniesRequest) XXX_Size() int {
- return xxx_messageInfo_ListCompaniesRequest.Size(m)
- }
- func (m *ListCompaniesRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_ListCompaniesRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_ListCompaniesRequest proto.InternalMessageInfo
-
- func (m *ListCompaniesRequest) GetParent() string {
- if m != nil {
- return m.Parent
- }
- return ""
- }
-
- func (m *ListCompaniesRequest) GetPageToken() string {
- if m != nil {
- return m.PageToken
- }
- return ""
- }
-
- func (m *ListCompaniesRequest) GetPageSize() int32 {
- if m != nil {
- return m.PageSize
- }
- return 0
- }
-
- func (m *ListCompaniesRequest) GetRequireOpenJobs() bool {
- if m != nil {
- return m.RequireOpenJobs
- }
- return false
- }
-
- // Output only.
- //
- // The List companies response object.
- type ListCompaniesResponse struct {
- // Companies for the current client.
- Companies []*Company `protobuf:"bytes,1,rep,name=companies,proto3" json:"companies,omitempty"`
- // A token to retrieve the next page of results.
- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
- // Additional information for the API invocation, such as the request
- // tracking id.
- Metadata *ResponseMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *ListCompaniesResponse) Reset() { *m = ListCompaniesResponse{} }
- func (m *ListCompaniesResponse) String() string { return proto.CompactTextString(m) }
- func (*ListCompaniesResponse) ProtoMessage() {}
- func (*ListCompaniesResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_company_service_4f27ad8b55d83637, []int{5}
- }
- func (m *ListCompaniesResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_ListCompaniesResponse.Unmarshal(m, b)
- }
- func (m *ListCompaniesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_ListCompaniesResponse.Marshal(b, m, deterministic)
- }
- func (dst *ListCompaniesResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ListCompaniesResponse.Merge(dst, src)
- }
- func (m *ListCompaniesResponse) XXX_Size() int {
- return xxx_messageInfo_ListCompaniesResponse.Size(m)
- }
- func (m *ListCompaniesResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_ListCompaniesResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_ListCompaniesResponse proto.InternalMessageInfo
-
- func (m *ListCompaniesResponse) GetCompanies() []*Company {
- if m != nil {
- return m.Companies
- }
- return nil
- }
-
- func (m *ListCompaniesResponse) GetNextPageToken() string {
- if m != nil {
- return m.NextPageToken
- }
- return ""
- }
-
- func (m *ListCompaniesResponse) GetMetadata() *ResponseMetadata {
- if m != nil {
- return m.Metadata
- }
- return nil
- }
-
- func init() {
- proto.RegisterType((*CreateCompanyRequest)(nil), "google.cloud.talent.v4beta1.CreateCompanyRequest")
- proto.RegisterType((*GetCompanyRequest)(nil), "google.cloud.talent.v4beta1.GetCompanyRequest")
- proto.RegisterType((*UpdateCompanyRequest)(nil), "google.cloud.talent.v4beta1.UpdateCompanyRequest")
- proto.RegisterType((*DeleteCompanyRequest)(nil), "google.cloud.talent.v4beta1.DeleteCompanyRequest")
- proto.RegisterType((*ListCompaniesRequest)(nil), "google.cloud.talent.v4beta1.ListCompaniesRequest")
- proto.RegisterType((*ListCompaniesResponse)(nil), "google.cloud.talent.v4beta1.ListCompaniesResponse")
- }
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion4
-
- // CompanyServiceClient is the client API for CompanyService service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type CompanyServiceClient interface {
- // Creates a new company entity.
- CreateCompany(ctx context.Context, in *CreateCompanyRequest, opts ...grpc.CallOption) (*Company, error)
- // Retrieves specified company.
- GetCompany(ctx context.Context, in *GetCompanyRequest, opts ...grpc.CallOption) (*Company, error)
- // Updates specified company.
- UpdateCompany(ctx context.Context, in *UpdateCompanyRequest, opts ...grpc.CallOption) (*Company, error)
- // Deletes specified company.
- // Prerequisite: The company has no jobs associated with it.
- DeleteCompany(ctx context.Context, in *DeleteCompanyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
- // Lists all companies associated with the project.
- ListCompanies(ctx context.Context, in *ListCompaniesRequest, opts ...grpc.CallOption) (*ListCompaniesResponse, error)
- }
-
- type companyServiceClient struct {
- cc *grpc.ClientConn
- }
-
- func NewCompanyServiceClient(cc *grpc.ClientConn) CompanyServiceClient {
- return &companyServiceClient{cc}
- }
-
- func (c *companyServiceClient) CreateCompany(ctx context.Context, in *CreateCompanyRequest, opts ...grpc.CallOption) (*Company, error) {
- out := new(Company)
- err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.CompanyService/CreateCompany", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *companyServiceClient) GetCompany(ctx context.Context, in *GetCompanyRequest, opts ...grpc.CallOption) (*Company, error) {
- out := new(Company)
- err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.CompanyService/GetCompany", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *companyServiceClient) UpdateCompany(ctx context.Context, in *UpdateCompanyRequest, opts ...grpc.CallOption) (*Company, error) {
- out := new(Company)
- err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.CompanyService/UpdateCompany", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *companyServiceClient) DeleteCompany(ctx context.Context, in *DeleteCompanyRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
- out := new(empty.Empty)
- err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.CompanyService/DeleteCompany", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *companyServiceClient) ListCompanies(ctx context.Context, in *ListCompaniesRequest, opts ...grpc.CallOption) (*ListCompaniesResponse, error) {
- out := new(ListCompaniesResponse)
- err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.CompanyService/ListCompanies", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- // CompanyServiceServer is the server API for CompanyService service.
- type CompanyServiceServer interface {
- // Creates a new company entity.
- CreateCompany(context.Context, *CreateCompanyRequest) (*Company, error)
- // Retrieves specified company.
- GetCompany(context.Context, *GetCompanyRequest) (*Company, error)
- // Updates specified company.
- UpdateCompany(context.Context, *UpdateCompanyRequest) (*Company, error)
- // Deletes specified company.
- // Prerequisite: The company has no jobs associated with it.
- DeleteCompany(context.Context, *DeleteCompanyRequest) (*empty.Empty, error)
- // Lists all companies associated with the project.
- ListCompanies(context.Context, *ListCompaniesRequest) (*ListCompaniesResponse, error)
- }
-
- func RegisterCompanyServiceServer(s *grpc.Server, srv CompanyServiceServer) {
- s.RegisterService(&_CompanyService_serviceDesc, srv)
- }
-
- func _CompanyService_CreateCompany_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateCompanyRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServiceServer).CreateCompany(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.cloud.talent.v4beta1.CompanyService/CreateCompany",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServiceServer).CreateCompany(ctx, req.(*CreateCompanyRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _CompanyService_GetCompany_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetCompanyRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServiceServer).GetCompany(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.cloud.talent.v4beta1.CompanyService/GetCompany",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServiceServer).GetCompany(ctx, req.(*GetCompanyRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _CompanyService_UpdateCompany_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateCompanyRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServiceServer).UpdateCompany(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.cloud.talent.v4beta1.CompanyService/UpdateCompany",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServiceServer).UpdateCompany(ctx, req.(*UpdateCompanyRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _CompanyService_DeleteCompany_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteCompanyRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServiceServer).DeleteCompany(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.cloud.talent.v4beta1.CompanyService/DeleteCompany",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServiceServer).DeleteCompany(ctx, req.(*DeleteCompanyRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _CompanyService_ListCompanies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListCompaniesRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServiceServer).ListCompanies(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.cloud.talent.v4beta1.CompanyService/ListCompanies",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServiceServer).ListCompanies(ctx, req.(*ListCompaniesRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- var _CompanyService_serviceDesc = grpc.ServiceDesc{
- ServiceName: "google.cloud.talent.v4beta1.CompanyService",
- HandlerType: (*CompanyServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "CreateCompany",
- Handler: _CompanyService_CreateCompany_Handler,
- },
- {
- MethodName: "GetCompany",
- Handler: _CompanyService_GetCompany_Handler,
- },
- {
- MethodName: "UpdateCompany",
- Handler: _CompanyService_UpdateCompany_Handler,
- },
- {
- MethodName: "DeleteCompany",
- Handler: _CompanyService_DeleteCompany_Handler,
- },
- {
- MethodName: "ListCompanies",
- Handler: _CompanyService_ListCompanies_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "google/cloud/talent/v4beta1/company_service.proto",
- }
-
- func init() {
- proto.RegisterFile("google/cloud/talent/v4beta1/company_service.proto", fileDescriptor_company_service_4f27ad8b55d83637)
- }
-
- var fileDescriptor_company_service_4f27ad8b55d83637 = []byte{
- // 673 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0x4f, 0x6b, 0x13, 0x41,
- 0x18, 0xc6, 0x99, 0xb6, 0xd6, 0xe6, 0x2d, 0xb1, 0x74, 0x8c, 0x25, 0xa4, 0x8a, 0x61, 0x91, 0x1a,
- 0x23, 0xee, 0x92, 0xd4, 0x8b, 0x16, 0x05, 0x5b, 0xff, 0xa0, 0x58, 0x2c, 0xdb, 0x7a, 0xf1, 0xb2,
- 0x4c, 0x92, 0xb7, 0xcb, 0xb6, 0xd9, 0x99, 0xed, 0xce, 0xa4, 0x68, 0xa5, 0x07, 0x3d, 0x7a, 0xb4,
- 0xe0, 0xc5, 0x83, 0xa0, 0xe0, 0xc7, 0xf1, 0xe2, 0x57, 0xf0, 0x83, 0xc8, 0xee, 0xce, 0x26, 0x4d,
- 0xb2, 0x6c, 0xa2, 0xb7, 0xcc, 0x9f, 0x67, 0xde, 0xdf, 0xfb, 0xec, 0x3c, 0x13, 0x68, 0xb8, 0x42,
- 0xb8, 0x5d, 0xb4, 0xda, 0x5d, 0xd1, 0xeb, 0x58, 0x8a, 0x75, 0x91, 0x2b, 0xeb, 0xf8, 0x6e, 0x0b,
- 0x15, 0x6b, 0x58, 0x6d, 0xe1, 0x07, 0x8c, 0x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