Class ListSecretsResponse.Builder (2.21.0)

public static final class ListSecretsResponse.Builder extends GeneratedMessageV3.Builder<ListSecretsResponse.Builder> implements ListSecretsResponseOrBuilder

Response message for SecretManagerService.ListSecrets.

Protobuf type google.cloud.secrets.v1beta1.ListSecretsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.secretmanager.v1beta1.Secret>
Returns
TypeDescription
ListSecretsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListSecretsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameter
NameDescription
valueSecret
Returns
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameter
NameDescription
builderForValueSecret.Builder
Returns
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameters
NameDescription
indexint
valueSecret
Returns
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameters
NameDescription
indexint
builderForValueSecret.Builder
Returns
TypeDescription
ListSecretsResponse.Builder

addSecretsBuilder()

public Secret.Builder addSecretsBuilder()

The list of Secrets sorted in reverse by create_time (newest first).

repeated .google.cloud.secrets.v1beta1.Secret secrets = 1;

Returns
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Secret.Builder

build()

public ListSecretsResponse build()
Returns
TypeDescription
ListSecretsResponse

buildPartial()

public ListSecretsResponse buildPartial()
Returns
TypeDescription
ListSecretsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListSecretsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListSecretsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecrets()

public ListSecretsResponse.Builder clearSecrets()

The list of Secrets sorted in reverse by create_time (newest first).

repeated .google.cloud.secrets.v1beta1.Secret secrets = 1;

Returns
TypeDescription
ListSecretsResponse.Builder

clearTotalSize()

public ListSecretsResponse.Builder clearTotalSize()

The total number of Secrets.

int32 total_size = 3;

Returns
TypeDescription
ListSecretsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListSecretsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSecretsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Secret.Builder

getSecretsBuilderList()

public List<Secret.Builder> getSecretsBuilderList()

The list of Secrets sorted in reverse by create_time (newest first).

repeated .google.cloud.secrets.v1beta1.Secret secrets = 1;

Returns
TypeDescription
List<Builder>

getSecretsCount()

public int getSecretsCount()

The list of Secrets sorted in reverse by create_time (newest first).

repeated .google.cloud.secrets.v1beta1.Secret secrets = 1;

Returns
TypeDescription
int

getSecretsList()

public List<Secret> getSecretsList()

The list of Secrets sorted in reverse by create_time (newest first).

repeated .google.cloud.secrets.v1beta1.Secret secrets = 1;

Returns
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SecretOrBuilder

getSecretsOrBuilderList()

public List<? extends SecretOrBuilder> getSecretsOrBuilderList()

The list of Secrets sorted in reverse by create_time (newest first).

repeated .google.cloud.secrets.v1beta1.Secret secrets = 1;

Returns
TypeDescription
List<? extends com.google.cloud.secretmanager.v1beta1.SecretOrBuilder>

getTotalSize()

public int getTotalSize()

The total number of Secrets.

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

public ListSecretsResponse.Builder mergeFrom(ListSecretsResponse other)
Parameter
NameDescription
otherListSecretsResponse
Returns
TypeDescription
ListSecretsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSecretsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListSecretsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameters
NameDescription
indexint
valueSecret
Returns
TypeDescription
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.secrets.v1beta1.Secret secrets = 1;

Parameters
NameDescription
indexint
builderForValueSecret.Builder
Returns
TypeDescription
ListSecretsResponse.Builder

setTotalSize(int value)

public ListSecretsResponse.Builder setTotalSize(int value)

The total number of Secrets.

int32 total_size = 3;

Parameter
NameDescription
valueint

The totalSize to set.

Returns
TypeDescription
ListSecretsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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