Class GenerateStatelessSummaryRequest.Builder (4.40.0)

public static final class GenerateStatelessSummaryRequest.Builder extends GeneratedMessageV3.Builder<GenerateStatelessSummaryRequest.Builder> implements GenerateStatelessSummaryRequestOrBuilder

The request message for Conversations.GenerateStatelessSummary.

Protobuf type google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateStatelessSummaryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerateStatelessSummaryRequest.Builder
Overrides

build()

public GenerateStatelessSummaryRequest build()
Returns
Type Description
GenerateStatelessSummaryRequest

buildPartial()

public GenerateStatelessSummaryRequest buildPartial()
Returns
Type Description
GenerateStatelessSummaryRequest

clear()

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

clearConversationProfile()

public GenerateStatelessSummaryRequest.Builder clearConversationProfile()

Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config}

.google.cloud.dialogflow.v2beta1.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateStatelessSummaryRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public GenerateStatelessSummaryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenerateStatelessSummaryRequest.Builder
Overrides

clearLatestMessage()

public GenerateStatelessSummaryRequest.Builder clearLatestMessage()

The name of the latest conversation message used as context for generating a Summary. If empty, the latest message of the conversation will be used. The format is specific to the user and the names of the messages provided.

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

Returns
Type Description
GenerateStatelessSummaryRequest.Builder

This builder for chaining.

clearMaxContextSize()

public GenerateStatelessSummaryRequest.Builder clearMaxContextSize()

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 max_context_size = 4;

Returns
Type Description
GenerateStatelessSummaryRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateStatelessSummaryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenerateStatelessSummaryRequest.Builder
Overrides

clearStatelessConversation()

public GenerateStatelessSummaryRequest.Builder clearStatelessConversation()

Required. The conversation to suggest a summary for.

.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateStatelessSummaryRequest.Builder

clone()

public GenerateStatelessSummaryRequest.Builder clone()
Returns
Type Description
GenerateStatelessSummaryRequest.Builder
Overrides

getConversationProfile()

public ConversationProfile getConversationProfile()

Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config}

.google.cloud.dialogflow.v2beta1.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConversationProfile

The conversationProfile.

getConversationProfileBuilder()

public ConversationProfile.Builder getConversationProfileBuilder()

Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config}

.google.cloud.dialogflow.v2beta1.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConversationProfile.Builder

getConversationProfileOrBuilder()

public ConversationProfileOrBuilder getConversationProfileOrBuilder()

Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config}

.google.cloud.dialogflow.v2beta1.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConversationProfileOrBuilder

getDefaultInstanceForType()

public GenerateStatelessSummaryRequest getDefaultInstanceForType()
Returns
Type Description
GenerateStatelessSummaryRequest

getDescriptorForType()

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

getLatestMessage()

public String getLatestMessage()

The name of the latest conversation message used as context for generating a Summary. If empty, the latest message of the conversation will be used. The format is specific to the user and the names of the messages provided.

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 generating a Summary. If empty, the latest message of the conversation will be used. The format is specific to the user and the names of the messages provided.

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

Returns
Type Description
ByteString

The bytes for latestMessage.

getMaxContextSize()

public int getMaxContextSize()

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 max_context_size = 4;

Returns
Type Description
int

The maxContextSize.

getStatelessConversation()

public GenerateStatelessSummaryRequest.MinimalConversation getStatelessConversation()

Required. The conversation to suggest a summary for.

.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateStatelessSummaryRequest.MinimalConversation

The statelessConversation.

getStatelessConversationBuilder()

public GenerateStatelessSummaryRequest.MinimalConversation.Builder getStatelessConversationBuilder()

Required. The conversation to suggest a summary for.

.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateStatelessSummaryRequest.MinimalConversation.Builder

getStatelessConversationOrBuilder()

public GenerateStatelessSummaryRequest.MinimalConversationOrBuilder getStatelessConversationOrBuilder()

Required. The conversation to suggest a summary for.

.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateStatelessSummaryRequest.MinimalConversationOrBuilder

