| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/billing/v1/cloud_billing.proto |
| |
| package billing |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| v1 "google.golang.org/genproto/googleapis/iam/v1" |
| field_mask "google.golang.org/genproto/protobuf/field_mask" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // A billing account in [GCP Console](https://console.cloud.google.com/). |
| // You can assign a billing account to one or more projects. |
| type BillingAccount struct { |
| // The resource name of the billing account. The resource name has the form |
| // `billingAccounts/{billing_account_id}`. For example, |
| // `billingAccounts/012345-567890-ABCDEF` would be the resource name for |
| // billing account `012345-567890-ABCDEF`. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Output only. True if the billing account is open, and will therefore be charged for any |
| // usage on associated projects. False if the billing account is closed, and |
| // therefore projects associated with it will be unable to use paid services. |
| Open bool `protobuf:"varint,2,opt,name=open,proto3" json:"open,omitempty"` |
| // The display name given to the billing account, such as `My Billing |
| // Account`. This name is displayed in the GCP Console. |
| DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| // If this account is a |
| // [subaccount](https://cloud.google.com/billing/docs/concepts), then this |
| // will be the resource name of the master billing account that it is being |
| // resold through. |
| // Otherwise this will be empty. |
| MasterBillingAccount string `protobuf:"bytes,4,opt,name=master_billing_account,json=masterBillingAccount,proto3" json:"master_billing_account,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *BillingAccount) Reset() { *m = BillingAccount{} } |
| func (m *BillingAccount) String() string { return proto.CompactTextString(m) } |
| func (*BillingAccount) ProtoMessage() {} |
| func (*BillingAccount) Descriptor() ([]byte, []int) { |
| return fileDescriptor_47fe072480332805, []int{0} |
| } |
| |
| func (m *BillingAccount) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_BillingAccount.Unmarshal(m, b) |
| } |
| func (m *BillingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_BillingAccount.Marshal(b, m, deterministic) |
| } |
| func (m *BillingAccount) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_BillingAccount.Merge(m, src) |
| } |
| func (m *BillingAccount) XXX_Size() int { |
| return xxx_messageInfo_BillingAccount.Size(m) |
| } |
| func (m *BillingAccount) XXX_DiscardUnknown() { |
| xxx_messageInfo_BillingAccount.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_BillingAccount proto.InternalMessageInfo |
| |
| func (m *BillingAccount) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *BillingAccount) GetOpen() bool { |
| if m != nil { |
| return m.Open |
| } |
| return false |
| } |
| |
| func (m *BillingAccount) GetDisplayName() string { |
| if m != nil { |
| return m.DisplayName |
| } |
| return "" |
| } |
| |
| func (m *BillingAccount) GetMasterBillingAccount() string { |
| if m != nil { |
| return m.MasterBillingAccount |
| } |
| return "" |
| } |
| |
| // Encapsulation of billing information for a GCP Console project. A project |
| // has at most one associated billing account at a time (but a billing account |
| // can be assigned to multiple projects). |
| type ProjectBillingInfo struct { |
| // The resource name for the `ProjectBillingInfo`; has the form |
| // `projects/{project_id}/billingInfo`. For example, the resource name for the |
| // billing information for project `tokyo-rain-123` would be |
| // `projects/tokyo-rain-123/billingInfo`. This field is read-only. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // The ID of the project that this `ProjectBillingInfo` represents, such as |
| // `tokyo-rain-123`. This is a convenience field so that you don't need to |
| // parse the `name` field to obtain a project ID. This field is read-only. |
| ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` |
| // The resource name of the billing account associated with the project, if |
| // any. For example, `billingAccounts/012345-567890-ABCDEF`. |
| BillingAccountName string `protobuf:"bytes,3,opt,name=billing_account_name,json=billingAccountName,proto3" json:"billing_account_name,omitempty"` |
| // True if the project is associated with an open billing account, to which |
| // usage on the project is charged. False if the project is associated with a |
| // closed billing account, or no billing account at all, and therefore cannot |
| // use paid services. This field is read-only. |
| BillingEnabled bool `protobuf:"varint,4,opt,name=billing_enabled,json=billingEnabled,proto3" json:"billing_enabled,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ProjectBillingInfo) Reset() { *m = ProjectBillingInfo{} } |
| func (m *ProjectBillingInfo) String() string { return proto.CompactTextString(m) } |
| func (*ProjectBillingInfo) ProtoMessage() {} |
| func (*ProjectBillingInfo) Descriptor() ([]byte, []int) { |
| return fileDescriptor_47fe072480332805, []int{1} |
| } |
| |
| func (m *ProjectBillingInfo) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ProjectBillingInfo.Unmarshal(m, b) |
| } |
| func (m *ProjectBillingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ProjectBillingInfo.Marshal(b, m, deterministic) |
| } |
| func (m *ProjectBillingInfo) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ProjectBillingInfo.Merge(m, src) |
| } |
| func (m *ProjectBillingInfo) XXX_Size() int { |
| return xxx_messageInfo_ProjectBillingInfo.Size(m) |
| } |
| func (m *ProjectBillingInfo) XXX_DiscardUnknown() { |
| xxx_messageInfo_ProjectBillingInfo.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ProjectBillingInfo proto.InternalMessageInfo |
| |
| func (m *ProjectBillingInfo) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *ProjectBillingInfo) GetProjectId() string { |
| if m != nil { |
| return m.ProjectId |
| } |
| return "" |
| } |
| |
| func (m *ProjectBillingInfo) GetBillingAccountName() string { |
| if m != nil { |
| return m.BillingAccountName |
| } |
| return "" |
| } |
| |
| func (m *ProjectBillingInfo) GetBillingEnabled() bool { |
| if m != nil { |
| return m.BillingEnabled |
| } |
| return false |
| } |
| |
| // Request message for `GetBillingAccount`. |
| type GetBillingAccountRequest struct { |
| // Required. The resource name of the billing account to retrieve. For example, |
| // `billingAccounts/012345-567890-ABCDEF`. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GetBillingAccountRequest) Reset() { *m = GetBillingAccountRequest{} } |
| func (m *GetBillingAccountRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetBillingAccountRequest) ProtoMessage() {} |
| func (*GetBillingAccountRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_47fe072480332805, []int{2} |
| } |
| |
| func (m *GetBillingAccountRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetBillingAccountRequest.Unmarshal(m, b) |
| } |
| func (m *GetBillingAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetBillingAccountRequest.Marshal(b, m, deterministic) |
| } |
| func (m *GetBillingAccountRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetBillingAccountRequest.Merge(m, src) |
| } |
| func (m *GetBillingAccountRequest) XXX_Size() int { |
| return xxx_messageInfo_GetBillingAccountRequest.Size(m) |
| } |
| func (m *GetBillingAccountRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetBillingAccountRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetBillingAccountRequest proto.InternalMessageInfo |
| |
| func (m *GetBillingAccountRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| // Request message for `ListBillingAccounts`. |
| type ListBillingAccountsRequest struct { |
| // Requested page size. The maximum page size is 100; this is also the |
| // default. |
| PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| // A token identifying a page of results to return. This should be a |
| // `next_page_token` value returned from a previous `ListBillingAccounts` |
| // call. If unspecified, the first page of results is returned. |
| PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| // Options for how to filter the returned billing accounts. |
| // Currently this only supports filtering for |
| // [subaccounts](https://cloud.google.com/billing/docs/concepts) under a |
| // single provided reseller billing account. |
| // (e.g. "master_billing_account=billingAccounts/012345-678901-ABCDEF"). |
| // Boolean algebra and other fields are not currently supported. |
| Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListBillingAccountsRequest) Reset() { *m = ListBillingAccountsRequest{} } |
| func (m *ListBillingAccountsRequest) String() string { return proto.CompactTextString(m) } |
| func (*ListBillingAccountsRequest) ProtoMessage() {} |
| func (*ListBillingAccountsRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_47fe072480332805, []int{3} |
| } |
| |
| func (m *ListBillingAccountsRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListBillingAccountsRequest.Unmarshal(m, b) |
| } |
| func (m *ListBillingAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListBillingAccountsRequest.Marshal(b, m, deterministic) |
| } |
| func (m *ListBillingAccountsRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListBillingAccountsRequest.Merge(m, src) |
| } |
| func (m *ListBillingAccountsRequest) XXX_Size() int { |
| return xxx_messageInfo_ListBillingAccountsRequest.Size(m) |
| } |
| func (m *ListBillingAccountsRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListBillingAccountsRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListBillingAccountsRequest proto.InternalMessageInfo |
| |
| func (m *ListBillingAccountsRequest) GetPageSize() int32 { |
| if m != nil { |
| return m.PageSize |
| } |
| return 0 |
| } |
| |
| func (m *ListBillingAccountsRequest) GetPageToken() string { |
| if m != nil { |
| return m.PageToken |
| } |
| return "" |
| } |
| |
| func (m *ListBillingAccountsRequest) GetFilter() string { |
| if m != nil { |
| return m.Filter |
| } |
| return "" |
| } |
| |
| // Response message for `ListBillingAccounts`. |
| type ListBillingAccountsResponse struct { |
| // A list of billing accounts. |
| BillingAccounts []*BillingAccount `protobuf:"bytes,1,rep,name=billing_accounts,json=billingAccounts,proto3" json:"billing_accounts,omitempty"` |
| // A token to retrieve the next page of results. To retrieve the next page, |
| // call `ListBillingAccounts` again with the `page_token` field set to this |
| // value. This field is empty if there are no more results to retrieve. |
| NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListBillingAccountsResponse) Reset() { *m = ListBillingAccountsResponse{} } |
| func (m *ListBillingAccountsResponse) String() string { return proto.CompactTextString(m) } |
| func (*ListBillingAccountsResponse) ProtoMessage() {} |
| func (*ListBillingAccountsResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_47fe072480332805, []int{4} |
| } |
| |
| func (m *ListBillingAccountsResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListBillingAccountsResponse.Unmarshal(m, b) |
| } |
| func (m *ListBillingAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListBillingAccountsResponse.Marshal(b, m, deterministic) |
| } |
| func (m *ListBillingAccountsResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListBillingAccountsResponse.Merge(m, src) |
| } |
| func (m *ListBillingAccountsResponse) XXX_Size() int { |
| return xxx_messageInfo_ListBillingAccountsResponse.Size(m) |
| } |
| func (m *ListBillingAccountsResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListBillingAccountsResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListBillingAccountsResponse proto.InternalMessageInfo |
| |
| func (m *ListBillingAccountsResponse) GetBillingAccounts() []*BillingAccount { |
| if m != nil { |
| return m.BillingAccounts |
| } |
| return nil |
| } |
| |
| func (m *ListBillingAccountsResponse) GetNextPageToken() string { |
| if m != nil { |
| return m.NextPageToken |
| } |
| return "" |
| } |
| |
| // Request message for `CreateBillingAccount`. |
| type CreateBillingAccountRequest struct { |
| // Required. The billing account resource to create. |
| // Currently CreateBillingAccount only supports subaccount creation, so |
| // any created billing accounts must be under a provided master billing |
| // account. |
| BillingAccount *BillingAccount `protobuf:"bytes,1,opt,name=billing_account,json=billingAccount,proto3" json:"billing_account,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CreateBillingAccountRequest) Reset() { *m = CreateBillingAccountRequest{} } |
| func (m *CreateBillingAccountRequest) String() string { return proto.CompactTextString(m) } |
| func (*CreateBillingAccountRequest) ProtoMessage() {} |
| func (*CreateBillingAccountRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_47fe072480332805, []int{5} |
| } |
| |
| func (m *CreateBillingAccountRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CreateBillingAccountRequest.Unmarshal(m, b) |
| } |
| func (m *CreateBillingAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CreateBillingAccountRequest.Marshal(b, m, deterministic) |
| } |
| func (m *CreateBillingAccountRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CreateBillingAccountRequest.Merge(m, src) |
| } |
| func (m *CreateBillingAccountRequest) XXX_Size() int { |
| return xxx_messageInfo_CreateBillingAccountRequest.Size(m) |
| } |
| func (m *CreateBillingAccountRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_CreateBillingAccountRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CreateBillingAccountRequest proto.InternalMessageInfo |
| |
| func (m *CreateBillingAccountRequest) GetBillingAccount() *BillingAccount { |
| if m != nil { |
| return m.BillingAccount |
| } |
| return nil |
| } |
| |
| // Request message for `UpdateBillingAccount`. |
| type UpdateBillingAccountRequest struct { |
| // Required. The name of the billing account resource to be updated. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Required. The billing account resource to replace the resource on the server. |
| Account *BillingAccount `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` |
| // The update mask applied to the resource. |
| // Only "display_name" is currently supported. |
| UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *UpdateBillingAccountRequest) Reset() { *m = UpdateBillingAccountRequest{} } |
| func (m *UpdateBillingAccountRequest) String() string { return proto.CompactTextString(m) } |
| func (*UpdateBillingAccountRequest) ProtoMessage() {} |
| func (*UpdateBillingAccountRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_47fe072480332805, []int{6} |
| } |
| |
| func (m *UpdateBillingAccountRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_UpdateBillingAccountRequest.Unmarshal(m, b) |
| } |
| func (m *UpdateBillingAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_UpdateBillingAccountRequest.Marshal(b, m, deterministic) |
| } |
| func (m *UpdateBillingAccountRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_UpdateBillingAccountRequest.Merge(m, src) |
| } |
| func (m *UpdateBillingAccountRequest) XXX_Size() int { |
| return xxx_messageInfo_UpdateBillingAccountRequest.Size(m) |
| } |
| func (m *UpdateBillingAccountRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_UpdateBillingAccountRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_UpdateBillingAccountRequest proto.InternalMessageInfo |
| |
| func (m *UpdateBillingAccountRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *UpdateBillingAccountRequest) GetAccount() *BillingAccount { |
| if m != nil { |
| return m.Account |
| } |
| return nil |
| } |
| |
| func (m *UpdateBillingAccountRequest) GetUpdateMask() *field_mask.FieldMask { |
| if m != nil { |
| return m.UpdateMask |
| } |
| return nil |
| } |
| |
| // Request message for `ListProjectBillingInfo`. |
| type ListProjectBillingInfoRequest struct { |
| // Required. The resource name of the billing account associated with the projects that |
| // you want to list. For example, `billingAccounts/012345-567890-ABCDEF`. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Requested page size. The maximum page size is 100; this is also the |
| // default. |
| PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| // A token identifying a page of results to be returned. This should be a |
| // `next_page_token` value returned from a previous `ListProjectBillingInfo` |
| // call. If unspecified, the first page of results is returned. |
| PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListProjectBillingInfoRequest) Reset() { *m = ListProjectBillingInfoRequest{} } |
| func (m *ListProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) } |
| func (*ListProjectBillingInfoRequest) ProtoMessage() {} |
| func (*ListProjectBillingInfoRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_47fe072480332805, []int{7} |
| } |
| |
| func (m *ListProjectBillingInfoRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListProjectBillingInfoRequest.Unmarshal(m, b) |
| } |
| func (m *ListProjectBillingInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListProjectBillingInfoRequest.Marshal(b, m, deterministic) |
| } |
| func (m *ListProjectBillingInfoRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListProjectBillingInfoRequest.Merge(m, src) |
| } |
| func (m *ListProjectBillingInfoRequest) XXX_Size() int { |
| return xxx_messageInfo_ListProjectBillingInfoRequest.Size(m) |
| } |
| func (m *ListProjectBillingInfoRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListProjectBillingInfoRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListProjectBillingInfoRequest proto.InternalMessageInfo |
| |
| func (m *ListProjectBillingInfoRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *ListProjectBillingInfoRequest) GetPageSize() int32 { |
| if m != nil { |
| return m.PageSize |
| } |
| return 0 |
| } |
| |
| func (m *ListProjectBillingInfoRequest) GetPageToken() string { |
| if m != nil { |
| return m.PageToken |
| } |
| return "" |
| } |
| |
| // Request message for `ListProjectBillingInfoResponse`. |
| type ListProjectBillingInfoResponse struct { |
| // A list of `ProjectBillingInfo` resources representing the projects |
| // associated with the billing account. |
| ProjectBillingInfo []*ProjectBillingInfo `protobuf:"bytes,1,rep,name=project_billing_info,json=projectBillingInfo,proto3" json:"project_billing_info,omitempty"` |
| // A token to retrieve the next page of results. To retrieve the next page, |
| // call `ListProjectBillingInfo` again with the `page_token` field set to this |
| // value. This field is empty if there are no more results to retrieve. |
| NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListProjectBillingInfoResponse) Reset() { *m = ListProjectBillingInfoResponse{} } |
| func (m *ListProjectBillingInfoResponse) String() string { return proto.CompactTextString(m) } |
| func (*ListProjectBillingInfoResponse) ProtoMessage() {} |
| func (*ListProjectBillingInfoResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_47fe072480332805, []int{8} |
| } |
| |
| func (m *ListProjectBillingInfoResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListProjectBillingInfoResponse.Unmarshal(m, b) |
| } |
| func (m *ListProjectBillingInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListProjectBillingInfoResponse.Marshal(b, m, deterministic) |
| } |
| func (m *ListProjectBillingInfoResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListProjectBillingInfoResponse.Merge(m, src) |
| } |
| func (m *ListProjectBillingInfoResponse) XXX_Size() int { |
| return xxx_messageInfo_ListProjectBillingInfoResponse.Size(m) |
| } |
| func (m *ListProjectBillingInfoResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListProjectBillingInfoResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListProjectBillingInfoResponse proto.InternalMessageInfo |
| |
| func (m *ListProjectBillingInfoResponse) GetProjectBillingInfo() []*ProjectBillingInfo { |
| if m != nil { |
| return m.ProjectBillingInfo |
| } |
| return nil |
| } |
| |
| func (m *ListProjectBillingInfoResponse) GetNextPageToken() string { |
| if m != nil { |
| return m.NextPageToken |
| } |
| return "" |
| } |
| |
| // Request message for `GetProjectBillingInfo`. |
| type GetProjectBillingInfoRequest struct { |
| // Required. The resource name of the project for which billing information is |
| // retrieved. For example, `projects/tokyo-rain-123`. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GetProjectBillingInfoRequest) Reset() { *m = GetProjectBillingInfoRequest{} } |
| func (m *GetProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetProjectBillingInfoRequest) ProtoMessage() {} |
| func (*GetProjectBillingInfoRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_47fe072480332805, []int{9} |
| } |
| |
| func (m *GetProjectBillingInfoRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetProjectBillingInfoRequest.Unmarshal(m, b) |
| } |
| func (m *GetProjectBillingInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetProjectBillingInfoRequest.Marshal(b, m, deterministic) |
| } |
| func (m *GetProjectBillingInfoRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetProjectBillingInfoRequest.Merge(m, src) |
| } |
| func (m *GetProjectBillingInfoRequest) XXX_Size() int { |
| return xxx_messageInfo_GetProjectBillingInfoRequest.Size(m) |
| } |
| func (m *GetProjectBillingInfoRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetProjectBillingInfoRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetProjectBillingInfoRequest proto.InternalMessageInfo |
| |
| func (m *GetProjectBillingInfoRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| // Request message for `UpdateProjectBillingInfo`. |
| type UpdateProjectBillingInfoRequest struct { |
| // Required. The resource name of the project associated with the billing information |
| // that you want to update. For example, `projects/tokyo-rain-123`. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // The new billing information for the project. Read-only fields are ignored; |
| // thus, you can leave empty all fields except `billing_account_name`. |
| ProjectBillingInfo *ProjectBillingInfo `protobuf:"bytes,2,opt,name=project_billing_info,json=projectBillingInfo,proto3" json:"project_billing_info,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *UpdateProjectBillingInfoRequest) Reset() { *m = UpdateProjectBillingInfoRequest{} } |
| func (m *UpdateProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) } |
| func (*UpdateProjectBillingInfoRequest) ProtoMessage() {} |
| func (*UpdateProjectBillingInfoRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_47fe072480332805, []int{10} |
| } |
| |
| func (m *UpdateProjectBillingInfoRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_UpdateProjectBillingInfoRequest.Unmarshal(m, b) |
| } |
| func (m *UpdateProjectBillingInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_UpdateProjectBillingInfoRequest.Marshal(b, m, deterministic) |
| } |
| func (m *UpdateProjectBillingInfoRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_UpdateProjectBillingInfoRequest.Merge(m, src) |
| } |
| func (m *UpdateProjectBillingInfoRequest) XXX_Size() int { |
| return xxx_messageInfo_UpdateProjectBillingInfoRequest.Size(m) |
| } |
| func (m *UpdateProjectBillingInfoRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_UpdateProjectBillingInfoRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_UpdateProjectBillingInfoRequest proto.InternalMessageInfo |
| |
| func (m *UpdateProjectBillingInfoRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *UpdateProjectBillingInfoRequest) GetProjectBillingInfo() *ProjectBillingInfo { |
| if m != nil { |
| return m.ProjectBillingInfo |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*BillingAccount)(nil), "google.cloud.billing.v1.BillingAccount") |
| proto.RegisterType((*ProjectBillingInfo)(nil), "google.cloud.billing.v1.ProjectBillingInfo") |
| proto.RegisterType((*GetBillingAccountRequest)(nil), "google.cloud.billing.v1.GetBillingAccountRequest") |
| proto.RegisterType((*ListBillingAccountsRequest)(nil), "google.cloud.billing.v1.ListBillingAccountsRequest") |
| proto.RegisterType((*ListBillingAccountsResponse)(nil), "google.cloud.billing.v1.ListBillingAccountsResponse") |
| proto.RegisterType((*CreateBillingAccountRequest)(nil), "google.cloud.billing.v1.CreateBillingAccountRequest") |
| proto.RegisterType((*UpdateBillingAccountRequest)(nil), "google.cloud.billing.v1.UpdateBillingAccountRequest") |
| proto.RegisterType((*ListProjectBillingInfoRequest)(nil), "google.cloud.billing.v1.ListProjectBillingInfoRequest") |
| proto.RegisterType((*ListProjectBillingInfoResponse)(nil), "google.cloud.billing.v1.ListProjectBillingInfoResponse") |
| proto.RegisterType((*GetProjectBillingInfoRequest)(nil), "google.cloud.billing.v1.GetProjectBillingInfoRequest") |
| proto.RegisterType((*UpdateProjectBillingInfoRequest)(nil), "google.cloud.billing.v1.UpdateProjectBillingInfoRequest") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/billing/v1/cloud_billing.proto", fileDescriptor_47fe072480332805) |
| } |
| |
| var fileDescriptor_47fe072480332805 = []byte{ |
| // 1154 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcf, 0x73, 0xdb, 0xc4, |
| 0x1f, 0xfd, 0xae, 0x93, 0x6f, 0x49, 0x36, 0x21, 0xa1, 0x5b, 0x27, 0x71, 0xed, 0x34, 0x4d, 0xc5, |
| 0xd0, 0x84, 0x24, 0xb5, 0x1a, 0x27, 0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2, |
| 0xee, 0xf2, 0xb7, 0xb7, 0x5d, 0xf0, 0xde, 0x7d, 0x59, 0x6d, 0x52, 0x1b, 0xbb, 0x66, 0x99, 0xfa, |
| 0xa6, 0x6e, 0x12, 0x57, 0xbc, 0xdb, 0xe9, 0xa7, 0x23, 0xfb, 0x3e, 0x90, 0xef, 0xc9, 0x9f, 0x8d, |
| 0x4b, 0xa2, 0x74, 0xed, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0x2e, 0xd2, 0x08, 0x4a, 0x0f, |
| 0x00, 0x00, |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConnInterface |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion6 |
| |
| // CloudBillingClient is the client API for CloudBilling service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type CloudBillingClient interface { |
| // Gets information about a billing account. The current authenticated user |
| // must be a [viewer of the billing |
| // account](https://cloud.google.com/billing/docs/how-to/billing-access). |
| GetBillingAccount(ctx context.Context, in *GetBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error) |
| // Lists the billing accounts that the current authenticated user has |
| // permission to |
| // [view](https://cloud.google.com/billing/docs/how-to/billing-access). |
| ListBillingAccounts(ctx context.Context, in *ListBillingAccountsRequest, opts ...grpc.CallOption) (*ListBillingAccountsResponse, error) |
| // Updates a billing account's fields. |
| // Currently the only field that can be edited is `display_name`. |
| // The current authenticated user must have the `billing.accounts.update` |
| // IAM permission, which is typically given to the |
| // [administrator](https://cloud.google.com/billing/docs/how-to/billing-access) |
| // of the billing account. |
| UpdateBillingAccount(ctx context.Context, in *UpdateBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error) |
| // Creates a billing account. |
| // This method can only be used to create |
| // [billing subaccounts](https://cloud.google.com/billing/docs/concepts) |
| // by GCP resellers. |
| // When creating a subaccount, the current authenticated user must have the |
| // `billing.accounts.update` IAM permission on the master account, which is |
| // typically given to billing account |
| // [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). |
| // This method will return an error if the master account has not been |
| // provisioned as a reseller account. |
| CreateBillingAccount(ctx context.Context, in *CreateBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error) |
| // Lists the projects associated with a billing account. The current |
| // authenticated user must have the `billing.resourceAssociations.list` IAM |
| // permission, which is often given to billing account |
| // [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). |
| ListProjectBillingInfo(ctx context.Context, in *ListProjectBillingInfoRequest, opts ...grpc.CallOption) (*ListProjectBillingInfoResponse, error) |
| // Gets the billing information for a project. The current authenticated user |
| // must have [permission to view the |
| // project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo |
| // ). |
| GetProjectBillingInfo(ctx context.Context, in *GetProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error) |
| // Sets or updates the billing account associated with a project. You specify |
| // the new billing account by setting the `billing_account_name` in the |
| // `ProjectBillingInfo` resource to the resource name of a billing account. |
| // Associating a project with an open billing account enables billing on the |
| // project and allows charges for resource usage. If the project already had a |
| // billing account, this method changes the billing account used for resource |
| // usage charges. |
| // |
| // *Note:* Incurred charges that have not yet been reported in the transaction |
| // history of the GCP Console might be billed to the new billing |
| // account, even if the charge occurred before the new billing account was |
| // assigned to the project. |
| // |
| // The current authenticated user must have ownership privileges for both the |
| // [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo |
| // ) and the [billing |
| // account](https://cloud.google.com/billing/docs/how-to/billing-access). |
| // |
| // You can disable billing on the project by setting the |
| // `billing_account_name` field to empty. This action disassociates the |
| // current billing account from the project. Any billable activity of your |
| // in-use services will stop, and your application could stop functioning as |
| // expected. Any unbilled charges to date will be billed to the previously |
| // associated account. The current authenticated user must be either an owner |
| // of the project or an owner of the billing account for the project. |
| // |
| // Note that associating a project with a *closed* billing account will have |
| // much the same effect as disabling billing on the project: any paid |
| // resources used by the project will be shut down. Thus, unless you wish to |
| // disable billing, you should always call this method with the name of an |
| // *open* billing account. |
| UpdateProjectBillingInfo(ctx context.Context, in *UpdateProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error) |
| // Gets the access control policy for a billing account. |
| // The caller must have the `billing.accounts.getIamPolicy` permission on the |
| // account, which is often given to billing account |
| // [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). |
| GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) |
| // Sets the access control policy for a billing account. Replaces any existing |
| // policy. |
| // The caller must have the `billing.accounts.setIamPolicy` permission on the |
| // account, which is often given to billing account |
| // [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). |
| SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) |
| // Tests the access control policy for a billing account. This method takes |
| // the resource and a set of permissions as input and returns the subset of |
| // the input permissions that the caller is allowed for that resource. |
| TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) |
| } |
| |
| type cloudBillingClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewCloudBillingClient(cc grpc.ClientConnInterface) CloudBillingClient { |
| return &cloudBillingClient{cc} |
| } |
| |
| func (c *cloudBillingClient) GetBillingAccount(ctx context.Context, in *GetBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error) { |
| out := new(BillingAccount) |
| err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/GetBillingAccount", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *cloudBillingClient) ListBillingAccounts(ctx context.Context, in *ListBillingAccountsRequest, opts ...grpc.CallOption) (*ListBillingAccountsResponse, error) { |
| out := new(ListBillingAccountsResponse) |
| err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/ListBillingAccounts", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *cloudBillingClient) UpdateBillingAccount(ctx context.Context, in *UpdateBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error) { |
| out := new(BillingAccount) |
| err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/UpdateBillingAccount", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *cloudBillingClient) CreateBillingAccount(ctx context.Context, in *CreateBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error) { |
| out := new(BillingAccount) |
| err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/CreateBillingAccount", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *cloudBillingClient) ListProjectBillingInfo(ctx context.Context, in *ListProjectBillingInfoRequest, opts ...grpc.CallOption) (*ListProjectBillingInfoResponse, error) { |
| out := new(ListProjectBillingInfoResponse) |
| err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/ListProjectBillingInfo", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *cloudBillingClient) GetProjectBillingInfo(ctx context.Context, in *GetProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error) { |
| out := new(ProjectBillingInfo) |
| err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/GetProjectBillingInfo", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *cloudBillingClient) UpdateProjectBillingInfo(ctx context.Context, in *UpdateProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error) { |
| out := new(ProjectBillingInfo) |
| err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/UpdateProjectBillingInfo", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *cloudBillingClient) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) { |
| out := new(v1.Policy) |
| err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/GetIamPolicy", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *cloudBillingClient) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) { |
| out := new(v1.Policy) |
| err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/SetIamPolicy", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *cloudBillingClient) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) { |
| out := new(v1.TestIamPermissionsResponse) |
| err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/TestIamPermissions", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // CloudBillingServer is the server API for CloudBilling service. |
| type CloudBillingServer interface { |
| // Gets information about a billing account. The current authenticated user |
| // must be a [viewer of the billing |
| // account](https://cloud.google.com/billing/docs/how-to/billing-access). |
| GetBillingAccount(context.Context, *GetBillingAccountRequest) (*BillingAccount, error) |
| // Lists the billing accounts that the current authenticated user has |
| // permission to |
| // [view](https://cloud.google.com/billing/docs/how-to/billing-access). |
| ListBillingAccounts(context.Context, *ListBillingAccountsRequest) (*ListBillingAccountsResponse, error) |
| // Updates a billing account's fields. |
| // Currently the only field that can be edited is `display_name`. |
| // The current authenticated user must have the `billing.accounts.update` |
| // IAM permission, which is typically given to the |
| // [administrator](https://cloud.google.com/billing/docs/how-to/billing-access) |
| // of the billing account. |
| UpdateBillingAccount(context.Context, *UpdateBillingAccountRequest) (*BillingAccount, error) |
| // Creates a billing account. |
| // This method can only be used to create |
| // [billing subaccounts](https://cloud.google.com/billing/docs/concepts) |
| // by GCP resellers. |
| // When creating a subaccount, the current authenticated user must have the |
| // `billing.accounts.update` IAM permission on the master account, which is |
| // typically given to billing account |
| // [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). |
| // This method will return an error if the master account has not been |
| // provisioned as a reseller account. |
| CreateBillingAccount(context.Context, *CreateBillingAccountRequest) (*BillingAccount, error) |
| // Lists the projects associated with a billing account. The current |
| // authenticated user must have the `billing.resourceAssociations.list` IAM |
| // permission, which is often given to billing account |
| // [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). |
| ListProjectBillingInfo(context.Context, *ListProjectBillingInfoRequest) (*ListProjectBillingInfoResponse, error) |
| // Gets the billing information for a project. The current authenticated user |
| // must have [permission to view the |
| // project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo |
| // ). |
| GetProjectBillingInfo(context.Context, *GetProjectBillingInfoRequest) (*ProjectBillingInfo, error) |
| // Sets or updates the billing account associated with a project. You specify |
| // the new billing account by setting the `billing_account_name` in the |
| // `ProjectBillingInfo` resource to the resource name of a billing account. |
| // Associating a project with an open billing account enables billing on the |
| // project and allows charges for resource usage. If the project already had a |
| // billing account, this method changes the billing account used for resource |
| // usage charges. |
| // |
| // *Note:* Incurred charges that have not yet been reported in the transaction |
| // history of the GCP Console might be billed to the new billing |
| // account, even if the charge occurred before the new billing account was |
| // assigned to the project. |
| // |
| // The current authenticated user must have ownership privileges for both the |
| // [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo |
| // ) and the [billing |
| // account](https://cloud.google.com/billing/docs/how-to/billing-access). |
| // |
| // You can disable billing on the project by setting the |
| // `billing_account_name` field to empty. This action disassociates the |
| // current billing account from the project. Any billable activity of your |
| // in-use services will stop, and your application could stop functioning as |
| // expected. Any unbilled charges to date will be billed to the previously |
| // associated account. The current authenticated user must be either an owner |
| // of the project or an owner of the billing account for the project. |
| // |
| // Note that associating a project with a *closed* billing account will have |
| // much the same effect as disabling billing on the project: any paid |
| // resources used by the project will be shut down. Thus, unless you wish to |
| // disable billing, you should always call this method with the name of an |
| // *open* billing account. |
| UpdateProjectBillingInfo(context.Context, *UpdateProjectBillingInfoRequest) (*ProjectBillingInfo, error) |
| // Gets the access control policy for a billing account. |
| // The caller must have the `billing.accounts.getIamPolicy` permission on the |
| // account, which is often given to billing account |
| // [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). |
| GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) |
| // Sets the access control policy for a billing account. Replaces any existing |
| // policy. |
| // The caller must have the `billing.accounts.setIamPolicy` permission on the |
| // account, which is often given to billing account |
| // [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). |
| SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) |
| // Tests the access control policy for a billing account. This method takes |
| // the resource and a set of permissions as input and returns the subset of |
| // the input permissions that the caller is allowed for that resource. |
| TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) |
| } |
| |
| // UnimplementedCloudBillingServer can be embedded to have forward compatible implementations. |
| type UnimplementedCloudBillingServer struct { |
| } |
| |
| func (*UnimplementedCloudBillingServer) GetBillingAccount(ctx context.Context, req *GetBillingAccountRequest) (*BillingAccount, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetBillingAccount not implemented") |
| } |
| func (*UnimplementedCloudBillingServer) ListBillingAccounts(ctx context.Context, req *ListBillingAccountsRequest) (*ListBillingAccountsResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ListBillingAccounts not implemented") |
| } |
| func (*UnimplementedCloudBillingServer) UpdateBillingAccount(ctx context.Context, req *UpdateBillingAccountRequest) (*BillingAccount, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UpdateBillingAccount not implemented") |
| } |
| func (*UnimplementedCloudBillingServer) CreateBillingAccount(ctx context.Context, req *CreateBillingAccountRequest) (*BillingAccount, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CreateBillingAccount not implemented") |
| } |
| func (*UnimplementedCloudBillingServer) ListProjectBillingInfo(ctx context.Context, req *ListProjectBillingInfoRequest) (*ListProjectBillingInfoResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ListProjectBillingInfo not implemented") |
| } |
| func (*UnimplementedCloudBillingServer) GetProjectBillingInfo(ctx context.Context, req *GetProjectBillingInfoRequest) (*ProjectBillingInfo, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetProjectBillingInfo not implemented") |
| } |
| func (*UnimplementedCloudBillingServer) UpdateProjectBillingInfo(ctx context.Context, req *UpdateProjectBillingInfoRequest) (*ProjectBillingInfo, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectBillingInfo not implemented") |
| } |
| func (*UnimplementedCloudBillingServer) GetIamPolicy(ctx context.Context, req *v1.GetIamPolicyRequest) (*v1.Policy, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetIamPolicy not implemented") |
| } |
| func (*UnimplementedCloudBillingServer) SetIamPolicy(ctx context.Context, req *v1.SetIamPolicyRequest) (*v1.Policy, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SetIamPolicy not implemented") |
| } |
| func (*UnimplementedCloudBillingServer) TestIamPermissions(ctx context.Context, req *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method TestIamPermissions not implemented") |
| } |
| |
| func RegisterCloudBillingServer(s *grpc.Server, srv CloudBillingServer) { |
| s.RegisterService(&_CloudBilling_serviceDesc, srv) |
| } |
| |
| func _CloudBilling_GetBillingAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetBillingAccountRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CloudBillingServer).GetBillingAccount(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.billing.v1.CloudBilling/GetBillingAccount", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CloudBillingServer).GetBillingAccount(ctx, req.(*GetBillingAccountRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CloudBilling_ListBillingAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListBillingAccountsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CloudBillingServer).ListBillingAccounts(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.billing.v1.CloudBilling/ListBillingAccounts", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CloudBillingServer).ListBillingAccounts(ctx, req.(*ListBillingAccountsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CloudBilling_UpdateBillingAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(UpdateBillingAccountRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CloudBillingServer).UpdateBillingAccount(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.billing.v1.CloudBilling/UpdateBillingAccount", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CloudBillingServer).UpdateBillingAccount(ctx, req.(*UpdateBillingAccountRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CloudBilling_CreateBillingAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CreateBillingAccountRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CloudBillingServer).CreateBillingAccount(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.billing.v1.CloudBilling/CreateBillingAccount", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CloudBillingServer).CreateBillingAccount(ctx, req.(*CreateBillingAccountRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CloudBilling_ListProjectBillingInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListProjectBillingInfoRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CloudBillingServer).ListProjectBillingInfo(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.billing.v1.CloudBilling/ListProjectBillingInfo", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CloudBillingServer).ListProjectBillingInfo(ctx, req.(*ListProjectBillingInfoRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CloudBilling_GetProjectBillingInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetProjectBillingInfoRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CloudBillingServer).GetProjectBillingInfo(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.billing.v1.CloudBilling/GetProjectBillingInfo", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CloudBillingServer).GetProjectBillingInfo(ctx, req.(*GetProjectBillingInfoRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CloudBilling_UpdateProjectBillingInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(UpdateProjectBillingInfoRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CloudBillingServer).UpdateProjectBillingInfo(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.billing.v1.CloudBilling/UpdateProjectBillingInfo", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CloudBillingServer).UpdateProjectBillingInfo(ctx, req.(*UpdateProjectBillingInfoRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CloudBilling_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(v1.GetIamPolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CloudBillingServer).GetIamPolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.billing.v1.CloudBilling/GetIamPolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CloudBillingServer).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CloudBilling_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(v1.SetIamPolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CloudBillingServer).SetIamPolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.billing.v1.CloudBilling/SetIamPolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CloudBillingServer).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CloudBilling_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(v1.TestIamPermissionsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CloudBillingServer).TestIamPermissions(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.billing.v1.CloudBilling/TestIamPermissions", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CloudBillingServer).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _CloudBilling_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.cloud.billing.v1.CloudBilling", |
| HandlerType: (*CloudBillingServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "GetBillingAccount", |
| Handler: _CloudBilling_GetBillingAccount_Handler, |
| }, |
| { |
| MethodName: "ListBillingAccounts", |
| Handler: _CloudBilling_ListBillingAccounts_Handler, |
| }, |
| { |
| MethodName: "UpdateBillingAccount", |
| Handler: _CloudBilling_UpdateBillingAccount_Handler, |
| }, |
| { |
| MethodName: "CreateBillingAccount", |
| Handler: _CloudBilling_CreateBillingAccount_Handler, |
| }, |
| { |
| MethodName: "ListProjectBillingInfo", |
| Handler: _CloudBilling_ListProjectBillingInfo_Handler, |
| }, |
| { |
| MethodName: "GetProjectBillingInfo", |
| Handler: _CloudBilling_GetProjectBillingInfo_Handler, |
| }, |
| { |
| MethodName: "UpdateProjectBillingInfo", |
| Handler: _CloudBilling_UpdateProjectBillingInfo_Handler, |
| }, |
| { |
| MethodName: "GetIamPolicy", |
| Handler: _CloudBilling_GetIamPolicy_Handler, |
| }, |
| { |
| MethodName: "SetIamPolicy", |
| Handler: _CloudBilling_SetIamPolicy_Handler, |
| }, |
| { |
| MethodName: "TestIamPermissions", |
| Handler: _CloudBilling_TestIamPermissions_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "google/cloud/billing/v1/cloud_billing.proto", |
| } |