Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/usage-api/go/v1/usage.pb.go
2499 views
1
// Copyright (c) 2024 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
// Code generated by protoc-gen-go. DO NOT EDIT.
6
// versions:
7
// protoc-gen-go v1.28.1
8
// protoc (unknown)
9
// source: usage/v1/usage.proto
10
11
package v1
12
13
import (
14
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
15
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
16
durationpb "google.golang.org/protobuf/types/known/durationpb"
17
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
18
reflect "reflect"
19
sync "sync"
20
)
21
22
const (
23
// Verify that this generated code is sufficiently up-to-date.
24
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
25
// Verify that runtime/protoimpl is sufficiently up-to-date.
26
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
27
)
28
29
type ListUsageRequest_Ordering int32
30
31
const (
32
ListUsageRequest_ORDERING_DESCENDING ListUsageRequest_Ordering = 0
33
ListUsageRequest_ORDERING_ASCENDING ListUsageRequest_Ordering = 1
34
)
35
36
// Enum value maps for ListUsageRequest_Ordering.
37
var (
38
ListUsageRequest_Ordering_name = map[int32]string{
39
0: "ORDERING_DESCENDING",
40
1: "ORDERING_ASCENDING",
41
}
42
ListUsageRequest_Ordering_value = map[string]int32{
43
"ORDERING_DESCENDING": 0,
44
"ORDERING_ASCENDING": 1,
45
}
46
)
47
48
func (x ListUsageRequest_Ordering) Enum() *ListUsageRequest_Ordering {
49
p := new(ListUsageRequest_Ordering)
50
*p = x
51
return p
52
}
53
54
func (x ListUsageRequest_Ordering) String() string {
55
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
56
}
57
58
func (ListUsageRequest_Ordering) Descriptor() protoreflect.EnumDescriptor {
59
return file_usage_v1_usage_proto_enumTypes[0].Descriptor()
60
}
61
62
func (ListUsageRequest_Ordering) Type() protoreflect.EnumType {
63
return &file_usage_v1_usage_proto_enumTypes[0]
64
}
65
66
func (x ListUsageRequest_Ordering) Number() protoreflect.EnumNumber {
67
return protoreflect.EnumNumber(x)
68
}
69
70
// Deprecated: Use ListUsageRequest_Ordering.Descriptor instead.
71
func (ListUsageRequest_Ordering) EnumDescriptor() ([]byte, []int) {
72
return file_usage_v1_usage_proto_rawDescGZIP(), []int{4, 0}
73
}
74
75
type Usage_Kind int32
76
77
const (
78
Usage_KIND_WORKSPACE_INSTANCE Usage_Kind = 0
79
Usage_KIND_INVOICE Usage_Kind = 1
80
)
81
82
// Enum value maps for Usage_Kind.
83
var (
84
Usage_Kind_name = map[int32]string{
85
0: "KIND_WORKSPACE_INSTANCE",
86
1: "KIND_INVOICE",
87
}
88
Usage_Kind_value = map[string]int32{
89
"KIND_WORKSPACE_INSTANCE": 0,
90
"KIND_INVOICE": 1,
91
}
92
)
93
94
func (x Usage_Kind) Enum() *Usage_Kind {
95
p := new(Usage_Kind)
96
*p = x
97
return p
98
}
99
100
func (x Usage_Kind) String() string {
101
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
102
}
103
104
func (Usage_Kind) Descriptor() protoreflect.EnumDescriptor {
105
return file_usage_v1_usage_proto_enumTypes[1].Descriptor()
106
}
107
108
func (Usage_Kind) Type() protoreflect.EnumType {
109
return &file_usage_v1_usage_proto_enumTypes[1]
110
}
111
112
func (x Usage_Kind) Number() protoreflect.EnumNumber {
113
return protoreflect.EnumNumber(x)
114
}
115
116
// Deprecated: Use Usage_Kind.Descriptor instead.
117
func (Usage_Kind) EnumDescriptor() ([]byte, []int) {
118
return file_usage_v1_usage_proto_rawDescGZIP(), []int{6, 0}
119
}
120
121
type CostCenter_BillingStrategy int32
122
123
const (
124
CostCenter_BILLING_STRATEGY_STRIPE CostCenter_BillingStrategy = 0
125
CostCenter_BILLING_STRATEGY_OTHER CostCenter_BillingStrategy = 1
126
)
127
128
// Enum value maps for CostCenter_BillingStrategy.
129
var (
130
CostCenter_BillingStrategy_name = map[int32]string{
131
0: "BILLING_STRATEGY_STRIPE",
132
1: "BILLING_STRATEGY_OTHER",
133
}
134
CostCenter_BillingStrategy_value = map[string]int32{
135
"BILLING_STRATEGY_STRIPE": 0,
136
"BILLING_STRATEGY_OTHER": 1,
137
}
138
)
139
140
func (x CostCenter_BillingStrategy) Enum() *CostCenter_BillingStrategy {
141
p := new(CostCenter_BillingStrategy)
142
*p = x
143
return p
144
}
145
146
func (x CostCenter_BillingStrategy) String() string {
147
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
148
}
149
150
func (CostCenter_BillingStrategy) Descriptor() protoreflect.EnumDescriptor {
151
return file_usage_v1_usage_proto_enumTypes[2].Descriptor()
152
}
153
154
func (CostCenter_BillingStrategy) Type() protoreflect.EnumType {
155
return &file_usage_v1_usage_proto_enumTypes[2]
156
}
157
158
func (x CostCenter_BillingStrategy) Number() protoreflect.EnumNumber {
159
return protoreflect.EnumNumber(x)
160
}
161
162
// Deprecated: Use CostCenter_BillingStrategy.Descriptor instead.
163
func (CostCenter_BillingStrategy) EnumDescriptor() ([]byte, []int) {
164
return file_usage_v1_usage_proto_rawDescGZIP(), []int{13, 0}
165
}
166
167
type ReconcileUsageRequest struct {
168
state protoimpl.MessageState
169
sizeCache protoimpl.SizeCache
170
unknownFields protoimpl.UnknownFields
171
172
// from specifies the starting time range for this request.
173
From *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
174
// to specifies the end time range for this request.
175
To *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
176
}
177
178
func (x *ReconcileUsageRequest) Reset() {
179
*x = ReconcileUsageRequest{}
180
if protoimpl.UnsafeEnabled {
181
mi := &file_usage_v1_usage_proto_msgTypes[0]
182
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
183
ms.StoreMessageInfo(mi)
184
}
185
}
186
187
func (x *ReconcileUsageRequest) String() string {
188
return protoimpl.X.MessageStringOf(x)
189
}
190
191
func (*ReconcileUsageRequest) ProtoMessage() {}
192
193
func (x *ReconcileUsageRequest) ProtoReflect() protoreflect.Message {
194
mi := &file_usage_v1_usage_proto_msgTypes[0]
195
if protoimpl.UnsafeEnabled && x != nil {
196
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
197
if ms.LoadMessageInfo() == nil {
198
ms.StoreMessageInfo(mi)
199
}
200
return ms
201
}
202
return mi.MessageOf(x)
203
}
204
205
// Deprecated: Use ReconcileUsageRequest.ProtoReflect.Descriptor instead.
206
func (*ReconcileUsageRequest) Descriptor() ([]byte, []int) {
207
return file_usage_v1_usage_proto_rawDescGZIP(), []int{0}
208
}
209
210
func (x *ReconcileUsageRequest) GetFrom() *timestamppb.Timestamp {
211
if x != nil {
212
return x.From
213
}
214
return nil
215
}
216
217
func (x *ReconcileUsageRequest) GetTo() *timestamppb.Timestamp {
218
if x != nil {
219
return x.To
220
}
221
return nil
222
}
223
224
type ReconcileUsageResponse struct {
225
state protoimpl.MessageState
226
sizeCache protoimpl.SizeCache
227
unknownFields protoimpl.UnknownFields
228
}
229
230
func (x *ReconcileUsageResponse) Reset() {
231
*x = ReconcileUsageResponse{}
232
if protoimpl.UnsafeEnabled {
233
mi := &file_usage_v1_usage_proto_msgTypes[1]
234
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
235
ms.StoreMessageInfo(mi)
236
}
237
}
238
239
func (x *ReconcileUsageResponse) String() string {
240
return protoimpl.X.MessageStringOf(x)
241
}
242
243
func (*ReconcileUsageResponse) ProtoMessage() {}
244
245
func (x *ReconcileUsageResponse) ProtoReflect() protoreflect.Message {
246
mi := &file_usage_v1_usage_proto_msgTypes[1]
247
if protoimpl.UnsafeEnabled && x != nil {
248
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
249
if ms.LoadMessageInfo() == nil {
250
ms.StoreMessageInfo(mi)
251
}
252
return ms
253
}
254
return mi.MessageOf(x)
255
}
256
257
// Deprecated: Use ReconcileUsageResponse.ProtoReflect.Descriptor instead.
258
func (*ReconcileUsageResponse) Descriptor() ([]byte, []int) {
259
return file_usage_v1_usage_proto_rawDescGZIP(), []int{1}
260
}
261
262
type PaginatedRequest struct {
263
state protoimpl.MessageState
264
sizeCache protoimpl.SizeCache
265
unknownFields protoimpl.UnknownFields
266
267
PerPage int64 `protobuf:"varint,1,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"`
268
Page int64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
269
}
270
271
func (x *PaginatedRequest) Reset() {
272
*x = PaginatedRequest{}
273
if protoimpl.UnsafeEnabled {
274
mi := &file_usage_v1_usage_proto_msgTypes[2]
275
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
276
ms.StoreMessageInfo(mi)
277
}
278
}
279
280
func (x *PaginatedRequest) String() string {
281
return protoimpl.X.MessageStringOf(x)
282
}
283
284
func (*PaginatedRequest) ProtoMessage() {}
285
286
func (x *PaginatedRequest) ProtoReflect() protoreflect.Message {
287
mi := &file_usage_v1_usage_proto_msgTypes[2]
288
if protoimpl.UnsafeEnabled && x != nil {
289
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
290
if ms.LoadMessageInfo() == nil {
291
ms.StoreMessageInfo(mi)
292
}
293
return ms
294
}
295
return mi.MessageOf(x)
296
}
297
298
// Deprecated: Use PaginatedRequest.ProtoReflect.Descriptor instead.
299
func (*PaginatedRequest) Descriptor() ([]byte, []int) {
300
return file_usage_v1_usage_proto_rawDescGZIP(), []int{2}
301
}
302
303
func (x *PaginatedRequest) GetPerPage() int64 {
304
if x != nil {
305
return x.PerPage
306
}
307
return 0
308
}
309
310
func (x *PaginatedRequest) GetPage() int64 {
311
if x != nil {
312
return x.Page
313
}
314
return 0
315
}
316
317
type PaginatedResponse struct {
318
state protoimpl.MessageState
319
sizeCache protoimpl.SizeCache
320
unknownFields protoimpl.UnknownFields
321
322
PerPage int64 `protobuf:"varint,2,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"`
323
TotalPages int64 `protobuf:"varint,3,opt,name=total_pages,json=totalPages,proto3" json:"total_pages,omitempty"`
324
Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
325
Page int64 `protobuf:"varint,5,opt,name=page,proto3" json:"page,omitempty"`
326
}
327
328
func (x *PaginatedResponse) Reset() {
329
*x = PaginatedResponse{}
330
if protoimpl.UnsafeEnabled {
331
mi := &file_usage_v1_usage_proto_msgTypes[3]
332
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
333
ms.StoreMessageInfo(mi)
334
}
335
}
336
337
func (x *PaginatedResponse) String() string {
338
return protoimpl.X.MessageStringOf(x)
339
}
340
341
func (*PaginatedResponse) ProtoMessage() {}
342
343
func (x *PaginatedResponse) ProtoReflect() protoreflect.Message {
344
mi := &file_usage_v1_usage_proto_msgTypes[3]
345
if protoimpl.UnsafeEnabled && x != nil {
346
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
347
if ms.LoadMessageInfo() == nil {
348
ms.StoreMessageInfo(mi)
349
}
350
return ms
351
}
352
return mi.MessageOf(x)
353
}
354
355
// Deprecated: Use PaginatedResponse.ProtoReflect.Descriptor instead.
356
func (*PaginatedResponse) Descriptor() ([]byte, []int) {
357
return file_usage_v1_usage_proto_rawDescGZIP(), []int{3}
358
}
359
360
func (x *PaginatedResponse) GetPerPage() int64 {
361
if x != nil {
362
return x.PerPage
363
}
364
return 0
365
}
366
367
func (x *PaginatedResponse) GetTotalPages() int64 {
368
if x != nil {
369
return x.TotalPages
370
}
371
return 0
372
}
373
374
func (x *PaginatedResponse) GetTotal() int64 {
375
if x != nil {
376
return x.Total
377
}
378
return 0
379
}
380
381
func (x *PaginatedResponse) GetPage() int64 {
382
if x != nil {
383
return x.Page
384
}
385
return 0
386
}
387
388
type ListUsageRequest struct {
389
state protoimpl.MessageState
390
sizeCache protoimpl.SizeCache
391
unknownFields protoimpl.UnknownFields
392
393
AttributionId string `protobuf:"bytes,1,opt,name=attribution_id,json=attributionId,proto3" json:"attribution_id,omitempty"`
394
// optional user_id can be used to filter the results to only include instances created by the given user
395
UserId string `protobuf:"bytes,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
396
// from specifies the starting time range for this request.
397
// All instances which existed starting at from will be returned.
398
From *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
399
// to specifies the end time range for this request.
400
// All instances which existed ending at to will be returned.
401
To *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
402
Order ListUsageRequest_Ordering `protobuf:"varint,4,opt,name=order,proto3,enum=usage.v1.ListUsageRequest_Ordering" json:"order,omitempty"`
403
Pagination *PaginatedRequest `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"`
404
}
405
406
func (x *ListUsageRequest) Reset() {
407
*x = ListUsageRequest{}
408
if protoimpl.UnsafeEnabled {
409
mi := &file_usage_v1_usage_proto_msgTypes[4]
410
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
411
ms.StoreMessageInfo(mi)
412
}
413
}
414
415
func (x *ListUsageRequest) String() string {
416
return protoimpl.X.MessageStringOf(x)
417
}
418
419
func (*ListUsageRequest) ProtoMessage() {}
420
421
func (x *ListUsageRequest) ProtoReflect() protoreflect.Message {
422
mi := &file_usage_v1_usage_proto_msgTypes[4]
423
if protoimpl.UnsafeEnabled && x != nil {
424
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
425
if ms.LoadMessageInfo() == nil {
426
ms.StoreMessageInfo(mi)
427
}
428
return ms
429
}
430
return mi.MessageOf(x)
431
}
432
433
// Deprecated: Use ListUsageRequest.ProtoReflect.Descriptor instead.
434
func (*ListUsageRequest) Descriptor() ([]byte, []int) {
435
return file_usage_v1_usage_proto_rawDescGZIP(), []int{4}
436
}
437
438
func (x *ListUsageRequest) GetAttributionId() string {
439
if x != nil {
440
return x.AttributionId
441
}
442
return ""
443
}
444
445
func (x *ListUsageRequest) GetUserId() string {
446
if x != nil {
447
return x.UserId
448
}
449
return ""
450
}
451
452
func (x *ListUsageRequest) GetFrom() *timestamppb.Timestamp {
453
if x != nil {
454
return x.From
455
}
456
return nil
457
}
458
459
func (x *ListUsageRequest) GetTo() *timestamppb.Timestamp {
460
if x != nil {
461
return x.To
462
}
463
return nil
464
}
465
466
func (x *ListUsageRequest) GetOrder() ListUsageRequest_Ordering {
467
if x != nil {
468
return x.Order
469
}
470
return ListUsageRequest_ORDERING_DESCENDING
471
}
472
473
func (x *ListUsageRequest) GetPagination() *PaginatedRequest {
474
if x != nil {
475
return x.Pagination
476
}
477
return nil
478
}
479
480
type ListUsageResponse struct {
481
state protoimpl.MessageState
482
sizeCache protoimpl.SizeCache
483
unknownFields protoimpl.UnknownFields
484
485
UsageEntries []*Usage `protobuf:"bytes,1,rep,name=usage_entries,json=usageEntries,proto3" json:"usage_entries,omitempty"`
486
Pagination *PaginatedResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
487
// the amount of credits the given account (attributionId) has used during the requested period
488
CreditsUsed float64 `protobuf:"fixed64,3,opt,name=credits_used,json=creditsUsed,proto3" json:"credits_used,omitempty"`
489
// ledger interval
490
LedgerInterval *durationpb.Duration `protobuf:"bytes,4,opt,name=ledger_interval,json=ledgerInterval,proto3" json:"ledger_interval,omitempty"`
491
}
492
493
func (x *ListUsageResponse) Reset() {
494
*x = ListUsageResponse{}
495
if protoimpl.UnsafeEnabled {
496
mi := &file_usage_v1_usage_proto_msgTypes[5]
497
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
498
ms.StoreMessageInfo(mi)
499
}
500
}
501
502
func (x *ListUsageResponse) String() string {
503
return protoimpl.X.MessageStringOf(x)
504
}
505
506
func (*ListUsageResponse) ProtoMessage() {}
507
508
func (x *ListUsageResponse) ProtoReflect() protoreflect.Message {
509
mi := &file_usage_v1_usage_proto_msgTypes[5]
510
if protoimpl.UnsafeEnabled && x != nil {
511
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
512
if ms.LoadMessageInfo() == nil {
513
ms.StoreMessageInfo(mi)
514
}
515
return ms
516
}
517
return mi.MessageOf(x)
518
}
519
520
// Deprecated: Use ListUsageResponse.ProtoReflect.Descriptor instead.
521
func (*ListUsageResponse) Descriptor() ([]byte, []int) {
522
return file_usage_v1_usage_proto_rawDescGZIP(), []int{5}
523
}
524
525
func (x *ListUsageResponse) GetUsageEntries() []*Usage {
526
if x != nil {
527
return x.UsageEntries
528
}
529
return nil
530
}
531
532
func (x *ListUsageResponse) GetPagination() *PaginatedResponse {
533
if x != nil {
534
return x.Pagination
535
}
536
return nil
537
}
538
539
func (x *ListUsageResponse) GetCreditsUsed() float64 {
540
if x != nil {
541
return x.CreditsUsed
542
}
543
return 0
544
}
545
546
func (x *ListUsageResponse) GetLedgerInterval() *durationpb.Duration {
547
if x != nil {
548
return x.LedgerInterval
549
}
550
return nil
551
}
552
553
type Usage struct {
554
state protoimpl.MessageState
555
sizeCache protoimpl.SizeCache
556
unknownFields protoimpl.UnknownFields
557
558
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
559
AttributionId string `protobuf:"bytes,2,opt,name=attribution_id,json=attributionId,proto3" json:"attribution_id,omitempty"`
560
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
561
Credits float64 `protobuf:"fixed64,4,opt,name=credits,proto3" json:"credits,omitempty"`
562
EffectiveTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=effective_time,json=effectiveTime,proto3" json:"effective_time,omitempty"`
563
Kind Usage_Kind `protobuf:"varint,6,opt,name=kind,proto3,enum=usage.v1.Usage_Kind" json:"kind,omitempty"`
564
WorkspaceInstanceId string `protobuf:"bytes,7,opt,name=workspace_instance_id,json=workspaceInstanceId,proto3" json:"workspace_instance_id,omitempty"`
565
Draft bool `protobuf:"varint,8,opt,name=draft,proto3" json:"draft,omitempty"`
566
Metadata string `protobuf:"bytes,9,opt,name=metadata,proto3" json:"metadata,omitempty"`
567
}
568
569
func (x *Usage) Reset() {
570
*x = Usage{}
571
if protoimpl.UnsafeEnabled {
572
mi := &file_usage_v1_usage_proto_msgTypes[6]
573
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
574
ms.StoreMessageInfo(mi)
575
}
576
}
577
578
func (x *Usage) String() string {
579
return protoimpl.X.MessageStringOf(x)
580
}
581
582
func (*Usage) ProtoMessage() {}
583
584
func (x *Usage) ProtoReflect() protoreflect.Message {
585
mi := &file_usage_v1_usage_proto_msgTypes[6]
586
if protoimpl.UnsafeEnabled && x != nil {
587
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
588
if ms.LoadMessageInfo() == nil {
589
ms.StoreMessageInfo(mi)
590
}
591
return ms
592
}
593
return mi.MessageOf(x)
594
}
595
596
// Deprecated: Use Usage.ProtoReflect.Descriptor instead.
597
func (*Usage) Descriptor() ([]byte, []int) {
598
return file_usage_v1_usage_proto_rawDescGZIP(), []int{6}
599
}
600
601
func (x *Usage) GetId() string {
602
if x != nil {
603
return x.Id
604
}
605
return ""
606
}
607
608
func (x *Usage) GetAttributionId() string {
609
if x != nil {
610
return x.AttributionId
611
}
612
return ""
613
}
614
615
func (x *Usage) GetDescription() string {
616
if x != nil {
617
return x.Description
618
}
619
return ""
620
}
621
622
func (x *Usage) GetCredits() float64 {
623
if x != nil {
624
return x.Credits
625
}
626
return 0
627
}
628
629
func (x *Usage) GetEffectiveTime() *timestamppb.Timestamp {
630
if x != nil {
631
return x.EffectiveTime
632
}
633
return nil
634
}
635
636
func (x *Usage) GetKind() Usage_Kind {
637
if x != nil {
638
return x.Kind
639
}
640
return Usage_KIND_WORKSPACE_INSTANCE
641
}
642
643
func (x *Usage) GetWorkspaceInstanceId() string {
644
if x != nil {
645
return x.WorkspaceInstanceId
646
}
647
return ""
648
}
649
650
func (x *Usage) GetDraft() bool {
651
if x != nil {
652
return x.Draft
653
}
654
return false
655
}
656
657
func (x *Usage) GetMetadata() string {
658
if x != nil {
659
return x.Metadata
660
}
661
return ""
662
}
663
664
type SetCostCenterRequest struct {
665
state protoimpl.MessageState
666
sizeCache protoimpl.SizeCache
667
unknownFields protoimpl.UnknownFields
668
669
CostCenter *CostCenter `protobuf:"bytes,1,opt,name=cost_center,json=costCenter,proto3" json:"cost_center,omitempty"`
670
}
671
672
func (x *SetCostCenterRequest) Reset() {
673
*x = SetCostCenterRequest{}
674
if protoimpl.UnsafeEnabled {
675
mi := &file_usage_v1_usage_proto_msgTypes[7]
676
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
677
ms.StoreMessageInfo(mi)
678
}
679
}
680
681
func (x *SetCostCenterRequest) String() string {
682
return protoimpl.X.MessageStringOf(x)
683
}
684
685
func (*SetCostCenterRequest) ProtoMessage() {}
686
687
func (x *SetCostCenterRequest) ProtoReflect() protoreflect.Message {
688
mi := &file_usage_v1_usage_proto_msgTypes[7]
689
if protoimpl.UnsafeEnabled && x != nil {
690
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
691
if ms.LoadMessageInfo() == nil {
692
ms.StoreMessageInfo(mi)
693
}
694
return ms
695
}
696
return mi.MessageOf(x)
697
}
698
699
// Deprecated: Use SetCostCenterRequest.ProtoReflect.Descriptor instead.
700
func (*SetCostCenterRequest) Descriptor() ([]byte, []int) {
701
return file_usage_v1_usage_proto_rawDescGZIP(), []int{7}
702
}
703
704
func (x *SetCostCenterRequest) GetCostCenter() *CostCenter {
705
if x != nil {
706
return x.CostCenter
707
}
708
return nil
709
}
710
711
type SetCostCenterResponse struct {
712
state protoimpl.MessageState
713
sizeCache protoimpl.SizeCache
714
unknownFields protoimpl.UnknownFields
715
716
CostCenter *CostCenter `protobuf:"bytes,1,opt,name=cost_center,json=costCenter,proto3" json:"cost_center,omitempty"`
717
}
718
719
func (x *SetCostCenterResponse) Reset() {
720
*x = SetCostCenterResponse{}
721
if protoimpl.UnsafeEnabled {
722
mi := &file_usage_v1_usage_proto_msgTypes[8]
723
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
724
ms.StoreMessageInfo(mi)
725
}
726
}
727
728
func (x *SetCostCenterResponse) String() string {
729
return protoimpl.X.MessageStringOf(x)
730
}
731
732
func (*SetCostCenterResponse) ProtoMessage() {}
733
734
func (x *SetCostCenterResponse) ProtoReflect() protoreflect.Message {
735
mi := &file_usage_v1_usage_proto_msgTypes[8]
736
if protoimpl.UnsafeEnabled && x != nil {
737
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
738
if ms.LoadMessageInfo() == nil {
739
ms.StoreMessageInfo(mi)
740
}
741
return ms
742
}
743
return mi.MessageOf(x)
744
}
745
746
// Deprecated: Use SetCostCenterResponse.ProtoReflect.Descriptor instead.
747
func (*SetCostCenterResponse) Descriptor() ([]byte, []int) {
748
return file_usage_v1_usage_proto_rawDescGZIP(), []int{8}
749
}
750
751
func (x *SetCostCenterResponse) GetCostCenter() *CostCenter {
752
if x != nil {
753
return x.CostCenter
754
}
755
return nil
756
}
757
758
type GetBalanceRequest struct {
759
state protoimpl.MessageState
760
sizeCache protoimpl.SizeCache
761
unknownFields protoimpl.UnknownFields
762
763
AttributionId string `protobuf:"bytes,1,opt,name=attribution_id,json=attributionId,proto3" json:"attribution_id,omitempty"`
764
}
765
766
func (x *GetBalanceRequest) Reset() {
767
*x = GetBalanceRequest{}
768
if protoimpl.UnsafeEnabled {
769
mi := &file_usage_v1_usage_proto_msgTypes[9]
770
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
771
ms.StoreMessageInfo(mi)
772
}
773
}
774
775
func (x *GetBalanceRequest) String() string {
776
return protoimpl.X.MessageStringOf(x)
777
}
778
779
func (*GetBalanceRequest) ProtoMessage() {}
780
781
func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message {
782
mi := &file_usage_v1_usage_proto_msgTypes[9]
783
if protoimpl.UnsafeEnabled && x != nil {
784
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
785
if ms.LoadMessageInfo() == nil {
786
ms.StoreMessageInfo(mi)
787
}
788
return ms
789
}
790
return mi.MessageOf(x)
791
}
792
793
// Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead.
794
func (*GetBalanceRequest) Descriptor() ([]byte, []int) {
795
return file_usage_v1_usage_proto_rawDescGZIP(), []int{9}
796
}
797
798
func (x *GetBalanceRequest) GetAttributionId() string {
799
if x != nil {
800
return x.AttributionId
801
}
802
return ""
803
}
804
805
type GetBalanceResponse struct {
806
state protoimpl.MessageState
807
sizeCache protoimpl.SizeCache
808
unknownFields protoimpl.UnknownFields
809
810
Credits float64 `protobuf:"fixed64,4,opt,name=credits,proto3" json:"credits,omitempty"`
811
}
812
813
func (x *GetBalanceResponse) Reset() {
814
*x = GetBalanceResponse{}
815
if protoimpl.UnsafeEnabled {
816
mi := &file_usage_v1_usage_proto_msgTypes[10]
817
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
818
ms.StoreMessageInfo(mi)
819
}
820
}
821
822
func (x *GetBalanceResponse) String() string {
823
return protoimpl.X.MessageStringOf(x)
824
}
825
826
func (*GetBalanceResponse) ProtoMessage() {}
827
828
func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message {
829
mi := &file_usage_v1_usage_proto_msgTypes[10]
830
if protoimpl.UnsafeEnabled && x != nil {
831
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
832
if ms.LoadMessageInfo() == nil {
833
ms.StoreMessageInfo(mi)
834
}
835
return ms
836
}
837
return mi.MessageOf(x)
838
}
839
840
// Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead.
841
func (*GetBalanceResponse) Descriptor() ([]byte, []int) {
842
return file_usage_v1_usage_proto_rawDescGZIP(), []int{10}
843
}
844
845
func (x *GetBalanceResponse) GetCredits() float64 {
846
if x != nil {
847
return x.Credits
848
}
849
return 0
850
}
851
852
type GetCostCenterRequest struct {
853
state protoimpl.MessageState
854
sizeCache protoimpl.SizeCache
855
unknownFields protoimpl.UnknownFields
856
857
AttributionId string `protobuf:"bytes,1,opt,name=attribution_id,json=attributionId,proto3" json:"attribution_id,omitempty"`
858
}
859
860
func (x *GetCostCenterRequest) Reset() {
861
*x = GetCostCenterRequest{}
862
if protoimpl.UnsafeEnabled {
863
mi := &file_usage_v1_usage_proto_msgTypes[11]
864
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
865
ms.StoreMessageInfo(mi)
866
}
867
}
868
869
func (x *GetCostCenterRequest) String() string {
870
return protoimpl.X.MessageStringOf(x)
871
}
872
873
func (*GetCostCenterRequest) ProtoMessage() {}
874
875
func (x *GetCostCenterRequest) ProtoReflect() protoreflect.Message {
876
mi := &file_usage_v1_usage_proto_msgTypes[11]
877
if protoimpl.UnsafeEnabled && x != nil {
878
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
879
if ms.LoadMessageInfo() == nil {
880
ms.StoreMessageInfo(mi)
881
}
882
return ms
883
}
884
return mi.MessageOf(x)
885
}
886
887
// Deprecated: Use GetCostCenterRequest.ProtoReflect.Descriptor instead.
888
func (*GetCostCenterRequest) Descriptor() ([]byte, []int) {
889
return file_usage_v1_usage_proto_rawDescGZIP(), []int{11}
890
}
891
892
func (x *GetCostCenterRequest) GetAttributionId() string {
893
if x != nil {
894
return x.AttributionId
895
}
896
return ""
897
}
898
899
type GetCostCenterResponse struct {
900
state protoimpl.MessageState
901
sizeCache protoimpl.SizeCache
902
unknownFields protoimpl.UnknownFields
903
904
CostCenter *CostCenter `protobuf:"bytes,1,opt,name=cost_center,json=costCenter,proto3" json:"cost_center,omitempty"`
905
}
906
907
func (x *GetCostCenterResponse) Reset() {
908
*x = GetCostCenterResponse{}
909
if protoimpl.UnsafeEnabled {
910
mi := &file_usage_v1_usage_proto_msgTypes[12]
911
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
912
ms.StoreMessageInfo(mi)
913
}
914
}
915
916
func (x *GetCostCenterResponse) String() string {
917
return protoimpl.X.MessageStringOf(x)
918
}
919
920
func (*GetCostCenterResponse) ProtoMessage() {}
921
922
func (x *GetCostCenterResponse) ProtoReflect() protoreflect.Message {
923
mi := &file_usage_v1_usage_proto_msgTypes[12]
924
if protoimpl.UnsafeEnabled && x != nil {
925
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
926
if ms.LoadMessageInfo() == nil {
927
ms.StoreMessageInfo(mi)
928
}
929
return ms
930
}
931
return mi.MessageOf(x)
932
}
933
934
// Deprecated: Use GetCostCenterResponse.ProtoReflect.Descriptor instead.
935
func (*GetCostCenterResponse) Descriptor() ([]byte, []int) {
936
return file_usage_v1_usage_proto_rawDescGZIP(), []int{12}
937
}
938
939
func (x *GetCostCenterResponse) GetCostCenter() *CostCenter {
940
if x != nil {
941
return x.CostCenter
942
}
943
return nil
944
}
945
946
type CostCenter struct {
947
state protoimpl.MessageState
948
sizeCache protoimpl.SizeCache
949
unknownFields protoimpl.UnknownFields
950
951
AttributionId string `protobuf:"bytes,1,opt,name=attribution_id,json=attributionId,proto3" json:"attribution_id,omitempty"`
952
SpendingLimit int32 `protobuf:"varint,2,opt,name=spending_limit,json=spendingLimit,proto3" json:"spending_limit,omitempty"`
953
BillingStrategy CostCenter_BillingStrategy `protobuf:"varint,3,opt,name=billing_strategy,json=billingStrategy,proto3,enum=usage.v1.CostCenter_BillingStrategy" json:"billing_strategy,omitempty"`
954
// next_billing_time specifies when the next billing cycle happens. Only set when billing strategy is 'other'. This property is readonly.
955
NextBillingTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=next_billing_time,json=nextBillingTime,proto3" json:"next_billing_time,omitempty"`
956
BillingCycleStart *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=billing_cycle_start,json=billingCycleStart,proto3" json:"billing_cycle_start,omitempty"`
957
}
958
959
func (x *CostCenter) Reset() {
960
*x = CostCenter{}
961
if protoimpl.UnsafeEnabled {
962
mi := &file_usage_v1_usage_proto_msgTypes[13]
963
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
964
ms.StoreMessageInfo(mi)
965
}
966
}
967
968
func (x *CostCenter) String() string {
969
return protoimpl.X.MessageStringOf(x)
970
}
971
972
func (*CostCenter) ProtoMessage() {}
973
974
func (x *CostCenter) ProtoReflect() protoreflect.Message {
975
mi := &file_usage_v1_usage_proto_msgTypes[13]
976
if protoimpl.UnsafeEnabled && x != nil {
977
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
978
if ms.LoadMessageInfo() == nil {
979
ms.StoreMessageInfo(mi)
980
}
981
return ms
982
}
983
return mi.MessageOf(x)
984
}
985
986
// Deprecated: Use CostCenter.ProtoReflect.Descriptor instead.
987
func (*CostCenter) Descriptor() ([]byte, []int) {
988
return file_usage_v1_usage_proto_rawDescGZIP(), []int{13}
989
}
990
991
func (x *CostCenter) GetAttributionId() string {
992
if x != nil {
993
return x.AttributionId
994
}
995
return ""
996
}
997
998
func (x *CostCenter) GetSpendingLimit() int32 {
999
if x != nil {
1000
return x.SpendingLimit
1001
}
1002
return 0
1003
}
1004
1005
func (x *CostCenter) GetBillingStrategy() CostCenter_BillingStrategy {
1006
if x != nil {
1007
return x.BillingStrategy
1008
}
1009
return CostCenter_BILLING_STRATEGY_STRIPE
1010
}
1011
1012
func (x *CostCenter) GetNextBillingTime() *timestamppb.Timestamp {
1013
if x != nil {
1014
return x.NextBillingTime
1015
}
1016
return nil
1017
}
1018
1019
func (x *CostCenter) GetBillingCycleStart() *timestamppb.Timestamp {
1020
if x != nil {
1021
return x.BillingCycleStart
1022
}
1023
return nil
1024
}
1025
1026
type ResetUsageRequest struct {
1027
state protoimpl.MessageState
1028
sizeCache protoimpl.SizeCache
1029
unknownFields protoimpl.UnknownFields
1030
}
1031
1032
func (x *ResetUsageRequest) Reset() {
1033
*x = ResetUsageRequest{}
1034
if protoimpl.UnsafeEnabled {
1035
mi := &file_usage_v1_usage_proto_msgTypes[14]
1036
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1037
ms.StoreMessageInfo(mi)
1038
}
1039
}
1040
1041
func (x *ResetUsageRequest) String() string {
1042
return protoimpl.X.MessageStringOf(x)
1043
}
1044
1045
func (*ResetUsageRequest) ProtoMessage() {}
1046
1047
func (x *ResetUsageRequest) ProtoReflect() protoreflect.Message {
1048
mi := &file_usage_v1_usage_proto_msgTypes[14]
1049
if protoimpl.UnsafeEnabled && x != nil {
1050
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1051
if ms.LoadMessageInfo() == nil {
1052
ms.StoreMessageInfo(mi)
1053
}
1054
return ms
1055
}
1056
return mi.MessageOf(x)
1057
}
1058
1059
// Deprecated: Use ResetUsageRequest.ProtoReflect.Descriptor instead.
1060
func (*ResetUsageRequest) Descriptor() ([]byte, []int) {
1061
return file_usage_v1_usage_proto_rawDescGZIP(), []int{14}
1062
}
1063
1064
type ResetUsageResponse struct {
1065
state protoimpl.MessageState
1066
sizeCache protoimpl.SizeCache
1067
unknownFields protoimpl.UnknownFields
1068
}
1069
1070
func (x *ResetUsageResponse) Reset() {
1071
*x = ResetUsageResponse{}
1072
if protoimpl.UnsafeEnabled {
1073
mi := &file_usage_v1_usage_proto_msgTypes[15]
1074
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1075
ms.StoreMessageInfo(mi)
1076
}
1077
}
1078
1079
func (x *ResetUsageResponse) String() string {
1080
return protoimpl.X.MessageStringOf(x)
1081
}
1082
1083
func (*ResetUsageResponse) ProtoMessage() {}
1084
1085
func (x *ResetUsageResponse) ProtoReflect() protoreflect.Message {
1086
mi := &file_usage_v1_usage_proto_msgTypes[15]
1087
if protoimpl.UnsafeEnabled && x != nil {
1088
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1089
if ms.LoadMessageInfo() == nil {
1090
ms.StoreMessageInfo(mi)
1091
}
1092
return ms
1093
}
1094
return mi.MessageOf(x)
1095
}
1096
1097
// Deprecated: Use ResetUsageResponse.ProtoReflect.Descriptor instead.
1098
func (*ResetUsageResponse) Descriptor() ([]byte, []int) {
1099
return file_usage_v1_usage_proto_rawDescGZIP(), []int{15}
1100
}
1101
1102
type AddUsageCreditNoteRequest struct {
1103
state protoimpl.MessageState
1104
sizeCache protoimpl.SizeCache
1105
unknownFields protoimpl.UnknownFields
1106
1107
AttributionId string `protobuf:"bytes,1,opt,name=attribution_id,json=attributionId,proto3" json:"attribution_id,omitempty"`
1108
// the amount of credits to add to the given account
1109
Credits int32 `protobuf:"varint,2,opt,name=credits,proto3" json:"credits,omitempty"`
1110
// a human readable description for the reason this credit note exists
1111
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
1112
// the id of the user (admin) who created the note
1113
UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
1114
}
1115
1116
func (x *AddUsageCreditNoteRequest) Reset() {
1117
*x = AddUsageCreditNoteRequest{}
1118
if protoimpl.UnsafeEnabled {
1119
mi := &file_usage_v1_usage_proto_msgTypes[16]
1120
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1121
ms.StoreMessageInfo(mi)
1122
}
1123
}
1124
1125
func (x *AddUsageCreditNoteRequest) String() string {
1126
return protoimpl.X.MessageStringOf(x)
1127
}
1128
1129
func (*AddUsageCreditNoteRequest) ProtoMessage() {}
1130
1131
func (x *AddUsageCreditNoteRequest) ProtoReflect() protoreflect.Message {
1132
mi := &file_usage_v1_usage_proto_msgTypes[16]
1133
if protoimpl.UnsafeEnabled && x != nil {
1134
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1135
if ms.LoadMessageInfo() == nil {
1136
ms.StoreMessageInfo(mi)
1137
}
1138
return ms
1139
}
1140
return mi.MessageOf(x)
1141
}
1142
1143
// Deprecated: Use AddUsageCreditNoteRequest.ProtoReflect.Descriptor instead.
1144
func (*AddUsageCreditNoteRequest) Descriptor() ([]byte, []int) {
1145
return file_usage_v1_usage_proto_rawDescGZIP(), []int{16}
1146
}
1147
1148
func (x *AddUsageCreditNoteRequest) GetAttributionId() string {
1149
if x != nil {
1150
return x.AttributionId
1151
}
1152
return ""
1153
}
1154
1155
func (x *AddUsageCreditNoteRequest) GetCredits() int32 {
1156
if x != nil {
1157
return x.Credits
1158
}
1159
return 0
1160
}
1161
1162
func (x *AddUsageCreditNoteRequest) GetDescription() string {
1163
if x != nil {
1164
return x.Description
1165
}
1166
return ""
1167
}
1168
1169
func (x *AddUsageCreditNoteRequest) GetUserId() string {
1170
if x != nil {
1171
return x.UserId
1172
}
1173
return ""
1174
}
1175
1176
type AddUsageCreditNoteResponse struct {
1177
state protoimpl.MessageState
1178
sizeCache protoimpl.SizeCache
1179
unknownFields protoimpl.UnknownFields
1180
}
1181
1182
func (x *AddUsageCreditNoteResponse) Reset() {
1183
*x = AddUsageCreditNoteResponse{}
1184
if protoimpl.UnsafeEnabled {
1185
mi := &file_usage_v1_usage_proto_msgTypes[17]
1186
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1187
ms.StoreMessageInfo(mi)
1188
}
1189
}
1190
1191
func (x *AddUsageCreditNoteResponse) String() string {
1192
return protoimpl.X.MessageStringOf(x)
1193
}
1194
1195
func (*AddUsageCreditNoteResponse) ProtoMessage() {}
1196
1197
func (x *AddUsageCreditNoteResponse) ProtoReflect() protoreflect.Message {
1198
mi := &file_usage_v1_usage_proto_msgTypes[17]
1199
if protoimpl.UnsafeEnabled && x != nil {
1200
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1201
if ms.LoadMessageInfo() == nil {
1202
ms.StoreMessageInfo(mi)
1203
}
1204
return ms
1205
}
1206
return mi.MessageOf(x)
1207
}
1208
1209
// Deprecated: Use AddUsageCreditNoteResponse.ProtoReflect.Descriptor instead.
1210
func (*AddUsageCreditNoteResponse) Descriptor() ([]byte, []int) {
1211
return file_usage_v1_usage_proto_rawDescGZIP(), []int{17}
1212
}
1213
1214
var File_usage_v1_usage_proto protoreflect.FileDescriptor
1215
1216
var file_usage_v1_usage_proto_rawDesc = []byte{
1217
0x0a, 0x14, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x61, 0x67, 0x65,
1218
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31,
1219
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
1220
0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
1221
0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
1222
0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
1223
0x6f, 0x22, 0x73, 0x0a, 0x15, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x65, 0x55, 0x73,
1224
0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x66, 0x72,
1225
0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
1226
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
1227
0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x2a, 0x0a, 0x02, 0x74, 0x6f,
1228
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
1229
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
1230
0x6d, 0x70, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x18, 0x0a, 0x16, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x63,
1231
0x69, 0x6c, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
1232
0x22, 0x41, 0x0a, 0x10, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71,
1233
0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x67, 0x65,
1234
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70, 0x65, 0x72, 0x50, 0x61, 0x67, 0x65, 0x12,
1235
0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70,
1236
0x61, 0x67, 0x65, 0x22, 0x79, 0x0a, 0x11, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64,
1237
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x5f,
1238
0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70, 0x65, 0x72, 0x50,
1239
0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x67,
1240
0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50,
1241
0x61, 0x67, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20,
1242
0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61,
1243
0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0xe2,
1244
0x02, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75,
1245
0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69,
1246
0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x74, 0x74,
1247
0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73,
1248
0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65,
1249
0x72, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28,
1250
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
1251
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x66,
1252
0x72, 0x6f, 0x6d, 0x12, 0x2a, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
1253
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
1254
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x02, 0x74, 0x6f, 0x12,
1255
0x39, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23,
1256
0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73,
1257
0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72,
1258
0x69, 0x6e, 0x67, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61,
1259
0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
1260
0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61,
1261
0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69,
1262
0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x08, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69,
1263
0x6e, 0x67, 0x12, 0x17, 0x0a, 0x13, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x44,
1264
0x45, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x4f,
1265
0x52, 0x44, 0x45, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e,
1266
0x47, 0x10, 0x01, 0x22, 0xed, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x61, 0x67,
1267
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x0d, 0x75, 0x73, 0x61,
1268
0x67, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
1269
0x32, 0x0f, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x61, 0x67,
1270
0x65, 0x52, 0x0c, 0x75, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12,
1271
0x3b, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20,
1272
0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,
1273
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
1274
0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c,
1275
0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01,
1276
0x28, 0x01, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x55, 0x73, 0x65, 0x64, 0x12,
1277
0x42, 0x0a, 0x0f, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76,
1278
0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
1279
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74,
1280
0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72,
1281
0x76, 0x61, 0x6c, 0x22, 0x84, 0x03, 0x0a, 0x05, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a,
1282
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x25, 0x0a,
1283
0x0e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18,
1284
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69,
1285
0x6f, 0x6e, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
1286
0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
1287
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74,
1288
0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73,
1289
0x12, 0x41, 0x0a, 0x0e, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69,
1290
0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
1291
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
1292
0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54,
1293
0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28,
1294
0x0e, 0x32, 0x14, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x61,
1295
0x67, 0x65, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x32, 0x0a,
1296
0x15, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61,
1297
0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x77, 0x6f,
1298
0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49,
1299
0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x72, 0x61, 0x66, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08,
1300
0x52, 0x05, 0x64, 0x72, 0x61, 0x66, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64,
1301
0x61, 0x74, 0x61, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64,
1302
0x61, 0x74, 0x61, 0x22, 0x35, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x1b, 0x0a, 0x17, 0x4b,
1303
0x49, 0x4e, 0x44, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x49, 0x4e,
1304
0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4b, 0x49, 0x4e, 0x44,
1305
0x5f, 0x49, 0x4e, 0x56, 0x4f, 0x49, 0x43, 0x45, 0x10, 0x01, 0x22, 0x4d, 0x0a, 0x14, 0x53, 0x65,
1306
0x74, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65,
1307
0x73, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x63, 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65,
1308
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e,
1309
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x63,
1310
0x6f, 0x73, 0x74, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x4e, 0x0a, 0x15, 0x53, 0x65, 0x74,
1311
0x43, 0x6f, 0x73, 0x74, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
1312
0x73, 0x65, 0x12, 0x35, 0x0a, 0x0b, 0x63, 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65,
1313
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e,
1314
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x63,
1315
0x6f, 0x73, 0x74, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x3a, 0x0a, 0x11, 0x47, 0x65, 0x74,
1316
0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25,
1317
0x0a, 0x0e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64,
1318
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
1319
0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x2e, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61,
1320
0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63,
1321
0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x63, 0x72,
1322
0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0x3d, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x73, 0x74,
1323
0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a,
1324
0x0e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18,
1325
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69,
1326
0x6f, 0x6e, 0x49, 0x64, 0x22, 0x4e, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x43,
1327
0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a,
1328
0x0b, 0x63, 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
1329
0x28, 0x0b, 0x32, 0x14, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
1330
0x73, 0x74, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x63, 0x6f, 0x73, 0x74, 0x43, 0x65,
1331
0x6e, 0x74, 0x65, 0x72, 0x22, 0x8b, 0x03, 0x0a, 0x0a, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x65, 0x6e,
1332
0x74, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69,
1333
0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x74, 0x74,
1334
0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x70,
1335
0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01,
1336
0x28, 0x05, 0x52, 0x0d, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x6d, 0x69,
1337
0x74, 0x12, 0x4f, 0x0a, 0x10, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72,
1338
0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x75, 0x73,
1339
0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x65, 0x6e, 0x74, 0x65,
1340
0x72, 0x2e, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,
1341
0x79, 0x52, 0x0f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65,
1342
0x67, 0x79, 0x12, 0x46, 0x0a, 0x11, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x62, 0x69, 0x6c, 0x6c, 0x69,
1343
0x6e, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
1344
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
1345
0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x42,
1346
0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x13, 0x62, 0x69,
1347
0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x72,
1348
0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1349
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
1350
0x61, 0x6d, 0x70, 0x52, 0x11, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x79, 0x63, 0x6c,
1351
0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x22, 0x4a, 0x0a, 0x0f, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e,
1352
0x67, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x49, 0x4c,
1353
0x4c, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x53, 0x54,
1354
0x52, 0x49, 0x50, 0x45, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x42, 0x49, 0x4c, 0x4c, 0x49, 0x4e,
1355
0x47, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x4f, 0x54, 0x48, 0x45, 0x52,
1356
0x10, 0x01, 0x22, 0x13, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x65, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65,
1357
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x65, 0x74,
1358
0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x97, 0x01,
1359
0x0a, 0x19, 0x41, 0x64, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74,
1360
0x4e, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61,
1361
0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
1362
0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e,
1363
0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20,
1364
0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x12, 0x20, 0x0a, 0x0b,
1365
0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
1366
0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17,
1367
0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
1368
0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x1c, 0x0a, 0x1a, 0x41, 0x64, 0x64, 0x55, 0x73,
1369
0x61, 0x67, 0x65, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x4e, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73,
1370
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xce, 0x04, 0x0a, 0x0c, 0x55, 0x73, 0x61, 0x67, 0x65, 0x53,
1371
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x52, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x73,
1372
0x74, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e,
1373
0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72,
1374
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e,
1375
0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72,
1376
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x53, 0x65,
1377
0x74, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x75, 0x73,
1378
0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x65,
1379
0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x75, 0x73,
1380
0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x65,
1381
0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55,
1382
0x0a, 0x0e, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65,
1383
0x12, 0x1f, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f,
1384
0x6e, 0x63, 0x69, 0x6c, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
1385
0x74, 0x1a, 0x20, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63,
1386
0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
1387
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x65, 0x74, 0x55, 0x73,
1388
0x61, 0x67, 0x65, 0x12, 0x1b, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52,
1389
0x65, 0x73, 0x65, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
1390
0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65,
1391
0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
1392
0x12, 0x46, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e,
1393
0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x61,
1394
0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x75, 0x73, 0x61, 0x67,
1395
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65,
1396
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42,
1397
0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76,
1398
0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,
1399
0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,
1400
0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
1401
0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x43,
1402
0x72, 0x65, 0x64, 0x69, 0x74, 0x4e, 0x6f, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x75, 0x73, 0x61, 0x67,
1403
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x43, 0x72, 0x65,
1404
0x64, 0x69, 0x74, 0x4e, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24,
1405
0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x55, 0x73, 0x61,
1406
0x67, 0x65, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x4e, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70,
1407
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
1408
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67,
1409
0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f,
1410
0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
1411
}
1412
1413
var (
1414
file_usage_v1_usage_proto_rawDescOnce sync.Once
1415
file_usage_v1_usage_proto_rawDescData = file_usage_v1_usage_proto_rawDesc
1416
)
1417
1418
func file_usage_v1_usage_proto_rawDescGZIP() []byte {
1419
file_usage_v1_usage_proto_rawDescOnce.Do(func() {
1420
file_usage_v1_usage_proto_rawDescData = protoimpl.X.CompressGZIP(file_usage_v1_usage_proto_rawDescData)
1421
})
1422
return file_usage_v1_usage_proto_rawDescData
1423
}
1424
1425
var file_usage_v1_usage_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
1426
var file_usage_v1_usage_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
1427
var file_usage_v1_usage_proto_goTypes = []interface{}{
1428
(ListUsageRequest_Ordering)(0), // 0: usage.v1.ListUsageRequest.Ordering
1429
(Usage_Kind)(0), // 1: usage.v1.Usage.Kind
1430
(CostCenter_BillingStrategy)(0), // 2: usage.v1.CostCenter.BillingStrategy
1431
(*ReconcileUsageRequest)(nil), // 3: usage.v1.ReconcileUsageRequest
1432
(*ReconcileUsageResponse)(nil), // 4: usage.v1.ReconcileUsageResponse
1433
(*PaginatedRequest)(nil), // 5: usage.v1.PaginatedRequest
1434
(*PaginatedResponse)(nil), // 6: usage.v1.PaginatedResponse
1435
(*ListUsageRequest)(nil), // 7: usage.v1.ListUsageRequest
1436
(*ListUsageResponse)(nil), // 8: usage.v1.ListUsageResponse
1437
(*Usage)(nil), // 9: usage.v1.Usage
1438
(*SetCostCenterRequest)(nil), // 10: usage.v1.SetCostCenterRequest
1439
(*SetCostCenterResponse)(nil), // 11: usage.v1.SetCostCenterResponse
1440
(*GetBalanceRequest)(nil), // 12: usage.v1.GetBalanceRequest
1441
(*GetBalanceResponse)(nil), // 13: usage.v1.GetBalanceResponse
1442
(*GetCostCenterRequest)(nil), // 14: usage.v1.GetCostCenterRequest
1443
(*GetCostCenterResponse)(nil), // 15: usage.v1.GetCostCenterResponse
1444
(*CostCenter)(nil), // 16: usage.v1.CostCenter
1445
(*ResetUsageRequest)(nil), // 17: usage.v1.ResetUsageRequest
1446
(*ResetUsageResponse)(nil), // 18: usage.v1.ResetUsageResponse
1447
(*AddUsageCreditNoteRequest)(nil), // 19: usage.v1.AddUsageCreditNoteRequest
1448
(*AddUsageCreditNoteResponse)(nil), // 20: usage.v1.AddUsageCreditNoteResponse
1449
(*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp
1450
(*durationpb.Duration)(nil), // 22: google.protobuf.Duration
1451
}
1452
var file_usage_v1_usage_proto_depIdxs = []int32{
1453
21, // 0: usage.v1.ReconcileUsageRequest.from:type_name -> google.protobuf.Timestamp
1454
21, // 1: usage.v1.ReconcileUsageRequest.to:type_name -> google.protobuf.Timestamp
1455
21, // 2: usage.v1.ListUsageRequest.from:type_name -> google.protobuf.Timestamp
1456
21, // 3: usage.v1.ListUsageRequest.to:type_name -> google.protobuf.Timestamp
1457
0, // 4: usage.v1.ListUsageRequest.order:type_name -> usage.v1.ListUsageRequest.Ordering
1458
5, // 5: usage.v1.ListUsageRequest.pagination:type_name -> usage.v1.PaginatedRequest
1459
9, // 6: usage.v1.ListUsageResponse.usage_entries:type_name -> usage.v1.Usage
1460
6, // 7: usage.v1.ListUsageResponse.pagination:type_name -> usage.v1.PaginatedResponse
1461
22, // 8: usage.v1.ListUsageResponse.ledger_interval:type_name -> google.protobuf.Duration
1462
21, // 9: usage.v1.Usage.effective_time:type_name -> google.protobuf.Timestamp
1463
1, // 10: usage.v1.Usage.kind:type_name -> usage.v1.Usage.Kind
1464
16, // 11: usage.v1.SetCostCenterRequest.cost_center:type_name -> usage.v1.CostCenter
1465
16, // 12: usage.v1.SetCostCenterResponse.cost_center:type_name -> usage.v1.CostCenter
1466
16, // 13: usage.v1.GetCostCenterResponse.cost_center:type_name -> usage.v1.CostCenter
1467
2, // 14: usage.v1.CostCenter.billing_strategy:type_name -> usage.v1.CostCenter.BillingStrategy
1468
21, // 15: usage.v1.CostCenter.next_billing_time:type_name -> google.protobuf.Timestamp
1469
21, // 16: usage.v1.CostCenter.billing_cycle_start:type_name -> google.protobuf.Timestamp
1470
14, // 17: usage.v1.UsageService.GetCostCenter:input_type -> usage.v1.GetCostCenterRequest
1471
10, // 18: usage.v1.UsageService.SetCostCenter:input_type -> usage.v1.SetCostCenterRequest
1472
3, // 19: usage.v1.UsageService.ReconcileUsage:input_type -> usage.v1.ReconcileUsageRequest
1473
17, // 20: usage.v1.UsageService.ResetUsage:input_type -> usage.v1.ResetUsageRequest
1474
7, // 21: usage.v1.UsageService.ListUsage:input_type -> usage.v1.ListUsageRequest
1475
12, // 22: usage.v1.UsageService.GetBalance:input_type -> usage.v1.GetBalanceRequest
1476
19, // 23: usage.v1.UsageService.AddUsageCreditNote:input_type -> usage.v1.AddUsageCreditNoteRequest
1477
15, // 24: usage.v1.UsageService.GetCostCenter:output_type -> usage.v1.GetCostCenterResponse
1478
11, // 25: usage.v1.UsageService.SetCostCenter:output_type -> usage.v1.SetCostCenterResponse
1479
4, // 26: usage.v1.UsageService.ReconcileUsage:output_type -> usage.v1.ReconcileUsageResponse
1480
18, // 27: usage.v1.UsageService.ResetUsage:output_type -> usage.v1.ResetUsageResponse
1481
8, // 28: usage.v1.UsageService.ListUsage:output_type -> usage.v1.ListUsageResponse
1482
13, // 29: usage.v1.UsageService.GetBalance:output_type -> usage.v1.GetBalanceResponse
1483
20, // 30: usage.v1.UsageService.AddUsageCreditNote:output_type -> usage.v1.AddUsageCreditNoteResponse
1484
24, // [24:31] is the sub-list for method output_type
1485
17, // [17:24] is the sub-list for method input_type
1486
17, // [17:17] is the sub-list for extension type_name
1487
17, // [17:17] is the sub-list for extension extendee
1488
0, // [0:17] is the sub-list for field type_name
1489
}
1490
1491
func init() { file_usage_v1_usage_proto_init() }
1492
func file_usage_v1_usage_proto_init() {
1493
if File_usage_v1_usage_proto != nil {
1494
return
1495
}
1496
if !protoimpl.UnsafeEnabled {
1497
file_usage_v1_usage_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
1498
switch v := v.(*ReconcileUsageRequest); i {
1499
case 0:
1500
return &v.state
1501
case 1:
1502
return &v.sizeCache
1503
case 2:
1504
return &v.unknownFields
1505
default:
1506
return nil
1507
}
1508
}
1509
file_usage_v1_usage_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
1510
switch v := v.(*ReconcileUsageResponse); i {
1511
case 0:
1512
return &v.state
1513
case 1:
1514
return &v.sizeCache
1515
case 2:
1516
return &v.unknownFields
1517
default:
1518
return nil
1519
}
1520
}
1521
file_usage_v1_usage_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
1522
switch v := v.(*PaginatedRequest); i {
1523
case 0:
1524
return &v.state
1525
case 1:
1526
return &v.sizeCache
1527
case 2:
1528
return &v.unknownFields
1529
default:
1530
return nil
1531
}
1532
}
1533
file_usage_v1_usage_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
1534
switch v := v.(*PaginatedResponse); i {
1535
case 0:
1536
return &v.state
1537
case 1:
1538
return &v.sizeCache
1539
case 2:
1540
return &v.unknownFields
1541
default:
1542
return nil
1543
}
1544
}
1545
file_usage_v1_usage_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
1546
switch v := v.(*ListUsageRequest); i {
1547
case 0:
1548
return &v.state
1549
case 1:
1550
return &v.sizeCache
1551
case 2:
1552
return &v.unknownFields
1553
default:
1554
return nil
1555
}
1556
}
1557
file_usage_v1_usage_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1558
switch v := v.(*ListUsageResponse); i {
1559
case 0:
1560
return &v.state
1561
case 1:
1562
return &v.sizeCache
1563
case 2:
1564
return &v.unknownFields
1565
default:
1566
return nil
1567
}
1568
}
1569
file_usage_v1_usage_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1570
switch v := v.(*Usage); i {
1571
case 0:
1572
return &v.state
1573
case 1:
1574
return &v.sizeCache
1575
case 2:
1576
return &v.unknownFields
1577
default:
1578
return nil
1579
}
1580
}
1581
file_usage_v1_usage_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
1582
switch v := v.(*SetCostCenterRequest); i {
1583
case 0:
1584
return &v.state
1585
case 1:
1586
return &v.sizeCache
1587
case 2:
1588
return &v.unknownFields
1589
default:
1590
return nil
1591
}
1592
}
1593
file_usage_v1_usage_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
1594
switch v := v.(*SetCostCenterResponse); i {
1595
case 0:
1596
return &v.state
1597
case 1:
1598
return &v.sizeCache
1599
case 2:
1600
return &v.unknownFields
1601
default:
1602
return nil
1603
}
1604
}
1605
file_usage_v1_usage_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
1606
switch v := v.(*GetBalanceRequest); i {
1607
case 0:
1608
return &v.state
1609
case 1:
1610
return &v.sizeCache
1611
case 2:
1612
return &v.unknownFields
1613
default:
1614
return nil
1615
}
1616
}
1617
file_usage_v1_usage_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
1618
switch v := v.(*GetBalanceResponse); i {
1619
case 0:
1620
return &v.state
1621
case 1:
1622
return &v.sizeCache
1623
case 2:
1624
return &v.unknownFields
1625
default:
1626
return nil
1627
}
1628
}
1629
file_usage_v1_usage_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
1630
switch v := v.(*GetCostCenterRequest); i {
1631
case 0:
1632
return &v.state
1633
case 1:
1634
return &v.sizeCache
1635
case 2:
1636
return &v.unknownFields
1637
default:
1638
return nil
1639
}
1640
}
1641
file_usage_v1_usage_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
1642
switch v := v.(*GetCostCenterResponse); i {
1643
case 0:
1644
return &v.state
1645
case 1:
1646
return &v.sizeCache
1647
case 2:
1648
return &v.unknownFields
1649
default:
1650
return nil
1651
}
1652
}
1653
file_usage_v1_usage_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
1654
switch v := v.(*CostCenter); i {
1655
case 0:
1656
return &v.state
1657
case 1:
1658
return &v.sizeCache
1659
case 2:
1660
return &v.unknownFields
1661
default:
1662
return nil
1663
}
1664
}
1665
file_usage_v1_usage_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
1666
switch v := v.(*ResetUsageRequest); i {
1667
case 0:
1668
return &v.state
1669
case 1:
1670
return &v.sizeCache
1671
case 2:
1672
return &v.unknownFields
1673
default:
1674
return nil
1675
}
1676
}
1677
file_usage_v1_usage_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
1678
switch v := v.(*ResetUsageResponse); i {
1679
case 0:
1680
return &v.state
1681
case 1:
1682
return &v.sizeCache
1683
case 2:
1684
return &v.unknownFields
1685
default:
1686
return nil
1687
}
1688
}
1689
file_usage_v1_usage_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
1690
switch v := v.(*AddUsageCreditNoteRequest); i {
1691
case 0:
1692
return &v.state
1693
case 1:
1694
return &v.sizeCache
1695
case 2:
1696
return &v.unknownFields
1697
default:
1698
return nil
1699
}
1700
}
1701
file_usage_v1_usage_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
1702
switch v := v.(*AddUsageCreditNoteResponse); i {
1703
case 0:
1704
return &v.state
1705
case 1:
1706
return &v.sizeCache
1707
case 2:
1708
return &v.unknownFields
1709
default:
1710
return nil
1711
}
1712
}
1713
}
1714
type x struct{}
1715
out := protoimpl.TypeBuilder{
1716
File: protoimpl.DescBuilder{
1717
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1718
RawDescriptor: file_usage_v1_usage_proto_rawDesc,
1719
NumEnums: 3,
1720
NumMessages: 18,
1721
NumExtensions: 0,
1722
NumServices: 1,
1723
},
1724
GoTypes: file_usage_v1_usage_proto_goTypes,
1725
DependencyIndexes: file_usage_v1_usage_proto_depIdxs,
1726
EnumInfos: file_usage_v1_usage_proto_enumTypes,
1727
MessageInfos: file_usage_v1_usage_proto_msgTypes,
1728
}.Build()
1729
File_usage_v1_usage_proto = out.File
1730
file_usage_v1_usage_proto_rawDesc = nil
1731
file_usage_v1_usage_proto_goTypes = nil
1732
file_usage_v1_usage_proto_depIdxs = nil
1733
}
1734
1735