public static final class Intent.TrainingPhrase extends com.google.protobuf.GeneratedMessageV3 implements Intent.TrainingPhraseOrBuilder
Represents an example that the agent is trained on to identify the intent.Protobuf type
google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase| Modifier and Type | Class and Description |
|---|---|
static class |
Intent.TrainingPhrase.Builder
Represents an example that the agent is trained on to identify the intent.
|
static class |
Intent.TrainingPhrase.Part
Represents a part of a training phrase.
|
static interface |
Intent.TrainingPhrase.PartOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ID_FIELD_NUMBER |
static int |
PARTS_FIELD_NUMBER |
static int |
REPEAT_COUNT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Intent.TrainingPhrase |
getDefaultInstance() |
Intent.TrainingPhrase |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getId()
Output only.
|
com.google.protobuf.ByteString |
getIdBytes()
Output only.
|
com.google.protobuf.Parser<Intent.TrainingPhrase> |
getParserForType() |
Intent.TrainingPhrase.Part |
getParts(int index)
Required.
|
int |
getPartsCount()
Required.
|
List<Intent.TrainingPhrase.Part> |
getPartsList()
Required.
|
Intent.TrainingPhrase.PartOrBuilder |
getPartsOrBuilder(int index)
Required.
|
List<? extends Intent.TrainingPhrase.PartOrBuilder> |
getPartsOrBuilderList()
Required.
|
int |
getRepeatCount()
Indicates how many times this example was added to the intent.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Intent.TrainingPhrase.Builder |
newBuilder() |
static Intent.TrainingPhrase.Builder |
newBuilder(Intent.TrainingPhrase prototype) |
Intent.TrainingPhrase.Builder |
newBuilderForType() |
protected Intent.TrainingPhrase.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Intent.TrainingPhrase |
parseDelimitedFrom(InputStream input) |
static Intent.TrainingPhrase |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Intent.TrainingPhrase |
parseFrom(byte[] data) |
static Intent.TrainingPhrase |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Intent.TrainingPhrase |
parseFrom(ByteBuffer data) |
static Intent.TrainingPhrase |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Intent.TrainingPhrase |
parseFrom(com.google.protobuf.ByteString data) |
static Intent.TrainingPhrase |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Intent.TrainingPhrase |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Intent.TrainingPhrase |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Intent.TrainingPhrase |
parseFrom(InputStream input) |
static Intent.TrainingPhrase |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Intent.TrainingPhrase> |
parser() |
Intent.TrainingPhrase.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int PARTS_FIELD_NUMBER
public static final int REPEAT_COUNT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getId()
Output only. The unique identifier of the training phrase.
string id = 1;getId in interface Intent.TrainingPhraseOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
Output only. The unique identifier of the training phrase.
string id = 1;getIdBytes in interface Intent.TrainingPhraseOrBuilderpublic List<Intent.TrainingPhrase.Part> getPartsList()
Required. The ordered list of training phrase parts.
The parts are concatenated in order to form the training phrase.
Note: The API does not automatically annotate training phrases like the
Dialogflow Console does.
Note: Do not forget to include whitespace at part boundaries, so the
training phrase is well formatted when the parts are concatenated.
If the training phrase does not need to be annotated with parameters,
you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
If you want to annotate the training phrase, you must create multiple
parts, where the fields of each part are populated in one of two ways:
- `Part.text` is set to a part of the phrase that has no parameters.
- `Part.text` is set to a part of the phrase that you want to annotate,
and the `parameter_id` field is set.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
getPartsList in interface Intent.TrainingPhraseOrBuilderpublic List<? extends Intent.TrainingPhrase.PartOrBuilder> getPartsOrBuilderList()
Required. The ordered list of training phrase parts.
The parts are concatenated in order to form the training phrase.
Note: The API does not automatically annotate training phrases like the
Dialogflow Console does.
Note: Do not forget to include whitespace at part boundaries, so the
training phrase is well formatted when the parts are concatenated.
If the training phrase does not need to be annotated with parameters,
you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
If you want to annotate the training phrase, you must create multiple
parts, where the fields of each part are populated in one of two ways:
- `Part.text` is set to a part of the phrase that has no parameters.
- `Part.text` is set to a part of the phrase that you want to annotate,
and the `parameter_id` field is set.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
getPartsOrBuilderList in interface Intent.TrainingPhraseOrBuilderpublic int getPartsCount()
Required. The ordered list of training phrase parts.
The parts are concatenated in order to form the training phrase.
Note: The API does not automatically annotate training phrases like the
Dialogflow Console does.
Note: Do not forget to include whitespace at part boundaries, so the
training phrase is well formatted when the parts are concatenated.
If the training phrase does not need to be annotated with parameters,
you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
If you want to annotate the training phrase, you must create multiple
parts, where the fields of each part are populated in one of two ways:
- `Part.text` is set to a part of the phrase that has no parameters.
- `Part.text` is set to a part of the phrase that you want to annotate,
and the `parameter_id` field is set.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
getPartsCount in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Part getParts(int index)
Required. The ordered list of training phrase parts.
The parts are concatenated in order to form the training phrase.
Note: The API does not automatically annotate training phrases like the
Dialogflow Console does.
Note: Do not forget to include whitespace at part boundaries, so the
training phrase is well formatted when the parts are concatenated.
If the training phrase does not need to be annotated with parameters,
you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
If you want to annotate the training phrase, you must create multiple
parts, where the fields of each part are populated in one of two ways:
- `Part.text` is set to a part of the phrase that has no parameters.
- `Part.text` is set to a part of the phrase that you want to annotate,
and the `parameter_id` field is set.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
getParts in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.PartOrBuilder getPartsOrBuilder(int index)
Required. The ordered list of training phrase parts.
The parts are concatenated in order to form the training phrase.
Note: The API does not automatically annotate training phrases like the
Dialogflow Console does.
Note: Do not forget to include whitespace at part boundaries, so the
training phrase is well formatted when the parts are concatenated.
If the training phrase does not need to be annotated with parameters,
you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
If you want to annotate the training phrase, you must create multiple
parts, where the fields of each part are populated in one of two ways:
- `Part.text` is set to a part of the phrase that has no parameters.
- `Part.text` is set to a part of the phrase that you want to annotate,
and the `parameter_id` field is set.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
getPartsOrBuilder in interface Intent.TrainingPhraseOrBuilderpublic int getRepeatCount()
Indicates how many times this example was added to the intent.
int32 repeat_count = 3;getRepeatCount in interface Intent.TrainingPhraseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Intent.TrainingPhrase parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.TrainingPhrase parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.TrainingPhrase parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.TrainingPhrase parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.TrainingPhrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.TrainingPhrase parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.TrainingPhrase parseFrom(InputStream input) throws IOException
IOExceptionpublic static Intent.TrainingPhrase parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Intent.TrainingPhrase parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Intent.TrainingPhrase parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Intent.TrainingPhrase parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Intent.TrainingPhrase parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Intent.TrainingPhrase.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Intent.TrainingPhrase.Builder newBuilder()
public static Intent.TrainingPhrase.Builder newBuilder(Intent.TrainingPhrase prototype)
public Intent.TrainingPhrase.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Intent.TrainingPhrase.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Intent.TrainingPhrase getDefaultInstance()
public static com.google.protobuf.Parser<Intent.TrainingPhrase> parser()
public com.google.protobuf.Parser<Intent.TrainingPhrase> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Intent.TrainingPhrase getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.