Class ListBackupsRequest.Builder (0.1.0)

public static final class ListBackupsRequest.Builder extends GeneratedMessage.Builder<ListBackupsRequest.Builder> implements ListBackupsRequestOrBuilder

The request payload to list the backups.

Protobuf type google.cloud.sql.v1.ListBackupsRequest

Static Methods

getDescriptor()

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

Methods

build()

public ListBackupsRequest build()
Returns
Type Description
ListBackupsRequest

buildPartial()

public ListBackupsRequest buildPartial()
Returns
Type Description
ListBackupsRequest

clear()

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

clearFilter()

public ListBackupsRequest.Builder clearFilter()

Multiple filter queries are separated by spaces. For example, 'instance:abc AND type:FINAL, 'location:us', 'backupInterval.startTime>=1950-01-01T01:01:25.771Z'. You can filter by type, instance, backupInterval.startTime (creation time), or location.

string filter = 4;

Returns
Type Description
ListBackupsRequest.Builder

This builder for chaining.

clearPageSize()

public ListBackupsRequest.Builder clearPageSize()

The maximum number of backups to return per response. The service might return fewer backups than this value. If a value for this parameter isn't specified, then, at most, 500 backups are returned. The maximum value is 2,000. Any values that you set, which are greater than 2,000, are changed to 2,000.

int32 page_size = 2;

Returns
Type Description
ListBackupsRequest.Builder

This builder for chaining.

clearPageToken()

public ListBackupsRequest.Builder clearPageToken()

A page token, received from a previous ListBackups call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListBackups must match the call that provided the page token.

string page_token = 3;

Returns
Type Description
ListBackupsRequest.Builder

This builder for chaining.

clearParent()

public ListBackupsRequest.Builder clearParent()

Required. The parent that owns this collection of backups. Format: projects/{project}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ListBackupsRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListBackupsRequest getDefaultInstanceForType()
Returns
Type Description
ListBackupsRequest

getDescriptorForType()

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

getFilter()

public String getFilter()

Multiple filter queries are separated by spaces. For example, 'instance:abc AND type:FINAL, 'location:us', 'backupInterval.startTime>=1950-01-01T01:01:25.771Z'. You can filter by type, instance, backupInterval.startTime (creation time), or location.

string filter = 4;

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Multiple filter queries are separated by spaces. For example, 'instance:abc AND type:FINAL, 'location:us', 'backupInterval.startTime>=1950-01-01T01:01:25.771Z'. You can filter by type, instance, backupInterval.startTime (creation time), or location.

string filter = 4;

Returns
Type Description
ByteString

The bytes for filter.

getPageSize()

public int getPageSize()

The maximum number of backups to return per response. The service might return fewer backups than this value. If a value for this parameter isn't specified, then, at most, 500 backups are returned. The maximum value is 2,000. Any values that you set, which are greater than 2,000, are changed to 2,000.

int32 page_size = 2;

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

A page token, received from a previous ListBackups call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListBackups must match the call that provided the page token.

string page_token = 3;

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A page token, received from a previous ListBackups call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListBackups must match the call that provided the page token.

string page_token = 3;

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The parent that owns this collection of backups. Format: projects/{project}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent that owns this collection of backups. Format: projects/{project}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBackupsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setFilter(String value)

public ListBackupsRequest.Builder setFilter(String value)

Multiple filter queries are separated by spaces. For example, 'instance:abc AND type:FINAL, 'location:us', 'backupInterval.startTime>=1950-01-01T01:01:25.771Z'. You can filter by type, instance, backupInterval.startTime (creation time), or location.

string filter = 4;

Parameter
Name Description
value String

The filter to set.

Returns
Type Description
ListBackupsRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public ListBackupsRequest.Builder setFilterBytes(ByteString value)

Multiple filter queries are separated by spaces. For example, 'instance:abc AND type:FINAL, 'location:us', 'backupInterval.startTime>=1950-01-01T01:01:25.771Z'. You can filter by type, instance, backupInterval.startTime (creation time), or location.

string filter = 4;

Parameter
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
ListBackupsRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListBackupsRequest.Builder setPageSize(int value)

The maximum number of backups to return per response. The service might return fewer backups than this value. If a value for this parameter isn't specified, then, at most, 500 backups are returned. The maximum value is 2,000. Any values that you set, which are greater than 2,000, are changed to 2,000.

int32 page_size = 2;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListBackupsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListBackupsRequest.Builder setPageToken(String value)

A page token, received from a previous ListBackups call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListBackups must match the call that provided the page token.

string page_token = 3;

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListBackupsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListBackupsRequest.Builder setPageTokenBytes(ByteString value)

A page token, received from a previous ListBackups call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListBackups must match the call that provided the page token.

string page_token = 3;

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListBackupsRequest.Builder

This builder for chaining.

setParent(String value)

public ListBackupsRequest.Builder setParent(String value)

Required. The parent that owns this collection of backups. Format: projects/{project}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListBackupsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListBackupsRequest.Builder setParentBytes(ByteString value)

Required. The parent that owns this collection of backups. Format: projects/{project}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ListBackupsRequest.Builder

This builder for chaining.