Class MoveBillingAccountRequest.Builder (2.83.0)

public static final class MoveBillingAccountRequest.Builder extends GeneratedMessage.Builder<MoveBillingAccountRequest.Builder> implements MoveBillingAccountRequestOrBuilder

Request message for MoveBillingAccount RPC.

Protobuf type google.cloud.billing.v1.MoveBillingAccountRequest

Static Methods

getDescriptor()

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

Methods

build()

public MoveBillingAccountRequest build()
Returns
Type Description
MoveBillingAccountRequest

buildPartial()

public MoveBillingAccountRequest buildPartial()
Returns
Type Description
MoveBillingAccountRequest

clear()

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

clearDestinationParent()

public MoveBillingAccountRequest.Builder clearDestinationParent()

Required. The resource name of the Organization to move the billing account under. Must be of the form organizations/{organization_id}.

string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
MoveBillingAccountRequest.Builder

This builder for chaining.

clearName()

public MoveBillingAccountRequest.Builder clearName()

Required. The resource name of the billing account to move. Must be of the form billingAccounts/{billing_account_id}. The specified billing account cannot be a subaccount, since a subaccount always belongs to the same organization as its parent account.

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

Returns
Type Description
MoveBillingAccountRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public MoveBillingAccountRequest getDefaultInstanceForType()
Returns
Type Description
MoveBillingAccountRequest

getDescriptorForType()

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

getDestinationParent()

public String getDestinationParent()

Required. The resource name of the Organization to move the billing account under. Must be of the form organizations/{organization_id}.

string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The destinationParent.

getDestinationParentBytes()

public ByteString getDestinationParentBytes()

Required. The resource name of the Organization to move the billing account under. Must be of the form organizations/{organization_id}.

string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for destinationParent.

getName()

public String getName()

Required. The resource name of the billing account to move. Must be of the form billingAccounts/{billing_account_id}. The specified billing account cannot be a subaccount, since a subaccount always belongs to the same organization as its parent account.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the billing account to move. Must be of the form billingAccounts/{billing_account_id}. The specified billing account cannot be a subaccount, since a subaccount always belongs to the same organization as its parent account.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MoveBillingAccountRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDestinationParent(String value)

public MoveBillingAccountRequest.Builder setDestinationParent(String value)

Required. The resource name of the Organization to move the billing account under. Must be of the form organizations/{organization_id}.

string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The destinationParent to set.

Returns
Type Description
MoveBillingAccountRequest.Builder

This builder for chaining.

setDestinationParentBytes(ByteString value)

public MoveBillingAccountRequest.Builder setDestinationParentBytes(ByteString value)

Required. The resource name of the Organization to move the billing account under. Must be of the form organizations/{organization_id}.

string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for destinationParent to set.

Returns
Type Description
MoveBillingAccountRequest.Builder

This builder for chaining.

setName(String value)

public MoveBillingAccountRequest.Builder setName(String value)

Required. The resource name of the billing account to move. Must be of the form billingAccounts/{billing_account_id}. The specified billing account cannot be a subaccount, since a subaccount always belongs to the same organization as its parent account.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
MoveBillingAccountRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MoveBillingAccountRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the billing account to move. Must be of the form billingAccounts/{billing_account_id}. The specified billing account cannot be a subaccount, since a subaccount always belongs to the same organization as its parent account.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
MoveBillingAccountRequest.Builder

This builder for chaining.