Class PhraseMatcher.Builder (2.45.0)

public static final class PhraseMatcher.Builder extends GeneratedMessageV3.Builder<PhraseMatcher.Builder> implements PhraseMatcherOrBuilder

The phrase matcher resource.

Protobuf type google.cloud.contactcenterinsights.v1.PhraseMatcher

Static Methods

getDescriptor()

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

Methods

addAllPhraseMatchRuleGroups(Iterable<? extends PhraseMatchRuleGroup> values)

public PhraseMatcher.Builder addAllPhraseMatchRuleGroups(Iterable<? extends PhraseMatchRuleGroup> values)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameter
Name Description
values Iterable<? extends com.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup>
Returns
Type Description
PhraseMatcher.Builder

addPhraseMatchRuleGroups(PhraseMatchRuleGroup value)

public PhraseMatcher.Builder addPhraseMatchRuleGroups(PhraseMatchRuleGroup value)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameter
Name Description
value PhraseMatchRuleGroup
Returns
Type Description
PhraseMatcher.Builder

addPhraseMatchRuleGroups(PhraseMatchRuleGroup.Builder builderForValue)

public PhraseMatcher.Builder addPhraseMatchRuleGroups(PhraseMatchRuleGroup.Builder builderForValue)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameter
Name Description
builderForValue PhraseMatchRuleGroup.Builder
Returns
Type Description
PhraseMatcher.Builder

addPhraseMatchRuleGroups(int index, PhraseMatchRuleGroup value)

public PhraseMatcher.Builder addPhraseMatchRuleGroups(int index, PhraseMatchRuleGroup value)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameters
Name Description
index int
value PhraseMatchRuleGroup
Returns
Type Description
PhraseMatcher.Builder

addPhraseMatchRuleGroups(int index, PhraseMatchRuleGroup.Builder builderForValue)

public PhraseMatcher.Builder addPhraseMatchRuleGroups(int index, PhraseMatchRuleGroup.Builder builderForValue)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameters
Name Description
index int
builderForValue PhraseMatchRuleGroup.Builder
Returns
Type Description
PhraseMatcher.Builder

addPhraseMatchRuleGroupsBuilder()

public PhraseMatchRuleGroup.Builder addPhraseMatchRuleGroupsBuilder()

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Returns
Type Description
PhraseMatchRuleGroup.Builder

addPhraseMatchRuleGroupsBuilder(int index)

public PhraseMatchRuleGroup.Builder addPhraseMatchRuleGroupsBuilder(int index)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameter
Name Description
index int
Returns
Type Description
PhraseMatchRuleGroup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PhraseMatcher.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PhraseMatcher.Builder
Overrides

build()

public PhraseMatcher build()
Returns
Type Description
PhraseMatcher

buildPartial()

public PhraseMatcher buildPartial()
Returns
Type Description
PhraseMatcher

clear()

public PhraseMatcher.Builder clear()
Returns
Type Description
PhraseMatcher.Builder
Overrides

clearActivationUpdateTime()

public PhraseMatcher.Builder clearActivationUpdateTime()

Output only. The most recent time at which the activation status was updated.

.google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PhraseMatcher.Builder

clearActive()

public PhraseMatcher.Builder clearActive()

Applies the phrase matcher only when it is active.

bool active = 7;

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

clearDisplayName()

public PhraseMatcher.Builder clearDisplayName()

The human-readable name of the phrase matcher.

string display_name = 5;

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PhraseMatcher.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PhraseMatcher.Builder
Overrides

clearName()

public PhraseMatcher.Builder clearName()

The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}

string name = 1;

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PhraseMatcher.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PhraseMatcher.Builder
Overrides

clearPhraseMatchRuleGroups()

public PhraseMatcher.Builder clearPhraseMatchRuleGroups()

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Returns
Type Description
PhraseMatcher.Builder

clearRevisionCreateTime()

public PhraseMatcher.Builder clearRevisionCreateTime()

Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.

.google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PhraseMatcher.Builder

clearRevisionId()

public PhraseMatcher.Builder clearRevisionId()

Output only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567

string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

clearRoleMatch()

public PhraseMatcher.Builder clearRoleMatch()

The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript.

.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role_match = 10;

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

clearType()

public PhraseMatcher.Builder clearType()

Required. The type of this phrase matcher.

.google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType type = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

clearUpdateTime()

public PhraseMatcher.Builder clearUpdateTime()

Output only. The most recent time at which the phrase matcher was updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PhraseMatcher.Builder

clearVersionTag()

public PhraseMatcher.Builder clearVersionTag()

The customized version tag to use for the phrase matcher. If not specified, it will default to revision_id.

string version_tag = 3;

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

clone()

public PhraseMatcher.Builder clone()
Returns
Type Description
PhraseMatcher.Builder
Overrides

getActivationUpdateTime()

public Timestamp getActivationUpdateTime()

Output only. The most recent time at which the activation status was updated.

.google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The activationUpdateTime.

getActivationUpdateTimeBuilder()

public Timestamp.Builder getActivationUpdateTimeBuilder()

Output only. The most recent time at which the activation status was updated.

.google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getActivationUpdateTimeOrBuilder()

public TimestampOrBuilder getActivationUpdateTimeOrBuilder()

Output only. The most recent time at which the activation status was updated.

.google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getActive()

public boolean getActive()

Applies the phrase matcher only when it is active.

bool active = 7;

Returns
Type Description
boolean

The active.

getDefaultInstanceForType()

public PhraseMatcher getDefaultInstanceForType()
Returns
Type Description
PhraseMatcher

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The human-readable name of the phrase matcher.

string display_name = 5;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The human-readable name of the phrase matcher.

string display_name = 5;

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getPhraseMatchRuleGroups(int index)

public PhraseMatchRuleGroup getPhraseMatchRuleGroups(int index)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameter
Name Description
index int
Returns
Type Description
PhraseMatchRuleGroup

getPhraseMatchRuleGroupsBuilder(int index)

public PhraseMatchRuleGroup.Builder getPhraseMatchRuleGroupsBuilder(int index)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameter
Name Description
index int
Returns
Type Description
PhraseMatchRuleGroup.Builder

getPhraseMatchRuleGroupsBuilderList()

public List<PhraseMatchRuleGroup.Builder> getPhraseMatchRuleGroupsBuilderList()

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Returns
Type Description
List<Builder>

getPhraseMatchRuleGroupsCount()

public int getPhraseMatchRuleGroupsCount()

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Returns
Type Description
int

getPhraseMatchRuleGroupsList()

public List<PhraseMatchRuleGroup> getPhraseMatchRuleGroupsList()

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Returns
Type Description
List<PhraseMatchRuleGroup>

getPhraseMatchRuleGroupsOrBuilder(int index)

public PhraseMatchRuleGroupOrBuilder getPhraseMatchRuleGroupsOrBuilder(int index)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameter
Name Description
index int
Returns
Type Description
PhraseMatchRuleGroupOrBuilder

getPhraseMatchRuleGroupsOrBuilderList()

public List<? extends PhraseMatchRuleGroupOrBuilder> getPhraseMatchRuleGroupsOrBuilderList()

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Returns
Type Description
List<? extends com.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroupOrBuilder>

getRevisionCreateTime()

public Timestamp getRevisionCreateTime()

Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.

.google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The revisionCreateTime.

getRevisionCreateTimeBuilder()

public Timestamp.Builder getRevisionCreateTimeBuilder()

Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.

.google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getRevisionCreateTimeOrBuilder()

public TimestampOrBuilder getRevisionCreateTimeOrBuilder()

Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.

.google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getRevisionId()

public String getRevisionId()

Output only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567

string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Output only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567

string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for revisionId.

getRoleMatch()

public ConversationParticipant.Role getRoleMatch()

The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript.

.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role_match = 10;

Returns
Type Description
ConversationParticipant.Role

The roleMatch.

getRoleMatchValue()

public int getRoleMatchValue()

The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript.

.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role_match = 10;

Returns
Type Description
int

The enum numeric value on the wire for roleMatch.

getType()

public PhraseMatcher.PhraseMatcherType getType()

Required. The type of this phrase matcher.

.google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType type = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PhraseMatcher.PhraseMatcherType

The type.

getTypeValue()

public int getTypeValue()

Required. The type of this phrase matcher.

.google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType type = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The most recent time at which the phrase matcher was updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The most recent time at which the phrase matcher was updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The most recent time at which the phrase matcher was updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVersionTag()

public String getVersionTag()

The customized version tag to use for the phrase matcher. If not specified, it will default to revision_id.

string version_tag = 3;

Returns
Type Description
String

The versionTag.

getVersionTagBytes()

public ByteString getVersionTagBytes()

The customized version tag to use for the phrase matcher. If not specified, it will default to revision_id.

string version_tag = 3;

Returns
Type Description
ByteString

The bytes for versionTag.

hasActivationUpdateTime()

public boolean hasActivationUpdateTime()

Output only. The most recent time at which the activation status was updated.

.google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the activationUpdateTime field is set.

hasRevisionCreateTime()

public boolean hasRevisionCreateTime()

Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.

.google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the revisionCreateTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The most recent time at which the phrase matcher was updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeActivationUpdateTime(Timestamp value)

public PhraseMatcher.Builder mergeActivationUpdateTime(Timestamp value)

Output only. The most recent time at which the activation status was updated.

.google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
PhraseMatcher.Builder

mergeFrom(PhraseMatcher other)

public PhraseMatcher.Builder mergeFrom(PhraseMatcher other)
Parameter
Name Description
other PhraseMatcher
Returns
Type Description
PhraseMatcher.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PhraseMatcher.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PhraseMatcher.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PhraseMatcher.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PhraseMatcher.Builder
Overrides

mergeRevisionCreateTime(Timestamp value)

public PhraseMatcher.Builder mergeRevisionCreateTime(Timestamp value)

Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.

.google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
PhraseMatcher.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatcher.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PhraseMatcher.Builder
Overrides

mergeUpdateTime(Timestamp value)

public PhraseMatcher.Builder mergeUpdateTime(Timestamp value)

Output only. The most recent time at which the phrase matcher was updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
PhraseMatcher.Builder

removePhraseMatchRuleGroups(int index)

public PhraseMatcher.Builder removePhraseMatchRuleGroups(int index)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameter
Name Description
index int
Returns
Type Description
PhraseMatcher.Builder

setActivationUpdateTime(Timestamp value)

public PhraseMatcher.Builder setActivationUpdateTime(Timestamp value)

Output only. The most recent time at which the activation status was updated.

.google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
PhraseMatcher.Builder

setActivationUpdateTime(Timestamp.Builder builderForValue)

public PhraseMatcher.Builder setActivationUpdateTime(Timestamp.Builder builderForValue)

Output only. The most recent time at which the activation status was updated.

.google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PhraseMatcher.Builder

setActive(boolean value)

public PhraseMatcher.Builder setActive(boolean value)

Applies the phrase matcher only when it is active.

bool active = 7;

Parameter
Name Description
value boolean

The active to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setDisplayName(String value)

public PhraseMatcher.Builder setDisplayName(String value)

The human-readable name of the phrase matcher.

string display_name = 5;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public PhraseMatcher.Builder setDisplayNameBytes(ByteString value)

The human-readable name of the phrase matcher.

string display_name = 5;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PhraseMatcher.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PhraseMatcher.Builder
Overrides

setName(String value)

public PhraseMatcher.Builder setName(String value)

The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PhraseMatcher.Builder setNameBytes(ByteString value)

The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setPhraseMatchRuleGroups(int index, PhraseMatchRuleGroup value)

public PhraseMatcher.Builder setPhraseMatchRuleGroups(int index, PhraseMatchRuleGroup value)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameters
Name Description
index int
value PhraseMatchRuleGroup
Returns
Type Description
PhraseMatcher.Builder

setPhraseMatchRuleGroups(int index, PhraseMatchRuleGroup.Builder builderForValue)

public PhraseMatcher.Builder setPhraseMatchRuleGroups(int index, PhraseMatchRuleGroup.Builder builderForValue)

A list of phase match rule groups that are included in this matcher.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;

Parameters
Name Description
index int
builderForValue PhraseMatchRuleGroup.Builder
Returns
Type Description
PhraseMatcher.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PhraseMatcher.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PhraseMatcher.Builder
Overrides

setRevisionCreateTime(Timestamp value)

public PhraseMatcher.Builder setRevisionCreateTime(Timestamp value)

Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.

.google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
PhraseMatcher.Builder

setRevisionCreateTime(Timestamp.Builder builderForValue)

public PhraseMatcher.Builder setRevisionCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.

.google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PhraseMatcher.Builder

setRevisionId(String value)

public PhraseMatcher.Builder setRevisionId(String value)

Output only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567

string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The revisionId to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

public PhraseMatcher.Builder setRevisionIdBytes(ByteString value)

Output only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567

string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for revisionId to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setRoleMatch(ConversationParticipant.Role value)

public PhraseMatcher.Builder setRoleMatch(ConversationParticipant.Role value)

The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript.

.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role_match = 10;

Parameter
Name Description
value ConversationParticipant.Role

The roleMatch to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setRoleMatchValue(int value)

public PhraseMatcher.Builder setRoleMatchValue(int value)

The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript.

.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role_match = 10;

Parameter
Name Description
value int

The enum numeric value on the wire for roleMatch to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setType(PhraseMatcher.PhraseMatcherType value)

public PhraseMatcher.Builder setType(PhraseMatcher.PhraseMatcherType value)

Required. The type of this phrase matcher.

.google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType type = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PhraseMatcher.PhraseMatcherType

The type to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setTypeValue(int value)

public PhraseMatcher.Builder setTypeValue(int value)

Required. The type of this phrase matcher.

.google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType type = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatcher.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PhraseMatcher.Builder
Overrides

setUpdateTime(Timestamp value)

public PhraseMatcher.Builder setUpdateTime(Timestamp value)

Output only. The most recent time at which the phrase matcher was updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
PhraseMatcher.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public PhraseMatcher.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The most recent time at which the phrase matcher was updated.

.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PhraseMatcher.Builder

setVersionTag(String value)

public PhraseMatcher.Builder setVersionTag(String value)

The customized version tag to use for the phrase matcher. If not specified, it will default to revision_id.

string version_tag = 3;

Parameter
Name Description
value String

The versionTag to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.

setVersionTagBytes(ByteString value)

public PhraseMatcher.Builder setVersionTagBytes(ByteString value)

The customized version tag to use for the phrase matcher. If not specified, it will default to revision_id.

string version_tag = 3;

Parameter
Name Description
value ByteString

The bytes for versionTag to set.

Returns
Type Description
PhraseMatcher.Builder

This builder for chaining.