1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/cloud/billing/v1/cloud_billing.proto
5 Package billing is a generated protocol buffer package.
7 It is generated from these files:
8 google/cloud/billing/v1/cloud_billing.proto
10 It has these top-level messages:
13 GetBillingAccountRequest
14 ListBillingAccountsRequest
15 ListBillingAccountsResponse
16 ListProjectBillingInfoRequest
17 ListProjectBillingInfoResponse
18 GetProjectBillingInfoRequest
19 UpdateProjectBillingInfoRequest
23 import proto "github.com/golang/protobuf/proto"
26 import _ "google.golang.org/genproto/googleapis/api/annotations"
29 context "golang.org/x/net/context"
30 grpc "google.golang.org/grpc"
33 // Reference imports to suppress errors if they are not otherwise used.
38 // This is a compile-time assertion to ensure that this generated file
39 // is compatible with the proto package it is being compiled against.
40 // A compilation error at this line likely means your copy of the
41 // proto package needs to be updated.
42 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
44 // A billing account in [Google Cloud
45 // Console](https://console.cloud.google.com/). You can assign a billing account
46 // to one or more projects.
47 type BillingAccount struct {
48 // The resource name of the billing account. The resource name has the form
49 // `billingAccounts/{billing_account_id}`. For example,
50 // `billingAccounts/012345-567890-ABCDEF` would be the resource name for
51 // billing account `012345-567890-ABCDEF`.
52 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
53 // True if the billing account is open, and will therefore be charged for any
54 // usage on associated projects. False if the billing account is closed, and
55 // therefore projects associated with it will be unable to use paid services.
56 Open bool `protobuf:"varint,2,opt,name=open" json:"open,omitempty"`
57 // The display name given to the billing account, such as `My Billing
58 // Account`. This name is displayed in the Google Cloud Console.
59 DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
62 func (m *BillingAccount) Reset() { *m = BillingAccount{} }
63 func (m *BillingAccount) String() string { return proto.CompactTextString(m) }
64 func (*BillingAccount) ProtoMessage() {}
65 func (*BillingAccount) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
67 func (m *BillingAccount) GetName() string {
74 func (m *BillingAccount) GetOpen() bool {
81 func (m *BillingAccount) GetDisplayName() string {
88 // Encapsulation of billing information for a Cloud Console project. A project
89 // has at most one associated billing account at a time (but a billing account
90 // can be assigned to multiple projects).
91 type ProjectBillingInfo struct {
92 // The resource name for the `ProjectBillingInfo`; has the form
93 // `projects/{project_id}/billingInfo`. For example, the resource name for the
94 // billing information for project `tokyo-rain-123` would be
95 // `projects/tokyo-rain-123/billingInfo`. This field is read-only.
96 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
97 // The ID of the project that this `ProjectBillingInfo` represents, such as
98 // `tokyo-rain-123`. This is a convenience field so that you don't need to
99 // parse the `name` field to obtain a project ID. This field is read-only.
100 ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
101 // The resource name of the billing account associated with the project, if
102 // any. For example, `billingAccounts/012345-567890-ABCDEF`.
103 BillingAccountName string `protobuf:"bytes,3,opt,name=billing_account_name,json=billingAccountName" json:"billing_account_name,omitempty"`
104 // True if the project is associated with an open billing account, to which
105 // usage on the project is charged. False if the project is associated with a
106 // closed billing account, or no billing account at all, and therefore cannot
107 // use paid services. This field is read-only.
108 BillingEnabled bool `protobuf:"varint,4,opt,name=billing_enabled,json=billingEnabled" json:"billing_enabled,omitempty"`
111 func (m *ProjectBillingInfo) Reset() { *m = ProjectBillingInfo{} }
112 func (m *ProjectBillingInfo) String() string { return proto.CompactTextString(m) }
113 func (*ProjectBillingInfo) ProtoMessage() {}
114 func (*ProjectBillingInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
116 func (m *ProjectBillingInfo) GetName() string {
123 func (m *ProjectBillingInfo) GetProjectId() string {
130 func (m *ProjectBillingInfo) GetBillingAccountName() string {
132 return m.BillingAccountName
137 func (m *ProjectBillingInfo) GetBillingEnabled() bool {
139 return m.BillingEnabled
144 // Request message for `GetBillingAccount`.
145 type GetBillingAccountRequest struct {
146 // The resource name of the billing account to retrieve. For example,
147 // `billingAccounts/012345-567890-ABCDEF`.
148 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
151 func (m *GetBillingAccountRequest) Reset() { *m = GetBillingAccountRequest{} }
152 func (m *GetBillingAccountRequest) String() string { return proto.CompactTextString(m) }
153 func (*GetBillingAccountRequest) ProtoMessage() {}
154 func (*GetBillingAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
156 func (m *GetBillingAccountRequest) GetName() string {
163 // Request message for `ListBillingAccounts`.
164 type ListBillingAccountsRequest struct {
165 // Requested page size. The maximum page size is 100; this is also the
167 PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
168 // A token identifying a page of results to return. This should be a
169 // `next_page_token` value returned from a previous `ListBillingAccounts`
170 // call. If unspecified, the first page of results is returned.
171 PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
174 func (m *ListBillingAccountsRequest) Reset() { *m = ListBillingAccountsRequest{} }
175 func (m *ListBillingAccountsRequest) String() string { return proto.CompactTextString(m) }
176 func (*ListBillingAccountsRequest) ProtoMessage() {}
177 func (*ListBillingAccountsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
179 func (m *ListBillingAccountsRequest) GetPageSize() int32 {
186 func (m *ListBillingAccountsRequest) GetPageToken() string {
193 // Response message for `ListBillingAccounts`.
194 type ListBillingAccountsResponse struct {
195 // A list of billing accounts.
196 BillingAccounts []*BillingAccount `protobuf:"bytes,1,rep,name=billing_accounts,json=billingAccounts" json:"billing_accounts,omitempty"`
197 // A token to retrieve the next page of results. To retrieve the next page,
198 // call `ListBillingAccounts` again with the `page_token` field set to this
199 // value. This field is empty if there are no more results to retrieve.
200 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
203 func (m *ListBillingAccountsResponse) Reset() { *m = ListBillingAccountsResponse{} }
204 func (m *ListBillingAccountsResponse) String() string { return proto.CompactTextString(m) }
205 func (*ListBillingAccountsResponse) ProtoMessage() {}
206 func (*ListBillingAccountsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
208 func (m *ListBillingAccountsResponse) GetBillingAccounts() []*BillingAccount {
210 return m.BillingAccounts
215 func (m *ListBillingAccountsResponse) GetNextPageToken() string {
217 return m.NextPageToken
222 // Request message for `ListProjectBillingInfo`.
223 type ListProjectBillingInfoRequest struct {
224 // The resource name of the billing account associated with the projects that
225 // you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
226 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
227 // Requested page size. The maximum page size is 100; this is also the
229 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
230 // A token identifying a page of results to be returned. This should be a
231 // `next_page_token` value returned from a previous `ListProjectBillingInfo`
232 // call. If unspecified, the first page of results is returned.
233 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
236 func (m *ListProjectBillingInfoRequest) Reset() { *m = ListProjectBillingInfoRequest{} }
237 func (m *ListProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) }
238 func (*ListProjectBillingInfoRequest) ProtoMessage() {}
239 func (*ListProjectBillingInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
241 func (m *ListProjectBillingInfoRequest) GetName() string {
248 func (m *ListProjectBillingInfoRequest) GetPageSize() int32 {
255 func (m *ListProjectBillingInfoRequest) GetPageToken() string {
262 // Request message for `ListProjectBillingInfoResponse`.
263 type ListProjectBillingInfoResponse struct {
264 // A list of `ProjectBillingInfo` resources representing the projects
265 // associated with the billing account.
266 ProjectBillingInfo []*ProjectBillingInfo `protobuf:"bytes,1,rep,name=project_billing_info,json=projectBillingInfo" json:"project_billing_info,omitempty"`
267 // A token to retrieve the next page of results. To retrieve the next page,
268 // call `ListProjectBillingInfo` again with the `page_token` field set to this
269 // value. This field is empty if there are no more results to retrieve.
270 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
273 func (m *ListProjectBillingInfoResponse) Reset() { *m = ListProjectBillingInfoResponse{} }
274 func (m *ListProjectBillingInfoResponse) String() string { return proto.CompactTextString(m) }
275 func (*ListProjectBillingInfoResponse) ProtoMessage() {}
276 func (*ListProjectBillingInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
278 func (m *ListProjectBillingInfoResponse) GetProjectBillingInfo() []*ProjectBillingInfo {
280 return m.ProjectBillingInfo
285 func (m *ListProjectBillingInfoResponse) GetNextPageToken() string {
287 return m.NextPageToken
292 // Request message for `GetProjectBillingInfo`.
293 type GetProjectBillingInfoRequest struct {
294 // The resource name of the project for which billing information is
295 // retrieved. For example, `projects/tokyo-rain-123`.
296 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
299 func (m *GetProjectBillingInfoRequest) Reset() { *m = GetProjectBillingInfoRequest{} }
300 func (m *GetProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) }
301 func (*GetProjectBillingInfoRequest) ProtoMessage() {}
302 func (*GetProjectBillingInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
304 func (m *GetProjectBillingInfoRequest) GetName() string {
311 // Request message for `UpdateProjectBillingInfo`.
312 type UpdateProjectBillingInfoRequest struct {
313 // The resource name of the project associated with the billing information
314 // that you want to update. For example, `projects/tokyo-rain-123`.
315 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
316 // The new billing information for the project. Read-only fields are ignored;
317 // thus, you may leave empty all fields except `billing_account_name`.
318 ProjectBillingInfo *ProjectBillingInfo `protobuf:"bytes,2,opt,name=project_billing_info,json=projectBillingInfo" json:"project_billing_info,omitempty"`
321 func (m *UpdateProjectBillingInfoRequest) Reset() { *m = UpdateProjectBillingInfoRequest{} }
322 func (m *UpdateProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) }
323 func (*UpdateProjectBillingInfoRequest) ProtoMessage() {}
324 func (*UpdateProjectBillingInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
326 func (m *UpdateProjectBillingInfoRequest) GetName() string {
333 func (m *UpdateProjectBillingInfoRequest) GetProjectBillingInfo() *ProjectBillingInfo {
335 return m.ProjectBillingInfo
341 proto.RegisterType((*BillingAccount)(nil), "google.cloud.billing.v1.BillingAccount")
342 proto.RegisterType((*ProjectBillingInfo)(nil), "google.cloud.billing.v1.ProjectBillingInfo")
343 proto.RegisterType((*GetBillingAccountRequest)(nil), "google.cloud.billing.v1.GetBillingAccountRequest")
344 proto.RegisterType((*ListBillingAccountsRequest)(nil), "google.cloud.billing.v1.ListBillingAccountsRequest")
345 proto.RegisterType((*ListBillingAccountsResponse)(nil), "google.cloud.billing.v1.ListBillingAccountsResponse")
346 proto.RegisterType((*ListProjectBillingInfoRequest)(nil), "google.cloud.billing.v1.ListProjectBillingInfoRequest")
347 proto.RegisterType((*ListProjectBillingInfoResponse)(nil), "google.cloud.billing.v1.ListProjectBillingInfoResponse")
348 proto.RegisterType((*GetProjectBillingInfoRequest)(nil), "google.cloud.billing.v1.GetProjectBillingInfoRequest")
349 proto.RegisterType((*UpdateProjectBillingInfoRequest)(nil), "google.cloud.billing.v1.UpdateProjectBillingInfoRequest")
352 // Reference imports to suppress errors if they are not otherwise used.
353 var _ context.Context
354 var _ grpc.ClientConn
356 // This is a compile-time assertion to ensure that this generated file
357 // is compatible with the grpc package it is being compiled against.
358 const _ = grpc.SupportPackageIsVersion4
360 // Client API for CloudBilling service
362 type CloudBillingClient interface {
363 // Gets information about a billing account. The current authenticated user
364 // must be an [owner of the billing
365 // account](https://support.google.com/cloud/answer/4430947).
366 GetBillingAccount(ctx context.Context, in *GetBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error)
367 // Lists the billing accounts that the current authenticated user
368 // [owns](https://support.google.com/cloud/answer/4430947).
369 ListBillingAccounts(ctx context.Context, in *ListBillingAccountsRequest, opts ...grpc.CallOption) (*ListBillingAccountsResponse, error)
370 // Lists the projects associated with a billing account. The current
371 // authenticated user must be an [owner of the billing
372 // account](https://support.google.com/cloud/answer/4430947).
373 ListProjectBillingInfo(ctx context.Context, in *ListProjectBillingInfoRequest, opts ...grpc.CallOption) (*ListProjectBillingInfoResponse, error)
374 // Gets the billing information for a project. The current authenticated user
375 // must have [permission to view the
376 // project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
378 GetProjectBillingInfo(ctx context.Context, in *GetProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error)
379 // Sets or updates the billing account associated with a project. You specify
380 // the new billing account by setting the `billing_account_name` in the
381 // `ProjectBillingInfo` resource to the resource name of a billing account.
382 // Associating a project with an open billing account enables billing on the
383 // project and allows charges for resource usage. If the project already had a
384 // billing account, this method changes the billing account used for resource
387 // *Note:* Incurred charges that have not yet been reported in the transaction
388 // history of the Google Cloud Console may be billed to the new billing
389 // account, even if the charge occurred before the new billing account was
390 // assigned to the project.
392 // The current authenticated user must have ownership privileges for both the
393 // [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
394 // ) and the [billing
395 // account](https://support.google.com/cloud/answer/4430947).
397 // You can disable billing on the project by setting the
398 // `billing_account_name` field to empty. This action disassociates the
399 // current billing account from the project. Any billable activity of your
400 // in-use services will stop, and your application could stop functioning as
401 // expected. Any unbilled charges to date will be billed to the previously
402 // associated account. The current authenticated user must be either an owner
403 // of the project or an owner of the billing account for the project.
405 // Note that associating a project with a *closed* billing account will have
406 // much the same effect as disabling billing on the project: any paid
407 // resources used by the project will be shut down. Thus, unless you wish to
408 // disable billing, you should always call this method with the name of an
409 // *open* billing account.
410 UpdateProjectBillingInfo(ctx context.Context, in *UpdateProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error)
413 type cloudBillingClient struct {
417 func NewCloudBillingClient(cc *grpc.ClientConn) CloudBillingClient {
418 return &cloudBillingClient{cc}
421 func (c *cloudBillingClient) GetBillingAccount(ctx context.Context, in *GetBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error) {
422 out := new(BillingAccount)
423 err := grpc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/GetBillingAccount", in, out, c.cc, opts...)
430 func (c *cloudBillingClient) ListBillingAccounts(ctx context.Context, in *ListBillingAccountsRequest, opts ...grpc.CallOption) (*ListBillingAccountsResponse, error) {
431 out := new(ListBillingAccountsResponse)
432 err := grpc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/ListBillingAccounts", in, out, c.cc, opts...)
439 func (c *cloudBillingClient) ListProjectBillingInfo(ctx context.Context, in *ListProjectBillingInfoRequest, opts ...grpc.CallOption) (*ListProjectBillingInfoResponse, error) {
440 out := new(ListProjectBillingInfoResponse)
441 err := grpc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/ListProjectBillingInfo", in, out, c.cc, opts...)
448 func (c *cloudBillingClient) GetProjectBillingInfo(ctx context.Context, in *GetProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error) {
449 out := new(ProjectBillingInfo)
450 err := grpc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/GetProjectBillingInfo", in, out, c.cc, opts...)
457 func (c *cloudBillingClient) UpdateProjectBillingInfo(ctx context.Context, in *UpdateProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error) {
458 out := new(ProjectBillingInfo)
459 err := grpc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/UpdateProjectBillingInfo", in, out, c.cc, opts...)
466 // Server API for CloudBilling service
468 type CloudBillingServer interface {
469 // Gets information about a billing account. The current authenticated user
470 // must be an [owner of the billing
471 // account](https://support.google.com/cloud/answer/4430947).
472 GetBillingAccount(context.Context, *GetBillingAccountRequest) (*BillingAccount, error)
473 // Lists the billing accounts that the current authenticated user
474 // [owns](https://support.google.com/cloud/answer/4430947).
475 ListBillingAccounts(context.Context, *ListBillingAccountsRequest) (*ListBillingAccountsResponse, error)
476 // Lists the projects associated with a billing account. The current
477 // authenticated user must be an [owner of the billing
478 // account](https://support.google.com/cloud/answer/4430947).
479 ListProjectBillingInfo(context.Context, *ListProjectBillingInfoRequest) (*ListProjectBillingInfoResponse, error)
480 // Gets the billing information for a project. The current authenticated user
481 // must have [permission to view the
482 // project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
484 GetProjectBillingInfo(context.Context, *GetProjectBillingInfoRequest) (*ProjectBillingInfo, error)
485 // Sets or updates the billing account associated with a project. You specify
486 // the new billing account by setting the `billing_account_name` in the
487 // `ProjectBillingInfo` resource to the resource name of a billing account.
488 // Associating a project with an open billing account enables billing on the
489 // project and allows charges for resource usage. If the project already had a
490 // billing account, this method changes the billing account used for resource
493 // *Note:* Incurred charges that have not yet been reported in the transaction
494 // history of the Google Cloud Console may be billed to the new billing
495 // account, even if the charge occurred before the new billing account was
496 // assigned to the project.
498 // The current authenticated user must have ownership privileges for both the
499 // [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
500 // ) and the [billing
501 // account](https://support.google.com/cloud/answer/4430947).
503 // You can disable billing on the project by setting the
504 // `billing_account_name` field to empty. This action disassociates the
505 // current billing account from the project. Any billable activity of your
506 // in-use services will stop, and your application could stop functioning as
507 // expected. Any unbilled charges to date will be billed to the previously
508 // associated account. The current authenticated user must be either an owner
509 // of the project or an owner of the billing account for the project.
511 // Note that associating a project with a *closed* billing account will have
512 // much the same effect as disabling billing on the project: any paid
513 // resources used by the project will be shut down. Thus, unless you wish to
514 // disable billing, you should always call this method with the name of an
515 // *open* billing account.
516 UpdateProjectBillingInfo(context.Context, *UpdateProjectBillingInfoRequest) (*ProjectBillingInfo, error)
519 func RegisterCloudBillingServer(s *grpc.Server, srv CloudBillingServer) {
520 s.RegisterService(&_CloudBilling_serviceDesc, srv)
523 func _CloudBilling_GetBillingAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
524 in := new(GetBillingAccountRequest)
525 if err := dec(in); err != nil {
528 if interceptor == nil {
529 return srv.(CloudBillingServer).GetBillingAccount(ctx, in)
531 info := &grpc.UnaryServerInfo{
533 FullMethod: "/google.cloud.billing.v1.CloudBilling/GetBillingAccount",
535 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
536 return srv.(CloudBillingServer).GetBillingAccount(ctx, req.(*GetBillingAccountRequest))
538 return interceptor(ctx, in, info, handler)
541 func _CloudBilling_ListBillingAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
542 in := new(ListBillingAccountsRequest)
543 if err := dec(in); err != nil {
546 if interceptor == nil {
547 return srv.(CloudBillingServer).ListBillingAccounts(ctx, in)
549 info := &grpc.UnaryServerInfo{
551 FullMethod: "/google.cloud.billing.v1.CloudBilling/ListBillingAccounts",
553 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
554 return srv.(CloudBillingServer).ListBillingAccounts(ctx, req.(*ListBillingAccountsRequest))
556 return interceptor(ctx, in, info, handler)
559 func _CloudBilling_ListProjectBillingInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
560 in := new(ListProjectBillingInfoRequest)
561 if err := dec(in); err != nil {
564 if interceptor == nil {
565 return srv.(CloudBillingServer).ListProjectBillingInfo(ctx, in)
567 info := &grpc.UnaryServerInfo{
569 FullMethod: "/google.cloud.billing.v1.CloudBilling/ListProjectBillingInfo",
571 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
572 return srv.(CloudBillingServer).ListProjectBillingInfo(ctx, req.(*ListProjectBillingInfoRequest))
574 return interceptor(ctx, in, info, handler)
577 func _CloudBilling_GetProjectBillingInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
578 in := new(GetProjectBillingInfoRequest)
579 if err := dec(in); err != nil {
582 if interceptor == nil {
583 return srv.(CloudBillingServer).GetProjectBillingInfo(ctx, in)
585 info := &grpc.UnaryServerInfo{
587 FullMethod: "/google.cloud.billing.v1.CloudBilling/GetProjectBillingInfo",
589 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
590 return srv.(CloudBillingServer).GetProjectBillingInfo(ctx, req.(*GetProjectBillingInfoRequest))
592 return interceptor(ctx, in, info, handler)
595 func _CloudBilling_UpdateProjectBillingInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
596 in := new(UpdateProjectBillingInfoRequest)
597 if err := dec(in); err != nil {
600 if interceptor == nil {
601 return srv.(CloudBillingServer).UpdateProjectBillingInfo(ctx, in)
603 info := &grpc.UnaryServerInfo{
605 FullMethod: "/google.cloud.billing.v1.CloudBilling/UpdateProjectBillingInfo",
607 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
608 return srv.(CloudBillingServer).UpdateProjectBillingInfo(ctx, req.(*UpdateProjectBillingInfoRequest))
610 return interceptor(ctx, in, info, handler)
613 var _CloudBilling_serviceDesc = grpc.ServiceDesc{
614 ServiceName: "google.cloud.billing.v1.CloudBilling",
615 HandlerType: (*CloudBillingServer)(nil),
616 Methods: []grpc.MethodDesc{
618 MethodName: "GetBillingAccount",
619 Handler: _CloudBilling_GetBillingAccount_Handler,
622 MethodName: "ListBillingAccounts",
623 Handler: _CloudBilling_ListBillingAccounts_Handler,
626 MethodName: "ListProjectBillingInfo",
627 Handler: _CloudBilling_ListProjectBillingInfo_Handler,
630 MethodName: "GetProjectBillingInfo",
631 Handler: _CloudBilling_GetProjectBillingInfo_Handler,
634 MethodName: "UpdateProjectBillingInfo",
635 Handler: _CloudBilling_UpdateProjectBillingInfo_Handler,
638 Streams: []grpc.StreamDesc{},
639 Metadata: "google/cloud/billing/v1/cloud_billing.proto",
642 func init() { proto.RegisterFile("google/cloud/billing/v1/cloud_billing.proto", fileDescriptor0) }
644 var fileDescriptor0 = []byte{
645 // 667 bytes of a gzipped FileDescriptorProto
646 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x4e, 0xd4, 0x40,
647 0x14, 0xce, 0x00, 0x12, 0xf6, 0x80, 0x20, 0x03, 0xe8, 0x66, 0x17, 0x10, 0xea, 0x0f, 0x28, 0xb1,
648 0x15, 0xf0, 0xdf, 0xa8, 0x11, 0x63, 0x08, 0x89, 0x31, 0x9b, 0xaa, 0x89, 0xd1, 0x98, 0x66, 0x76,
649 0x3b, 0x34, 0xd5, 0x32, 0x53, 0x77, 0x0a, 0x51, 0x8c, 0x37, 0xbe, 0x82, 0x7a, 0xe1, 0x85, 0x37,
650 0x5e, 0xe8, 0x2b, 0x78, 0xed, 0x2b, 0xf8, 0x0a, 0xde, 0xfb, 0x0a, 0x66, 0xa6, 0x53, 0x65, 0xbb,
651 0x9d, 0x85, 0xc6, 0xbb, 0xe6, 0x9b, 0x73, 0xfa, 0x7d, 0xe7, 0x9b, 0xef, 0x6c, 0x17, 0x96, 0x02,
652 0xce, 0x83, 0x88, 0x3a, 0xad, 0x88, 0x6f, 0xfb, 0x4e, 0x33, 0x8c, 0xa2, 0x90, 0x05, 0xce, 0xce,
653 0x72, 0x0a, 0x78, 0x1a, 0xb0, 0xe3, 0x36, 0x4f, 0x38, 0x3e, 0x96, 0x16, 0xdb, 0xea, 0xcc, 0xce,
654 0xce, 0x76, 0x96, 0x6b, 0xd3, 0xfa, 0x2d, 0x24, 0x0e, 0x1d, 0xc2, 0x18, 0x4f, 0x48, 0x12, 0x72,
655 0x26, 0xd2, 0x36, 0xeb, 0x29, 0x8c, 0xae, 0xa5, 0xb5, 0xb7, 0x5b, 0x2d, 0xbe, 0xcd, 0x12, 0x8c,
656 0x61, 0x80, 0x91, 0x2d, 0x5a, 0x45, 0x73, 0x68, 0xb1, 0xe2, 0xaa, 0x67, 0x89, 0xf1, 0x98, 0xb2,
657 0x6a, 0xdf, 0x1c, 0x5a, 0x1c, 0x72, 0xd5, 0x33, 0x9e, 0x87, 0x11, 0x3f, 0x14, 0x71, 0x44, 0x5e,
658 0x7b, 0xaa, 0xbe, 0x5f, 0xd5, 0x0f, 0x6b, 0xec, 0x3e, 0xd9, 0xa2, 0xd6, 0x17, 0x04, 0xb8, 0xd1,
659 0xe6, 0xcf, 0x69, 0x2b, 0xd1, 0x24, 0x1b, 0x6c, 0x93, 0x17, 0x32, 0xcc, 0x00, 0xc4, 0x69, 0xa5,
660 0x17, 0xfa, 0x8a, 0xa7, 0xe2, 0x56, 0x34, 0xb2, 0xe1, 0xe3, 0xf3, 0x30, 0xa9, 0x47, 0xf2, 0x48,
661 0xaa, 0x73, 0x2f, 0x29, 0x6e, 0x76, 0x8c, 0x20, 0xb9, 0xf1, 0x02, 0x8c, 0x65, 0x1d, 0x94, 0x91,
662 0x66, 0x44, 0xfd, 0xea, 0x80, 0x52, 0x3f, 0xaa, 0xe1, 0xbb, 0x29, 0x6a, 0xd9, 0x50, 0x5d, 0xa7,
663 0x49, 0xa7, 0x09, 0x2e, 0x7d, 0xb9, 0x4d, 0x45, 0xa1, 0x17, 0xd6, 0x63, 0xa8, 0xdd, 0x0b, 0x45,
664 0xae, 0x41, 0x64, 0x1d, 0x75, 0xa8, 0xc4, 0x24, 0xa0, 0x9e, 0x08, 0x77, 0xd3, 0xb6, 0x43, 0xee,
665 0x90, 0x04, 0x1e, 0x84, 0xbb, 0xe9, 0x90, 0xf2, 0x30, 0xe1, 0x2f, 0xb4, 0x99, 0x72, 0x48, 0x12,
666 0xd0, 0x87, 0x12, 0xb0, 0x3e, 0x21, 0xa8, 0x17, 0xbe, 0x5a, 0xc4, 0x9c, 0x09, 0x8a, 0x5d, 0x38,
667 0x92, 0x33, 0x41, 0x54, 0xd1, 0x5c, 0xff, 0xe2, 0xf0, 0xca, 0x82, 0x6d, 0xb8, 0x7d, 0x3b, 0x37,
668 0xd7, 0x58, 0xa7, 0x53, 0x02, 0x9f, 0x86, 0x31, 0x46, 0x5f, 0x25, 0x5e, 0x97, 0xae, 0xc3, 0x12,
669 0x6e, 0xfc, 0xd5, 0xc6, 0x61, 0x46, 0x4a, 0xeb, 0xbe, 0xcd, 0x1e, 0x56, 0x75, 0x9a, 0xd1, 0xd7,
670 0xd3, 0x8c, 0xfe, 0xbc, 0x19, 0xdf, 0x10, 0xcc, 0x9a, 0x18, 0xb5, 0x1f, 0xcf, 0x60, 0x32, 0xcb,
671 0x4c, 0xe6, 0x4b, 0xc8, 0x36, 0xb9, 0xf6, 0x64, 0xc9, 0xe8, 0x49, 0xc1, 0x2b, 0x71, 0xdc, 0x1d,
672 0xd3, 0x83, 0x5a, 0xb3, 0x02, 0xd3, 0xeb, 0xb4, 0x9c, 0x33, 0xd6, 0x07, 0x04, 0xc7, 0x1f, 0xc5,
673 0x3e, 0x49, 0x68, 0x39, 0x47, 0x4d, 0x23, 0x4b, 0x61, 0xff, 0x3f, 0xf2, 0xca, 0xef, 0x41, 0x18,
674 0xb9, 0x23, 0x7b, 0x35, 0x88, 0x3f, 0x22, 0x18, 0xef, 0xda, 0x0e, 0xbc, 0x6c, 0xe4, 0x31, 0x6d,
675 0x52, 0xed, 0xa0, 0x09, 0xb5, 0x4e, 0xbe, 0xfb, 0xf9, 0xeb, 0x7d, 0xdf, 0x2c, 0x9e, 0x96, 0x3f,
676 0x74, 0x6f, 0xe4, 0xd0, 0x37, 0x72, 0x99, 0x75, 0xce, 0xbe, 0xc5, 0x9f, 0x11, 0x4c, 0x14, 0xac,
677 0x0a, 0x5e, 0x35, 0xd2, 0x98, 0x77, 0xb6, 0x76, 0xa1, 0x5c, 0x53, 0x9a, 0x3e, 0xab, 0xae, 0x84,
678 0x4e, 0xe1, 0x09, 0x29, 0x34, 0xbf, 0x56, 0xdf, 0x11, 0x1c, 0x2d, 0x4e, 0x2f, 0xbe, 0xd4, 0x93,
679 0xcd, 0x18, 0x87, 0xda, 0xe5, 0xd2, 0x7d, 0x5a, 0xe8, 0x39, 0x25, 0x74, 0x01, 0x9f, 0xea, 0xe5,
680 0xa8, 0xa3, 0xd3, 0x20, 0xf0, 0x57, 0x04, 0x53, 0x85, 0x79, 0xc6, 0x17, 0x7b, 0x5d, 0xbb, 0x59,
681 0x78, 0x99, 0x54, 0x5a, 0x67, 0x94, 0xd8, 0x13, 0x78, 0xfe, 0x9f, 0xd8, 0x4c, 0x99, 0x54, 0xd9,
682 0xdc, 0x23, 0xe7, 0x07, 0x82, 0xaa, 0x69, 0x87, 0xf0, 0x15, 0x23, 0xe9, 0x3e, 0x6b, 0x57, 0x4e,
683 0xee, 0x2d, 0x25, 0xf7, 0x6a, 0x6d, 0x7f, 0xb9, 0xd7, 0x0a, 0x17, 0x77, 0xad, 0x0d, 0xf5, 0x16,
684 0xdf, 0x32, 0x51, 0xae, 0x8d, 0xef, 0xdd, 0xc6, 0x86, 0xfc, 0x62, 0x37, 0xd0, 0x93, 0x9b, 0xba,
685 0x3a, 0xe0, 0x11, 0x61, 0x81, 0xcd, 0xdb, 0x81, 0x13, 0x50, 0xa6, 0xbe, 0xe7, 0x4e, 0x7a, 0x44,
686 0xe2, 0x50, 0x74, 0xfd, 0x6d, 0xb8, 0xae, 0x1f, 0x9b, 0x83, 0xaa, 0x74, 0xf5, 0x4f, 0x00, 0x00,
687 0x00, 0xff, 0xff, 0xc0, 0x01, 0x24, 0x32, 0x60, 0x08, 0x00, 0x00,