Class ListCryptoKeyVersionsResponse (2.4.4)

public final class ListCryptoKeyVersionsResponse extends GeneratedMessageV3 implements ListCryptoKeyVersionsResponseOrBuilder

Response message for KeyManagementService.ListCryptoKeyVersions.

Protobuf type google.cloud.kms.v1.ListCryptoKeyVersionsResponse

Static Fields

CRYPTO_KEY_VERSIONS_FIELD_NUMBER

public static final int CRYPTO_KEY_VERSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_PAGE_TOKEN_FIELD_NUMBER

public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

TOTAL_SIZE_FIELD_NUMBER

public static final int TOTAL_SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ListCryptoKeyVersionsResponse getDefaultInstance()
Returns
TypeDescription
ListCryptoKeyVersionsResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ListCryptoKeyVersionsResponse.Builder newBuilder()
Returns
TypeDescription
ListCryptoKeyVersionsResponse.Builder

newBuilder(ListCryptoKeyVersionsResponse prototype)

public static ListCryptoKeyVersionsResponse.Builder newBuilder(ListCryptoKeyVersionsResponse prototype)
Parameter
NameDescription
prototypeListCryptoKeyVersionsResponse
Returns
TypeDescription
ListCryptoKeyVersionsResponse.Builder

parseDelimitedFrom(InputStream input)

public static ListCryptoKeyVersionsResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListCryptoKeyVersionsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ListCryptoKeyVersionsResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ListCryptoKeyVersionsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ListCryptoKeyVersionsResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ListCryptoKeyVersionsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ListCryptoKeyVersionsResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ListCryptoKeyVersionsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ListCryptoKeyVersionsResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListCryptoKeyVersionsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ListCryptoKeyVersionsResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ListCryptoKeyVersionsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCryptoKeyVersionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ListCryptoKeyVersionsResponse> parser()
Returns
TypeDescription
Parser<ListCryptoKeyVersionsResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

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.

getParserForType()

public Parser<ListCryptoKeyVersionsResponse> getParserForType()
Returns
TypeDescription
Parser<ListCryptoKeyVersionsResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTotalSize()

public int getTotalSize()

The total number of CryptoKeyVersions that matched the query.

int32 total_size = 3;

Returns
TypeDescription
int

The totalSize.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ListCryptoKeyVersionsResponse.Builder newBuilderForType()
Returns
TypeDescription
ListCryptoKeyVersionsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ListCryptoKeyVersionsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ListCryptoKeyVersionsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ListCryptoKeyVersionsResponse.Builder toBuilder()
Returns
TypeDescription
ListCryptoKeyVersionsResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException