Class ListKeyRingsResponse.Builder (2.7.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.kms.v1.KeyRing>
Returns
TypeDescription
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
NameDescription
valueKeyRing
Returns
TypeDescription
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
NameDescription
builderForValueKeyRing.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueKeyRing
Returns
TypeDescription
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
NameDescription
indexint
builderForValueKeyRing.Builder
Returns
TypeDescription
ListKeyRingsResponse.Builder

addKeyRingsBuilder()

public KeyRing.Builder addKeyRingsBuilder()

The list of KeyRings.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListKeyRingsResponse build()
Returns
TypeDescription
ListKeyRingsResponse

buildPartial()

public ListKeyRingsResponse buildPartial()
Returns
TypeDescription
ListKeyRingsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKeyRings()

public ListKeyRingsResponse.Builder clearKeyRings()

The list of KeyRings.

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

Returns
TypeDescription
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
TypeDescription
ListKeyRingsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListKeyRingsResponse.Builder clearTotalSize()

The total number of KeyRings that matched the query.

int32 total_size = 3;

Returns
TypeDescription
ListKeyRingsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListKeyRingsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListKeyRingsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKeyRings(int index)

public KeyRing getKeyRings(int index)

The list of KeyRings.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
KeyRing

getKeyRingsBuilder(int index)

public KeyRing.Builder getKeyRingsBuilder(int index)

The list of KeyRings.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
KeyRing.Builder

getKeyRingsBuilderList()

public List<KeyRing.Builder> getKeyRingsBuilderList()

The list of KeyRings.

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

Returns
TypeDescription
List<Builder>

getKeyRingsCount()

public int getKeyRingsCount()

The list of KeyRings.

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

Returns
TypeDescription
int

getKeyRingsList()

public List<KeyRing> getKeyRingsList()

The list of KeyRings.

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

Returns
TypeDescription
List<KeyRing>

getKeyRingsOrBuilder(int index)

public KeyRingOrBuilder getKeyRingsOrBuilder(int index)

The list of KeyRings.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
KeyRingOrBuilder

getKeyRingsOrBuilderList()

public List<? extends KeyRingOrBuilder> getKeyRingsOrBuilderList()

The list of KeyRings.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

getTotalSize()

public int getTotalSize()

The total number of KeyRings 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(ListKeyRingsResponse other)

public ListKeyRingsResponse.Builder mergeFrom(ListKeyRingsResponse other)
Parameter
NameDescription
otherListKeyRingsResponse
Returns
TypeDescription
ListKeyRingsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

The totalSize to set.

Returns
TypeDescription
ListKeyRingsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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