Class CompanionSuggestion.Guidance (4.105.0)

public static final class CompanionSuggestion.Guidance extends GeneratedMessage implements CompanionSuggestion.GuidanceOrBuilder

Represents guidance for companion suggestion.

Protobuf type google.cloud.dialogflow.v2.CompanionSuggestion.Guidance

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CompanionSuggestion.Guidance

Static Fields

EXPLANATION_FIELD_NUMBER

public static final int EXPLANATION_FIELD_NUMBER
Field Value
Type Description
int

GROUNDING_METADATA_FIELD_NUMBER

public static final int GROUNDING_METADATA_FIELD_NUMBER
Field Value
Type Description
int

INSTRUCTION_SOURCE_FIELD_NUMBER

public static final int INSTRUCTION_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

KNOWLEDGE_SOURCES_FIELD_NUMBER

public static final int KNOWLEDGE_SOURCES_FIELD_NUMBER
Field Value
Type Description
int

SUGGESTED_ACTION_FIELD_NUMBER

public static final int SUGGESTED_ACTION_FIELD_NUMBER
Field Value
Type Description
int

SUGGESTED_REPLY_FIELD_NUMBER

public static final int SUGGESTED_REPLY_FIELD_NUMBER
Field Value
Type Description
int

TOOL_CALLS_FIELD_NUMBER

public static final int TOOL_CALLS_FIELD_NUMBER
Field Value
Type Description
int

TRIGGERING_TOOL_CALL_ANSWER_RECORDS_FIELD_NUMBER

public static final int TRIGGERING_TOOL_CALL_ANSWER_RECORDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CompanionSuggestion.Guidance getDefaultInstance()
Returns
Type Description
CompanionSuggestion.Guidance

getDescriptor()

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

newBuilder()

public static CompanionSuggestion.Guidance.Builder newBuilder()
Returns
Type Description
CompanionSuggestion.Guidance.Builder

newBuilder(CompanionSuggestion.Guidance prototype)

public static CompanionSuggestion.Guidance.Builder newBuilder(CompanionSuggestion.Guidance prototype)
Parameter
Name Description
prototype CompanionSuggestion.Guidance
Returns
Type Description
CompanionSuggestion.Guidance.Builder

parseDelimitedFrom(InputStream input)

public static CompanionSuggestion.Guidance parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CompanionSuggestion.Guidance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CompanionSuggestion.Guidance parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CompanionSuggestion.Guidance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CompanionSuggestion.Guidance parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CompanionSuggestion.Guidance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CompanionSuggestion.Guidance parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CompanionSuggestion.Guidance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CompanionSuggestion.Guidance parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CompanionSuggestion.Guidance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CompanionSuggestion.Guidance parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CompanionSuggestion.Guidance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompanionSuggestion.Guidance
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CompanionSuggestion.Guidance> parser()
Returns
Type Description
Parser<Guidance>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CompanionSuggestion.Guidance getDefaultInstanceForType()
Returns
Type Description
CompanionSuggestion.Guidance

getExplanation()

public String getExplanation()

Optional. A brief explanation of why the action is suggested.

string explanation = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The explanation.

getExplanationBytes()

public ByteString getExplanationBytes()

Optional. A brief explanation of why the action is suggested.

string explanation = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for explanation.

getGroundingMetadata()

public GroundingMetadata getGroundingMetadata()

Optional. Grounding metadata for the generated guidance.

optional .google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GroundingMetadata

The groundingMetadata.

getGroundingMetadataOrBuilder()

public GroundingMetadataOrBuilder getGroundingMetadataOrBuilder()

Optional. Grounding metadata for the generated guidance.

optional .google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GroundingMetadataOrBuilder

getInstructionSource()

public GuidanceInstruction getInstructionSource()

Guidance instruction source.

.google.cloud.dialogflow.v2.GuidanceInstruction instruction_source = 3;

Returns
Type Description
GuidanceInstruction

The instructionSource.

getInstructionSourceOrBuilder()

public GuidanceInstructionOrBuilder getInstructionSourceOrBuilder()

Guidance instruction source.

.google.cloud.dialogflow.v2.GuidanceInstruction instruction_source = 3;

Returns
Type Description
GuidanceInstructionOrBuilder

getKnowledgeSources(int index)

public CompanionSuggestion.Guidance.KnowledgeSource getKnowledgeSources(int index)

Knowledge sources.

repeated .google.cloud.dialogflow.v2.CompanionSuggestion.Guidance.KnowledgeSource knowledge_sources = 4;

Parameter
Name Description
index int
Returns
Type Description
CompanionSuggestion.Guidance.KnowledgeSource

getKnowledgeSourcesCount()

public int getKnowledgeSourcesCount()

Knowledge sources.

repeated .google.cloud.dialogflow.v2.CompanionSuggestion.Guidance.KnowledgeSource knowledge_sources = 4;

Returns
Type Description
int

getKnowledgeSourcesList()

public List<CompanionSuggestion.Guidance.KnowledgeSource> getKnowledgeSourcesList()

Knowledge sources.

