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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
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, 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, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Intent.Parameter.Builder>
public Intent.Parameter.Builder addRepeatedField(Descriptors.FieldDescriptor field, 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 IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Intent.Parameter.Builder>
IOException
public 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(String value)
The unique identifier of this parameter.
string name = 1;
value
- The name to set.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;
value
- The bytes for name to set.public 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(String value)
Required. The name of the parameter.
string display_name = 2;
value
- The displayName to set.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;
value
- The bytes for displayName to set.public 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(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;
value
- The value to set.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;
value
- The bytes for value to set.public 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(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;
value
- The defaultValue to set.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;
value
- The bytes for defaultValue to set.public 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(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;
value
- The entityTypeDisplayName to set.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;
value
- The bytes for entityTypeDisplayName to set.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;
value
- The mandatory to set.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 a 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 a value for the parameter.
repeated string prompts = 7;
getPromptsCount
in interface Intent.ParameterOrBuilder
public String getPrompts(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;
getPrompts
in interface Intent.ParameterOrBuilder
index
- The index of the element to return.public 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;
getPromptsBytes
in interface Intent.ParameterOrBuilder
index
- The index of the value to return.public Intent.Parameter.Builder setPrompts(int index, String value)
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;
index
- The index to set the value at.value
- The prompts to set.public Intent.Parameter.Builder addPrompts(String value)
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;
value
- The prompts to add.public Intent.Parameter.Builder addAllPrompts(Iterable<String> values)
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;
values
- The prompts to add.public Intent.Parameter.Builder 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;
public Intent.Parameter.Builder addPromptsBytes(ByteString value)
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;
value
- The bytes of the prompts to add.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;
value
- The isList to set.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>
Copyright © 2022 Google LLC. All rights reserved.