public final class AnalysisRule extends 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ACTIVE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ANALYSIS_PERCENTAGE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ANNOTATOR_SELECTOR_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int CONVERSATION_FILTER_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static AnalysisRule getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static AnalysisRule.Builder newBuilder()
public static AnalysisRule.Builder newBuilder(AnalysisRule prototype)
public static AnalysisRule parseDelimitedFrom(InputStream input)
public static AnalysisRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AnalysisRule parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static AnalysisRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnalysisRule parseFrom(ByteString data)
public static AnalysisRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnalysisRule parseFrom(CodedInputStream input)
public static AnalysisRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AnalysisRule parseFrom(InputStream input)
public static AnalysisRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AnalysisRule parseFrom(ByteBuffer data)
public static AnalysisRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<AnalysisRule> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public boolean getActive()
If true, apply this rule to conversations. Otherwise, this rule is
inactive and saved as a draft.
bool active = 8;
Returns |
Type |
Description |
boolean |
The active.
|
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;
Returns |
Type |
Description |
double |
The analysisPercentage.
|
public 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;
public 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;
public 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;
Returns |
Type |
Description |
String |
The conversationFilter.
|
public 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;
Returns |
Type |
Description |
ByteString |
The bytes for conversationFilter.
|
public 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];
Returns |
Type |
Description |
Timestamp |
The createTime.
|
public 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];
public AnalysisRule getDefaultInstanceForType()
public String getDisplayName()
Display Name of the analysis rule.
optional string display_name = 4;
Returns |
Type |
Description |
String |
The displayName.
|
public ByteString getDisplayNameBytes()
Display Name of the analysis rule.
optional string display_name = 4;
Returns |
Type |
Description |
ByteString |
The bytes for displayName.
|
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 |
Type |
Description |
String |
The name.
|
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
public Parser<AnalysisRule> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public 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];
Returns |
Type |
Description |
Timestamp |
The updateTime.
|
public 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];
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;
Returns |
Type |
Description |
boolean |
Whether the annotatorSelector field is set.
|
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];
Returns |
Type |
Description |
boolean |
Whether the createTime field is set.
|
public boolean hasDisplayName()
Display Name of the analysis rule.
optional string display_name = 4;
Returns |
Type |
Description |
boolean |
Whether the displayName field is set.
|
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];
Returns |
Type |
Description |
boolean |
Whether the updateTime field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AnalysisRule.Builder newBuilderForType()
protected AnalysisRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public AnalysisRule.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides