Class ListBackupsResponse.Builder (1.8.0)

public static final class ListBackupsResponse.Builder extends GeneratedMessageV3.Builder<ListBackupsResponse.Builder> implements ListBackupsResponseOrBuilder

ListBackupsResponse is the result of ListBackupsRequest.

Protobuf type google.cloud.filestore.v1beta1.ListBackupsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllBackups(Iterable<? extends Backup> values)

public ListBackupsResponse.Builder addAllBackups(Iterable<? extends Backup> values)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.filestore.v1beta1.Backup>
Returns
TypeDescription
ListBackupsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListBackupsResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListBackupsResponse.Builder

This builder for chaining.

addBackups(Backup value)

public ListBackupsResponse.Builder addBackups(Backup value)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameter
NameDescription
valueBackup
Returns
TypeDescription
ListBackupsResponse.Builder

addBackups(Backup.Builder builderForValue)

public ListBackupsResponse.Builder addBackups(Backup.Builder builderForValue)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameter
NameDescription
builderForValueBackup.Builder
Returns
TypeDescription
ListBackupsResponse.Builder

addBackups(int index, Backup value)

public ListBackupsResponse.Builder addBackups(int index, Backup value)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameters
NameDescription
indexint
valueBackup
Returns
TypeDescription
ListBackupsResponse.Builder

addBackups(int index, Backup.Builder builderForValue)

public ListBackupsResponse.Builder addBackups(int index, Backup.Builder builderForValue)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameters
NameDescription
indexint
builderForValueBackup.Builder
Returns
TypeDescription
ListBackupsResponse.Builder

addBackupsBuilder()

public Backup.Builder addBackupsBuilder()

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Returns
TypeDescription
Backup.Builder

addBackupsBuilder(int index)

public Backup.Builder addBackupsBuilder(int index)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Backup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListBackupsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListBackupsResponse.Builder
Overrides

addUnreachable(String value)

public ListBackupsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListBackupsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListBackupsResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListBackupsResponse.Builder

This builder for chaining.

build()

public ListBackupsResponse build()
Returns
TypeDescription
ListBackupsResponse

buildPartial()

public ListBackupsResponse buildPartial()
Returns
TypeDescription
ListBackupsResponse

clear()

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

clearBackups()

public ListBackupsResponse.Builder clearBackups()

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Returns
TypeDescription
ListBackupsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListBackupsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListBackupsResponse.Builder
Overrides

clearNextPageToken()

public ListBackupsResponse.Builder clearNextPageToken()

The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
ListBackupsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListBackupsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListBackupsResponse.Builder

This builder for chaining.

clone()

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

getBackups(int index)

public Backup getBackups(int index)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Backup

getBackupsBuilder(int index)

public Backup.Builder getBackupsBuilder(int index)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Backup.Builder

getBackupsBuilderList()

public List<Backup.Builder> getBackupsBuilderList()

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Returns
TypeDescription
List<Builder>

getBackupsCount()

public int getBackupsCount()

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Returns
TypeDescription
int

getBackupsList()

public List<Backup> getBackupsList()

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Returns
TypeDescription
List<Backup>

getBackupsOrBuilder(int index)

public BackupOrBuilder getBackupsOrBuilder(int index)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
BackupOrBuilder

getBackupsOrBuilderList()

public List<? extends BackupOrBuilder> getBackupsOrBuilderList()

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Returns
TypeDescription
List<? extends com.google.cloud.filestore.v1beta1.BackupOrBuilder>

getDefaultInstanceForType()

public ListBackupsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListBackupsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListBackupsResponse other)

public ListBackupsResponse.Builder mergeFrom(ListBackupsResponse other)
Parameter
NameDescription
otherListBackupsResponse
Returns
TypeDescription
ListBackupsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListBackupsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListBackupsResponse.Builder
Overrides

removeBackups(int index)

public ListBackupsResponse.Builder removeBackups(int index)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListBackupsResponse.Builder

setBackups(int index, Backup value)

public ListBackupsResponse.Builder setBackups(int index, Backup value)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameters
NameDescription
indexint
valueBackup
Returns
TypeDescription
ListBackupsResponse.Builder

setBackups(int index, Backup.Builder builderForValue)

public ListBackupsResponse.Builder setBackups(int index, Backup.Builder builderForValue)

A list of backups in the project for the specified location. If the {location} value in the request is "-", the response contains a list of backups from all locations. If any location is unreachable, the response will only return backups in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.

repeated .google.cloud.filestore.v1beta1.Backup backups = 1;

Parameters
NameDescription
indexint
builderForValueBackup.Builder
Returns
TypeDescription
ListBackupsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListBackupsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListBackupsResponse.Builder
Overrides

setNextPageToken(String value)

public ListBackupsResponse.Builder setNextPageToken(String value)

The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListBackupsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListBackupsResponse.Builder setNextPageTokenBytes(ByteString value)

The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListBackupsResponse.Builder

This builder for chaining.

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

public ListBackupsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListBackupsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListBackupsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListBackupsResponse.Builder
Overrides

setUnreachable(int index, String value)

public ListBackupsResponse.Builder setUnreachable(int index, String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListBackupsResponse.Builder

This builder for chaining.