public final class AnalysisRule extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
AnalysisRule.Builder
The CCAI Insights project wide analysis rule.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE_FIELD_NUMBER |
static int |
ANALYSIS_PERCENTAGE_FIELD_NUMBER |
static int |
ANNOTATOR_SELECTOR_FIELD_NUMBER |
static int |
CONVERSATION_FILTER_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getActive()
If true, apply this rule to conversations.
|
double |
getAnalysisPercentage()
Percentage of conversations that we should apply this analysis setting
automatically, between [0, 1].
|
AnnotatorSelector |
getAnnotatorSelector()
Selector of annotators to run and the phrase matchers to use for
conversations that matches the conversation_filter.
|
AnnotatorSelectorOrBuilder |
getAnnotatorSelectorOrBuilder()
Selector of annotators to run and the phrase matchers to use for
conversations that matches the conversation_filter.
|
String |
getConversationFilter()
Filter for the conversations that should apply this analysis
rule.
|
com.google.protobuf.ByteString |
getConversationFilterBytes()
Filter for the conversations that should apply this analysis
rule.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static AnalysisRule |
getDefaultInstance() |
AnalysisRule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
Display Name of the analysis rule.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Display Name of the analysis rule.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
com.google.protobuf.Parser<AnalysisRule> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasAnnotatorSelector()
Selector of annotators to run and the phrase matchers to use for
conversations that matches the conversation_filter.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasDisplayName()
Display Name of the analysis rule.
|
int |
hashCode() |
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AnalysisRule.Builder |
newBuilder() |
static AnalysisRule.Builder |
newBuilder(AnalysisRule prototype) |
AnalysisRule.Builder |
newBuilderForType() |
protected AnalysisRule.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AnalysisRule |
parseDelimitedFrom(InputStream input) |
static AnalysisRule |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnalysisRule |
parseFrom(byte[] data) |
static AnalysisRule |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnalysisRule |
parseFrom(ByteBuffer data) |
static AnalysisRule |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnalysisRule |
parseFrom(com.google.protobuf.ByteString data) |
static AnalysisRule |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnalysisRule |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AnalysisRule |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnalysisRule |
parseFrom(InputStream input) |
static AnalysisRule |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AnalysisRule> |
parser() |
AnalysisRule.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int CONVERSATION_FILTER_FIELD_NUMBER
public static final int ANNOTATOR_SELECTOR_FIELD_NUMBER
public static final int ANALYSIS_PERCENTAGE_FIELD_NUMBER
public static final int ACTIVE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String 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];getName in interface AnalysisRuleOrBuilderpublic 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];getNameBytes in interface AnalysisRuleOrBuilderpublic 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];
hasCreateTime in interface AnalysisRuleOrBuilderpublic 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];
getCreateTime in interface AnalysisRuleOrBuilderpublic 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];
getCreateTimeOrBuilder in interface AnalysisRuleOrBuilderpublic 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];
hasUpdateTime in interface AnalysisRuleOrBuilderpublic 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];
getUpdateTime in interface AnalysisRuleOrBuilderpublic 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];
getUpdateTimeOrBuilder in interface AnalysisRuleOrBuilderpublic boolean hasDisplayName()
Display Name of the analysis rule.
optional string display_name = 4;hasDisplayName in interface AnalysisRuleOrBuilderpublic String getDisplayName()
Display Name of the analysis rule.
optional string display_name = 4;getDisplayName in interface AnalysisRuleOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Display Name of the analysis rule.
optional string display_name = 4;getDisplayNameBytes in interface AnalysisRuleOrBuilderpublic String 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;getConversationFilter in interface AnalysisRuleOrBuilderpublic 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;getConversationFilterBytes in interface AnalysisRuleOrBuilderpublic 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;hasAnnotatorSelector in interface AnalysisRuleOrBuilderpublic AnnotatorSelector 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;getAnnotatorSelector in interface AnalysisRuleOrBuilderpublic AnnotatorSelectorOrBuilder 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;getAnnotatorSelectorOrBuilder in interface AnalysisRuleOrBuilderpublic 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;getAnalysisPercentage in interface AnalysisRuleOrBuilderpublic boolean getActive()
If true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a draft.
bool active = 8;getActive in interface AnalysisRuleOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AnalysisRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnalysisRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnalysisRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnalysisRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnalysisRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnalysisRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnalysisRule parseFrom(InputStream input) throws IOException
IOExceptionpublic static AnalysisRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnalysisRule parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AnalysisRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnalysisRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AnalysisRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AnalysisRule.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AnalysisRule.Builder newBuilder()
public static AnalysisRule.Builder newBuilder(AnalysisRule prototype)
public AnalysisRule.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AnalysisRule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AnalysisRule getDefaultInstance()
public static com.google.protobuf.Parser<AnalysisRule> parser()
public com.google.protobuf.Parser<AnalysisRule> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AnalysisRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.