Class ListAssistantsRequest.Builder (0.90.0)

public static final class ListAssistantsRequest.Builder extends GeneratedMessage.Builder<ListAssistantsRequest.Builder> implements ListAssistantsRequestOrBuilder

Request message for the AssistantService.ListAssistants method.

Protobuf type google.cloud.discoveryengine.v1beta.ListAssistantsRequest

Static Methods

getDescriptor()

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

Methods

build()

public ListAssistantsRequest build()
Returns
Type Description
ListAssistantsRequest

buildPartial()

public ListAssistantsRequest buildPartial()
Returns
Type Description
ListAssistantsRequest

clear()

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

clearPageSize()

public ListAssistantsRequest.Builder clearPageSize()

Maximum number of Assistants to return. If unspecified, defaults to 100. The maximum allowed value is 1000; anything above that will be coerced down to 1000.

int32 page_size = 2;

Returns
Type Description
ListAssistantsRequest.Builder

This builder for chaining.

clearPageToken()

public ListAssistantsRequest.Builder clearPageToken()

A page token ListAssistantsResponse.next_page_token, received from a previous AssistantService.ListAssistants call. Provide this to retrieve the subsequent page.

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

string page_token = 3;

Returns
Type Description
ListAssistantsRequest.Builder

This builder for chaining.

clearParent()

public ListAssistantsRequest.Builder clearParent()

Required. The parent resource name. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}

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

Returns
Type Description
ListAssistantsRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListAssistantsRequest getDefaultInstanceForType()
Returns
Type Description
ListAssistantsRequest

getDescriptorForType()

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

getPageSize()

public int getPageSize()

Maximum number of Assistants to return. If unspecified, defaults to 100. The maximum allowed value is 1000; anything above that will be coerced down to 1000.

int32 page_size = 2;

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

A page token ListAssistantsResponse.next_page_token, received from a previous AssistantService.ListAssistants call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListAssistants 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 ListAssistantsResponse.next_page_token, received from a previous AssistantService.ListAssistants call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListAssistants 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 resource name. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}

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 resource name. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}

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(ListAssistantsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPageSize(int value)

public ListAssistantsRequest.Builder setPageSize(int value)

Maximum number of Assistants to return. If unspecified, defaults to 100. The maximum allowed value is 1000; anything above that will be coerced down to 1000.

int32 page_size = 2;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListAssistantsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListAssistantsRequest.Builder setPageToken(String value)

A page token ListAssistantsResponse.next_page_token, received from a previous AssistantService.ListAssistants call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListAssistants 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
ListAssistantsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListAssistantsRequest.Builder setPageTokenBytes(ByteString value)

A page token ListAssistantsResponse.next_page_token, received from a previous AssistantService.ListAssistants call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListAssistants 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
ListAssistantsRequest.Builder

This builder for chaining.

setParent(String value)

public ListAssistantsRequest.Builder setParent(String value)

Required. The parent resource name. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListAssistantsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListAssistantsRequest.Builder setParentBytes(ByteString value)

Required. The parent resource name. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}

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

This builder for chaining.