Class AssistQueryParameters.Builder (4.7.5)

public static final class AssistQueryParameters.Builder extends GeneratedMessageV3.Builder<AssistQueryParameters.Builder> implements AssistQueryParametersOrBuilder

Represents the parameters of human assist query.

Protobuf type google.cloud.dialogflow.v2beta1.AssistQueryParameters

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AssistQueryParameters.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AssistQueryParameters.Builder
Overrides

build()

public AssistQueryParameters build()
Returns
TypeDescription
AssistQueryParameters

buildPartial()

public AssistQueryParameters buildPartial()
Returns
TypeDescription
AssistQueryParameters

clear()

public AssistQueryParameters.Builder clear()
Returns
TypeDescription
AssistQueryParameters.Builder
Overrides

clearDocumentsMetadataFilters()

public AssistQueryParameters.Builder clearDocumentsMetadataFilters()
Returns
TypeDescription
AssistQueryParameters.Builder

clearField(Descriptors.FieldDescriptor field)

public AssistQueryParameters.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AssistQueryParameters.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AssistQueryParameters.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AssistQueryParameters.Builder
Overrides

clone()

public AssistQueryParameters.Builder clone()
Returns
TypeDescription
AssistQueryParameters.Builder
Overrides

containsDocumentsMetadataFilters(String key)

public boolean containsDocumentsMetadataFilters(String key)

Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be <code><code> documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" } </code></code>

map<string, string> documents_metadata_filters = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public AssistQueryParameters getDefaultInstanceForType()
Returns
TypeDescription
AssistQueryParameters

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocumentsMetadataFilters()

public Map<String,String> getDocumentsMetadataFilters()
Returns
TypeDescription
Map<String,String>

getDocumentsMetadataFiltersCount()

public int getDocumentsMetadataFiltersCount()

Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be <code><code> documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" } </code></code>

map<string, string> documents_metadata_filters = 1;

Returns
TypeDescription
int

getDocumentsMetadataFiltersMap()

public Map<String,String> getDocumentsMetadataFiltersMap()

Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be <code><code> documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" } </code></code>

map<string, string> documents_metadata_filters = 1;

Returns
TypeDescription
Map<String,String>

getDocumentsMetadataFiltersOrDefault(String key, String defaultValue)

public String getDocumentsMetadataFiltersOrDefault(String key, String defaultValue)

Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be <code><code> documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" } </code></code>

map<string, string> documents_metadata_filters = 1;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getDocumentsMetadataFiltersOrThrow(String key)

public String getDocumentsMetadataFiltersOrThrow(String key)

Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be <code><code> documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" } </code></code>

map<string, string> documents_metadata_filters = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableDocumentsMetadataFilters()

public Map<String,String> getMutableDocumentsMetadataFilters()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AssistQueryParameters other)

public AssistQueryParameters.Builder mergeFrom(AssistQueryParameters other)
Parameter
NameDescription
otherAssistQueryParameters
Returns
TypeDescription
AssistQueryParameters.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssistQueryParameters.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AssistQueryParameters.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AssistQueryParameters.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AssistQueryParameters.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AssistQueryParameters.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AssistQueryParameters.Builder
Overrides

putAllDocumentsMetadataFilters(Map<String,String> values)

public AssistQueryParameters.Builder putAllDocumentsMetadataFilters(Map<String,String> values)

Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be <code><code> documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" } </code></code>

map<string, string> documents_metadata_filters = 1;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
AssistQueryParameters.Builder

putDocumentsMetadataFilters(String key, String value)

public AssistQueryParameters.Builder putDocumentsMetadataFilters(String key, String value)

Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be <code><code> documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" } </code></code>

map<string, string> documents_metadata_filters = 1;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
AssistQueryParameters.Builder

removeDocumentsMetadataFilters(String key)

public AssistQueryParameters.Builder removeDocumentsMetadataFilters(String key)

Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be <code><code> documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" } </code></code>

map<string, string> documents_metadata_filters = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
AssistQueryParameters.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AssistQueryParameters.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AssistQueryParameters.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AssistQueryParameters.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AssistQueryParameters.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AssistQueryParameters.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AssistQueryParameters.Builder
Overrides