public final class SmartComposeSuggestionData extends GeneratedMessageV3 implements SmartComposeSuggestionDataOrBuilder
Agent Assist Smart Compose suggestion data.
Protobuf type google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData
Static Fields
public static final int CONFIDENCE_SCORE_FIELD_NUMBER
Field Value
public static final int METADATA_FIELD_NUMBER
Field Value
public static final int QUERY_RECORD_FIELD_NUMBER
Field Value
public static final int SUGGESTION_FIELD_NUMBER
Field Value
Static Methods
public static SmartComposeSuggestionData getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static SmartComposeSuggestionData.Builder newBuilder()
Returns
public static SmartComposeSuggestionData.Builder newBuilder(SmartComposeSuggestionData prototype)
Parameter
Returns
public static SmartComposeSuggestionData parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SmartComposeSuggestionData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SmartComposeSuggestionData parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static SmartComposeSuggestionData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SmartComposeSuggestionData parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static SmartComposeSuggestionData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SmartComposeSuggestionData parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SmartComposeSuggestionData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SmartComposeSuggestionData parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SmartComposeSuggestionData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SmartComposeSuggestionData parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static SmartComposeSuggestionData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<SmartComposeSuggestionData> parser()
Returns
Methods
public boolean containsMetadata(String key)
Map that contains metadata about the Smart Compose suggestion and the
document from which it originates.
map<string, string> metadata = 3;
Parameter
Returns
public boolean equals(Object obj)
Parameter
Returns
Overrides
public double getConfidenceScore()
The system's confidence score that this suggestion is a good match for this
conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely
certain).
double confidence_score = 2;
Returns
Type | Description |
double | The confidenceScore.
|
public SmartComposeSuggestionData getDefaultInstanceForType()
Returns
public Map<String,String> getMetadata()
Returns
public int getMetadataCount()
Map that contains metadata about the Smart Compose suggestion and the
document from which it originates.
map<string, string> metadata = 3;
Returns
public Map<String,String> getMetadataMap()
Map that contains metadata about the Smart Compose suggestion and the
document from which it originates.
map<string, string> metadata = 3;
Returns
public String getMetadataOrDefault(String key, String defaultValue)
Map that contains metadata about the Smart Compose suggestion and the
document from which it originates.
map<string, string> metadata = 3;
Parameters
Returns
public String getMetadataOrThrow(String key)
Map that contains metadata about the Smart Compose suggestion and the
document from which it originates.
map<string, string> metadata = 3;
Parameter
Returns
public Parser<SmartComposeSuggestionData> getParserForType()
Returns
Overrides
public String getQueryRecord()
The name of the answer record.
Format:
projects/{project}/locations/{location}/answerRecords/{answer_record}
string query_record = 4;
Returns
Type | Description |
String | The queryRecord.
|
public ByteString getQueryRecordBytes()
The name of the answer record.
Format:
projects/{project}/locations/{location}/answerRecords/{answer_record}
string query_record = 4;
Returns
Type | Description |
ByteString | The bytes for queryRecord.
|
public int getSerializedSize()
Returns
Overrides
public String getSuggestion()
The content of the suggestion.
string suggestion = 1;
Returns
Type | Description |
String | The suggestion.
|
public ByteString getSuggestionBytes()
The content of the suggestion.
string suggestion = 1;
Returns
Type | Description |
ByteString | The bytes for suggestion.
|
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public SmartComposeSuggestionData.Builder newBuilderForType()
Returns
protected SmartComposeSuggestionData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public SmartComposeSuggestionData.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions