Debian Codegraph @

retail/apiv2beta/retailpb/project_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/project_service.proto
20
21 package retailpb
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 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
32 reflect "reflect"
33 sync "sync"
34 )
35
36 const (
37 // Verify that this generated code is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39 // Verify that runtime/protoimpl is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 // Request for
44 // [ProjectService.GetAlertConfig][google.cloud.retail.v2beta.ProjectService.GetAlertConfig]
45 // method.
46 type GetAlertConfigRequest struct {
47 state protoimpl.MessageState
48 sizeCache protoimpl.SizeCache
49 unknownFields protoimpl.UnknownFields
50
51 // Required. Full AlertConfig resource name. Format:
52 // projects/{project_number}/alertConfig
53 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
54 }
55
56 func (x *GetAlertConfigRequest) Reset() {
57 *x = GetAlertConfigRequest{}
58 mi := &file_google_cloud_retail_v2beta_project_service_proto_msgTypes[0]
59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
60 ms.StoreMessageInfo(mi)
61 }
62
63 func (x *GetAlertConfigRequest) String() string {
64 return protoimpl.X.MessageStringOf(x)
65 }
66
67 func (*GetAlertConfigRequest) ProtoMessage() {}
68
69 func (x *GetAlertConfigRequest) ProtoReflect() protoreflect.Message {
70 mi := &file_google_cloud_retail_v2beta_project_service_proto_msgTypes[0]
71 if x != nil {
72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
73 if ms.LoadMessageInfo() == nil {
74 ms.StoreMessageInfo(mi)
75 }
76 return ms
77 }
78 return mi.MessageOf(x)
79 }
80
81 // Deprecated: Use GetAlertConfigRequest.ProtoReflect.Descriptor instead.
82 func (*GetAlertConfigRequest) Descriptor() ([]byte, []int) {
83 return file_google_cloud_retail_v2beta_project_service_proto_rawDescGZIP(), []int{0}
84 }
85
86 func (x *GetAlertConfigRequest) GetName() string {
87 if x != nil {
88 return x.Name
89 }
90 return ""
91 }
92
93 // Request for
94 // [ProjectService.UpdateAlertConfig][google.cloud.retail.v2beta.ProjectService.UpdateAlertConfig]
95 // method.
96 type UpdateAlertConfigRequest struct {
97 state protoimpl.MessageState
98 sizeCache protoimpl.SizeCache
99 unknownFields protoimpl.UnknownFields
100
101 // Required. The [AlertConfig][google.cloud.retail.v2beta.AlertConfig] to
102 // update.
103 //
104 // If the caller does not have permission to update the
105 // [AlertConfig][google.cloud.retail.v2beta.AlertConfig], then a
106 // PERMISSION_DENIED error is returned.
107 //
108 // If the [AlertConfig][google.cloud.retail.v2beta.AlertConfig] to update does
109 // not exist, a NOT_FOUND error is returned.
110 AlertConfig *AlertConfig `protobuf:"bytes,1,opt,name=alert_config,json=alertConfig,proto3" json:"alert_config,omitempty"`
111 // Indicates which fields in the provided
112 // [AlertConfig][google.cloud.retail.v2beta.AlertConfig] to update. If not
113 // set, all supported fields are updated.
114 UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
115 }
116
117 func (x *UpdateAlertConfigRequest) Reset() {
118 *x = UpdateAlertConfigRequest{}
119 mi := &file_google_cloud_retail_v2beta_project_service_proto_msgTypes[1]
120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
121 ms.StoreMessageInfo(mi)
122 }
123
124 func (x *UpdateAlertConfigRequest) String() string {
125 return protoimpl.X.MessageStringOf(x)
126 }
127
128 func (*UpdateAlertConfigRequest) ProtoMessage() {}
129
130 func (x *UpdateAlertConfigRequest) ProtoReflect() protoreflect.Message {
131 mi := &file_google_cloud_retail_v2beta_project_service_proto_msgTypes[1]
132 if x != nil {
133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
134 if ms.LoadMessageInfo() == nil {
135 ms.StoreMessageInfo(mi)
136 }
137 return ms
138 }
139 return mi.MessageOf(x)
140 }
141
142 // Deprecated: Use UpdateAlertConfigRequest.ProtoReflect.Descriptor instead.
143 func (*UpdateAlertConfigRequest) Descriptor() ([]byte, []int) {
144 return file_google_cloud_retail_v2beta_project_service_proto_rawDescGZIP(), []int{1}
145 }
146
147 func (x *UpdateAlertConfigRequest) GetAlertConfig() *AlertConfig {
148 if x != nil {
149 return x.AlertConfig
150 }
151 return nil
152 }
153
154 func (x *UpdateAlertConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
155 if x != nil {
156 return x.UpdateMask
157 }
158 return nil
159 }
160
161 var File_google_cloud_retail_v2beta_project_service_proto protoreflect.FileDescriptor
162
163 var file_google_cloud_retail_v2beta_project_service_proto_rawDesc = []byte{
164 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
165 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f,
166 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
167 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
168 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1c,
169 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
170 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f,
171 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e,
172 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
173 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72,
174 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
175 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
176 0x6f, 0x1a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
177 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x70, 0x72,
178 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f,
179 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65,
180 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x56, 0x0a,
181 0x15, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
182 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
183 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a, 0x21, 0x72, 0x65,
184 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
185 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
186 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa8, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
187 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
188 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x0c, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
189 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
190 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76,
191 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
192 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e,
193 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,
194 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
195 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,
196 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b,
197 0x32, 0xda, 0x03, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76,
198 0x69, 0x63, 0x65, 0x12, 0xa2, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74,
199 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
200 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62,
201 0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66,
202 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
203 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,
204 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66,
205 0x69, 0x67, 0x22, 0x34, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,
206 0x27, 0x12, 0x25, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,
207 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x61, 0x6c, 0x65, 0x72,
208 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x7d, 0x12, 0xd7, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64,
209 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34,
210 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65,
211 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61,
212 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71,
213 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
214 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
215 0x61, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x63, 0xda,
216 0x41, 0x18, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2c, 0x75,
217 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42,
218 0x3a, 0x0c, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0x32,
219 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63,
220 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
221 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
222 0x67, 0x7d, 0x1a, 0x49, 0xca, 0x41, 0x15, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f,
223 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68,
224 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
225 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63,
226 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xd2, 0x01,
227 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
228 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
229 0x42, 0x13, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
230 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67,
231 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x65, 0x74,
232 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x72, 0x65,
233 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0xa2,
234 0x02, 0x06, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
235 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x56,
236 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43,
237 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56, 0x32, 0x62, 0x65,
238 0x74, 0x61, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
239 0x75, 0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x65,
240 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
241 }
242
243 var (
244 file_google_cloud_retail_v2beta_project_service_proto_rawDescOnce sync.Once
245 file_google_cloud_retail_v2beta_project_service_proto_rawDescData = file_google_cloud_retail_v2beta_project_service_proto_rawDesc
246 )
247
248 func file_google_cloud_retail_v2beta_project_service_proto_rawDescGZIP() []byte {
249 file_google_cloud_retail_v2beta_project_service_proto_rawDescOnce.Do(func() {
250 file_google_cloud_retail_v2beta_project_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2beta_project_service_proto_rawDescData)
251 })
252 return file_google_cloud_retail_v2beta_project_service_proto_rawDescData
253 }
254
255 var file_google_cloud_retail_v2beta_project_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
256 var file_google_cloud_retail_v2beta_project_service_proto_goTypes = []any{
257 (*GetAlertConfigRequest)(nil), // 0: google.cloud.retail.v2beta.GetAlertConfigRequest
258 (*UpdateAlertConfigRequest)(nil), // 1: google.cloud.retail.v2beta.UpdateAlertConfigRequest
259 (*AlertConfig)(nil), // 2: google.cloud.retail.v2beta.AlertConfig
260 (*fieldmaskpb.FieldMask)(nil), // 3: google.protobuf.FieldMask
261 }
262 var file_google_cloud_retail_v2beta_project_service_proto_depIdxs = []int32{
263 2, // 0: google.cloud.retail.v2beta.UpdateAlertConfigRequest.alert_config:type_name -> google.cloud.retail.v2beta.AlertConfig
264 3, // 1: google.cloud.retail.v2beta.UpdateAlertConfigRequest.update_mask:type_name -> google.protobuf.FieldMask
265 0, // 2: google.cloud.retail.v2beta.ProjectService.GetAlertConfig:input_type -> google.cloud.retail.v2beta.GetAlertConfigRequest
266 1, // 3: google.cloud.retail.v2beta.ProjectService.UpdateAlertConfig:input_type -> google.cloud.retail.v2beta.UpdateAlertConfigRequest
267 2, // 4: google.cloud.retail.v2beta.ProjectService.GetAlertConfig:output_type -> google.cloud.retail.v2beta.AlertConfig
268 2, // 5: google.cloud.retail.v2beta.ProjectService.UpdateAlertConfig:output_type -> google.cloud.retail.v2beta.AlertConfig
269 4, // [4:6] is the sub-list for method output_type
270 2, // [2:4] is the sub-list for method input_type
271 2, // [2:2] is the sub-list for extension type_name
272 2, // [2:2] is the sub-list for extension extendee
273 0, // [0:2] is the sub-list for field type_name
274 }
275
276 func init() { file_google_cloud_retail_v2beta_project_service_proto_init() }
277 func file_google_cloud_retail_v2beta_project_service_proto_init() {
278 if File_google_cloud_retail_v2beta_project_service_proto != nil {
279 return
280 }
281 file_google_cloud_retail_v2beta_project_proto_init()
282 type x struct{}
283 out := protoimpl.TypeBuilder{
284 File: protoimpl.DescBuilder{
285 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
286 RawDescriptor: file_google_cloud_retail_v2beta_project_service_proto_rawDesc,
287 NumEnums: 0,
288 NumMessages: 2,
289 NumExtensions: 0,
290 NumServices: 1,
291 },
292 GoTypes: file_google_cloud_retail_v2beta_project_service_proto_goTypes,
293 DependencyIndexes: file_google_cloud_retail_v2beta_project_service_proto_depIdxs,
294 MessageInfos: file_google_cloud_retail_v2beta_project_service_proto_msgTypes,
295 }.Build()
296 File_google_cloud_retail_v2beta_project_service_proto = out.File
297 file_google_cloud_retail_v2beta_project_service_proto_rawDesc = nil
298 file_google_cloud_retail_v2beta_project_service_proto_goTypes = nil
299 file_google_cloud_retail_v2beta_project_service_proto_depIdxs = nil
300 }
301
302 // Reference imports to suppress errors if they are not otherwise used.
303 var _ context.Context
304 var _ grpc.ClientConnInterface
305
306 // This is a compile-time assertion to ensure that this generated file
307 // is compatible with the grpc package it is being compiled against.
308 const _ = grpc.SupportPackageIsVersion6
309
310 // ProjectServiceClient is the client API for ProjectService service.
311 //
312 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
313 type ProjectServiceClient interface {
314 // Get the [AlertConfig][google.cloud.retail.v2beta.AlertConfig] of the
315 // requested project.
316 GetAlertConfig(ctx context.Context, in *GetAlertConfigRequest, opts ...grpc.CallOption) (*AlertConfig, error)
317 // Update the alert config of the requested project.
318 UpdateAlertConfig(ctx context.Context, in *UpdateAlertConfigRequest, opts ...grpc.CallOption) (*AlertConfig, error)
319 }
320
321 type projectServiceClient struct {
322 cc grpc.ClientConnInterface
323 }
324
325 func NewProjectServiceClient(cc grpc.ClientConnInterface) ProjectServiceClient {
326 return &projectServiceClient{cc}
327 }
328
329 func (c *projectServiceClient) GetAlertConfig(ctx context.Context, in *GetAlertConfigRequest, opts ...grpc.CallOption) (*AlertConfig, error) {
330 out := new(AlertConfig)
331 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.ProjectService/GetAlertConfig", in, out, opts...)
332 if err != nil {
333 return nil, err
334 }
335 return out, nil
336 }
337
338 func (c *projectServiceClient) UpdateAlertConfig(ctx context.Context, in *UpdateAlertConfigRequest, opts ...grpc.CallOption) (*AlertConfig, error) {
339 out := new(AlertConfig)
340 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.ProjectService/UpdateAlertConfig", in, out, opts...)
341 if err != nil {
342 return nil, err
343 }
344 return out, nil
345 }
346
347 // ProjectServiceServer is the server API for ProjectService service.
348 type ProjectServiceServer interface {
349 // Get the [AlertConfig][google.cloud.retail.v2beta.AlertConfig] of the
350 // requested project.
351 GetAlertConfig(context.Context, *GetAlertConfigRequest) (*AlertConfig, error)
352 // Update the alert config of the requested project.
353 UpdateAlertConfig(context.Context, *UpdateAlertConfigRequest) (*AlertConfig, error)
354 }
355
356 // UnimplementedProjectServiceServer can be embedded to have forward compatible implementations.
357 type UnimplementedProjectServiceServer struct {
358 }
359
360 func (*UnimplementedProjectServiceServer) GetAlertConfig(context.Context, *GetAlertConfigRequest) (*AlertConfig, error) {
361 return nil, status.Errorf(codes.Unimplemented, "method GetAlertConfig not implemented")
362 }
363 func (*UnimplementedProjectServiceServer) UpdateAlertConfig(context.Context, *UpdateAlertConfigRequest) (*AlertConfig, error) {
364 return nil, status.Errorf(codes.Unimplemented, "method UpdateAlertConfig not implemented")
365 }
366
367 func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer) {
368 s.RegisterService(&_ProjectService_serviceDesc, srv)
369 }
370
371 func _ProjectService_GetAlertConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
372 in := new(GetAlertConfigRequest)
373 if err := dec(in); err != nil {
374 return nil, err
375 }
376 if interceptor == nil {
377 return srv.(ProjectServiceServer).GetAlertConfig(ctx, in)
378 }
379 info := &grpc.UnaryServerInfo{
380 Server: srv,
381 FullMethod: "/google.cloud.retail.v2beta.ProjectService/GetAlertConfig",
382 }
383 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
384 return srv.(ProjectServiceServer).GetAlertConfig(ctx, req.(*GetAlertConfigRequest))
385 }
386 return interceptor(ctx, in, info, handler)
387 }
388
389 func _ProjectService_UpdateAlertConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
390 in := new(UpdateAlertConfigRequest)
391 if err := dec(in); err != nil {
392 return nil, err
393 }
394 if interceptor == nil {
395 return srv.(ProjectServiceServer).UpdateAlertConfig(ctx, in)
396 }
397 info := &grpc.UnaryServerInfo{
398 Server: srv,
399 FullMethod: "/google.cloud.retail.v2beta.ProjectService/UpdateAlertConfig",
400 }
401 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
402 return srv.(ProjectServiceServer).UpdateAlertConfig(ctx, req.(*UpdateAlertConfigRequest))
403 }
404 return interceptor(ctx, in, info, handler)
405 }
406
407 var _ProjectService_serviceDesc = grpc.ServiceDesc{
408 ServiceName: "google.cloud.retail.v2beta.ProjectService",
409 HandlerType: (*ProjectServiceServer)(nil),
410 Methods: []grpc.MethodDesc{
411 {
412 MethodName: "GetAlertConfig",
413 Handler: _ProjectService_GetAlertConfig_Handler,
414 },
415 {
416 MethodName: "UpdateAlertConfig",
417 Handler: _ProjectService_UpdateAlertConfig_Handler,
418 },
419 },
420 Streams: []grpc.StreamDesc{},
421 Metadata: "google/cloud/retail/v2beta/project_service.proto",
422 }