Class PhraseMatchData.Builder (2.54.0)

public static final class PhraseMatchData.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatchData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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