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
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
addCryptoKeyVersions(CryptoKeyVersion value)
public ListCryptoKeyVersionsResponse.Builder addCryptoKeyVersions(CryptoKeyVersion value)
The list of CryptoKeyVersions.
repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;
Parameter
Returns
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
Returns
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
Returns
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
Returns
addCryptoKeyVersionsBuilder()
public CryptoKeyVersion.Builder addCryptoKeyVersionsBuilder()
The list of CryptoKeyVersions.
repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;
Returns
addCryptoKeyVersionsBuilder(int index)
public CryptoKeyVersion.Builder addCryptoKeyVersionsBuilder(int index)
The list of CryptoKeyVersions.
repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListCryptoKeyVersionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListCryptoKeyVersionsResponse build()
Returns
buildPartial()
public ListCryptoKeyVersionsResponse buildPartial()
Returns
clear()
public ListCryptoKeyVersionsResponse.Builder clear()
Returns
Overrides
clearCryptoKeyVersions()
public ListCryptoKeyVersionsResponse.Builder clearCryptoKeyVersions()
The list of CryptoKeyVersions.
repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public ListCryptoKeyVersionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListCryptoKeyVersionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTotalSize()
public ListCryptoKeyVersionsResponse.Builder clearTotalSize()
The total number of
CryptoKeyVersions that matched the
query.
int32 total_size = 3;
Returns
clone()
public ListCryptoKeyVersionsResponse.Builder clone()
Returns
Overrides
getCryptoKeyVersions(int index)
public CryptoKeyVersion getCryptoKeyVersions(int index)
The list of CryptoKeyVersions.
repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;
Parameter
Returns
getCryptoKeyVersionsBuilder(int index)
public CryptoKeyVersion.Builder getCryptoKeyVersionsBuilder(int index)
The list of CryptoKeyVersions.
repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;
Parameter
Returns
getCryptoKeyVersionsBuilderList()
public List<CryptoKeyVersion.Builder> getCryptoKeyVersionsBuilderList()
The list of CryptoKeyVersions.
repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;
Returns
getCryptoKeyVersionsCount()
public int getCryptoKeyVersionsCount()
The list of CryptoKeyVersions.
repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;
Returns
getCryptoKeyVersionsList()
public List<CryptoKeyVersion> getCryptoKeyVersionsList()
The list of CryptoKeyVersions.
repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;
Returns
getCryptoKeyVersionsOrBuilder(int index)
public CryptoKeyVersionOrBuilder getCryptoKeyVersionsOrBuilder(int index)
The list of CryptoKeyVersions.
repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1;
Parameter
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListCryptoKeyVersionsResponse other)
public ListCryptoKeyVersionsResponse.Builder mergeFrom(ListCryptoKeyVersionsResponse other)
Parameter
Returns
public ListCryptoKeyVersionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListCryptoKeyVersionsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListCryptoKeyVersionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListCryptoKeyVersionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListCryptoKeyVersionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final ListCryptoKeyVersionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides