Class ListCryptoKeysResponse.Builder (0.21.0)

public static final class ListCryptoKeysResponse.Builder extends GeneratedMessageV3.Builder<ListCryptoKeysResponse.Builder> implements ListCryptoKeysResponseOrBuilder

Response message for KeyDashboardService.ListCryptoKeys.

Protobuf type google.cloud.kms.inventory.v1.ListCryptoKeysResponse

Static Methods

getDescriptor()

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

Methods

addAllCryptoKeys(Iterable<? extends CryptoKey> values)

public ListCryptoKeysResponse.Builder addAllCryptoKeys(Iterable<? extends CryptoKey> values)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.kms.v1.CryptoKey>
Returns
TypeDescription
ListCryptoKeysResponse.Builder

addCryptoKeys(CryptoKey value)

public ListCryptoKeysResponse.Builder addCryptoKeys(CryptoKey value)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameter
NameDescription
valuecom.google.cloud.kms.v1.CryptoKey
Returns
TypeDescription
ListCryptoKeysResponse.Builder

addCryptoKeys(CryptoKey.Builder builderForValue)

public ListCryptoKeysResponse.Builder addCryptoKeys(CryptoKey.Builder builderForValue)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameter
NameDescription
builderForValuecom.google.cloud.kms.v1.CryptoKey.Builder
Returns
TypeDescription
ListCryptoKeysResponse.Builder

addCryptoKeys(int index, CryptoKey value)

public ListCryptoKeysResponse.Builder addCryptoKeys(int index, CryptoKey value)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameters
NameDescription
indexint
valuecom.google.cloud.kms.v1.CryptoKey
Returns
TypeDescription
ListCryptoKeysResponse.Builder

addCryptoKeys(int index, CryptoKey.Builder builderForValue)

public ListCryptoKeysResponse.Builder addCryptoKeys(int index, CryptoKey.Builder builderForValue)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameters
NameDescription
indexint
builderForValuecom.google.cloud.kms.v1.CryptoKey.Builder
Returns
TypeDescription
ListCryptoKeysResponse.Builder

addCryptoKeysBuilder()

public CryptoKey.Builder addCryptoKeysBuilder()

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Returns
TypeDescription
com.google.cloud.kms.v1.CryptoKey.Builder

addCryptoKeysBuilder(int index)

public CryptoKey.Builder addCryptoKeysBuilder(int index)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.cloud.kms.v1.CryptoKey.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCryptoKeysResponse build()
Returns
TypeDescription
ListCryptoKeysResponse

buildPartial()

public ListCryptoKeysResponse buildPartial()
Returns
TypeDescription
ListCryptoKeysResponse

clear()

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

clearCryptoKeys()

public ListCryptoKeysResponse.Builder clearCryptoKeys()

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Returns
TypeDescription
ListCryptoKeysResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListCryptoKeysResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListCryptoKeysResponse.Builder
Overrides

clearNextPageToken()

public ListCryptoKeysResponse.Builder clearNextPageToken()

The page token returned from the previous response if the next page is desired.

string next_page_token = 2;

Returns
TypeDescription
ListCryptoKeysResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListCryptoKeysResponse.Builder clone()
Returns
TypeDescription
ListCryptoKeysResponse.Builder
Overrides

getCryptoKeys(int index)

public CryptoKey getCryptoKeys(int index)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.cloud.kms.v1.CryptoKey

getCryptoKeysBuilder(int index)

public CryptoKey.Builder getCryptoKeysBuilder(int index)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.cloud.kms.v1.CryptoKey.Builder

getCryptoKeysBuilderList()

public List<CryptoKey.Builder> getCryptoKeysBuilderList()

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Returns
TypeDescription
List<com.google.cloud.kms.v1.CryptoKey.Builder>

getCryptoKeysCount()

public int getCryptoKeysCount()

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Returns
TypeDescription
int

getCryptoKeysList()

public List<CryptoKey> getCryptoKeysList()

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Returns
TypeDescription
List<com.google.cloud.kms.v1.CryptoKey>

getCryptoKeysOrBuilder(int index)

public CryptoKeyOrBuilder getCryptoKeysOrBuilder(int index)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.cloud.kms.v1.CryptoKeyOrBuilder

getCryptoKeysOrBuilderList()

public List<? extends CryptoKeyOrBuilder> getCryptoKeysOrBuilderList()

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

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

getDefaultInstanceForType()

public ListCryptoKeysResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCryptoKeysResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The page token returned from the previous response if the next page is desired.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The page token returned from the previous response if the next page is desired.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListCryptoKeysResponse other)

public ListCryptoKeysResponse.Builder mergeFrom(ListCryptoKeysResponse other)
Parameter
NameDescription
otherListCryptoKeysResponse
Returns
TypeDescription
ListCryptoKeysResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCryptoKeysResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListCryptoKeysResponse.Builder
Overrides

removeCryptoKeys(int index)

public ListCryptoKeysResponse.Builder removeCryptoKeys(int index)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListCryptoKeysResponse.Builder

setCryptoKeys(int index, CryptoKey value)

public ListCryptoKeysResponse.Builder setCryptoKeys(int index, CryptoKey value)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameters
NameDescription
indexint
valuecom.google.cloud.kms.v1.CryptoKey
Returns
TypeDescription
ListCryptoKeysResponse.Builder

setCryptoKeys(int index, CryptoKey.Builder builderForValue)

public ListCryptoKeysResponse.Builder setCryptoKeys(int index, CryptoKey.Builder builderForValue)

The list of CryptoKeys.

repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;

Parameters
NameDescription
indexint
builderForValuecom.google.cloud.kms.v1.CryptoKey.Builder
Returns
TypeDescription
ListCryptoKeysResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListCryptoKeysResponse.Builder setNextPageToken(String value)

The page token returned from the previous response if the next page is desired.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListCryptoKeysResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCryptoKeysResponse.Builder setNextPageTokenBytes(ByteString value)

The page token returned from the previous response if the next page is desired.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListCryptoKeysResponse.Builder

This builder for chaining.

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

public ListCryptoKeysResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListCryptoKeysResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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