public static final class BillingAccount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder> implements BillingAccountOrBuilder
A billing account in the [Google Cloud Console](https://console.cloud.google.com/). You can assign a billing account to one or more projects.Protobuf type
google.cloud.billing.v1.BillingAccount| Modifier and Type | Method and Description |
|---|---|
BillingAccount.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BillingAccount |
build() |
BillingAccount |
buildPartial() |
BillingAccount.Builder |
clear() |
BillingAccount.Builder |
clearDisplayName()
The display name given to the billing account, such as `My Billing
Account`.
|
BillingAccount.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BillingAccount.Builder |
clearMasterBillingAccount()
If this account is a
[subaccount](https://cloud.google.com/billing/docs/concepts), then this
will be the resource name of the parent billing account that it is being
resold through.
|
BillingAccount.Builder |
clearName()
Output only.
|
BillingAccount.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BillingAccount.Builder |
clearOpen()
Output only.
|
BillingAccount.Builder |
clearParent()
Output only.
|
BillingAccount.Builder |
clone() |
BillingAccount |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
The display name given to the billing account, such as `My Billing
Account`.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
The display name given to the billing account, such as `My Billing
Account`.
|
String |
getMasterBillingAccount()
If this account is a
[subaccount](https://cloud.google.com/billing/docs/concepts), then this
will be the resource name of the parent billing account that it is being
resold through.
|
com.google.protobuf.ByteString |
getMasterBillingAccountBytes()
If this account is a
[subaccount](https://cloud.google.com/billing/docs/concepts), then this
will be the resource name of the parent billing account that it is being
resold through.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
boolean |
getOpen()
Output only.
|
String |
getParent()
Output only.
|
com.google.protobuf.ByteString |
getParentBytes()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BillingAccount.Builder |
mergeFrom(BillingAccount other) |
BillingAccount.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BillingAccount.Builder |
mergeFrom(com.google.protobuf.Message other) |
BillingAccount.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BillingAccount.Builder |
setDisplayName(String value)
The display name given to the billing account, such as `My Billing
Account`.
|
BillingAccount.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
The display name given to the billing account, such as `My Billing
Account`.
|
BillingAccount.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BillingAccount.Builder |
setMasterBillingAccount(String value)
If this account is a
[subaccount](https://cloud.google.com/billing/docs/concepts), then this
will be the resource name of the parent billing account that it is being
resold through.
|
BillingAccount.Builder |
setMasterBillingAccountBytes(com.google.protobuf.ByteString value)
If this account is a
[subaccount](https://cloud.google.com/billing/docs/concepts), then this
will be the resource name of the parent billing account that it is being
resold through.
|
BillingAccount.Builder |
setName(String value)
Output only.
|
BillingAccount.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
BillingAccount.Builder |
setOpen(boolean value)
Output only.
|
BillingAccount.Builder |
setParent(String value)
Output only.
|
BillingAccount.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Output only.
|
BillingAccount.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BillingAccount.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>public BillingAccount.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>public BillingAccount getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BillingAccount build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BillingAccount buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BillingAccount.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>public BillingAccount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>public BillingAccount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>public BillingAccount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>public BillingAccount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>public BillingAccount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>public BillingAccount.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BillingAccount.Builder>public BillingAccount.Builder mergeFrom(BillingAccount other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>public BillingAccount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BillingAccount.Builder>IOExceptionpublic String getName()
Output only. 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.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getName in interface BillingAccountOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. 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.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getNameBytes in interface BillingAccountOrBuilderpublic BillingAccount.Builder setName(String value)
Output only. 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.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
value - The name to set.public BillingAccount.Builder clearName()
Output only. 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.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
public BillingAccount.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. 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.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
value - The bytes for name to set.public boolean 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 are unable to use paid services.
bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getOpen in interface BillingAccountOrBuilderpublic BillingAccount.Builder setOpen(boolean value)
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 are unable to use paid services.
bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The open to set.public BillingAccount.Builder clearOpen()
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 are unable to use paid services.
bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];public String getDisplayName()
The display name given to the billing account, such as `My Billing Account`. This name is displayed in the Google Cloud Console.
string display_name = 3;getDisplayName in interface BillingAccountOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
The display name given to the billing account, such as `My Billing Account`. This name is displayed in the Google Cloud Console.
string display_name = 3;getDisplayNameBytes in interface BillingAccountOrBuilderpublic BillingAccount.Builder setDisplayName(String value)
The display name given to the billing account, such as `My Billing Account`. This name is displayed in the Google Cloud Console.
string display_name = 3;value - The displayName to set.public BillingAccount.Builder clearDisplayName()
The display name given to the billing account, such as `My Billing Account`. This name is displayed in the Google Cloud Console.
string display_name = 3;public BillingAccount.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
The display name given to the billing account, such as `My Billing Account`. This name is displayed in the Google Cloud Console.
string display_name = 3;value - The bytes for displayName to set.public String getMasterBillingAccount()
If this account is a [subaccount](https://cloud.google.com/billing/docs/concepts), then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
string master_billing_account = 4;getMasterBillingAccount in interface BillingAccountOrBuilderpublic com.google.protobuf.ByteString getMasterBillingAccountBytes()
If this account is a [subaccount](https://cloud.google.com/billing/docs/concepts), then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
string master_billing_account = 4;getMasterBillingAccountBytes in interface BillingAccountOrBuilderpublic BillingAccount.Builder setMasterBillingAccount(String value)
If this account is a [subaccount](https://cloud.google.com/billing/docs/concepts), then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
string master_billing_account = 4;value - The masterBillingAccount to set.public BillingAccount.Builder clearMasterBillingAccount()
If this account is a [subaccount](https://cloud.google.com/billing/docs/concepts), then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
string master_billing_account = 4;public BillingAccount.Builder setMasterBillingAccountBytes(com.google.protobuf.ByteString value)
If this account is a [subaccount](https://cloud.google.com/billing/docs/concepts), then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
string master_billing_account = 4;value - The bytes for masterBillingAccount to set.public String getParent()
Output only. The billing account's parent resource identifier.
Use the `MoveBillingAccount` method to update the account's parent resource
if it is a organization.
Format:
- `organizations/{organization_id}`, for example,
`organizations/12345678`
- `billingAccounts/{billing_account_id}`, for example,
`billingAccounts/012345-567890-ABCDEF`
string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getParent in interface BillingAccountOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
Output only. The billing account's parent resource identifier.
Use the `MoveBillingAccount` method to update the account's parent resource
if it is a organization.
Format:
- `organizations/{organization_id}`, for example,
`organizations/12345678`
- `billingAccounts/{billing_account_id}`, for example,
`billingAccounts/012345-567890-ABCDEF`
string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getParentBytes in interface BillingAccountOrBuilderpublic BillingAccount.Builder setParent(String value)
Output only. The billing account's parent resource identifier.
Use the `MoveBillingAccount` method to update the account's parent resource
if it is a organization.
Format:
- `organizations/{organization_id}`, for example,
`organizations/12345678`
- `billingAccounts/{billing_account_id}`, for example,
`billingAccounts/012345-567890-ABCDEF`
string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The parent to set.public BillingAccount.Builder clearParent()
Output only. The billing account's parent resource identifier.
Use the `MoveBillingAccount` method to update the account's parent resource
if it is a organization.
Format:
- `organizations/{organization_id}`, for example,
`organizations/12345678`
- `billingAccounts/{billing_account_id}`, for example,
`billingAccounts/012345-567890-ABCDEF`
string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];public BillingAccount.Builder setParentBytes(com.google.protobuf.ByteString value)
Output only. The billing account's parent resource identifier.
Use the `MoveBillingAccount` method to update the account's parent resource
if it is a organization.
Format:
- `organizations/{organization_id}`, for example,
`organizations/12345678`
- `billingAccounts/{billing_account_id}`, for example,
`billingAccounts/012345-567890-ABCDEF`
string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for parent to set.public final BillingAccount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>public final BillingAccount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>Copyright © 2024 Google LLC. All rights reserved.