Class IntentInput (4.47.0)

public final class IntentInput extends GeneratedMessageV3 implements IntentInputOrBuilder

Represents the intent to trigger programmatically rather than as a result of natural language processing. The intent input is only used for V3 agent.

Protobuf type google.cloud.dialogflow.v2beta1.IntentInput

Static Fields

INTENT_FIELD_NUMBER

public static final int INTENT_FIELD_NUMBER
Field Value
TypeDescription
int

LANGUAGE_CODE_FIELD_NUMBER

public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static IntentInput getDefaultInstance()
Returns
TypeDescription
IntentInput

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static IntentInput.Builder newBuilder()
Returns
TypeDescription
IntentInput.Builder

newBuilder(IntentInput prototype)

public static IntentInput.Builder newBuilder(IntentInput prototype)
Parameter
NameDescription
prototypeIntentInput
Returns
TypeDescription
IntentInput.Builder

parseDelimitedFrom(InputStream input)

public static IntentInput parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IntentInput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static IntentInput parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static IntentInput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static IntentInput parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static IntentInput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static IntentInput parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static IntentInput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static IntentInput parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IntentInput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static IntentInput parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static IntentInput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IntentInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<IntentInput> parser()
Returns
TypeDescription
Parser<IntentInput>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public IntentInput getDefaultInstanceForType()
Returns
TypeDescription
IntentInput

getIntent()

public String getIntent()

Required. The unique identifier of the intent in V3 agent. Format: projects/<Project ID>/locations/<Location ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The intent.

getIntentBytes()

public ByteString getIntentBytes()

Required. The unique identifier of the intent in V3 agent. Format: projects/<Project ID>/locations/<Location ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for intent.

getLanguageCode()

public String getLanguageCode()

Required. The language of this conversational query. See Language Support for a list of the currently supported language codes.

string language_code = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Required. The language of this conversational query. See Language Support for a list of the currently supported language codes.

string language_code = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for languageCode.

getParserForType()

public Parser<IntentInput> getParserForType()
Returns
TypeDescription
Parser<IntentInput>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public IntentInput.Builder newBuilderForType()
Returns
TypeDescription
IntentInput.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected IntentInput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
IntentInput.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public IntentInput.Builder toBuilder()
Returns
TypeDescription
IntentInput.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException