public static final class Intent.Parameter.Builder extends GeneratedMessageV3.Builder<Intent.Parameter.Builder> implements Intent.ParameterOrBuilder
Represents intent parameters.Protobuf type
google.cloud.dialogflow.v2beta1.Intent.ParametergetAllFields, 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.Parameter.Builder>public Intent.Parameter.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>public Intent.Parameter getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Intent.Parameter build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Intent.Parameter buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Intent.Parameter.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>public Intent.Parameter.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>public Intent.Parameter.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>public Intent.Parameter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>public Intent.Parameter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>public Intent.Parameter.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>public Intent.Parameter.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Intent.Parameter.Builder>public Intent.Parameter.Builder mergeFrom(Intent.Parameter other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>public Intent.Parameter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Intent.Parameter.Builder>java.io.IOExceptionpublic java.lang.String getName()
The unique identifier of this parameter.
string name = 1;getName in interface Intent.ParameterOrBuilderpublic ByteString getNameBytes()
The unique identifier of this parameter.
string name = 1;getNameBytes in interface Intent.ParameterOrBuilderpublic Intent.Parameter.Builder setName(java.lang.String value)
The unique identifier of this parameter.
string name = 1;public Intent.Parameter.Builder clearName()
The unique identifier of this parameter.
string name = 1;public Intent.Parameter.Builder setNameBytes(ByteString value)
The unique identifier of this parameter.
string name = 1;public java.lang.String getDisplayName()
Required. The name of the parameter.
string display_name = 2;getDisplayName in interface Intent.ParameterOrBuilderpublic ByteString getDisplayNameBytes()
Required. The name of the parameter.
string display_name = 2;getDisplayNameBytes in interface Intent.ParameterOrBuilderpublic Intent.Parameter.Builder setDisplayName(java.lang.String value)
Required. The name of the parameter.
string display_name = 2;public Intent.Parameter.Builder clearDisplayName()
Required. The name of the parameter.
string display_name = 2;public Intent.Parameter.Builder setDisplayNameBytes(ByteString value)
Required. The name of the parameter.
string display_name = 2;public java.lang.String getValue()
Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
string value = 3;getValue in interface Intent.ParameterOrBuilderpublic ByteString getValueBytes()
Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
string value = 3;getValueBytes in interface Intent.ParameterOrBuilderpublic Intent.Parameter.Builder setValue(java.lang.String value)
Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
string value = 3;public Intent.Parameter.Builder clearValue()
Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
string value = 3;public Intent.Parameter.Builder setValueBytes(ByteString value)
Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
string value = 3;public java.lang.String getDefaultValue()
Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
string default_value = 4;getDefaultValue in interface Intent.ParameterOrBuilderpublic ByteString getDefaultValueBytes()
Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
string default_value = 4;getDefaultValueBytes in interface Intent.ParameterOrBuilderpublic Intent.Parameter.Builder setDefaultValue(java.lang.String value)
Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
string default_value = 4;public Intent.Parameter.Builder clearDefaultValue()
Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
string default_value = 4;public Intent.Parameter.Builder setDefaultValueBytes(ByteString value)
Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
string default_value = 4;public java.lang.String getEntityTypeDisplayName()
Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
string entity_type_display_name = 5;getEntityTypeDisplayName in interface Intent.ParameterOrBuilderpublic ByteString getEntityTypeDisplayNameBytes()
Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
string entity_type_display_name = 5;getEntityTypeDisplayNameBytes in interface Intent.ParameterOrBuilderpublic Intent.Parameter.Builder setEntityTypeDisplayName(java.lang.String value)
Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
string entity_type_display_name = 5;public Intent.Parameter.Builder clearEntityTypeDisplayName()
Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
string entity_type_display_name = 5;public Intent.Parameter.Builder setEntityTypeDisplayNameBytes(ByteString value)
Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
string entity_type_display_name = 5;public boolean getMandatory()
Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
bool mandatory = 6;getMandatory in interface Intent.ParameterOrBuilderpublic Intent.Parameter.Builder setMandatory(boolean value)
Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
bool mandatory = 6;public Intent.Parameter.Builder clearMandatory()
Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
bool mandatory = 6;public ProtocolStringList getPromptsList()
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;getPromptsList in interface Intent.ParameterOrBuilderpublic int getPromptsCount()
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;getPromptsCount in interface Intent.ParameterOrBuilderpublic java.lang.String getPrompts(int index)
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;getPrompts in interface Intent.ParameterOrBuilderpublic ByteString getPromptsBytes(int index)
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;getPromptsBytes in interface Intent.ParameterOrBuilderpublic Intent.Parameter.Builder setPrompts(int index, java.lang.String value)
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;public Intent.Parameter.Builder addPrompts(java.lang.String value)
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;public Intent.Parameter.Builder addAllPrompts(java.lang.Iterable<java.lang.String> values)
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;public Intent.Parameter.Builder clearPrompts()
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;public Intent.Parameter.Builder addPromptsBytes(ByteString value)
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;public boolean getIsList()
Optional. Indicates whether the parameter represents a list of values.
bool is_list = 8;getIsList in interface Intent.ParameterOrBuilderpublic Intent.Parameter.Builder setIsList(boolean value)
Optional. Indicates whether the parameter represents a list of values.
bool is_list = 8;public Intent.Parameter.Builder clearIsList()
Optional. Indicates whether the parameter represents a list of values.
bool is_list = 8;public final Intent.Parameter.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>public final Intent.Parameter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>