Class ListBillingAccountsResponse.Builder (2.13.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.billing.v1.BillingAccount>
Returns
TypeDescription
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
NameDescription
valueBillingAccount
Returns
TypeDescription
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
NameDescription
builderForValueBillingAccount.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBillingAccount
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBillingAccount.Builder
Returns
TypeDescription
ListBillingAccountsResponse.Builder

addBillingAccountsBuilder()

public BillingAccount.Builder addBillingAccountsBuilder()

A list of billing accounts.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BillingAccount.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListBillingAccountsResponse build()
Returns
TypeDescription
ListBillingAccountsResponse

buildPartial()

public ListBillingAccountsResponse buildPartial()
Returns
TypeDescription
ListBillingAccountsResponse

clear()

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

clearBillingAccounts()

public ListBillingAccountsResponse.Builder clearBillingAccounts()

A list of billing accounts.

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

Returns
TypeDescription
ListBillingAccountsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListBillingAccountsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListBillingAccountsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListBillingAccountsResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BillingAccount.Builder

getBillingAccountsBuilderList()

public List<BillingAccount.Builder> getBillingAccountsBuilderList()

A list of billing accounts.

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

Returns
TypeDescription
List<Builder>

getBillingAccountsCount()

public int getBillingAccountsCount()

A list of billing accounts.

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

Returns
TypeDescription
int

getBillingAccountsList()

public List<BillingAccount> getBillingAccountsList()

A list of billing accounts.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BillingAccountOrBuilder

getBillingAccountsOrBuilderList()

public List<? extends BillingAccountOrBuilder> getBillingAccountsOrBuilderList()

A list of billing accounts.

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

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

getDefaultInstanceForType()

public ListBillingAccountsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListBillingAccountsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListBillingAccountsResponse other)

public ListBillingAccountsResponse.Builder mergeFrom(ListBillingAccountsResponse other)
Parameter
NameDescription
otherListBillingAccountsResponse
Returns
TypeDescription
ListBillingAccountsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListBillingAccountsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueBillingAccount
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBillingAccount.Builder
Returns
TypeDescription
ListBillingAccountsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListBillingAccountsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListBillingAccountsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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