Class AnalysisRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnalysisRule.Builder>
com.google.cloud.contactcenterinsights.v1.AnalysisRule.Builder
- All Implemented Interfaces:
AnalysisRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnalysisRule
public static final class AnalysisRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnalysisRule.Builder>
implements AnalysisRuleOrBuilder
The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that match the filter defined in the rule. For a conversation matches the filter, the annotators specified in the rule will be run. If a conversation matches multiple rules, a union of all the annotators will be run. One project can have multiple analysis rules.Protobuf type
google.cloud.contactcenterinsights.v1.AnalysisRule-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If true, apply this rule to conversations.Percentage of conversations that we should apply this analysis setting automatically, between [0, 1].Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter.Filter for the conversations that should apply this analysis rule.Output only.Display Name of the analysis rule.Identifier.Output only.booleanIf true, apply this rule to conversations.doublePercentage of conversations that we should apply this analysis setting automatically, between [0, 1].Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter.Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter.Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter.Filter for the conversations that should apply this analysis rule.com.google.protobuf.ByteStringFilter for the conversations that should apply this analysis rule.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDisplay Name of the analysis rule.com.google.protobuf.ByteStringDisplay Name of the analysis rule.getName()Identifier.com.google.protobuf.ByteStringIdentifier.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanSelector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter.booleanOutput only.booleanDisplay Name of the analysis rule.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanSelector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter.mergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(AnalysisRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setActive(boolean value) If true, apply this rule to conversations.setAnalysisPercentage(double value) Percentage of conversations that we should apply this analysis setting automatically, between [0, 1].Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter.setAnnotatorSelector(AnnotatorSelector.Builder builderForValue) Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter.setConversationFilter(String value) Filter for the conversations that should apply this analysis rule.setConversationFilterBytes(com.google.protobuf.ByteString value) Filter for the conversations that should apply this analysis rule.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDisplayName(String value) Display Name of the analysis rule.setDisplayNameBytes(com.google.protobuf.ByteString value) Display Name of the analysis rule.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AnalysisRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnalysisRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnalysisRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnalysisRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnalysisRule.Builder>
-
mergeFrom
public AnalysisRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnalysisRule.Builder>- Throws:
IOException
-
getName
Identifier. The resource name of the analysis rule. Format: projects/{project}/locations/{location}/analysisRules/{analysis_rule}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceAnalysisRuleOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. The resource name of the analysis rule. Format: projects/{project}/locations/{location}/analysisRules/{analysis_rule}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceAnalysisRuleOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. The resource name of the analysis rule. Format: projects/{project}/locations/{location}/analysisRules/{analysis_rule}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Identifier. The resource name of the analysis rule. Format: projects/{project}/locations/{location}/analysisRules/{analysis_rule}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Identifier. The resource name of the analysis rule. Format: projects/{project}/locations/{location}/analysisRules/{analysis_rule}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The time at which this analysis rule was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceAnalysisRuleOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time at which this analysis rule was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceAnalysisRuleOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The time at which this analysis rule was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The time at which this analysis rule was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The time at which this analysis rule was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The time at which this analysis rule was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The time at which this analysis rule was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time at which this analysis rule was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceAnalysisRuleOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The most recent time at which this analysis rule was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceAnalysisRuleOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The most recent time at which this analysis rule was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceAnalysisRuleOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The most recent time at which this analysis rule was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The most recent time at which this analysis rule was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The most recent time at which this analysis rule was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The most recent time at which this analysis rule was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The most recent time at which this analysis rule was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The most recent time at which this analysis rule was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceAnalysisRuleOrBuilder
-
hasDisplayName
public boolean hasDisplayName()Display Name of the analysis rule.
optional string display_name = 4;- Specified by:
hasDisplayNamein interfaceAnalysisRuleOrBuilder- Returns:
- Whether the displayName field is set.
-
getDisplayName
Display Name of the analysis rule.
optional string display_name = 4;- Specified by:
getDisplayNamein interfaceAnalysisRuleOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Display Name of the analysis rule.
optional string display_name = 4;- Specified by:
getDisplayNameBytesin interfaceAnalysisRuleOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Display Name of the analysis rule.
optional string display_name = 4;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Display Name of the analysis rule.
optional string display_name = 4;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Display Name of the analysis rule.
optional string display_name = 4;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getConversationFilter
Filter for the conversations that should apply this analysis rule. An empty filter means this analysis rule applies to all conversations.
string conversation_filter = 5;- Specified by:
getConversationFilterin interfaceAnalysisRuleOrBuilder- Returns:
- The conversationFilter.
-
getConversationFilterBytes
public com.google.protobuf.ByteString getConversationFilterBytes()Filter for the conversations that should apply this analysis rule. An empty filter means this analysis rule applies to all conversations.
string conversation_filter = 5;- Specified by:
getConversationFilterBytesin interfaceAnalysisRuleOrBuilder- Returns:
- The bytes for conversationFilter.
-
setConversationFilter
Filter for the conversations that should apply this analysis rule. An empty filter means this analysis rule applies to all conversations.
string conversation_filter = 5;- Parameters:
value- The conversationFilter to set.- Returns:
- This builder for chaining.
-
clearConversationFilter
Filter for the conversations that should apply this analysis rule. An empty filter means this analysis rule applies to all conversations.
string conversation_filter = 5;- Returns:
- This builder for chaining.
-
setConversationFilterBytes
Filter for the conversations that should apply this analysis rule. An empty filter means this analysis rule applies to all conversations.
string conversation_filter = 5;- Parameters:
value- The bytes for conversationFilter to set.- Returns:
- This builder for chaining.
-
hasAnnotatorSelector
public boolean hasAnnotatorSelector()Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter. If not specified, NO annotators will be run.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 6;- Specified by:
hasAnnotatorSelectorin interfaceAnalysisRuleOrBuilder- Returns:
- Whether the annotatorSelector field is set.
-
getAnnotatorSelector
Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter. If not specified, NO annotators will be run.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 6;- Specified by:
getAnnotatorSelectorin interfaceAnalysisRuleOrBuilder- Returns:
- The annotatorSelector.
-
setAnnotatorSelector
Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter. If not specified, NO annotators will be run.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 6; -
setAnnotatorSelector
Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter. If not specified, NO annotators will be run.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 6; -
mergeAnnotatorSelector
Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter. If not specified, NO annotators will be run.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 6; -
clearAnnotatorSelector
Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter. If not specified, NO annotators will be run.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 6; -
getAnnotatorSelectorBuilder
Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter. If not specified, NO annotators will be run.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 6; -
getAnnotatorSelectorOrBuilder
Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter. If not specified, NO annotators will be run.
.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 6;- Specified by:
getAnnotatorSelectorOrBuilderin interfaceAnalysisRuleOrBuilder
-
getAnalysisPercentage
public double getAnalysisPercentage()Percentage of conversations that we should apply this analysis setting automatically, between [0, 1]. For example, 0.1 means 10%. Conversations are sampled in a determenestic way. The original runtime_percentage & upload percentage will be replaced by defining filters on the conversation.
double analysis_percentage = 7;- Specified by:
getAnalysisPercentagein interfaceAnalysisRuleOrBuilder- Returns:
- The analysisPercentage.
-
setAnalysisPercentage
Percentage of conversations that we should apply this analysis setting automatically, between [0, 1]. For example, 0.1 means 10%. Conversations are sampled in a determenestic way. The original runtime_percentage & upload percentage will be replaced by defining filters on the conversation.
double analysis_percentage = 7;- Parameters:
value- The analysisPercentage to set.- Returns:
- This builder for chaining.
-
clearAnalysisPercentage
Percentage of conversations that we should apply this analysis setting automatically, between [0, 1]. For example, 0.1 means 10%. Conversations are sampled in a determenestic way. The original runtime_percentage & upload percentage will be replaced by defining filters on the conversation.
double analysis_percentage = 7;- Returns:
- This builder for chaining.
-
getActive
public boolean getActive()If true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a draft.
bool active = 8;- Specified by:
getActivein interfaceAnalysisRuleOrBuilder- Returns:
- The active.
-
setActive
If true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a draft.
bool active = 8;- Parameters:
value- The active to set.- Returns:
- This builder for chaining.
-
clearActive
If true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a draft.
bool active = 8;- Returns:
- This builder for chaining.
-