billing

package
v0.0.0-...-e165f0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AggregationInfo_AggregationInterval_name = map[int32]string{
	0: "AGGREGATION_INTERVAL_UNSPECIFIED",
	1: "DAILY",
	2: "MONTHLY",
}
View Source
var AggregationInfo_AggregationInterval_value = map[string]int32{
	"AGGREGATION_INTERVAL_UNSPECIFIED": 0,
	"DAILY":                            1,
	"MONTHLY":                          2,
}
View Source
var AggregationInfo_AggregationLevel_name = map[int32]string{
	0: "AGGREGATION_LEVEL_UNSPECIFIED",
	1: "ACCOUNT",
	2: "PROJECT",
}
View Source
var AggregationInfo_AggregationLevel_value = map[string]int32{
	"AGGREGATION_LEVEL_UNSPECIFIED": 0,
	"ACCOUNT":                       1,
	"PROJECT":                       2,
}

Functions

func RegisterCloudBillingServer

func RegisterCloudBillingServer(s *grpc.Server, srv CloudBillingServer)

func RegisterCloudCatalogServer

func RegisterCloudCatalogServer(s *grpc.Server, srv CloudCatalogServer)

Types

type AggregationInfo

type AggregationInfo struct {
	AggregationLevel    AggregationInfo_AggregationLevel    `` /* 172-byte string literal not displayed */
	AggregationInterval AggregationInfo_AggregationInterval `` /* 184-byte string literal not displayed */
	// The number of intervals to aggregate over.
	// Example: If aggregation_level is "DAILY" and aggregation_count is 14,
	// aggregation will be over 14 days.
	AggregationCount     int32    `protobuf:"varint,3,opt,name=aggregation_count,json=aggregationCount,proto3" json:"aggregation_count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents the aggregation level and interval for pricing of a single SKU.

func (*AggregationInfo) Descriptor

func (*AggregationInfo) Descriptor() ([]byte, []int)

func (*AggregationInfo) GetAggregationCount

func (m *AggregationInfo) GetAggregationCount() int32

func (*AggregationInfo) GetAggregationInterval

func (m *AggregationInfo) GetAggregationInterval() AggregationInfo_AggregationInterval

func (*AggregationInfo) GetAggregationLevel

func (m *AggregationInfo) GetAggregationLevel() AggregationInfo_AggregationLevel

func (*AggregationInfo) ProtoMessage

func (*AggregationInfo) ProtoMessage()

func (*AggregationInfo) Reset

func (m *AggregationInfo) Reset()

func (*AggregationInfo) String

func (m *AggregationInfo) String() string

func (*AggregationInfo) XXX_DiscardUnknown

func (m *AggregationInfo) XXX_DiscardUnknown()

func (*AggregationInfo) XXX_Marshal

func (m *AggregationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AggregationInfo) XXX_Merge

func (m *AggregationInfo) XXX_Merge(src proto.Message)

func (*AggregationInfo) XXX_Size

func (m *AggregationInfo) XXX_Size() int

func (*AggregationInfo) XXX_Unmarshal

func (m *AggregationInfo) XXX_Unmarshal(b []byte) error

type AggregationInfo_AggregationInterval

type AggregationInfo_AggregationInterval int32

The interval at which usage is aggregated to compute cost. Example: "MONTHLY" aggregation interval indicates that usage for tiered pricing is aggregated every month.

const (
	AggregationInfo_AGGREGATION_INTERVAL_UNSPECIFIED AggregationInfo_AggregationInterval = 0
	AggregationInfo_DAILY                            AggregationInfo_AggregationInterval = 1
	AggregationInfo_MONTHLY                          AggregationInfo_AggregationInterval = 2
)

func (AggregationInfo_AggregationInterval) EnumDescriptor

func (AggregationInfo_AggregationInterval) EnumDescriptor() ([]byte, []int)

func (AggregationInfo_AggregationInterval) String

type AggregationInfo_AggregationLevel

type AggregationInfo_AggregationLevel int32

The level at which usage is aggregated to compute cost. Example: "ACCOUNT" aggregation level indicates that usage for tiered pricing is aggregated across all projects in a single account.

const (
	AggregationInfo_AGGREGATION_LEVEL_UNSPECIFIED AggregationInfo_AggregationLevel = 0
	AggregationInfo_ACCOUNT                       AggregationInfo_AggregationLevel = 1
	AggregationInfo_PROJECT                       AggregationInfo_AggregationLevel = 2
)

func (AggregationInfo_AggregationLevel) EnumDescriptor

func (AggregationInfo_AggregationLevel) EnumDescriptor() ([]byte, []int)

func (AggregationInfo_AggregationLevel) String

type BillingAccount

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:"-"`
}