repeated .google.cloud.dialogflow.v2.CompanionSuggestion.Guidance.KnowledgeSource knowledge_sources = 4;

Returns
Type Description
List<KnowledgeSource>

getKnowledgeSourcesOrBuilder(int index)

public CompanionSuggestion.Guidance.KnowledgeSourceOrBuilder getKnowledgeSourcesOrBuilder(int index)

Knowledge sources.

repeated .google.cloud.dialogflow.v2.CompanionSuggestion.Guidance.KnowledgeSource knowledge_sources = 4;

Parameter
Name Description
index int
Returns
Type Description
CompanionSuggestion.Guidance.KnowledgeSourceOrBuilder

getKnowledgeSourcesOrBuilderList()

public List<? extends CompanionSuggestion.Guidance.KnowledgeSourceOrBuilder> getKnowledgeSourcesOrBuilderList()

Knowledge sources.

repeated .google.cloud.dialogflow.v2.CompanionSuggestion.Guidance.KnowledgeSource knowledge_sources = 4;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.CompanionSuggestion.Guidance.KnowledgeSourceOrBuilder>

getParserForType()

public Parser<CompanionSuggestion.Guidance> getParserForType()
Returns
Type Description
Parser<Guidance>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSuggestedAction()

public String getSuggestedAction()

Suggested action to human agent. For example, "Ask the customer for their shipping address" or "Create a new case for the customer".

string suggested_action = 2;

Returns
Type Description
String

The suggestedAction.

getSuggestedActionBytes()

public ByteString getSuggestedActionBytes()

Suggested action to human agent. For example, "Ask the customer for their shipping address" or "Create a new case for the customer".

string suggested_action = 2;

Returns
Type Description
ByteString

The bytes for suggestedAction.

getSuggestedReply()

public String getSuggestedReply()

Suggested reply for the agent to respond to the customer.

string suggested_reply = 1;

Returns
Type Description
String

The suggestedReply.

getSuggestedReplyBytes()

public ByteString getSuggestedReplyBytes()

Suggested reply for the agent to respond to the customer.

string suggested_reply = 1;

Returns
Type Description
ByteString

The bytes for suggestedReply.

getToolCalls(int index)

public ToolCallSuggestion getToolCalls(int index)

Optional. Rich structured tool calls and their associated citations delivered directly as suggestions.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCallSuggestion

getToolCallsCount()

public int getToolCallsCount()

Optional. Rich structured tool calls and their associated citations delivered directly as suggestions.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getToolCallsList()

public List<ToolCallSuggestion> getToolCallsList()

Optional. Rich structured tool calls and their associated citations delivered directly as suggestions.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ToolCallSuggestion>

getToolCallsOrBuilder(int index)

public ToolCallSuggestionOrBuilder getToolCallsOrBuilder(int index)

Optional. Rich structured tool calls and their associated citations delivered directly as suggestions.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCallSuggestionOrBuilder

getToolCallsOrBuilderList()

public List<? extends ToolCallSuggestionOrBuilder> getToolCallsOrBuilderList()

Optional. Rich structured tool calls and their associated citations delivered directly as suggestions.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.ToolCallSuggestionOrBuilder>

getTriggeringToolCallAnswerRecords(int index)

public String getTriggeringToolCallAnswerRecords(int index)

Optional. The AnswerRecords of the tool calls that triggered this guidance. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.

repeated string triggering_tool_call_answer_records = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The triggeringToolCallAnswerRecords at the given index.

getTriggeringToolCallAnswerRecordsBytes(int index)

public ByteString getTriggeringToolCallAnswerRecordsBytes(int index)

Optional. The AnswerRecords of the tool calls that triggered this guidance. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.

repeated string triggering_tool_call_answer_records = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the triggeringToolCallAnswerRecords at the given index.

getTriggeringToolCallAnswerRecordsCount()

public int getTriggeringToolCallAnswerRecordsCount()

Optional. The AnswerRecords of the tool calls that triggered this guidance. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.

repeated string triggering_tool_call_answer_records = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of triggeringToolCallAnswerRecords.

getTriggeringToolCallAnswerRecordsList()

public ProtocolStringList getTriggeringToolCallAnswerRecordsList()

Optional. The AnswerRecords of the tool calls that triggered this guidance. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.

repeated string triggering_tool_call_answer_records = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the triggeringToolCallAnswerRecords.

hasGroundingMetadata()

public boolean hasGroundingMetadata()

Optional. Grounding metadata for the generated guidance.

optional .google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the groundingMetadata field is set.

hasInstructionSource()

public boolean hasInstructionSource()

Guidance instruction source.

.google.cloud.dialogflow.v2.GuidanceInstruction instruction_source = 3;

Returns
Type Description
boolean

Whether the instructionSource field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CompanionSuggestion.Guidance.Builder newBuilderForType()
Returns
Type Description
CompanionSuggestion.Guidance.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected CompanionSuggestion.Guidance.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CompanionSuggestion.Guidance.Builder
Overrides

toBuilder()

public CompanionSuggestion.Guidance.Builder toBuilder()
Returns
Type Description
CompanionSuggestion.Guidance.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException