Class GenerateStatelessSuggestionRequest (4.61.0)

public final class GenerateStatelessSuggestionRequest extends GeneratedMessageV3 implements GenerateStatelessSuggestionRequestOrBuilder

The request message for Conversations.GenerateStatelessSuggestion.

Protobuf type google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GenerateStatelessSuggestionRequest

Static Fields

CONVERSATION_CONTEXT_FIELD_NUMBER

public static final int CONVERSATION_CONTEXT_FIELD_NUMBER
Field Value
Type Description
int

GENERATOR_FIELD_NUMBER

public static final int GENERATOR_FIELD_NUMBER
Field Value
Type Description
int

GENERATOR_NAME_FIELD_NUMBER

public static final int GENERATOR_NAME_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

TRIGGER_EVENTS_FIELD_NUMBER

public static final int TRIGGER_EVENTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerateStatelessSuggestionRequest getDefaultInstance()
Returns
Type Description
GenerateStatelessSuggestionRequest

getDescriptor()

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

newBuilder()

public static GenerateStatelessSuggestionRequest.Builder newBuilder()
Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

newBuilder(GenerateStatelessSuggestionRequest prototype)

public static GenerateStatelessSuggestionRequest.Builder newBuilder(GenerateStatelessSuggestionRequest prototype)
Parameter
Name Description
prototype GenerateStatelessSuggestionRequest
Returns
Type Description
GenerateStatelessSuggestionRequest.Builder

parseDelimitedFrom(InputStream input)

public static GenerateStatelessSuggestionRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateStatelessSuggestionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GenerateStatelessSuggestionRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GenerateStatelessSuggestionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GenerateStatelessSuggestionRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GenerateStatelessSuggestionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GenerateStatelessSuggestionRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateStatelessSuggestionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GenerateStatelessSuggestionRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateStatelessSuggestionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GenerateStatelessSuggestionRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GenerateStatelessSuggestionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateStatelessSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GenerateStatelessSuggestionRequest> parser()
Returns
Type Description
Parser<GenerateStatelessSuggestionRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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.

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.

getParserForType()

public Parser<GenerateStatelessSuggestionRequest> getParserForType()
Returns
Type Description
Parser<GenerateStatelessSuggestionRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GenerateStatelessSuggestionRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GenerateStatelessSuggestionRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException