| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/cloud/talent/v4beta1/event_service.proto |
| 20 |
|
| 21 |
package talentpb |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 26 |
grpc "google.golang.org/grpc" |
| 27 |
codes "google.golang.org/grpc/codes" |
| 28 |
status "google.golang.org/grpc/status" |
| 29 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 30 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 31 |
reflect "reflect" |
| 32 |
sync "sync" |
| 33 |
) |
| 34 |
|
| 35 |
const ( |
| 36 |
// Verify that this generated code is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 38 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 39 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 40 |
) |
| 41 |
|
| 42 |
// The report event request. |
| 43 |
type CreateClientEventRequest struct { |
| 44 |
state protoimpl.MessageState |
| 45 |
sizeCache protoimpl.SizeCache |
| 46 |
unknownFields protoimpl.UnknownFields |
| 47 |
|
| 48 |
// Required. Resource name of the tenant under which the event is created. |
| 49 |
// |
| 50 |
// The format is "projects/{project_id}/tenants/{tenant_id}", for example, |
| 51 |
// "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant |
| 52 |
// is created, for example, "projects/foo". |
| 53 |
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| 54 |
// Required. Events issued when end user interacts with customer's application |
| 55 |
// that uses Cloud Talent Solution. |
| 56 |
ClientEvent *ClientEvent `protobuf:"bytes,2,opt,name=client_event,json=clientEvent,proto3" json:"client_event,omitempty"` |
| 57 |
} |
| 58 |
|
| 59 |
func (x *CreateClientEventRequest) Reset() { |
| 60 |
*x = CreateClientEventRequest{} |
| 61 |
mi := &file_google_cloud_talent_v4beta1_event_service_proto_msgTypes[0] |
| 62 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 63 |
ms.StoreMessageInfo(mi) |
| 64 |
} |
| 65 |
|
| 66 |
func (x *CreateClientEventRequest) String() string { |
| 67 |
return protoimpl.X.MessageStringOf(x) |
| 68 |
} |
| 69 |
|
| 70 |
func (*CreateClientEventRequest) ProtoMessage() {} |
| 71 |
|
| 72 |
func (x *CreateClientEventRequest) ProtoReflect() protoreflect.Message { |
| 73 |
mi := &file_google_cloud_talent_v4beta1_event_service_proto_msgTypes[0] |
| 74 |
if x != nil { |
| 75 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 76 |
if ms.LoadMessageInfo() == nil { |
| 77 |
ms.StoreMessageInfo(mi) |
| 78 |
} |
| 79 |
return ms |
| 80 |
} |
| 81 |
return mi.MessageOf(x) |
| 82 |
} |
| 83 |
|
| 84 |
// Deprecated: Use CreateClientEventRequest.ProtoReflect.Descriptor instead. |
| 85 |
func (*CreateClientEventRequest) Descriptor() ([]byte, []int) { |
| 86 |
return file_google_cloud_talent_v4beta1_event_service_proto_rawDescGZIP(), []int{0} |
| 87 |
} |
| 88 |
|
| 89 |
func (x *CreateClientEventRequest) GetParent() string { |
| 90 |
if x != nil { |
| 91 |
return x.Parent |
| 92 |
} |
| 93 |
return "" |
| 94 |
} |
| 95 |
|
| 96 |
func (x *CreateClientEventRequest) GetClientEvent() *ClientEvent { |
| 97 |
if x != nil { |
| 98 |
return x.ClientEvent |
| 99 |
} |
| 100 |
return nil |
| 101 |
} |
| 102 |
|
| 103 |
var File_google_cloud_talent_v4beta1_event_service_proto protoreflect.FileDescriptor |
| 104 |
|
| 105 |
var file_google_cloud_talent_v4beta1_event_service_proto_rawDesc = []byte{ |
| 106 |
0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, |
| 107 |
0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x76, |
| 108 |
0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 109 |
0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 110 |
0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, |
| 111 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, |
| 112 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, |
| 113 |
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, |
| 114 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, |
| 115 |
0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, |
| 116 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, |
| 117 |
0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 118 |
0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, |
| 119 |
0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, |
| 120 |
0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x01, 0x0a, 0x18, 0x43, |
| 121 |
0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, |
| 122 |
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, |
| 123 |
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1d, 0x12, |
| 124 |
0x1b, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, |
| 125 |
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x52, 0x06, 0x70, 0x61, |
| 126 |
0x72, 0x65, 0x6e, 0x74, 0x12, 0x50, 0x0a, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x65, |
| 127 |
0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, |
| 128 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, |
| 129 |
0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, |
| 130 |
0x76, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, |
| 131 |
0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x32, 0xfa, 0x02, 0x0a, 0x0c, 0x45, 0x76, 0x65, 0x6e, 0x74, |
| 132 |
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xfb, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, |
| 133 |
0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x2e, |
| 134 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, |
| 135 |
0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, |
| 136 |
0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, |
| 137 |
0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 138 |
0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, |
| 139 |
0x61, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x84, |
| 140 |
0x01, 0xda, 0x41, 0x13, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x63, 0x6c, 0x69, 0x65, 0x6e, |
| 141 |
0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x68, 0x3a, 0x01, 0x2a, |
| 142 |
0x5a, 0x2e, 0x3a, 0x01, 0x2a, 0x22, 0x29, 0x2f, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, |
| 143 |
0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, |
| 144 |
0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, |
| 145 |
0x22, 0x33, 0x2f, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, |
| 146 |
0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, |
| 147 |
0x6e, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, |
| 148 |
0x76, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x6c, 0xca, 0x41, 0x13, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x67, |
| 149 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x53, |
| 150 |
0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 151 |
0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, |
| 152 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, |
| 153 |
0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 154 |
0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6a, |
| 155 |
0x6f, 0x62, 0x73, 0x42, 0x75, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 156 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, |
| 157 |
0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, |
| 158 |
0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x63, 0x6c, 0x6f, |
| 159 |
0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, |
| 160 |
0x2f, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x34, 0x62, 0x65, 0x74, |
| 161 |
0x61, 0x31, 0x2f, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x3b, 0x74, 0x61, 0x6c, 0x65, |
| 162 |
0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x53, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
| 163 |
0x6f, 0x33, |
| 164 |
} |
| 165 |
|
| 166 |
var ( |
| 167 |
file_google_cloud_talent_v4beta1_event_service_proto_rawDescOnce sync.Once |
| 168 |
file_google_cloud_talent_v4beta1_event_service_proto_rawDescData = file_google_cloud_talent_v4beta1_event_service_proto_rawDesc |
| 169 |
) |
| 170 |
|
| 171 |
func file_google_cloud_talent_v4beta1_event_service_proto_rawDescGZIP() []byte { |
| 172 |
file_google_cloud_talent_v4beta1_event_service_proto_rawDescOnce.Do(func() { |
| 173 |
file_google_cloud_talent_v4beta1_event_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_talent_v4beta1_event_service_proto_rawDescData) |
| 174 |
}) |
| 175 |
return file_google_cloud_talent_v4beta1_event_service_proto_rawDescData |
| 176 |
} |
| 177 |
|
| 178 |
var file_google_cloud_talent_v4beta1_event_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 179 |
var file_google_cloud_talent_v4beta1_event_service_proto_goTypes = []any{ |
| 180 |
(*CreateClientEventRequest)(nil), // 0: google.cloud.talent.v4beta1.CreateClientEventRequest |
| 181 |
(*ClientEvent)(nil), // 1: google.cloud.talent.v4beta1.ClientEvent |
| 182 |
} |
| 183 |
var file_google_cloud_talent_v4beta1_event_service_proto_depIdxs = []int32{ |
| 184 |
1, // 0: google.cloud.talent.v4beta1.CreateClientEventRequest.client_event:type_name -> google.cloud.talent.v4beta1.ClientEvent |
| 185 |
0, // 1: google.cloud.talent.v4beta1.EventService.CreateClientEvent:input_type -> google.cloud.talent.v4beta1.CreateClientEventRequest |
| 186 |
1, // 2: google.cloud.talent.v4beta1.EventService.CreateClientEvent:output_type -> google.cloud.talent.v4beta1.ClientEvent |
| 187 |
2, // [2:3] is the sub-list for method output_type |
| 188 |
1, // [1:2] is the sub-list for method input_type |
| 189 |
1, // [1:1] is the sub-list for extension type_name |
| 190 |
1, // [1:1] is the sub-list for extension extendee |
| 191 |
0, // [0:1] is the sub-list for field type_name |
| 192 |
} |
| 193 |
|
| 194 |
func init() { file_google_cloud_talent_v4beta1_event_service_proto_init() } |
| 195 |
func file_google_cloud_talent_v4beta1_event_service_proto_init() { |
| 196 |
if File_google_cloud_talent_v4beta1_event_service_proto != nil { |
| 197 |
return |
| 198 |
} |
| 199 |
file_google_cloud_talent_v4beta1_event_proto_init() |
| 200 |
type x struct{} |
| 201 |
out := protoimpl.TypeBuilder{ |
| 202 |
File: protoimpl.DescBuilder{ |
| 203 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 204 |
RawDescriptor: file_google_cloud_talent_v4beta1_event_service_proto_rawDesc, |
| 205 |
NumEnums: 0, |
| 206 |
NumMessages: 1, |
| 207 |
NumExtensions: 0, |
| 208 |
NumServices: 1, |
| 209 |
}, |
| 210 |
GoTypes: file_google_cloud_talent_v4beta1_event_service_proto_goTypes, |
| 211 |
DependencyIndexes: file_google_cloud_talent_v4beta1_event_service_proto_depIdxs, |
| 212 |
MessageInfos: file_google_cloud_talent_v4beta1_event_service_proto_msgTypes, |
| 213 |
}.Build() |
| 214 |
File_google_cloud_talent_v4beta1_event_service_proto = out.File |
| 215 |
file_google_cloud_talent_v4beta1_event_service_proto_rawDesc = nil |
| 216 |
file_google_cloud_talent_v4beta1_event_service_proto_goTypes = nil |
| 217 |
file_google_cloud_talent_v4beta1_event_service_proto_depIdxs = nil |
| 218 |
} |
| 219 |
|
| 220 |
// Reference imports to suppress errors if they are not otherwise used. |
| 221 |
var _ context.Context |
| 222 |
var _ grpc.ClientConnInterface |
| 223 |
|
| 224 |
// This is a compile-time assertion to ensure that this generated file |
| 225 |
// is compatible with the grpc package it is being compiled against. |
| 226 |
const _ = grpc.SupportPackageIsVersion6 |
| 227 |
|
| 228 |
// EventServiceClient is the client API for EventService service. |
| 229 |
// |
| 230 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 231 |
type EventServiceClient interface { |
| 232 |
// Report events issued when end user interacts with customer's application |
| 233 |
// that uses Cloud Talent Solution. You may inspect the created events in |
| 234 |
// [self service |
| 235 |
// tools](https://console.cloud.google.com/talent-solution/overview). |
| 236 |
// [Learn |
| 237 |
// more](https://cloud.google.com/talent-solution/docs/management-tools) |
| 238 |
// about self service tools. |
| 239 |
CreateClientEvent(ctx context.Context, in *CreateClientEventRequest, opts ...grpc.CallOption) (*ClientEvent, error) |
| 240 |
} |
| 241 |
|
| 242 |
type eventServiceClient struct { |
| 243 |
cc grpc.ClientConnInterface |
| 244 |
} |
| 245 |
|
| 246 |
func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient { |
| 247 |
return &eventServiceClient{cc} |
| 248 |
} |
| 249 |
|
| 250 |
func (c *eventServiceClient) CreateClientEvent(ctx context.Context, in *CreateClientEventRequest, opts ...grpc.CallOption) (*ClientEvent, error) { |
| 251 |
out := new(ClientEvent) |
| 252 |
err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.EventService/CreateClientEvent", in, out, opts...) |
| 253 |
if err != nil { |
| 254 |
return nil, err |
| 255 |
} |
| 256 |
return out, nil |
| 257 |
} |
| 258 |
|
| 259 |
// EventServiceServer is the server API for EventService service. |
| 260 |
type EventServiceServer interface { |
| 261 |
// Report events issued when end user interacts with customer's application |
| 262 |
// that uses Cloud Talent Solution. You may inspect the created events in |
| 263 |
// [self service |
| 264 |
// tools](https://console.cloud.google.com/talent-solution/overview). |
| 265 |
// [Learn |
| 266 |
// more](https://cloud.google.com/talent-solution/docs/management-tools) |
| 267 |
// about self service tools. |
| 268 |
CreateClientEvent(context.Context, *CreateClientEventRequest) (*ClientEvent, error) |
| 269 |
} |
| 270 |
|
| 271 |
// UnimplementedEventServiceServer can be embedded to have forward compatible implementations. |
| 272 |
type UnimplementedEventServiceServer struct { |
| 273 |
} |
| 274 |
|
| 275 |
func (*UnimplementedEventServiceServer) CreateClientEvent(context.Context, *CreateClientEventRequest) (*ClientEvent, error) { |
| 276 |
return nil, status.Errorf(codes.Unimplemented, "method CreateClientEvent not implemented") |
| 277 |
} |
| 278 |
|
| 279 |
func RegisterEventServiceServer(s *grpc.Server, srv EventServiceServer) { |
| 280 |
s.RegisterService(&_EventService_serviceDesc, srv) |
| 281 |
} |
| 282 |
|
| 283 |
func _EventService_CreateClientEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 284 |
in := new(CreateClientEventRequest) |
| 285 |
if err := dec(in); err != nil { |
| 286 |
return nil, err |
| 287 |
} |
| 288 |
if interceptor == nil { |
| 289 |
return srv.(EventServiceServer).CreateClientEvent(ctx, in) |
| 290 |
} |
| 291 |
info := &grpc.UnaryServerInfo{ |
| 292 |
Server: srv, |
| 293 |
FullMethod: "/google.cloud.talent.v4beta1.EventService/CreateClientEvent", |
| 294 |
} |
| 295 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 296 |
return srv.(EventServiceServer).CreateClientEvent(ctx, req.(*CreateClientEventRequest)) |
| 297 |
} |
| 298 |
return interceptor(ctx, in, info, handler) |
| 299 |
} |
| 300 |
|
| 301 |
var _EventService_serviceDesc = grpc.ServiceDesc{ |
| 302 |
ServiceName: "google.cloud.talent.v4beta1.EventService", |
| 303 |
HandlerType: (*EventServiceServer)(nil), |
| 304 |
Methods: []grpc.MethodDesc{ |
| 305 |
{ |
| 306 |
MethodName: "CreateClientEvent", |
| 307 |
Handler: _EventService_CreateClientEvent_Handler, |
| 308 |
}, |
| 309 |
}, |
| 310 |
Streams: []grpc.StreamDesc{}, |
| 311 |
Metadata: "google/cloud/talent/v4beta1/event_service.proto", |
| 312 |
} |