Class UpdateProjectBillingInfoRequest.Builder (2.5.0)

public static final class UpdateProjectBillingInfoRequest.Builder extends GeneratedMessageV3.Builder<UpdateProjectBillingInfoRequest.Builder> implements UpdateProjectBillingInfoRequestOrBuilder

Request message for UpdateProjectBillingInfo.

Protobuf type google.cloud.billing.v1.UpdateProjectBillingInfoRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateProjectBillingInfoRequest build()
Returns
TypeDescription
UpdateProjectBillingInfoRequest

buildPartial()

public UpdateProjectBillingInfoRequest buildPartial()
Returns
TypeDescription
UpdateProjectBillingInfoRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public UpdateProjectBillingInfoRequest.Builder clearName()

Required. The resource name of the project associated with the billing information that you want to update. For example, projects/tokyo-rain-123.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateProjectBillingInfoRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectBillingInfo()

public UpdateProjectBillingInfoRequest.Builder clearProjectBillingInfo()

The new billing information for the project. Read-only fields are ignored; thus, you can leave empty all fields except billing_account_name.

.google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;

Returns
TypeDescription
UpdateProjectBillingInfoRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateProjectBillingInfoRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateProjectBillingInfoRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the project associated with the billing information that you want to update. For example, projects/tokyo-rain-123.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the project associated with the billing information that you want to update. For example, projects/tokyo-rain-123.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getProjectBillingInfo()

public ProjectBillingInfo getProjectBillingInfo()

The new billing information for the project. Read-only fields are ignored; thus, you can leave empty all fields except billing_account_name.

.google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;

Returns
TypeDescription
ProjectBillingInfo

The projectBillingInfo.

getProjectBillingInfoBuilder()

public ProjectBillingInfo.Builder getProjectBillingInfoBuilder()

The new billing information for the project. Read-only fields are ignored; thus, you can leave empty all fields except billing_account_name.

.google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;

Returns
TypeDescription
ProjectBillingInfo.Builder

getProjectBillingInfoOrBuilder()

public ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder()

The new billing information for the project. Read-only fields are ignored; thus, you can leave empty all fields except billing_account_name.

.google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;

Returns
TypeDescription
ProjectBillingInfoOrBuilder

hasProjectBillingInfo()

public boolean hasProjectBillingInfo()

The new billing information for the project. Read-only fields are ignored; thus, you can leave empty all fields except billing_account_name.

.google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;

Returns
TypeDescription
boolean

Whether the projectBillingInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateProjectBillingInfoRequest other)

public UpdateProjectBillingInfoRequest.Builder mergeFrom(UpdateProjectBillingInfoRequest other)
Parameter
NameDescription
otherUpdateProjectBillingInfoRequest
Returns
TypeDescription
UpdateProjectBillingInfoRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProjectBillingInfo(ProjectBillingInfo value)

public UpdateProjectBillingInfoRequest.Builder mergeProjectBillingInfo(ProjectBillingInfo value)

The new billing information for the project. Read-only fields are ignored; thus, you can leave empty all fields except billing_account_name.

.google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;

Parameter
NameDescription
valueProjectBillingInfo
Returns
TypeDescription
UpdateProjectBillingInfoRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public UpdateProjectBillingInfoRequest.Builder setName(String value)

Required. The resource name of the project associated with the billing information that you want to update. For example, projects/tokyo-rain-123.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
UpdateProjectBillingInfoRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateProjectBillingInfoRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the project associated with the billing information that you want to update. For example, projects/tokyo-rain-123.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UpdateProjectBillingInfoRequest.Builder

This builder for chaining.

setProjectBillingInfo(ProjectBillingInfo value)

public UpdateProjectBillingInfoRequest.Builder setProjectBillingInfo(ProjectBillingInfo value)

The new billing information for the project. Read-only fields are ignored; thus, you can leave empty all fields except billing_account_name.

.google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;

Parameter
NameDescription
valueProjectBillingInfo
Returns
TypeDescription
UpdateProjectBillingInfoRequest.Builder

setProjectBillingInfo(ProjectBillingInfo.Builder builderForValue)

public UpdateProjectBillingInfoRequest.Builder setProjectBillingInfo(ProjectBillingInfo.Builder builderForValue)

The new billing information for the project. Read-only fields are ignored; thus, you can leave empty all fields except billing_account_name.

.google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;

Parameter
NameDescription
builderForValueProjectBillingInfo.Builder
Returns
TypeDescription
UpdateProjectBillingInfoRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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