Class HumanAgentAssistantConfig.SuggestionConfig.Builder (4.57.0)

public static final class HumanAgentAssistantConfig.SuggestionConfig.Builder extends GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionConfig.Builder> implements HumanAgentAssistantConfig.SuggestionConfigOrBuilder

Detail human agent assistant config.

Protobuf type google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig

Static Methods

getDescriptor()

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

Methods

addAllFeatureConfigs(Iterable<? extends HumanAgentAssistantConfig.SuggestionFeatureConfig> values)

public HumanAgentAssistantConfig.SuggestionConfig.Builder addAllFeatureConfigs(Iterable<? extends HumanAgentAssistantConfig.SuggestionFeatureConfig> values)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig>
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

addAllGenerators(Iterable<String> values)

public HumanAgentAssistantConfig.SuggestionConfig.Builder addAllGenerators(Iterable<String> values)

Optional. List of various generator resource names used in the conversation profile.

repeated string generators = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The generators to add.

Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

This builder for chaining.

addFeatureConfigs(HumanAgentAssistantConfig.SuggestionFeatureConfig value)

public HumanAgentAssistantConfig.SuggestionConfig.Builder addFeatureConfigs(HumanAgentAssistantConfig.SuggestionFeatureConfig value)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameter
Name Description
value HumanAgentAssistantConfig.SuggestionFeatureConfig
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

addFeatureConfigs(HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder builderForValue)

public HumanAgentAssistantConfig.SuggestionConfig.Builder addFeatureConfigs(HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder builderForValue)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameter
Name Description
builderForValue HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

addFeatureConfigs(int index, HumanAgentAssistantConfig.SuggestionFeatureConfig value)

public HumanAgentAssistantConfig.SuggestionConfig.Builder addFeatureConfigs(int index, HumanAgentAssistantConfig.SuggestionFeatureConfig value)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameters
Name Description
index int
value HumanAgentAssistantConfig.SuggestionFeatureConfig
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

addFeatureConfigs(int index, HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder builderForValue)

public HumanAgentAssistantConfig.SuggestionConfig.Builder addFeatureConfigs(int index, HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder builderForValue)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameters
Name Description
index int
builderForValue HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

addFeatureConfigsBuilder()

public HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder addFeatureConfigsBuilder()

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Returns
Type Description
HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder

addFeatureConfigsBuilder(int index)

public HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder addFeatureConfigsBuilder(int index)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameter
Name Description
index int
Returns
Type Description
HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder

addGenerators(String value)

public HumanAgentAssistantConfig.SuggestionConfig.Builder addGenerators(String value)

Optional. List of various generator resource names used in the conversation profile.

repeated string generators = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The generators to add.

Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

This builder for chaining.

addGeneratorsBytes(ByteString value)

public HumanAgentAssistantConfig.SuggestionConfig.Builder addGeneratorsBytes(ByteString value)

Optional. List of various generator resource names used in the conversation profile.

repeated string generators = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the generators to add.

Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HumanAgentAssistantConfig.SuggestionConfig build()
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig

buildPartial()

public HumanAgentAssistantConfig.SuggestionConfig buildPartial()
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig

clear()

public HumanAgentAssistantConfig.SuggestionConfig.Builder clear()
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder
Overrides

clearDisableHighLatencyFeaturesSyncDelivery()

public HumanAgentAssistantConfig.SuggestionConfig.Builder clearDisableHighLatencyFeaturesSyncDelivery()

Optional. When disable_high_latency_features_sync_delivery is true and using the AnalyzeContent API, we will not deliver the responses from high latency features in the API response. The human_agent_assistant_config.notification_config must be configured and enable_event_based_suggestion must be set to true to receive the responses from high latency features in Pub/Sub. High latency feature(s): KNOWLEDGE_ASSIST

bool disable_high_latency_features_sync_delivery = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

This builder for chaining.

clearFeatureConfigs()

public HumanAgentAssistantConfig.SuggestionConfig.Builder clearFeatureConfigs()

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGenerators()

public HumanAgentAssistantConfig.SuggestionConfig.Builder clearGenerators()

Optional. List of various generator resource names used in the conversation profile.

repeated string generators = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

This builder for chaining.

clearGroupSuggestionResponses()

public HumanAgentAssistantConfig.SuggestionConfig.Builder clearGroupSuggestionResponses()

If group_suggestion_responses is false, and there are multiple feature_configs in event based suggestion or StreamingAnalyzeContent, we will try to deliver suggestions to customers as soon as we get new suggestion. Different type of suggestions based on the same context will be in separate Pub/Sub event or StreamingAnalyzeContentResponse.

If group_suggestion_responses set to true. All the suggestions to the same participant based on the same context will be grouped into a single Pub/Sub event or StreamingAnalyzeContentResponse.

bool group_suggestion_responses = 3;

Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public HumanAgentAssistantConfig.SuggestionConfig.Builder clone()
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder
Overrides

getDefaultInstanceForType()

public HumanAgentAssistantConfig.SuggestionConfig getDefaultInstanceForType()
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig

getDescriptorForType()

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

getDisableHighLatencyFeaturesSyncDelivery()

public boolean getDisableHighLatencyFeaturesSyncDelivery()

Optional. When disable_high_latency_features_sync_delivery is true and using the AnalyzeContent API, we will not deliver the responses from high latency features in the API response. The human_agent_assistant_config.notification_config must be configured and enable_event_based_suggestion must be set to true to receive the responses from high latency features in Pub/Sub. High latency feature(s): KNOWLEDGE_ASSIST

