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.Parameter
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.Parameter.Builder>
public Intent.Parameter.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>
public Intent.Parameter getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Intent.Parameter build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Intent.Parameter buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Intent.Parameter.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>
public Intent.Parameter.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>
public Intent.Parameter.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>
public Intent.Parameter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
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.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>
public Intent.Parameter.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>
public Intent.Parameter.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Intent.Parameter.Builder>
public Intent.Parameter.Builder mergeFrom(Intent.Parameter other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>
public Intent.Parameter.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.Parameter.Builder>
java.io.IOException
public java.lang.String getName()
The unique identifier of this parameter.
string name = 1;
getName
in interface Intent.ParameterOrBuilder
public ByteString getNameBytes()
The unique identifier of this parameter.
string name = 1;
getNameBytes
in interface Intent.ParameterOrBuilder
public 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.ParameterOrBuilder
public ByteString getDisplayNameBytes()
Required. The name of the parameter.
string display_name = 2;
getDisplayNameBytes
in interface Intent.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.ParameterOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>
public final Intent.Parameter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>