Class ListKeyHandlesResponse.Builder (2.54.0)

public static final class ListKeyHandlesResponse.Builder extends GeneratedMessageV3.Builder<ListKeyHandlesResponse.Builder> implements ListKeyHandlesResponseOrBuilder

Response message for Autokey.ListKeyHandles.

Protobuf type google.cloud.kms.v1.ListKeyHandlesResponse

Static Methods

getDescriptor()

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

Methods

addAllKeyHandles(Iterable<? extends KeyHandle> values)

public ListKeyHandlesResponse.Builder addAllKeyHandles(Iterable<? extends KeyHandle> values)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.kms.v1.KeyHandle>
Returns
Type Description
ListKeyHandlesResponse.Builder

addKeyHandles(KeyHandle value)

public ListKeyHandlesResponse.Builder addKeyHandles(KeyHandle value)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameter
Name Description
value KeyHandle
Returns
Type Description
ListKeyHandlesResponse.Builder

addKeyHandles(KeyHandle.Builder builderForValue)

public ListKeyHandlesResponse.Builder addKeyHandles(KeyHandle.Builder builderForValue)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameter
Name Description
builderForValue KeyHandle.Builder
Returns
Type Description
ListKeyHandlesResponse.Builder

addKeyHandles(int index, KeyHandle value)

public ListKeyHandlesResponse.Builder addKeyHandles(int index, KeyHandle value)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameters
Name Description
index int
value KeyHandle
Returns
Type Description
ListKeyHandlesResponse.Builder

addKeyHandles(int index, KeyHandle.Builder builderForValue)

public ListKeyHandlesResponse.Builder addKeyHandles(int index, KeyHandle.Builder builderForValue)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameters
Name Description
index int
builderForValue KeyHandle.Builder
Returns
Type Description
ListKeyHandlesResponse.Builder

addKeyHandlesBuilder()

public KeyHandle.Builder addKeyHandlesBuilder()

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Returns
Type Description
KeyHandle.Builder

addKeyHandlesBuilder(int index)

public KeyHandle.Builder addKeyHandlesBuilder(int index)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameter
Name Description
index int
Returns
Type Description
KeyHandle.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListKeyHandlesResponse build()
Returns
Type Description
ListKeyHandlesResponse

buildPartial()

public ListKeyHandlesResponse buildPartial()
Returns
Type Description
ListKeyHandlesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKeyHandles()

public ListKeyHandlesResponse.Builder clearKeyHandles()

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Returns
Type Description
ListKeyHandlesResponse.Builder

clearNextPageToken()

public ListKeyHandlesResponse.Builder clearNextPageToken()

A token to retrieve next page of results. Pass this value in ListKeyHandlesRequest.page_token to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
ListKeyHandlesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListKeyHandlesResponse getDefaultInstanceForType()
Returns
Type Description
ListKeyHandlesResponse

getDescriptorForType()

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

getKeyHandles(int index)

public KeyHandle getKeyHandles(int index)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameter
Name Description
index int
Returns
Type Description
KeyHandle

getKeyHandlesBuilder(int index)

public KeyHandle.Builder getKeyHandlesBuilder(int index)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameter
Name Description
index int
Returns
Type Description
KeyHandle.Builder

getKeyHandlesBuilderList()

public List<KeyHandle.Builder> getKeyHandlesBuilderList()

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Returns
Type Description
List<Builder>

getKeyHandlesCount()

public int getKeyHandlesCount()

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Returns
Type Description
int

getKeyHandlesList()

public List<KeyHandle> getKeyHandlesList()

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Returns
Type Description
List<KeyHandle>

getKeyHandlesOrBuilder(int index)

public KeyHandleOrBuilder getKeyHandlesOrBuilder(int index)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameter
Name Description
index int
Returns
Type Description
KeyHandleOrBuilder

getKeyHandlesOrBuilderList()

public List<? extends KeyHandleOrBuilder> getKeyHandlesOrBuilderList()

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Returns
Type Description
List<? extends com.google.cloud.kms.v1.KeyHandleOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results. Pass this value in ListKeyHandlesRequest.page_token to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results. Pass this value in ListKeyHandlesRequest.page_token to retrieve the next page of results.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeKeyHandles(int index)

public ListKeyHandlesResponse.Builder removeKeyHandles(int index)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameter
Name Description
index int
Returns
Type Description
ListKeyHandlesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeyHandles(int index, KeyHandle value)

public ListKeyHandlesResponse.Builder setKeyHandles(int index, KeyHandle value)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameters
Name Description
index int
value KeyHandle
Returns
Type Description
ListKeyHandlesResponse.Builder

setKeyHandles(int index, KeyHandle.Builder builderForValue)

public ListKeyHandlesResponse.Builder setKeyHandles(int index, KeyHandle.Builder builderForValue)

Resulting KeyHandles.

repeated .google.cloud.kms.v1.KeyHandle key_handles = 1;

Parameters
Name Description
index int
builderForValue KeyHandle.Builder
Returns
Type Description
ListKeyHandlesResponse.Builder

setNextPageToken(String value)

public ListKeyHandlesResponse.Builder setNextPageToken(String value)

A token to retrieve next page of results. Pass this value in ListKeyHandlesRequest.page_token to retrieve the next page of results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListKeyHandlesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListKeyHandlesResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve next page of results. Pass this value in ListKeyHandlesRequest.page_token to retrieve the next page of results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListKeyHandlesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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