Class AnnotatorSelector.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
- com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder
-
- All Implemented Interfaces:
AnnotatorSelectorOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AnnotatorSelector
public static final class AnnotatorSelector.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder> implements AnnotatorSelectorOrBuilder
Selector of all available annotators and phrase matchers to run.
Protobuf typegoogle.cloud.contactcenterinsights.v1.AnnotatorSelector
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotatorSelector.Builder
addAllIssueModels(Iterable<String> values)
The issue model to run.AnnotatorSelector.Builder
addAllPhraseMatchers(Iterable<String> values)
The list of phrase matchers to run.AnnotatorSelector.Builder
addIssueModels(String value)
The issue model to run.AnnotatorSelector.Builder
addIssueModelsBytes(com.google.protobuf.ByteString value)
The issue model to run.AnnotatorSelector.Builder
addPhraseMatchers(String value)
The list of phrase matchers to run.AnnotatorSelector.Builder
addPhraseMatchersBytes(com.google.protobuf.ByteString value)
The list of phrase matchers to run.AnnotatorSelector.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AnnotatorSelector
build()
AnnotatorSelector
buildPartial()
AnnotatorSelector.Builder
clear()
AnnotatorSelector.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AnnotatorSelector.Builder
clearIssueModels()
The issue model to run.AnnotatorSelector.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AnnotatorSelector.Builder
clearPhraseMatchers()
The list of phrase matchers to run.AnnotatorSelector.Builder
clearRunEntityAnnotator()
Whether to run the entity annotator.AnnotatorSelector.Builder
clearRunIntentAnnotator()
Whether to run the intent annotator.AnnotatorSelector.Builder
clearRunInterruptionAnnotator()
Whether to run the interruption annotator.AnnotatorSelector.Builder
clearRunIssueModelAnnotator()
Whether to run the issue model annotator.AnnotatorSelector.Builder
clearRunPhraseMatcherAnnotator()
Whether to run the active phrase matcher annotator(s).AnnotatorSelector.Builder
clearRunSentimentAnnotator()
Whether to run the sentiment annotator.AnnotatorSelector.Builder
clearRunSilenceAnnotator()
Whether to run the silence annotator.AnnotatorSelector.Builder
clearRunSummarizationAnnotator()
Whether to run the summarization annotator.AnnotatorSelector.Builder
clearSummarizationConfig()
Configuration for the summarization annotator.AnnotatorSelector.Builder
clone()
AnnotatorSelector
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getIssueModels(int index)
The issue model to run.com.google.protobuf.ByteString
getIssueModelsBytes(int index)
The issue model to run.int
getIssueModelsCount()
The issue model to run.com.google.protobuf.ProtocolStringList
getIssueModelsList()
The issue model to run.String
getPhraseMatchers(int index)
The list of phrase matchers to run.com.google.protobuf.ByteString
getPhraseMatchersBytes(int index)
The list of phrase matchers to run.int
getPhraseMatchersCount()
The list of phrase matchers to run.com.google.protobuf.ProtocolStringList
getPhraseMatchersList()
The list of phrase matchers to run.boolean
getRunEntityAnnotator()
Whether to run the entity annotator.boolean
getRunIntentAnnotator()
Whether to run the intent annotator.boolean
getRunInterruptionAnnotator()
Whether to run the interruption annotator.boolean
getRunIssueModelAnnotator()
Whether to run the issue model annotator.boolean
getRunPhraseMatcherAnnotator()
Whether to run the active phrase matcher annotator(s).boolean
getRunSentimentAnnotator()
Whether to run the sentiment annotator.boolean
getRunSilenceAnnotator()
Whether to run the silence annotator.boolean
getRunSummarizationAnnotator()
Whether to run the summarization annotator.AnnotatorSelector.SummarizationConfig
getSummarizationConfig()
Configuration for the summarization annotator.AnnotatorSelector.SummarizationConfig.Builder
getSummarizationConfigBuilder()
Configuration for the summarization annotator.AnnotatorSelector.SummarizationConfigOrBuilder
getSummarizationConfigOrBuilder()
Configuration for the summarization annotator.boolean
hasSummarizationConfig()
Configuration for the summarization annotator.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AnnotatorSelector.Builder
mergeFrom(AnnotatorSelector other)
AnnotatorSelector.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AnnotatorSelector.Builder
mergeFrom(com.google.protobuf.Message other)
AnnotatorSelector.Builder
mergeSummarizationConfig(AnnotatorSelector.SummarizationConfig value)
Configuration for the summarization annotator.AnnotatorSelector.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AnnotatorSelector.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AnnotatorSelector.Builder
setIssueModels(int index, String value)
The issue model to run.AnnotatorSelector.Builder
setPhraseMatchers(int index, String value)
The list of phrase matchers to run.AnnotatorSelector.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AnnotatorSelector.Builder
setRunEntityAnnotator(boolean value)
Whether to run the entity annotator.AnnotatorSelector.Builder
setRunIntentAnnotator(boolean value)
Whether to run the intent annotator.AnnotatorSelector.Builder
setRunInterruptionAnnotator(boolean value)
Whether to run the interruption annotator.AnnotatorSelector.Builder
setRunIssueModelAnnotator(boolean value)
Whether to run the issue model annotator.AnnotatorSelector.Builder
setRunPhraseMatcherAnnotator(boolean value)
Whether to run the active phrase matcher annotator(s).AnnotatorSelector.Builder
setRunSentimentAnnotator(boolean value)
Whether to run the sentiment annotator.AnnotatorSelector.Builder
setRunSilenceAnnotator(boolean value)
Whether to run the silence annotator.AnnotatorSelector.Builder
setRunSummarizationAnnotator(boolean value)
Whether to run the summarization annotator.AnnotatorSelector.Builder
setSummarizationConfig(AnnotatorSelector.SummarizationConfig value)
Configuration for the summarization annotator.AnnotatorSelector.Builder
setSummarizationConfig(AnnotatorSelector.SummarizationConfig.Builder builderForValue)
Configuration for the summarization annotator.AnnotatorSelector.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
clear
public AnnotatorSelector.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
getDefaultInstanceForType
public AnnotatorSelector getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AnnotatorSelector build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AnnotatorSelector buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AnnotatorSelector.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
setField
public AnnotatorSelector.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
clearField
public AnnotatorSelector.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
clearOneof
public AnnotatorSelector.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
setRepeatedField
public AnnotatorSelector.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
addRepeatedField
public AnnotatorSelector.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
mergeFrom
public AnnotatorSelector.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AnnotatorSelector.Builder>
-
mergeFrom
public AnnotatorSelector.Builder mergeFrom(AnnotatorSelector other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
mergeFrom
public AnnotatorSelector.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AnnotatorSelector.Builder>
- Throws:
IOException
-
getRunInterruptionAnnotator
public boolean getRunInterruptionAnnotator()
Whether to run the interruption annotator.
bool run_interruption_annotator = 1;
- Specified by:
getRunInterruptionAnnotator
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- The runInterruptionAnnotator.
-
setRunInterruptionAnnotator
public AnnotatorSelector.Builder setRunInterruptionAnnotator(boolean value)
Whether to run the interruption annotator.
bool run_interruption_annotator = 1;
- Parameters:
value
- The runInterruptionAnnotator to set.- Returns:
- This builder for chaining.
-
clearRunInterruptionAnnotator
public AnnotatorSelector.Builder clearRunInterruptionAnnotator()
Whether to run the interruption annotator.
bool run_interruption_annotator = 1;
- Returns:
- This builder for chaining.
-
getRunSilenceAnnotator
public boolean getRunSilenceAnnotator()
Whether to run the silence annotator.
bool run_silence_annotator = 2;
- Specified by:
getRunSilenceAnnotator
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- The runSilenceAnnotator.
-
setRunSilenceAnnotator
public AnnotatorSelector.Builder setRunSilenceAnnotator(boolean value)
Whether to run the silence annotator.
bool run_silence_annotator = 2;
- Parameters:
value
- The runSilenceAnnotator to set.- Returns:
- This builder for chaining.
-
clearRunSilenceAnnotator
public AnnotatorSelector.Builder clearRunSilenceAnnotator()
Whether to run the silence annotator.
bool run_silence_annotator = 2;
- Returns:
- This builder for chaining.
-
getRunPhraseMatcherAnnotator
public boolean getRunPhraseMatcherAnnotator()
Whether to run the active phrase matcher annotator(s).
bool run_phrase_matcher_annotator = 3;
- Specified by:
getRunPhraseMatcherAnnotator
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- The runPhraseMatcherAnnotator.
-
setRunPhraseMatcherAnnotator
public AnnotatorSelector.Builder setRunPhraseMatcherAnnotator(boolean value)
Whether to run the active phrase matcher annotator(s).
bool run_phrase_matcher_annotator = 3;
- Parameters:
value
- The runPhraseMatcherAnnotator to set.- Returns:
- This builder for chaining.
-
clearRunPhraseMatcherAnnotator
public AnnotatorSelector.Builder clearRunPhraseMatcherAnnotator()
Whether to run the active phrase matcher annotator(s).
bool run_phrase_matcher_annotator = 3;
- Returns:
- This builder for chaining.
-
getPhraseMatchersList
public com.google.protobuf.ProtocolStringList getPhraseMatchersList()
The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... }
- Specified by:
getPhraseMatchersList
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- A list containing the phraseMatchers.
-
getPhraseMatchersCount
public int getPhraseMatchersCount()
The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... }
- Specified by:
getPhraseMatchersCount
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- The count of phraseMatchers.
-
getPhraseMatchers
public String getPhraseMatchers(int index)
The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... }
- Specified by:
getPhraseMatchers
in interfaceAnnotatorSelectorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The phraseMatchers at the given index.
-
getPhraseMatchersBytes
public com.google.protobuf.ByteString getPhraseMatchersBytes(int index)
The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... }
- Specified by:
getPhraseMatchersBytes
in interfaceAnnotatorSelectorOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the phraseMatchers at the given index.
-
setPhraseMatchers
public AnnotatorSelector.Builder setPhraseMatchers(int index, String value)
The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... }
- Parameters:
index
- The index to set the value at.value
- The phraseMatchers to set.- Returns:
- This builder for chaining.
-
addPhraseMatchers
public AnnotatorSelector.Builder addPhraseMatchers(String value)
The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The phraseMatchers to add.- Returns:
- This builder for chaining.
-
addAllPhraseMatchers
public AnnotatorSelector.Builder addAllPhraseMatchers(Iterable<String> values)
The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... }
- Parameters:
values
- The phraseMatchers to add.- Returns:
- This builder for chaining.
-
clearPhraseMatchers
public AnnotatorSelector.Builder clearPhraseMatchers()
The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
addPhraseMatchersBytes
public AnnotatorSelector.Builder addPhraseMatchersBytes(com.google.protobuf.ByteString value)
The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes of the phraseMatchers to add.- Returns:
- This builder for chaining.
-
getRunSentimentAnnotator
public boolean getRunSentimentAnnotator()
Whether to run the sentiment annotator.
bool run_sentiment_annotator = 5;
- Specified by:
getRunSentimentAnnotator
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- The runSentimentAnnotator.
-
setRunSentimentAnnotator
public AnnotatorSelector.Builder setRunSentimentAnnotator(boolean value)
Whether to run the sentiment annotator.
bool run_sentiment_annotator = 5;
- Parameters:
value
- The runSentimentAnnotator to set.- Returns:
- This builder for chaining.
-
clearRunSentimentAnnotator
public AnnotatorSelector.Builder clearRunSentimentAnnotator()
Whether to run the sentiment annotator.
bool run_sentiment_annotator = 5;
- Returns:
- This builder for chaining.
-
getRunEntityAnnotator
public boolean getRunEntityAnnotator()
Whether to run the entity annotator.
bool run_entity_annotator = 6;
- Specified by:
getRunEntityAnnotator
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- The runEntityAnnotator.
-
setRunEntityAnnotator
public AnnotatorSelector.Builder setRunEntityAnnotator(boolean value)
Whether to run the entity annotator.
bool run_entity_annotator = 6;
- Parameters:
value
- The runEntityAnnotator to set.- Returns:
- This builder for chaining.
-
clearRunEntityAnnotator
public AnnotatorSelector.Builder clearRunEntityAnnotator()
Whether to run the entity annotator.
bool run_entity_annotator = 6;
- Returns:
- This builder for chaining.
-
getRunIntentAnnotator
public boolean getRunIntentAnnotator()
Whether to run the intent annotator.
bool run_intent_annotator = 7;
- Specified by:
getRunIntentAnnotator
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- The runIntentAnnotator.
-
setRunIntentAnnotator
public AnnotatorSelector.Builder setRunIntentAnnotator(boolean value)
Whether to run the intent annotator.
bool run_intent_annotator = 7;
- Parameters:
value
- The runIntentAnnotator to set.- Returns:
- This builder for chaining.
-
clearRunIntentAnnotator
public AnnotatorSelector.Builder clearRunIntentAnnotator()
Whether to run the intent annotator.
bool run_intent_annotator = 7;
- Returns:
- This builder for chaining.
-
getRunIssueModelAnnotator
public boolean getRunIssueModelAnnotator()
Whether to run the issue model annotator. A model should have already been deployed for this to take effect.
bool run_issue_model_annotator = 8;
- Specified by:
getRunIssueModelAnnotator
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- The runIssueModelAnnotator.
-
setRunIssueModelAnnotator
public AnnotatorSelector.Builder setRunIssueModelAnnotator(boolean value)
Whether to run the issue model annotator. A model should have already been deployed for this to take effect.
bool run_issue_model_annotator = 8;
- Parameters:
value
- The runIssueModelAnnotator to set.- Returns:
- This builder for chaining.
-
clearRunIssueModelAnnotator
public AnnotatorSelector.Builder clearRunIssueModelAnnotator()
Whether to run the issue model annotator. A model should have already been deployed for this to take effect.
bool run_issue_model_annotator = 8;
- Returns:
- This builder for chaining.
-
getIssueModelsList
public com.google.protobuf.ProtocolStringList getIssueModelsList()
The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.
repeated string issue_models = 10 [(.google.api.resource_reference) = { ... }
- Specified by:
getIssueModelsList
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- A list containing the issueModels.
-
getIssueModelsCount
public int getIssueModelsCount()
The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.
repeated string issue_models = 10 [(.google.api.resource_reference) = { ... }
- Specified by:
getIssueModelsCount
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- The count of issueModels.
-
getIssueModels
public String getIssueModels(int index)
The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.
repeated string issue_models = 10 [(.google.api.resource_reference) = { ... }
- Specified by:
getIssueModels
in interfaceAnnotatorSelectorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The issueModels at the given index.
-
getIssueModelsBytes
public com.google.protobuf.ByteString getIssueModelsBytes(int index)
The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.
repeated string issue_models = 10 [(.google.api.resource_reference) = { ... }
- Specified by:
getIssueModelsBytes
in interfaceAnnotatorSelectorOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the issueModels at the given index.
-
setIssueModels
public AnnotatorSelector.Builder setIssueModels(int index, String value)
The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.
repeated string issue_models = 10 [(.google.api.resource_reference) = { ... }
- Parameters:
index
- The index to set the value at.value
- The issueModels to set.- Returns:
- This builder for chaining.
-
addIssueModels
public AnnotatorSelector.Builder addIssueModels(String value)
The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.
repeated string issue_models = 10 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The issueModels to add.- Returns:
- This builder for chaining.
-
addAllIssueModels
public AnnotatorSelector.Builder addAllIssueModels(Iterable<String> values)
The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.
repeated string issue_models = 10 [(.google.api.resource_reference) = { ... }
- Parameters:
values
- The issueModels to add.- Returns:
- This builder for chaining.
-
clearIssueModels
public AnnotatorSelector.Builder clearIssueModels()
The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.
repeated string issue_models = 10 [(.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
addIssueModelsBytes
public AnnotatorSelector.Builder addIssueModelsBytes(com.google.protobuf.ByteString value)
The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.
repeated string issue_models = 10 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes of the issueModels to add.- Returns:
- This builder for chaining.
-
getRunSummarizationAnnotator
public boolean getRunSummarizationAnnotator()
Whether to run the summarization annotator.
bool run_summarization_annotator = 9;
- Specified by:
getRunSummarizationAnnotator
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- The runSummarizationAnnotator.
-
setRunSummarizationAnnotator
public AnnotatorSelector.Builder setRunSummarizationAnnotator(boolean value)
Whether to run the summarization annotator.
bool run_summarization_annotator = 9;
- Parameters:
value
- The runSummarizationAnnotator to set.- Returns:
- This builder for chaining.
-
clearRunSummarizationAnnotator
public AnnotatorSelector.Builder clearRunSummarizationAnnotator()
Whether to run the summarization annotator.
bool run_summarization_annotator = 9;
- Returns:
- This builder for chaining.
-
hasSummarizationConfig
public boolean hasSummarizationConfig()
Configuration for the summarization annotator.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig summarization_config = 11;
- Specified by:
hasSummarizationConfig
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- Whether the summarizationConfig field is set.
-
getSummarizationConfig
public AnnotatorSelector.SummarizationConfig getSummarizationConfig()
Configuration for the summarization annotator.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig summarization_config = 11;
- Specified by:
getSummarizationConfig
in interfaceAnnotatorSelectorOrBuilder
- Returns:
- The summarizationConfig.
-
setSummarizationConfig
public AnnotatorSelector.Builder setSummarizationConfig(AnnotatorSelector.SummarizationConfig value)
Configuration for the summarization annotator.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig summarization_config = 11;
-
setSummarizationConfig
public AnnotatorSelector.Builder setSummarizationConfig(AnnotatorSelector.SummarizationConfig.Builder builderForValue)
Configuration for the summarization annotator.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig summarization_config = 11;
-
mergeSummarizationConfig
public AnnotatorSelector.Builder mergeSummarizationConfig(AnnotatorSelector.SummarizationConfig value)
Configuration for the summarization annotator.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig summarization_config = 11;
-
clearSummarizationConfig
public AnnotatorSelector.Builder clearSummarizationConfig()
Configuration for the summarization annotator.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig summarization_config = 11;
-
getSummarizationConfigBuilder
public AnnotatorSelector.SummarizationConfig.Builder getSummarizationConfigBuilder()
Configuration for the summarization annotator.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig summarization_config = 11;
-
getSummarizationConfigOrBuilder
public AnnotatorSelector.SummarizationConfigOrBuilder getSummarizationConfigOrBuilder()
Configuration for the summarization annotator.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig summarization_config = 11;
- Specified by:
getSummarizationConfigOrBuilder
in interfaceAnnotatorSelectorOrBuilder
-
setUnknownFields
public final AnnotatorSelector.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
mergeUnknownFields
public final AnnotatorSelector.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotatorSelector.Builder>
-
-