Class GenerateStatelessSuggestionRequest.Builder (4.58.0)

public static final class GenerateStatelessSuggestionRequest.Builder extends GeneratedMessageV3.Builder<GenerateStatelessSuggestionRequest.Builder> implements GenerateStatelessSuggestionRequestOrBuilder

The request message for Conversations.GenerateStatelessSuggestion.

Protobuf type google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest

Static Methods

getDescriptor()

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

Methods

addAllTriggerEvents(Iterable<? extends TriggerEvent> values)

public GenerateStatelessSuggestionRequest.Builder addAllTriggerEvents(Iterable<? extends TriggerEvent> values)

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.TriggerEvent>

The triggerEvents to add.

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

addAllTriggerEventsValue(Iterable<Integer> values)

public GenerateStatelessSuggestionRequest.Builder addAllTriggerEventsValue(Iterable<Integer> values)

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for triggerEvents to add.

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTriggerEvents(TriggerEvent value)

public GenerateStatelessSuggestionRequest.Builder addTriggerEvents(TriggerEvent value)

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TriggerEvent

The triggerEvents to add.

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

addTriggerEventsValue(int value)

public GenerateStatelessSuggestionRequest.Builder addTriggerEventsValue(int value)

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for triggerEvents to add.

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

build()

public GenerateStatelessSuggestionRequest build()
Returns
Type Description
GenerateStatelessSuggestionRequest

buildPartial()

public GenerateStatelessSuggestionRequest buildPartial()
Returns
Type Description
GenerateStatelessSuggestionRequest

clear()

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

clearConversationContext()

public GenerateStatelessSuggestionRequest.Builder clearConversationContext()

Optional. Context of the conversation, including transcripts.

.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGenerator()

public GenerateStatelessSuggestionRequest.Builder clearGenerator()

Uncreated generator. It should be a complete generator that includes all information about the generator.

.google.cloud.dialogflow.v2beta1.Generator generator = 2;

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

clearGeneratorName()

public GenerateStatelessSuggestionRequest.Builder clearGeneratorName()

The resource name of the existing created generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

string generator_name = 3;

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

clearGeneratorResource()

public GenerateStatelessSuggestionRequest.Builder clearGeneratorResource()
Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public GenerateStatelessSuggestionRequest.Builder clearParent()

Required. The parent resource to charge for the Suggestion's generation. Format: projects/<Project ID>/locations/<Location ID>.

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

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

clearTriggerEvents()

public GenerateStatelessSuggestionRequest.Builder clearTriggerEvents()

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

clone()

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

getConversationContext()

public ConversationContext getConversationContext()

Optional. Context of the conversation, including transcripts.

.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConversationContext

The conversationContext.

getConversationContextBuilder()

public ConversationContext.Builder getConversationContextBuilder()

Optional. Context of the conversation, including transcripts.

.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConversationContext.Builder

getConversationContextOrBuilder()

public ConversationContextOrBuilder getConversationContextOrBuilder()

Optional. Context of the conversation, including transcripts.

.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConversationContextOrBuilder

getDefaultInstanceForType()

public GenerateStatelessSuggestionRequest getDefaultInstanceForType()
Returns
Type Description
GenerateStatelessSuggestionRequest

getDescriptorForType()

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

getGenerator()

public Generator getGenerator()

Uncreated generator. It should be a complete generator that includes all information about the generator.

.google.cloud.dialogflow.v2beta1.Generator generator = 2;

Returns
Type Description
Generator

The generator.

getGeneratorBuilder()

public Generator.Builder getGeneratorBuilder()

Uncreated generator. It should be a complete generator that includes all information about the generator.

.google.cloud.dialogflow.v2beta1.Generator generator = 2;

Returns
Type Description
Generator.Builder

getGeneratorName()

public String getGeneratorName()

The resource name of the existing created generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

string generator_name = 3;

Returns
Type Description
String

The generatorName.

getGeneratorNameBytes()

public ByteString getGeneratorNameBytes()

The resource name of the existing created generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

string generator_name = 3;

Returns
Type Description
ByteString

The bytes for generatorName.

getGeneratorOrBuilder()

public GeneratorOrBuilder getGeneratorOrBuilder()

Uncreated generator. It should be a complete generator that includes all information about the generator.

.google.cloud.dialogflow.v2beta1.Generator generator = 2;

Returns
Type Description
GeneratorOrBuilder

getGeneratorResourceCase()

public GenerateStatelessSuggestionRequest.GeneratorResourceCase getGeneratorResourceCase()
Returns
Type Description
GenerateStatelessSuggestionRequest.GeneratorResourceCase

