Class AssistQueryParameters.Builder (4.8.6)

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.v2.AssistQueryParameters

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AssistQueryParameters.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AssistQueryParameters.Builder
Overrides

build()

public AssistQueryParameters build()
Returns
Type Description
AssistQueryParameters

buildPartial()

public AssistQueryParameters buildPartial()
Returns
Type Description
AssistQueryParameters

clear()

public AssistQueryParameters.Builder clear()
Returns
Type Description
AssistQueryParameters.Builder
Overrides

clearDocumentsMetadataFilters()

public AssistQueryParameters.Builder clearDocumentsMetadataFilters()
Returns
Type Description
AssistQueryParameters.Builder

clearField(Descriptors.FieldDescriptor field)

public AssistQueryParameters.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AssistQueryParameters.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AssistQueryParameters.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AssistQueryParameters.Builder
Overrides

clone()

public AssistQueryParameters.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public AssistQueryParameters getDefaultInstanceForType()
Returns
Type Description
AssistQueryParameters

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDocumentsMetadataFilters()

public Map<String,String> getDocumentsMetadataFilters()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableDocumentsMetadataFilters()

public Map<String,String> getMutableDocumentsMetadataFilters()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AssistQueryParameters other)

public AssistQueryParameters.Builder mergeFrom(AssistQueryParameters other)
Parameter
Name Description
other AssistQueryParameters
Returns
Type Description
AssistQueryParameters.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssistQueryParameters.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistQueryParameters.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public AssistQueryParameters.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AssistQueryParameters.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AssistQueryParameters.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
AssistQueryParameters.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AssistQueryParameters.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AssistQueryParameters.Builder
Overrides

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

public AssistQueryParameters.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AssistQueryParameters.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AssistQueryParameters.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AssistQueryParameters.Builder
Overrides