A billing account in [GCP Console](https://console.cloud.google.com/). You can assign a billing account to one or more projects.

func (*BillingAccount) Descriptor

func (*BillingAccount) Descriptor() ([]byte, []int)

func (*BillingAccount) GetDisplayName

func (m *BillingAccount) GetDisplayName() string

func (*BillingAccount) GetMasterBillingAccount

func (m *BillingAccount) GetMasterBillingAccount() string

func (*BillingAccount) GetName

func (m *BillingAccount) GetName() string

func (*BillingAccount) GetOpen

func (m *BillingAccount) GetOpen() bool

func (*BillingAccount) ProtoMessage

func (*BillingAccount) ProtoMessage()

func (*BillingAccount) Reset

func (m *BillingAccount) Reset()

func (*BillingAccount) String

func (m *BillingAccount) String() string

func (*BillingAccount) XXX_DiscardUnknown

func (m *BillingAccount) XXX_DiscardUnknown()

func (*BillingAccount) XXX_Marshal

func (m *BillingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BillingAccount) XXX_Merge

func (m *BillingAccount) XXX_Merge(src proto.Message)

func (*BillingAccount) XXX_Size

func (m *BillingAccount) XXX_Size() int

func (*BillingAccount) XXX_Unmarshal

func (m *BillingAccount) XXX_Unmarshal(b []byte) error

type Category

type Category struct {
	// The display name of the service this SKU belongs to.
	ServiceDisplayName string `protobuf:"bytes,1,opt,name=service_display_name,json=serviceDisplayName,proto3" json:"service_display_name,omitempty"`
	// The type of product the SKU refers to.
	// Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
	ResourceFamily string `protobuf:"bytes,2,opt,name=resource_family,json=resourceFamily,proto3" json:"resource_family,omitempty"`
	// A group classification for related SKUs.
	// Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
	ResourceGroup string `protobuf:"bytes,3,opt,name=resource_group,json=resourceGroup,proto3" json:"resource_group,omitempty"`
	// Represents how the SKU is consumed.
	// Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
	UsageType            string   `protobuf:"bytes,4,opt,name=usage_type,json=usageType,proto3" json:"usage_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents the category hierarchy of a SKU.

func (*Category) Descriptor

func (*Category) Descriptor() ([]byte, []int)

func (*Category) GetResourceFamily

func (m *Category) GetResourceFamily() string

func (*Category) GetResourceGroup

func (m *Category) GetResourceGroup() string

func (*Category) GetServiceDisplayName

func (m *Category) GetServiceDisplayName() string

func (*Category) GetUsageType

func (m *Category) GetUsageType() string

func (*Category) ProtoMessage

func (*Category) ProtoMessage()

func (*Category) Reset

func (m *Category) Reset()

func (*Category) String

func (m *Category) String() string

func (*Category) XXX_DiscardUnknown

func (m *Category) XXX_DiscardUnknown()

func (*Category) XXX_Marshal

func (m *Category) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Category) XXX_Merge

func (m *Category) XXX_Merge(src proto.Message)

func (*Category) XXX_Size

func (m *Category) XXX_Size() int

func (*Category) XXX_Unmarshal

func (m *Category) XXX_Unmarshal(b []byte) error

type CloudBillingClient

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)
}

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 CloudBillingServer

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)
}

CloudBillingServer is the server API for CloudBilling service.

type CloudCatalogClient

type CloudCatalogClient interface {
	// Lists all public cloud services.
	ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error)
	// Lists all publicly available SKUs for a given cloud service.
	ListSkus(ctx context.Context, in *ListSkusRequest, opts ...grpc.CallOption) (*ListSkusResponse, error)
}

CloudCatalogClient is the client API for CloudCatalog service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type CloudCatalogServer

type CloudCatalogServer interface {
	// Lists all public cloud services.
	ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
	// Lists all publicly available SKUs for a given cloud service.
	ListSkus(context.Context, *ListSkusRequest) (*ListSkusResponse, error)
}

CloudCatalogServer is the server API for CloudCatalog service.

type CreateBillingAccountRequest

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:"-"`
}

Request message for `CreateBillingAccount`.

func (*CreateBillingAccountRequest) Descriptor

func (*CreateBillingAccountRequest) Descriptor() ([]byte, []int)

func (*CreateBillingAccountRequest) GetBillingAccount

func (m *CreateBillingAccountRequest) GetBillingAccount() *BillingAccount

func (*CreateBillingAccountRequest) ProtoMessage

func (*CreateBillingAccountRequest) ProtoMessage()

func (*CreateBillingAccountRequest) Reset

func (m *CreateBillingAccountRequest) Reset()

func (*CreateBillingAccountRequest) String

func (m *CreateBillingAccountRequest) String() string

func (*CreateBillingAccountRequest) XXX_DiscardUnknown

func (m *CreateBillingAccountRequest) XXX_DiscardUnknown()

func (*CreateBillingAccountRequest) XXX_Marshal

func (m *CreateBillingAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateBillingAccountRequest) XXX_Merge

func (m *CreateBillingAccountRequest) XXX_Merge(src proto.Message)

func (*CreateBillingAccountRequest) XXX_Size

func (m *CreateBillingAccountRequest) XXX_Size() int

func (*CreateBillingAccountRequest) XXX_Unmarshal

func (m *CreateBillingAccountRequest) XXX_Unmarshal(b []byte) error

type GetBillingAccountRequest

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:"-"`
}

Request message for `GetBillingAccount`.

func (*GetBillingAccountRequest) Descriptor

func (*GetBillingAccountRequest) Descriptor() ([]byte, []int)

func (*GetBillingAccountRequest) GetName

func (m *GetBillingAccountRequest) GetName() string

func (*GetBillingAccountRequest) ProtoMessage

func (*GetBillingAccountRequest) ProtoMessage()

func (*GetBillingAccountRequest) Reset

func (m *GetBillingAccountRequest) Reset()

func (*GetBillingAccountRequest) String

func (m *GetBillingAccountRequest) String() string

func (*GetBillingAccountRequest) XXX_DiscardUnknown

func (m *GetBillingAccountRequest) XXX_DiscardUnknown()

func (*GetBillingAccountRequest) XXX_Marshal

func (m *GetBillingAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBillingAccountRequest) XXX_Merge

func (m *GetBillingAccountRequest) XXX_Merge(src proto.Message)

func (*GetBillingAccountRequest) XXX_Size

func (m *GetBillingAccountRequest) XXX_Size() int

func (*GetBillingAccountRequest) XXX_Unmarshal

func (m *GetBillingAccountRequest) XXX_Unmarshal(b []byte) error

type GetProjectBillingInfoRequest

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:"-"`
}

