Class ListBillingAccountsResponse.Builder (2.42.0)

public static final class ListBillingAccountsResponse.Builder extends GeneratedMessageV3.Builder<ListBillingAccountsResponse.Builder> implements ListBillingAccountsResponseOrBuilder

Response message for ListBillingAccounts.

Protobuf type google.cloud.billing.v1.ListBillingAccountsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBillingAccounts(Iterable<? extends BillingAccount> values)

public ListBillingAccountsResponse.Builder addAllBillingAccounts(Iterable<? extends BillingAccount> values)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.billing.v1.BillingAccount>
Returns
Type Description
ListBillingAccountsResponse.Builder

addBillingAccounts(BillingAccount value)

public ListBillingAccountsResponse.Builder addBillingAccounts(BillingAccount value)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameter
Name Description
value BillingAccount
Returns
Type Description
ListBillingAccountsResponse.Builder

addBillingAccounts(BillingAccount.Builder builderForValue)

public ListBillingAccountsResponse.Builder addBillingAccounts(BillingAccount.Builder builderForValue)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameter
Name Description
builderForValue BillingAccount.Builder
Returns
Type Description
ListBillingAccountsResponse.Builder

addBillingAccounts(int index, BillingAccount value)

public ListBillingAccountsResponse.Builder addBillingAccounts(int index, BillingAccount value)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameters
Name Description
index int
value BillingAccount
Returns
Type Description
ListBillingAccountsResponse.Builder

addBillingAccounts(int index, BillingAccount.Builder builderForValue)

public ListBillingAccountsResponse.Builder addBillingAccounts(int index, BillingAccount.Builder builderForValue)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameters
Name Description
index int
builderForValue BillingAccount.Builder
Returns
Type Description
ListBillingAccountsResponse.Builder

addBillingAccountsBuilder()

public BillingAccount.Builder addBillingAccountsBuilder()

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Returns
Type Description
BillingAccount.Builder

addBillingAccountsBuilder(int index)

public BillingAccount.Builder addBillingAccountsBuilder(int index)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameter
Name Description
index int
Returns
Type Description
BillingAccount.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListBillingAccountsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListBillingAccountsResponse.Builder
Overrides

build()

public ListBillingAccountsResponse build()
Returns
Type Description
ListBillingAccountsResponse

buildPartial()

public ListBillingAccountsResponse buildPartial()
Returns
Type Description
ListBillingAccountsResponse

clear()

public ListBillingAccountsResponse.Builder clear()
Returns
Type Description
ListBillingAccountsResponse.Builder
Overrides

clearBillingAccounts()

public ListBillingAccountsResponse.Builder clearBillingAccounts()

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Returns
Type Description
ListBillingAccountsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListBillingAccountsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListBillingAccountsResponse.Builder
Overrides

clearNextPageToken()

public ListBillingAccountsResponse.Builder clearNextPageToken()

A token to retrieve the next page of results. To retrieve the next page, call ListBillingAccounts again with the page_token field set to this value. This field is empty if there are no more results to retrieve.

string next_page_token = 2;

Returns
Type Description
ListBillingAccountsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListBillingAccountsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListBillingAccountsResponse.Builder
Overrides

clone()

public ListBillingAccountsResponse.Builder clone()
Returns
Type Description
ListBillingAccountsResponse.Builder
Overrides

getBillingAccounts(int index)

public BillingAccount getBillingAccounts(int index)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameter
Name Description
index int
Returns
Type Description
BillingAccount

getBillingAccountsBuilder(int index)

public BillingAccount.Builder getBillingAccountsBuilder(int index)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameter
Name Description
index int
Returns
Type Description
BillingAccount.Builder

getBillingAccountsBuilderList()

public List<BillingAccount.Builder> getBillingAccountsBuilderList()

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Returns
Type Description
List<Builder>

getBillingAccountsCount()

public int getBillingAccountsCount()

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Returns
Type Description
int

getBillingAccountsList()

public List<BillingAccount> getBillingAccountsList()

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Returns
Type Description
List<BillingAccount>

getBillingAccountsOrBuilder(int index)

public BillingAccountOrBuilder getBillingAccountsOrBuilder(int index)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameter
Name Description
index int
Returns
Type Description
BillingAccountOrBuilder

getBillingAccountsOrBuilderList()

public List<? extends BillingAccountOrBuilder> getBillingAccountsOrBuilderList()

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Returns
Type Description
List<? extends com.google.cloud.billing.v1.BillingAccountOrBuilder>

getDefaultInstanceForType()

public ListBillingAccountsResponse getDefaultInstanceForType()
Returns
Type Description
ListBillingAccountsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token to retrieve the next page of results. To retrieve the next page, call ListBillingAccounts again with the page_token field set to this value. This field is empty if there are no more results to retrieve.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve the next page of results. To retrieve the next page, call ListBillingAccounts again with the page_token field set to this value. This field is empty if there are no more results to retrieve.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBillingAccountsResponse other)

public ListBillingAccountsResponse.Builder mergeFrom(ListBillingAccountsResponse other)
Parameter
Name Description
other ListBillingAccountsResponse
Returns
Type Description
ListBillingAccountsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListBillingAccountsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListBillingAccountsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListBillingAccountsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListBillingAccountsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListBillingAccountsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListBillingAccountsResponse.Builder
Overrides

removeBillingAccounts(int index)

public ListBillingAccountsResponse.Builder removeBillingAccounts(int index)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBillingAccountsResponse.Builder

setBillingAccounts(int index, BillingAccount value)

public ListBillingAccountsResponse.Builder setBillingAccounts(int index, BillingAccount value)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameters
Name Description
index int
value BillingAccount
Returns
Type Description
ListBillingAccountsResponse.Builder

setBillingAccounts(int index, BillingAccount.Builder builderForValue)

public ListBillingAccountsResponse.Builder setBillingAccounts(int index, BillingAccount.Builder builderForValue)

A list of billing accounts.

repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1;

Parameters
Name Description
index int
builderForValue BillingAccount.Builder
Returns
Type Description
ListBillingAccountsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListBillingAccountsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListBillingAccountsResponse.Builder
Overrides

setNextPageToken(String value)

public ListBillingAccountsResponse.Builder setNextPageToken(String value)

A token to retrieve the next page of results. To retrieve the next page, call ListBillingAccounts again with the page_token field set to this value. This field is empty if there are no more results to retrieve.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListBillingAccountsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListBillingAccountsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve the next page of results. To retrieve the next page, call ListBillingAccounts again with the page_token field set to this value. This field is empty if there are no more results to retrieve.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListBillingAccountsResponse.Builder

This builder for chaining.

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

public ListBillingAccountsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListBillingAccountsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListBillingAccountsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListBillingAccountsResponse.Builder
Overrides