Class PhraseMatchData.Builder (2.83.0)

public static final class PhraseMatchData.Builder extends GeneratedMessage.Builder<PhraseMatchData.Builder> implements PhraseMatchDataOrBuilder

The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match.

Protobuf type google.cloud.contactcenterinsights.v1.PhraseMatchData

Static Methods

getDescriptor()

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

Methods

build()

public PhraseMatchData build()
Returns
Type Description
PhraseMatchData

buildPartial()

public PhraseMatchData buildPartial()
Returns
Type Description
PhraseMatchData

clear()

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

clearDisplayName()

public PhraseMatchData.Builder clearDisplayName()

The human-readable name of the phrase matcher.

string display_name = 2;

Returns
Type Description
PhraseMatchData.Builder

This builder for chaining.

clearPhraseMatcher()

public PhraseMatchData.Builder clearPhraseMatcher()

The unique identifier (the resource name) of the phrase matcher.

string phrase_matcher = 1;

Returns
Type Description
PhraseMatchData.Builder

This builder for chaining.

getDefaultInstanceForType()

public PhraseMatchData getDefaultInstanceForType()
Returns
Type Description
PhraseMatchData

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 = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The human-readable name of the phrase matcher.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getPhraseMatcher()

public String getPhraseMatcher()

The unique identifier (the resource name) of the phrase matcher.

string phrase_matcher = 1;

Returns
Type Description
String

The phraseMatcher.

getPhraseMatcherBytes()

public ByteString getPhraseMatcherBytes()

The unique identifier (the resource name) of the phrase matcher.

string phrase_matcher = 1;

Returns
Type Description
ByteString

The bytes for phraseMatcher.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PhraseMatchData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDisplayName(String value)

public PhraseMatchData.Builder setDisplayName(String value)

The human-readable name of the phrase matcher.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
PhraseMatchData.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public PhraseMatchData.Builder setDisplayNameBytes(ByteString value)

The human-readable name of the phrase matcher.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
PhraseMatchData.Builder

This builder for chaining.

setPhraseMatcher(String value)

public PhraseMatchData.Builder setPhraseMatcher(String value)

The unique identifier (the resource name) of the phrase matcher.

string phrase_matcher = 1;

Parameter
Name Description
value String

The phraseMatcher to set.

Returns
Type Description
PhraseMatchData.Builder

This builder for chaining.

setPhraseMatcherBytes(ByteString value)

public PhraseMatchData.Builder setPhraseMatcherBytes(ByteString value)

The unique identifier (the resource name) of the phrase matcher.

string phrase_matcher = 1;

Parameter
Name Description
value ByteString

The bytes for phraseMatcher to set.

Returns
Type Description
PhraseMatchData.Builder

This builder for chaining.