public final class BillingAccount extends GeneratedMessageV3 implements BillingAccountOrBuilder
A billing account in GCP Console.
You can assign a billing account to one or more projects.
Protobuf type google.cloud.billing.v1.BillingAccount
Static Fields
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
MASTER_BILLING_ACCOUNT_FIELD_NUMBER
public static final int MASTER_BILLING_ACCOUNT_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
OPEN_FIELD_NUMBER
public static final int OPEN_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static BillingAccount getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static BillingAccount.Builder newBuilder()
Returns
newBuilder(BillingAccount prototype)
public static BillingAccount.Builder newBuilder(BillingAccount prototype)
Parameter
Returns
public static BillingAccount parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static BillingAccount parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static BillingAccount parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BillingAccount parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static BillingAccount parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BillingAccount parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BillingAccount parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static BillingAccount parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BillingAccount parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static BillingAccount parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static BillingAccount parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BillingAccount parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<BillingAccount> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public BillingAccount getDefaultInstanceForType()
Returns
getDisplayName()
public String getDisplayName()
The display name given to the billing account, such as My Billing
Account
. This name is displayed in the GCP Console.
string display_name = 3;
Returns
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
The display name given to the billing account, such as My Billing
Account
. This name is displayed in the GCP Console.
string display_name = 3;
Returns
Type | Description |
ByteString | The bytes for displayName.
|
getMasterBillingAccount()
public String getMasterBillingAccount()
If this account is a
subaccount, then this
will be the resource name of the master billing account that it is being
resold through.
Otherwise this will be empty.
string master_billing_account = 4;
Returns
Type | Description |
String | The masterBillingAccount.
|
getMasterBillingAccountBytes()
public ByteString getMasterBillingAccountBytes()
If this account is a
subaccount, then this
will be the resource name of the master billing account that it is being
resold through.
Otherwise this will be empty.
string master_billing_account = 4;
Returns
Type | Description |
ByteString | The bytes for masterBillingAccount.
|
getName()
The resource name of the billing account. The resource name has the form
billingAccounts/{billing_account_id}
. For example,
billingAccounts/012345-567890-ABCDEF
would be the resource name for
billing account 012345-567890-ABCDEF
.
string name = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name of the billing account. The resource name has the form
billingAccounts/{billing_account_id}
. For example,
billingAccounts/012345-567890-ABCDEF
would be the resource name for
billing account 012345-567890-ABCDEF
.
string name = 1 [(.google.api.resource_reference) = { ... }
Returns
getOpen()
Output only. True if the billing account is open, and will therefore be charged for any
usage on associated projects. False if the billing account is closed, and
therefore projects associated with it will be unable to use paid services.
bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getParserForType()
public Parser<BillingAccount> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public BillingAccount.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BillingAccount.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public BillingAccount.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions