Class ListServiceAccountsResponse.Builder (3.25.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
TypeDescription
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
NameDescription
valueServiceAccount
Returns
TypeDescription
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
NameDescription
builderForValueServiceAccount.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueServiceAccount
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServiceAccount.Builder
Returns
TypeDescription
ListServiceAccountsResponse.Builder

addAccountsBuilder()

public ServiceAccount.Builder addAccountsBuilder()

The list of matching service accounts.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.iam.admin.v1.ServiceAccount>
Returns
TypeDescription
ListServiceAccountsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListServiceAccountsResponse build()
Returns
TypeDescription
ListServiceAccountsResponse

buildPartial()

public ListServiceAccountsResponse buildPartial()
Returns
TypeDescription
ListServiceAccountsResponse

clear()

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

clearAccounts()

public ListServiceAccountsResponse.Builder clearAccounts()

The list of matching service accounts.

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

Returns
TypeDescription
ListServiceAccountsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAccountsBuilderList()

public List<ServiceAccount.Builder> getAccountsBuilderList()

The list of matching service accounts.

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

Returns
TypeDescription
List<Builder>

getAccountsCount()

public int getAccountsCount()

The list of matching service accounts.

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

Returns
TypeDescription
int

getAccountsList()

public List<ServiceAccount> getAccountsList()

The list of matching service accounts.

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

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

getAccountsOrBuilderList()

public List<? extends ServiceAccountOrBuilder> getAccountsOrBuilderList()

The list of matching service accounts.

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

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

getDefaultInstanceForType()

public ListServiceAccountsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListServiceAccountsResponse

getDescriptorForType()

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

public ListServiceAccountsResponse.Builder mergeFrom(ListServiceAccountsResponse other)
Parameter
NameDescription
otherListServiceAccountsResponse
Returns
TypeDescription
ListServiceAccountsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListServiceAccountsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueServiceAccount
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServiceAccount.Builder
Returns
TypeDescription
ListServiceAccountsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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