Class ListCryptoKeyVersionsResponse.Builder (2.18.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.kms.v1.CryptoKeyVersion>
Returns
TypeDescription
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
NameDescription
valueCryptoKeyVersion
Returns
TypeDescription
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
NameDescription
builderForValueCryptoKeyVersion.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCryptoKeyVersion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCryptoKeyVersion.Builder
Returns
TypeDescription
ListCryptoKeyVersionsResponse.Builder

addCryptoKeyVersionsBuilder()

public CryptoKeyVersion.Builder addCryptoKeyVersionsBuilder()

The list of CryptoKeyVersions.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCryptoKeyVersionsResponse build()
Returns
TypeDescription
ListCryptoKeyVersionsResponse

buildPartial()

public ListCryptoKeyVersionsResponse buildPartial()
Returns
TypeDescription
ListCryptoKeyVersionsResponse

clear()

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

clearCryptoKeyVersions()

public ListCryptoKeyVersionsResponse.Builder clearCryptoKeyVersions()

The list of CryptoKeyVersions.

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

Returns
TypeDescription
ListCryptoKeyVersionsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListCryptoKeyVersionsResponse.Builder clearTotalSize()

The total number of CryptoKeyVersions that matched the query.

int32 total_size = 3;

Returns
TypeDescription
ListCryptoKeyVersionsResponse.Builder

This builder for chaining.

clone()

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

getCryptoKeyVersionsBuilderList()

public List<CryptoKeyVersion.Builder> getCryptoKeyVersionsBuilderList()

The list of CryptoKeyVersions.

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

Returns
TypeDescription
List<Builder>

getCryptoKeyVersionsCount()

public int getCryptoKeyVersionsCount()

The list of CryptoKeyVersions.

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

Returns
TypeDescription
int

getCryptoKeyVersionsList()

public List<CryptoKeyVersion> getCryptoKeyVersionsList()

The list of CryptoKeyVersions.

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

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

getCryptoKeyVersionsOrBuilderList()

public List<? extends CryptoKeyVersionOrBuilder> getCryptoKeyVersionsOrBuilderList()

The list of CryptoKeyVersions.

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

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

getDefaultInstanceForType()

public ListCryptoKeyVersionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCryptoKeyVersionsResponse

getDescriptorForType()

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

The bytes for nextPageToken.

getTotalSize()

public int getTotalSize()

The total number of CryptoKeyVersions that matched the query.

int32 total_size = 3;

Returns
TypeDescription
int

The totalSize.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListCryptoKeyVersionsResponse other)

public ListCryptoKeyVersionsResponse.Builder mergeFrom(ListCryptoKeyVersionsResponse other)
Parameter
NameDescription
otherListCryptoKeyVersionsResponse
Returns
TypeDescription
ListCryptoKeyVersionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCryptoKeyVersionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueCryptoKeyVersion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCryptoKeyVersion.Builder
Returns
TypeDescription
ListCryptoKeyVersionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

The totalSize to set.

Returns
TypeDescription
ListCryptoKeyVersionsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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