Class ListInstancesRequest.Builder (0.83.0)

public static final class ListInstancesRequest.Builder extends GeneratedMessage.Builder<ListInstancesRequest.Builder> implements ListInstancesRequestOrBuilder

Request message for retrieving a list of Instances.

Protobuf type google.cloud.run.v2.ListInstancesRequest

Static Methods

getDescriptor()

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

Methods

build()

public ListInstancesRequest build()
Returns
Type Description
ListInstancesRequest

buildPartial()

public ListInstancesRequest buildPartial()
Returns
Type Description
ListInstancesRequest

clear()

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

clearPageSize()

public ListInstancesRequest.Builder clearPageSize()

Optional. Maximum number of Instances to return in this call.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListInstancesRequest.Builder

This builder for chaining.

clearPageToken()

public ListInstancesRequest.Builder clearPageToken()

Optional. A page token received from a previous call to ListInstances. All other parameters must match.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListInstancesRequest.Builder

This builder for chaining.

clearParent()

public ListInstancesRequest.Builder clearParent()

Required. The location and project to list resources on. Format: projects/{project}/locations/{location}, where {project} can be project id or number.

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

Returns
Type Description
ListInstancesRequest.Builder

This builder for chaining.

clearShowDeleted()

public ListInstancesRequest.Builder clearShowDeleted()

Optional. If true, returns deleted (but unexpired) resources along with active ones.

bool show_deleted = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListInstancesRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListInstancesRequest getDefaultInstanceForType()
Returns
Type Description
ListInstancesRequest

getDescriptorForType()

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

getPageSize()

public int getPageSize()

Optional. Maximum number of Instances to return in this call.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. A page token received from a previous call to ListInstances. All other parameters must match.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. A page token received from a previous call to ListInstances. All other parameters must match.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The location and project to list resources on. Format: projects/{project}/locations/{location}, where {project} can be project id or number.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The location and project to list resources on. Format: projects/{project}/locations/{location}, where {project} can be project id or number.

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

Returns
Type Description
ByteString

The bytes for parent.

getShowDeleted()

public boolean getShowDeleted()

Optional. If true, returns deleted (but unexpired) resources along with active ones.

bool show_deleted = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The showDeleted.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListInstancesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPageSize(int value)

public ListInstancesRequest.Builder setPageSize(int value)

Optional. Maximum number of Instances to return in this call.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListInstancesRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListInstancesRequest.Builder setPageToken(String value)

Optional. A page token received from a previous call to ListInstances. All other parameters must match.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListInstancesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListInstancesRequest.Builder setPageTokenBytes(ByteString value)

Optional. A page token received from a previous call to ListInstances. All other parameters must match.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListInstancesRequest.Builder

This builder for chaining.

setParent(String value)

public ListInstancesRequest.Builder setParent(String value)

Required. The location and project to list resources on. Format: projects/{project}/locations/{location}, where {project} can be project id or number.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListInstancesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListInstancesRequest.Builder setParentBytes(ByteString value)

Required. The location and project to list resources on. Format: projects/{project}/locations/{location}, where {project} can be project id or number.

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
ListInstancesRequest.Builder

This builder for chaining.

setShowDeleted(boolean value)

public ListInstancesRequest.Builder setShowDeleted(boolean value)

Optional. If true, returns deleted (but unexpired) resources along with active ones.

bool show_deleted = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The showDeleted to set.

Returns
Type Description
ListInstancesRequest.Builder

This builder for chaining.