Class ListSecretsResponse.Builder (2.44.0)

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
Type Description
Descriptor

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
Type Description
ListSecretsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListSecretsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListSecretsResponse.Builder
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
Name Description
value Secret
Returns
Type Description
ListSecretsResponse.Builder

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
Name Description
builderForValue Secret.Builder
Returns
Type Description
ListSecretsResponse.Builder

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
Name Description
index int
value Secret
Returns
Type Description
ListSecretsResponse.Builder

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
Name Description
index int
builderForValue Secret.Builder
Returns
Type Description
ListSecretsResponse.Builder

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
Type Description
Secret.Builder

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
Name Description
index int
Returns
Type Description
Secret.Builder

build()

public ListSecretsResponse build()
Returns
Type Description
ListSecretsResponse

buildPartial()

public ListSecretsResponse buildPartial()
Returns
Type Description
ListSecretsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListSecretsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListSecretsResponse.Builder
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
Type Description
ListSecretsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListSecretsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListSecretsResponse.Builder
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
Type Description
ListSecretsResponse.Builder

clearTotalSize()

public ListSecretsResponse.Builder clearTotalSize()

The total number of Secrets but 0 when the ListSecretsRequest.filter field is set.

int32 total_size = 3;

Returns
Type Description
ListSecretsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListSecretsResponse getDefaultInstanceForType()
Returns
Type Description
ListSecretsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Name Description
index int
Returns
Type Description
Secret

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
Name Description
index int
Returns
Type Description
Secret.Builder

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
Type Description
List<Builder>

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
Type Description
int

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
Type Description
List<Secret>

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
Name Description
index int
Returns
Type Description
SecretOrBuilder

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 but 0 when the ListSecretsRequest.filter field is set.

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(ListSecretsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSecretsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListSecretsResponse.Builder
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
Name Description
index int
Returns
Type Description
ListSecretsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListSecretsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListSecretsResponse.Builder
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
Type Description
ListSecretsResponse.Builder

This builder for chaining.

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
Type Description
ListSecretsResponse.Builder

This builder for chaining.

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

public ListSecretsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListSecretsResponse.Builder
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
Name Description
index int
value Secret
Returns
Type Description
ListSecretsResponse.Builder

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
Name Description
index int
builderForValue Secret.Builder
Returns
Type Description
ListSecretsResponse.Builder

setTotalSize(int value)

public ListSecretsResponse.Builder setTotalSize(int value)

The total number of Secrets but 0 when the ListSecretsRequest.filter field is set.

int32 total_size = 3;

Parameter
Name Description
value int

The totalSize to set.

Returns
Type Description
ListSecretsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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