Request message for `GetProjectBillingInfo`.

func (*GetProjectBillingInfoRequest) Descriptor

func (*GetProjectBillingInfoRequest) Descriptor() ([]byte, []int)

func (*GetProjectBillingInfoRequest) GetName

func (m *GetProjectBillingInfoRequest) GetName() string

func (*GetProjectBillingInfoRequest) ProtoMessage

func (*GetProjectBillingInfoRequest) ProtoMessage()

func (*GetProjectBillingInfoRequest) Reset

func (m *GetProjectBillingInfoRequest) Reset()

func (*GetProjectBillingInfoRequest) String

func (*GetProjectBillingInfoRequest) XXX_DiscardUnknown

func (m *GetProjectBillingInfoRequest) XXX_DiscardUnknown()

func (*GetProjectBillingInfoRequest) XXX_Marshal

func (m *GetProjectBillingInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetProjectBillingInfoRequest) XXX_Merge

func (m *GetProjectBillingInfoRequest) XXX_Merge(src proto.Message)

func (*GetProjectBillingInfoRequest) XXX_Size

func (m *GetProjectBillingInfoRequest) XXX_Size() int

func (*GetProjectBillingInfoRequest) XXX_Unmarshal

func (m *GetProjectBillingInfoRequest) XXX_Unmarshal(b []byte) error

type ListBillingAccountsRequest

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:"-"`
}

Request message for `ListBillingAccounts`.

func (*ListBillingAccountsRequest) Descriptor

func (*ListBillingAccountsRequest) Descriptor() ([]byte, []int)

func (*ListBillingAccountsRequest) GetFilter

func (m *ListBillingAccountsRequest) GetFilter() string

func (*ListBillingAccountsRequest) GetPageSize

func (m *ListBillingAccountsRequest) GetPageSize() int32

func (*ListBillingAccountsRequest) GetPageToken

func (m *ListBillingAccountsRequest) GetPageToken() string

func (*ListBillingAccountsRequest) ProtoMessage

func (*ListBillingAccountsRequest) ProtoMessage()

func (*ListBillingAccountsRequest) Reset

func (m *ListBillingAccountsRequest) Reset()

func (*ListBillingAccountsRequest) String

func (m *ListBillingAccountsRequest) String() string

func (*ListBillingAccountsRequest) XXX_DiscardUnknown

func (m *ListBillingAccountsRequest) XXX_DiscardUnknown()

func (*ListBillingAccountsRequest) XXX_Marshal

func (m *ListBillingAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListBillingAccountsRequest) XXX_Merge

func (m *ListBillingAccountsRequest) XXX_Merge(src proto.Message)

func (*ListBillingAccountsRequest) XXX_Size

func (m *ListBillingAccountsRequest) XXX_Size() int

func (*ListBillingAccountsRequest) XXX_Unmarshal

func (m *ListBillingAccountsRequest) XXX_Unmarshal(b []byte) error

type ListBillingAccountsResponse

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:"-"`
}

Response message for `ListBillingAccounts`.

func (*ListBillingAccountsResponse) Descriptor

func (*ListBillingAccountsResponse) Descriptor() ([]byte, []int)

func (*ListBillingAccountsResponse) GetBillingAccounts

func (m *ListBillingAccountsResponse) GetBillingAccounts() []*BillingAccount

func (*ListBillingAccountsResponse) GetNextPageToken

func (m *ListBillingAccountsResponse) GetNextPageToken() string

func (*ListBillingAccountsResponse) ProtoMessage

func (*ListBillingAccountsResponse) ProtoMessage()

func (*ListBillingAccountsResponse) Reset

func (m *ListBillingAccountsResponse) Reset()

func (*ListBillingAccountsResponse) String

func (m *ListBillingAccountsResponse) String() string

func (*ListBillingAccountsResponse) XXX_DiscardUnknown

func (m *ListBillingAccountsResponse) XXX_DiscardUnknown()

func (*ListBillingAccountsResponse) XXX_Marshal

func (m *ListBillingAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListBillingAccountsResponse) XXX_Merge

func (m *ListBillingAccountsResponse) XXX_Merge(src proto.Message)

func (*ListBillingAccountsResponse) XXX_Size

func (m *ListBillingAccountsResponse) XXX_Size() int

func (*ListBillingAccountsResponse) XXX_Unmarshal

func (m *ListBillingAccountsResponse) XXX_Unmarshal(b []byte) error

type ListProjectBillingInfoRequest

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:"-"`
}

Request message for `ListProjectBillingInfo`.

func (*ListProjectBillingInfoRequest) Descriptor

func (*ListProjectBillingInfoRequest) Descriptor() ([]byte, []int)

func (*ListProjectBillingInfoRequest) GetName

func (*ListProjectBillingInfoRequest) GetPageSize

func (m *ListProjectBillingInfoRequest) GetPageSize() int32

func (*ListProjectBillingInfoRequest) GetPageToken

func (m *ListProjectBillingInfoRequest) GetPageToken() string

func (*ListProjectBillingInfoRequest) ProtoMessage

func (*ListProjectBillingInfoRequest) ProtoMessage()

func (*ListProjectBillingInfoRequest) Reset

func (m *ListProjectBillingInfoRequest) Reset()

func (*ListProjectBillingInfoRequest) String

func (*ListProjectBillingInfoRequest) XXX_DiscardUnknown

func (m *ListProjectBillingInfoRequest) XXX_DiscardUnknown()

func (*ListProjectBillingInfoRequest) XXX_Marshal

func (m *ListProjectBillingInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListProjectBillingInfoRequest) XXX_Merge

func (m *ListProjectBillingInfoRequest) XXX_Merge(src proto.Message)

func (*ListProjectBillingInfoRequest) XXX_Size

func (m *ListProjectBillingInfoRequest) XXX_Size() int

func (*ListProjectBillingInfoRequest) XXX_Unmarshal

func (m *ListProjectBillingInfoRequest) XXX_Unmarshal(b []byte) error

type 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:"-"`
}

