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
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
Name | Description |
values | Iterable<? extends com.google.cloud.secretmanager.v1beta1.SecretVersion>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListSecretVersionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
build()
public ListSecretVersionsResponse build()
Returns
buildPartial()
public ListSecretVersionsResponse buildPartial()
Returns
clear()
public ListSecretVersionsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListSecretVersionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListSecretVersionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTotalSize()
public ListSecretVersionsResponse.Builder clearTotalSize()
The total number of SecretVersions.
int32 total_size = 3;
Returns
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
clone()
public ListSecretVersionsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListSecretVersionsResponse 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
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.
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.secrets.v1beta1.SecretVersion versions = 1;
Parameter
Returns
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
Returns
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
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
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
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
Returns
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
Type | Description |
List<? extends com.google.cloud.secretmanager.v1beta1.SecretVersionOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListSecretVersionsResponse other)
public ListSecretVersionsResponse.Builder mergeFrom(ListSecretVersionsResponse other)
Parameter
Returns
public ListSecretVersionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListSecretVersionsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListSecretVersionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListSecretVersionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListSecretVersionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTotalSize(int value)
public ListSecretVersionsResponse.Builder setTotalSize(int value)
The total number of SecretVersions.
int32 total_size = 3;
Parameter
Name | Description |
value | int
The totalSize to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ListSecretVersionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns