Class ListMessagesRequest.Builder (4.5.11)

public static final class ListMessagesRequest.Builder extends GeneratedMessageV3.Builder<ListMessagesRequest.Builder> implements ListMessagesRequestOrBuilder

The request message for Conversations.ListMessages.

Protobuf type google.cloud.dialogflow.v2beta1.ListMessagesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListMessagesRequest build()
Returns
TypeDescription
ListMessagesRequest

buildPartial()

public ListMessagesRequest buildPartial()
Returns
TypeDescription
ListMessagesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

public ListMessagesRequest.Builder clearFilter()

Optional. Filter on message fields. Currently predicates on create_time and create_time_epoch_microseconds are supported. create_time only support milliseconds accuracy. E.g., create_time_epoch_microseconds > 1551790877964485 or create_time > "2017-01-15T01:30:15.01Z". For more information about filtering, see API Filtering.

string filter = 4;

Returns
TypeDescription
ListMessagesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListMessagesRequest.Builder clearPageSize()

Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.

int32 page_size = 2;

Returns
TypeDescription
ListMessagesRequest.Builder

This builder for chaining.

clearPageToken()

public ListMessagesRequest.Builder clearPageToken()

Optional. The next_page_token value returned from a previous list request.

string page_token = 3;

Returns
TypeDescription
ListMessagesRequest.Builder

This builder for chaining.

clearParent()

public ListMessagesRequest.Builder clearParent()

Required. The name of the conversation to list messages for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>

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

Returns
TypeDescription
ListMessagesRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListMessagesRequest getDefaultInstanceForType()
Returns
TypeDescription
ListMessagesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFilter()

public String getFilter()

Optional. Filter on message fields. Currently predicates on create_time and create_time_epoch_microseconds are supported. create_time only support milliseconds accuracy. E.g., create_time_epoch_microseconds > 1551790877964485 or create_time > "2017-01-15T01:30:15.01Z". For more information about filtering, see API Filtering.

string filter = 4;

Returns
TypeDescription
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Optional. Filter on message fields. Currently predicates on create_time and create_time_epoch_microseconds are supported. create_time only support milliseconds accuracy. E.g., create_time_epoch_microseconds > 1551790877964485 or create_time > "2017-01-15T01:30:15.01Z". For more information about filtering, see API Filtering.

string filter = 4;

Returns
TypeDescription
ByteString

The bytes for filter.

getPageSize()

public int getPageSize()

Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.

int32 page_size = 2;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. The next_page_token value returned from a previous list request.

string page_token = 3;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. The next_page_token value returned from a previous list request.

string page_token = 3;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The name of the conversation to list messages for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the conversation to list messages for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>

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

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListMessagesRequest other)

public ListMessagesRequest.Builder mergeFrom(ListMessagesRequest other)
Parameter
NameDescription
otherListMessagesRequest
Returns
TypeDescription
ListMessagesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilter(String value)

public ListMessagesRequest.Builder setFilter(String value)

Optional. Filter on message fields. Currently predicates on create_time and create_time_epoch_microseconds are supported. create_time only support milliseconds accuracy. E.g., create_time_epoch_microseconds > 1551790877964485 or create_time > "2017-01-15T01:30:15.01Z". For more information about filtering, see API Filtering.

string filter = 4;

Parameter
NameDescription
valueString

The filter to set.

Returns
TypeDescription
ListMessagesRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public ListMessagesRequest.Builder setFilterBytes(ByteString value)

Optional. Filter on message fields. Currently predicates on create_time and create_time_epoch_microseconds are supported. create_time only support milliseconds accuracy. E.g., create_time_epoch_microseconds > 1551790877964485 or create_time > "2017-01-15T01:30:15.01Z". For more information about filtering, see API Filtering.

string filter = 4;

Parameter
NameDescription
valueByteString

The bytes for filter to set.

Returns
TypeDescription
ListMessagesRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListMessagesRequest.Builder setPageSize(int value)

Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.

int32 page_size = 2;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
ListMessagesRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListMessagesRequest.Builder setPageToken(String value)

Optional. The next_page_token value returned from a previous list request.

string page_token = 3;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
ListMessagesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListMessagesRequest.Builder setPageTokenBytes(ByteString value)

Optional. The next_page_token value returned from a previous list request.

string page_token = 3;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
ListMessagesRequest.Builder

This builder for chaining.

setParent(String value)

public ListMessagesRequest.Builder setParent(String value)

Required. The name of the conversation to list messages for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ListMessagesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListMessagesRequest.Builder setParentBytes(ByteString value)

Required. The name of the conversation to list messages for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ListMessagesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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