Class protos.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest (3.2.8)

Represents a CreateBudgetRequest.

Package

@google-cloud/billing-budgets!

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.billing.budgets.v1beta1.ICreateBudgetRequest);

Constructs a new CreateBudgetRequest.

Parameter
NameDescription
properties ICreateBudgetRequest

Properties to set

Properties

budget

public budget?: (google.cloud.billing.budgets.v1beta1.IBudget|null);

CreateBudgetRequest budget.

Property Value
TypeDescription
(google.cloud.billing.budgets.v1beta1.IBudget|null)

parent

public parent: string;

CreateBudgetRequest parent.

Property Value
TypeDescription
string

Methods

create(properties)

public static create(properties?: google.cloud.billing.budgets.v1beta1.ICreateBudgetRequest): google.cloud.billing.budgets.v1beta1.CreateBudgetRequest;

Creates a new CreateBudgetRequest instance using the specified properties.

Parameter
NameDescription
properties ICreateBudgetRequest

Properties to set

Returns
TypeDescription
google.cloud.billing.budgets.v1beta1.CreateBudgetRequest

CreateBudgetRequest instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.billing.budgets.v1beta1.CreateBudgetRequest;

Decodes a CreateBudgetRequest message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.billing.budgets.v1beta1.CreateBudgetRequest

CreateBudgetRequest

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.billing.budgets.v1beta1.CreateBudgetRequest;

Decodes a CreateBudgetRequest message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.billing.budgets.v1beta1.CreateBudgetRequest

CreateBudgetRequest

encode(message, writer)

public static encode(message: google.cloud.billing.budgets.v1beta1.ICreateBudgetRequest, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified CreateBudgetRequest message. Does not implicitly messages.

Parameters
NameDescription
message ICreateBudgetRequest

CreateBudgetRequest message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.billing.budgets.v1beta1.ICreateBudgetRequest, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified CreateBudgetRequest message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message ICreateBudgetRequest

CreateBudgetRequest message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.billing.budgets.v1beta1.CreateBudgetRequest;

Creates a CreateBudgetRequest message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.billing.budgets.v1beta1.CreateBudgetRequest

CreateBudgetRequest

toJSON()

public toJSON(): { [k: string]: any };

Converts this CreateBudgetRequest to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.billing.budgets.v1beta1.CreateBudgetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a CreateBudgetRequest message. Also converts values to other types if specified.

Parameters
NameDescription
message google.cloud.billing.budgets.v1beta1.CreateBudgetRequest

CreateBudgetRequest

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a CreateBudgetRequest message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not