getParent()

public String getParent()

Required. The parent resource to charge for the Suggestion's generation. Format: projects/<Project ID>/locations/<Location ID>.

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 to charge for the Suggestion's generation. Format: projects/<Project ID>/locations/<Location ID>.

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

Returns
Type Description
ByteString

The bytes for parent.

getTriggerEvents(int index)

public TriggerEvent getTriggerEvents(int index)

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
TriggerEvent

The triggerEvents at the given index.

getTriggerEventsCount()

public int getTriggerEventsCount()

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of triggerEvents.

getTriggerEventsList()

public List<TriggerEvent> getTriggerEventsList()

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<TriggerEvent>

A list containing the triggerEvents.

getTriggerEventsValue(int index)

public int getTriggerEventsValue(int index)

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of triggerEvents at the given index.

getTriggerEventsValueList()

public List<Integer> getTriggerEventsValueList()

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for triggerEvents.

hasConversationContext()

public boolean hasConversationContext()

Optional. Context of the conversation, including transcripts.

.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the conversationContext field is set.

hasGenerator()

public boolean hasGenerator()

Uncreated generator. It should be a complete generator that includes all information about the generator.

.google.cloud.dialogflow.v2beta1.Generator generator = 2;

Returns
Type Description
boolean

Whether the generator field is set.

hasGeneratorName()

public boolean hasGeneratorName()

The resource name of the existing created generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

string generator_name = 3;

Returns
Type Description
boolean

Whether the generatorName field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConversationContext(ConversationContext value)

public GenerateStatelessSuggestionRequest.Builder mergeConversationContext(ConversationContext value)

Optional. Context of the conversation, including transcripts.

.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ConversationContext
Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

mergeFrom(GenerateStatelessSuggestionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGenerator(Generator value)

public GenerateStatelessSuggestionRequest.Builder mergeGenerator(Generator value)

Uncreated generator. It should be a complete generator that includes all information about the generator.

.google.cloud.dialogflow.v2beta1.Generator generator = 2;

Parameter
Name Description
value Generator
Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConversationContext(ConversationContext value)

public GenerateStatelessSuggestionRequest.Builder setConversationContext(ConversationContext value)

Optional. Context of the conversation, including transcripts.

.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ConversationContext
Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

setConversationContext(ConversationContext.Builder builderForValue)

public GenerateStatelessSuggestionRequest.Builder setConversationContext(ConversationContext.Builder builderForValue)

Optional. Context of the conversation, including transcripts.

.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ConversationContext.Builder
Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGenerator(Generator value)

public GenerateStatelessSuggestionRequest.Builder setGenerator(Generator value)

Uncreated generator. It should be a complete generator that includes all information about the generator.

.google.cloud.dialogflow.v2beta1.Generator generator = 2;

Parameter
Name Description
value Generator
Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

setGenerator(Generator.Builder builderForValue)

public GenerateStatelessSuggestionRequest.Builder setGenerator(Generator.Builder builderForValue)

Uncreated generator. It should be a complete generator that includes all information about the generator.

.google.cloud.dialogflow.v2beta1.Generator generator = 2;

Parameter
Name Description
builderForValue Generator.Builder
Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

setGeneratorName(String value)

public GenerateStatelessSuggestionRequest.Builder setGeneratorName(String value)

The resource name of the existing created generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

string generator_name = 3;

Parameter
Name Description
value String

The generatorName to set.

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

setGeneratorNameBytes(ByteString value)

public GenerateStatelessSuggestionRequest.Builder setGeneratorNameBytes(ByteString value)

The resource name of the existing created generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

string generator_name = 3;

Parameter
Name Description
value ByteString

The bytes for generatorName to set.

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

setParent(String value)

public GenerateStatelessSuggestionRequest.Builder setParent(String value)

Required. The parent resource to charge for the Suggestion's generation. Format: projects/<Project ID>/locations/<Location ID>.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public GenerateStatelessSuggestionRequest.Builder setParentBytes(ByteString value)

Required. The parent resource to charge for the Suggestion's generation. Format: projects/<Project ID>/locations/<Location ID>.

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

This builder for chaining.

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

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

setTriggerEvents(int index, TriggerEvent value)

public GenerateStatelessSuggestionRequest.Builder setTriggerEvents(int index, TriggerEvent value)

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value TriggerEvent

The triggerEvents to set.

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

setTriggerEventsValue(int index, int value)

public GenerateStatelessSuggestionRequest.Builder setTriggerEventsValue(int index, int value)

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

repeated .google.cloud.dialogflow.v2beta1.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for triggerEvents to set.

Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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