Request message for `ListProjectBillingInfoResponse`.

func (*ListProjectBillingInfoResponse) Descriptor

func (*ListProjectBillingInfoResponse) Descriptor() ([]byte, []int)

func (*ListProjectBillingInfoResponse) GetNextPageToken

func (m *ListProjectBillingInfoResponse) GetNextPageToken() string

func (*ListProjectBillingInfoResponse) GetProjectBillingInfo

func (m *ListProjectBillingInfoResponse) GetProjectBillingInfo() []*ProjectBillingInfo

func (*ListProjectBillingInfoResponse) ProtoMessage

func (*ListProjectBillingInfoResponse) ProtoMessage()

func (*ListProjectBillingInfoResponse) Reset

func (m *ListProjectBillingInfoResponse) Reset()

func (*ListProjectBillingInfoResponse) String

func (*ListProjectBillingInfoResponse) XXX_DiscardUnknown

func (m *ListProjectBillingInfoResponse) XXX_DiscardUnknown()

func (*ListProjectBillingInfoResponse) XXX_Marshal

func (m *ListProjectBillingInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListProjectBillingInfoResponse) XXX_Merge

func (m *ListProjectBillingInfoResponse) XXX_Merge(src proto.Message)

func (*ListProjectBillingInfoResponse) XXX_Size

func (m *ListProjectBillingInfoResponse) XXX_Size() int

func (*ListProjectBillingInfoResponse) XXX_Unmarshal

func (m *ListProjectBillingInfoResponse) XXX_Unmarshal(b []byte) error

type ListServicesRequest

