public final class EventInput extends GeneratedMessageV3 implements EventInputOrBuilder
Events allow for matching intents by event name instead of the natural
language input. For instance, input <event: { name: "welcome_event",
parameters: { name: "Sam" } }>
can trigger a personalized welcome response.
The parameter name
may be used by the agent in the response:
"Hello #welcome_event.name! What can I do for you today?"
.
Protobuf type google.cloud.dialogflow.v2beta1.EventInput
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PARAMETERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static EventInput getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static EventInput.Builder newBuilder()
public static EventInput.Builder newBuilder(EventInput prototype)
public static EventInput parseDelimitedFrom(InputStream input)
public static EventInput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static EventInput parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static EventInput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static EventInput parseFrom(ByteString data)
public static EventInput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EventInput parseFrom(CodedInputStream input)
public static EventInput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static EventInput parseFrom(InputStream input)
public static EventInput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static EventInput parseFrom(ByteBuffer data)
public static EventInput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<EventInput> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public EventInput getDefaultInstanceForType()
public String getLanguageCode()
Required. The language of this query. See Language
Support
for a list of the currently supported language codes. Note that queries in
the same session do not necessarily need to specify the same language.
This field is ignored when used in the context of a
WebhookResponse.followup_event_input
field, because the language was already defined in the originating detect
intent request.
string language_code = 3;
Returns |
Type |
Description |
String |
The languageCode.
|
public ByteString getLanguageCodeBytes()
Required. The language of this query. See Language
Support
for a list of the currently supported language codes. Note that queries in
the same session do not necessarily need to specify the same language.
This field is ignored when used in the context of a
WebhookResponse.followup_event_input
field, because the language was already defined in the originating detect
intent request.
string language_code = 3;
Returns |
Type |
Description |
ByteString |
The bytes for languageCode.
|
Required. The unique identifier of the event.
string name = 1;
Returns |
Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
Required. The unique identifier of the event.
string name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
public Struct getParameters()
The collection of parameters associated with the event.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type: If parameter's entity type is a composite entity then use
map, otherwise, depending on the parameter value type, it could be one of
string, number, boolean, null, list or map.
- MapValue value: If parameter's entity type is a composite entity then use
map from composite entity property names to property values, otherwise,
use parameter value.
.google.protobuf.Struct parameters = 2;
Returns |
Type |
Description |
Struct |
The parameters.
|
public StructOrBuilder getParametersOrBuilder()
The collection of parameters associated with the event.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type: If parameter's entity type is a composite entity then use
map, otherwise, depending on the parameter value type, it could be one of
string, number, boolean, null, list or map.
- MapValue value: If parameter's entity type is a composite entity then use
map from composite entity property names to property values, otherwise,
use parameter value.
.google.protobuf.Struct parameters = 2;
public Parser<EventInput> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public boolean hasParameters()
The collection of parameters associated with the event.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type: If parameter's entity type is a composite entity then use
map, otherwise, depending on the parameter value type, it could be one of
string, number, boolean, null, list or map.
- MapValue value: If parameter's entity type is a composite entity then use
map from composite entity property names to property values, otherwise,
use parameter value.
.google.protobuf.Struct parameters = 2;
Returns |
Type |
Description |
boolean |
Whether the parameters field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public EventInput.Builder newBuilderForType()
protected EventInput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public EventInput.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides