Class ListSecretVersionsResponse.Builder (2.22.0)

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

Response message for SecretManagerService.ListSecretVersions.

Protobuf type google.cloud.secrets.v1beta1.ListSecretVersionsResponse

Static Methods

getDescriptor()

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

Parameter
NameDescription
valueSecretVersion
Returns
TypeDescription
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.secrets.v1beta1.SecretVersion versions = 1;

Parameter
NameDescription
builderForValueSecretVersion.Builder
Returns
TypeDescription
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.secrets.v1beta1.SecretVersion versions = 1;

Parameters
NameDescription
indexint
valueSecretVersion
Returns
TypeDescription
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.secrets.v1beta1.SecretVersion versions = 1;

Parameters
NameDescription
indexint
builderForValueSecretVersion.Builder
Returns
TypeDescription
ListSecretVersionsResponse.Builder

addVersionsBuilder()

public SecretVersion.Builder addVersionsBuilder()

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

repeated .google.cloud.secrets.v1beta1.SecretVersion versions = 1;

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SecretVersion.Builder

build()

public ListSecretVersionsResponse build()
Returns
TypeDescription
ListSecretVersionsResponse

buildPartial()

public ListSecretVersionsResponse buildPartial()
Returns
TypeDescription
ListSecretVersionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListSecretVersionsResponse.Builder clearTotalSize()

The total number of SecretVersions.

int32 total_size = 3;

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

Returns
TypeDescription
ListSecretVersionsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSecretVersionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSecretVersionsResponse

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

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getTotalSize()

public int getTotalSize()

The total number of SecretVersions.

int32 total_size = 3;

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SecretVersion.Builder

getVersionsBuilderList()

public List<SecretVersion.Builder> getVersionsBuilderList()

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

repeated .google.cloud.secrets.v1beta1.SecretVersion versions = 1;

Returns
TypeDescription
List<Builder>

getVersionsCount()

public int getVersionsCount()

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

repeated .google.cloud.secrets.v1beta1.SecretVersion versions = 1;

Returns
TypeDescription
int

getVersionsList()

public List<SecretVersion> getVersionsList()

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

repeated .google.cloud.secrets.v1beta1.SecretVersion versions = 1;

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SecretVersionOrBuilder

getVersionsOrBuilderList()

public List<? extends SecretVersionOrBuilder> getVersionsOrBuilderList()

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

repeated .google.cloud.secrets.v1beta1.SecretVersion versions = 1;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListSecretVersionsResponse other)

public ListSecretVersionsResponse.Builder mergeFrom(ListSecretVersionsResponse other)
Parameter
NameDescription
otherListSecretVersionsResponse
Returns
TypeDescription
ListSecretVersionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListSecretVersionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListSecretVersionsResponse.Builder
Overrides

setTotalSize(int value)

public ListSecretVersionsResponse.Builder setTotalSize(int value)

The total number of SecretVersions.

int32 total_size = 3;

Parameter
NameDescription
valueint

The totalSize to set.

Returns
TypeDescription
ListSecretVersionsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ListSecretVersionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.secrets.v1beta1.SecretVersion versions = 1;

Parameters
NameDescription
indexint
valueSecretVersion
Returns
TypeDescription
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.secrets.v1beta1.SecretVersion versions = 1;

Parameters
NameDescription
indexint
builderForValueSecretVersion.Builder
Returns
TypeDescription
ListSecretVersionsResponse.Builder