Google Cloud Billing Budgets V1 Client - Class UpdateBudgetRequest (2.0.2)

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

Request for UpdateBudget

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

Namespace

Google \ Cloud \ Billing \ Budgets \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ budget 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
Type Description
Budget|null

hasBudget

clearBudget

setBudget

Required. The updated budget object.

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

Parameter
Name Description
var Budget
Returns
Type Description
$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
Type Description
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
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
budget Budget

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

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

Returns
Type Description
UpdateBudgetRequest