Class ListBackupsResponse.Builder (0.29.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass ListBackupsResponse.BuilderextendsGeneratedMessageV3.Builder<ListBackupsResponse.Builder>implementsListBackupsResponseOrBuilderResponse message for listing Backups.
Protobuf type google.cloud.backupdr.v1.ListBackupsResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListBackupsResponse.BuilderImplements
ListBackupsResponseOrBuilderInherited Members
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicListBackupsResponse.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListBackupsResponse.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalListBackupsResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ListBackupsResponse.Builder |
|
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 |
|
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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalListBackupsResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ListBackupsResponse.Builder |
|
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. |