Class ListBackupsResponse.Builder (0.29.0)

publicstaticfinalclass ListBackupsResponse.BuilderextendsGeneratedMessageV3.Builder<ListBackupsResponse.Builder>implementsListBackupsResponseOrBuilder

Response message for listing Backups.

Protobuf type google.cloud.backupdr.v1.ListBackupsResponse

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBackups(Iterable<? extends Backup> values)

publicListBackupsResponse.BuilderaddAllBackups(Iterable<?extendsBackup>values)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.backupdr.v1.Backup>
Returns
Type Description
ListBackupsResponse.Builder

addAllUnreachable(Iterable<String> values)

publicListBackupsResponse.BuilderaddAllUnreachable(Iterable<String>values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListBackupsResponse.Builder

This builder for chaining.

addBackups(Backup value)

publicListBackupsResponse.BuilderaddBackups(Backupvalue)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameter
Name Description
value Backup
Returns
Type Description
ListBackupsResponse.Builder

addBackups(Backup.Builder builderForValue)

publicListBackupsResponse.BuilderaddBackups(Backup.BuilderbuilderForValue)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameter
Name Description
builderForValue Backup.Builder
Returns
Type Description
ListBackupsResponse.Builder

addBackups(int index, Backup value)

publicListBackupsResponse.BuilderaddBackups(intindex,Backupvalue)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameters
Name Description
index int
value Backup
Returns
Type Description
ListBackupsResponse.Builder

addBackups(int index, Backup.Builder builderForValue)

publicListBackupsResponse.BuilderaddBackups(intindex,Backup.BuilderbuilderForValue)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameters
Name Description
index int
builderForValue Backup.Builder
Returns
Type Description
ListBackupsResponse.Builder

addBackupsBuilder()

publicBackup.BuilderaddBackupsBuilder()

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Returns
Type Description
Backup.Builder

addBackupsBuilder(int index)

publicBackup.BuilderaddBackupsBuilder(intindex)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameter
Name Description
index int
Returns
Type Description
Backup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicListBackupsResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListBackupsResponse.Builder
Overrides

addUnreachable(String value)

publicListBackupsResponse.BuilderaddUnreachable(Stringvalue)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListBackupsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

publicListBackupsResponse.BuilderaddUnreachableBytes(ByteStringvalue)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListBackupsResponse.Builder

This builder for chaining.

build()

publicListBackupsResponsebuild()
Returns
Type Description
ListBackupsResponse

buildPartial()

publicListBackupsResponsebuildPartial()
Returns
Type Description
ListBackupsResponse

clear()

publicListBackupsResponse.Builderclear()
Returns
Type Description
ListBackupsResponse.Builder
Overrides

clearBackups()

publicListBackupsResponse.BuilderclearBackups()

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Returns
Type Description
ListBackupsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

publicListBackupsResponse.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListBackupsResponse.Builder
Overrides

clearNextPageToken()

publicListBackupsResponse.BuilderclearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ListBackupsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicListBackupsResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListBackupsResponse.Builder
Overrides

clearUnreachable()

publicListBackupsResponse.BuilderclearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListBackupsResponse.Builder

This builder for chaining.

clone()

publicListBackupsResponse.Builderclone()
Returns
Type Description
ListBackupsResponse.Builder
Overrides

getBackups(int index)

publicBackupgetBackups(intindex)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameter
Name Description
index int
Returns
Type Description
Backup

getBackupsBuilder(int index)

publicBackup.BuildergetBackupsBuilder(intindex)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameter
Name Description
index int
Returns
Type Description
Backup.Builder

getBackupsBuilderList()

publicList<Backup.Builder>getBackupsBuilderList()

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Returns
Type Description
List<Builder>

getBackupsCount()

publicintgetBackupsCount()

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Returns
Type Description
int

getBackupsList()

publicList<Backup>getBackupsList()

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Returns
Type Description
List<Backup>

getBackupsOrBuilder(int index)

publicBackupOrBuildergetBackupsOrBuilder(intindex)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupOrBuilder

getBackupsOrBuilderList()

publicList<?extendsBackupOrBuilder>getBackupsOrBuilderList()

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1.BackupOrBuilder>

getDefaultInstanceForType()

publicListBackupsResponsegetDefaultInstanceForType()
Returns
Type Description
ListBackupsResponse

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

publicStringgetNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

publicByteStringgetNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

publicStringgetUnreachable(intindex)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

publicByteStringgetUnreachableBytes(intindex)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

publicintgetUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

publicProtocolStringListgetUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBackupsResponse other)

publicListBackupsResponse.BuildermergeFrom(ListBackupsResponseother)
Parameter
Name Description
other ListBackupsResponse
Returns
Type Description
ListBackupsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicListBackupsResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListBackupsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicListBackupsResponse.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ListBackupsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalListBackupsResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListBackupsResponse.Builder
Overrides

removeBackups(int index)

publicListBackupsResponse.BuilderremoveBackups(intindex)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBackupsResponse.Builder

setBackups(int index, Backup value)

publicListBackupsResponse.BuildersetBackups(intindex,Backupvalue)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameters
Name Description
index int
value Backup
Returns
Type Description
ListBackupsResponse.Builder

setBackups(int index, Backup.Builder builderForValue)

publicListBackupsResponse.BuildersetBackups(intindex,Backup.BuilderbuilderForValue)

The list of Backup instances in the project for the specified location.

If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.Backup backups = 1;

Parameters
Name Description
index int
builderForValue Backup.Builder
Returns
Type Description
ListBackupsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicListBackupsResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListBackupsResponse.Builder
Overrides

setNextPageToken(String value)

publicListBackupsResponse.BuildersetNextPageToken(Stringvalue)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListBackupsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

publicListBackupsResponse.BuildersetNextPageTokenBytes(ByteStringvalue)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListBackupsResponse.Builder

This builder for chaining.

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

publicListBackupsResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListBackupsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalListBackupsResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListBackupsResponse.Builder
Overrides

setUnreachable(int index, String value)

publicListBackupsResponse.BuildersetUnreachable(intindex,Stringvalue)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListBackupsResponse.Builder

This builder for chaining.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.