Class UpdateBudgetRequest.Builder (2.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateBudgetRequest build()
Returns
TypeDescription
UpdateBudgetRequest

buildPartial()

public UpdateBudgetRequest buildPartial()
Returns
TypeDescription
UpdateBudgetRequest

clear()

public UpdateBudgetRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
UpdateBudgetRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateBudgetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateBudgetRequest.Builder

clone()

public UpdateBudgetRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
BudgetOrBuilder

getDefaultInstanceForType()

public UpdateBudgetRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateBudgetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateMask 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 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
NameDescription
valueBudget
Returns
TypeDescription
UpdateBudgetRequest.Builder

mergeFrom(UpdateBudgetRequest other)

public UpdateBudgetRequest.Builder mergeFrom(UpdateBudgetRequest other)
Parameter
NameDescription
otherUpdateBudgetRequest
Returns
TypeDescription
UpdateBudgetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateBudgetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueBudget
Returns
TypeDescription
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
NameDescription
builderForValueBudget.Builder
Returns
TypeDescription
UpdateBudgetRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateBudgetRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateBudgetRequest.Builder