Debian Codegraph @

talent/apiv4/talentpb/event_service.pb.go

raw
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/v4/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/tenants/bar".
52 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
53 // Required. Events issued when end user interacts with customer's application
54 // that uses Cloud Talent Solution.
55 ClientEvent *ClientEvent `protobuf:"bytes,2,opt,name=client_event,json=clientEvent,proto3" json:"client_event,omitempty"`
56 }
57
58 func (x *CreateClientEventRequest) Reset() {
59 *x = CreateClientEventRequest{}
60 mi := &file_google_cloud_talent_v4_event_service_proto_msgTypes[0]
61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62 ms.StoreMessageInfo(mi)
63 }
64
65 func (x *CreateClientEventRequest) String() string {
66 return protoimpl.X.MessageStringOf(x)
67 }
68
69 func (*CreateClientEventRequest) ProtoMessage() {}
70
71 func (x *CreateClientEventRequest) ProtoReflect() protoreflect.Message {
72 mi := &file_google_cloud_talent_v4_event_service_proto_msgTypes[0]
73 if x != nil {
74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
75 if ms.LoadMessageInfo() == nil {
76 ms.StoreMessageInfo(mi)
77 }
78 return ms
79 }
80 return mi.MessageOf(x)
81 }
82
83 // Deprecated: Use CreateClientEventRequest.ProtoReflect.Descriptor instead.
84 func (*CreateClientEventRequest) Descriptor() ([]byte, []int) {
85 return file_google_cloud_talent_v4_event_service_proto_rawDescGZIP(), []int{0}
86 }
87
88 func (x *CreateClientEventRequest) GetParent() string {
89 if x != nil {
90 return x.Parent
91 }
92 return ""
93 }
94
95 func (x *CreateClientEventRequest) GetClientEvent() *ClientEvent {
96 if x != nil {
97 return x.ClientEvent
98 }
99 return nil
100 }
101
102 var File_google_cloud_talent_v4_event_service_proto protoreflect.FileDescriptor
103
104 var file_google_cloud_talent_v4_event_service_proto_rawDesc = []byte{
105 0x0a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74,
106 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x34, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x73,
107 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f,
108 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e,
109 0x74, 0x2e, 0x76, 0x34, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
110 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
111 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
112 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
113 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65,
114 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f,
115 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
116 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
117 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x34, 0x2f,
118 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x01, 0x0a, 0x18,
119 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e,
120 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65,
121 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x22, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1c,
122 0x0a, 0x1a, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
123 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61,
124 0x72, 0x65, 0x6e, 0x74, 0x12, 0x4b, 0x0a, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x65,
125 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f,
126 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74,
127 0x2e, 0x76, 0x34, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42,
128 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e,
129 0x74, 0x32, 0xc5, 0x02, 0x0a, 0x0c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69,
130 0x63, 0x65, 0x12, 0xc6, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69,
131 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
132 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76,
133 0x34, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x76,
134 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6f, 0x6f,
135 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74,
136 0x2e, 0x76, 0x34, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22,
137 0x5a, 0xda, 0x41, 0x13, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x63, 0x6c, 0x69, 0x65, 0x6e,
138 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x3a, 0x0c, 0x63,
139 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x2e, 0x2f, 0x76, 0x34,
140 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
141 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63,
142 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x6c, 0xca, 0x41, 0x13,
143 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
144 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x53, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77,
145 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
146 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74,
147 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77,
148 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
149 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x42, 0x6b, 0x0a, 0x1a, 0x63, 0x6f, 0x6d,
150 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61,
151 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x42, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65,
152 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c,
153 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67,
154 0x6f, 0x2f, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x34, 0x2f, 0x74,
155 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x3b, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x70, 0x62,
156 0xa2, 0x02, 0x03, 0x43, 0x54, 0x53, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
157 }
158
159 var (
160 file_google_cloud_talent_v4_event_service_proto_rawDescOnce sync.Once
161 file_google_cloud_talent_v4_event_service_proto_rawDescData = file_google_cloud_talent_v4_event_service_proto_rawDesc
162 )
163
164 func file_google_cloud_talent_v4_event_service_proto_rawDescGZIP() []byte {
165 file_google_cloud_talent_v4_event_service_proto_rawDescOnce.Do(func() {
166 file_google_cloud_talent_v4_event_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_talent_v4_event_service_proto_rawDescData)
167 })
168 return file_google_cloud_talent_v4_event_service_proto_rawDescData
169 }
170
171 var file_google_cloud_talent_v4_event_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
172 var file_google_cloud_talent_v4_event_service_proto_goTypes = []any{
173 (*CreateClientEventRequest)(nil), // 0: google.cloud.talent.v4.CreateClientEventRequest
174 (*ClientEvent)(nil), // 1: google.cloud.talent.v4.ClientEvent
175 }
176 var file_google_cloud_talent_v4_event_service_proto_depIdxs = []int32{
177 1, // 0: google.cloud.talent.v4.CreateClientEventRequest.client_event:type_name -> google.cloud.talent.v4.ClientEvent
178 0, // 1: google.cloud.talent.v4.EventService.CreateClientEvent:input_type -> google.cloud.talent.v4.CreateClientEventRequest
179 1, // 2: google.cloud.talent.v4.EventService.CreateClientEvent:output_type -> google.cloud.talent.v4.ClientEvent
180 2, // [2:3] is the sub-list for method output_type
181 1, // [1:2] is the sub-list for method input_type
182 1, // [1:1] is the sub-list for extension type_name
183 1, // [1:1] is the sub-list for extension extendee
184 0, // [0:1] is the sub-list for field type_name
185 }
186
187 func init() { file_google_cloud_talent_v4_event_service_proto_init() }
188 func file_google_cloud_talent_v4_event_service_proto_init() {
189 if File_google_cloud_talent_v4_event_service_proto != nil {
190 return
191 }
192 file_google_cloud_talent_v4_event_proto_init()
193 type x struct{}
194 out := protoimpl.TypeBuilder{
195 File: protoimpl.DescBuilder{
196 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
197 RawDescriptor: file_google_cloud_talent_v4_event_service_proto_rawDesc,
198 NumEnums: 0,
199 NumMessages: 1,
200 NumExtensions: 0,
201 NumServices: 1,
202 },
203 GoTypes: file_google_cloud_talent_v4_event_service_proto_goTypes,
204 DependencyIndexes: file_google_cloud_talent_v4_event_service_proto_depIdxs,
205 MessageInfos: file_google_cloud_talent_v4_event_service_proto_msgTypes,
206 }.Build()
207 File_google_cloud_talent_v4_event_service_proto = out.File
208 file_google_cloud_talent_v4_event_service_proto_rawDesc = nil
209 file_google_cloud_talent_v4_event_service_proto_goTypes = nil
210 file_google_cloud_talent_v4_event_service_proto_depIdxs = nil
211 }
212
213 // Reference imports to suppress errors if they are not otherwise used.
214 var _ context.Context
215 var _ grpc.ClientConnInterface
216
217 // This is a compile-time assertion to ensure that this generated file
218 // is compatible with the grpc package it is being compiled against.
219 const _ = grpc.SupportPackageIsVersion6
220
221 // EventServiceClient is the client API for EventService service.
222 //
223 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
224 type EventServiceClient interface {
225 // Report events issued when end user interacts with customer's application
226 // that uses Cloud Talent Solution. You may inspect the created events in
227 // [self service
228 // tools](https://console.cloud.google.com/talent-solution/overview).
229 // [Learn
230 // more](https://cloud.google.com/talent-solution/docs/management-tools)
231 // about self service tools.
232 CreateClientEvent(ctx context.Context, in *CreateClientEventRequest, opts ...grpc.CallOption) (*ClientEvent, error)
233 }
234
235 type eventServiceClient struct {
236 cc grpc.ClientConnInterface
237 }
238
239 func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient {
240 return &eventServiceClient{cc}
241 }
242
243 func (c *eventServiceClient) CreateClientEvent(ctx context.Context, in *CreateClientEventRequest, opts ...grpc.CallOption) (*ClientEvent, error) {
244 out := new(ClientEvent)
245 err := c.cc.Invoke(ctx, "/google.cloud.talent.v4.EventService/CreateClientEvent", in, out, opts...)
246 if err != nil {
247 return nil, err
248 }
249 return out, nil
250 }
251
252 // EventServiceServer is the server API for EventService service.
253 type EventServiceServer interface {
254 // Report events issued when end user interacts with customer's application
255 // that uses Cloud Talent Solution. You may inspect the created events in
256 // [self service
257 // tools](https://console.cloud.google.com/talent-solution/overview).
258 // [Learn
259 // more](https://cloud.google.com/talent-solution/docs/management-tools)
260 // about self service tools.
261 CreateClientEvent(context.Context, *CreateClientEventRequest) (*ClientEvent, error)
262 }
263
264 // UnimplementedEventServiceServer can be embedded to have forward compatible implementations.
265 type UnimplementedEventServiceServer struct {
266 }
267
268 func (*UnimplementedEventServiceServer) CreateClientEvent(context.Context, *CreateClientEventRequest) (*ClientEvent, error) {
269 return nil, status.Errorf(codes.Unimplemented, "method CreateClientEvent not implemented")
270 }
271
272 func RegisterEventServiceServer(s *grpc.Server, srv EventServiceServer) {
273 s.RegisterService(&_EventService_serviceDesc, srv)
274 }
275
276 func _EventService_CreateClientEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
277 in := new(CreateClientEventRequest)
278 if err := dec(in); err != nil {
279 return nil, err
280 }
281 if interceptor == nil {
282 return srv.(EventServiceServer).CreateClientEvent(ctx, in)
283 }
284 info := &grpc.UnaryServerInfo{
285 Server: srv,
286 FullMethod: "/google.cloud.talent.v4.EventService/CreateClientEvent",
287 }
288 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
289 return srv.(EventServiceServer).CreateClientEvent(ctx, req.(*CreateClientEventRequest))
290 }
291 return interceptor(ctx, in, info, handler)
292 }
293
294 var _EventService_serviceDesc = grpc.ServiceDesc{
295 ServiceName: "google.cloud.talent.v4.EventService",
296 HandlerType: (*EventServiceServer)(nil),
297 Methods: []grpc.MethodDesc{
298 {
299 MethodName: "CreateClientEvent",
300 Handler: _EventService_CreateClientEvent_Handler,
301 },
302 },
303 Streams: []grpc.StreamDesc{},
304 Metadata: "google/cloud/talent/v4/event_service.proto",
305 }