Class GetBillingAccountRequest.Builder (2.21.0)

public static final class GetBillingAccountRequest.Builder extends GeneratedMessageV3.Builder<GetBillingAccountRequest.Builder> implements GetBillingAccountRequestOrBuilder

Request message for GetBillingAccount.

Protobuf type google.cloud.billing.v1.GetBillingAccountRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetBillingAccountRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetBillingAccountRequest.Builder
Overrides

build()

public GetBillingAccountRequest build()
Returns
TypeDescription
GetBillingAccountRequest

buildPartial()

public GetBillingAccountRequest buildPartial()
Returns
TypeDescription
GetBillingAccountRequest

clear()

public GetBillingAccountRequest.Builder clear()
Returns
TypeDescription
GetBillingAccountRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetBillingAccountRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetBillingAccountRequest.Builder
Overrides

clearName()

public GetBillingAccountRequest.Builder clearName()

Required. The resource name of the billing account to retrieve. For example, billingAccounts/012345-567890-ABCDEF.

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

Returns
TypeDescription
GetBillingAccountRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetBillingAccountRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetBillingAccountRequest.Builder
Overrides

clone()

public GetBillingAccountRequest.Builder clone()
Returns
TypeDescription
GetBillingAccountRequest.Builder
Overrides

getDefaultInstanceForType()

public GetBillingAccountRequest getDefaultInstanceForType()
Returns
TypeDescription
GetBillingAccountRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the billing account to retrieve. For example, billingAccounts/012345-567890-ABCDEF.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the billing account to retrieve. For example, billingAccounts/012345-567890-ABCDEF.

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetBillingAccountRequest other)

public GetBillingAccountRequest.Builder mergeFrom(GetBillingAccountRequest other)
Parameter
NameDescription
otherGetBillingAccountRequest
Returns
TypeDescription
GetBillingAccountRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetBillingAccountRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetBillingAccountRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetBillingAccountRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetBillingAccountRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetBillingAccountRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetBillingAccountRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetBillingAccountRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetBillingAccountRequest.Builder
Overrides

setName(String value)

public GetBillingAccountRequest.Builder setName(String value)

Required. The resource name of the billing account to retrieve. For example, billingAccounts/012345-567890-ABCDEF.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetBillingAccountRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetBillingAccountRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the billing account to retrieve. For example, billingAccounts/012345-567890-ABCDEF.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetBillingAccountRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GetBillingAccountRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetBillingAccountRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetBillingAccountRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetBillingAccountRequest.Builder
Overrides