type ListServicesRequest struct {
	// Requested page size. Defaults to 5000.
	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 `ListServices`
	// 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for `ListServices`.

func (*ListServicesRequest) Descriptor

func (*ListServicesRequest) Descriptor() ([]byte, []int)

func (*ListServicesRequest) GetPageSize

func (m *ListServicesRequest) GetPageSize() int32

func (*ListServicesRequest) GetPageToken

func (m *ListServicesRequest) GetPageToken() string

func (*ListServicesRequest) ProtoMessage

func (*ListServicesRequest) ProtoMessage()

func (*ListServicesRequest) Reset

func (m *ListServicesRequest) Reset()

func (*ListServicesRequest) String

func (m *ListServicesRequest) String() string

func (*ListServicesRequest) XXX_DiscardUnknown

func (m *ListServicesRequest) XXX_DiscardUnknown()

func (*ListServicesRequest) XXX_Marshal

func (m *ListServicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListServicesRequest) XXX_Merge

func (m *ListServicesRequest) XXX_Merge(src proto.Message)

func (*ListServicesRequest) XXX_Size

func (m *ListServicesRequest) XXX_Size() int

func (*ListServicesRequest) XXX_Unmarshal

func (m *ListServicesRequest) XXX_Unmarshal(b []byte) error

type ListServicesResponse

type ListServicesResponse struct {
	// A list of services.
	Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// A token to retrieve the next page of results. To retrieve the next page,
	// call `ListServices` 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:"-"`
}

Response message for `ListServices`.

func (*ListServicesResponse) Descriptor

func (*ListServicesResponse) Descriptor() ([]byte, []int)

func (*ListServicesResponse) GetNextPageToken

func (m *ListServicesResponse) GetNextPageToken() string

func (*ListServicesResponse) GetServices

func (m *ListServicesResponse) GetServices() []*Service

func (*ListServicesResponse) ProtoMessage

func (*ListServicesResponse) ProtoMessage()

func (*ListServicesResponse) Reset

func (m *ListServicesResponse) Reset()

func (*ListServicesResponse) String

func (m *ListServicesResponse) String() string

func (*ListServicesResponse) XXX_DiscardUnknown

func (m *ListServicesResponse) XXX_DiscardUnknown()

func (*ListServicesResponse) XXX_Marshal

func (m *ListServicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListServicesResponse) XXX_Merge

func (m *ListServicesResponse) XXX_Merge(src proto.Message)

func (*ListServicesResponse) XXX_Size

func (m *ListServicesResponse) XXX_Size() int

func (*ListServicesResponse) XXX_Unmarshal

func (m *ListServicesResponse) XXX_Unmarshal(b []byte) error

type ListSkusRequest

type ListSkusRequest struct {
	// Required. The name of the service.
	// Example: "services/DA34-426B-A397"
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional inclusive start time of the time range for which the pricing
	// versions will be returned. Timestamps in the future are not allowed.
	// The time range has to be within a single calendar month in
	// America/Los_Angeles timezone. Time range as a whole is optional. If not
	// specified, the latest pricing will be returned (up to 12 hours old at
	// most).
	StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Optional exclusive end time of the time range for which the pricing
	// versions will be returned. Timestamps in the future are not allowed.
	// The time range has to be within a single calendar month in
	// America/Los_Angeles timezone. Time range as a whole is optional. If not
	// specified, the latest pricing will be returned (up to 12 hours old at
	// most).
	EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// The ISO 4217 currency code for the pricing info in the response proto.
	// Will use the conversion rate as of start_time.
	// Optional. If not specified USD will be used.
	CurrencyCode string `protobuf:"bytes,4,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	// Requested page size. Defaults to 5000.
	PageSize int32 `protobuf:"varint,5,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 `ListSkus`
	// call. If unspecified, the first page of results is returned.
	PageToken            string   `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for `ListSkus`.

func (*ListSkusRequest) Descriptor

func (*ListSkusRequest) Descriptor() ([]byte, []int)

func (*ListSkusRequest) GetCurrencyCode

func (m *ListSkusRequest) GetCurrencyCode() string

func (*ListSkusRequest) GetEndTime

func (m *ListSkusRequest) GetEndTime() *timestamp.Timestamp

func (*ListSkusRequest) GetPageSize

func (m *ListSkusRequest) GetPageSize() int32

func (*ListSkusRequest) GetPageToken

func (m *ListSkusRequest) GetPageToken() string

func (*ListSkusRequest) GetParent

func (m *ListSkusRequest) GetParent() string

func (*ListSkusRequest) GetStartTime

func (m *ListSkusRequest) GetStartTime() *timestamp.Timestamp

func (*ListSkusRequest) ProtoMessage

func (*ListSkusRequest) ProtoMessage()

func (*ListSkusRequest) Reset

func (m *ListSkusRequest) Reset()

func (*ListSkusRequest) String

func (m *ListSkusRequest) String() string

func (*ListSkusRequest) XXX_DiscardUnknown

func (m *ListSkusRequest) XXX_DiscardUnknown()

func (*ListSkusRequest) XXX_Marshal

func (m *ListSkusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSkusRequest) XXX_Merge

func (m *ListSkusRequest) XXX_Merge(src proto.Message)

func (*ListSkusRequest) XXX_Size

func (m *ListSkusRequest) XXX_Size() int

func (*ListSkusRequest) XXX_Unmarshal

func (m *ListSkusRequest) XXX_Unmarshal(b []byte) error

type ListSkusResponse

type ListSkusResponse struct {
	// The list of public SKUs of the given service.
	Skus []*Sku `protobuf:"bytes,1,rep,name=skus,proto3" json:"skus,omitempty"`
	// A token to retrieve the next page of results. To retrieve the next page,
	// call `ListSkus` 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:"-"`
}

Response message for `ListSkus`.

func (*ListSkusResponse) Descriptor

func (*ListSkusResponse) Descriptor() ([]byte, []int)

func (*ListSkusResponse) GetNextPageToken

func (m *ListSkusResponse) GetNextPageToken() string

func (*ListSkusResponse) GetSkus

func (m *ListSkusResponse) GetSkus() []*Sku

func (*ListSkusResponse) ProtoMessage

func (*ListSkusResponse) ProtoMessage()

func (*ListSkusResponse) Reset

func (m *ListSkusResponse) Reset()

func (*ListSkusResponse) String

func (m *ListSkusResponse) String() string

func (*ListSkusResponse) XXX_DiscardUnknown

func (m *ListSkusResponse) XXX_DiscardUnknown()

func (*ListSkusResponse) XXX_Marshal

func (m *ListSkusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSkusResponse) XXX_Merge

func (m *ListSkusResponse) XXX_Merge(src proto.Message)

func (*ListSkusResponse) XXX_Size

func (m *ListSkusResponse) XXX_Size() int

func (*ListSkusResponse) XXX_Unmarshal

func (m *ListSkusResponse) XXX_Unmarshal(b []byte) error

type PricingExpression

type PricingExpression struct {
	// The short hand for unit of usage this pricing is specified in.
	// Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
	UsageUnit string `protobuf:"bytes,1,opt,name=usage_unit,json=usageUnit,proto3" json:"usage_unit,omitempty"`
	// The unit of usage in human readable form.
	// Example: "gibi byte".
	UsageUnitDescription string `protobuf:"bytes,4,opt,name=usage_unit_description,json=usageUnitDescription,proto3" json:"usage_unit_description,omitempty"`
	// The base unit for the SKU which is the unit used in usage exports.
	// Example: "By"
	BaseUnit string `protobuf:"bytes,5,opt,name=base_unit,json=baseUnit,proto3" json:"base_unit,omitempty"`
	// The base unit in human readable form.
	// Example: "byte".
	BaseUnitDescription string `protobuf:"bytes,6,opt,name=base_unit_description,json=baseUnitDescription,proto3" json:"base_unit_description,omitempty"`
	// Conversion factor for converting from price per usage_unit to price per
	// base_unit, and start_usage_amount to start_usage_amount in base_unit.
	// unit_price / base_unit_conversion_factor = price per base_unit.
	// start_usage_amount * base_unit_conversion_factor = start_usage_amount in
	// base_unit.
	BaseUnitConversionFactor float64 `` /* 139-byte string literal not displayed */
	// The recommended quantity of units for displaying pricing info. When
	// displaying pricing info it is recommended to display:
	// (unit_price * display_quantity) per display_quantity usage_unit.
	// This field does not affect the pricing formula and is for display purposes
	// only.
	// Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
	// the display_quantity is "1000" then the recommended way of displaying the
	// pricing info is "0.10 USD per 1000 GB"
	DisplayQuantity float64 `protobuf:"fixed64,2,opt,name=display_quantity,json=displayQuantity,proto3" json:"display_quantity,omitempty"`
	// The list of tiered rates for this pricing. The total cost is computed by
	// applying each of the tiered rates on usage. This repeated list is sorted
	// by ascending order of start_usage_amount.
	TieredRates          []*PricingExpression_TierRate `protobuf:"bytes,3,rep,name=tiered_rates,json=tieredRates,proto3" json:"tiered_rates,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

Expresses a mathematical pricing formula. For Example:-

`usage_unit: GBy` `tiered_rates:`

`[start_usage_amount: 20, unit_price: $10]`
`[start_usage_amount: 100, unit_price: $5]`

The above expresses a pricing formula where the first 20GB is free, the next 80GB is priced at $10 per GB followed by $5 per GB for additional usage.

func (*PricingExpression) Descriptor

func (*PricingExpression) Descriptor() ([]byte, []int)

func (*PricingExpression) GetBaseUnit

func (m *PricingExpression) GetBaseUnit() string

func (*PricingExpression) GetBaseUnitConversionFactor

func (m *PricingExpression) GetBaseUnitConversionFactor() float64

func (*PricingExpression) GetBaseUnitDescription

func (m *PricingExpression) GetBaseUnitDescription() string

func (*PricingExpression) GetDisplayQuantity

func (m *PricingExpression) GetDisplayQuantity() float64

func (*PricingExpression) GetTieredRates

func (m *PricingExpression) GetTieredRates() []*PricingExpression_TierRate

func (*PricingExpression) GetUsageUnit

func (m *PricingExpression) GetUsageUnit() string

func (*PricingExpression) GetUsageUnitDescription

func (m *PricingExpression) GetUsageUnitDescription() string

func (*PricingExpression) ProtoMessage

func (*PricingExpression) ProtoMessage()

func (*PricingExpression) Reset

func (m *PricingExpression) Reset()

func (*PricingExpression) String

func (m *PricingExpression) String() string

func (*PricingExpression) XXX_DiscardUnknown

func (m *PricingExpression) XXX_DiscardUnknown()

func (*PricingExpression) XXX_Marshal

func (m *PricingExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PricingExpression) XXX_Merge

func (m *PricingExpression) XXX_Merge(src proto.Message)

func (*PricingExpression) XXX_Size

func (m *PricingExpression) XXX_Size() int

func (*PricingExpression) XXX_Unmarshal

func (m *PricingExpression) XXX_Unmarshal(b []byte) error

type PricingExpression_TierRate

type PricingExpression_TierRate struct {
	// Usage is priced at this rate only after this amount.
	// Example: start_usage_amount of 10 indicates that the usage will be priced
	// at the unit_price after the first 10 usage_units.
	StartUsageAmount float64 `protobuf:"fixed64,1,opt,name=start_usage_amount,json=startUsageAmount,proto3" json:"start_usage_amount,omitempty"`
	// The price per unit of usage.
	// Example: unit_price of amount $10 indicates that each unit will cost $10.
	UnitPrice            *money.Money `protobuf:"bytes,2,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

The price rate indicating starting usage and its corresponding price.

func (*PricingExpression_TierRate) Descriptor

func (*PricingExpression_TierRate) Descriptor() ([]byte, []int)

func (*PricingExpression_TierRate) GetStartUsageAmount

func (m *PricingExpression_TierRate) GetStartUsageAmount() float64

func (*PricingExpression_TierRate) GetUnitPrice

func (m *PricingExpression_TierRate) GetUnitPrice() *money.Money

func (*PricingExpression_TierRate) ProtoMessage

func (*PricingExpression_TierRate) ProtoMessage()

func (*PricingExpression_TierRate) Reset

func (m *PricingExpression_TierRate) Reset()

func (*PricingExpression_TierRate) String

func (m *PricingExpression_TierRate) String() string

func (*PricingExpression_TierRate) XXX_DiscardUnknown

func (m *PricingExpression_TierRate) XXX_DiscardUnknown()

func (*PricingExpression_TierRate) XXX_Marshal

func (m *PricingExpression_TierRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PricingExpression_TierRate) XXX_Merge

func (m *PricingExpression_TierRate) XXX_Merge(src proto.Message)

func (*PricingExpression_TierRate) XXX_Size

func (m *PricingExpression_TierRate) XXX_Size() int

func (*PricingExpression_TierRate) XXX_Unmarshal

func (m *PricingExpression_TierRate) XXX_Unmarshal(b []byte) error

type PricingInfo

type PricingInfo struct {
	// The timestamp from which this pricing was effective within the requested
	// time range. This is guaranteed to be greater than or equal to the
	// start_time field in the request and less than the end_time field in the
	// request. If a time range was not specified in the request this field will
	// be equivalent to a time within the last 12 hours, indicating the latest
	// pricing info.
	EffectiveTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=effective_time,json=effectiveTime,proto3" json:"effective_time,omitempty"`
	// An optional human readable summary of the pricing information, has a
	// maximum length of 256 characters.
	Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	// Expresses the pricing formula. See `PricingExpression` for an example.
	PricingExpression *PricingExpression `protobuf:"bytes,3,opt,name=pricing_expression,json=pricingExpression,proto3" json:"pricing_expression,omitempty"`
	// Aggregation Info. This can be left unspecified if the pricing expression
	// doesn't require aggregation.
	AggregationInfo *AggregationInfo `protobuf:"bytes,4,opt,name=aggregation_info,json=aggregationInfo,proto3" json:"aggregation_info,omitempty"`
	// Conversion rate used for currency conversion, from USD to the currency
	// specified in the request. This includes any surcharge collected for billing
	// in non USD currency. If a currency is not specified in the request this
	// defaults to 1.0.
	// Example: USD * currency_conversion_rate = JPY
	CurrencyConversionRate float64  `` /* 131-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{} `json:"-"`
	XXX_unrecognized       []byte   `json:"-"`
	XXX_sizecache          int32    `json:"-"`
}

Represents the pricing information for a SKU at a single point of time.

func (*PricingInfo) Descriptor

func (*PricingInfo) Descriptor() ([]byte, []int)

func (*PricingInfo) GetAggregationInfo

func (m *PricingInfo) GetAggregationInfo() *AggregationInfo

func (*PricingInfo) GetCurrencyConversionRate

func (m *PricingInfo) GetCurrencyConversionRate() float64

func (*PricingInfo) GetEffectiveTime

func (m *PricingInfo) GetEffectiveTime() *timestamp.Timestamp

func (*PricingInfo) GetPricingExpression

func (m *PricingInfo) GetPricingExpression() *PricingExpression

func (*PricingInfo) GetSummary

func (m *PricingInfo) GetSummary() string

func (*PricingInfo) ProtoMessage

func (*PricingInfo) ProtoMessage()

func (*PricingInfo) Reset

func (m *PricingInfo) Reset()

func (*PricingInfo) String

func (m *PricingInfo) String() string

func (*PricingInfo) XXX_DiscardUnknown

func (m *PricingInfo) XXX_DiscardUnknown()

func (*PricingInfo) XXX_Marshal

func (m *PricingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PricingInfo) XXX_Merge

func (m *PricingInfo) XXX_Merge(src proto.Message)

func (*PricingInfo) XXX_Size

func (m *PricingInfo) XXX_Size() int

func (*PricingInfo) XXX_Unmarshal

func (m *PricingInfo) XXX_Unmarshal(b []byte) error

type ProjectBillingInfo

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:"-"`
}

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).

func (*ProjectBillingInfo) Descriptor

func (*ProjectBillingInfo) Descriptor() ([]byte, []int)

func (*ProjectBillingInfo) GetBillingAccountName

func (m *ProjectBillingInfo) GetBillingAccountName() string

func (*ProjectBillingInfo) GetBillingEnabled

func (m *ProjectBillingInfo) GetBillingEnabled() bool

func (*ProjectBillingInfo) GetName

func (m *ProjectBillingInfo) GetName() string

func (*ProjectBillingInfo) GetProjectId

func (m *ProjectBillingInfo) GetProjectId() string

func (*ProjectBillingInfo) ProtoMessage

func (*ProjectBillingInfo) ProtoMessage()

func (*ProjectBillingInfo) Reset

func (m *ProjectBillingInfo) Reset()

func (*ProjectBillingInfo) String

func (m *ProjectBillingInfo) String() string

func (*ProjectBillingInfo) XXX_DiscardUnknown

func (m *ProjectBillingInfo) XXX_DiscardUnknown()

func (*ProjectBillingInfo) XXX_Marshal

func (m *ProjectBillingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProjectBillingInfo) XXX_Merge

func (m *ProjectBillingInfo) XXX_Merge(src proto.Message)

func (*ProjectBillingInfo) XXX_Size

func (m *ProjectBillingInfo) XXX_Size() int

func (*ProjectBillingInfo) XXX_Unmarshal

func (m *ProjectBillingInfo) XXX_Unmarshal(b []byte) error

type Service

type Service struct {
	// The resource name for the service.
	// Example: "services/DA34-426B-A397"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The identifier for the service.
	// Example: "DA34-426B-A397"
	ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// A human readable display name for this service.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The business under which the service is offered.
	// Ex. "businessEntities/GCP", "businessEntities/Maps"
	BusinessEntityName   string   `protobuf:"bytes,4,opt,name=business_entity_name,json=businessEntityName,proto3" json:"business_entity_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Encapsulates a single service in Google Cloud Platform.

func (*Service) Descriptor

func (*Service) Descriptor() ([]byte, []int)

func (*Service) GetBusinessEntityName

func (m *Service) GetBusinessEntityName() string

func (*Service) GetDisplayName

func (m *Service) GetDisplayName() string

func (*Service) GetName

func (m *Service) GetName() string

func (*Service) GetServiceId

func (m *Service) GetServiceId() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) String

func (m *Service) String() string

func (*Service) XXX_DiscardUnknown

func (m *Service) XXX_DiscardUnknown()

func (*Service) XXX_Marshal

func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Service) XXX_Merge

func (m *Service) XXX_Merge(src proto.Message)

func (*Service) XXX_Size

func (m *Service) XXX_Size() int

func (*Service) XXX_Unmarshal

func (m *Service) XXX_Unmarshal(b []byte) error

type Sku

type Sku struct {
	// The resource name for the SKU.
	// Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The identifier for the SKU.
	// Example: "AA95-CD31-42FE"
	SkuId string `protobuf:"bytes,2,opt,name=sku_id,json=skuId,proto3" json:"sku_id,omitempty"`
	// A human readable description of the SKU, has a maximum length of 256
	// characters.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// The category hierarchy of this SKU, purely for organizational purpose.
	Category *Category `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
	// List of service regions this SKU is offered at.
	// Example: "asia-east1"
	// Service regions can be found at https://cloud.google.com/about/locations/
	ServiceRegions []string `protobuf:"bytes,5,rep,name=service_regions,json=serviceRegions,proto3" json:"service_regions,omitempty"`
	// A timeline of pricing info for this SKU in chronological order.
	PricingInfo []*PricingInfo `protobuf:"bytes,6,rep,name=pricing_info,json=pricingInfo,proto3" json:"pricing_info,omitempty"`
	// Identifies the service provider.
	// This is 'Google' for first party services in Google Cloud Platform.
	ServiceProviderName  string   `protobuf:"bytes,7,opt,name=service_provider_name,json=serviceProviderName,proto3" json:"service_provider_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Encapsulates a single SKU in Google Cloud Platform

func (*Sku) Descriptor

func (*Sku) Descriptor() ([]byte, []int)

func (*Sku) GetCategory

func (m *Sku) GetCategory() *Category

func (*Sku) GetDescription

func (m *Sku) GetDescription() string

func (*Sku) GetName

func (m *Sku) GetName() string

func (*Sku) GetPricingInfo

func (m *Sku) GetPricingInfo() []*PricingInfo

func (*Sku) GetServiceProviderName

func (m *Sku) GetServiceProviderName() string

func (*Sku) GetServiceRegions

func (m *Sku) GetServiceRegions() []string

func (*Sku) GetSkuId

func (m *Sku) GetSkuId() string

func (*Sku) ProtoMessage

func (*Sku) ProtoMessage()

func (*Sku) Reset

func (m *Sku) Reset()

func (*Sku) String

func (m *Sku) String() string

func (*Sku) XXX_DiscardUnknown

func (m *Sku) XXX_DiscardUnknown()

func (*Sku) XXX_Marshal

func (m *Sku) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sku) XXX_Merge

func (m *Sku) XXX_Merge(src proto.Message)

func (*Sku) XXX_Size

func (m *Sku) XXX_Size() int

func (*Sku) XXX_Unmarshal

func (m *Sku) XXX_Unmarshal(b []byte) error

type UnimplementedCloudBillingServer

type UnimplementedCloudBillingServer struct {
}

UnimplementedCloudBillingServer can be embedded to have forward compatible implementations.

func (*UnimplementedCloudBillingServer) CreateBillingAccount

func (*UnimplementedCloudBillingServer) GetBillingAccount

func (*UnimplementedCloudBillingServer) GetIamPolicy

func (*UnimplementedCloudBillingServer) GetProjectBillingInfo

func (*UnimplementedCloudBillingServer) ListBillingAccounts

func (*UnimplementedCloudBillingServer) ListProjectBillingInfo

func (*UnimplementedCloudBillingServer) SetIamPolicy

func (*UnimplementedCloudBillingServer) TestIamPermissions

func (*UnimplementedCloudBillingServer) UpdateBillingAccount

func (*UnimplementedCloudBillingServer) UpdateProjectBillingInfo

type UnimplementedCloudCatalogServer

type UnimplementedCloudCatalogServer struct {
}

UnimplementedCloudCatalogServer can be embedded to have forward compatible implementations.

func (*UnimplementedCloudCatalogServer) ListServices

func (*UnimplementedCloudCatalogServer) ListSkus

type UpdateBillingAccountRequest

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:"-"`
}

Request message for `UpdateBillingAccount`.

func (*UpdateBillingAccountRequest) Descriptor

func (*UpdateBillingAccountRequest) Descriptor() ([]byte, []int)

func (*UpdateBillingAccountRequest) GetAccount

func (*UpdateBillingAccountRequest) GetName

func (m *UpdateBillingAccountRequest) GetName() string

func (*UpdateBillingAccountRequest) GetUpdateMask

func (m *UpdateBillingAccountRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateBillingAccountRequest) ProtoMessage

func (*UpdateBillingAccountRequest) ProtoMessage()

func (*UpdateBillingAccountRequest) Reset

func (m *UpdateBillingAccountRequest) Reset()

func (*UpdateBillingAccountRequest) String

func (m *UpdateBillingAccountRequest) String() string

func (*UpdateBillingAccountRequest) XXX_DiscardUnknown

func (m *UpdateBillingAccountRequest) XXX_DiscardUnknown()

func (*UpdateBillingAccountRequest) XXX_Marshal

func (m *UpdateBillingAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateBillingAccountRequest) XXX_Merge

func (m *UpdateBillingAccountRequest) XXX_Merge(src proto.Message)

func (*UpdateBillingAccountRequest) XXX_Size

func (m *UpdateBillingAccountRequest) XXX_Size() int

func (*UpdateBillingAccountRequest) XXX_Unmarshal

func (m *UpdateBillingAccountRequest) XXX_Unmarshal(b []byte) error

type UpdateProjectBillingInfoRequest

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:"-"`
}

Request message for `UpdateProjectBillingInfo`.

func (*UpdateProjectBillingInfoRequest) Descriptor

func (*UpdateProjectBillingInfoRequest) Descriptor() ([]byte, []int)

func (*UpdateProjectBillingInfoRequest) GetName

func (*UpdateProjectBillingInfoRequest) GetProjectBillingInfo

func (m *UpdateProjectBillingInfoRequest) GetProjectBillingInfo() *ProjectBillingInfo

func (*UpdateProjectBillingInfoRequest) ProtoMessage

func (*UpdateProjectBillingInfoRequest) ProtoMessage()

func (*UpdateProjectBillingInfoRequest) Reset

func (*UpdateProjectBillingInfoRequest) String

func (*UpdateProjectBillingInfoRequest) XXX_DiscardUnknown

func (m *UpdateProjectBillingInfoRequest) XXX_DiscardUnknown()

func (*UpdateProjectBillingInfoRequest) XXX_Marshal

func (m *UpdateProjectBillingInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateProjectBillingInfoRequest) XXX_Merge

func (m *UpdateProjectBillingInfoRequest) XXX_Merge(src proto.Message)

func (*UpdateProjectBillingInfoRequest) XXX_Size

func (m *UpdateProjectBillingInfoRequest) XXX_Size() int

func (*UpdateProjectBillingInfoRequest) XXX_Unmarshal

func (m *UpdateProjectBillingInfoRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL