Package com.google.cloud.dialogflow.v2
Class Intent.TrainingPhrase.Part.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
- com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder
-
- All Implemented Interfaces:
Intent.TrainingPhrase.PartOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Intent.TrainingPhrase.Part
public static final class Intent.TrainingPhrase.Part.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder> implements Intent.TrainingPhrase.PartOrBuilder
Represents a part of a training phrase.
Protobuf typegoogle.cloud.dialogflow.v2.Intent.TrainingPhrase.Part
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
clear
public Intent.TrainingPhrase.Part.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
getDefaultInstanceForType
public Intent.TrainingPhrase.Part getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Intent.TrainingPhrase.Part build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Intent.TrainingPhrase.Part buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Intent.TrainingPhrase.Part.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
setField
public Intent.TrainingPhrase.Part.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
clearField
public Intent.TrainingPhrase.Part.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
clearOneof
public Intent.TrainingPhrase.Part.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
setRepeatedField
public Intent.TrainingPhrase.Part.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
addRepeatedField
public Intent.TrainingPhrase.Part.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
mergeFrom
public Intent.TrainingPhrase.Part.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Intent.TrainingPhrase.Part.Builder>
-
mergeFrom
public Intent.TrainingPhrase.Part.Builder mergeFrom(Intent.TrainingPhrase.Part other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
mergeFrom
public Intent.TrainingPhrase.Part.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Intent.TrainingPhrase.Part.Builder>- Throws:
IOException
-
getText
public String getText()
Required. The text for this part.
string text = 1;- Specified by:
getTextin interfaceIntent.TrainingPhrase.PartOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()
Required. The text for this part.
string text = 1;- Specified by:
getTextBytesin interfaceIntent.TrainingPhrase.PartOrBuilder- Returns:
- The bytes for text.
-
setText
public Intent.TrainingPhrase.Part.Builder setText(String value)
Required. The text for this part.
string text = 1;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
public Intent.TrainingPhrase.Part.Builder clearText()
Required. The text for this part.
string text = 1;- Returns:
- This builder for chaining.
-
setTextBytes
public Intent.TrainingPhrase.Part.Builder setTextBytes(com.google.protobuf.ByteString value)
Required. The text for this part.
string text = 1;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
getEntityType
public String getEntityType()
Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEntityTypein interfaceIntent.TrainingPhrase.PartOrBuilder- Returns:
- The entityType.
-
getEntityTypeBytes
public com.google.protobuf.ByteString getEntityTypeBytes()
Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEntityTypeBytesin interfaceIntent.TrainingPhrase.PartOrBuilder- Returns:
- The bytes for entityType.
-
setEntityType
public Intent.TrainingPhrase.Part.Builder setEntityType(String value)
Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The entityType to set.- Returns:
- This builder for chaining.
-
clearEntityType
public Intent.TrainingPhrase.Part.Builder clearEntityType()
Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEntityTypeBytes
public Intent.TrainingPhrase.Part.Builder setEntityTypeBytes(com.google.protobuf.ByteString value)
Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for entityType to set.- Returns:
- This builder for chaining.
-
getAlias
public String getAlias()
Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
string alias = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAliasin interfaceIntent.TrainingPhrase.PartOrBuilder- Returns:
- The alias.
-
getAliasBytes
public com.google.protobuf.ByteString getAliasBytes()
Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
string alias = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAliasBytesin interfaceIntent.TrainingPhrase.PartOrBuilder- Returns:
- The bytes for alias.
-
setAlias
public Intent.TrainingPhrase.Part.Builder setAlias(String value)
Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
string alias = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The alias to set.- Returns:
- This builder for chaining.
-
clearAlias
public Intent.TrainingPhrase.Part.Builder clearAlias()
Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
string alias = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setAliasBytes
public Intent.TrainingPhrase.Part.Builder setAliasBytes(com.google.protobuf.ByteString value)
Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
string alias = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for alias to set.- Returns:
- This builder for chaining.
-
getUserDefined
public boolean getUserDefined()
Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserDefinedin interfaceIntent.TrainingPhrase.PartOrBuilder- Returns:
- The userDefined.
-
setUserDefined
public Intent.TrainingPhrase.Part.Builder setUserDefined(boolean value)
Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The userDefined to set.- Returns:
- This builder for chaining.
-
clearUserDefined
public Intent.TrainingPhrase.Part.Builder clearUserDefined()
Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setUnknownFields
public final Intent.TrainingPhrase.Part.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
mergeUnknownFields
public final Intent.TrainingPhrase.Part.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.TrainingPhrase.Part.Builder>
-
-