Class SuggestArticlesRequest.Builder (4.4.0)

public static final class SuggestArticlesRequest.Builder extends GeneratedMessageV3.Builder<SuggestArticlesRequest.Builder> implements SuggestArticlesRequestOrBuilder

The request message for Participants.SuggestArticles.

Protobuf type google.cloud.dialogflow.v2.SuggestArticlesRequest

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SuggestArticlesRequest build()
Returns
TypeDescription
SuggestArticlesRequest

buildPartial()

public SuggestArticlesRequest buildPartial()
Returns
TypeDescription
SuggestArticlesRequest

clear()

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

clearAssistQueryParams()

public SuggestArticlesRequest.Builder clearAssistQueryParams()

Parameters for a human assist query.

.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;

Returns
TypeDescription
SuggestArticlesRequest.Builder

clearContextSize()

public SuggestArticlesRequest.Builder clearContextSize()

Max number of messages prior to and including latest_message to use as context when compiling the suggestion. By default 20 and at most 50.

int32 context_size = 3;

Returns
TypeDescription
SuggestArticlesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLatestMessage()

public SuggestArticlesRequest.Builder clearLatestMessage()

The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
SuggestArticlesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public SuggestArticlesRequest.Builder clearParent()

Required. The name of the participant to fetch suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>.

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

Returns
TypeDescription
SuggestArticlesRequest.Builder

This builder for chaining.

clone()

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

getAssistQueryParams()

public AssistQueryParameters getAssistQueryParams()

Parameters for a human assist query.

.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;

Returns
TypeDescription
AssistQueryParameters

The assistQueryParams.

getAssistQueryParamsBuilder()

public AssistQueryParameters.Builder getAssistQueryParamsBuilder()

Parameters for a human assist query.

.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;

Returns
TypeDescription
AssistQueryParameters.Builder

getAssistQueryParamsOrBuilder()

public AssistQueryParametersOrBuilder getAssistQueryParamsOrBuilder()

Parameters for a human assist query.

.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;

Returns
TypeDescription
AssistQueryParametersOrBuilder

getContextSize()

public int getContextSize()

Max number of messages prior to and including latest_message to use as context when compiling the suggestion. By default 20 and at most 50.

int32 context_size = 3;

Returns
TypeDescription
int

The contextSize.

getDefaultInstanceForType()

public SuggestArticlesRequest getDefaultInstanceForType()
Returns
TypeDescription
SuggestArticlesRequest

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLatestMessage()

public String getLatestMessage()

The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The latestMessage.

getLatestMessageBytes()

public ByteString getLatestMessageBytes()

The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for latestMessage.

getParent()

public String getParent()

Required. The name of the participant to fetch suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant 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 participant to fetch suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>.

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasAssistQueryParams()

public boolean hasAssistQueryParams()

Parameters for a human assist query.

.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;

Returns
TypeDescription
boolean

Whether the assistQueryParams field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAssistQueryParams(AssistQueryParameters value)

public SuggestArticlesRequest.Builder mergeAssistQueryParams(AssistQueryParameters value)

Parameters for a human assist query.

.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;

Parameter
NameDescription
valueAssistQueryParameters
Returns
TypeDescription
SuggestArticlesRequest.Builder

mergeFrom(SuggestArticlesRequest other)

public SuggestArticlesRequest.Builder mergeFrom(SuggestArticlesRequest other)
Parameter
NameDescription
otherSuggestArticlesRequest
Returns
TypeDescription
SuggestArticlesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAssistQueryParams(AssistQueryParameters value)

public SuggestArticlesRequest.Builder setAssistQueryParams(AssistQueryParameters value)

Parameters for a human assist query.

.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;

Parameter
NameDescription
valueAssistQueryParameters
Returns
TypeDescription
SuggestArticlesRequest.Builder

setAssistQueryParams(AssistQueryParameters.Builder builderForValue)

public SuggestArticlesRequest.Builder setAssistQueryParams(AssistQueryParameters.Builder builderForValue)

Parameters for a human assist query.

.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;

Parameter
NameDescription
builderForValueAssistQueryParameters.Builder
Returns
TypeDescription
SuggestArticlesRequest.Builder

setContextSize(int value)

public SuggestArticlesRequest.Builder setContextSize(int value)

Max number of messages prior to and including latest_message to use as context when compiling the suggestion. By default 20 and at most 50.

int32 context_size = 3;

Parameter
NameDescription
valueint

The contextSize to set.

Returns
TypeDescription
SuggestArticlesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLatestMessage(String value)

public SuggestArticlesRequest.Builder setLatestMessage(String value)

The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The latestMessage to set.

Returns
TypeDescription
SuggestArticlesRequest.Builder

This builder for chaining.

setLatestMessageBytes(ByteString value)

public SuggestArticlesRequest.Builder setLatestMessageBytes(ByteString value)

The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for latestMessage to set.

Returns
TypeDescription
SuggestArticlesRequest.Builder

This builder for chaining.

setParent(String value)

public SuggestArticlesRequest.Builder setParent(String value)

Required. The name of the participant to fetch suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
SuggestArticlesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public SuggestArticlesRequest.Builder setParentBytes(ByteString value)

Required. The name of the participant to fetch suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
SuggestArticlesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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