hasConversationProfile()

public boolean hasConversationProfile()

Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config}

.google.cloud.dialogflow.v2beta1.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the conversationProfile field is set.

hasStatelessConversation()

public boolean hasStatelessConversation()

Required. The conversation to suggest a summary for.

.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the statelessConversation field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConversationProfile(ConversationProfile value)

public GenerateStatelessSummaryRequest.Builder mergeConversationProfile(ConversationProfile value)

Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config}

.google.cloud.dialogflow.v2beta1.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConversationProfile
Returns
Type Description
GenerateStatelessSummaryRequest.Builder

mergeFrom(GenerateStatelessSummaryRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStatelessConversation(GenerateStatelessSummaryRequest.MinimalConversation value)

public GenerateStatelessSummaryRequest.Builder mergeStatelessConversation(GenerateStatelessSummaryRequest.MinimalConversation value)

Required. The conversation to suggest a summary for.

.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GenerateStatelessSummaryRequest.MinimalConversation
Returns
Type Description
GenerateStatelessSummaryRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateStatelessSummaryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateStatelessSummaryRequest.Builder
Overrides

setConversationProfile(ConversationProfile value)

public GenerateStatelessSummaryRequest.Builder setConversationProfile(ConversationProfile value)

Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config}

.google.cloud.dialogflow.v2beta1.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConversationProfile
Returns
Type Description
GenerateStatelessSummaryRequest.Builder

setConversationProfile(ConversationProfile.Builder builderForValue)

public GenerateStatelessSummaryRequest.Builder setConversationProfile(ConversationProfile.Builder builderForValue)

Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config}

.google.cloud.dialogflow.v2beta1.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ConversationProfile.Builder
Returns
Type Description
GenerateStatelessSummaryRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateStatelessSummaryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerateStatelessSummaryRequest.Builder
Overrides

setLatestMessage(String value)

public GenerateStatelessSummaryRequest.Builder setLatestMessage(String value)

The name of the latest conversation message used as context for generating a Summary. If empty, the latest message of the conversation will be used. The format is specific to the user and the names of the messages provided.

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

Parameter
Name Description
value String

The latestMessage to set.

Returns
Type Description
GenerateStatelessSummaryRequest.Builder

This builder for chaining.

setLatestMessageBytes(ByteString value)

public GenerateStatelessSummaryRequest.Builder setLatestMessageBytes(ByteString value)

The name of the latest conversation message used as context for generating a Summary. If empty, the latest message of the conversation will be used. The format is specific to the user and the names of the messages provided.

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

Parameter
Name Description
value ByteString

The bytes for latestMessage to set.

Returns
Type Description
GenerateStatelessSummaryRequest.Builder

This builder for chaining.

setMaxContextSize(int value)

public GenerateStatelessSummaryRequest.Builder setMaxContextSize(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 max_context_size = 4;

Parameter
Name Description
value int

The maxContextSize to set.

Returns
Type Description
GenerateStatelessSummaryRequest.Builder

This builder for chaining.

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

public GenerateStatelessSummaryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GenerateStatelessSummaryRequest.Builder
Overrides

setStatelessConversation(GenerateStatelessSummaryRequest.MinimalConversation value)

public GenerateStatelessSummaryRequest.Builder setStatelessConversation(GenerateStatelessSummaryRequest.MinimalConversation value)

Required. The conversation to suggest a summary for.

.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GenerateStatelessSummaryRequest.MinimalConversation
Returns
Type Description
GenerateStatelessSummaryRequest.Builder

setStatelessConversation(GenerateStatelessSummaryRequest.MinimalConversation.Builder builderForValue)

public GenerateStatelessSummaryRequest.Builder setStatelessConversation(GenerateStatelessSummaryRequest.MinimalConversation.Builder builderForValue)

Required. The conversation to suggest a summary for.

.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue GenerateStatelessSummaryRequest.MinimalConversation.Builder
Returns
Type Description
GenerateStatelessSummaryRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateStatelessSummaryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateStatelessSummaryRequest.Builder
Overrides