Class Intent.TrainingPhrase.Part.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Intent.TrainingPhrase.Part.Builder>
com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessage.Builder<Intent.TrainingPhrase.Part.Builder>
implements Intent.TrainingPhrase.PartOrBuilder
Represents a part of a training phrase.Protobuf type
google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter] used to annotate this part of the training phrase.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter] used to annotate this part of the training phrase.com.google.protobuf.ByteStringThe [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter] used to annotate this part of the training phrase.getText()Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setParameterId(String value) The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter] used to annotate this part of the training phrase.setParameterIdBytes(com.google.protobuf.ByteString value) The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter] used to annotate this part of the training phrase.Required.setTextBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.Builder<Intent.TrainingPhrase.Part.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Intent.TrainingPhrase.Part.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
Required. The text for this part.
string text = 1 [(.google.api.field_behavior) = REQUIRED];- 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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTextBytesin interfaceIntent.TrainingPhrase.PartOrBuilder- Returns:
- The bytes for text.
-
setText
Required. The text for this part.
string text = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
Required. The text for this part.
string text = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTextBytes
Required. The text for this part.
string text = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
getParameterId
The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter] used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
string parameter_id = 2;- Specified by:
getParameterIdin interfaceIntent.TrainingPhrase.PartOrBuilder- Returns:
- The parameterId.
-
getParameterIdBytes
public com.google.protobuf.ByteString getParameterIdBytes()The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter] used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
string parameter_id = 2;- Specified by:
getParameterIdBytesin interfaceIntent.TrainingPhrase.PartOrBuilder- Returns:
- The bytes for parameterId.
-
setParameterId
The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter] used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
string parameter_id = 2;- Parameters:
value- The parameterId to set.- Returns:
- This builder for chaining.
-
clearParameterId
The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter] used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
string parameter_id = 2;- Returns:
- This builder for chaining.
-
setParameterIdBytes
The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter] used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
string parameter_id = 2;- Parameters:
value- The bytes for parameterId to set.- Returns:
- This builder for chaining.
-