public static final class Intent.TrainingPhrase.Builder extends 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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Intent.TrainingPhrase build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Intent.TrainingPhrase buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Intent.TrainingPhrase.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder mergeFrom(Intent.TrainingPhrase other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public Intent.TrainingPhrase.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Intent.TrainingPhrase.Builder>java.io.IOExceptionpublic java.lang.String getName()
Required. The unique identifier of this training phrase.
string name = 1;getName in interface Intent.TrainingPhraseOrBuilderpublic ByteString getNameBytes()
Required. The unique identifier of this training phrase.
string name = 1;getNameBytes in interface Intent.TrainingPhraseOrBuilderpublic Intent.TrainingPhrase.Builder setName(java.lang.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(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 java.util.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(java.lang.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 java.util.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 java.util.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(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>public final Intent.TrainingPhrase.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>