Class UpdateProjectBillingInfoRequest.Builder (2.83.0)

public static final class UpdateProjectBillingInfoRequest.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

public UpdateProjectBillingInfoRequest build()
Returns
Type Description
UpdateProjectBillingInfoRequest

buildPartial()

public UpdateProjectBillingInfoRequest buildPartial()
Returns
Type Description
UpdateProjectBillingInfoRequest

clear()

public UpdateProjectBillingInfoRequest.Builder clear()
Returns
Type Description
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
Type Description
UpdateProjectBillingInfoRequest.Builder

This builder for chaining.

clearProjectBillingInfo()

public UpdateProjectBillingInfoRequest.Builder clearProjectBillingInfo()

The new billing information for the project. Output-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
Type Description
UpdateProjectBillingInfoRequest.Builder

getDefaultInstanceForType()

public UpdateProjectBillingInfoRequest getDefaultInstanceForType()
Returns
Type Description
UpdateProjectBillingInfoRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getProjectBillingInfo()

public ProjectBillingInfo getProjectBillingInfo()

The new billing information for the project. Output-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
Type Description
ProjectBillingInfo

The projectBillingInfo.

getProjectBillingInfoBuilder()

public ProjectBillingInfo.Builder getProjectBillingInfoBuilder()

The new billing information for the project. Output-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
Type Description
ProjectBillingInfo.Builder

getProjectBillingInfoOrBuilder()

public ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder()

The new billing information for the project. Output-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
Type Description
ProjectBillingInfoOrBuilder

hasProjectBillingInfo()

public boolean hasProjectBillingInfo()

The new billing information for the project. Output-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
Type Description
boolean

Whether the projectBillingInfo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateProjectBillingInfoRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProjectBillingInfo(ProjectBillingInfo value)

public UpdateProjectBillingInfoRequest.Builder mergeProjectBillingInfo(ProjectBillingInfo value)

The new billing information for the project. Output-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
Name Description
value ProjectBillingInfo
Returns
Type Description
UpdateProjectBillingInfoRequest.Builder

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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
UpdateProjectBillingInfoRequest.Builder

This builder for chaining.

setProjectBillingInfo(ProjectBillingInfo value)

public UpdateProjectBillingInfoRequest.Builder setProjectBillingInfo(ProjectBillingInfo value)

The new billing information for the project. Output-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
Name Description
value ProjectBillingInfo
Returns
Type Description
UpdateProjectBillingInfoRequest.Builder

setProjectBillingInfo(ProjectBillingInfo.Builder builderForValue)

public UpdateProjectBillingInfoRequest.Builder setProjectBillingInfo(ProjectBillingInfo.Builder builderForValue)

The new billing information for the project. Output-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
Name Description
builderForValue ProjectBillingInfo.Builder
Returns
Type Description
UpdateProjectBillingInfoRequest.Builder