public static final class Intent.TrainingPhrase extends com.google.protobuf.GeneratedMessageV3 implements Intent.TrainingPhraseOrBuilder
Represents an example that the agent is trained on.Protobuf type
google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase| Modifier and Type | Class and Description |
|---|---|
static class |
Intent.TrainingPhrase.Builder
Represents an example that the agent is trained on.
|
static class |
Intent.TrainingPhrase.Part
Represents a part of a training phrase.
|
static interface |
Intent.TrainingPhrase.PartOrBuilder |
static class |
Intent.TrainingPhrase.Type
Represents different types of training phrases.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
NAME_FIELD_NUMBER |
static int |
PARTS_FIELD_NUMBER |
static int |
TIMES_ADDED_COUNT_FIELD_NUMBER |
static int |
TYPE_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 |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
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 |
getSerializedSize() |
int |
getTimesAddedCount()
Optional.
|
Intent.TrainingPhrase.Type |
getType()
Required.
|
int |
getTypeValue()
Required.
|
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, makeMutableCopy, 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 NAME_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int PARTS_FIELD_NUMBER
public static final int TIMES_ADDED_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 getName()
Output only. The unique identifier of this training phrase.
string name = 1;getName in interface Intent.TrainingPhraseOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The unique identifier of this training phrase.
string name = 1;getNameBytes in interface Intent.TrainingPhraseOrBuilderpublic int getTypeValue()
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
getTypeValue in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Type getType()
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
getType 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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.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.v2beta1.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 `entity_type`, `alias`, and `user_defined` fields are all
set.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
getPartsOrBuilder in interface Intent.TrainingPhraseOrBuilderpublic int getTimesAddedCount()
Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL];getTimesAddedCount 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 © 2023 Google LLC. All rights reserved.