Package com.google.cloud.billing.v1
Class BillingAccount.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
- com.google.cloud.billing.v1.BillingAccount.Builder
-
- All Implemented Interfaces:
BillingAccountOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BillingAccount
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 typegoogle.cloud.billing.v1.BillingAccount
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingAccount.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BillingAccountbuild()BillingAccountbuildPartial()BillingAccount.Builderclear()BillingAccount.BuilderclearDisplayName()The display name given to the billing account, such as `My Billing Account`.BillingAccount.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BillingAccount.BuilderclearMasterBillingAccount()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.BuilderclearName()Output only.BillingAccount.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BillingAccount.BuilderclearOpen()Output only.BillingAccount.Builderclone()BillingAccountgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()The display name given to the billing account, such as `My Billing Account`.com.google.protobuf.ByteStringgetDisplayNameBytes()The display name given to the billing account, such as `My Billing Account`.StringgetMasterBillingAccount()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.ByteStringgetMasterBillingAccountBytes()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.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.booleangetOpen()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BillingAccount.BuildermergeFrom(BillingAccount other)BillingAccount.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BillingAccount.BuildermergeFrom(com.google.protobuf.Message other)BillingAccount.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BillingAccount.BuildersetDisplayName(String value)The display name given to the billing account, such as `My Billing Account`.BillingAccount.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)The display name given to the billing account, such as `My Billing Account`.BillingAccount.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BillingAccount.BuildersetMasterBillingAccount(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.BuildersetMasterBillingAccountBytes(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.BuildersetName(String value)Output only.BillingAccount.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.BillingAccount.BuildersetOpen(boolean value)Output only.BillingAccount.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BillingAccount.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
clear
public BillingAccount.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
getDefaultInstanceForType
public BillingAccount getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BillingAccount build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BillingAccount buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BillingAccount.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
setField
public BillingAccount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
clearField
public BillingAccount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
clearOneof
public BillingAccount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
setRepeatedField
public BillingAccount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
addRepeatedField
public BillingAccount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
mergeFrom
public BillingAccount.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BillingAccount.Builder>
-
mergeFrom
public BillingAccount.Builder mergeFrom(BillingAccount other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
mergeFrom
public BillingAccount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BillingAccount.Builder>- Throws:
IOException
-
getName
public 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) = { ... }- Specified by:
getNamein interfaceBillingAccountOrBuilder- Returns:
- The name.
-
getNameBytes
public 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) = { ... }- Specified by:
getNameBytesin interfaceBillingAccountOrBuilder- Returns:
- The bytes for name.
-
setName
public 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) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
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) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getOpen
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 will be unable to use paid services.
bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOpenin interfaceBillingAccountOrBuilder- Returns:
- The open.
-
setOpen
public 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 will be unable to use paid services.
bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The open to set.- Returns:
- This builder for chaining.
-
clearOpen
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 will be unable to use paid services.
bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getDisplayName
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;- Specified by:
getDisplayNamein interfaceBillingAccountOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public 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;- Specified by:
getDisplayNameBytesin interfaceBillingAccountOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public 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;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
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;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getMasterBillingAccount
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;- Specified by:
getMasterBillingAccountin interfaceBillingAccountOrBuilder- Returns:
- The masterBillingAccount.
-
getMasterBillingAccountBytes
public 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;- Specified by:
getMasterBillingAccountBytesin interfaceBillingAccountOrBuilder- Returns:
- The bytes for masterBillingAccount.
-
setMasterBillingAccount
public 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;- Parameters:
value- The masterBillingAccount to set.- Returns:
- This builder for chaining.
-
clearMasterBillingAccount
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;- Returns:
- This builder for chaining.
-
setMasterBillingAccountBytes
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;- Parameters:
value- The bytes for masterBillingAccount to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BillingAccount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
mergeUnknownFields
public final BillingAccount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BillingAccount.Builder>
-
-