Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
685 lines (619 sloc) 28.1 KB
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/talent/v4beta1/company_service.proto
package talent
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_ "google.golang.org/genproto/googleapis/api/annotations"
field_mask "google.golang.org/genproto/protobuf/field_mask"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// The Request of the CreateCompany method.
type CreateCompanyRequest struct {
// Required. Resource name of the tenant under which the company is created.
//
// The format is "projects/{project_id}/tenants/{tenant_id}", for example,
// "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
// is created, for example, "projects/foo".
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_1c499e6cf60b8944, []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 (m *CreateCompanyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateCompanyRequest.Merge(m, 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}/tenants/{tenant_id}/companies/{company_id}", for
// example, "projects/api-test-project/tenants/foo/companies/bar".
//
// If tenant id is unspecified, the default tenant is used, for
// example, "projects/api-test-project/companies/bar".
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_1c499e6cf60b8944, []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 (m *GetCompanyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetCompanyRequest.Merge(m, 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"`
// 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_1c499e6cf60b8944, []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 (m *UpdateCompanyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateCompanyRequest.Merge(m, 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}/tenants/{tenant_id}/companies/{company_id}", for
// example, "projects/foo/tenants/bar/companies/baz".
//
// If tenant id is unspecified, the default tenant is used, for
// example, "projects/foo/companies/bar".
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_1c499e6cf60b8944, []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 (m *DeleteCompanyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteCompanyRequest.Merge(m, 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 tenant under which the company is created.
//
// The format is "projects/{project_id}/tenants/{tenant_id}", for example,
// "projects/foo/tenant/bar".
//
// If tenant id is unspecified, the default tenant will be used, for
// example, "projects/foo".
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The starting indicator from which to return results.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// 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"`
// 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_1c499e6cf60b8944, []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 (m *ListCompaniesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListCompaniesRequest.Merge(m, 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
}
// 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_1c499e6cf60b8944, []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 (m *ListCompaniesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListCompaniesResponse.Merge(m, 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")
}
func init() {
proto.RegisterFile("google/cloud/talent/v4beta1/company_service.proto", fileDescriptor_1c499e6cf60b8944)
}
var fileDescriptor_1c499e6cf60b8944 = []byte{
// 799 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x6f, 0xeb, 0x44,
0x10, 0xd7, 0x26, 0xa5, 0x34, 0x5b, 0x85, 0xaa, 0xdb, 0x40, 0xa3, 0x14, 0xd4, 0xc8, 0x42, 0x55,
0x08, 0xad, 0x97, 0xa6, 0x1c, 0x50, 0x2b, 0x0e, 0x49, 0xf8, 0x23, 0x10, 0x15, 0x95, 0x53, 0x2e,
0x15, 0x52, 0xb4, 0x76, 0xa6, 0x89, 0x5b, 0x7b, 0xd7, 0xb5, 0x37, 0x6d, 0x29, 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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)
}
// UnimplementedCompanyServiceServer can be embedded to have forward compatible implementations.
type UnimplementedCompanyServiceServer struct {
}
func (*UnimplementedCompanyServiceServer) CreateCompany(ctx context.Context, req *CreateCompanyRequest) (*Company, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateCompany not implemented")
}
func (*UnimplementedCompanyServiceServer) GetCompany(ctx context.Context, req *GetCompanyRequest) (*Company, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCompany not implemented")
}
func (*UnimplementedCompanyServiceServer) UpdateCompany(ctx context.Context, req *UpdateCompanyRequest) (*Company, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCompany not implemented")
}
func (*UnimplementedCompanyServiceServer) DeleteCompany(ctx context.Context, req *DeleteCompanyRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteCompany not implemented")
}
func (*UnimplementedCompanyServiceServer) ListCompanies(ctx context.Context, req *ListCompaniesRequest) (*ListCompaniesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListCompanies not implemented")
}
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",
}
You can’t perform that action at this time.