Class PhraseMatchRuleGroup (2.27.0)

public final class PhraseMatchRuleGroup extends GeneratedMessageV3 implements PhraseMatchRuleGroupOrBuilder

A message representing a rule in the phrase matcher.

Protobuf type google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup

Static Fields

PHRASE_MATCH_RULES_FIELD_NUMBER

public static final int PHRASE_MATCH_RULES_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PhraseMatchRuleGroup getDefaultInstance()
Returns
TypeDescription
PhraseMatchRuleGroup

getDescriptor()

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

newBuilder()

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

newBuilder(PhraseMatchRuleGroup prototype)

public static PhraseMatchRuleGroup.Builder newBuilder(PhraseMatchRuleGroup prototype)
Parameter
NameDescription
prototypePhraseMatchRuleGroup
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PhraseMatchRuleGroup getDefaultInstanceForType()
Returns
TypeDescription
PhraseMatchRuleGroup

getParserForType()

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

getPhraseMatchRules(int index)

public PhraseMatchRule getPhraseMatchRules(int index)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseMatchRule

getPhraseMatchRulesCount()

public int getPhraseMatchRulesCount()

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Returns
TypeDescription
int

getPhraseMatchRulesList()

public List<PhraseMatchRule> getPhraseMatchRulesList()

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Returns
TypeDescription
List<PhraseMatchRule>

getPhraseMatchRulesOrBuilder(int index)

public PhraseMatchRuleOrBuilder getPhraseMatchRulesOrBuilder(int index)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseMatchRuleOrBuilder

getPhraseMatchRulesOrBuilderList()

public List<? extends PhraseMatchRuleOrBuilder> getPhraseMatchRulesOrBuilderList()

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Returns
TypeDescription
List<? extends com.google.cloud.contactcenterinsights.v1.PhraseMatchRuleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public PhraseMatchRuleGroup.PhraseMatchRuleGroupType getType()

Required. The type of this phrase match rule group.

.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PhraseMatchRuleGroup.PhraseMatchRuleGroupType

The type.

getTypeValue()

public int getTypeValue()

Required. The type of this phrase match rule group.

.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

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 PhraseMatchRuleGroup.Builder newBuilderForType()
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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