Class PhraseMatchRule (2.3.3)

public final class PhraseMatchRule extends GeneratedMessageV3 implements PhraseMatchRuleOrBuilder

The data for a phrase match rule.

Protobuf type google.cloud.contactcenterinsights.v1.PhraseMatchRule

Static Fields

CONFIG_FIELD_NUMBER

public static final int CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

NEGATED_FIELD_NUMBER

public static final int NEGATED_FIELD_NUMBER
Field Value
TypeDescription
int

QUERY_FIELD_NUMBER

public static final int QUERY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PhraseMatchRule getDefaultInstance()
Returns
TypeDescription
PhraseMatchRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PhraseMatchRule.Builder newBuilder()
Returns
TypeDescription
PhraseMatchRule.Builder

newBuilder(PhraseMatchRule prototype)

public static PhraseMatchRule.Builder newBuilder(PhraseMatchRule prototype)
Parameter
NameDescription
prototypePhraseMatchRule
Returns
TypeDescription
PhraseMatchRule.Builder

parseDelimitedFrom(InputStream input)

public static PhraseMatchRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PhraseMatchRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PhraseMatchRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PhraseMatchRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PhraseMatchRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PhraseMatchRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PhraseMatchRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PhraseMatchRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PhraseMatchRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PhraseMatchRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PhraseMatchRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PhraseMatchRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PhraseMatchRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PhraseMatchRule> parser()
Returns
TypeDescription
Parser<PhraseMatchRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getConfig()

public PhraseMatchRuleConfig getConfig()

Provides additional information about the rule that specifies how to apply the rule.

.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;

Returns
TypeDescription
PhraseMatchRuleConfig

The config.

getConfigOrBuilder()

public PhraseMatchRuleConfigOrBuilder getConfigOrBuilder()

Provides additional information about the rule that specifies how to apply the rule.

.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;

Returns
TypeDescription
PhraseMatchRuleConfigOrBuilder

getDefaultInstanceForType()

public PhraseMatchRule getDefaultInstanceForType()
Returns
TypeDescription
PhraseMatchRule

getNegated()

public boolean getNegated()

Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.

bool negated = 2;

Returns
TypeDescription
boolean

The negated.

getParserForType()

public Parser<PhraseMatchRule> getParserForType()
Returns
TypeDescription
Parser<PhraseMatchRule>
Overrides

getQuery()

public String getQuery()

Required. The phrase to be matched.

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The query.

getQueryBytes()

public ByteString getQueryBytes()

Required. The phrase to be matched.

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for query.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasConfig()

public boolean hasConfig()

Provides additional information about the rule that specifies how to apply the rule.

.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;

Returns
TypeDescription
boolean

Whether the config field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PhraseMatchRule.Builder newBuilderForType()
Returns
TypeDescription
PhraseMatchRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PhraseMatchRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PhraseMatchRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PhraseMatchRule.Builder toBuilder()
Returns
TypeDescription
PhraseMatchRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException