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.v2.Intent.TrainingPhrase
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public 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.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>
public Intent.TrainingPhrase getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Intent.TrainingPhrase build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Intent.TrainingPhrase buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Intent.TrainingPhrase.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>
public Intent.TrainingPhrase.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>
public Intent.TrainingPhrase.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>
public Intent.TrainingPhrase.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
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.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>
public Intent.TrainingPhrase.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>
public Intent.TrainingPhrase.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Intent.TrainingPhrase.Builder>
public Intent.TrainingPhrase.Builder mergeFrom(Intent.TrainingPhrase other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>
public Intent.TrainingPhrase.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Intent.TrainingPhrase.Builder>
java.io.IOException
public java.lang.String getName()
Required. The unique identifier of this training phrase.
string name = 1;
getName
in interface Intent.TrainingPhraseOrBuilder
public ByteString getNameBytes()
Required. The unique identifier of this training phrase.
string name = 1;
getNameBytes
in interface Intent.TrainingPhraseOrBuilder
public 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.v2.Intent.TrainingPhrase.Type type = 2;
getTypeValue
in interface Intent.TrainingPhraseOrBuilder
public Intent.TrainingPhrase.Builder setTypeValue(int value)
Required. The type of the training phrase.
.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2;
public Intent.TrainingPhrase.Type getType()
Required. The type of the training phrase.
.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2;
getType
in interface Intent.TrainingPhraseOrBuilder
public Intent.TrainingPhrase.Builder setType(Intent.TrainingPhrase.Type value)
Required. The type of the training phrase.
.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2;
public Intent.TrainingPhrase.Builder clearType()
Required. The type of the training phrase.
.google.cloud.dialogflow.v2.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.v2.Intent.TrainingPhrase.Part parts = 3;
getPartsList
in interface Intent.TrainingPhraseOrBuilder
public 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.v2.Intent.TrainingPhrase.Part parts = 3;
getPartsCount
in interface Intent.TrainingPhraseOrBuilder
public 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.v2.Intent.TrainingPhrase.Part parts = 3;
getParts
in interface Intent.TrainingPhraseOrBuilder
public 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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.Intent.TrainingPhrase.Part parts = 3;
getPartsOrBuilder
in interface Intent.TrainingPhraseOrBuilder
public 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.v2.Intent.TrainingPhrase.Part parts = 3;
getPartsOrBuilderList
in interface Intent.TrainingPhraseOrBuilder
public 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.v2.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.v2.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.v2.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.TrainingPhraseOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>
public final Intent.TrainingPhrase.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Intent.TrainingPhrase.Builder>