Class ListSecretVersionsResponse.Builder (2.55.0)

public static final class ListSecretVersionsResponse.Builder extends GeneratedMessageV3.Builder<ListSecretVersionsResponse.Builder> implements ListSecretVersionsResponseOrBuilder

Response message for SecretManagerService.ListSecretVersions.

Protobuf type google.cloud.secretmanager.v1.ListSecretVersionsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllVersions(Iterable<? extends SecretVersion> values)

public ListSecretVersionsResponse.Builder addAllVersions(Iterable<? extends SecretVersion> values)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.secretmanager.v1.SecretVersion>
Returns
Type Description
ListSecretVersionsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListSecretVersionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListSecretVersionsResponse.Builder
Overrides

addVersions(SecretVersion value)

public ListSecretVersionsResponse.Builder addVersions(SecretVersion value)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameter
Name Description
value SecretVersion
Returns
Type Description
ListSecretVersionsResponse.Builder

addVersions(SecretVersion.Builder builderForValue)

public ListSecretVersionsResponse.Builder addVersions(SecretVersion.Builder builderForValue)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameter
Name Description
builderForValue SecretVersion.Builder
Returns
Type Description
ListSecretVersionsResponse.Builder

addVersions(int index, SecretVersion value)

public ListSecretVersionsResponse.Builder addVersions(int index, SecretVersion value)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameters
Name Description
index int
value SecretVersion
Returns
Type Description
ListSecretVersionsResponse.Builder

addVersions(int index, SecretVersion.Builder builderForValue)

public ListSecretVersionsResponse.Builder addVersions(int index, SecretVersion.Builder builderForValue)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameters
Name Description
index int
builderForValue SecretVersion.Builder
Returns
Type Description
ListSecretVersionsResponse.Builder

addVersionsBuilder()

public SecretVersion.Builder addVersionsBuilder()

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Returns
Type Description
SecretVersion.Builder

addVersionsBuilder(int index)

public SecretVersion.Builder addVersionsBuilder(int index)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameter
Name Description
index int
Returns
Type Description
SecretVersion.Builder

build()

public ListSecretVersionsResponse build()
Returns
Type Description
ListSecretVersionsResponse

buildPartial()

public ListSecretVersionsResponse buildPartial()
Returns
Type Description
ListSecretVersionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListSecretVersionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListSecretVersionsResponse.Builder
Overrides

clearNextPageToken()

public ListSecretVersionsResponse.Builder clearNextPageToken()

A token to retrieve the next page of results. Pass this value in ListSecretVersionsRequest.page_token to retrieve the next page.

string next_page_token = 2;

Returns
Type Description
ListSecretVersionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListSecretVersionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListSecretVersionsResponse.Builder
Overrides

clearTotalSize()

public ListSecretVersionsResponse.Builder clearTotalSize()

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

int32 total_size = 3;

Returns
Type Description
ListSecretVersionsResponse.Builder

This builder for chaining.

clearVersions()

public ListSecretVersionsResponse.Builder clearVersions()

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Returns
Type Description
ListSecretVersionsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSecretVersionsResponse getDefaultInstanceForType()
Returns
Type Description
ListSecretVersionsResponse

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 ListSecretVersionsRequest.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 ListSecretVersionsRequest.page_token to retrieve the next page.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTotalSize()

public int getTotalSize()

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

int32 total_size = 3;

Returns
Type Description
int

The totalSize.

getVersions(int index)

public SecretVersion getVersions(int index)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameter
Name Description
index int
Returns
Type Description
SecretVersion

getVersionsBuilder(int index)

public SecretVersion.Builder getVersionsBuilder(int index)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameter
Name Description
index int
Returns
Type Description
SecretVersion.Builder

getVersionsBuilderList()

public List<SecretVersion.Builder> getVersionsBuilderList()

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Returns
Type Description
List<Builder>

getVersionsCount()

public int getVersionsCount()

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Returns
Type Description
int

getVersionsList()

public List<SecretVersion> getVersionsList()

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Returns
Type Description
List<SecretVersion>

getVersionsOrBuilder(int index)

public SecretVersionOrBuilder getVersionsOrBuilder(int index)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameter
Name Description
index int
Returns
Type Description
SecretVersionOrBuilder

getVersionsOrBuilderList()

public List<? extends SecretVersionOrBuilder> getVersionsOrBuilderList()

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Returns
Type Description
List<? extends com.google.cloud.secretmanager.v1.SecretVersionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListSecretVersionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSecretVersionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListSecretVersionsResponse.Builder
Overrides

removeVersions(int index)

public ListSecretVersionsResponse.Builder removeVersions(int index)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameter
Name Description
index int
Returns
Type Description
ListSecretVersionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListSecretVersionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListSecretVersionsResponse.Builder
Overrides

setNextPageToken(String value)

public ListSecretVersionsResponse.Builder setNextPageToken(String value)

A token to retrieve the next page of results. Pass this value in ListSecretVersionsRequest.page_token to retrieve the next page.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListSecretVersionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSecretVersionsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve the next page of results. Pass this value in ListSecretVersionsRequest.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
ListSecretVersionsResponse.Builder

This builder for chaining.

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

public ListSecretVersionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListSecretVersionsResponse.Builder
Overrides

setTotalSize(int value)

public ListSecretVersionsResponse.Builder setTotalSize(int value)

The total number of SecretVersions 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
ListSecretVersionsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersions(int index, SecretVersion value)

public ListSecretVersionsResponse.Builder setVersions(int index, SecretVersion value)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameters
Name Description
index int
value SecretVersion
Returns
Type Description
ListSecretVersionsResponse.Builder

setVersions(int index, SecretVersion.Builder builderForValue)

public ListSecretVersionsResponse.Builder setVersions(int index, SecretVersion.Builder builderForValue)

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

repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;

Parameters
Name Description
index int
builderForValue SecretVersion.Builder
Returns
Type Description
ListSecretVersionsResponse.Builder