public static final class SuggestConversationSummaryRequest.Builder extends GeneratedMessageV3.Builder<SuggestConversationSummaryRequest.Builder> implements SuggestConversationSummaryRequestOrBuilder
The request message for Conversations.SuggestConversationSummary.
Protobuf type google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SuggestConversationSummaryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SuggestConversationSummaryRequest build()
Returns
buildPartial()
public SuggestConversationSummaryRequest buildPartial()
Returns
clear()
public SuggestConversationSummaryRequest.Builder clear()
Returns
Overrides
clearContextSize()
public SuggestConversationSummaryRequest.Builder clearContextSize()
Max number of messages prior to and including
[latest_message] to use as context when compiling the
suggestion. By default 500 and at most 1000.
int32 context_size = 4;
Returns
clearConversation()
public SuggestConversationSummaryRequest.Builder clearConversation()
Required. The conversation to fetch suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>
.
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearField(Descriptors.FieldDescriptor field)
public SuggestConversationSummaryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLatestMessage()
public SuggestConversationSummaryRequest.Builder clearLatestMessage()
The name of the latest conversation message used as context for
compiling suggestion. If empty, the latest message of the conversation will
be used.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string latest_message = 3 [(.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SuggestConversationSummaryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SuggestConversationSummaryRequest.Builder clone()
Returns
Overrides
getContextSize()
public int getContextSize()
Max number of messages prior to and including
[latest_message] to use as context when compiling the
suggestion. By default 500 and at most 1000.
int32 context_size = 4;
Returns
Type |
Description |
int |
The contextSize.
|
getConversation()
public String getConversation()
Required. The conversation to fetch suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>
.
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type |
Description |
String |
The conversation.
|
getConversationBytes()
public ByteString getConversationBytes()
Required. The conversation to fetch suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>
.
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type |
Description |
ByteString |
The bytes for conversation.
|
getDefaultInstanceForType()
public SuggestConversationSummaryRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLatestMessage()
public String getLatestMessage()
The name of the latest conversation message used as context for
compiling suggestion. If empty, the latest message of the conversation will
be used.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string latest_message = 3 [(.google.api.resource_reference) = { ... }
Returns
Type |
Description |
String |
The latestMessage.
|
getLatestMessageBytes()
public ByteString getLatestMessageBytes()
The name of the latest conversation message used as context for
compiling suggestion. If empty, the latest message of the conversation will
be used.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string latest_message = 3 [(.google.api.resource_reference) = { ... }
Returns
Type |
Description |
ByteString |
The bytes for latestMessage.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SuggestConversationSummaryRequest other)
public SuggestConversationSummaryRequest.Builder mergeFrom(SuggestConversationSummaryRequest other)
Parameter
Returns
public SuggestConversationSummaryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SuggestConversationSummaryRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SuggestConversationSummaryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setContextSize(int value)
public SuggestConversationSummaryRequest.Builder setContextSize(int value)
Max number of messages prior to and including
[latest_message] to use as context when compiling the
suggestion. By default 500 and at most 1000.
int32 context_size = 4;
Parameter
Name |
Description |
value |
int
The contextSize to set.
|
Returns
setConversation(String value)
public SuggestConversationSummaryRequest.Builder setConversation(String value)
Required. The conversation to fetch suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>
.
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name |
Description |
value |
String
The conversation to set.
|
Returns
setConversationBytes(ByteString value)
public SuggestConversationSummaryRequest.Builder setConversationBytes(ByteString value)
Required. The conversation to fetch suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>
.
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name |
Description |
value |
ByteString
The bytes for conversation to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SuggestConversationSummaryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setLatestMessage(String value)
public SuggestConversationSummaryRequest.Builder setLatestMessage(String value)
The name of the latest conversation message used as context for
compiling suggestion. If empty, the latest message of the conversation will
be used.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string latest_message = 3 [(.google.api.resource_reference) = { ... }
Parameter
Name |
Description |
value |
String
The latestMessage to set.
|
Returns
setLatestMessageBytes(ByteString value)
public SuggestConversationSummaryRequest.Builder setLatestMessageBytes(ByteString value)
The name of the latest conversation message used as context for
compiling suggestion. If empty, the latest message of the conversation will
be used.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string latest_message = 3 [(.google.api.resource_reference) = { ... }
Parameter
Name |
Description |
value |
ByteString
The bytes for latestMessage to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SuggestConversationSummaryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SuggestConversationSummaryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides