Debian Codegraph @

billing/budgets/apiv1beta1/budgetspb/budget_model.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/billing/budgets/v1beta1/budget_model.proto
20
21 package budgetspb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 date "google.golang.org/genproto/googleapis/type/date"
26 money "google.golang.org/genproto/googleapis/type/money"
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 structpb "google.golang.org/protobuf/types/known/structpb"
30 reflect "reflect"
31 sync "sync"
32 )
33
34 const (
35 // Verify that this generated code is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
37 // Verify that runtime/protoimpl is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
39 )
40
41 // A `CalendarPeriod` represents the abstract concept of a time period that
42 // has a canonical start. Grammatically, "the start of the current
43 // `CalendarPeriod`". All calendar times begin at 12 AM US and Canadian
44 // Pacific Time (UTC-8).
45 type CalendarPeriod int32
46
47 const (
48 // Calendar period is unset. This is the default if the budget is for a
49 // custom time period (CustomPeriod).
50 CalendarPeriod_CALENDAR_PERIOD_UNSPECIFIED CalendarPeriod = 0
51 // A month. Month starts on the first day of each month, such as January 1,
52 // February 1, March 1, and so on.
53 CalendarPeriod_MONTH CalendarPeriod = 1
54 // A quarter. Quarters start on dates January 1, April 1, July 1, and October
55 // 1 of each year.
56 CalendarPeriod_QUARTER CalendarPeriod = 2
57 // A year. Year starts on January 1.
58 CalendarPeriod_YEAR CalendarPeriod = 3
59 )
60
61 // Enum value maps for CalendarPeriod.
62 var (
63 CalendarPeriod_name = map[int32]string{
64 0: "CALENDAR_PERIOD_UNSPECIFIED",
65 1: "MONTH",
66 2: "QUARTER",
67 3: "YEAR",
68 }
69 CalendarPeriod_value = map[string]int32{
70 "CALENDAR_PERIOD_UNSPECIFIED": 0,
71 "MONTH": 1,
72 "QUARTER": 2,
73 "YEAR": 3,
74 }
75 )
76
77 func (x CalendarPeriod) Enum() *CalendarPeriod {
78 p := new(CalendarPeriod)
79 *p = x
80 return p
81 }
82
83 func (x CalendarPeriod) String() string {
84 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
85 }
86
87 func (CalendarPeriod) Descriptor() protoreflect.EnumDescriptor {
88 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_enumTypes[0].Descriptor()
89 }
90
91 func (CalendarPeriod) Type() protoreflect.EnumType {
92 return &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_enumTypes[0]
93 }
94
95 func (x CalendarPeriod) Number() protoreflect.EnumNumber {
96 return protoreflect.EnumNumber(x)
97 }
98
99 // Deprecated: Use CalendarPeriod.Descriptor instead.
100 func (CalendarPeriod) EnumDescriptor() ([]byte, []int) {
101 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescGZIP(), []int{0}
102 }
103
104 // The type of basis used to determine if spend has passed the threshold.
105 type ThresholdRule_Basis int32
106
107 const (
108 // Unspecified threshold basis.
109 ThresholdRule_BASIS_UNSPECIFIED ThresholdRule_Basis = 0
110 // Use current spend as the basis for comparison against the threshold.
111 ThresholdRule_CURRENT_SPEND ThresholdRule_Basis = 1
112 // Use forecasted spend for the period as the basis for comparison against
113 // the threshold.
114 // FORECASTED_SPEND can only be set when the budget's time period is a
115 // [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period].
116 // It cannot be set in combination with
117 // [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
118 ThresholdRule_FORECASTED_SPEND ThresholdRule_Basis = 2
119 )
120
121 // Enum value maps for ThresholdRule_Basis.
122 var (
123 ThresholdRule_Basis_name = map[int32]string{
124 0: "BASIS_UNSPECIFIED",
125 1: "CURRENT_SPEND",
126 2: "FORECASTED_SPEND",
127 }
128 ThresholdRule_Basis_value = map[string]int32{
129 "BASIS_UNSPECIFIED": 0,
130 "CURRENT_SPEND": 1,
131 "FORECASTED_SPEND": 2,
132 }
133 )
134
135 func (x ThresholdRule_Basis) Enum() *ThresholdRule_Basis {
136 p := new(ThresholdRule_Basis)
137 *p = x
138 return p
139 }
140
141 func (x ThresholdRule_Basis) String() string {
142 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
143 }
144
145 func (ThresholdRule_Basis) Descriptor() protoreflect.EnumDescriptor {
146 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_enumTypes[1].Descriptor()
147 }
148
149 func (ThresholdRule_Basis) Type() protoreflect.EnumType {
150 return &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_enumTypes[1]
151 }
152
153 func (x ThresholdRule_Basis) Number() protoreflect.EnumNumber {
154 return protoreflect.EnumNumber(x)
155 }
156
157 // Deprecated: Use ThresholdRule_Basis.Descriptor instead.
158 func (ThresholdRule_Basis) EnumDescriptor() ([]byte, []int) {
159 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescGZIP(), []int{3, 0}
160 }
161
162 // Specifies how credits are applied when determining the spend for
163 // threshold calculations. Budgets track the total cost minus any applicable
164 // selected credits.
165 // [See the documentation for a list of credit
166 // types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
167 type Filter_CreditTypesTreatment int32
168
169 const (
170 Filter_CREDIT_TYPES_TREATMENT_UNSPECIFIED Filter_CreditTypesTreatment = 0
171 // All types of credit are subtracted from the gross cost to determine the
172 // spend for threshold calculations.
173 Filter_INCLUDE_ALL_CREDITS Filter_CreditTypesTreatment = 1
174 // All types of credit are added to the net cost to determine the spend for
175 // threshold calculations.
176 Filter_EXCLUDE_ALL_CREDITS Filter_CreditTypesTreatment = 2
177 // [Credit
178 // types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type)
179 // specified in the credit_types field are subtracted from the
180 // gross cost to determine the spend for threshold calculations.
181 Filter_INCLUDE_SPECIFIED_CREDITS Filter_CreditTypesTreatment = 3
182 )
183
184 // Enum value maps for Filter_CreditTypesTreatment.
185 var (
186 Filter_CreditTypesTreatment_name = map[int32]string{
187 0: "CREDIT_TYPES_TREATMENT_UNSPECIFIED",
188 1: "INCLUDE_ALL_CREDITS",
189 2: "EXCLUDE_ALL_CREDITS",
190 3: "INCLUDE_SPECIFIED_CREDITS",
191 }
192 Filter_CreditTypesTreatment_value = map[string]int32{
193 "CREDIT_TYPES_TREATMENT_UNSPECIFIED": 0,
194 "INCLUDE_ALL_CREDITS": 1,
195 "EXCLUDE_ALL_CREDITS": 2,
196 "INCLUDE_SPECIFIED_CREDITS": 3,
197 }
198 )
199
200 func (x Filter_CreditTypesTreatment) Enum() *Filter_CreditTypesTreatment {
201 p := new(Filter_CreditTypesTreatment)
202 *p = x
203 return p
204 }
205
206 func (x Filter_CreditTypesTreatment) String() string {
207 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
208 }
209
210 func (Filter_CreditTypesTreatment) Descriptor() protoreflect.EnumDescriptor {
211 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_enumTypes[2].Descriptor()
212 }
213
214 func (Filter_CreditTypesTreatment) Type() protoreflect.EnumType {
215 return &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_enumTypes[2]
216 }
217
218 func (x Filter_CreditTypesTreatment) Number() protoreflect.EnumNumber {
219 return protoreflect.EnumNumber(x)
220 }
221
222 // Deprecated: Use Filter_CreditTypesTreatment.Descriptor instead.
223 func (Filter_CreditTypesTreatment) EnumDescriptor() ([]byte, []int) {
224 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescGZIP(), []int{5, 0}
225 }
226
227 // A budget is a plan that describes what you expect to spend on Cloud
228 // projects, plus the rules to execute as spend is tracked against that plan,
229 // (for example, send an alert when 90% of the target spend is met).
230 // The budget time period is configurable, with options such as month (default),
231 // quarter, year, or custom time period.
232 type Budget struct {
233 state protoimpl.MessageState
234 sizeCache protoimpl.SizeCache
235 unknownFields protoimpl.UnknownFields
236
237 // Output only. Resource name of the budget.
238 // The resource name implies the scope of a budget. Values are of the form
239 // `billingAccounts/{billingAccountId}/budgets/{budgetId}`.
240 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
241 // User data for display name in UI.
242 // Validation: <= 60 chars.
243 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
244 // Optional. Filters that define which resources are used to compute the
245 // actual spend against the budget amount, such as projects, services, and the
246 // budget's time period, as well as other filters.
247 BudgetFilter *Filter `protobuf:"bytes,3,opt,name=budget_filter,json=budgetFilter,proto3" json:"budget_filter,omitempty"`
248 // Required. Budgeted amount.
249 Amount *BudgetAmount `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
250 // Optional. Rules that trigger alerts (notifications of thresholds
251 // being crossed) when spend exceeds the specified percentages of the budget.
252 //
253 // Optional for `pubsubTopic` notifications.
254 //
255 // Required if using email notifications.
256 ThresholdRules []*ThresholdRule `protobuf:"bytes,5,rep,name=threshold_rules,json=thresholdRules,proto3" json:"threshold_rules,omitempty"`
257 // Optional. Rules to apply to notifications sent based on budget spend and
258 // thresholds.
259 AllUpdatesRule *AllUpdatesRule `protobuf:"bytes,6,opt,name=all_updates_rule,json=allUpdatesRule,proto3" json:"all_updates_rule,omitempty"`
260 // Optional. Etag to validate that the object is unchanged for a
261 // read-modify-write operation.
262 // An empty etag will cause an update to overwrite other changes.
263 Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"`
264 }
265
266 func (x *Budget) Reset() {
267 *x = Budget{}
268 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[0]
269 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
270 ms.StoreMessageInfo(mi)
271 }
272
273 func (x *Budget) String() string {
274 return protoimpl.X.MessageStringOf(x)
275 }
276
277 func (*Budget) ProtoMessage() {}
278
279 func (x *Budget) ProtoReflect() protoreflect.Message {
280 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[0]
281 if x != nil {
282 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
283 if ms.LoadMessageInfo() == nil {
284 ms.StoreMessageInfo(mi)
285 }
286 return ms
287 }
288 return mi.MessageOf(x)
289 }
290
291 // Deprecated: Use Budget.ProtoReflect.Descriptor instead.
292 func (*Budget) Descriptor() ([]byte, []int) {
293 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescGZIP(), []int{0}
294 }
295
296 func (x *Budget) GetName() string {
297 if x != nil {
298 return x.Name
299 }
300 return ""
301 }
302
303 func (x *Budget) GetDisplayName() string {
304 if x != nil {
305 return x.DisplayName
306 }
307 return ""
308 }
309
310 func (x *Budget) GetBudgetFilter() *Filter {
311 if x != nil {
312 return x.BudgetFilter
313 }
314 return nil
315 }
316
317 func (x *Budget) GetAmount() *BudgetAmount {
318 if x != nil {
319 return x.Amount
320 }
321 return nil
322 }
323
324 func (x *Budget) GetThresholdRules() []*ThresholdRule {
325 if x != nil {
326 return x.ThresholdRules
327 }
328 return nil
329 }
330
331 func (x *Budget) GetAllUpdatesRule() *AllUpdatesRule {
332 if x != nil {
333 return x.AllUpdatesRule
334 }
335 return nil
336 }
337
338 func (x *Budget) GetEtag() string {
339 if x != nil {
340 return x.Etag
341 }
342 return ""
343 }
344
345 // The budgeted amount for each usage period.
346 type BudgetAmount struct {
347 state protoimpl.MessageState
348 sizeCache protoimpl.SizeCache
349 unknownFields protoimpl.UnknownFields
350
351 // Specification for what amount to use as the budget.
352 //
353 // Types that are assignable to BudgetAmount:
354 //
355 // *BudgetAmount_SpecifiedAmount
356 // *BudgetAmount_LastPeriodAmount
357 BudgetAmount isBudgetAmount_BudgetAmount `protobuf_oneof:"budget_amount"`
358 }
359
360 func (x *BudgetAmount) Reset() {
361 *x = BudgetAmount{}
362 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[1]
363 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
364 ms.StoreMessageInfo(mi)
365 }
366
367 func (x *BudgetAmount) String() string {
368 return protoimpl.X.MessageStringOf(x)
369 }
370
371 func (*BudgetAmount) ProtoMessage() {}
372
373 func (x *BudgetAmount) ProtoReflect() protoreflect.Message {
374 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[1]
375 if x != nil {
376 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
377 if ms.LoadMessageInfo() == nil {
378 ms.StoreMessageInfo(mi)
379 }
380 return ms
381 }
382 return mi.MessageOf(x)
383 }
384
385 // Deprecated: Use BudgetAmount.ProtoReflect.Descriptor instead.
386 func (*BudgetAmount) Descriptor() ([]byte, []int) {
387 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescGZIP(), []int{1}
388 }
389
390 func (m *BudgetAmount) GetBudgetAmount() isBudgetAmount_BudgetAmount {
391 if m != nil {
392 return m.BudgetAmount
393 }
394 return nil
395 }
396
397 func (x *BudgetAmount) GetSpecifiedAmount() *money.Money {
398 if x, ok := x.GetBudgetAmount().(*BudgetAmount_SpecifiedAmount); ok {
399 return x.SpecifiedAmount
400 }
401 return nil
402 }
403
404 func (x *BudgetAmount) GetLastPeriodAmount() *LastPeriodAmount {
405 if x, ok := x.GetBudgetAmount().(*BudgetAmount_LastPeriodAmount); ok {
406 return x.LastPeriodAmount
407 }
408 return nil
409 }
410
411 type isBudgetAmount_BudgetAmount interface {
412 isBudgetAmount_BudgetAmount()
413 }
414
415 type BudgetAmount_SpecifiedAmount struct {
416 // A specified amount to use as the budget.
417 // `currency_code` is optional. If specified when creating a budget, it must
418 // match the currency of the billing account. If specified when updating a
419 // budget, it must match the currency_code of the existing budget.
420 // The `currency_code` is provided on output.
421 SpecifiedAmount *money.Money `protobuf:"bytes,1,opt,name=specified_amount,json=specifiedAmount,proto3,oneof"`
422 }
423
424 type BudgetAmount_LastPeriodAmount struct {
425 // Use the last period's actual spend as the budget for the present period.
426 // LastPeriodAmount can only be set when the budget's time period is a
427 // [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period].
428 // It cannot be set in combination with
429 // [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
430 LastPeriodAmount *LastPeriodAmount `protobuf:"bytes,2,opt,name=last_period_amount,json=lastPeriodAmount,proto3,oneof"`
431 }
432
433 func (*BudgetAmount_SpecifiedAmount) isBudgetAmount_BudgetAmount() {}
434
435 func (*BudgetAmount_LastPeriodAmount) isBudgetAmount_BudgetAmount() {}
436
437 // Describes a budget amount targeted to the last
438 // [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period]
439 // spend. At this time, the amount is automatically 100% of the last calendar
440 // period's spend; that is, there are no other options yet.
441 // Future configuration options will be described here (for example, configuring
442 // a percentage of last period's spend).
443 // LastPeriodAmount cannot be set for a budget configured with
444 // a
445 // [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
446 type LastPeriodAmount struct {
447 state protoimpl.MessageState
448 sizeCache protoimpl.SizeCache
449 unknownFields protoimpl.UnknownFields
450 }
451
452 func (x *LastPeriodAmount) Reset() {
453 *x = LastPeriodAmount{}
454 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[2]
455 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
456 ms.StoreMessageInfo(mi)
457 }
458
459 func (x *LastPeriodAmount) String() string {
460 return protoimpl.X.MessageStringOf(x)
461 }
462
463 func (*LastPeriodAmount) ProtoMessage() {}
464
465 func (x *LastPeriodAmount) ProtoReflect() protoreflect.Message {
466 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[2]
467 if x != nil {
468 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
469 if ms.LoadMessageInfo() == nil {
470 ms.StoreMessageInfo(mi)
471 }
472 return ms
473 }
474 return mi.MessageOf(x)
475 }
476
477 // Deprecated: Use LastPeriodAmount.ProtoReflect.Descriptor instead.
478 func (*LastPeriodAmount) Descriptor() ([]byte, []int) {
479 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescGZIP(), []int{2}
480 }
481
482 // ThresholdRule contains the definition of a threshold. Threshold rules define
483 // the triggering events used to generate a budget notification email. When a
484 // threshold is crossed (spend exceeds the specified percentages of the
485 // budget), budget alert emails are sent to the email recipients you specify
486 // in the
487 // [NotificationsRule](#notificationsrule).
488 //
489 // Threshold rules also affect the fields included in the
490 // [JSON data
491 // object](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format)
492 // sent to a Pub/Sub topic.
493 //
494 // Threshold rules are _required_ if using email notifications.
495 //
496 // Threshold rules are _optional_ if only setting a
497 // [`pubsubTopic` NotificationsRule](#NotificationsRule),
498 // unless you want your JSON data object to include data about the thresholds
499 // you set.
500 //
501 // For more information, see
502 // [set budget threshold rules and
503 // actions](https://cloud.google.com/billing/docs/how-to/budgets#budget-actions).
504 type ThresholdRule struct {
505 state protoimpl.MessageState
506 sizeCache protoimpl.SizeCache
507 unknownFields protoimpl.UnknownFields
508
509 // Required. Send an alert when this threshold is exceeded.
510 // This is a 1.0-based percentage, so 0.5 = 50%.
511 // Validation: non-negative number.
512 ThresholdPercent float64 `protobuf:"fixed64,1,opt,name=threshold_percent,json=thresholdPercent,proto3" json:"threshold_percent,omitempty"`
513 // Optional. The type of basis used to determine if spend has passed the
514 // threshold. Behavior defaults to CURRENT_SPEND if not set.
515 SpendBasis ThresholdRule_Basis `protobuf:"varint,2,opt,name=spend_basis,json=spendBasis,proto3,enum=google.cloud.billing.budgets.v1beta1.ThresholdRule_Basis" json:"spend_basis,omitempty"`
516 }
517
518 func (x *ThresholdRule) Reset() {
519 *x = ThresholdRule{}
520 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[3]
521 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
522 ms.StoreMessageInfo(mi)
523 }
524
525 func (x *ThresholdRule) String() string {
526 return protoimpl.X.MessageStringOf(x)
527 }
528
529 func (*ThresholdRule) ProtoMessage() {}
530
531 func (x *ThresholdRule) ProtoReflect() protoreflect.Message {
532 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[3]
533 if x != nil {
534 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
535 if ms.LoadMessageInfo() == nil {
536 ms.StoreMessageInfo(mi)
537 }
538 return ms
539 }
540 return mi.MessageOf(x)
541 }
542
543 // Deprecated: Use ThresholdRule.ProtoReflect.Descriptor instead.
544 func (*ThresholdRule) Descriptor() ([]byte, []int) {
545 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescGZIP(), []int{3}
546 }
547
548 func (x *ThresholdRule) GetThresholdPercent() float64 {
549 if x != nil {
550 return x.ThresholdPercent
551 }
552 return 0
553 }
554
555 func (x *ThresholdRule) GetSpendBasis() ThresholdRule_Basis {
556 if x != nil {
557 return x.SpendBasis
558 }
559 return ThresholdRule_BASIS_UNSPECIFIED
560 }
561
562 // AllUpdatesRule defines notifications that are sent based on budget spend
563 // and thresholds.
564 type AllUpdatesRule struct {
565 state protoimpl.MessageState
566 sizeCache protoimpl.SizeCache
567 unknownFields protoimpl.UnknownFields
568
569 // Optional. The name of the Pub/Sub topic where budget related messages will
570 // be published, in the form `projects/{project_id}/topics/{topic_id}`.
571 // Updates are sent at regular intervals to the topic. The topic needs to be
572 // created before the budget is created; see
573 // https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications
574 // for more details.
575 // Caller is expected to have
576 // `pubsub.topics.setIamPolicy` permission on the topic when it's set for a
577 // budget, otherwise, the API call will fail with PERMISSION_DENIED. See
578 // https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#permissions_required_for_this_task
579 // for more details on Pub/Sub roles and permissions.
580 PubsubTopic string `protobuf:"bytes,1,opt,name=pubsub_topic,json=pubsubTopic,proto3" json:"pubsub_topic,omitempty"`
581 // Optional. Required when
582 // [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
583 // is set. The schema version of the notification sent to
584 // [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic].
585 // Only "1.0" is accepted. It represents the JSON schema as defined in
586 // https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
587 SchemaVersion string `protobuf:"bytes,2,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
588 // Optional. Targets to send notifications to when a threshold is exceeded.
589 // This is in addition to default recipients who have billing account IAM
590 // roles. The value is the full REST resource name of a monitoring
591 // notification channel with the form
592 // `projects/{project_id}/notificationChannels/{channel_id}`. A maximum of 5
593 // channels are allowed. See
594 // https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients
595 // for more details.
596 MonitoringNotificationChannels []string `protobuf:"bytes,3,rep,name=monitoring_notification_channels,json=monitoringNotificationChannels,proto3" json:"monitoring_notification_channels,omitempty"`
597 // Optional. When set to true, disables default notifications sent when a
598 // threshold is exceeded. Default notifications are sent to those with Billing
599 // Account Administrator and Billing Account User IAM roles for the target
600 // account.
601 DisableDefaultIamRecipients bool `protobuf:"varint,4,opt,name=disable_default_iam_recipients,json=disableDefaultIamRecipients,proto3" json:"disable_default_iam_recipients,omitempty"`
602 // Optional. When set to true, and when the budget has a single project
603 // configured, notifications will be sent to project level recipients of that
604 // project. This field will be ignored if the budget has multiple or no
605 // project configured.
606 //
607 // Currently, project level recipients are the users with `Owner` role on a
608 // cloud project.
609 EnableProjectLevelRecipients bool `protobuf:"varint,5,opt,name=enable_project_level_recipients,json=enableProjectLevelRecipients,proto3" json:"enable_project_level_recipients,omitempty"`
610 }
611
612 func (x *AllUpdatesRule) Reset() {
613 *x = AllUpdatesRule{}
614 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[4]
615 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
616 ms.StoreMessageInfo(mi)
617 }
618
619 func (x *AllUpdatesRule) String() string {
620 return protoimpl.X.MessageStringOf(x)
621 }
622
623 func (*AllUpdatesRule) ProtoMessage() {}
624
625 func (x *AllUpdatesRule) ProtoReflect() protoreflect.Message {
626 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[4]
627 if x != nil {
628 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
629 if ms.LoadMessageInfo() == nil {
630 ms.StoreMessageInfo(mi)
631 }
632 return ms
633 }
634 return mi.MessageOf(x)
635 }
636
637 // Deprecated: Use AllUpdatesRule.ProtoReflect.Descriptor instead.
638 func (*AllUpdatesRule) Descriptor() ([]byte, []int) {
639 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescGZIP(), []int{4}
640 }
641
642 func (x *AllUpdatesRule) GetPubsubTopic() string {
643 if x != nil {
644 return x.PubsubTopic
645 }
646 return ""
647 }
648
649 func (x *AllUpdatesRule) GetSchemaVersion() string {
650 if x != nil {
651 return x.SchemaVersion
652 }
653 return ""
654 }
655
656 func (x *AllUpdatesRule) GetMonitoringNotificationChannels() []string {
657 if x != nil {
658 return x.MonitoringNotificationChannels
659 }
660 return nil
661 }
662
663 func (x *AllUpdatesRule) GetDisableDefaultIamRecipients() bool {
664 if x != nil {
665 return x.DisableDefaultIamRecipients
666 }
667 return false
668 }
669
670 func (x *AllUpdatesRule) GetEnableProjectLevelRecipients() bool {
671 if x != nil {
672 return x.EnableProjectLevelRecipients
673 }
674 return false
675 }
676
677 // A filter for a budget, limiting the scope of the cost to calculate.
678 type Filter struct {
679 state protoimpl.MessageState
680 sizeCache protoimpl.SizeCache
681 unknownFields protoimpl.UnknownFields
682
683 // Optional. A set of projects of the form `projects/{project}`,
684 // specifying that usage from only this set of projects should be
685 // included in the budget. If omitted, the report will include all usage for
686 // the billing account, regardless of which project the usage occurred on.
687 Projects []string `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
688 // Optional. A set of folder and organization names of the form
689 // `folders/{folderId}` or `organizations/{organizationId}`, specifying that
690 // usage from only this set of folders and organizations should be included in
691 // the budget. If omitted, the budget includes all usage that the billing
692 // account pays for. If the folder or organization contains projects that are
693 // paid for by a different Cloud Billing account, the budget *doesn't* apply
694 // to those projects.
695 ResourceAncestors []string `protobuf:"bytes,2,rep,name=resource_ancestors,json=resourceAncestors,proto3" json:"resource_ancestors,omitempty"`
696 // Optional. If
697 // [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
698 // is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be
699 // subtracted from gross cost to determine the spend for threshold
700 // calculations. See [a list of acceptable credit type
701 // values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
702 //
703 // If
704 // [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment]
705 // is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
706 CreditTypes []string `protobuf:"bytes,7,rep,name=credit_types,json=creditTypes,proto3" json:"credit_types,omitempty"`
707 // Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
708 CreditTypesTreatment Filter_CreditTypesTreatment `protobuf:"varint,4,opt,name=credit_types_treatment,json=creditTypesTreatment,proto3,enum=google.cloud.billing.budgets.v1beta1.Filter_CreditTypesTreatment" json:"credit_types_treatment,omitempty"`
709 // Optional. A set of services of the form `services/{service_id}`,
710 // specifying that usage from only this set of services should be
711 // included in the budget. If omitted, the report will include usage for
712 // all the services.
713 // The service names are available through the Catalog API:
714 // https://cloud.google.com/billing/v1/how-tos/catalog-api.
715 Services []string `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"`
716 // Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
717 // specifying that usage from only this set of subaccounts should be included
718 // in the budget. If a subaccount is set to the name of the parent account,
719 // usage from the parent account will be included. If omitted, the
720 // report will include usage from the parent account and all
721 // subaccounts, if they exist.
722 Subaccounts []string `protobuf:"bytes,5,rep,name=subaccounts,proto3" json:"subaccounts,omitempty"`
723 // Optional. A single label and value pair specifying that usage from only
724 // this set of labeled resources should be included in the budget. If omitted,
725 // the report will include all labeled and unlabeled usage.
726 //
727 // An object containing a single `"key": value` pair. Example: `{ "name":
728 // "wrench" }`.
729 //
730 // _Currently, multiple entries or multiple values per entry are not
731 // allowed._
732 Labels map[string]*structpb.ListValue `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
733 // Multiple options to choose the budget's time period, specifying that only
734 // usage that occurs during this time period should be included in the budget.
735 // If not set, the <code>usage_period</code> defaults to CalendarPeriod.MONTH.
736 //
737 // Types that are assignable to UsagePeriod:
738 //
739 // *Filter_CalendarPeriod
740 // *Filter_CustomPeriod
741 UsagePeriod isFilter_UsagePeriod `protobuf_oneof:"usage_period"`
742 }
743
744 func (x *Filter) Reset() {
745 *x = Filter{}
746 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[5]
747 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
748 ms.StoreMessageInfo(mi)
749 }
750
751 func (x *Filter) String() string {
752 return protoimpl.X.MessageStringOf(x)
753 }
754
755 func (*Filter) ProtoMessage() {}
756
757 func (x *Filter) ProtoReflect() protoreflect.Message {
758 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[5]
759 if x != nil {
760 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
761 if ms.LoadMessageInfo() == nil {
762 ms.StoreMessageInfo(mi)
763 }
764 return ms
765 }
766 return mi.MessageOf(x)
767 }
768
769 // Deprecated: Use Filter.ProtoReflect.Descriptor instead.
770 func (*Filter) Descriptor() ([]byte, []int) {
771 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescGZIP(), []int{5}
772 }
773
774 func (x *Filter) GetProjects() []string {
775 if x != nil {
776 return x.Projects
777 }
778 return nil
779 }
780
781 func (x *Filter) GetResourceAncestors() []string {
782 if x != nil {
783 return x.ResourceAncestors
784 }
785 return nil
786 }
787
788 func (x *Filter) GetCreditTypes() []string {
789 if x != nil {
790 return x.CreditTypes
791 }
792 return nil
793 }
794
795 func (x *Filter) GetCreditTypesTreatment() Filter_CreditTypesTreatment {
796 if x != nil {
797 return x.CreditTypesTreatment
798 }
799 return Filter_CREDIT_TYPES_TREATMENT_UNSPECIFIED
800 }
801
802 func (x *Filter) GetServices() []string {
803 if x != nil {
804 return x.Services
805 }
806 return nil
807 }
808
809 func (x *Filter) GetSubaccounts() []string {
810 if x != nil {
811 return x.Subaccounts
812 }
813 return nil
814 }
815
816 func (x *Filter) GetLabels() map[string]*structpb.ListValue {
817 if x != nil {
818 return x.Labels
819 }
820 return nil
821 }
822
823 func (m *Filter) GetUsagePeriod() isFilter_UsagePeriod {
824 if m != nil {
825 return m.UsagePeriod
826 }
827 return nil
828 }
829
830 func (x *Filter) GetCalendarPeriod() CalendarPeriod {
831 if x, ok := x.GetUsagePeriod().(*Filter_CalendarPeriod); ok {
832 return x.CalendarPeriod
833 }
834 return CalendarPeriod_CALENDAR_PERIOD_UNSPECIFIED
835 }
836
837 func (x *Filter) GetCustomPeriod() *CustomPeriod {
838 if x, ok := x.GetUsagePeriod().(*Filter_CustomPeriod); ok {
839 return x.CustomPeriod
840 }
841 return nil
842 }
843
844 type isFilter_UsagePeriod interface {
845 isFilter_UsagePeriod()
846 }
847
848 type Filter_CalendarPeriod struct {
849 // Optional. Specifies to track usage for recurring calendar period.
850 // For example, assume that CalendarPeriod.QUARTER is set. The budget will
851 // track usage from April 1 to June 30, when the current calendar month is
852 // April, May, June. After that, it will track usage from July 1 to
853 // September 30 when the current calendar month is July, August, September,
854 // so on.
855 CalendarPeriod CalendarPeriod `protobuf:"varint,8,opt,name=calendar_period,json=calendarPeriod,proto3,enum=google.cloud.billing.budgets.v1beta1.CalendarPeriod,oneof"`
856 }
857
858 type Filter_CustomPeriod struct {
859 // Optional. Specifies to track usage from any start date (required) to any
860 // end date (optional). This time period is static, it does not recur.
861 CustomPeriod *CustomPeriod `protobuf:"bytes,9,opt,name=custom_period,json=customPeriod,proto3,oneof"`
862 }
863
864 func (*Filter_CalendarPeriod) isFilter_UsagePeriod() {}
865
866 func (*Filter_CustomPeriod) isFilter_UsagePeriod() {}
867
868 // All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
869 type CustomPeriod struct {
870 state protoimpl.MessageState
871 sizeCache protoimpl.SizeCache
872 unknownFields protoimpl.UnknownFields
873
874 // Required. The start date must be after January 1, 2017.
875 StartDate *date.Date `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
876 // Optional. The end date of the time period. Budgets with elapsed end date
877 // won't be processed. If unset, specifies to track all usage incurred since
878 // the start_date.
879 EndDate *date.Date `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
880 }
881
882 func (x *CustomPeriod) Reset() {
883 *x = CustomPeriod{}
884 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[6]
885 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
886 ms.StoreMessageInfo(mi)
887 }
888
889 func (x *CustomPeriod) String() string {
890 return protoimpl.X.MessageStringOf(x)
891 }
892
893 func (*CustomPeriod) ProtoMessage() {}
894
895 func (x *CustomPeriod) ProtoReflect() protoreflect.Message {
896 mi := &file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[6]
897 if x != nil {
898 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
899 if ms.LoadMessageInfo() == nil {
900 ms.StoreMessageInfo(mi)
901 }
902 return ms
903 }
904 return mi.MessageOf(x)
905 }
906
907 // Deprecated: Use CustomPeriod.ProtoReflect.Descriptor instead.
908 func (*CustomPeriod) Descriptor() ([]byte, []int) {
909 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescGZIP(), []int{6}
910 }
911
912 func (x *CustomPeriod) GetStartDate() *date.Date {
913 if x != nil {
914 return x.StartDate
915 }
916 return nil
917 }
918
919 func (x *CustomPeriod) GetEndDate() *date.Date {
920 if x != nil {
921 return x.EndDate
922 }
923 return nil
924 }
925
926 var File_google_cloud_billing_budgets_v1beta1_budget_model_proto protoreflect.FileDescriptor
927
928 var file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDesc = []byte{
929 0x0a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
930 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2f, 0x76,
931 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x6f,
932 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
933 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e,
934 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a,
935 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c,
936 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
937 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73,
938 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
939 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72,
940 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
941 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
942 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d,
943 0x6f, 0x6e, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x04, 0x0a, 0x06, 0x42,
944 0x75, 0x64, 0x67, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
945 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21,
946 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
947 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d,
948 0x65, 0x12, 0x56, 0x0a, 0x0d, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x74,
949 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
950 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e,
951 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
952 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x62, 0x75, 0x64,
953 0x67, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x06, 0x61, 0x6d, 0x6f,
954 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
955 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67,
956 0x2e, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
957 0x2e, 0x42, 0x75, 0x64, 0x67, 0x65, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x03, 0xe0,
958 0x41, 0x02, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x61, 0x0a, 0x0f, 0x74, 0x68,
959 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20,
960 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
961 0x75, 0x64, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x62, 0x75, 0x64, 0x67, 0x65,
962 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x73,
963 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0e, 0x74,
964 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x63, 0x0a,
965 0x10, 0x61, 0x6c, 0x6c, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x75, 0x6c,
966 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
967 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x62,
968 0x75, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41,
969 0x6c, 0x6c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x42, 0x03, 0xe0,
970 0x41, 0x01, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x75,
971 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
972 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x3a, 0x5d, 0xea, 0x41, 0x5a,
973 0x0a, 0x24, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73,
974 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
975 0x42, 0x75, 0x64, 0x67, 0x65, 0x74, 0x12, 0x32, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41,
976 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67,
977 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74,
978 0x73, 0x2f, 0x7b, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x7d, 0x22, 0xc8, 0x01, 0x0a, 0x0c, 0x42,
979 0x75, 0x64, 0x67, 0x65, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x10, 0x73,
980 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18,
981 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74,
982 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x6f, 0x6e, 0x65, 0x79, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x70, 0x65,
983 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x66, 0x0a, 0x12,
984 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75,
985 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
986 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e,
987 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
988 0x4c, 0x61, 0x73, 0x74, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
989 0x48, 0x00, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x41, 0x6d,
990 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x0f, 0x0a, 0x0d, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x5f, 0x61,
991 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x12, 0x0a, 0x10, 0x4c, 0x61, 0x73, 0x74, 0x50, 0x65, 0x72,
992 0x69, 0x6f, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xeb, 0x01, 0x0a, 0x0d, 0x54, 0x68,
993 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x30, 0x0a, 0x11, 0x74,
994 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74,
995 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x74, 0x68, 0x72,
996 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x5f, 0x0a,
997 0x0b, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x5f, 0x62, 0x61, 0x73, 0x69, 0x73, 0x18, 0x02, 0x20, 0x01,
998 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
999 0x64, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74,
1000 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68,
1001 0x6f, 0x6c, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x73, 0x42, 0x03, 0xe0,
1002 0x41, 0x01, 0x52, 0x0a, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x42, 0x61, 0x73, 0x69, 0x73, 0x22, 0x47,
1003 0x0a, 0x05, 0x42, 0x61, 0x73, 0x69, 0x73, 0x12, 0x15, 0x0a, 0x11, 0x42, 0x41, 0x53, 0x49, 0x53,
1004 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11,
1005 0x0a, 0x0d, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x10,
1006 0x01, 0x12, 0x14, 0x0a, 0x10, 0x46, 0x4f, 0x52, 0x45, 0x43, 0x41, 0x53, 0x54, 0x45, 0x44, 0x5f,
1007 0x53, 0x50, 0x45, 0x4e, 0x44, 0x10, 0x02, 0x22, 0xc9, 0x02, 0x0a, 0x0e, 0x41, 0x6c, 0x6c, 0x55,
1008 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x70, 0x75,
1009 0x62, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
1010 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x54, 0x6f, 0x70,
1011 0x69, 0x63, 0x12, 0x2a, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72,
1012 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
1013 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4d,
1014 0x0a, 0x20, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x6f, 0x74,
1015 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65,
1016 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x1e, 0x6d,
1017 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63,
1018 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x12, 0x48, 0x0a,
1019 0x1e, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
1020 0x5f, 0x69, 0x61, 0x6d, 0x5f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18,
1021 0x04, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x1b, 0x64, 0x69, 0x73, 0x61,
1022 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x61, 0x6d, 0x52, 0x65, 0x63,
1023 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4a, 0x0a, 0x1f, 0x65, 0x6e, 0x61, 0x62, 0x6c,
1024 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f,
1025 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08,
1026 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x1c, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f,
1027 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65,
1028 0x6e, 0x74, 0x73, 0x22, 0xe1, 0x06, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1f,
1029 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09,
1030 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12,
1031 0x32, 0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x6e, 0x63, 0x65,
1032 0x73, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,
1033 0x52, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74,
1034 0x6f, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x74, 0x79,
1035 0x70, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b,
1036 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x7c, 0x0a, 0x16, 0x63,
1037 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 0x74, 0x72, 0x65, 0x61,
1038 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x41, 0x2e, 0x67, 0x6f,
1039 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69,
1040 0x6e, 0x67, 0x2e, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
1041 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74,
1042 0x54, 0x79, 0x70, 0x65, 0x73, 0x54, 0x72, 0x65, 0x61, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03,
1043 0xe0, 0x41, 0x01, 0x52, 0x14, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73,
1044 0x54, 0x72, 0x65, 0x61, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x73, 0x65, 0x72,
1045 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,
1046 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0b, 0x73, 0x75,
1047 0x62, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x42,
1048 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
1049 0x73, 0x12, 0x55, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28,
1050 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
1051 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73,
1052 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e,
1053 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01,
1054 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x64, 0x0a, 0x0f, 0x63, 0x61, 0x6c, 0x65,
1055 0x6e, 0x64, 0x61, 0x72, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
1056 0x0e, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
1057 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73,
1058 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x65, 0x6e, 0x64, 0x61,
1059 0x72, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x00, 0x52, 0x0e,
1060 0x63, 0x61, 0x6c, 0x65, 0x6e, 0x64, 0x61, 0x72, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x5e,
1061 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18,
1062 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
1063 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x62, 0x75, 0x64,
1064 0x67, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x73,
1065 0x74, 0x6f, 0x6d, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x00,
1066 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x1a, 0x55,
1067 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
1068 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
1069 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
1070 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
1071 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
1072 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x8f, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74,
1073 0x54, 0x79, 0x70, 0x65, 0x73, 0x54, 0x72, 0x65, 0x61, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x26,
1074 0x0a, 0x22, 0x43, 0x52, 0x45, 0x44, 0x49, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x53, 0x5f, 0x54,
1075 0x52, 0x45, 0x41, 0x54, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
1076 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x43, 0x4c, 0x55, 0x44,
1077 0x45, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x43, 0x52, 0x45, 0x44, 0x49, 0x54, 0x53, 0x10, 0x01, 0x12,
1078 0x17, 0x0a, 0x13, 0x45, 0x58, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x43,
1079 0x52, 0x45, 0x44, 0x49, 0x54, 0x53, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x49, 0x4e, 0x43, 0x4c,
1080 0x55, 0x44, 0x45, 0x5f, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x5f, 0x43, 0x52,
1081 0x45, 0x44, 0x49, 0x54, 0x53, 0x10, 0x03, 0x42, 0x0e, 0x0a, 0x0c, 0x75, 0x73, 0x61, 0x67, 0x65,
1082 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x22, 0x78, 0x0a, 0x0c, 0x43, 0x75, 0x73, 0x74, 0x6f,
1083 0x6d, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x35, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74,
1084 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f,
1085 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x42, 0x03,
1086 0xe0, 0x41, 0x02, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x44, 0x61, 0x74, 0x65, 0x12, 0x31,
1087 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
1088 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x44,
1089 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x44, 0x61, 0x74,
1090 0x65, 0x2a, 0x53, 0x0a, 0x0e, 0x43, 0x61, 0x6c, 0x65, 0x6e, 0x64, 0x61, 0x72, 0x50, 0x65, 0x72,
1091 0x69, 0x6f, 0x64, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x41, 0x4c, 0x45, 0x4e, 0x44, 0x41, 0x52, 0x5f,
1092 0x50, 0x45, 0x52, 0x49, 0x4f, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
1093 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x01, 0x12,
1094 0x0b, 0x0a, 0x07, 0x51, 0x55, 0x41, 0x52, 0x54, 0x45, 0x52, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04,
1095 0x59, 0x45, 0x41, 0x52, 0x10, 0x03, 0x42, 0x70, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
1096 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69,
1097 0x6e, 0x67, 0x2e, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
1098 0x61, 0x31, 0x50, 0x01, 0x5a, 0x42, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
1099 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e,
1100 0x67, 0x2f, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62,
1101 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x73, 0x70, 0x62, 0x3b, 0x62,
1102 0x75, 0x64, 0x67, 0x65, 0x74, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
1103 }
1104
1105 var (
1106 file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescOnce sync.Once
1107 file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescData = file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDesc
1108 )
1109
1110 func file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescGZIP() []byte {
1111 file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescOnce.Do(func() {
1112 file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescData)
1113 })
1114 return file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDescData
1115 }
1116
1117 var file_google_cloud_billing_budgets_v1beta1_budget_model_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
1118 var file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
1119 var file_google_cloud_billing_budgets_v1beta1_budget_model_proto_goTypes = []any{
1120 (CalendarPeriod)(0), // 0: google.cloud.billing.budgets.v1beta1.CalendarPeriod
1121 (ThresholdRule_Basis)(0), // 1: google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis
1122 (Filter_CreditTypesTreatment)(0), // 2: google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment
1123 (*Budget)(nil), // 3: google.cloud.billing.budgets.v1beta1.Budget
1124 (*BudgetAmount)(nil), // 4: google.cloud.billing.budgets.v1beta1.BudgetAmount
1125 (*LastPeriodAmount)(nil), // 5: google.cloud.billing.budgets.v1beta1.LastPeriodAmount
1126 (*ThresholdRule)(nil), // 6: google.cloud.billing.budgets.v1beta1.ThresholdRule
1127 (*AllUpdatesRule)(nil), // 7: google.cloud.billing.budgets.v1beta1.AllUpdatesRule
1128 (*Filter)(nil), // 8: google.cloud.billing.budgets.v1beta1.Filter
1129 (*CustomPeriod)(nil), // 9: google.cloud.billing.budgets.v1beta1.CustomPeriod
1130 nil, // 10: google.cloud.billing.budgets.v1beta1.Filter.LabelsEntry
1131 (*money.Money)(nil), // 11: google.type.Money
1132 (*date.Date)(nil), // 12: google.type.Date
1133 (*structpb.ListValue)(nil), // 13: google.protobuf.ListValue
1134 }
1135 var file_google_cloud_billing_budgets_v1beta1_budget_model_proto_depIdxs = []int32{
1136 8, // 0: google.cloud.billing.budgets.v1beta1.Budget.budget_filter:type_name -> google.cloud.billing.budgets.v1beta1.Filter
1137 4, // 1: google.cloud.billing.budgets.v1beta1.Budget.amount:type_name -> google.cloud.billing.budgets.v1beta1.BudgetAmount
1138 6, // 2: google.cloud.billing.budgets.v1beta1.Budget.threshold_rules:type_name -> google.cloud.billing.budgets.v1beta1.ThresholdRule
1139 7, // 3: google.cloud.billing.budgets.v1beta1.Budget.all_updates_rule:type_name -> google.cloud.billing.budgets.v1beta1.AllUpdatesRule
1140 11, // 4: google.cloud.billing.budgets.v1beta1.BudgetAmount.specified_amount:type_name -> google.type.Money
1141 5, // 5: google.cloud.billing.budgets.v1beta1.BudgetAmount.last_period_amount:type_name -> google.cloud.billing.budgets.v1beta1.LastPeriodAmount
1142 1, // 6: google.cloud.billing.budgets.v1beta1.ThresholdRule.spend_basis:type_name -> google.cloud.billing.budgets.v1beta1.ThresholdRule.Basis
1143 2, // 7: google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment:type_name -> google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment
1144 10, // 8: google.cloud.billing.budgets.v1beta1.Filter.labels:type_name -> google.cloud.billing.budgets.v1beta1.Filter.LabelsEntry
1145 0, // 9: google.cloud.billing.budgets.v1beta1.Filter.calendar_period:type_name -> google.cloud.billing.budgets.v1beta1.CalendarPeriod
1146 9, // 10: google.cloud.billing.budgets.v1beta1.Filter.custom_period:type_name -> google.cloud.billing.budgets.v1beta1.CustomPeriod
1147 12, // 11: google.cloud.billing.budgets.v1beta1.CustomPeriod.start_date:type_name -> google.type.Date
1148 12, // 12: google.cloud.billing.budgets.v1beta1.CustomPeriod.end_date:type_name -> google.type.Date
1149 13, // 13: google.cloud.billing.budgets.v1beta1.Filter.LabelsEntry.value:type_name -> google.protobuf.ListValue
1150 14, // [14:14] is the sub-list for method output_type
1151 14, // [14:14] is the sub-list for method input_type
1152 14, // [14:14] is the sub-list for extension type_name
1153 14, // [14:14] is the sub-list for extension extendee
1154 0, // [0:14] is the sub-list for field type_name
1155 }
1156
1157 func init() { file_google_cloud_billing_budgets_v1beta1_budget_model_proto_init() }
1158 func file_google_cloud_billing_budgets_v1beta1_budget_model_proto_init() {
1159 if File_google_cloud_billing_budgets_v1beta1_budget_model_proto != nil {
1160 return
1161 }
1162 file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[1].OneofWrappers = []any{
1163 (*BudgetAmount_SpecifiedAmount)(nil),
1164 (*BudgetAmount_LastPeriodAmount)(nil),
1165 }
1166 file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes[5].OneofWrappers = []any{
1167 (*Filter_CalendarPeriod)(nil),
1168 (*Filter_CustomPeriod)(nil),
1169 }
1170 type x struct{}
1171 out := protoimpl.TypeBuilder{
1172 File: protoimpl.DescBuilder{
1173 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1174 RawDescriptor: file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDesc,
1175 NumEnums: 3,
1176 NumMessages: 8,
1177 NumExtensions: 0,
1178 NumServices: 0,
1179 },
1180 GoTypes: file_google_cloud_billing_budgets_v1beta1_budget_model_proto_goTypes,
1181 DependencyIndexes: file_google_cloud_billing_budgets_v1beta1_budget_model_proto_depIdxs,
1182 EnumInfos: file_google_cloud_billing_budgets_v1beta1_budget_model_proto_enumTypes,
1183 MessageInfos: file_google_cloud_billing_budgets_v1beta1_budget_model_proto_msgTypes,
1184 }.Build()
1185 File_google_cloud_billing_budgets_v1beta1_budget_model_proto = out.File
1186 file_google_cloud_billing_budgets_v1beta1_budget_model_proto_rawDesc = nil
1187 file_google_cloud_billing_budgets_v1beta1_budget_model_proto_goTypes = nil
1188 file_google_cloud_billing_budgets_v1beta1_budget_model_proto_depIdxs = nil
1189 }