Class ListKeyRingsResponse.Builder (2.48.0)

public static final class ListKeyRingsResponse.Builder extends GeneratedMessageV3.Builder<ListKeyRingsResponse.Builder> implements ListKeyRingsResponseOrBuilder

Response message for KeyManagementService.ListKeyRings.

Protobuf type google.cloud.kms.v1.ListKeyRingsResponse

Static Methods

getDescriptor()

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

Methods

addAllKeyRings(Iterable<? extends KeyRing> values)

public ListKeyRingsResponse.Builder addAllKeyRings(Iterable<? extends KeyRing> values)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

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

addKeyRings(KeyRing value)

public ListKeyRingsResponse.Builder addKeyRings(KeyRing value)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Parameter
Name Description
value KeyRing
Returns
Type Description
ListKeyRingsResponse.Builder

addKeyRings(KeyRing.Builder builderForValue)

public ListKeyRingsResponse.Builder addKeyRings(KeyRing.Builder builderForValue)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Parameter
Name Description
builderForValue KeyRing.Builder
Returns
Type Description
ListKeyRingsResponse.Builder

addKeyRings(int index, KeyRing value)

public ListKeyRingsResponse.Builder addKeyRings(int index, KeyRing value)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Parameters
Name Description
index int
value KeyRing
Returns
Type Description
ListKeyRingsResponse.Builder

addKeyRings(int index, KeyRing.Builder builderForValue)

public ListKeyRingsResponse.Builder addKeyRings(int index, KeyRing.Builder builderForValue)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Parameters
Name Description
index int
builderForValue KeyRing.Builder
Returns
Type Description
ListKeyRingsResponse.Builder

addKeyRingsBuilder()

public KeyRing.Builder addKeyRingsBuilder()

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Returns
Type Description
KeyRing.Builder

addKeyRingsBuilder(int index)

public KeyRing.Builder addKeyRingsBuilder(int index)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Parameter
Name Description
index int
Returns
Type Description
KeyRing.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListKeyRingsResponse build()
Returns
Type Description
ListKeyRingsResponse

buildPartial()

public ListKeyRingsResponse buildPartial()
Returns
Type Description
ListKeyRingsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKeyRings()

public ListKeyRingsResponse.Builder clearKeyRings()

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Returns
Type Description
ListKeyRingsResponse.Builder

clearNextPageToken()

public ListKeyRingsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListKeyRingsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListKeyRingsResponse.Builder clearTotalSize()

The total number of KeyRings that matched the query.

int32 total_size = 3;

Returns
Type Description
ListKeyRingsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListKeyRingsResponse getDefaultInstanceForType()
Returns
Type Description
ListKeyRingsResponse

getDescriptorForType()

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

getKeyRings(int index)

public KeyRing getKeyRings(int index)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Parameter
Name Description
index int
Returns
Type Description
KeyRing

getKeyRingsBuilder(int index)

public KeyRing.Builder getKeyRingsBuilder(int index)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Parameter
Name Description
index int
Returns
Type Description
KeyRing.Builder

getKeyRingsBuilderList()

public List<KeyRing.Builder> getKeyRingsBuilderList()

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Returns
Type Description
List<Builder>

getKeyRingsCount()

public int getKeyRingsCount()

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Returns
Type Description
int

getKeyRingsList()

public List<KeyRing> getKeyRingsList()

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Returns
Type Description
List<KeyRing>

getKeyRingsOrBuilder(int index)

public KeyRingOrBuilder getKeyRingsOrBuilder(int index)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Parameter
Name Description
index int
Returns
Type Description
KeyRingOrBuilder

getKeyRingsOrBuilderList()

public List<? extends KeyRingOrBuilder> getKeyRingsOrBuilderList()

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

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

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results. Pass this value in ListKeyRingsRequest.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 ListKeyRingsRequest.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 KeyRings 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(ListKeyRingsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeKeyRings(int index)

public ListKeyRingsResponse.Builder removeKeyRings(int index)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Parameter
Name Description
index int
Returns
Type Description
ListKeyRingsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeyRings(int index, KeyRing value)

public ListKeyRingsResponse.Builder setKeyRings(int index, KeyRing value)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Parameters
Name Description
index int
value KeyRing
Returns
Type Description
ListKeyRingsResponse.Builder

setKeyRings(int index, KeyRing.Builder builderForValue)

public ListKeyRingsResponse.Builder setKeyRings(int index, KeyRing.Builder builderForValue)

The list of KeyRings.

repeated .google.cloud.kms.v1.KeyRing key_rings = 1;

Parameters
Name Description
index int
builderForValue KeyRing.Builder
Returns
Type Description
ListKeyRingsResponse.Builder

setNextPageToken(String value)

public ListKeyRingsResponse.Builder setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListKeyRingsResponse.Builder setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setTotalSize(int value)

public ListKeyRingsResponse.Builder setTotalSize(int value)

The total number of KeyRings that matched the query.

int32 total_size = 3;

Parameter
Name Description
value int

The totalSize to set.

Returns
Type Description
ListKeyRingsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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