bool disable_high_latency_features_sync_delivery = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The disableHighLatencyFeaturesSyncDelivery.

getFeatureConfigs(int index)

public HumanAgentAssistantConfig.SuggestionFeatureConfig getFeatureConfigs(int index)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameter
Name Description
index int
Returns
Type Description
HumanAgentAssistantConfig.SuggestionFeatureConfig

getFeatureConfigsBuilder(int index)

public HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder getFeatureConfigsBuilder(int index)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameter
Name Description
index int
Returns
Type Description
HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder

getFeatureConfigsBuilderList()

public List<HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder> getFeatureConfigsBuilderList()

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Returns
Type Description
List<Builder>

getFeatureConfigsCount()

public int getFeatureConfigsCount()

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Returns
Type Description
int

getFeatureConfigsList()

public List<HumanAgentAssistantConfig.SuggestionFeatureConfig> getFeatureConfigsList()

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Returns
Type Description
List<SuggestionFeatureConfig>

getFeatureConfigsOrBuilder(int index)

public HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder getFeatureConfigsOrBuilder(int index)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameter
Name Description
index int
Returns
Type Description
HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder

getFeatureConfigsOrBuilderList()

public List<? extends HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder> getFeatureConfigsOrBuilderList()

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder>

getGenerators(int index)

public String getGenerators(int index)

Optional. List of various generator resource names used in the conversation profile.

repeated string generators = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The generators at the given index.

getGeneratorsBytes(int index)

public ByteString getGeneratorsBytes(int index)

Optional. List of various generator resource names used in the conversation profile.

repeated string generators = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the generators at the given index.

getGeneratorsCount()

public int getGeneratorsCount()

Optional. List of various generator resource names used in the conversation profile.

repeated string generators = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of generators.

getGeneratorsList()

public ProtocolStringList getGeneratorsList()

Optional. List of various generator resource names used in the conversation profile.

repeated string generators = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the generators.

getGroupSuggestionResponses()

public boolean getGroupSuggestionResponses()

If group_suggestion_responses is false, and there are multiple feature_configs in event based suggestion or StreamingAnalyzeContent, we will try to deliver suggestions to customers as soon as we get new suggestion. Different type of suggestions based on the same context will be in separate Pub/Sub event or StreamingAnalyzeContentResponse.

If group_suggestion_responses set to true. All the suggestions to the same participant based on the same context will be grouped into a single Pub/Sub event or StreamingAnalyzeContentResponse.

bool group_suggestion_responses = 3;

Returns
Type Description
boolean

The groupSuggestionResponses.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HumanAgentAssistantConfig.SuggestionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HumanAgentAssistantConfig.SuggestionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder
Overrides

removeFeatureConfigs(int index)

public HumanAgentAssistantConfig.SuggestionConfig.Builder removeFeatureConfigs(int index)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameter
Name Description
index int
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

setDisableHighLatencyFeaturesSyncDelivery(boolean value)

public HumanAgentAssistantConfig.SuggestionConfig.Builder setDisableHighLatencyFeaturesSyncDelivery(boolean value)

Optional. When disable_high_latency_features_sync_delivery is true and using the AnalyzeContent API, we will not deliver the responses from high latency features in the API response. The human_agent_assistant_config.notification_config must be configured and enable_event_based_suggestion must be set to true to receive the responses from high latency features in Pub/Sub. High latency feature(s): KNOWLEDGE_ASSIST

bool disable_high_latency_features_sync_delivery = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The disableHighLatencyFeaturesSyncDelivery to set.

Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

This builder for chaining.

setFeatureConfigs(int index, HumanAgentAssistantConfig.SuggestionFeatureConfig value)

public HumanAgentAssistantConfig.SuggestionConfig.Builder setFeatureConfigs(int index, HumanAgentAssistantConfig.SuggestionFeatureConfig value)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameters
Name Description
index int
value HumanAgentAssistantConfig.SuggestionFeatureConfig
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

setFeatureConfigs(int index, HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder builderForValue)

public HumanAgentAssistantConfig.SuggestionConfig.Builder setFeatureConfigs(int index, HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder builderForValue)

Configuration of different suggestion features. One feature can have only one config.

repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2;

Parameters
Name Description
index int
builderForValue HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder
Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGenerators(int index, String value)

public HumanAgentAssistantConfig.SuggestionConfig.Builder setGenerators(int index, String value)

Optional. List of various generator resource names used in the conversation profile.

repeated string generators = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The generators to set.

Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

This builder for chaining.

setGroupSuggestionResponses(boolean value)

public HumanAgentAssistantConfig.SuggestionConfig.Builder setGroupSuggestionResponses(boolean value)

If group_suggestion_responses is false, and there are multiple feature_configs in event based suggestion or StreamingAnalyzeContent, we will try to deliver suggestions to customers as soon as we get new suggestion. Different type of suggestions based on the same context will be in separate Pub/Sub event or StreamingAnalyzeContentResponse.

If group_suggestion_responses set to true. All the suggestions to the same participant based on the same context will be grouped into a single Pub/Sub event or StreamingAnalyzeContentResponse.

bool group_suggestion_responses = 3;

Parameter
Name Description
value boolean

The groupSuggestionResponses to set.

Returns
Type Description
HumanAgentAssistantConfig.SuggestionConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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