Class AnalysisRule (2.55.0)

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

Static Fields

ACTIVE_FIELD_NUMBER

public static final int ACTIVE_FIELD_NUMBER
Field Value
Type Description
int

ANALYSIS_PERCENTAGE_FIELD_NUMBER

public static final int ANALYSIS_PERCENTAGE_FIELD_NUMBER
Field Value
Type Description
int

ANNOTATOR_SELECTOR_FIELD_NUMBER

public static final int ANNOTATOR_SELECTOR_FIELD_NUMBER
Field Value
Type Description
int

CONVERSATION_FILTER_FIELD_NUMBER

public static final int CONVERSATION_FILTER_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AnalysisRule getDefaultInstance()
Returns
Type Description
AnalysisRule

getDescriptor()

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

newBuilder()

public static AnalysisRule.Builder newBuilder()
Returns
Type Description
AnalysisRule.Builder

newBuilder(AnalysisRule prototype)

public static AnalysisRule.Builder newBuilder(AnalysisRule prototype)
Parameter
Name Description
prototype AnalysisRule
Returns
Type Description
AnalysisRule.Builder

parseDelimitedFrom(InputStream input)

public static AnalysisRule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalysisRule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalysisRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalysisRule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AnalysisRule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AnalysisRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnalysisRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalysisRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnalysisRule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AnalysisRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnalysisRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalysisRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnalysisRule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AnalysisRule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalysisRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalysisRule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AnalysisRule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalysisRule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalysisRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalysisRule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AnalysisRule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AnalysisRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnalysisRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalysisRule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AnalysisRule> parser()
Returns
Type Description
Parser<AnalysisRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getActive()

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.

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;

Returns
Type Description
double

The analysisPercentage.

getAnnotatorSelector()

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;

Returns
Type Description
AnnotatorSelector

The annotatorSelector.

getAnnotatorSelectorOrBuilder()

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;

Returns
Type Description
AnnotatorSelectorOrBuilder

getConversationFilter()

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.

getConversationFilterBytes()

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.

getCreateTime()

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.

getCreateTimeOrBuilder()

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];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public AnalysisRule getDefaultInstanceForType()
Returns
Type Description
AnalysisRule

getDisplayName()

public String getDisplayName()

Display Name of the analysis rule.

optional string display_name = 4;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display Name of the analysis rule.

optional string display_name = 4;

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public 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];

Returns
Type Description
String

The name.

getNameBytes()

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.

getParserForType()

public Parser<AnalysisRule> getParserForType()
Returns
Type Description
Parser<AnalysisRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUpdateTime()

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.

getUpdateTimeOrBuilder()

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];

Returns
Type Description
TimestampOrBuilder

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;

Returns
Type Description
boolean

Whether the annotatorSelector field is set.

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];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDisplayName()

public boolean hasDisplayName()

Display Name of the analysis rule.

optional string display_name = 4;

Returns
Type Description
boolean

Whether the displayName field is set.

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];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AnalysisRule.Builder newBuilderForType()
Returns
Type Description
AnalysisRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnalysisRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnalysisRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AnalysisRule.Builder toBuilder()
Returns
Type Description
AnalysisRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException