Class CreateBillingAccountRequest (2.18.0)

public final class CreateBillingAccountRequest extends GeneratedMessageV3 implements CreateBillingAccountRequestOrBuilder

Request message for CreateBillingAccount.

Protobuf type google.cloud.billing.v1.CreateBillingAccountRequest

Static Fields

BILLING_ACCOUNT_FIELD_NUMBER

public static final int BILLING_ACCOUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateBillingAccountRequest getDefaultInstance()
Returns
TypeDescription
CreateBillingAccountRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateBillingAccountRequest.Builder newBuilder()
Returns
TypeDescription
CreateBillingAccountRequest.Builder

newBuilder(CreateBillingAccountRequest prototype)

public static CreateBillingAccountRequest.Builder newBuilder(CreateBillingAccountRequest prototype)
Parameter
NameDescription
prototypeCreateBillingAccountRequest
Returns
TypeDescription
CreateBillingAccountRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateBillingAccountRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateBillingAccountRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateBillingAccountRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateBillingAccountRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateBillingAccountRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateBillingAccountRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateBillingAccountRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateBillingAccountRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateBillingAccountRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateBillingAccountRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateBillingAccountRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateBillingAccountRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBillingAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateBillingAccountRequest> parser()
Returns
TypeDescription
Parser<CreateBillingAccountRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBillingAccount()

public BillingAccount getBillingAccount()

Required. The billing account resource to create. Currently CreateBillingAccount only supports subaccount creation, so any created billing accounts must be under a provided parent billing account.

.google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BillingAccount

The billingAccount.

getBillingAccountOrBuilder()

public BillingAccountOrBuilder getBillingAccountOrBuilder()

Required. The billing account resource to create. Currently CreateBillingAccount only supports subaccount creation, so any created billing accounts must be under a provided parent billing account.

.google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BillingAccountOrBuilder

getDefaultInstanceForType()

public CreateBillingAccountRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateBillingAccountRequest

getParserForType()

public Parser<CreateBillingAccountRequest> getParserForType()
Returns
TypeDescription
Parser<CreateBillingAccountRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasBillingAccount()

public boolean hasBillingAccount()

Required. The billing account resource to create. Currently CreateBillingAccount only supports subaccount creation, so any created billing accounts must be under a provided parent billing account.

.google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the billingAccount field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateBillingAccountRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateBillingAccountRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateBillingAccountRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateBillingAccountRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateBillingAccountRequest.Builder toBuilder()
Returns
TypeDescription
CreateBillingAccountRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException