Class UpdateBudgetRequest.Builder (2.55.0)

public static final class UpdateBudgetRequest.Builder extends GeneratedMessageV3.Builder<UpdateBudgetRequest.Builder> implements UpdateBudgetRequestOrBuilder

Request for UpdateBudget

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateBudgetRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateBudgetRequest.Builder
Overrides

build()

public UpdateBudgetRequest build()
Returns
Type Description
UpdateBudgetRequest

buildPartial()

public UpdateBudgetRequest buildPartial()
Returns
Type Description
UpdateBudgetRequest

clear()

public UpdateBudgetRequest.Builder clear()
Returns
Type Description
UpdateBudgetRequest.Builder
Overrides

clearBudget()

public UpdateBudgetRequest.Builder clearBudget()

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

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

Returns
Type Description
UpdateBudgetRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateBudgetRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateBudgetRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateBudgetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateBudgetRequest.Builder
Overrides

clearUpdateMask()

public UpdateBudgetRequest.Builder clearUpdateMask()

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.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateBudgetRequest.Builder

clone()

public UpdateBudgetRequest.Builder clone()
Returns
Type Description
UpdateBudgetRequest.Builder
Overrides

getBudget()

public Budget getBudget()

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

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

Returns
Type Description
Budget

The budget.

getBudgetBuilder()

public Budget.Builder getBudgetBuilder()

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

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

Returns
Type Description
Budget.Builder

getBudgetOrBuilder()

public BudgetOrBuilder getBudgetOrBuilder()

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

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

Returns
Type Description
BudgetOrBuilder

getDefaultInstanceForType()

public UpdateBudgetRequest getDefaultInstanceForType()
Returns
Type Description
UpdateBudgetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUpdateMask()

public FieldMask 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.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

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.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

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.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMaskOrBuilder

hasBudget()

public boolean hasBudget()

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

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

Returns
Type Description
boolean

Whether the budget field is set.

hasUpdateMask()

public boolean hasUpdateMask()

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.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBudget(Budget value)

public UpdateBudgetRequest.Builder mergeBudget(Budget value)

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

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

Parameter
Name Description
value Budget
Returns
Type Description
UpdateBudgetRequest.Builder

mergeFrom(UpdateBudgetRequest other)

public UpdateBudgetRequest.Builder mergeFrom(UpdateBudgetRequest other)
Parameter
Name Description
other UpdateBudgetRequest
Returns
Type Description
UpdateBudgetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateBudgetRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateBudgetRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateBudgetRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateBudgetRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateBudgetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateBudgetRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateBudgetRequest.Builder mergeUpdateMask(FieldMask value)

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.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateBudgetRequest.Builder

setBudget(Budget value)

public UpdateBudgetRequest.Builder setBudget(Budget value)

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

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

Parameter
Name Description
value Budget
Returns
Type Description
UpdateBudgetRequest.Builder

setBudget(Budget.Builder builderForValue)

public UpdateBudgetRequest.Builder setBudget(Budget.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Budget.Builder
Returns
Type Description
UpdateBudgetRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateBudgetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateBudgetRequest.Builder
Overrides

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

public UpdateBudgetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateBudgetRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateBudgetRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateBudgetRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateBudgetRequest.Builder setUpdateMask(FieldMask value)

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.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateBudgetRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateBudgetRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

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.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateBudgetRequest.Builder