Debian Codegraph @

retail/apiv2alpha/retailpb/branch_service.pb.go

raw symbols SCIP
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/v2alpha/branch_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 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 // Request for
43 // [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]
44 // method.
45 type ListBranchesRequest struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50 // Required. The parent catalog resource name.
51 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
52 // The view to apply to the returned
53 // [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
54 // [Branch.BranchView.BASIC] if unspecified.
55 // See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
56 // to find what fields are excluded from BASIC view.
57 View BranchView `protobuf:"varint,2,opt,name=view,proto3,enum=google.cloud.retail.v2alpha.BranchView" json:"view,omitempty"`
58 }
59
60 func (x *ListBranchesRequest) Reset() {
61 *x = ListBranchesRequest{}
62 mi := &file_google_cloud_retail_v2alpha_branch_service_proto_msgTypes[0]
63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
64 ms.StoreMessageInfo(mi)
65 }
66
67 func (x *ListBranchesRequest) String() string {
68 return protoimpl.X.MessageStringOf(x)
69 }
70
71 func (*ListBranchesRequest) ProtoMessage() {}
72
73 func (x *ListBranchesRequest) ProtoReflect() protoreflect.Message {
74 mi := &file_google_cloud_retail_v2alpha_branch_service_proto_msgTypes[0]
75 if x != nil {
76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77 if ms.LoadMessageInfo() == nil {
78 ms.StoreMessageInfo(mi)
79 }
80 return ms
81 }
82 return mi.MessageOf(x)
83 }
84
85 // Deprecated: Use ListBranchesRequest.ProtoReflect.Descriptor instead.
86 func (*ListBranchesRequest) Descriptor() ([]byte, []int) {
87 return file_google_cloud_retail_v2alpha_branch_service_proto_rawDescGZIP(), []int{0}
88 }
89
90 func (x *ListBranchesRequest) GetParent() string {
91 if x != nil {
92 return x.Parent
93 }
94 return ""
95 }
96
97 func (x *ListBranchesRequest) GetView() BranchView {
98 if x != nil {
99 return x.View
100 }
101 return BranchView_BRANCH_VIEW_UNSPECIFIED
102 }
103
104 // Response for
105 // [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]
106 // method.
107 type ListBranchesResponse struct {
108 state protoimpl.MessageState
109 sizeCache protoimpl.SizeCache
110 unknownFields protoimpl.UnknownFields
111
112 // The Branches.
113 Branches []*Branch `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"`
114 }
115
116 func (x *ListBranchesResponse) Reset() {
117 *x = ListBranchesResponse{}
118 mi := &file_google_cloud_retail_v2alpha_branch_service_proto_msgTypes[1]
119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
120 ms.StoreMessageInfo(mi)
121 }
122
123 func (x *ListBranchesResponse) String() string {
124 return protoimpl.X.MessageStringOf(x)
125 }
126
127 func (*ListBranchesResponse) ProtoMessage() {}
128
129 func (x *ListBranchesResponse) ProtoReflect() protoreflect.Message {
130 mi := &file_google_cloud_retail_v2alpha_branch_service_proto_msgTypes[1]
131 if x != nil {
132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
133 if ms.LoadMessageInfo() == nil {
134 ms.StoreMessageInfo(mi)
135 }
136 return ms
137 }
138 return mi.MessageOf(x)
139 }
140
141 // Deprecated: Use ListBranchesResponse.ProtoReflect.Descriptor instead.
142 func (*ListBranchesResponse) Descriptor() ([]byte, []int) {
143 return file_google_cloud_retail_v2alpha_branch_service_proto_rawDescGZIP(), []int{1}
144 }
145
146 func (x *ListBranchesResponse) GetBranches() []*Branch {
147 if x != nil {
148 return x.Branches
149 }
150 return nil
151 }
152
153 // Request for
154 // [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
155 // method.
156 type GetBranchRequest struct {
157 state protoimpl.MessageState
158 sizeCache protoimpl.SizeCache
159 unknownFields protoimpl.UnknownFields
160
161 // Required. The name of the branch to retrieve.
162 // Format:
163 // `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`.
164 //
165 // "default_branch" can be used as a special branch_id, it returns the
166 // default branch that has been set for the catalog.
167 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
168 // The view to apply to the returned
169 // [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
170 // [Branch.BranchView.BASIC] if unspecified.
171 // See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
172 // to find what fields are excluded from BASIC view.
173 View BranchView `protobuf:"varint,2,opt,name=view,proto3,enum=google.cloud.retail.v2alpha.BranchView" json:"view,omitempty"`
174 }
175
176 func (x *GetBranchRequest) Reset() {
177 *x = GetBranchRequest{}
178 mi := &file_google_cloud_retail_v2alpha_branch_service_proto_msgTypes[2]
179 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
180 ms.StoreMessageInfo(mi)
181 }
182
183 func (x *GetBranchRequest) String() string {
184 return protoimpl.X.MessageStringOf(x)
185 }
186
187 func (*GetBranchRequest) ProtoMessage() {}
188
189 func (x *GetBranchRequest) ProtoReflect() protoreflect.Message {
190 mi := &file_google_cloud_retail_v2alpha_branch_service_proto_msgTypes[2]
191 if x != nil {
192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
193 if ms.LoadMessageInfo() == nil {
194 ms.StoreMessageInfo(mi)
195 }
196 return ms
197 }
198 return mi.MessageOf(x)
199 }
200
201 // Deprecated: Use GetBranchRequest.ProtoReflect.Descriptor instead.
202 func (*GetBranchRequest) Descriptor() ([]byte, []int) {
203 return file_google_cloud_retail_v2alpha_branch_service_proto_rawDescGZIP(), []int{2}
204 }
205
206 func (x *GetBranchRequest) GetName() string {
207 if x != nil {
208 return x.Name
209 }
210 return ""
211 }
212
213 func (x *GetBranchRequest) GetView() BranchView {
214 if x != nil {
215 return x.View
216 }
217 return BranchView_BRANCH_VIEW_UNSPECIFIED
218 }
219
220 var File_google_cloud_retail_v2alpha_branch_service_proto protoreflect.FileDescriptor
221
222 var file_google_cloud_retail_v2alpha_branch_service_proto_rawDesc = []byte{
223 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
224 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x62, 0x72,
225 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
226 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
227 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a,
228 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
229 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67,
230 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
231 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
232 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f,
233 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
234 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
235 0x74, 0x6f, 0x1a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
236 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f,
237 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x01, 0x0a,
238 0x13, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71,
239 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,
240 0x20, 0x01, 0x28, 0x09, 0x42, 0x25, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1f, 0x0a, 0x1d, 0x72, 0x65,
241 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
242 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x06, 0x70, 0x61, 0x72,
243 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28,
244 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
245 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e,
246 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77,
247 0x22, 0x57, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73,
248 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x62, 0x72, 0x61, 0x6e,
249 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f,
250 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c,
251 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52,
252 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x10, 0x47, 0x65,
253 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38,
254 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x24, 0xe0, 0x41,
255 0x02, 0xfa, 0x41, 0x1e, 0x0a, 0x1c, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f,
256 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x42, 0x72, 0x61, 0x6e,
257 0x63, 0x68, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77,
258 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
259 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61,
260 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52,
261 0x04, 0x76, 0x69, 0x65, 0x77, 0x32, 0xce, 0x03, 0x0a, 0x0d, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,
262 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xc2, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74,
263 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
264 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76,
265 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63,
266 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f,
267 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c,
268 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61,
269 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0xda,
270 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c,
271 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
272 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61,
273 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73,
274 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, 0xac, 0x01, 0x0a,
275 0x09, 0x47, 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f,
276 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c,
277 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e,
278 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
279 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,
280 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x4b,
281 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f,
282 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,
283 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
284 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x2f,
285 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x1a, 0x49, 0xca, 0x41, 0x15,
286 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
287 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f,
288 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
289 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c,
290 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xd6, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
291 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61,
292 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x12, 0x42, 0x72, 0x61, 0x6e,
293 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
294 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
295 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69,
296 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62,
297 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x52, 0x45, 0x54, 0x41,
298 0x49, 0x4c, 0xaa, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75,
299 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x56, 0x32, 0x41, 0x6c, 0x70, 0x68, 0x61,
300 0xca, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c,
301 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xea, 0x02,
302 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a,
303 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62,
304 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
305 }
306
307 var (
308 file_google_cloud_retail_v2alpha_branch_service_proto_rawDescOnce sync.Once
309 file_google_cloud_retail_v2alpha_branch_service_proto_rawDescData = file_google_cloud_retail_v2alpha_branch_service_proto_rawDesc
310 )
311
312 func file_google_cloud_retail_v2alpha_branch_service_proto_rawDescGZIP() []byte {
313 file_google_cloud_retail_v2alpha_branch_service_proto_rawDescOnce.Do(func() {
314 file_google_cloud_retail_v2alpha_branch_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2alpha_branch_service_proto_rawDescData)
315 })
316 return file_google_cloud_retail_v2alpha_branch_service_proto_rawDescData
317 }
318
319 var file_google_cloud_retail_v2alpha_branch_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
320 var file_google_cloud_retail_v2alpha_branch_service_proto_goTypes = []any{
321 (*ListBranchesRequest)(nil), // 0: google.cloud.retail.v2alpha.ListBranchesRequest
322 (*ListBranchesResponse)(nil), // 1: google.cloud.retail.v2alpha.ListBranchesResponse
323 (*GetBranchRequest)(nil), // 2: google.cloud.retail.v2alpha.GetBranchRequest
324 (BranchView)(0), // 3: google.cloud.retail.v2alpha.BranchView
325 (*Branch)(nil), // 4: google.cloud.retail.v2alpha.Branch
326 }
327 var file_google_cloud_retail_v2alpha_branch_service_proto_depIdxs = []int32{
328 3, // 0: google.cloud.retail.v2alpha.ListBranchesRequest.view:type_name -> google.cloud.retail.v2alpha.BranchView
329 4, // 1: google.cloud.retail.v2alpha.ListBranchesResponse.branches:type_name -> google.cloud.retail.v2alpha.Branch
330 3, // 2: google.cloud.retail.v2alpha.GetBranchRequest.view:type_name -> google.cloud.retail.v2alpha.BranchView
331 0, // 3: google.cloud.retail.v2alpha.BranchService.ListBranches:input_type -> google.cloud.retail.v2alpha.ListBranchesRequest
332 2, // 4: google.cloud.retail.v2alpha.BranchService.GetBranch:input_type -> google.cloud.retail.v2alpha.GetBranchRequest
333 1, // 5: google.cloud.retail.v2alpha.BranchService.ListBranches:output_type -> google.cloud.retail.v2alpha.ListBranchesResponse
334 4, // 6: google.cloud.retail.v2alpha.BranchService.GetBranch:output_type -> google.cloud.retail.v2alpha.Branch
335 5, // [5:7] is the sub-list for method output_type
336 3, // [3:5] is the sub-list for method input_type
337 3, // [3:3] is the sub-list for extension type_name
338 3, // [3:3] is the sub-list for extension extendee
339 0, // [0:3] is the sub-list for field type_name
340 }
341
342 func init() { file_google_cloud_retail_v2alpha_branch_service_proto_init() }
343 func file_google_cloud_retail_v2alpha_branch_service_proto_init() {
344 if File_google_cloud_retail_v2alpha_branch_service_proto != nil {
345 return
346 }
347 file_google_cloud_retail_v2alpha_branch_proto_init()
348 type x struct{}
349 out := protoimpl.TypeBuilder{
350 File: protoimpl.DescBuilder{
351 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
352 RawDescriptor: file_google_cloud_retail_v2alpha_branch_service_proto_rawDesc,
353 NumEnums: 0,
354 NumMessages: 3,
355 NumExtensions: 0,
356 NumServices: 1,
357 },
358 GoTypes: file_google_cloud_retail_v2alpha_branch_service_proto_goTypes,
359 DependencyIndexes: file_google_cloud_retail_v2alpha_branch_service_proto_depIdxs,
360 MessageInfos: file_google_cloud_retail_v2alpha_branch_service_proto_msgTypes,
361 }.Build()
362 File_google_cloud_retail_v2alpha_branch_service_proto = out.File
363 file_google_cloud_retail_v2alpha_branch_service_proto_rawDesc = nil
364 file_google_cloud_retail_v2alpha_branch_service_proto_goTypes = nil
365 file_google_cloud_retail_v2alpha_branch_service_proto_depIdxs = nil
366 }
367
368 // Reference imports to suppress errors if they are not otherwise used.
369 var _ context.Context
370 var _ grpc.ClientConnInterface
371
372 // This is a compile-time assertion to ensure that this generated file
373 // is compatible with the grpc package it is being compiled against.
374 const _ = grpc.SupportPackageIsVersion6
375
376 // BranchServiceClient is the client API for BranchService service.
377 //
378 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
379 type BranchServiceClient interface {
380 // Lists all instances of [Branch][google.cloud.retail.v2alpha.Branch] under
381 // the specified parent [Catalog][google.cloud.retail.v2alpha.Catalog].
382 ListBranches(ctx context.Context, in *ListBranchesRequest, opts ...grpc.CallOption) (*ListBranchesResponse, error)
383 // Retrieves a [Branch][google.cloud.retail.v2alpha.Branch].
384 GetBranch(ctx context.Context, in *GetBranchRequest, opts ...grpc.CallOption) (*Branch, error)
385 }
386
387 type branchServiceClient struct {
388 cc grpc.ClientConnInterface
389 }
390
391 func NewBranchServiceClient(cc grpc.ClientConnInterface) BranchServiceClient {
392 return &branchServiceClient{cc}
393 }
394
395 func (c *branchServiceClient) ListBranches(ctx context.Context, in *ListBranchesRequest, opts ...grpc.CallOption) (*ListBranchesResponse, error) {
396 out := new(ListBranchesResponse)
397 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2alpha.BranchService/ListBranches", in, out, opts...)
398 if err != nil {
399 return nil, err
400 }
401 return out, nil
402 }
403
404 func (c *branchServiceClient) GetBranch(ctx context.Context, in *GetBranchRequest, opts ...grpc.CallOption) (*Branch, error) {
405 out := new(Branch)
406 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2alpha.BranchService/GetBranch", in, out, opts...)
407 if err != nil {
408 return nil, err
409 }
410 return out, nil
411 }
412
413 // BranchServiceServer is the server API for BranchService service.
414 type BranchServiceServer interface {
415 // Lists all instances of [Branch][google.cloud.retail.v2alpha.Branch] under
416 // the specified parent [Catalog][google.cloud.retail.v2alpha.Catalog].
417 ListBranches(context.Context, *ListBranchesRequest) (*ListBranchesResponse, error)
418 // Retrieves a [Branch][google.cloud.retail.v2alpha.Branch].
419 GetBranch(context.Context, *GetBranchRequest) (*Branch, error)
420 }
421
422 // UnimplementedBranchServiceServer can be embedded to have forward compatible implementations.
423 type UnimplementedBranchServiceServer struct {
424 }
425
426 func (*UnimplementedBranchServiceServer) ListBranches(context.Context, *ListBranchesRequest) (*ListBranchesResponse, error) {
427 return nil, status.Errorf(codes.Unimplemented, "method ListBranches not implemented")
428 }
429 func (*UnimplementedBranchServiceServer) GetBranch(context.Context, *GetBranchRequest) (*Branch, error) {
430 return nil, status.Errorf(codes.Unimplemented, "method GetBranch not implemented")
431 }
432
433 func RegisterBranchServiceServer(s *grpc.Server, srv BranchServiceServer) {
434 s.RegisterService(&_BranchService_serviceDesc, srv)
435 }
436
437 func _BranchService_ListBranches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
438 in := new(ListBranchesRequest)
439 if err := dec(in); err != nil {
440 return nil, err
441 }
442 if interceptor == nil {
443 return srv.(BranchServiceServer).ListBranches(ctx, in)
444 }
445 info := &grpc.UnaryServerInfo{
446 Server: srv,
447 FullMethod: "/google.cloud.retail.v2alpha.BranchService/ListBranches",
448 }
449 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
450 return srv.(BranchServiceServer).ListBranches(ctx, req.(*ListBranchesRequest))
451 }
452 return interceptor(ctx, in, info, handler)
453 }
454
455 func _BranchService_GetBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
456 in := new(GetBranchRequest)
457 if err := dec(in); err != nil {
458 return nil, err
459 }
460 if interceptor == nil {
461 return srv.(BranchServiceServer).GetBranch(ctx, in)
462 }
463 info := &grpc.UnaryServerInfo{
464 Server: srv,
465 FullMethod: "/google.cloud.retail.v2alpha.BranchService/GetBranch",
466 }
467 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
468 return srv.(BranchServiceServer).GetBranch(ctx, req.(*GetBranchRequest))
469 }
470 return interceptor(ctx, in, info, handler)
471 }
472
473 var _BranchService_serviceDesc = grpc.ServiceDesc{
474 ServiceName: "google.cloud.retail.v2alpha.BranchService",
475 HandlerType: (*BranchServiceServer)(nil),
476 Methods: []grpc.MethodDesc{
477 {
478 MethodName: "ListBranches",
479 Handler: _BranchService_ListBranches_Handler,
480 },
481 {
482 MethodName: "GetBranch",
483 Handler: _BranchService_GetBranch_Handler,
484 },
485 },
486 Streams: []grpc.StreamDesc{},
487 Metadata: "google/cloud/retail/v2alpha/branch_service.proto",
488 }