Class ListCryptoKeyVersionsResponse.Builder (2.52.0)

public static final class ListCryptoKeyVersionsResponse.Builder extends GeneratedMessageV3.Builder<ListCryptoKeyVersionsResponse.Builder> implements ListCryptoKeyVersionsResponseOrBuilder

Response message for KeyManagementService.ListCryptoKeyVersions.

Protobuf type google.cloud.kms.v1.ListCryptoKeyVersionsResponse

Static Methods

getDescriptor()

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

Methods

addAllCryptoKeyVersions(Iterable<? extends CryptoKeyVersion> values)

public ListCryptoKeyVersionsResponse.Builder addAllCryptoKeyVersions(Iterable<? extends CryptoKeyVersion> values)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

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

addCryptoKeyVersions(CryptoKeyVersion value)

public ListCryptoKeyVersionsResponse.Builder addCryptoKeyVersions(CryptoKeyVersion value)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Parameter
Name Description
value CryptoKeyVersion
Returns
Type Description
ListCryptoKeyVersionsResponse.Builder

addCryptoKeyVersions(CryptoKeyVersion.Builder builderForValue)

public ListCryptoKeyVersionsResponse.Builder addCryptoKeyVersions(CryptoKeyVersion.Builder builderForValue)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Parameter
Name Description
builderForValue CryptoKeyVersion.Builder
Returns
Type Description
ListCryptoKeyVersionsResponse.Builder

addCryptoKeyVersions(int index, CryptoKeyVersion value)

public ListCryptoKeyVersionsResponse.Builder addCryptoKeyVersions(int index, CryptoKeyVersion value)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Parameters
Name Description
index int
value CryptoKeyVersion
Returns
Type Description
ListCryptoKeyVersionsResponse.Builder

addCryptoKeyVersions(int index, CryptoKeyVersion.Builder builderForValue)

public ListCryptoKeyVersionsResponse.Builder addCryptoKeyVersions(int index, CryptoKeyVersion.Builder builderForValue)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Parameters
Name Description
index int
builderForValue CryptoKeyVersion.Builder
Returns
Type Description
ListCryptoKeyVersionsResponse.Builder

addCryptoKeyVersionsBuilder()

public CryptoKeyVersion.Builder addCryptoKeyVersionsBuilder()

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Returns
Type Description
CryptoKeyVersion.Builder

addCryptoKeyVersionsBuilder(int index)

public CryptoKeyVersion.Builder addCryptoKeyVersionsBuilder(int index)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Parameter
Name Description
index int
Returns
Type Description
CryptoKeyVersion.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCryptoKeyVersionsResponse build()
Returns
Type Description
ListCryptoKeyVersionsResponse

buildPartial()

public ListCryptoKeyVersionsResponse buildPartial()
Returns
Type Description
ListCryptoKeyVersionsResponse

clear()

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

clearCryptoKeyVersions()

public ListCryptoKeyVersionsResponse.Builder clearCryptoKeyVersions()

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Returns
Type Description
ListCryptoKeyVersionsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListCryptoKeyVersionsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListCryptoKeyVersionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListCryptoKeyVersionsResponse.Builder clearTotalSize()

The total number of CryptoKeyVersions that matched the query.

int32 total_size = 3;

Returns
Type Description
ListCryptoKeyVersionsResponse.Builder

This builder for chaining.

clone()

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

getCryptoKeyVersions(int index)

public CryptoKeyVersion getCryptoKeyVersions(int index)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Parameter
Name Description
index int
Returns
Type Description
CryptoKeyVersion

getCryptoKeyVersionsBuilder(int index)

public CryptoKeyVersion.Builder getCryptoKeyVersionsBuilder(int index)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Parameter
Name Description
index int
Returns
Type Description
CryptoKeyVersion.Builder

getCryptoKeyVersionsBuilderList()

public List<CryptoKeyVersion.Builder> getCryptoKeyVersionsBuilderList()

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Returns
Type Description
List<Builder>

getCryptoKeyVersionsCount()

public int getCryptoKeyVersionsCount()

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Returns
Type Description
int

getCryptoKeyVersionsList()

public List<CryptoKeyVersion> getCryptoKeyVersionsList()

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Returns
Type Description
List<CryptoKeyVersion>

getCryptoKeyVersionsOrBuilder(int index)

public CryptoKeyVersionOrBuilder getCryptoKeyVersionsOrBuilder(int index)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Parameter
Name Description
index int
Returns
Type Description
CryptoKeyVersionOrBuilder

getCryptoKeyVersionsOrBuilderList()

public List<? extends CryptoKeyVersionOrBuilder> getCryptoKeyVersionsOrBuilderList()

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

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

getDefaultInstanceForType()

public ListCryptoKeyVersionsResponse getDefaultInstanceForType()
Returns
Type Description
ListCryptoKeyVersionsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results. Pass this value in ListCryptoKeyVersionsRequest.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 ListCryptoKeyVersionsRequest.page_token to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTotalSize()

public int getTotalSize()

The total number of CryptoKeyVersions that matched the query.

int32 total_size = 3;

Returns
Type Description
int

The totalSize.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCryptoKeyVersionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCryptoKeyVersions(int index)

public ListCryptoKeyVersionsResponse.Builder removeCryptoKeyVersions(int index)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCryptoKeyVersionsResponse.Builder

setCryptoKeyVersions(int index, CryptoKeyVersion value)

public ListCryptoKeyVersionsResponse.Builder setCryptoKeyVersions(int index, CryptoKeyVersion value)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Parameters
Name Description
index int
value CryptoKeyVersion
Returns
Type Description
ListCryptoKeyVersionsResponse.Builder

setCryptoKeyVersions(int index, CryptoKeyVersion.Builder builderForValue)

public ListCryptoKeyVersionsResponse.Builder setCryptoKeyVersions(int index, CryptoKeyVersion.Builder builderForValue)

The list of CryptoKeyVersions.

repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;

Parameters
Name Description
index int
builderForValue CryptoKeyVersion.Builder
Returns
Type Description
ListCryptoKeyVersionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListCryptoKeyVersionsResponse.Builder setNextPageToken(String value)

A token to retrieve next page of results. Pass this value in ListCryptoKeyVersionsRequest.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
ListCryptoKeyVersionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCryptoKeyVersionsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve next page of results. Pass this value in ListCryptoKeyVersionsRequest.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
ListCryptoKeyVersionsResponse.Builder

This builder for chaining.

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

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

setTotalSize(int value)

public ListCryptoKeyVersionsResponse.Builder setTotalSize(int value)

The total number of CryptoKeyVersions that matched the query.

int32 total_size = 3;

Parameter
Name Description
value int

The totalSize to set.

Returns
Type Description
ListCryptoKeyVersionsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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