Class PhraseMatchData.Builder (2.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PhraseMatchData build()
Returns
TypeDescription
PhraseMatchData

buildPartial()

public PhraseMatchData buildPartial()
Returns
TypeDescription
PhraseMatchData

clear()

public PhraseMatchData.Builder clear()
Returns
TypeDescription
PhraseMatchData.Builder
Overrides

clearDisplayName()

public PhraseMatchData.Builder clearDisplayName()

The human-readable name of the phrase matcher.

string display_name = 2;

Returns
TypeDescription
PhraseMatchData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PhraseMatchData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PhraseMatchData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PhraseMatchData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PhraseMatchData.Builder
Overrides

clearPhraseMatcher()

public PhraseMatchData.Builder clearPhraseMatcher()

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

string phrase_matcher = 1;

Returns
TypeDescription
PhraseMatchData.Builder

This builder for chaining.

clone()

public PhraseMatchData.Builder clone()
Returns
TypeDescription
PhraseMatchData.Builder
Overrides

getDefaultInstanceForType()

public PhraseMatchData getDefaultInstanceForType()
Returns
TypeDescription
PhraseMatchData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The human-readable name of the phrase matcher.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The human-readable name of the phrase matcher.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getPhraseMatcher()

public String getPhraseMatcher()

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

string phrase_matcher = 1;

Returns
TypeDescription
String

The phraseMatcher.

getPhraseMatcherBytes()

public ByteString getPhraseMatcherBytes()

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

string phrase_matcher = 1;

Returns
TypeDescription
ByteString

The bytes for phraseMatcher.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PhraseMatchData other)

public PhraseMatchData.Builder mergeFrom(PhraseMatchData other)
Parameter
NameDescription
otherPhraseMatchData
Returns
TypeDescription
PhraseMatchData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PhraseMatchData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PhraseMatchData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatchData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
PhraseMatchData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The phraseMatcher to set.

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

The bytes for phraseMatcher to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PhraseMatchData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatchData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PhraseMatchData.Builder
Overrides