Class ListServiceAccountsResponse.Builder (3.37.0)

public static final class ListServiceAccountsResponse.Builder extends GeneratedMessageV3.Builder<ListServiceAccountsResponse.Builder> implements ListServiceAccountsResponseOrBuilder

The service account list response.

Protobuf type google.iam.admin.v1.ListServiceAccountsResponse

Static Methods

getDescriptor()

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

Methods

addAccounts(ServiceAccount value)

public ListServiceAccountsResponse.Builder addAccounts(ServiceAccount value)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameter
Name Description
value ServiceAccount
Returns
Type Description
ListServiceAccountsResponse.Builder

addAccounts(ServiceAccount.Builder builderForValue)

public ListServiceAccountsResponse.Builder addAccounts(ServiceAccount.Builder builderForValue)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameter
Name Description
builderForValue ServiceAccount.Builder
Returns
Type Description
ListServiceAccountsResponse.Builder

addAccounts(int index, ServiceAccount value)

public ListServiceAccountsResponse.Builder addAccounts(int index, ServiceAccount value)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameters
Name Description
index int
value ServiceAccount
Returns
Type Description
ListServiceAccountsResponse.Builder

addAccounts(int index, ServiceAccount.Builder builderForValue)

public ListServiceAccountsResponse.Builder addAccounts(int index, ServiceAccount.Builder builderForValue)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameters
Name Description
index int
builderForValue ServiceAccount.Builder
Returns
Type Description
ListServiceAccountsResponse.Builder

addAccountsBuilder()

public ServiceAccount.Builder addAccountsBuilder()

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Returns
Type Description
ServiceAccount.Builder

addAccountsBuilder(int index)

public ServiceAccount.Builder addAccountsBuilder(int index)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameter
Name Description
index int
Returns
Type Description
ServiceAccount.Builder

addAllAccounts(Iterable<? extends ServiceAccount> values)

public ListServiceAccountsResponse.Builder addAllAccounts(Iterable<? extends ServiceAccount> values)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameter
Name Description
values Iterable<? extends com.google.iam.admin.v1.ServiceAccount>
Returns
Type Description
ListServiceAccountsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListServiceAccountsResponse build()
Returns
Type Description
ListServiceAccountsResponse

buildPartial()

public ListServiceAccountsResponse buildPartial()
Returns
Type Description
ListServiceAccountsResponse

clear()

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

clearAccounts()

public ListServiceAccountsResponse.Builder clearAccounts()

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Returns
Type Description
ListServiceAccountsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListServiceAccountsResponse.Builder clearNextPageToken()

To retrieve the next page of results, set ListServiceAccountsRequest.page_token to this value.

string next_page_token = 2;

Returns
Type Description
ListServiceAccountsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAccounts(int index)

public ServiceAccount getAccounts(int index)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameter
Name Description
index int
Returns
Type Description
ServiceAccount

getAccountsBuilder(int index)

public ServiceAccount.Builder getAccountsBuilder(int index)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameter
Name Description
index int
Returns
Type Description
ServiceAccount.Builder

getAccountsBuilderList()

public List<ServiceAccount.Builder> getAccountsBuilderList()

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Returns
Type Description
List<Builder>

getAccountsCount()

public int getAccountsCount()

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Returns
Type Description
int

getAccountsList()

public List<ServiceAccount> getAccountsList()

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Returns
Type Description
List<ServiceAccount>

getAccountsOrBuilder(int index)

public ServiceAccountOrBuilder getAccountsOrBuilder(int index)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameter
Name Description
index int
Returns
Type Description
ServiceAccountOrBuilder

getAccountsOrBuilderList()

public List<? extends ServiceAccountOrBuilder> getAccountsOrBuilderList()

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Returns
Type Description
List<? extends com.google.iam.admin.v1.ServiceAccountOrBuilder>

getDefaultInstanceForType()

public ListServiceAccountsResponse getDefaultInstanceForType()
Returns
Type Description
ListServiceAccountsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

To retrieve the next page of results, set ListServiceAccountsRequest.page_token to this value.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

To retrieve the next page of results, set ListServiceAccountsRequest.page_token to this value.

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(ListServiceAccountsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAccounts(int index)

public ListServiceAccountsResponse.Builder removeAccounts(int index)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameter
Name Description
index int
Returns
Type Description
ListServiceAccountsResponse.Builder

setAccounts(int index, ServiceAccount value)

public ListServiceAccountsResponse.Builder setAccounts(int index, ServiceAccount value)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameters
Name Description
index int
value ServiceAccount
Returns
Type Description
ListServiceAccountsResponse.Builder

setAccounts(int index, ServiceAccount.Builder builderForValue)

public ListServiceAccountsResponse.Builder setAccounts(int index, ServiceAccount.Builder builderForValue)

The list of matching service accounts.

repeated .google.iam.admin.v1.ServiceAccount accounts = 1;

Parameters
Name Description
index int
builderForValue ServiceAccount.Builder
Returns
Type Description
ListServiceAccountsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListServiceAccountsResponse.Builder setNextPageToken(String value)

To retrieve the next page of results, set ListServiceAccountsRequest.page_token to this value.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListServiceAccountsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListServiceAccountsResponse.Builder setNextPageTokenBytes(ByteString value)

To retrieve the next page of results, set ListServiceAccountsRequest.page_token to this value.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListServiceAccountsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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