Class CreateBudgetRequest.Builder (2.12.0)

public static final class CreateBudgetRequest.Builder extends GeneratedMessageV3.Builder<CreateBudgetRequest.Builder> implements CreateBudgetRequestOrBuilder

Request for CreateBudget

Protobuf type google.cloud.billing.budgets.v1beta1.CreateBudgetRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateBudgetRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateBudgetRequest.Builder
Overrides

build()

public CreateBudgetRequest build()
Returns
TypeDescription
CreateBudgetRequest

buildPartial()

public CreateBudgetRequest buildPartial()
Returns
TypeDescription
CreateBudgetRequest

clear()

public CreateBudgetRequest.Builder clear()
Returns
TypeDescription
CreateBudgetRequest.Builder
Overrides

clearBudget()

public CreateBudgetRequest.Builder clearBudget()

Required. Budget to create.

.google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateBudgetRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateBudgetRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateBudgetRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateBudgetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateBudgetRequest.Builder
Overrides

clearParent()

public CreateBudgetRequest.Builder clearParent()

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateBudgetRequest.Builder

This builder for chaining.

clone()

public CreateBudgetRequest.Builder clone()
Returns
TypeDescription
CreateBudgetRequest.Builder
Overrides

getBudget()

public Budget getBudget()

Required. Budget to create.

.google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Budget

The budget.

getBudgetBuilder()

public Budget.Builder getBudgetBuilder()

Required. Budget to create.

.google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Budget.Builder

getBudgetOrBuilder()

public BudgetOrBuilder getBudgetOrBuilder()

Required. Budget to create.

.google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BudgetOrBuilder

getDefaultInstanceForType()

public CreateBudgetRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateBudgetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

hasBudget()

public boolean hasBudget()

Required. Budget to create.

.google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the budget field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBudget(Budget value)

public CreateBudgetRequest.Builder mergeBudget(Budget value)

Required. Budget to create.

.google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBudget
Returns
TypeDescription
CreateBudgetRequest.Builder

mergeFrom(CreateBudgetRequest other)

public CreateBudgetRequest.Builder mergeFrom(CreateBudgetRequest other)
Parameter
NameDescription
otherCreateBudgetRequest
Returns
TypeDescription
CreateBudgetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateBudgetRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBudgetRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateBudgetRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateBudgetRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateBudgetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateBudgetRequest.Builder
Overrides

setBudget(Budget value)

public CreateBudgetRequest.Builder setBudget(Budget value)

Required. Budget to create.

.google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBudget
Returns
TypeDescription
CreateBudgetRequest.Builder

setBudget(Budget.Builder builderForValue)

public CreateBudgetRequest.Builder setBudget(Budget.Builder builderForValue)

Required. Budget to create.

.google.cloud.billing.budgets.v1beta1.Budget budget = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBudget.Builder
Returns
TypeDescription
CreateBudgetRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateBudgetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateBudgetRequest.Builder
Overrides

setParent(String value)

public CreateBudgetRequest.Builder setParent(String value)

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateBudgetRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateBudgetRequest.Builder setParentBytes(ByteString value)

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateBudgetRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateBudgetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateBudgetRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateBudgetRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateBudgetRequest.Builder
Overrides