Google Cloud Billing Budgets V1beta1 Client - Class UpdateBudgetRequest (1.1.0)

Reference documentation and code samples for the Google Cloud Billing Budgets V1beta1 Client class UpdateBudgetRequest.

Request for UpdateBudget

Generated from protobuf message google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ budget Google\Cloud\Billing\Budgets\V1beta1\Budget

Required. The updated budget object. The budget to update is specified by the budget name in the budget.

↳ update_mask Google\Protobuf\FieldMask

Optional. Indicates which fields in the provided budget to update. Read-only fields (such as name) cannot be changed. If this is not provided, then only fields with non-default values from the request are updated. See https://developers.google.com/protocol-buffers/docs/proto3#default for more details about default values.

getBudget

Required. The updated budget object.

The budget to update is specified by the budget name in the budget.

Returns
TypeDescription
Google\Cloud\Billing\Budgets\V1beta1\Budget|null

hasBudget

clearBudget

setBudget

Required. The updated budget object.

The budget to update is specified by the budget name in the budget.

Parameter
NameDescription
var Google\Cloud\Billing\Budgets\V1beta1\Budget
Returns
TypeDescription
$this

getUpdateMask

Optional. Indicates which fields in the provided budget to update.

Read-only fields (such as name) cannot be changed. If this is not provided, then only fields with non-default values from the request are updated. See https://developers.google.com/protocol-buffers/docs/proto3#default for more details about default values.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Optional. Indicates which fields in the provided budget to update.

Read-only fields (such as name) cannot be changed. If this is not provided, then only fields with non-default values from the request are updated. See https://developers.google.com/protocol-buffers/docs/proto3#default for more details about default values.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this