Package com.google.cloud.dialogflow.v2
Class Intent.Parameter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Intent.Parameter.Builder>
com.google.cloud.dialogflow.v2.Intent.Parameter.Builder
- All Implemented Interfaces:
Intent.ParameterOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Intent.Parameter
public static final class Intent.Parameter.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Intent.Parameter.Builder>
implements Intent.ParameterOrBuilder
Represents intent parameters.Protobuf type
google.cloud.dialogflow.v2.Intent.Parameter-
Method Summary
Modifier and TypeMethodDescriptionaddAllPrompts(Iterable<String> values) Optional.addPrompts(String value) Optional.addPromptsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Required.Optional.Optional.Optional.The unique identifier of this parameter.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanOptional.getName()The unique identifier of this parameter.com.google.protobuf.ByteStringThe unique identifier of this parameter.getPrompts(int index) Optional.com.google.protobuf.ByteStringgetPromptsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getValue()Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Intent.Parameter other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDefaultValue(String value) Optional.setDefaultValueBytes(com.google.protobuf.ByteString value) Optional.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.setEntityTypeDisplayName(String value) Optional.setEntityTypeDisplayNameBytes(com.google.protobuf.ByteString value) Optional.setIsList(boolean value) Optional.setMandatory(boolean value) Optional.The unique identifier of this parameter.setNameBytes(com.google.protobuf.ByteString value) The unique identifier of this parameter.setPrompts(int index, String value) Optional.Optional.setValueBytes(com.google.protobuf.ByteString value) Optional.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.Parameter.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.Parameter.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.Parameter.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.Parameter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Intent.Parameter.Builder>
-
mergeFrom
public Intent.Parameter.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.Parameter.Builder>- Throws:
IOException
-
getName
The unique identifier of this parameter.
string name = 1;- Specified by:
getNamein interfaceIntent.ParameterOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The unique identifier of this parameter.
string name = 1;- Specified by:
getNameBytesin interfaceIntent.ParameterOrBuilder- Returns:
- The bytes for name.
-
setName
The unique identifier of this parameter.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The unique identifier of this parameter.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The unique identifier of this parameter.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
Required. The name of the parameter.
string display_name = 2;- Specified by:
getDisplayNamein interfaceIntent.ParameterOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. The name of the parameter.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceIntent.ParameterOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Required. The name of the parameter.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. The name of the parameter.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. The name of the parameter.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getValuein interfaceIntent.ParameterOrBuilder- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getValueBytesin interfaceIntent.ParameterOrBuilder- Returns:
- The bytes for value.
-
setValue
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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setValueBytes
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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDefaultValuein interfaceIntent.ParameterOrBuilder- Returns:
- The defaultValue.
-
getDefaultValueBytes
public com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDefaultValueBytesin interfaceIntent.ParameterOrBuilder- Returns:
- The bytes for defaultValue.
-
setDefaultValue
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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The defaultValue to set.- Returns:
- This builder for chaining.
-
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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDefaultValueBytes
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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for defaultValue to set.- Returns:
- This builder for chaining.
-
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEntityTypeDisplayNamein interfaceIntent.ParameterOrBuilder- Returns:
- The entityTypeDisplayName.
-
getEntityTypeDisplayNameBytes
public com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEntityTypeDisplayNameBytesin interfaceIntent.ParameterOrBuilder- Returns:
- The bytes for entityTypeDisplayName.
-
setEntityTypeDisplayName
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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The entityTypeDisplayName to set.- Returns:
- This builder for chaining.
-
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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEntityTypeDisplayNameBytes
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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for entityTypeDisplayName to set.- Returns:
- This builder for chaining.
-
getMandatory
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMandatoryin interfaceIntent.ParameterOrBuilder- Returns:
- The mandatory.
-
setMandatory
Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
bool mandatory = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The mandatory to set.- Returns:
- This builder for chaining.
-
clearMandatory
Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
bool mandatory = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getPromptsList
public com.google.protobuf.ProtocolStringList getPromptsList()Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPromptsListin interfaceIntent.ParameterOrBuilder- Returns:
- A list containing the prompts.
-
getPromptsCount
public int getPromptsCount()Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPromptsCountin interfaceIntent.ParameterOrBuilder- Returns:
- The count of prompts.
-
getPrompts
Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPromptsin interfaceIntent.ParameterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The prompts at the given index.
-
getPromptsBytes
public com.google.protobuf.ByteString getPromptsBytes(int index) Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPromptsBytesin interfaceIntent.ParameterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the prompts at the given index.
-
setPrompts
Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The prompts to set.- Returns:
- This builder for chaining.
-
addPrompts
Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The prompts to add.- Returns:
- This builder for chaining.
-
addAllPrompts
Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The prompts to add.- Returns:
- This builder for chaining.
-
clearPrompts
Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addPromptsBytes
Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the prompts to add.- Returns:
- This builder for chaining.
-
getIsList
public boolean getIsList()Optional. Indicates whether the parameter represents a list of values.
bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIsListin interfaceIntent.ParameterOrBuilder- Returns:
- The isList.
-
setIsList
Optional. Indicates whether the parameter represents a list of values.
bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The isList to set.- Returns:
- This builder for chaining.
-
clearIsList
Optional. Indicates whether the parameter represents a list of values.
bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-