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
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
addKeyRings(KeyRing value)
public ListKeyRingsResponse.Builder addKeyRings(KeyRing value)
The list of KeyRings.
repeated .google.cloud.kms.v1.KeyRing key_rings = 1;
Parameter
Returns
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
Returns
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
Returns
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
Returns
addKeyRingsBuilder()
public KeyRing.Builder addKeyRingsBuilder()
The list of KeyRings.
repeated .google.cloud.kms.v1.KeyRing key_rings = 1;
Returns
addKeyRingsBuilder(int index)
public KeyRing.Builder addKeyRingsBuilder(int index)
The list of KeyRings.
repeated .google.cloud.kms.v1.KeyRing key_rings = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListKeyRingsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListKeyRingsResponse build()
Returns
buildPartial()
public ListKeyRingsResponse buildPartial()
Returns
clear()
public ListKeyRingsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListKeyRingsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearKeyRings()
public ListKeyRingsResponse.Builder clearKeyRings()
The list of KeyRings.
repeated .google.cloud.kms.v1.KeyRing key_rings = 1;
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListKeyRingsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTotalSize()
public ListKeyRingsResponse.Builder clearTotalSize()
The total number of KeyRings that matched the query.
int32 total_size = 3;
Returns
clone()
public ListKeyRingsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListKeyRingsResponse getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getKeyRings(int index)
public KeyRing getKeyRings(int index)
The list of KeyRings.
repeated .google.cloud.kms.v1.KeyRing key_rings = 1;
Parameter
Returns
getKeyRingsBuilder(int index)
public KeyRing.Builder getKeyRingsBuilder(int index)
The list of KeyRings.
repeated .google.cloud.kms.v1.KeyRing key_rings = 1;
Parameter
Returns
getKeyRingsBuilderList()
public List<KeyRing.Builder> getKeyRingsBuilderList()
The list of KeyRings.
repeated .google.cloud.kms.v1.KeyRing key_rings = 1;
Returns
getKeyRingsCount()
public int getKeyRingsCount()
The list of KeyRings.
repeated .google.cloud.kms.v1.KeyRing key_rings = 1;
Returns
getKeyRingsList()
public List<KeyRing> getKeyRingsList()
The list of KeyRings.
repeated .google.cloud.kms.v1.KeyRing key_rings = 1;
Returns
getKeyRingsOrBuilder(int index)
public KeyRingOrBuilder getKeyRingsOrBuilder(int index)
The list of KeyRings.
repeated .google.cloud.kms.v1.KeyRing key_rings = 1;
Parameter
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListKeyRingsResponse other)
public ListKeyRingsResponse.Builder mergeFrom(ListKeyRingsResponse other)
Parameter
Returns
public ListKeyRingsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListKeyRingsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListKeyRingsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeKeyRings(int index)
public ListKeyRingsResponse.Builder removeKeyRings(int index)
The list of KeyRings.
repeated .google.cloud.kms.v1.KeyRing key_rings = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListKeyRingsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListKeyRingsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final ListKeyRingsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides