Class ListBackupsResponse.Builder (0.1.0)

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

The response payload containing a list of the backups.

Protobuf type google.cloud.sql.v1beta4.ListBackupsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBackups(Iterable<? extends Backup> values)

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

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

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

addAllWarnings(Iterable<? extends ApiWarning> values)

public ListBackupsResponse.Builder addAllWarnings(Iterable<? extends ApiWarning> values)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.sql.v1beta4.ApiWarning>
Returns
Type Description
ListBackupsResponse.Builder

addBackups(Backup value)

public ListBackupsResponse.Builder addBackups(Backup value)

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Parameter
Name Description
value Backup
Returns
Type Description
ListBackupsResponse.Builder

addBackups(Backup.Builder builderForValue)

public ListBackupsResponse.Builder addBackups(Backup.Builder builderForValue)

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

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

addBackups(int index, Backup value)

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

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

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

addBackups(int index, Backup.Builder builderForValue)

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

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

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

addBackupsBuilder()

public Backup.Builder addBackupsBuilder()

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Returns
Type Description
Backup.Builder

addBackupsBuilder(int index)

public Backup.Builder addBackupsBuilder(int index)

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Parameter
Name Description
index int
Returns
Type Description
Backup.Builder

addWarnings(ApiWarning value)

public ListBackupsResponse.Builder addWarnings(ApiWarning value)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Parameter
Name Description
value ApiWarning
Returns
Type Description
ListBackupsResponse.Builder

addWarnings(ApiWarning.Builder builderForValue)

public ListBackupsResponse.Builder addWarnings(ApiWarning.Builder builderForValue)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

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

addWarnings(int index, ApiWarning value)

public ListBackupsResponse.Builder addWarnings(int index, ApiWarning value)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

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

addWarnings(int index, ApiWarning.Builder builderForValue)

public ListBackupsResponse.Builder addWarnings(int index, ApiWarning.Builder builderForValue)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

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

addWarningsBuilder()

public ApiWarning.Builder addWarningsBuilder()

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Returns
Type Description
ApiWarning.Builder

addWarningsBuilder(int index)

public ApiWarning.Builder addWarningsBuilder(int index)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Parameter
Name Description
index int
Returns
Type Description
ApiWarning.Builder

build()

public ListBackupsResponse build()
Returns
Type Description
ListBackupsResponse

buildPartial()

public ListBackupsResponse buildPartial()
Returns
Type Description
ListBackupsResponse

clear()

public ListBackupsResponse.Builder clear()
Returns
Type Description
ListBackupsResponse.Builder
Overrides

clearBackups()

public ListBackupsResponse.Builder clearBackups()

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Returns
Type Description
ListBackupsResponse.Builder

clearNextPageToken()

public ListBackupsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, then there aren't subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListBackupsResponse.Builder

This builder for chaining.

clearWarnings()

public ListBackupsResponse.Builder clearWarnings()

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Returns
Type Description
ListBackupsResponse.Builder

getBackups(int index)

public Backup getBackups(int index)

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Parameter
Name Description
index int
Returns
Type Description
Backup

getBackupsBuilder(int index)

public Backup.Builder getBackupsBuilder(int index)

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Parameter
Name Description
index int
Returns
Type Description
Backup.Builder

getBackupsBuilderList()

public List<Backup.Builder> getBackupsBuilderList()

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Returns
Type Description
List<Builder>

getBackupsCount()

public int getBackupsCount()

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Returns
Type Description
int

getBackupsList()

public List<Backup> getBackupsList()

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Returns
Type Description
List<Backup>

getBackupsOrBuilder(int index)

public BackupOrBuilder getBackupsOrBuilder(int index)

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupOrBuilder

getBackupsOrBuilderList()

public List<? extends BackupOrBuilder> getBackupsOrBuilderList()

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Returns
Type Description
List<? extends com.google.cloud.sql.v1beta4.BackupOrBuilder>

getDefaultInstanceForType()

public ListBackupsResponse getDefaultInstanceForType()
Returns
Type Description
ListBackupsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, then there aren't subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, then there aren't subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getWarnings(int index)

public ApiWarning getWarnings(int index)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Parameter
Name Description
index int
Returns
Type Description
ApiWarning

getWarningsBuilder(int index)

public ApiWarning.Builder getWarningsBuilder(int index)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Parameter
Name Description
index int
Returns
Type Description
ApiWarning.Builder

getWarningsBuilderList()

public List<ApiWarning.Builder> getWarningsBuilderList()

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Returns
Type Description
List<Builder>

getWarningsCount()

public int getWarningsCount()

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Returns
Type Description
int

getWarningsList()

public List<ApiWarning> getWarningsList()

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Returns
Type Description
List<ApiWarning>

getWarningsOrBuilder(int index)

public ApiWarningOrBuilder getWarningsOrBuilder(int index)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Parameter
Name Description
index int
Returns
Type Description
ApiWarningOrBuilder

getWarningsOrBuilderList()

public List<? extends ApiWarningOrBuilder> getWarningsOrBuilderList()

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Returns
Type Description
List<? extends com.google.cloud.sql.v1beta4.ApiWarningOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBackupsResponse other)

public ListBackupsResponse.Builder mergeFrom(ListBackupsResponse other)
Parameter
Name Description
other ListBackupsResponse
Returns
Type Description
ListBackupsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListBackupsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListBackupsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListBackupsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListBackupsResponse.Builder
Overrides

removeBackups(int index)

public ListBackupsResponse.Builder removeBackups(int index)

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBackupsResponse.Builder

removeWarnings(int index)

public ListBackupsResponse.Builder removeWarnings(int index)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

Parameter
Name Description
index int
Returns
Type Description
ListBackupsResponse.Builder

setBackups(int index, Backup value)

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

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

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

setBackups(int index, Backup.Builder builderForValue)

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

A list of backups.

repeated .google.cloud.sql.v1beta4.Backup backups = 1;

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

setNextPageToken(String value)

public ListBackupsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, then there aren't subsequent pages.

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)

public ListBackupsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, then there aren't subsequent pages.

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.

setWarnings(int index, ApiWarning value)

public ListBackupsResponse.Builder setWarnings(int index, ApiWarning value)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

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

setWarnings(int index, ApiWarning.Builder builderForValue)

public ListBackupsResponse.Builder setWarnings(int index, ApiWarning.Builder builderForValue)

If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

repeated .google.cloud.sql.v1beta4.ApiWarning warnings = 3;

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