Class ListServiceAccountKeysRequest.Builder (3.0.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType>

The keyTypes to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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
NameDescription
valueListServiceAccountKeysRequest.KeyType

The keyTypes to add.

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

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

Returns
TypeDescription
ListServiceAccountKeysRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListServiceAccountKeysRequest build()
Returns
TypeDescription
ListServiceAccountKeysRequest

buildPartial()

public ListServiceAccountKeysRequest buildPartial()
Returns
TypeDescription
ListServiceAccountKeysRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListServiceAccountKeysRequest.Builder clone()
Returns
TypeDescription
ListServiceAccountKeysRequest.Builder
Overrides

getDefaultInstanceForType()

public ListServiceAccountKeysRequest getDefaultInstanceForType()
Returns
TypeDescription
ListServiceAccountKeysRequest

getDescriptorForType()

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListServiceAccountKeysRequest other)

public ListServiceAccountKeysRequest.Builder mergeFrom(ListServiceAccountKeysRequest other)
Parameter
NameDescription
otherListServiceAccountKeysRequest
Returns
TypeDescription
ListServiceAccountKeysRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListServiceAccountKeysRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListServiceAccountKeysRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valueListServiceAccountKeysRequest.KeyType

The keyTypes to set.

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

The index to set the value at.

valueint

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

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

The name to set.

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

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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