Debian Codegraph @

googleapis/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.pb.go

raw
1 // Copyright 2022 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.26.0
18 // protoc v3.12.2
19 // source: google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto
20
21 package procurement
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 longrunning "google.golang.org/genproto/googleapis/longrunning"
30 grpc "google.golang.org/grpc"
31 codes "google.golang.org/grpc/codes"
32 status "google.golang.org/grpc/status"
33 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35 )
36
37 const (
38 // Verify that this generated code is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40 // Verify that runtime/protoimpl is sufficiently up-to-date.
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44 // Request message for [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.PlaceOrder].
45 type PlaceOrderRequest struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50 // Required. The resource name of the parent resource.
51 // This field has the form `billingAccounts/{billing-account-id}`.
52 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
53 // Required. The user-specified name of the order being placed.
54 // Must be unique within a billing account.
55 DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
56 // Optional. Places order for offer. Required when an offer-based order is being placed.
57 LineItemInfo []*LineItemInfo `protobuf:"bytes,10,rep,name=line_item_info,json=lineItemInfo,proto3" json:"line_item_info,omitempty"`
58 // Optional. A unique identifier for this request.
59 // The server will ignore subsequent requests that provide a duplicate request
60 // ID for at least 120 minutes after the first request.
61 //
62 // The request ID must be a valid
63 // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
64 RequestId string `protobuf:"bytes,7,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
65 }
66
67 func (x *PlaceOrderRequest) Reset() {
68 *x = PlaceOrderRequest{}
69 if protoimpl.UnsafeEnabled {
70 mi := &file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[0]
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 ms.StoreMessageInfo(mi)
73 }
74 }
75
76 func (x *PlaceOrderRequest) String() string {
77 return protoimpl.X.MessageStringOf(x)
78 }
79
80 func (*PlaceOrderRequest) ProtoMessage() {}
81
82 func (x *PlaceOrderRequest) ProtoReflect() protoreflect.Message {
83 mi := &file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[0]
84 if protoimpl.UnsafeEnabled && x != nil {
85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86 if ms.LoadMessageInfo() == nil {
87 ms.StoreMessageInfo(mi)
88 }
89 return ms
90 }
91 return mi.MessageOf(x)
92 }
93
94 // Deprecated: Use PlaceOrderRequest.ProtoReflect.Descriptor instead.
95 func (*PlaceOrderRequest) Descriptor() ([]byte, []int) {
96 return file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescGZIP(), []int{0}
97 }
98
99 func (x *PlaceOrderRequest) GetParent() string {
100 if x != nil {
101 return x.Parent
102 }
103 return ""
104 }
105
106 func (x *PlaceOrderRequest) GetDisplayName() string {
107 if x != nil {
108 return x.DisplayName
109 }
110 return ""
111 }
112
113 func (x *PlaceOrderRequest) GetLineItemInfo() []*LineItemInfo {
114 if x != nil {
115 return x.LineItemInfo
116 }
117 return nil
118 }
119
120 func (x *PlaceOrderRequest) GetRequestId() string {
121 if x != nil {
122 return x.RequestId
123 }
124 return ""
125 }
126
127 // Message stored in the metadata field of the Operation returned by
128 // [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.PlaceOrder].
129 type PlaceOrderMetadata struct {
130 state protoimpl.MessageState
131 sizeCache protoimpl.SizeCache
132 unknownFields protoimpl.UnknownFields
133 }
134
135 func (x *PlaceOrderMetadata) Reset() {
136 *x = PlaceOrderMetadata{}
137 if protoimpl.UnsafeEnabled {
138 mi := &file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[1]
139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
140 ms.StoreMessageInfo(mi)
141 }
142 }
143
144 func (x *PlaceOrderMetadata) String() string {
145 return protoimpl.X.MessageStringOf(x)
146 }
147
148 func (*PlaceOrderMetadata) ProtoMessage() {}
149
150 func (x *PlaceOrderMetadata) ProtoReflect() protoreflect.Message {
151 mi := &file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[1]
152 if protoimpl.UnsafeEnabled && x != nil {
153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
154 if ms.LoadMessageInfo() == nil {
155 ms.StoreMessageInfo(mi)
156 }
157 return ms
158 }
159 return mi.MessageOf(x)
160 }
161
162 // Deprecated: Use PlaceOrderMetadata.ProtoReflect.Descriptor instead.
163 func (*PlaceOrderMetadata) Descriptor() ([]byte, []int) {
164 return file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescGZIP(), []int{1}
165 }
166
167 // Request message for [ConsumerProcurementService.GetOrder][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.GetOrder]
168 type GetOrderRequest struct {
169 state protoimpl.MessageState
170 sizeCache protoimpl.SizeCache
171 unknownFields protoimpl.UnknownFields
172
173 // Required. The name of the order to retrieve.
174 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
175 }
176
177 func (x *GetOrderRequest) Reset() {
178 *x = GetOrderRequest{}
179 if protoimpl.UnsafeEnabled {
180 mi := &file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[2]
181 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
182 ms.StoreMessageInfo(mi)
183 }
184 }
185
186 func (x *GetOrderRequest) String() string {
187 return protoimpl.X.MessageStringOf(x)
188 }
189
190 func (*GetOrderRequest) ProtoMessage() {}
191
192 func (x *GetOrderRequest) ProtoReflect() protoreflect.Message {
193 mi := &file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[2]
194 if protoimpl.UnsafeEnabled && x != nil {
195 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
196 if ms.LoadMessageInfo() == nil {
197 ms.StoreMessageInfo(mi)
198 }
199 return ms
200 }
201 return mi.MessageOf(x)
202 }
203
204 // Deprecated: Use GetOrderRequest.ProtoReflect.Descriptor instead.
205 func (*GetOrderRequest) Descriptor() ([]byte, []int) {
206 return file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescGZIP(), []int{2}
207 }
208
209 func (x *GetOrderRequest) GetName() string {
210 if x != nil {
211 return x.Name
212 }
213 return ""
214 }
215
216 // Request message for [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.ListOrders].
217 type ListOrdersRequest struct {
218 state protoimpl.MessageState
219 sizeCache protoimpl.SizeCache
220 unknownFields protoimpl.UnknownFields
221
222 // Required. The parent resource to query for orders.
223 // This field has the form `billingAccounts/{billing-account-id}`.
224 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
225 // The maximum number of entries requested.
226 // The default page size is 25 and the maximum page size is 200.
227 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
228 // The token for fetching the next page.
229 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
230 // Filter that you can use to limit the list request.
231 //
232 // A query string that can match a selected set of attributes
233 // with string values. For example, `display_name=abc`.
234 // Supported query attributes are
235 //
236 // * `display_name`
237 //
238 // If the query contains special characters other than letters,
239 // underscore, or digits, the phrase must be quoted with double quotes. For
240 // example, `display_name="foo:bar"`, where the display name needs to be
241 // quoted because it contains special character colon.
242 //
243 // Queries can be combined with `OR`, and `NOT` to form more complex queries.
244 // You can also group them to force a desired evaluation order.
245 // For example, `display_name=abc OR display_name=def`.
246 Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
247 }
248
249 func (x *ListOrdersRequest) Reset() {
250 *x = ListOrdersRequest{}
251 if protoimpl.UnsafeEnabled {
252 mi := &file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[3]
253 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
254 ms.StoreMessageInfo(mi)
255 }
256 }
257
258 func (x *ListOrdersRequest) String() string {
259 return protoimpl.X.MessageStringOf(x)
260 }
261
262 func (*ListOrdersRequest) ProtoMessage() {}
263
264 func (x *ListOrdersRequest) ProtoReflect() protoreflect.Message {
265 mi := &file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[3]
266 if protoimpl.UnsafeEnabled && x != nil {
267 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
268 if ms.LoadMessageInfo() == nil {
269 ms.StoreMessageInfo(mi)
270 }
271 return ms
272 }
273 return mi.MessageOf(x)
274 }
275
276 // Deprecated: Use ListOrdersRequest.ProtoReflect.Descriptor instead.
277 func (*ListOrdersRequest) Descriptor() ([]byte, []int) {
278 return file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescGZIP(), []int{3}
279 }
280
281 func (x *ListOrdersRequest) GetParent() string {
282 if x != nil {
283 return x.Parent
284 }
285 return ""
286 }
287
288 func (x *ListOrdersRequest) GetPageSize() int32 {
289 if x != nil {
290 return x.PageSize
291 }
292 return 0
293 }
294
295 func (x *ListOrdersRequest) GetPageToken() string {
296 if x != nil {
297 return x.PageToken
298 }
299 return ""
300 }
301
302 func (x *ListOrdersRequest) GetFilter() string {
303 if x != nil {
304 return x.Filter
305 }
306 return ""
307 }
308
309 // Response message for [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.ListOrders].
310 type ListOrdersResponse struct {
311 state protoimpl.MessageState
312 sizeCache protoimpl.SizeCache
313 unknownFields protoimpl.UnknownFields
314
315 // The list of orders in this response.
316 Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
317 // The token for fetching the next page.
318 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
319 }
320
321 func (x *ListOrdersResponse) Reset() {
322 *x = ListOrdersResponse{}
323 if protoimpl.UnsafeEnabled {
324 mi := &file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[4]
325 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
326 ms.StoreMessageInfo(mi)
327 }
328 }
329
330 func (x *ListOrdersResponse) String() string {
331 return protoimpl.X.MessageStringOf(x)
332 }
333
334 func (*ListOrdersResponse) ProtoMessage() {}
335
336 func (x *ListOrdersResponse) ProtoReflect() protoreflect.Message {
337 mi := &file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[4]
338 if protoimpl.UnsafeEnabled && x != nil {
339 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
340 if ms.LoadMessageInfo() == nil {
341 ms.StoreMessageInfo(mi)
342 }
343 return ms
344 }
345 return mi.MessageOf(x)
346 }
347
348 // Deprecated: Use ListOrdersResponse.ProtoReflect.Descriptor instead.
349 func (*ListOrdersResponse) Descriptor() ([]byte, []int) {
350 return file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescGZIP(), []int{4}
351 }
352
353 func (x *ListOrdersResponse) GetOrders() []*Order {
354 if x != nil {
355 return x.Orders
356 }
357 return nil
358 }
359
360 func (x *ListOrdersResponse) GetNextPageToken() string {
361 if x != nil {
362 return x.NextPageToken
363 }
364 return ""
365 }
366
367 var File_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto protoreflect.FileDescriptor
368
369 var file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDesc = []byte{
370 0x0a, 0x4d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
371 0x6f, 0x6d, 0x6d, 0x65, 0x72, 0x63, 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72,
372 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x61,
373 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e,
374 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
375 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f,
376 0x6d, 0x6d, 0x65, 0x72, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x2e,
377 0x70, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c,
378 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
379 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
380 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
381 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
382 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65,
383 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f,
384 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
385 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
386 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x72, 0x63, 0x65, 0x2f, 0x63,
387 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65, 0x6d,
388 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6f, 0x72, 0x64,
389 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
390 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65,
391 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x02,
392 0x0a, 0x11, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
393 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,
394 0x01, 0x28, 0x09, 0x42, 0x32, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2c, 0x0a, 0x2a, 0x63, 0x6c, 0x6f,
395 0x75, 0x64, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
396 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67,
397 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12,
398 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
399 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70,
400 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x6c, 0x0a, 0x0e, 0x6c, 0x69, 0x6e, 0x65, 0x5f,
401 0x69, 0x74, 0x65, 0x6d, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32,
402 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63,
403 0x6f, 0x6d, 0x6d, 0x65, 0x72, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72,
404 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x61,
405 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x6e, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x6e,
406 0x66, 0x6f, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x74, 0x65,
407 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
408 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09,
409 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x50, 0x6c, 0x61,
410 0x63, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22,
411 0x2a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65,
412 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
413 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x11,
414 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
415 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
416 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b,
417 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
418 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
419 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
420 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69,
421 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74,
422 0x65, 0x72, 0x22, 0x90, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72,
423 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x06, 0x6f, 0x72, 0x64,
424 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
425 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x72, 0x63,
426 0x65, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x75,
427 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e,
428 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x26, 0x0a,
429 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
430 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,
431 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xec, 0x05, 0x0a, 0x1a, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d,
432 0x65, 0x72, 0x50, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72,
433 0x76, 0x69, 0x63, 0x65, 0x12, 0xcf, 0x01, 0x0a, 0x0a, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x4f, 0x72,
434 0x64, 0x65, 0x72, 0x12, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
435 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x72, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6e, 0x73,
436 0x75, 0x6d, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74,
437 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x4f,
438 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f,
439 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67,
440 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5a, 0x82, 0xd3, 0xe4, 0x93,
441 0x02, 0x36, 0x22, 0x31, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x7b, 0x70,
442 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x63,
443 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x3a,
444 0x70, 0x6c, 0x61, 0x63, 0x65, 0x3a, 0x01, 0x2a, 0xca, 0x41, 0x1b, 0x0a, 0x05, 0x4f, 0x72, 0x64,
445 0x65, 0x72, 0x12, 0x12, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65,
446 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xc1, 0x01, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x4f, 0x72,
447 0x64, 0x65, 0x72, 0x12, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
448 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x72, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6e, 0x73,
449 0x75, 0x6d, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74,
450 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x64,
451 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
452 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x72, 0x63,
453 0x65, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x75,
454 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e,
455 0x4f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f,
456 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x62,
457 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
458 0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xd2, 0x01, 0x0a, 0x0a, 0x4c,
459 0x69, 0x73, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
460 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x72, 0x63,
461 0x65, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x75,
462 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e,
463 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
464 0x74, 0x1a, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
465 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x72, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d,
466 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76,
467 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x64, 0x65,
468 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93,
469 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x7b, 0x70,
470 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x63,
471 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x1a,
472 0x63, 0xca, 0x41, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x72, 0x63,
473 0x65, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65,
474 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
475 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77,
476 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
477 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74,
478 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x9b, 0x01, 0x0a, 0x37, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
479 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x72,
480 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x63,
481 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31,
482 0x50, 0x01, 0x5a, 0x5e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
483 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
484 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
485 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x72, 0x63, 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65,
486 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31,
487 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x63, 0x75, 0x72, 0x65, 0x6d, 0x65,
488 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
489 }
490
491 var (
492 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescOnce sync.Once
493 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescData = file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDesc
494 )
495
496 func file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescGZIP() []byte {
497 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescOnce.Do(func() {
498 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescData)
499 })
500 return file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDescData
501 }
502
503 var file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
504 var file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_goTypes = []interface{}{
505 (*PlaceOrderRequest)(nil), // 0: google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest
506 (*PlaceOrderMetadata)(nil), // 1: google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
507 (*GetOrderRequest)(nil), // 2: google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest
508 (*ListOrdersRequest)(nil), // 3: google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest
509 (*ListOrdersResponse)(nil), // 4: google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse
510 (*LineItemInfo)(nil), // 5: google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo
511 (*Order)(nil), // 6: google.cloud.commerce.consumer.procurement.v1alpha1.Order
512 (*longrunning.Operation)(nil), // 7: google.longrunning.Operation
513 }
514 var file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_depIdxs = []int32{
515 5, // 0: google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.line_item_info:type_name -> google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo
516 6, // 1: google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.orders:type_name -> google.cloud.commerce.consumer.procurement.v1alpha1.Order
517 0, // 2: google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.PlaceOrder:input_type -> google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest
518 2, // 3: google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.GetOrder:input_type -> google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest
519 3, // 4: google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.ListOrders:input_type -> google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest
520 7, // 5: google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.PlaceOrder:output_type -> google.longrunning.Operation
521 6, // 6: google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.GetOrder:output_type -> google.cloud.commerce.consumer.procurement.v1alpha1.Order
522 4, // 7: google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.ListOrders:output_type -> google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse
523 5, // [5:8] is the sub-list for method output_type
524 2, // [2:5] is the sub-list for method input_type
525 2, // [2:2] is the sub-list for extension type_name
526 2, // [2:2] is the sub-list for extension extendee
527 0, // [0:2] is the sub-list for field type_name
528 }
529
530 func init() {
531 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_init()
532 }
533 func file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_init() {
534 if File_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto != nil {
535 return
536 }
537 file_google_cloud_commerce_consumer_procurement_v1alpha1_order_proto_init()
538 if !protoimpl.UnsafeEnabled {
539 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
540 switch v := v.(*PlaceOrderRequest); i {
541 case 0:
542 return &v.state
543 case 1:
544 return &v.sizeCache
545 case 2:
546 return &v.unknownFields
547 default:
548 return nil
549 }
550 }
551 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
552 switch v := v.(*PlaceOrderMetadata); i {
553 case 0:
554 return &v.state
555 case 1:
556 return &v.sizeCache
557 case 2:
558 return &v.unknownFields
559 default:
560 return nil
561 }
562 }
563 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
564 switch v := v.(*GetOrderRequest); i {
565 case 0:
566 return &v.state
567 case 1:
568 return &v.sizeCache
569 case 2:
570 return &v.unknownFields
571 default:
572 return nil
573 }
574 }
575 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
576 switch v := v.(*ListOrdersRequest); i {
577 case 0:
578 return &v.state
579 case 1:
580 return &v.sizeCache
581 case 2:
582 return &v.unknownFields
583 default:
584 return nil
585 }
586 }
587 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
588 switch v := v.(*ListOrdersResponse); i {
589 case 0:
590 return &v.state
591 case 1:
592 return &v.sizeCache
593 case 2:
594 return &v.unknownFields
595 default:
596 return nil
597 }
598 }
599 }
600 type x struct{}
601 out := protoimpl.TypeBuilder{
602 File: protoimpl.DescBuilder{
603 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
604 RawDescriptor: file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDesc,
605 NumEnums: 0,
606 NumMessages: 5,
607 NumExtensions: 0,
608 NumServices: 1,
609 },
610 GoTypes: file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_goTypes,
611 DependencyIndexes: file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_depIdxs,
612 MessageInfos: file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_msgTypes,
613 }.Build()
614 File_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto = out.File
615 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_rawDesc = nil
616 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_goTypes = nil
617 file_google_cloud_commerce_consumer_procurement_v1alpha1_procurement_service_proto_depIdxs = nil
618 }
619
620 // Reference imports to suppress errors if they are not otherwise used.
621 var _ context.Context
622 var _ grpc.ClientConnInterface
623
624 // This is a compile-time assertion to ensure that this generated file
625 // is compatible with the grpc package it is being compiled against.
626 const _ = grpc.SupportPackageIsVersion6
627
628 // ConsumerProcurementServiceClient is the client API for ConsumerProcurementService service.
629 //
630 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
631 type ConsumerProcurementServiceClient interface {
632 // Creates a new [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order].
633 //
634 // The returned long-running operation is in-progress until the backend
635 // completes the creation of the resource. Once completed, the order is
636 // in [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1alpha1.OrderState.ORDER_STATE_ACTIVE]. In case of failure, the
637 // order resource will be removed.
638 PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
639 // Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resource.
640 GetOrder(ctx context.Context, in *GetOrderRequest, opts ...grpc.CallOption) (*Order, error)
641 // Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resources that the user has access to, within the
642 // scope of the parent resource.
643 ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (*ListOrdersResponse, error)
644 }
645
646 type consumerProcurementServiceClient struct {
647 cc grpc.ClientConnInterface
648 }
649
650 func NewConsumerProcurementServiceClient(cc grpc.ClientConnInterface) ConsumerProcurementServiceClient {
651 return &consumerProcurementServiceClient{cc}
652 }
653
654 func (c *consumerProcurementServiceClient) PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
655 out := new(longrunning.Operation)
656 err := c.cc.Invoke(ctx, "/google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService/PlaceOrder", in, out, opts...)
657 if err != nil {
658 return nil, err
659 }
660 return out, nil
661 }
662
663 func (c *consumerProcurementServiceClient) GetOrder(ctx context.Context, in *GetOrderRequest, opts ...grpc.CallOption) (*Order, error) {
664 out := new(Order)
665 err := c.cc.Invoke(ctx, "/google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService/GetOrder", in, out, opts...)
666 if err != nil {
667 return nil, err
668 }
669 return out, nil
670 }
671
672 func (c *consumerProcurementServiceClient) ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (*ListOrdersResponse, error) {
673 out := new(ListOrdersResponse)
674 err := c.cc.Invoke(ctx, "/google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService/ListOrders", in, out, opts...)
675 if err != nil {
676 return nil, err
677 }
678 return out, nil
679 }
680
681 // ConsumerProcurementServiceServer is the server API for ConsumerProcurementService service.
682 type ConsumerProcurementServiceServer interface {
683 // Creates a new [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order].
684 //
685 // The returned long-running operation is in-progress until the backend
686 // completes the creation of the resource. Once completed, the order is
687 // in [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1alpha1.OrderState.ORDER_STATE_ACTIVE]. In case of failure, the
688 // order resource will be removed.
689 PlaceOrder(context.Context, *PlaceOrderRequest) (*longrunning.Operation, error)
690 // Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resource.
691 GetOrder(context.Context, *GetOrderRequest) (*Order, error)
692 // Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resources that the user has access to, within the
693 // scope of the parent resource.
694 ListOrders(context.Context, *ListOrdersRequest) (*ListOrdersResponse, error)
695 }
696
697 // UnimplementedConsumerProcurementServiceServer can be embedded to have forward compatible implementations.
698 type UnimplementedConsumerProcurementServiceServer struct {
699 }
700
701 func (*UnimplementedConsumerProcurementServiceServer) PlaceOrder(context.Context, *PlaceOrderRequest) (*longrunning.Operation, error) {
702 return nil, status.Errorf(codes.Unimplemented, "method PlaceOrder not implemented")
703 }
704 func (*UnimplementedConsumerProcurementServiceServer) GetOrder(context.Context, *GetOrderRequest) (*Order, error) {
705 return nil, status.Errorf(codes.Unimplemented, "method GetOrder not implemented")
706 }
707 func (*UnimplementedConsumerProcurementServiceServer) ListOrders(context.Context, *ListOrdersRequest) (*ListOrdersResponse, error) {
708 return nil, status.Errorf(codes.Unimplemented, "method ListOrders not implemented")
709 }
710
711 func RegisterConsumerProcurementServiceServer(s *grpc.Server, srv ConsumerProcurementServiceServer) {
712 s.RegisterService(&_ConsumerProcurementService_serviceDesc, srv)
713 }
714
715 func _ConsumerProcurementService_PlaceOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
716 in := new(PlaceOrderRequest)
717 if err := dec(in); err != nil {
718 return nil, err
719 }
720 if interceptor == nil {
721 return srv.(ConsumerProcurementServiceServer).PlaceOrder(ctx, in)
722 }
723 info := &grpc.UnaryServerInfo{
724 Server: srv,
725 FullMethod: "/google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService/PlaceOrder",
726 }
727 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
728 return srv.(ConsumerProcurementServiceServer).PlaceOrder(ctx, req.(*PlaceOrderRequest))
729 }
730 return interceptor(ctx, in, info, handler)
731 }
732
733 func _ConsumerProcurementService_GetOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
734 in := new(GetOrderRequest)
735 if err := dec(in); err != nil {
736 return nil, err
737 }
738 if interceptor == nil {
739 return srv.(ConsumerProcurementServiceServer).GetOrder(ctx, in)
740 }
741 info := &grpc.UnaryServerInfo{
742 Server: srv,
743 FullMethod: "/google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService/GetOrder",
744 }
745 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
746 return srv.(ConsumerProcurementServiceServer).GetOrder(ctx, req.(*GetOrderRequest))
747 }
748 return interceptor(ctx, in, info, handler)
749 }
750
751 func _ConsumerProcurementService_ListOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
752 in := new(ListOrdersRequest)
753 if err := dec(in); err != nil {
754 return nil, err
755 }
756 if interceptor == nil {
757 return srv.(ConsumerProcurementServiceServer).ListOrders(ctx, in)
758 }
759 info := &grpc.UnaryServerInfo{
760 Server: srv,
761 FullMethod: "/google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService/ListOrders",
762 }
763 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
764 return srv.(ConsumerProcurementServiceServer).ListOrders(ctx, req.(*ListOrdersRequest))
765 }
766 return interceptor(ctx, in, info, handler)
767 }
768
769 var _ConsumerProcurementService_serviceDesc = grpc.ServiceDesc{
770 ServiceName: "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService",
771 HandlerType: (*ConsumerProcurementServiceServer)(nil),
772 Methods: []grpc.MethodDesc{
773 {
774 MethodName: "PlaceOrder",
775 Handler: _ConsumerProcurementService_PlaceOrder_Handler,
776 },
777 {
778 MethodName: "GetOrder",
779 Handler: _ConsumerProcurementService_GetOrder_Handler,
780 },
781 {
782 MethodName: "ListOrders",
783 Handler: _ConsumerProcurementService_ListOrders_Handler,
784 },
785 },
786 Streams: []grpc.StreamDesc{},
787 Metadata: "google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto",
788 }