Class ListServiceAccountKeysRequest.Builder (3.47.0)

public static final class ListServiceAccountKeysRequest.Builder extends GeneratedMessageV3.Builder<ListServiceAccountKeysRequest.Builder> implements ListServiceAccountKeysRequestOrBuilder

The service account keys list request.

Protobuf type google.iam.admin.v1.ListServiceAccountKeysRequest

Static Methods

getDescriptor()

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

Methods

addAllKeyTypes(Iterable<? extends ListServiceAccountKeysRequest.KeyType> values)

public ListServiceAccountKeysRequest.Builder addAllKeyTypes(Iterable<? extends ListServiceAccountKeysRequest.KeyType> values)

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Parameter
Name Description
values Iterable<? extends com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType>

The keyTypes to add.

Returns
Type Description
ListServiceAccountKeysRequest.Builder

This builder for chaining.

addAllKeyTypesValue(Iterable<Integer> values)

public ListServiceAccountKeysRequest.Builder addAllKeyTypesValue(Iterable<Integer> values)

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for keyTypes to add.

Returns
Type Description
ListServiceAccountKeysRequest.Builder

This builder for chaining.

addKeyTypes(ListServiceAccountKeysRequest.KeyType value)

public ListServiceAccountKeysRequest.Builder addKeyTypes(ListServiceAccountKeysRequest.KeyType value)

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Parameter
Name Description
value ListServiceAccountKeysRequest.KeyType

The keyTypes to add.

Returns
Type Description
ListServiceAccountKeysRequest.Builder

This builder for chaining.

addKeyTypesValue(int value)

public ListServiceAccountKeysRequest.Builder addKeyTypesValue(int value)

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for keyTypes to add.

Returns
Type Description
ListServiceAccountKeysRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListServiceAccountKeysRequest build()
Returns
Type Description
ListServiceAccountKeysRequest

buildPartial()

public ListServiceAccountKeysRequest buildPartial()
Returns
Type Description
ListServiceAccountKeysRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKeyTypes()

public ListServiceAccountKeysRequest.Builder clearKeyTypes()

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Returns
Type Description
ListServiceAccountKeysRequest.Builder

This builder for chaining.

clearName()

public ListServiceAccountKeysRequest.Builder clearName()

Required. The resource name of the service account in the following format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}.

Using - as a wildcard for the PROJECT_ID, will infer the project from the account. The ACCOUNT value can be the email address or the unique_id of the service account.

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

Returns
Type Description
ListServiceAccountKeysRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListServiceAccountKeysRequest getDefaultInstanceForType()
Returns
Type Description
ListServiceAccountKeysRequest

getDescriptorForType()

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

getKeyTypes(int index)

public ListServiceAccountKeysRequest.KeyType getKeyTypes(int index)

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ListServiceAccountKeysRequest.KeyType

The keyTypes at the given index.

getKeyTypesCount()

public int getKeyTypesCount()

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Returns
Type Description
int

The count of keyTypes.

getKeyTypesList()

public List<ListServiceAccountKeysRequest.KeyType> getKeyTypesList()

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Returns
Type Description
List<KeyType>

A list containing the keyTypes.

getKeyTypesValue(int index)

public int getKeyTypesValue(int index)

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of keyTypes at the given index.

getKeyTypesValueList()

public List<Integer> getKeyTypesValueList()

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for keyTypes.

getName()

public String getName()

Required. The resource name of the service account in the following format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}.

Using - as a wildcard for the PROJECT_ID, will infer the project from the account. The ACCOUNT value can be the email address or the unique_id of the service account.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the service account in the following format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}.

Using - as a wildcard for the PROJECT_ID, will infer the project from the account. The ACCOUNT value can be the email address or the unique_id of the service account.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListServiceAccountKeysRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeyTypes(int index, ListServiceAccountKeysRequest.KeyType value)

public ListServiceAccountKeysRequest.Builder setKeyTypes(int index, ListServiceAccountKeysRequest.KeyType value)

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Parameters
Name Description
index int

The index to set the value at.

value ListServiceAccountKeysRequest.KeyType

The keyTypes to set.

Returns
Type Description
ListServiceAccountKeysRequest.Builder

This builder for chaining.

setKeyTypesValue(int index, int value)

public ListServiceAccountKeysRequest.Builder setKeyTypesValue(int index, int value)

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for keyTypes to set.

Returns
Type Description
ListServiceAccountKeysRequest.Builder

This builder for chaining.

setName(String value)

public ListServiceAccountKeysRequest.Builder setName(String value)

Required. The resource name of the service account in the following format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}.

Using - as a wildcard for the PROJECT_ID, will infer the project from the account. The ACCOUNT value can be the email address or the unique_id of the service account.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ListServiceAccountKeysRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ListServiceAccountKeysRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the service account in the following format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}.

Using - as a wildcard for the PROJECT_ID, will infer the project from the account. The ACCOUNT value can be the email address or the unique_id of the service account.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ListServiceAccountKeysRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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