public static final class ListSecretsResponse.Builder extends GeneratedMessageV3.Builder<ListSecretsResponse.Builder> implements ListSecretsResponseOrBuilder
Response message for SecretManagerService.ListSecrets.
Protobuf type google.cloud.secretmanager.v1.ListSecretsResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllSecrets(Iterable<? extends Secret> values)
public ListSecretsResponse.Builder addAllSecrets(Iterable<? extends Secret> values)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.secretmanager.v1.Secret>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListSecretsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addSecrets(Secret value)
public ListSecretsResponse.Builder addSecrets(Secret value)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameter
Returns
addSecrets(Secret.Builder builderForValue)
public ListSecretsResponse.Builder addSecrets(Secret.Builder builderForValue)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameter
Returns
addSecrets(int index, Secret value)
public ListSecretsResponse.Builder addSecrets(int index, Secret value)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameters
Returns
addSecrets(int index, Secret.Builder builderForValue)
public ListSecretsResponse.Builder addSecrets(int index, Secret.Builder builderForValue)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameters
Returns
addSecretsBuilder()
public Secret.Builder addSecretsBuilder()
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Returns
addSecretsBuilder(int index)
public Secret.Builder addSecretsBuilder(int index)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameter
Returns
build()
public ListSecretsResponse build()
Returns
buildPartial()
public ListSecretsResponse buildPartial()
Returns
clear()
public ListSecretsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListSecretsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public ListSecretsResponse.Builder clearNextPageToken()
A token to retrieve the next page of results. Pass this value in
ListSecretsRequest.page_token to retrieve the next page.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListSecretsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSecrets()
public ListSecretsResponse.Builder clearSecrets()
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Returns
clearTotalSize()
public ListSecretsResponse.Builder clearTotalSize()
The total number of Secrets.
int32 total_size = 3;
Returns
clone()
public ListSecretsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListSecretsResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNextPageToken()
public String getNextPageToken()
A token to retrieve the next page of results. Pass this value in
ListSecretsRequest.page_token to retrieve the next page.
string next_page_token = 2;
Returns
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
A token to retrieve the next page of results. Pass this value in
ListSecretsRequest.page_token to retrieve the next page.
string next_page_token = 2;
Returns
Type | Description |
ByteString | The bytes for nextPageToken.
|
getSecrets(int index)
public Secret getSecrets(int index)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameter
Returns
getSecretsBuilder(int index)
public Secret.Builder getSecretsBuilder(int index)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameter
Returns
getSecretsBuilderList()
public List<Secret.Builder> getSecretsBuilderList()
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Returns
getSecretsCount()
public int getSecretsCount()
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Returns
getSecretsList()
public List<Secret> getSecretsList()
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Returns
getSecretsOrBuilder(int index)
public SecretOrBuilder getSecretsOrBuilder(int index)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameter
Returns
getSecretsOrBuilderList()
public List<? extends SecretOrBuilder> getSecretsOrBuilderList()
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Returns
Type | Description |
List<? extends com.google.cloud.secretmanager.v1.SecretOrBuilder> | |
getTotalSize()
public int getTotalSize()
The total number of Secrets.
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(ListSecretsResponse other)
public ListSecretsResponse.Builder mergeFrom(ListSecretsResponse other)
Parameter
Returns
public ListSecretsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListSecretsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListSecretsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeSecrets(int index)
public ListSecretsResponse.Builder removeSecrets(int index)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListSecretsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNextPageToken(String value)
public ListSecretsResponse.Builder setNextPageToken(String value)
A token to retrieve the next page of results. Pass this value in
ListSecretsRequest.page_token to retrieve the next page.
string next_page_token = 2;
Parameter
Name | Description |
value | String
The nextPageToken to set.
|
Returns
setNextPageTokenBytes(ByteString value)
public ListSecretsResponse.Builder setNextPageTokenBytes(ByteString value)
A token to retrieve the next page of results. Pass this value in
ListSecretsRequest.page_token to retrieve the next page.
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 ListSecretsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSecrets(int index, Secret value)
public ListSecretsResponse.Builder setSecrets(int index, Secret value)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameters
Returns
setSecrets(int index, Secret.Builder builderForValue)
public ListSecretsResponse.Builder setSecrets(int index, Secret.Builder builderForValue)
The list of Secrets sorted in reverse by create_time (newest
first).
repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
Parameters
Returns
setTotalSize(int value)
public ListSecretsResponse.Builder setTotalSize(int value)
The total number of Secrets.
int32 total_size = 3;
Parameter
Name | Description |
value | int
The totalSize to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ListSecretsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides