Class PhraseMatcher.Builder (2.24.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup>
Returns
TypeDescription
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
NameDescription
valuePhraseMatchRuleGroup
Returns
TypeDescription
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
NameDescription
builderForValuePhraseMatchRuleGroup.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePhraseMatchRuleGroup
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePhraseMatchRuleGroup.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PhraseMatcher.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PhraseMatcher.Builder
Overrides

build()

public PhraseMatcher build()
Returns
TypeDescription
PhraseMatcher

buildPartial()

public PhraseMatcher buildPartial()
Returns
TypeDescription
PhraseMatcher

clear()

public PhraseMatcher.Builder clear()
Returns
TypeDescription
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
TypeDescription
PhraseMatcher.Builder

clearActive()

public PhraseMatcher.Builder clearActive()

Applies the phrase matcher only when it is active.

bool active = 7;

Returns
TypeDescription
PhraseMatcher.Builder

This builder for chaining.

clearDisplayName()

public PhraseMatcher.Builder clearDisplayName()

The human-readable name of the phrase matcher.

string display_name = 5;

Returns
TypeDescription
PhraseMatcher.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PhraseMatcher.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
PhraseMatcher.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PhraseMatcher.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PhraseMatcher.Builder

This builder for chaining.

clone()

public PhraseMatcher.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getActive()

public boolean getActive()

Applies the phrase matcher only when it is active.

bool active = 7;

Returns
TypeDescription
boolean

The active.

getDefaultInstanceForType()

public PhraseMatcher getDefaultInstanceForType()
Returns
TypeDescription
PhraseMatcher

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The human-readable name of the phrase matcher.

string display_name = 5;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The human-readable name of the phrase matcher.

string display_name = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
PhraseMatcher.Builder

mergeFrom(PhraseMatcher other)

public PhraseMatcher.Builder mergeFrom(PhraseMatcher other)
Parameter
NameDescription
otherPhraseMatcher
Returns
TypeDescription
PhraseMatcher.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PhraseMatcher.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PhraseMatcher.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PhraseMatcher.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
PhraseMatcher.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatcher.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
PhraseMatcher.Builder

setActive(boolean value)

public PhraseMatcher.Builder setActive(boolean value)

Applies the phrase matcher only when it is active.

bool active = 7;

Parameter
NameDescription
valueboolean

The active to set.

Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
PhraseMatcher.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PhraseMatcher.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePhraseMatchRuleGroup
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePhraseMatchRuleGroup.Builder
Returns
TypeDescription
PhraseMatcher.Builder

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

public PhraseMatcher.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The revisionId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for revisionId to set.

Returns
TypeDescription
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
NameDescription
valueConversationParticipant.Role

The roleMatch to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valuePhraseMatcher.PhraseMatcherType

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
PhraseMatcher.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatcher.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The versionTag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for versionTag to set.

Returns
TypeDescription
PhraseMatcher.Builder

This builder for chaining.