Google Cloud Billing Budgets V1 Client - Class CreateBudgetRequest (2.1.1)

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

Request for CreateBudget

Generated from protobuf messagegoogle.cloud.billing.budgets.v1.CreateBudgetRequest

Namespace

Google \ Cloud \ Billing \ Budgets \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

Required. The name of the billing account to create the budget in. Values are of the formbillingAccounts/{billingAccountId}.

↳ budgetBudget

Required. Budget to create.

getParent

Required. The name of the billing account to create the budget in. Valuesare of the formbillingAccounts/{billingAccountId}.

Returns
TypeDescription
string

setParent

Required. The name of the billing account to create the budget in. Valuesare of the formbillingAccounts/{billingAccountId}.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getBudget

Required. Budget to create.

Returns
TypeDescription
Budget|null

hasBudget

clearBudget

setBudget

Required. Budget to create.

Parameter
NameDescription
varBudget
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parentstring

Required. The name of the billing account to create the budget in. Valuesare of the formbillingAccounts/{billingAccountId}. Please seeBudgetServiceClient::billingAccountName() for help formatting this field.

budgetBudget

Required. Budget to create.

Returns
TypeDescription
CreateBudgetRequest

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.