public static final class Intent.TrainingPhrase.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder> implements Intent.TrainingPhraseOrBuilder
Represents an example or template that the agent is trained on.Protobuf type
google.cloud.dialogflow.v2beta1.Intent.TrainingPhrasegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Intent.TrainingPhrase build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Intent.TrainingPhrase buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Intent.TrainingPhrase.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder mergeFrom(Intent.TrainingPhrase other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Intent.TrainingPhrase.Builder>IOExceptionpublic String getName()
Required. The unique identifier of this training phrase.
string name = 1;getName in interface Intent.TrainingPhraseOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The unique identifier of this training phrase.
string name = 1;getNameBytes in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Builder setName(String value)
Required. The unique identifier of this training phrase.
string name = 1;public Intent.TrainingPhrase.Builder clearName()
Required. The unique identifier of this training phrase.
string name = 1;public Intent.TrainingPhrase.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The unique identifier of this training phrase.
string name = 1;public int getTypeValue()
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2;getTypeValue in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Builder setTypeValue(int value)
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2;public Intent.TrainingPhrase.Type getType()
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2;getType in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Builder setType(Intent.TrainingPhrase.Type value)
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2;public Intent.TrainingPhrase.Builder clearType()
Required. The type of the training phrase.
.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2;public List<Intent.TrainingPhrase.Part> getPartsList()
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
getPartsList in interface Intent.TrainingPhraseOrBuilderpublic int getPartsCount()
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
getPartsCount in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Part getParts(int index)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
getParts in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Builder setParts(int index, Intent.TrainingPhrase.Part value)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public Intent.TrainingPhrase.Builder setParts(int index, Intent.TrainingPhrase.Part.Builder builderForValue)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public Intent.TrainingPhrase.Builder addParts(Intent.TrainingPhrase.Part value)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public Intent.TrainingPhrase.Builder addParts(int index, Intent.TrainingPhrase.Part value)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public Intent.TrainingPhrase.Builder addParts(Intent.TrainingPhrase.Part.Builder builderForValue)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public Intent.TrainingPhrase.Builder addParts(int index, Intent.TrainingPhrase.Part.Builder builderForValue)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public Intent.TrainingPhrase.Builder addAllParts(Iterable<? extends Intent.TrainingPhrase.Part> values)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public Intent.TrainingPhrase.Builder clearParts()
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public Intent.TrainingPhrase.Builder removeParts(int index)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public Intent.TrainingPhrase.Part.Builder getPartsBuilder(int index)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public Intent.TrainingPhrase.PartOrBuilder getPartsOrBuilder(int index)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
getPartsOrBuilder in interface Intent.TrainingPhraseOrBuilderpublic List<? extends Intent.TrainingPhrase.PartOrBuilder> getPartsOrBuilderList()
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
getPartsOrBuilderList in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Part.Builder addPartsBuilder()
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public Intent.TrainingPhrase.Part.Builder addPartsBuilder(int index)
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public List<Intent.TrainingPhrase.Part.Builder> getPartsBuilderList()
Required. The collection of training phrase parts (can be annotated). Fields: `entity_type`, `alias` and `user_defined` should be populated only for the annotated parts of the training phrase.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3;
public int getTimesAddedCount()
Optional. Indicates how many times this example or template 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;getTimesAddedCount in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Builder setTimesAddedCount(int value)
Optional. Indicates how many times this example or template 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;public Intent.TrainingPhrase.Builder clearTimesAddedCount()
Optional. Indicates how many times this example or template 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;public final Intent.TrainingPhrase.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public final Intent.TrainingPhrase.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>Copyright © 2019 Google LLC. All rights reserved.