Debian Codegraph @

retail/apiv2beta/retailpb/analytics_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/retail/v2beta/analytics_service.proto
20
21 package retailpb
22
23 import (
24 longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
25 context "context"
26 _ "google.golang.org/genproto/googleapis/api/annotations"
27 grpc "google.golang.org/grpc"
28 codes "google.golang.org/grpc/codes"
29 status "google.golang.org/grpc/status"
30 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
31 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
32 reflect "reflect"
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 var File_google_cloud_retail_v2beta_analytics_service_proto protoreflect.FileDescriptor
43
44 var file_google_cloud_retail_v2beta_analytics_service_proto_rawDesc = []byte{
45 0x0a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
46 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x61, 0x6e, 0x61,
47 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70,
48 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
49 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
50 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
51 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
52 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
53 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
54 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69,
55 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
56 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72,
57 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
58 0x64, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f,
59 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72,
60 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67,
61 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
62 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x93, 0x03, 0x0a, 0x10, 0x41, 0x6e, 0x61,
63 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb3, 0x02,
64 0x0a, 0x16, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63,
65 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
66 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76,
67 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x6e, 0x61, 0x6c,
68 0x79, 0x74, 0x69, 0x63, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75,
69 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e,
70 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
71 0x6f, 0x6e, 0x22, 0xbe, 0x01, 0xca, 0x41, 0x66, 0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
72 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32,
73 0x62, 0x65, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79,
74 0x74, 0x69, 0x63, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
75 0x6e, 0x73, 0x65, 0x12, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
76 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e,
77 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x82, 0xd3,
78 0xe4, 0x93, 0x02, 0x4f, 0x3a, 0x01, 0x2a, 0x22, 0x4a, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
79 0x2f, 0x7b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
80 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a,
81 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, 0x70,
82 0x6f, 0x72, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x4d, 0x65, 0x74, 0x72,
83 0x69, 0x63, 0x73, 0x1a, 0x49, 0xca, 0x41, 0x15, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67,
84 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e,
85 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
86 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f,
87 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xd4,
88 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
89 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
90 0x61, 0x42, 0x15, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76,
91 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75,
92 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f,
93 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
94 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c,
95 0x70, 0x62, 0xa2, 0x02, 0x06, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x1a, 0x47, 0x6f,
96 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61, 0x69,
97 0x6c, 0x2e, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
98 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56,
99 0x32, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a,
100 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x56,
101 0x32, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
102 }
103
104 var file_google_cloud_retail_v2beta_analytics_service_proto_goTypes = []any{
105 (*ExportAnalyticsMetricsRequest)(nil), // 0: google.cloud.retail.v2beta.ExportAnalyticsMetricsRequest
106 (*longrunningpb.Operation)(nil), // 1: google.longrunning.Operation
107 }
108 var file_google_cloud_retail_v2beta_analytics_service_proto_depIdxs = []int32{
109 0, // 0: google.cloud.retail.v2beta.AnalyticsService.ExportAnalyticsMetrics:input_type -> google.cloud.retail.v2beta.ExportAnalyticsMetricsRequest
110 1, // 1: google.cloud.retail.v2beta.AnalyticsService.ExportAnalyticsMetrics:output_type -> google.longrunning.Operation
111 1, // [1:2] is the sub-list for method output_type
112 0, // [0:1] is the sub-list for method input_type
113 0, // [0:0] is the sub-list for extension type_name
114 0, // [0:0] is the sub-list for extension extendee
115 0, // [0:0] is the sub-list for field type_name
116 }
117
118 func init() { file_google_cloud_retail_v2beta_analytics_service_proto_init() }
119 func file_google_cloud_retail_v2beta_analytics_service_proto_init() {
120 if File_google_cloud_retail_v2beta_analytics_service_proto != nil {
121 return
122 }
123 file_google_cloud_retail_v2beta_export_config_proto_init()
124 type x struct{}
125 out := protoimpl.TypeBuilder{
126 File: protoimpl.DescBuilder{
127 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
128 RawDescriptor: file_google_cloud_retail_v2beta_analytics_service_proto_rawDesc,
129 NumEnums: 0,
130 NumMessages: 0,
131 NumExtensions: 0,
132 NumServices: 1,
133 },
134 GoTypes: file_google_cloud_retail_v2beta_analytics_service_proto_goTypes,
135 DependencyIndexes: file_google_cloud_retail_v2beta_analytics_service_proto_depIdxs,
136 }.Build()
137 File_google_cloud_retail_v2beta_analytics_service_proto = out.File
138 file_google_cloud_retail_v2beta_analytics_service_proto_rawDesc = nil
139 file_google_cloud_retail_v2beta_analytics_service_proto_goTypes = nil
140 file_google_cloud_retail_v2beta_analytics_service_proto_depIdxs = nil
141 }
142
143 // Reference imports to suppress errors if they are not otherwise used.
144 var _ context.Context
145 var _ grpc.ClientConnInterface
146
147 // This is a compile-time assertion to ensure that this generated file
148 // is compatible with the grpc package it is being compiled against.
149 const _ = grpc.SupportPackageIsVersion6
150
151 // AnalyticsServiceClient is the client API for AnalyticsService service.
152 //
153 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
154 type AnalyticsServiceClient interface {
155 // Exports analytics metrics.
156 //
157 // `Operation.response` is of type `ExportAnalyticsMetricsResponse`.
158 // `Operation.metadata` is of type `ExportMetadata`.
159 ExportAnalyticsMetrics(ctx context.Context, in *ExportAnalyticsMetricsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
160 }
161
162 type analyticsServiceClient struct {
163 cc grpc.ClientConnInterface
164 }
165
166 func NewAnalyticsServiceClient(cc grpc.ClientConnInterface) AnalyticsServiceClient {
167 return &analyticsServiceClient{cc}
168 }
169
170 func (c *analyticsServiceClient) ExportAnalyticsMetrics(ctx context.Context, in *ExportAnalyticsMetricsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
171 out := new(longrunningpb.Operation)
172 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.AnalyticsService/ExportAnalyticsMetrics", in, out, opts...)
173 if err != nil {
174 return nil, err
175 }
176 return out, nil
177 }
178
179 // AnalyticsServiceServer is the server API for AnalyticsService service.
180 type AnalyticsServiceServer interface {
181 // Exports analytics metrics.
182 //
183 // `Operation.response` is of type `ExportAnalyticsMetricsResponse`.
184 // `Operation.metadata` is of type `ExportMetadata`.
185 ExportAnalyticsMetrics(context.Context, *ExportAnalyticsMetricsRequest) (*longrunningpb.Operation, error)
186 }
187
188 // UnimplementedAnalyticsServiceServer can be embedded to have forward compatible implementations.
189 type UnimplementedAnalyticsServiceServer struct {
190 }
191
192 func (*UnimplementedAnalyticsServiceServer) ExportAnalyticsMetrics(context.Context, *ExportAnalyticsMetricsRequest) (*longrunningpb.Operation, error) {
193 return nil, status.Errorf(codes.Unimplemented, "method ExportAnalyticsMetrics not implemented")
194 }
195
196 func RegisterAnalyticsServiceServer(s *grpc.Server, srv AnalyticsServiceServer) {
197 s.RegisterService(&_AnalyticsService_serviceDesc, srv)
198 }
199
200 func _AnalyticsService_ExportAnalyticsMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
201 in := new(ExportAnalyticsMetricsRequest)
202 if err := dec(in); err != nil {
203 return nil, err
204 }
205 if interceptor == nil {
206 return srv.(AnalyticsServiceServer).ExportAnalyticsMetrics(ctx, in)
207 }
208 info := &grpc.UnaryServerInfo{
209 Server: srv,
210 FullMethod: "/google.cloud.retail.v2beta.AnalyticsService/ExportAnalyticsMetrics",
211 }
212 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
213 return srv.(AnalyticsServiceServer).ExportAnalyticsMetrics(ctx, req.(*ExportAnalyticsMetricsRequest))
214 }
215 return interceptor(ctx, in, info, handler)
216 }
217
218 var _AnalyticsService_serviceDesc = grpc.ServiceDesc{
219 ServiceName: "google.cloud.retail.v2beta.AnalyticsService",
220 HandlerType: (*AnalyticsServiceServer)(nil),
221 Methods: []grpc.MethodDesc{
222 {
223 MethodName: "ExportAnalyticsMetrics",
224 Handler: _AnalyticsService_ExportAnalyticsMetrics_Handler,
225 },
226 },
227 Streams: []grpc.StreamDesc{},
228 Metadata: "google/cloud/retail/v2beta/analytics_service.proto",
229 }