- 1.57.0 (latest)
- 1.56.0
- 1.55.0
- 1.54.3
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.48.2
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.3
- 1.42.0
- 1.41.0
- 1.40.1
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.1
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.1
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.1
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- 0.1.0
Variables
Agent_MatchMode_name, Agent_MatchMode_value
var (
Agent_MatchMode_name = map[int32]string{
0: "MATCH_MODE_UNSPECIFIED",
1: "MATCH_MODE_HYBRID",
2: "MATCH_MODE_ML_ONLY",
}
Agent_MatchMode_value = map[string]int32{
"MATCH_MODE_UNSPECIFIED": 0,
"MATCH_MODE_HYBRID": 1,
"MATCH_MODE_ML_ONLY": 2,
}
)
Enum value maps for Agent_MatchMode.
Agent_ApiVersion_name, Agent_ApiVersion_value
var (
Agent_ApiVersion_name = map[int32]string{
0: "API_VERSION_UNSPECIFIED",
1: "API_VERSION_V1",
2: "API_VERSION_V2",
3: "API_VERSION_V2_BETA_1",
}
Agent_ApiVersion_value = map[string]int32{
"API_VERSION_UNSPECIFIED": 0,
"API_VERSION_V1": 1,
"API_VERSION_V2": 2,
"API_VERSION_V2_BETA_1": 3,
}
)
Enum value maps for Agent_ApiVersion.
Agent_Tier_name, Agent_Tier_value
var (
Agent_Tier_name = map[int32]string{
0: "TIER_UNSPECIFIED",
1: "TIER_STANDARD",
2: "TIER_ENTERPRISE",
3: "TIER_ENTERPRISE_PLUS",
}
Agent_Tier_value = map[string]int32{
"TIER_UNSPECIFIED": 0,
"TIER_STANDARD": 1,
"TIER_ENTERPRISE": 2,
"TIER_ENTERPRISE_PLUS": 3,
}
)
Enum value maps for Agent_Tier.
AnswerFeedback_CorrectnessLevel_name, AnswerFeedback_CorrectnessLevel_value
var (
AnswerFeedback_CorrectnessLevel_name = map[int32]string{
0: "CORRECTNESS_LEVEL_UNSPECIFIED",
1: "NOT_CORRECT",
2: "PARTIALLY_CORRECT",
3: "FULLY_CORRECT",
}
AnswerFeedback_CorrectnessLevel_value = map[string]int32{
"CORRECTNESS_LEVEL_UNSPECIFIED": 0,
"NOT_CORRECT": 1,
"PARTIALLY_CORRECT": 2,
"FULLY_CORRECT": 3,
}
)
Enum value maps for AnswerFeedback_CorrectnessLevel.
AgentAssistantFeedback_AnswerRelevance_name, AgentAssistantFeedback_AnswerRelevance_value
var (
AgentAssistantFeedback_AnswerRelevance_name = map[int32]string{
0: "ANSWER_RELEVANCE_UNSPECIFIED",
1: "IRRELEVANT",
2: "RELEVANT",
}
AgentAssistantFeedback_AnswerRelevance_value = map[string]int32{
"ANSWER_RELEVANCE_UNSPECIFIED": 0,
"IRRELEVANT": 1,
"RELEVANT": 2,
}
)
Enum value maps for AgentAssistantFeedback_AnswerRelevance.
AgentAssistantFeedback_DocumentCorrectness_name, AgentAssistantFeedback_DocumentCorrectness_value
var (
AgentAssistantFeedback_DocumentCorrectness_name = map[int32]string{
0: "DOCUMENT_CORRECTNESS_UNSPECIFIED",
1: "INCORRECT",
2: "CORRECT",
}
AgentAssistantFeedback_DocumentCorrectness_value = map[string]int32{
"DOCUMENT_CORRECTNESS_UNSPECIFIED": 0,
"INCORRECT": 1,
"CORRECT": 2,
}
)
Enum value maps for AgentAssistantFeedback_DocumentCorrectness.
AgentAssistantFeedback_DocumentEfficiency_name, AgentAssistantFeedback_DocumentEfficiency_value
var (
AgentAssistantFeedback_DocumentEfficiency_name = map[int32]string{
0: "DOCUMENT_EFFICIENCY_UNSPECIFIED",
1: "INEFFICIENT",
2: "EFFICIENT",
}
AgentAssistantFeedback_DocumentEfficiency_value = map[string]int32{
"DOCUMENT_EFFICIENCY_UNSPECIFIED": 0,
"INEFFICIENT": 1,
"EFFICIENT": 2,
}
)
Enum value maps for AgentAssistantFeedback_DocumentEfficiency.
AudioEncoding_name, AudioEncoding_value
var (
AudioEncoding_name = map[int32]string{
0: "AUDIO_ENCODING_UNSPECIFIED",
1: "AUDIO_ENCODING_LINEAR_16",
2: "AUDIO_ENCODING_FLAC",
3: "AUDIO_ENCODING_MULAW",
4: "AUDIO_ENCODING_AMR",
5: "AUDIO_ENCODING_AMR_WB",
6: "AUDIO_ENCODING_OGG_OPUS",
7: "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE",
}
AudioEncoding_value = map[string]int32{
"AUDIO_ENCODING_UNSPECIFIED": 0,
"AUDIO_ENCODING_LINEAR_16": 1,
"AUDIO_ENCODING_FLAC": 2,
"AUDIO_ENCODING_MULAW": 3,
"AUDIO_ENCODING_AMR": 4,
"AUDIO_ENCODING_AMR_WB": 5,
"AUDIO_ENCODING_OGG_OPUS": 6,
"AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": 7,
}
)
Enum value maps for AudioEncoding.
SpeechModelVariant_name, SpeechModelVariant_value
var (
SpeechModelVariant_name = map[int32]string{
0: "SPEECH_MODEL_VARIANT_UNSPECIFIED",
1: "USE_BEST_AVAILABLE",
2: "USE_STANDARD",
3: "USE_ENHANCED",
}
SpeechModelVariant_value = map[string]int32{
"SPEECH_MODEL_VARIANT_UNSPECIFIED": 0,
"USE_BEST_AVAILABLE": 1,
"USE_STANDARD": 2,
"USE_ENHANCED": 3,
}
)
Enum value maps for SpeechModelVariant.
SsmlVoiceGender_name, SsmlVoiceGender_value
var (
SsmlVoiceGender_name = map[int32]string{
0: "SSML_VOICE_GENDER_UNSPECIFIED",
1: "SSML_VOICE_GENDER_MALE",
2: "SSML_VOICE_GENDER_FEMALE",
3: "SSML_VOICE_GENDER_NEUTRAL",
}
SsmlVoiceGender_value = map[string]int32{
"SSML_VOICE_GENDER_UNSPECIFIED": 0,
"SSML_VOICE_GENDER_MALE": 1,
"SSML_VOICE_GENDER_FEMALE": 2,
"SSML_VOICE_GENDER_NEUTRAL": 3,
}
)
Enum value maps for SsmlVoiceGender.
OutputAudioEncoding_name, OutputAudioEncoding_value
var (
OutputAudioEncoding_name = map[int32]string{
0: "OUTPUT_AUDIO_ENCODING_UNSPECIFIED",
1: "OUTPUT_AUDIO_ENCODING_LINEAR_16",
2: "OUTPUT_AUDIO_ENCODING_MP3",
4: "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS",
3: "OUTPUT_AUDIO_ENCODING_OGG_OPUS",
5: "OUTPUT_AUDIO_ENCODING_MULAW",
}
OutputAudioEncoding_value = map[string]int32{
"OUTPUT_AUDIO_ENCODING_UNSPECIFIED": 0,
"OUTPUT_AUDIO_ENCODING_LINEAR_16": 1,
"OUTPUT_AUDIO_ENCODING_MP3": 2,
"OUTPUT_AUDIO_ENCODING_MP3_64_KBPS": 4,
"OUTPUT_AUDIO_ENCODING_OGG_OPUS": 3,
"OUTPUT_AUDIO_ENCODING_MULAW": 5,
}
)
Enum value maps for OutputAudioEncoding.
TelephonyDtmf_name, TelephonyDtmf_value
var (
TelephonyDtmf_name = map[int32]string{
0: "TELEPHONY_DTMF_UNSPECIFIED",
1: "DTMF_ONE",
2: "DTMF_TWO",
3: "DTMF_THREE",
4: "DTMF_FOUR",
5: "DTMF_FIVE",
6: "DTMF_SIX",
7: "DTMF_SEVEN",
8: "DTMF_EIGHT",
9: "DTMF_NINE",
10: "DTMF_ZERO",
11: "DTMF_A",
12: "DTMF_B",
13: "DTMF_C",
14: "DTMF_D",
15: "DTMF_STAR",
16: "DTMF_POUND",
}
TelephonyDtmf_value = map[string]int32{
"TELEPHONY_DTMF_UNSPECIFIED": 0,
"DTMF_ONE": 1,
"DTMF_TWO": 2,
"DTMF_THREE": 3,
"DTMF_FOUR": 4,
"DTMF_FIVE": 5,
"DTMF_SIX": 6,
"DTMF_SEVEN": 7,
"DTMF_EIGHT": 8,
"DTMF_NINE": 9,
"DTMF_ZERO": 10,
"DTMF_A": 11,
"DTMF_B": 12,
"DTMF_C": 13,
"DTMF_D": 14,
"DTMF_STAR": 15,
"DTMF_POUND": 16,
}
)
Enum value maps for TelephonyDtmf.
Conversation_LifecycleState_name, Conversation_LifecycleState_value
var (
Conversation_LifecycleState_name = map[int32]string{
0: "LIFECYCLE_STATE_UNSPECIFIED",
1: "IN_PROGRESS",
2: "COMPLETED",
}
Conversation_LifecycleState_value = map[string]int32{
"LIFECYCLE_STATE_UNSPECIFIED": 0,
"IN_PROGRESS": 1,
"COMPLETED": 2,
}
)
Enum value maps for Conversation_LifecycleState.
Conversation_ConversationStage_name, Conversation_ConversationStage_value
var (
Conversation_ConversationStage_name = map[int32]string{
0: "CONVERSATION_STAGE_UNSPECIFIED",
1: "VIRTUAL_AGENT_STAGE",
2: "HUMAN_ASSIST_STAGE",
}
Conversation_ConversationStage_value = map[string]int32{
"CONVERSATION_STAGE_UNSPECIFIED": 0,
"VIRTUAL_AGENT_STAGE": 1,
"HUMAN_ASSIST_STAGE": 2,
}
)
Enum value maps for Conversation_ConversationStage.
ConversationEvent_Type_name, ConversationEvent_Type_value
var (
ConversationEvent_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "CONVERSATION_STARTED",
2: "CONVERSATION_FINISHED",
3: "HUMAN_INTERVENTION_NEEDED",
5: "NEW_MESSAGE",
4: "UNRECOVERABLE_ERROR",
}
ConversationEvent_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"CONVERSATION_STARTED": 1,
"CONVERSATION_FINISHED": 2,
"HUMAN_INTERVENTION_NEEDED": 3,
"NEW_MESSAGE": 5,
"UNRECOVERABLE_ERROR": 4,
}
)
Enum value maps for ConversationEvent_Type.
ConversationModel_State_name, ConversationModel_State_value
var (
ConversationModel_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "UNDEPLOYED",
3: "DEPLOYING",
4: "DEPLOYED",
5: "UNDEPLOYING",
6: "DELETING",
7: "FAILED",
8: "PENDING",
}
ConversationModel_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"UNDEPLOYED": 2,
"DEPLOYING": 3,
"DEPLOYED": 4,
"UNDEPLOYING": 5,
"DELETING": 6,
"FAILED": 7,
"PENDING": 8,
}
)
Enum value maps for ConversationModel_State.
ConversationModel_ModelType_name, ConversationModel_ModelType_value
var (
ConversationModel_ModelType_name = map[int32]string{
0: "MODEL_TYPE_UNSPECIFIED",
2: "SMART_REPLY_DUAL_ENCODER_MODEL",
6: "SMART_REPLY_BERT_MODEL",
}
ConversationModel_ModelType_value = map[string]int32{
"MODEL_TYPE_UNSPECIFIED": 0,
"SMART_REPLY_DUAL_ENCODER_MODEL": 2,
"SMART_REPLY_BERT_MODEL": 6,
}
)
Enum value maps for ConversationModel_ModelType.
CreateConversationModelOperationMetadata_State_name, CreateConversationModelOperationMetadata_State_value
var (
CreateConversationModelOperationMetadata_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "PENDING",
2: "SUCCEEDED",
3: "FAILED",
4: "CANCELLED",
5: "CANCELLING",
6: "TRAINING",
}
CreateConversationModelOperationMetadata_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"PENDING": 1,
"SUCCEEDED": 2,
"FAILED": 3,
"CANCELLED": 4,
"CANCELLING": 5,
"TRAINING": 6,
}
)
Enum value maps for CreateConversationModelOperationMetadata_State.
CreateConversationModelEvaluationOperationMetadata_State_name, CreateConversationModelEvaluationOperationMetadata_State_value
var (
CreateConversationModelEvaluationOperationMetadata_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "INITIALIZING",
2: "RUNNING",
3: "CANCELLED",
4: "SUCCEEDED",
5: "FAILED",
}
CreateConversationModelEvaluationOperationMetadata_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"INITIALIZING": 1,
"RUNNING": 2,
"CANCELLED": 3,
"SUCCEEDED": 4,
"FAILED": 5,
}
)
Enum value maps for CreateConversationModelEvaluationOperationMetadata_State.
NotificationConfig_MessageFormat_name, NotificationConfig_MessageFormat_value
var (
NotificationConfig_MessageFormat_name = map[int32]string{
0: "MESSAGE_FORMAT_UNSPECIFIED",
1: "PROTO",
2: "JSON",
}
NotificationConfig_MessageFormat_value = map[string]int32{
"MESSAGE_FORMAT_UNSPECIFIED": 0,
"PROTO": 1,
"JSON": 2,
}
)
Enum value maps for NotificationConfig_MessageFormat.
SuggestionFeature_Type_name, SuggestionFeature_Type_value
var (
SuggestionFeature_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "ARTICLE_SUGGESTION",
2: "FAQ",
3: "SMART_REPLY",
}
SuggestionFeature_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"ARTICLE_SUGGESTION": 1,
"FAQ": 2,
"SMART_REPLY": 3,
}
)
Enum value maps for SuggestionFeature_Type.
Document_KnowledgeType_name, Document_KnowledgeType_value
var (
Document_KnowledgeType_name = map[int32]string{
0: "KNOWLEDGE_TYPE_UNSPECIFIED",
1: "FAQ",
2: "EXTRACTIVE_QA",
3: "ARTICLE_SUGGESTION",
4: "AGENT_FACING_SMART_REPLY",
}
Document_KnowledgeType_value = map[string]int32{
"KNOWLEDGE_TYPE_UNSPECIFIED": 0,
"FAQ": 1,
"EXTRACTIVE_QA": 2,
"ARTICLE_SUGGESTION": 3,
"AGENT_FACING_SMART_REPLY": 4,
}
)
Enum value maps for Document_KnowledgeType.
Document_State_name, Document_State_value
var (
Document_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "UPDATING",
4: "RELOADING",
5: "DELETING",
}
Document_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"UPDATING": 3,
"RELOADING": 4,
"DELETING": 5,
}
)
Enum value maps for Document_State.
KnowledgeOperationMetadata_State_name, KnowledgeOperationMetadata_State_value
var (
KnowledgeOperationMetadata_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "PENDING",
2: "RUNNING",
3: "DONE",
}
KnowledgeOperationMetadata_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"PENDING": 1,
"RUNNING": 2,
"DONE": 3,
}
)
Enum value maps for KnowledgeOperationMetadata_State.
EntityType_Kind_name, EntityType_Kind_value
var (
EntityType_Kind_name = map[int32]string{
0: "KIND_UNSPECIFIED",
1: "KIND_MAP",
2: "KIND_LIST",
3: "KIND_REGEXP",
}
EntityType_Kind_value = map[string]int32{
"KIND_UNSPECIFIED": 0,
"KIND_MAP": 1,
"KIND_LIST": 2,
"KIND_REGEXP": 3,
}
)
Enum value maps for EntityType_Kind.
EntityType_AutoExpansionMode_name, EntityType_AutoExpansionMode_value
var (
EntityType_AutoExpansionMode_name = map[int32]string{
0: "AUTO_EXPANSION_MODE_UNSPECIFIED",
1: "AUTO_EXPANSION_MODE_DEFAULT",
}
EntityType_AutoExpansionMode_value = map[string]int32{
"AUTO_EXPANSION_MODE_UNSPECIFIED": 0,
"AUTO_EXPANSION_MODE_DEFAULT": 1,
}
)
Enum value maps for EntityType_AutoExpansionMode.
Environment_State_name, Environment_State_value
var (
Environment_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "STOPPED",
2: "LOADING",
3: "RUNNING",
}
Environment_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"STOPPED": 1,
"LOADING": 2,
"RUNNING": 3,
}
)
Enum value maps for Environment_State.
Fulfillment_Feature_Type_name, Fulfillment_Feature_Type_value
var (
Fulfillment_Feature_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "SMALLTALK",
}
Fulfillment_Feature_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"SMALLTALK": 1,
}
)
Enum value maps for Fulfillment_Feature_Type.
IntentView_name, IntentView_value
var (
IntentView_name = map[int32]string{
0: "INTENT_VIEW_UNSPECIFIED",
1: "INTENT_VIEW_FULL",
}
IntentView_value = map[string]int32{
"INTENT_VIEW_UNSPECIFIED": 0,
"INTENT_VIEW_FULL": 1,
}
)
Enum value maps for IntentView.
Intent_WebhookState_name, Intent_WebhookState_value
var (
Intent_WebhookState_name = map[int32]string{
0: "WEBHOOK_STATE_UNSPECIFIED",
1: "WEBHOOK_STATE_ENABLED",
2: "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING",
}
Intent_WebhookState_value = map[string]int32{
"WEBHOOK_STATE_UNSPECIFIED": 0,
"WEBHOOK_STATE_ENABLED": 1,
"WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING": 2,
}
)
Enum value maps for Intent_WebhookState.
Intent_TrainingPhrase_Type_name, Intent_TrainingPhrase_Type_value
var (
Intent_TrainingPhrase_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "EXAMPLE",
2: "TEMPLATE",
}
Intent_TrainingPhrase_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"EXAMPLE": 1,
"TEMPLATE": 2,
}
)
Enum value maps for Intent_TrainingPhrase_Type.
Intent_Message_Platform_name, Intent_Message_Platform_value
var (
Intent_Message_Platform_name = map[int32]string{
0: "PLATFORM_UNSPECIFIED",
1: "FACEBOOK",
2: "SLACK",
3: "TELEGRAM",
4: "KIK",
5: "SKYPE",
6: "LINE",
7: "VIBER",
8: "ACTIONS_ON_GOOGLE",
11: "GOOGLE_HANGOUTS",
}
Intent_Message_Platform_value = map[string]int32{
"PLATFORM_UNSPECIFIED": 0,
"FACEBOOK": 1,
"SLACK": 2,
"TELEGRAM": 3,
"KIK": 4,
"SKYPE": 5,
"LINE": 6,
"VIBER": 7,
"ACTIONS_ON_GOOGLE": 8,
"GOOGLE_HANGOUTS": 11,
}
)
Enum value maps for Intent_Message_Platform.
Intent_Message_MediaContent_ResponseMediaType_name, Intent_Message_MediaContent_ResponseMediaType_value
var (
Intent_Message_MediaContent_ResponseMediaType_name = map[int32]string{
0: "RESPONSE_MEDIA_TYPE_UNSPECIFIED",
1: "AUDIO",
}
Intent_Message_MediaContent_ResponseMediaType_value = map[string]int32{
"RESPONSE_MEDIA_TYPE_UNSPECIFIED": 0,
"AUDIO": 1,
}
)
Enum value maps for Intent_Message_MediaContent_ResponseMediaType.
Intent_Message_BrowseCarouselCard_ImageDisplayOptions_name, Intent_Message_BrowseCarouselCard_ImageDisplayOptions_value
var (
Intent_Message_BrowseCarouselCard_ImageDisplayOptions_name = map[int32]string{
0: "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED",
1: "GRAY",
2: "WHITE",
3: "CROPPED",
4: "BLURRED_BACKGROUND",
}
Intent_Message_BrowseCarouselCard_ImageDisplayOptions_value = map[string]int32{
"IMAGE_DISPLAY_OPTIONS_UNSPECIFIED": 0,
"GRAY": 1,
"WHITE": 2,
"CROPPED": 3,
"BLURRED_BACKGROUND": 4,
}
)
Enum value maps for Intent_Message_BrowseCarouselCard_ImageDisplayOptions.
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint_name, Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint_value
var (
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint_name = map[int32]string{
0: "URL_TYPE_HINT_UNSPECIFIED",
1: "AMP_ACTION",
2: "AMP_CONTENT",
}
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint_value = map[string]int32{
"URL_TYPE_HINT_UNSPECIFIED": 0,
"AMP_ACTION": 1,
"AMP_CONTENT": 2,
}
)
Enum value maps for Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint.
Intent_Message_ColumnProperties_HorizontalAlignment_name, Intent_Message_ColumnProperties_HorizontalAlignment_value
var (
Intent_Message_ColumnProperties_HorizontalAlignment_name = map[int32]string{
0: "HORIZONTAL_ALIGNMENT_UNSPECIFIED",
1: "LEADING",
2: "CENTER",
3: "TRAILING",
}
Intent_Message_ColumnProperties_HorizontalAlignment_value = map[string]int32{
"HORIZONTAL_ALIGNMENT_UNSPECIFIED": 0,
"LEADING": 1,
"CENTER": 2,
"TRAILING": 3,
}
)
Enum value maps for Intent_Message_ColumnProperties_HorizontalAlignment.
Participant_Role_name, Participant_Role_value
var (
Participant_Role_name = map[int32]string{
0: "ROLE_UNSPECIFIED",
1: "HUMAN_AGENT",
2: "AUTOMATED_AGENT",
3: "END_USER",
}
Participant_Role_value = map[string]int32{
"ROLE_UNSPECIFIED": 0,
"HUMAN_AGENT": 1,
"AUTOMATED_AGENT": 2,
"END_USER": 3,
}
)
Enum value maps for Participant_Role.
AutomatedAgentReply_AutomatedAgentReplyType_name, AutomatedAgentReply_AutomatedAgentReplyType_value
var (
AutomatedAgentReply_AutomatedAgentReplyType_name = map[int32]string{
0: "AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED",
1: "PARTIAL",
2: "FINAL",
}
AutomatedAgentReply_AutomatedAgentReplyType_value = map[string]int32{
"AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED": 0,
"PARTIAL": 1,
"FINAL": 2,
}
)
Enum value maps for AutomatedAgentReply_AutomatedAgentReplyType.
StreamingRecognitionResult_MessageType_name, StreamingRecognitionResult_MessageType_value
var (
StreamingRecognitionResult_MessageType_name = map[int32]string{
0: "MESSAGE_TYPE_UNSPECIFIED",
1: "TRANSCRIPT",
2: "END_OF_SINGLE_UTTERANCE",
}
StreamingRecognitionResult_MessageType_value = map[string]int32{
"MESSAGE_TYPE_UNSPECIFIED": 0,
"TRANSCRIPT": 1,
"END_OF_SINGLE_UTTERANCE": 2,
}
)
Enum value maps for StreamingRecognitionResult_MessageType.
SessionEntityType_EntityOverrideMode_name, SessionEntityType_EntityOverrideMode_value
var (
SessionEntityType_EntityOverrideMode_name = map[int32]string{
0: "ENTITY_OVERRIDE_MODE_UNSPECIFIED",
1: "ENTITY_OVERRIDE_MODE_OVERRIDE",
2: "ENTITY_OVERRIDE_MODE_SUPPLEMENT",
}
SessionEntityType_EntityOverrideMode_value = map[string]int32{
"ENTITY_OVERRIDE_MODE_UNSPECIFIED": 0,
"ENTITY_OVERRIDE_MODE_OVERRIDE": 1,
"ENTITY_OVERRIDE_MODE_SUPPLEMENT": 2,
}
)
Enum value maps for SessionEntityType_EntityOverrideMode.
ValidationError_Severity_name, ValidationError_Severity_value
var (
ValidationError_Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "INFO",
2: "WARNING",
3: "ERROR",
4: "CRITICAL",
}
ValidationError_Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"INFO": 1,
"WARNING": 2,
"ERROR": 3,
"CRITICAL": 4,
}
)
Enum value maps for ValidationError_Severity.
Version_VersionStatus_name, Version_VersionStatus_value
var (
Version_VersionStatus_name = map[int32]string{
0: "VERSION_STATUS_UNSPECIFIED",
1: "IN_PROGRESS",
2: "READY",
3: "FAILED",
}
Version_VersionStatus_value = map[string]int32{
"VERSION_STATUS_UNSPECIFIED": 0,
"IN_PROGRESS": 1,
"READY": 2,
"FAILED": 3,
}
)
Enum value maps for Version_VersionStatus.
File_google_cloud_dialogflow_v2_agent_proto
var File_google_cloud_dialogflow_v2_agent_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_answer_record_proto
var File_google_cloud_dialogflow_v2_answer_record_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_audio_config_proto
var File_google_cloud_dialogflow_v2_audio_config_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_context_proto
var File_google_cloud_dialogflow_v2_context_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_conversation_dataset_proto
var File_google_cloud_dialogflow_v2_conversation_dataset_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_conversation_event_proto
var File_google_cloud_dialogflow_v2_conversation_event_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_conversation_model_proto
var File_google_cloud_dialogflow_v2_conversation_model_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_conversation_profile_proto
var File_google_cloud_dialogflow_v2_conversation_profile_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_conversation_proto
var File_google_cloud_dialogflow_v2_conversation_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_document_proto
var File_google_cloud_dialogflow_v2_document_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_entity_type_proto
var File_google_cloud_dialogflow_v2_entity_type_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_environment_proto
var File_google_cloud_dialogflow_v2_environment_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_fulfillment_proto
var File_google_cloud_dialogflow_v2_fulfillment_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_gcs_proto
var File_google_cloud_dialogflow_v2_gcs_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_human_agent_assistant_event_proto
var File_google_cloud_dialogflow_v2_human_agent_assistant_event_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_intent_proto
var File_google_cloud_dialogflow_v2_intent_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_knowledge_base_proto
var File_google_cloud_dialogflow_v2_knowledge_base_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_participant_proto
var File_google_cloud_dialogflow_v2_participant_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_session_entity_type_proto
var File_google_cloud_dialogflow_v2_session_entity_type_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_session_proto
var File_google_cloud_dialogflow_v2_session_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_validation_result_proto
var File_google_cloud_dialogflow_v2_validation_result_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_version_proto
var File_google_cloud_dialogflow_v2_version_proto protoreflect.FileDescriptor
File_google_cloud_dialogflow_v2_webhook_proto
var File_google_cloud_dialogflow_v2_webhook_proto protoreflect.FileDescriptor
Functions
func RegisterAgentsServer
func RegisterAgentsServer(s *grpc.Server, srv AgentsServer)
func RegisterAnswerRecordsServer
func RegisterAnswerRecordsServer(s *grpc.Server, srv AnswerRecordsServer)
func RegisterContextsServer
func RegisterContextsServer(s *grpc.Server, srv ContextsServer)
func RegisterConversationDatasetsServer
func RegisterConversationDatasetsServer(s *grpc.Server, srv ConversationDatasetsServer)
func RegisterConversationModelsServer
func RegisterConversationModelsServer(s *grpc.Server, srv ConversationModelsServer)
func RegisterConversationProfilesServer
func RegisterConversationProfilesServer(s *grpc.Server, srv ConversationProfilesServer)
func RegisterConversationsServer
func RegisterConversationsServer(s *grpc.Server, srv ConversationsServer)
func RegisterDocumentsServer
func RegisterDocumentsServer(s *grpc.Server, srv DocumentsServer)
func RegisterEntityTypesServer
func RegisterEntityTypesServer(s *grpc.Server, srv EntityTypesServer)
func RegisterEnvironmentsServer
func RegisterEnvironmentsServer(s *grpc.Server, srv EnvironmentsServer)
func RegisterFulfillmentsServer
func RegisterFulfillmentsServer(s *grpc.Server, srv FulfillmentsServer)
func RegisterIntentsServer
func RegisterIntentsServer(s *grpc.Server, srv IntentsServer)
func RegisterKnowledgeBasesServer
func RegisterKnowledgeBasesServer(s *grpc.Server, srv KnowledgeBasesServer)
func RegisterParticipantsServer
func RegisterParticipantsServer(s *grpc.Server, srv ParticipantsServer)
func RegisterSessionEntityTypesServer
func RegisterSessionEntityTypesServer(s *grpc.Server, srv SessionEntityTypesServer)
func RegisterSessionsServer
func RegisterSessionsServer(s *grpc.Server, srv SessionsServer)
func RegisterVersionsServer
func RegisterVersionsServer(s *grpc.Server, srv VersionsServer)
Agent
type Agent struct {
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
DefaultLanguageCode string `protobuf:"bytes,3,opt,name=default_language_code,json=defaultLanguageCode,proto3" json:"default_language_code,omitempty"`
SupportedLanguageCodes []string "" /* 129 byte string literal not displayed */
TimeZone string `protobuf:"bytes,5,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
AvatarUri string `protobuf:"bytes,7,opt,name=avatar_uri,json=avatarUri,proto3" json:"avatar_uri,omitempty"`
EnableLogging bool `protobuf:"varint,8,opt,name=enable_logging,json=enableLogging,proto3" json:"enable_logging,omitempty"`
MatchMode Agent_MatchMode "" /* 137 byte string literal not displayed */
ClassificationThreshold float32 "" /* 133 byte string literal not displayed */
ApiVersion Agent_ApiVersion "" /* 142 byte string literal not displayed */
Tier Agent_Tier `protobuf:"varint,15,opt,name=tier,proto3,enum=google.cloud.dialogflow.v2.Agent_Tier" json:"tier,omitempty"`
}
A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system.
For more information about agents, see the Agent guide.
func (*Agent) Descriptor
Deprecated: Use Agent.ProtoReflect.Descriptor instead.
func (*Agent) GetApiVersion
func (x *Agent) GetApiVersion() Agent_ApiVersion
func (*Agent) GetAvatarUri
func (*Agent) GetClassificationThreshold
func (*Agent) GetDefaultLanguageCode
func (*Agent) GetDescription
func (*Agent) GetDisplayName
func (*Agent) GetEnableLogging
func (*Agent) GetMatchMode
func (x *Agent) GetMatchMode() Agent_MatchMode
Deprecated: Do not use.
func (*Agent) GetParent
func (*Agent) GetSupportedLanguageCodes
func (*Agent) GetTier
func (x *Agent) GetTier() Agent_Tier
func (*Agent) GetTimeZone
func (*Agent) ProtoMessage
func (*Agent) ProtoMessage()
func (*Agent) ProtoReflect
func (x *Agent) ProtoReflect() protoreflect.Message
func (*Agent) Reset
func (x *Agent) Reset()
func (*Agent) String
AgentAssistantFeedback
type AgentAssistantFeedback struct {
AnswerRelevance AgentAssistantFeedback_AnswerRelevance "" /* 178 byte string literal not displayed */
DocumentCorrectness AgentAssistantFeedback_DocumentCorrectness "" /* 194 byte string literal not displayed */
DocumentEfficiency AgentAssistantFeedback_DocumentEfficiency "" /* 190 byte string literal not displayed */
}
Detail feedback of Agent Assist result.
func (*AgentAssistantFeedback) Descriptor
func (*AgentAssistantFeedback) Descriptor() ([]byte, []int)
Deprecated: Use AgentAssistantFeedback.ProtoReflect.Descriptor instead.
func (*AgentAssistantFeedback) GetAnswerRelevance
func (x *AgentAssistantFeedback) GetAnswerRelevance() AgentAssistantFeedback_AnswerRelevance
func (*AgentAssistantFeedback) GetDocumentCorrectness
func (x *AgentAssistantFeedback) GetDocumentCorrectness() AgentAssistantFeedback_DocumentCorrectness
func (*AgentAssistantFeedback) GetDocumentEfficiency
func (x *AgentAssistantFeedback) GetDocumentEfficiency() AgentAssistantFeedback_DocumentEfficiency
func (*AgentAssistantFeedback) ProtoMessage
func (*AgentAssistantFeedback) ProtoMessage()
func (*AgentAssistantFeedback) ProtoReflect
func (x *AgentAssistantFeedback) ProtoReflect() protoreflect.Message
func (*AgentAssistantFeedback) Reset
func (x *AgentAssistantFeedback) Reset()
func (*AgentAssistantFeedback) String
func (x *AgentAssistantFeedback) String() string
AgentAssistantFeedback_AnswerRelevance
type AgentAssistantFeedback_AnswerRelevance int32
Relevance of an answer.
AgentAssistantFeedback_ANSWER_RELEVANCE_UNSPECIFIED, AgentAssistantFeedback_IRRELEVANT, AgentAssistantFeedback_RELEVANT
const (
// Answer relevance unspecified.
AgentAssistantFeedback_ANSWER_RELEVANCE_UNSPECIFIED AgentAssistantFeedback_AnswerRelevance = 0
// Answer is irrelevant to query.
AgentAssistantFeedback_IRRELEVANT AgentAssistantFeedback_AnswerRelevance = 1
// Answer is relevant to query.
AgentAssistantFeedback_RELEVANT AgentAssistantFeedback_AnswerRelevance = 2
)
func (AgentAssistantFeedback_AnswerRelevance) Descriptor
func (AgentAssistantFeedback_AnswerRelevance) Descriptor() protoreflect.EnumDescriptor
func (AgentAssistantFeedback_AnswerRelevance) Enum
func (AgentAssistantFeedback_AnswerRelevance) EnumDescriptor
func (AgentAssistantFeedback_AnswerRelevance) EnumDescriptor() ([]byte, []int)
Deprecated: Use AgentAssistantFeedback_AnswerRelevance.Descriptor instead.
func (AgentAssistantFeedback_AnswerRelevance) Number
func (x AgentAssistantFeedback_AnswerRelevance) Number() protoreflect.EnumNumber
func (AgentAssistantFeedback_AnswerRelevance) String
func (x AgentAssistantFeedback_AnswerRelevance) String() string
func (AgentAssistantFeedback_AnswerRelevance) Type
func (AgentAssistantFeedback_AnswerRelevance) Type() protoreflect.EnumType
AgentAssistantFeedback_DocumentCorrectness
type AgentAssistantFeedback_DocumentCorrectness int32
Correctness of document.
AgentAssistantFeedback_DOCUMENT_CORRECTNESS_UNSPECIFIED, AgentAssistantFeedback_INCORRECT, AgentAssistantFeedback_CORRECT
const (
// Document correctness unspecified.
AgentAssistantFeedback_DOCUMENT_CORRECTNESS_UNSPECIFIED AgentAssistantFeedback_DocumentCorrectness = 0
// Information in document is incorrect.
AgentAssistantFeedback_INCORRECT AgentAssistantFeedback_DocumentCorrectness = 1
// Information in document is correct.
AgentAssistantFeedback_CORRECT AgentAssistantFeedback_DocumentCorrectness = 2
)
func (AgentAssistantFeedback_DocumentCorrectness) Descriptor
func (AgentAssistantFeedback_DocumentCorrectness) Descriptor() protoreflect.EnumDescriptor
func (AgentAssistantFeedback_DocumentCorrectness) Enum
func (x AgentAssistantFeedback_DocumentCorrectness) Enum() *AgentAssistantFeedback_DocumentCorrectness
func (AgentAssistantFeedback_DocumentCorrectness) EnumDescriptor
func (AgentAssistantFeedback_DocumentCorrectness) EnumDescriptor() ([]byte, []int)
Deprecated: Use AgentAssistantFeedback_DocumentCorrectness.Descriptor instead.
func (AgentAssistantFeedback_DocumentCorrectness) Number
func (x AgentAssistantFeedback_DocumentCorrectness) Number() protoreflect.EnumNumber
func (AgentAssistantFeedback_DocumentCorrectness) String
func (x AgentAssistantFeedback_DocumentCorrectness) String() string
func (AgentAssistantFeedback_DocumentCorrectness) Type
func (AgentAssistantFeedback_DocumentCorrectness) Type() protoreflect.EnumType
AgentAssistantFeedback_DocumentEfficiency
type AgentAssistantFeedback_DocumentEfficiency int32
Efficiency of document.
AgentAssistantFeedback_DOCUMENT_EFFICIENCY_UNSPECIFIED, AgentAssistantFeedback_INEFFICIENT, AgentAssistantFeedback_EFFICIENT
const (
// Document efficiency unspecified.
AgentAssistantFeedback_DOCUMENT_EFFICIENCY_UNSPECIFIED AgentAssistantFeedback_DocumentEfficiency = 0
// Document is inefficient.
AgentAssistantFeedback_INEFFICIENT AgentAssistantFeedback_DocumentEfficiency = 1
// Document is efficient.
AgentAssistantFeedback_EFFICIENT AgentAssistantFeedback_DocumentEfficiency = 2
)
func (AgentAssistantFeedback_DocumentEfficiency) Descriptor
func (AgentAssistantFeedback_DocumentEfficiency) Descriptor() protoreflect.EnumDescriptor
func (AgentAssistantFeedback_DocumentEfficiency) Enum
func (x AgentAssistantFeedback_DocumentEfficiency) Enum() *AgentAssistantFeedback_DocumentEfficiency
func (AgentAssistantFeedback_DocumentEfficiency) EnumDescriptor
func (AgentAssistantFeedback_DocumentEfficiency) EnumDescriptor() ([]byte, []int)
Deprecated: Use AgentAssistantFeedback_DocumentEfficiency.Descriptor instead.
func (AgentAssistantFeedback_DocumentEfficiency) Number
func (x AgentAssistantFeedback_DocumentEfficiency) Number() protoreflect.EnumNumber
func (AgentAssistantFeedback_DocumentEfficiency) String
func (x AgentAssistantFeedback_DocumentEfficiency) String() string
func (AgentAssistantFeedback_DocumentEfficiency) Type
func (AgentAssistantFeedback_DocumentEfficiency) Type() protoreflect.EnumType
AgentAssistantRecord
type AgentAssistantRecord struct {
// Output only. The agent assist answer.
//
// Types that are assignable to Answer:
//
// *AgentAssistantRecord_ArticleSuggestionAnswer
// *AgentAssistantRecord_FaqAnswer
Answer isAgentAssistantRecord_Answer `protobuf_oneof:"answer"`
// contains filtered or unexported fields
}
Represents a record of a human agent assist answer.
func (*AgentAssistantRecord) Descriptor
func (*AgentAssistantRecord) Descriptor() ([]byte, []int)
Deprecated: Use AgentAssistantRecord.ProtoReflect.Descriptor instead.
func (*AgentAssistantRecord) GetAnswer
func (m *AgentAssistantRecord) GetAnswer() isAgentAssistantRecord_Answer
func (*AgentAssistantRecord) GetArticleSuggestionAnswer
func (x *AgentAssistantRecord) GetArticleSuggestionAnswer() *ArticleAnswer
func (*AgentAssistantRecord) GetFaqAnswer
func (x *AgentAssistantRecord) GetFaqAnswer() *FaqAnswer
func (*AgentAssistantRecord) ProtoMessage
func (*AgentAssistantRecord) ProtoMessage()
func (*AgentAssistantRecord) ProtoReflect
func (x *AgentAssistantRecord) ProtoReflect() protoreflect.Message
func (*AgentAssistantRecord) Reset
func (x *AgentAssistantRecord) Reset()
func (*AgentAssistantRecord) String
func (x *AgentAssistantRecord) String() string
AgentAssistantRecord_ArticleSuggestionAnswer
type AgentAssistantRecord_ArticleSuggestionAnswer struct {
// Output only. The article suggestion answer.
ArticleSuggestionAnswer *ArticleAnswer `protobuf:"bytes,5,opt,name=article_suggestion_answer,json=articleSuggestionAnswer,proto3,oneof"`
}
AgentAssistantRecord_FaqAnswer
type AgentAssistantRecord_FaqAnswer struct {
// Output only. The FAQ answer.
FaqAnswer *FaqAnswer `protobuf:"bytes,6,opt,name=faq_answer,json=faqAnswer,proto3,oneof"`
}
Agent_ApiVersion
type Agent_ApiVersion int32
API version for the agent.
Agent_API_VERSION_UNSPECIFIED, Agent_API_VERSION_V1, Agent_API_VERSION_V2, Agent_API_VERSION_V2_BETA_1
const (
// Not specified.
Agent_API_VERSION_UNSPECIFIED Agent_ApiVersion = 0
// Legacy V1 API.
Agent_API_VERSION_V1 Agent_ApiVersion = 1
// V2 API.
Agent_API_VERSION_V2 Agent_ApiVersion = 2
// V2beta1 API.
Agent_API_VERSION_V2_BETA_1 Agent_ApiVersion = 3
)
func (Agent_ApiVersion) Descriptor
func (Agent_ApiVersion) Descriptor() protoreflect.EnumDescriptor
func (Agent_ApiVersion) Enum
func (x Agent_ApiVersion) Enum() *Agent_ApiVersion
func (Agent_ApiVersion) EnumDescriptor
func (Agent_ApiVersion) EnumDescriptor() ([]byte, []int)
Deprecated: Use Agent_ApiVersion.Descriptor instead.
func (Agent_ApiVersion) Number
func (x Agent_ApiVersion) Number() protoreflect.EnumNumber
func (Agent_ApiVersion) String
func (x Agent_ApiVersion) String() string
func (Agent_ApiVersion) Type
func (Agent_ApiVersion) Type() protoreflect.EnumType
Agent_MatchMode
type Agent_MatchMode int32
Match mode determines how intents are detected from user queries.
Agent_MATCH_MODE_UNSPECIFIED, Agent_MATCH_MODE_HYBRID, Agent_MATCH_MODE_ML_ONLY
const (
// Not specified.
Agent_MATCH_MODE_UNSPECIFIED Agent_MatchMode = 0
// Best for agents with a small number of examples in intents and/or wide
// use of templates syntax and composite entities.
Agent_MATCH_MODE_HYBRID Agent_MatchMode = 1
// Can be used for agents with a large number of examples in intents,
// especially the ones using @sys.any or very large custom entities.
Agent_MATCH_MODE_ML_ONLY Agent_MatchMode = 2
)
func (Agent_MatchMode) Descriptor
func (Agent_MatchMode) Descriptor() protoreflect.EnumDescriptor
func (Agent_MatchMode) Enum
func (x Agent_MatchMode) Enum() *Agent_MatchMode
func (Agent_MatchMode) EnumDescriptor
func (Agent_MatchMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use Agent_MatchMode.Descriptor instead.
func (Agent_MatchMode) Number
func (x Agent_MatchMode) Number() protoreflect.EnumNumber
func (Agent_MatchMode) String
func (x Agent_MatchMode) String() string
func (Agent_MatchMode) Type
func (Agent_MatchMode) Type() protoreflect.EnumType
Agent_Tier
type Agent_Tier int32
Represents the agent tier.
Agent_TIER_UNSPECIFIED, Agent_TIER_STANDARD, Agent_TIER_ENTERPRISE, Agent_TIER_ENTERPRISE_PLUS
const (
// Not specified. This value should never be used.
Agent_TIER_UNSPECIFIED Agent_Tier = 0
// Trial Edition, previously known as Standard Edition.
Agent_TIER_STANDARD Agent_Tier = 1
// Essentials Edition, previously known as Enterprise Essential Edition.
Agent_TIER_ENTERPRISE Agent_Tier = 2
// Essentials Edition (same as TIER_ENTERPRISE), previously known as
// Enterprise Plus Edition.
//
// Deprecated: Do not use.
Agent_TIER_ENTERPRISE_PLUS Agent_Tier = 3
)
func (Agent_Tier) Descriptor
func (Agent_Tier) Descriptor() protoreflect.EnumDescriptor
func (Agent_Tier) Enum
func (x Agent_Tier) Enum() *Agent_Tier
func (Agent_Tier) EnumDescriptor
func (Agent_Tier) EnumDescriptor() ([]byte, []int)
Deprecated: Use Agent_Tier.Descriptor instead.
func (Agent_Tier) Number
func (x Agent_Tier) Number() protoreflect.EnumNumber
func (Agent_Tier) String
func (x Agent_Tier) String() string
func (Agent_Tier) Type
func (Agent_Tier) Type() protoreflect.EnumType
AgentsClient
type AgentsClient interface {
// Retrieves the specified agent.
GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error)
// Creates/updates the specified agent.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
SetAgent(ctx context.Context, in *SetAgentRequest, opts ...grpc.CallOption) (*Agent, error)
// Deletes the specified agent.
DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Returns the list of agents.
//
// Since there is at most one conversational agent per project, this method is
// useful primarily for listing all agents across projects the caller has
// access to. One can achieve that with a wildcard project collection id "-".
// Refer to [List
// Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
SearchAgents(ctx context.Context, in *SearchAgentsRequest, opts ...grpc.CallOption) (*SearchAgentsResponse, error)
// Trains the specified agent.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`: An empty [Struct
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Exports the specified agent to a ZIP file.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`: An empty [Struct
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
// - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Imports the specified agent from a ZIP file.
//
// Uploads new intents and entity types without deleting the existing ones.
// Intents and entity types with the same name are replaced with the new
// versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft
// agent will be trained automatically (unless disabled in agent settings).
// However, once the import is done, training may not be completed yet. Please
// call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train
// explicitly.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`: An empty [Struct
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
//
// The operation only tracks when importing is complete, not when it is done
// training.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Restores the specified agent from a ZIP file.
//
// Replaces the current agent version with a new one. All the intents and
// entity types in the older version are deleted. After the restore, the
// restored draft agent will be trained automatically (unless disabled in
// agent settings). However, once the restore is done, training may not be
// completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it
// returns in order to train explicitly.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`: An empty [Struct
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
//
// The operation only tracks when restoring is complete, not when it is done
// training.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Gets agent validation result. Agent validation is performed during
// training time and is updated automatically when training is completed.
GetValidationResult(ctx context.Context, in *GetValidationResultRequest, opts ...grpc.CallOption) (*ValidationResult, error)
}
AgentsClient is the client API for Agents service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAgentsClient
func NewAgentsClient(cc grpc.ClientConnInterface) AgentsClient
AgentsServer
type AgentsServer interface {
// Retrieves the specified agent.
GetAgent(context.Context, *GetAgentRequest) (*Agent, error)
// Creates/updates the specified agent.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
SetAgent(context.Context, *SetAgentRequest) (*Agent, error)
// Deletes the specified agent.
DeleteAgent(context.Context, *DeleteAgentRequest) (*emptypb.Empty, error)
// Returns the list of agents.
//
// Since there is at most one conversational agent per project, this method is
// useful primarily for listing all agents across projects the caller has
// access to. One can achieve that with a wildcard project collection id "-".
// Refer to [List
// Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
SearchAgents(context.Context, *SearchAgentsRequest) (*SearchAgentsResponse, error)
// Trains the specified agent.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`: An empty [Struct
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
TrainAgent(context.Context, *TrainAgentRequest) (*longrunning.Operation, error)
// Exports the specified agent to a ZIP file.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`: An empty [Struct
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
// - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
ExportAgent(context.Context, *ExportAgentRequest) (*longrunning.Operation, error)
// Imports the specified agent from a ZIP file.
//
// Uploads new intents and entity types without deleting the existing ones.
// Intents and entity types with the same name are replaced with the new
// versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft
// agent will be trained automatically (unless disabled in agent settings).
// However, once the import is done, training may not be completed yet. Please
// call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train
// explicitly.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`: An empty [Struct
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
//
// The operation only tracks when importing is complete, not when it is done
// training.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
ImportAgent(context.Context, *ImportAgentRequest) (*longrunning.Operation, error)
// Restores the specified agent from a ZIP file.
//
// Replaces the current agent version with a new one. All the intents and
// entity types in the older version are deleted. After the restore, the
// restored draft agent will be trained automatically (unless disabled in
// agent settings). However, once the restore is done, training may not be
// completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it
// returns in order to train explicitly.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`: An empty [Struct
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
//
// The operation only tracks when restoring is complete, not when it is done
// training.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
RestoreAgent(context.Context, *RestoreAgentRequest) (*longrunning.Operation, error)
// Gets agent validation result. Agent validation is performed during
// training time and is updated automatically when training is completed.
GetValidationResult(context.Context, *GetValidationResultRequest) (*ValidationResult, error)
}
AgentsServer is the server API for Agents service.
AnalyzeContentRequest
type AnalyzeContentRequest struct {
// Required. The name of the participant this text comes from.
// Format: `projects/
The request message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
func (*AnalyzeContentRequest) Descriptor
func (*AnalyzeContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzeContentRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeContentRequest) GetAssistQueryParams
func (x *AnalyzeContentRequest) GetAssistQueryParams() *AssistQueryParameters
func (*AnalyzeContentRequest) GetCxParameters
func (x *AnalyzeContentRequest) GetCxParameters() *structpb.Struct
func (*AnalyzeContentRequest) GetEventInput
func (x *AnalyzeContentRequest) GetEventInput() *EventInput
func (*AnalyzeContentRequest) GetInput
func (m *AnalyzeContentRequest) GetInput() isAnalyzeContentRequest_Input
func (*AnalyzeContentRequest) GetParticipant
func (x *AnalyzeContentRequest) GetParticipant() string
func (*AnalyzeContentRequest) GetQueryParams
func (x *AnalyzeContentRequest) GetQueryParams() *QueryParameters
func (*AnalyzeContentRequest) GetReplyAudioConfig
func (x *AnalyzeContentRequest) GetReplyAudioConfig() *OutputAudioConfig
func (*AnalyzeContentRequest) GetRequestId
func (x *AnalyzeContentRequest) GetRequestId() string
func (*AnalyzeContentRequest) GetTextInput
func (x *AnalyzeContentRequest) GetTextInput() *TextInput
func (*AnalyzeContentRequest) ProtoMessage
func (*AnalyzeContentRequest) ProtoMessage()
func (*AnalyzeContentRequest) ProtoReflect
func (x *AnalyzeContentRequest) ProtoReflect() protoreflect.Message
func (*AnalyzeContentRequest) Reset
func (x *AnalyzeContentRequest) Reset()
func (*AnalyzeContentRequest) String
func (x *AnalyzeContentRequest) String() string
AnalyzeContentRequest_EventInput
type AnalyzeContentRequest_EventInput struct {
// An input event to send to Dialogflow.
EventInput *EventInput `protobuf:"bytes,8,opt,name=event_input,json=eventInput,proto3,oneof"`
}
AnalyzeContentRequest_TextInput
type AnalyzeContentRequest_TextInput struct {
// The natural language text to be processed.
TextInput *TextInput `protobuf:"bytes,6,opt,name=text_input,json=textInput,proto3,oneof"`
}
AnalyzeContentResponse
type AnalyzeContentResponse struct {
ReplyText string `protobuf:"bytes,1,opt,name=reply_text,json=replyText,proto3" json:"reply_text,omitempty"`
ReplyAudio *OutputAudio `protobuf:"bytes,2,opt,name=reply_audio,json=replyAudio,proto3" json:"reply_audio,omitempty"`
AutomatedAgentReply *AutomatedAgentReply `protobuf:"bytes,3,opt,name=automated_agent_reply,json=automatedAgentReply,proto3" json:"automated_agent_reply,omitempty"`
Message *Message `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
HumanAgentSuggestionResults []*SuggestionResult "" /* 146 byte string literal not displayed */
EndUserSuggestionResults []*SuggestionResult "" /* 137 byte string literal not displayed */
DtmfParameters *DtmfParameters `protobuf:"bytes,9,opt,name=dtmf_parameters,json=dtmfParameters,proto3" json:"dtmf_parameters,omitempty"`
}
The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
func (*AnalyzeContentResponse) Descriptor
func (*AnalyzeContentResponse) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzeContentResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeContentResponse) GetAutomatedAgentReply
func (x *AnalyzeContentResponse) GetAutomatedAgentReply() *AutomatedAgentReply
func (*AnalyzeContentResponse) GetDtmfParameters
func (x *AnalyzeContentResponse) GetDtmfParameters() *DtmfParameters
func (*AnalyzeContentResponse) GetEndUserSuggestionResults
func (x *AnalyzeContentResponse) GetEndUserSuggestionResults() []*SuggestionResult
func (*AnalyzeContentResponse) GetHumanAgentSuggestionResults
func (x *AnalyzeContentResponse) GetHumanAgentSuggestionResults() []*SuggestionResult
func (*AnalyzeContentResponse) GetMessage
func (x *AnalyzeContentResponse) GetMessage() *Message
func (*AnalyzeContentResponse) GetReplyAudio
func (x *AnalyzeContentResponse) GetReplyAudio() *OutputAudio
func (*AnalyzeContentResponse) GetReplyText
func (x *AnalyzeContentResponse) GetReplyText() string
func (*AnalyzeContentResponse) ProtoMessage
func (*AnalyzeContentResponse) ProtoMessage()
func (*AnalyzeContentResponse) ProtoReflect
func (x *AnalyzeContentResponse) ProtoReflect() protoreflect.Message
func (*AnalyzeContentResponse) Reset
func (x *AnalyzeContentResponse) Reset()
func (*AnalyzeContentResponse) String
func (x *AnalyzeContentResponse) String() string
AnnotatedMessagePart
type AnnotatedMessagePart struct {
// A part of a message possibly annotated with an entity.
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// The [Dialogflow system entity
// type](https://cloud.google.com/dialogflow/docs/reference/system-entities)
// of this message part. If this is empty, Dialogflow could not annotate the
// phrase part with a system entity.
EntityType string `protobuf:"bytes,2,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"`
// The [Dialogflow system entity formatted value
// ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
// this message part. For example for a system entity of type
// `@sys.unit-currency`, this may contain:
// //
// {
// "amount": 5,
// "currency": "USD"
// }
//
//
Represents a part of a message possibly annotated with an entity. The part can be an entity or purely a part of the message between two entities or message start/end.
func (*AnnotatedMessagePart) Descriptor
func (*AnnotatedMessagePart) Descriptor() ([]byte, []int)
Deprecated: Use AnnotatedMessagePart.ProtoReflect.Descriptor instead.
func (*AnnotatedMessagePart) GetEntityType
func (x *AnnotatedMessagePart) GetEntityType() string
func (*AnnotatedMessagePart) GetFormattedValue
func (x *AnnotatedMessagePart) GetFormattedValue() *structpb.Value
func (*AnnotatedMessagePart) GetText
func (x *AnnotatedMessagePart) GetText() string
func (*AnnotatedMessagePart) ProtoMessage
func (*AnnotatedMessagePart) ProtoMessage()
func (*AnnotatedMessagePart) ProtoReflect
func (x *AnnotatedMessagePart) ProtoReflect() protoreflect.Message
func (*AnnotatedMessagePart) Reset
func (x *AnnotatedMessagePart) Reset()
func (*AnnotatedMessagePart) String
func (x *AnnotatedMessagePart) String() string
AnswerFeedback
type AnswerFeedback struct {
CorrectnessLevel AnswerFeedback_CorrectnessLevel "" /* 174 byte string literal not displayed */
DetailFeedback isAnswerFeedback_DetailFeedback `protobuf_oneof:"detail_feedback"`
Clicked bool `protobuf:"varint,3,opt,name=clicked,proto3" json:"clicked,omitempty"`
ClickTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=click_time,json=clickTime,proto3" json:"click_time,omitempty"`
Displayed bool `protobuf:"varint,4,opt,name=displayed,proto3" json:"displayed,omitempty"`
DisplayTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=display_time,json=displayTime,proto3" json:"display_time,omitempty"`
}
Represents feedback the customer has about the quality & correctness of a certain answer in a conversation.
func (*AnswerFeedback) Descriptor
func (*AnswerFeedback) Descriptor() ([]byte, []int)
Deprecated: Use AnswerFeedback.ProtoReflect.Descriptor instead.
func (*AnswerFeedback) GetAgentAssistantDetailFeedback
func (x *AnswerFeedback) GetAgentAssistantDetailFeedback() *AgentAssistantFeedback
func (*AnswerFeedback) GetClickTime
func (x *AnswerFeedback) GetClickTime() *timestamppb.Timestamp
func (*AnswerFeedback) GetClicked
func (x *AnswerFeedback) GetClicked() bool
func (*AnswerFeedback) GetCorrectnessLevel
func (x *AnswerFeedback) GetCorrectnessLevel() AnswerFeedback_CorrectnessLevel
func (*AnswerFeedback) GetDetailFeedback
func (m *AnswerFeedback) GetDetailFeedback() isAnswerFeedback_DetailFeedback
func (*AnswerFeedback) GetDisplayTime
func (x *AnswerFeedback) GetDisplayTime() *timestamppb.Timestamp
func (*AnswerFeedback) GetDisplayed
func (x *AnswerFeedback) GetDisplayed() bool
func (*AnswerFeedback) ProtoMessage
func (*AnswerFeedback) ProtoMessage()
func (*AnswerFeedback) ProtoReflect
func (x *AnswerFeedback) ProtoReflect() protoreflect.Message
func (*AnswerFeedback) Reset
func (x *AnswerFeedback) Reset()
func (*AnswerFeedback) String
func (x *AnswerFeedback) String() string
AnswerFeedback_AgentAssistantDetailFeedback
type AnswerFeedback_AgentAssistantDetailFeedback struct {
// Detail feedback of agent assist suggestions.
AgentAssistantDetailFeedback *AgentAssistantFeedback `protobuf:"bytes,2,opt,name=agent_assistant_detail_feedback,json=agentAssistantDetailFeedback,proto3,oneof"`
}
AnswerFeedback_CorrectnessLevel
type AnswerFeedback_CorrectnessLevel int32
The correctness level of an answer.
AnswerFeedback_CORRECTNESS_LEVEL_UNSPECIFIED, AnswerFeedback_NOT_CORRECT, AnswerFeedback_PARTIALLY_CORRECT, AnswerFeedback_FULLY_CORRECT
const (
// Correctness level unspecified.
AnswerFeedback_CORRECTNESS_LEVEL_UNSPECIFIED AnswerFeedback_CorrectnessLevel = 0
// Answer is totally wrong.
AnswerFeedback_NOT_CORRECT AnswerFeedback_CorrectnessLevel = 1
// Answer is partially correct.
AnswerFeedback_PARTIALLY_CORRECT AnswerFeedback_CorrectnessLevel = 2
// Answer is fully correct.
AnswerFeedback_FULLY_CORRECT AnswerFeedback_CorrectnessLevel = 3
)
func (AnswerFeedback_CorrectnessLevel) Descriptor
func (AnswerFeedback_CorrectnessLevel) Descriptor() protoreflect.EnumDescriptor
func (AnswerFeedback_CorrectnessLevel) Enum
func (x AnswerFeedback_CorrectnessLevel) Enum() *AnswerFeedback_CorrectnessLevel
func (AnswerFeedback_CorrectnessLevel) EnumDescriptor
func (AnswerFeedback_CorrectnessLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use AnswerFeedback_CorrectnessLevel.Descriptor instead.
func (AnswerFeedback_CorrectnessLevel) Number
func (x AnswerFeedback_CorrectnessLevel) Number() protoreflect.EnumNumber
func (AnswerFeedback_CorrectnessLevel) String
func (x AnswerFeedback_CorrectnessLevel) String() string
func (AnswerFeedback_CorrectnessLevel) Type
func (AnswerFeedback_CorrectnessLevel) Type() protoreflect.EnumType
AnswerRecord
type AnswerRecord struct {
// The unique identifier of this answer record.
// Format: `projects/
Answer records are records to manage answer history and feedbacks for Dialogflow.
Currently, answer record includes:
- human agent assistant article suggestion
- human agent assistant faq article
It doesn't include:
DetectIntent
intent matchingDetectIntent
knowledge
Answer records are not related to the conversation history in the Dialogflow Console. A Record is generated even when the end-user disables conversation history in the console. Records are created when there's a human agent assistant suggestion generated.
A typical workflow for customers provide feedback to an answer is:
- For human agent assistant, customers get suggestion via ListSuggestions API. Together with the answers, [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] are returned to the customers.
- The customer uses the [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] to call the [UpdateAnswerRecord][] method to send feedback about a specific answer that they believe is wrong.
func (*AnswerRecord) Descriptor
func (*AnswerRecord) Descriptor() ([]byte, []int)
Deprecated: Use AnswerRecord.ProtoReflect.Descriptor instead.
func (*AnswerRecord) GetAgentAssistantRecord
func (x *AnswerRecord) GetAgentAssistantRecord() *AgentAssistantRecord
func (*AnswerRecord) GetAnswerFeedback
func (x *AnswerRecord) GetAnswerFeedback() *AnswerFeedback
func (*AnswerRecord) GetName
func (x *AnswerRecord) GetName() string
func (*AnswerRecord) GetRecord
func (m *AnswerRecord) GetRecord() isAnswerRecord_Record
func (*AnswerRecord) ProtoMessage
func (*AnswerRecord) ProtoMessage()
func (*AnswerRecord) ProtoReflect
func (x *AnswerRecord) ProtoReflect() protoreflect.Message
func (*AnswerRecord) Reset
func (x *AnswerRecord) Reset()
func (*AnswerRecord) String
func (x *AnswerRecord) String() string
AnswerRecord_AgentAssistantRecord
type AnswerRecord_AgentAssistantRecord struct {
// Output only. The record for human agent assistant.
AgentAssistantRecord *AgentAssistantRecord `protobuf:"bytes,4,opt,name=agent_assistant_record,json=agentAssistantRecord,proto3,oneof"`
}
AnswerRecordsClient
type AnswerRecordsClient interface {
// Returns the list of all answer records in the specified project in reverse
// chronological order.
ListAnswerRecords(ctx context.Context, in *ListAnswerRecordsRequest, opts ...grpc.CallOption) (*ListAnswerRecordsResponse, error)
// Updates the specified answer record.
UpdateAnswerRecord(ctx context.Context, in *UpdateAnswerRecordRequest, opts ...grpc.CallOption) (*AnswerRecord, error)
}
AnswerRecordsClient is the client API for AnswerRecords service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAnswerRecordsClient
func NewAnswerRecordsClient(cc grpc.ClientConnInterface) AnswerRecordsClient
AnswerRecordsServer
type AnswerRecordsServer interface {
// Returns the list of all answer records in the specified project in reverse
// chronological order.
ListAnswerRecords(context.Context, *ListAnswerRecordsRequest) (*ListAnswerRecordsResponse, error)
// Updates the specified answer record.
UpdateAnswerRecord(context.Context, *UpdateAnswerRecordRequest) (*AnswerRecord, error)
}
AnswerRecordsServer is the server API for AnswerRecords service.
ArticleAnswer
type ArticleAnswer struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
Snippets []string `protobuf:"bytes,3,rep,name=snippets,proto3" json:"snippets,omitempty"`
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
Metadata map[string]string "" /* 157 byte string literal not displayed */
AnswerRecord string `protobuf:"bytes,6,opt,name=answer_record,json=answerRecord,proto3" json:"answer_record,omitempty"`
}
Represents article answer.
func (*ArticleAnswer) Descriptor
func (*ArticleAnswer) Descriptor() ([]byte, []int)
Deprecated: Use ArticleAnswer.ProtoReflect.Descriptor instead.
func (*ArticleAnswer) GetAnswerRecord
func (x *ArticleAnswer) GetAnswerRecord() string
func (*ArticleAnswer) GetConfidence
func (x *ArticleAnswer) GetConfidence() float32
func (*ArticleAnswer) GetMetadata
func (x *ArticleAnswer) GetMetadata() map[string]string
func (*ArticleAnswer) GetSnippets
func (x *ArticleAnswer) GetSnippets() []string
func (*ArticleAnswer) GetTitle
func (x *ArticleAnswer) GetTitle() string
func (*ArticleAnswer) GetUri
func (x *ArticleAnswer) GetUri() string
func (*ArticleAnswer) ProtoMessage
func (*ArticleAnswer) ProtoMessage()
func (*ArticleAnswer) ProtoReflect
func (x *ArticleAnswer) ProtoReflect() protoreflect.Message
func (*ArticleAnswer) Reset
func (x *ArticleAnswer) Reset()
func (*ArticleAnswer) String
func (x *ArticleAnswer) String() string
ArticleSuggestionModelMetadata
type ArticleSuggestionModelMetadata struct {
TrainingModelType ConversationModel_ModelType "" /* 175 byte string literal not displayed */
}
Metadata for article suggestion models.
func (*ArticleSuggestionModelMetadata) Descriptor
func (*ArticleSuggestionModelMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ArticleSuggestionModelMetadata.ProtoReflect.Descriptor instead.
func (*ArticleSuggestionModelMetadata) GetTrainingModelType
func (x *ArticleSuggestionModelMetadata) GetTrainingModelType() ConversationModel_ModelType
func (*ArticleSuggestionModelMetadata) ProtoMessage
func (*ArticleSuggestionModelMetadata) ProtoMessage()
func (*ArticleSuggestionModelMetadata) ProtoReflect
func (x *ArticleSuggestionModelMetadata) ProtoReflect() protoreflect.Message
func (*ArticleSuggestionModelMetadata) Reset
func (x *ArticleSuggestionModelMetadata) Reset()
func (*ArticleSuggestionModelMetadata) String
func (x *ArticleSuggestionModelMetadata) String() string
AssistQueryParameters
type AssistQueryParameters struct {
DocumentsMetadataFilters map[string]string "" /* 223 byte string literal not displayed */
}
Represents the parameters of human assist query.
func (*AssistQueryParameters) Descriptor
func (*AssistQueryParameters) Descriptor() ([]byte, []int)
Deprecated: Use AssistQueryParameters.ProtoReflect.Descriptor instead.
func (*AssistQueryParameters) GetDocumentsMetadataFilters
func (x *AssistQueryParameters) GetDocumentsMetadataFilters() map[string]string
func (*AssistQueryParameters) ProtoMessage
func (*AssistQueryParameters) ProtoMessage()
func (*AssistQueryParameters) ProtoReflect
func (x *AssistQueryParameters) ProtoReflect() protoreflect.Message
func (*AssistQueryParameters) Reset
func (x *AssistQueryParameters) Reset()
func (*AssistQueryParameters) String
func (x *AssistQueryParameters) String() string
AudioEncoding
type AudioEncoding int32
Audio encoding of the audio content sent in the conversational query request. Refer to the Cloud Speech API documentation for more details.
AudioEncoding_AUDIO_ENCODING_UNSPECIFIED, AudioEncoding_AUDIO_ENCODING_LINEAR_16, AudioEncoding_AUDIO_ENCODING_FLAC, AudioEncoding_AUDIO_ENCODING_MULAW, AudioEncoding_AUDIO_ENCODING_AMR, AudioEncoding_AUDIO_ENCODING_AMR_WB, AudioEncoding_AUDIO_ENCODING_OGG_OPUS, AudioEncoding_AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE
const (
// Not specified.
AudioEncoding_AUDIO_ENCODING_UNSPECIFIED AudioEncoding = 0
// Uncompressed 16-bit signed little-endian samples (Linear PCM).
AudioEncoding_AUDIO_ENCODING_LINEAR_16 AudioEncoding = 1
// [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio
// Codec) is the recommended encoding because it is lossless (therefore
// recognition is not compromised) and requires only about half the
// bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and
// 24-bit samples, however, not all fields in `STREAMINFO` are supported.
AudioEncoding_AUDIO_ENCODING_FLAC AudioEncoding = 2
// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
AudioEncoding_AUDIO_ENCODING_MULAW AudioEncoding = 3
// Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
AudioEncoding_AUDIO_ENCODING_AMR AudioEncoding = 4
// Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
AudioEncoding_AUDIO_ENCODING_AMR_WB AudioEncoding = 5
// Opus encoded audio frames in Ogg container
// ([OggOpus](https://wiki.xiph.org/OggOpus)).
// `sample_rate_hertz` must be 16000.
AudioEncoding_AUDIO_ENCODING_OGG_OPUS AudioEncoding = 6
// Although the use of lossy encodings is not recommended, if a very low
// bitrate encoding is required, `OGG_OPUS` is highly preferred over
// Speex encoding. The [Speex](https://speex.org/) encoding supported by
// Dialogflow API has a header byte in each block, as in MIME type
// `audio/x-speex-with-header-byte`.
// It is a variant of the RTP Speex encoding defined in
// [RFC 5574](https://tools.ietf.org/html/rfc5574).
// The stream is a sequence of blocks, one block per RTP packet. Each block
// starts with a byte containing the length of the block, in bytes, followed
// by one or more frames of Speex data, padded to an integral number of
// bytes (octets) as specified in RFC 5574. In other words, each RTP header
// is replaced with a single byte containing the block length. Only Speex
// wideband is supported. `sample_rate_hertz` must be 16000.
AudioEncoding_AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE AudioEncoding = 7
)
func (AudioEncoding) Descriptor
func (AudioEncoding) Descriptor() protoreflect.EnumDescriptor
func (AudioEncoding) Enum
func (x AudioEncoding) Enum() *AudioEncoding
func (AudioEncoding) EnumDescriptor
func (AudioEncoding) EnumDescriptor() ([]byte, []int)
Deprecated: Use AudioEncoding.Descriptor instead.
func (AudioEncoding) Number
func (x AudioEncoding) Number() protoreflect.EnumNumber
func (AudioEncoding) String
func (x AudioEncoding) String() string
func (AudioEncoding) Type
func (AudioEncoding) Type() protoreflect.EnumType
AutomatedAgentConfig
type AutomatedAgentConfig struct {
// Required. ID of the Dialogflow agent environment to use.
//
// This project needs to either be the same project as the conversation or you
// need to grant `service-
Defines the Automated Agent to connect to a conversation.
func (*AutomatedAgentConfig) Descriptor
func (*AutomatedAgentConfig) Descriptor() ([]byte, []int)
Deprecated: Use AutomatedAgentConfig.ProtoReflect.Descriptor instead.
func (*AutomatedAgentConfig) GetAgent
func (x *AutomatedAgentConfig) GetAgent() string
func (*AutomatedAgentConfig) ProtoMessage
func (*AutomatedAgentConfig) ProtoMessage()
func (*AutomatedAgentConfig) ProtoReflect
func (x *AutomatedAgentConfig) ProtoReflect() protoreflect.Message
func (*AutomatedAgentConfig) Reset
func (x *AutomatedAgentConfig) Reset()
func (*AutomatedAgentConfig) String
func (x *AutomatedAgentConfig) String() string
AutomatedAgentReply
type AutomatedAgentReply struct {
DetectIntentResponse *DetectIntentResponse `protobuf:"bytes,1,opt,name=detect_intent_response,json=detectIntentResponse,proto3" json:"detect_intent_response,omitempty"`
AutomatedAgentReplyType AutomatedAgentReply_AutomatedAgentReplyType "" /* 211 byte string literal not displayed */
AllowCancellation bool `protobuf:"varint,8,opt,name=allow_cancellation,json=allowCancellation,proto3" json:"allow_cancellation,omitempty"`
CxCurrentPage string `protobuf:"bytes,11,opt,name=cx_current_page,json=cxCurrentPage,proto3" json:"cx_current_page,omitempty"`
}
Represents a response from an automated agent.
func (*AutomatedAgentReply) Descriptor
func (*AutomatedAgentReply) Descriptor() ([]byte, []int)
Deprecated: Use AutomatedAgentReply.ProtoReflect.Descriptor instead.
func (*AutomatedAgentReply) GetAllowCancellation
func (x *AutomatedAgentReply) GetAllowCancellation() bool
func (*AutomatedAgentReply) GetAutomatedAgentReplyType
func (x *AutomatedAgentReply) GetAutomatedAgentReplyType() AutomatedAgentReply_AutomatedAgentReplyType
func (*AutomatedAgentReply) GetCxCurrentPage
func (x *AutomatedAgentReply) GetCxCurrentPage() string
func (*AutomatedAgentReply) GetDetectIntentResponse
func (x *AutomatedAgentReply) GetDetectIntentResponse() *DetectIntentResponse
func (*AutomatedAgentReply) ProtoMessage
func (*AutomatedAgentReply) ProtoMessage()
func (*AutomatedAgentReply) ProtoReflect
func (x *AutomatedAgentReply) ProtoReflect() protoreflect.Message
func (*AutomatedAgentReply) Reset
func (x *AutomatedAgentReply) Reset()
func (*AutomatedAgentReply) String
func (x *AutomatedAgentReply) String() string
AutomatedAgentReply_AutomatedAgentReplyType
type AutomatedAgentReply_AutomatedAgentReplyType int32
Represents different automated agent reply types.
AutomatedAgentReply_AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED, AutomatedAgentReply_PARTIAL, AutomatedAgentReply_FINAL
const (
// Not specified. This should never happen.
AutomatedAgentReply_AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED AutomatedAgentReply_AutomatedAgentReplyType = 0
// Partial reply. e.g. Aggregated responses in a `Fulfillment` that enables
// `return_partial_response` can be returned as partial reply.
// WARNING: partial reply is not eligible for barge-in.
AutomatedAgentReply_PARTIAL AutomatedAgentReply_AutomatedAgentReplyType = 1
// Final reply.
AutomatedAgentReply_FINAL AutomatedAgentReply_AutomatedAgentReplyType = 2
)
func (AutomatedAgentReply_AutomatedAgentReplyType) Descriptor
func (AutomatedAgentReply_AutomatedAgentReplyType) Descriptor() protoreflect.EnumDescriptor
func (AutomatedAgentReply_AutomatedAgentReplyType) Enum
func (x AutomatedAgentReply_AutomatedAgentReplyType) Enum() *AutomatedAgentReply_AutomatedAgentReplyType
func (AutomatedAgentReply_AutomatedAgentReplyType) EnumDescriptor
func (AutomatedAgentReply_AutomatedAgentReplyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AutomatedAgentReply_AutomatedAgentReplyType.Descriptor instead.
func (AutomatedAgentReply_AutomatedAgentReplyType) Number
func (x AutomatedAgentReply_AutomatedAgentReplyType) Number() protoreflect.EnumNumber
func (AutomatedAgentReply_AutomatedAgentReplyType) String
func (x AutomatedAgentReply_AutomatedAgentReplyType) String() string
func (AutomatedAgentReply_AutomatedAgentReplyType) Type
func (AutomatedAgentReply_AutomatedAgentReplyType) Type() protoreflect.EnumType
BatchCreateEntitiesRequest
type BatchCreateEntitiesRequest struct {
// Required. The name of the entity type to create entities in. Format:
// `projects/
The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities].
func (*BatchCreateEntitiesRequest) Descriptor
func (*BatchCreateEntitiesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchCreateEntitiesRequest.ProtoReflect.Descriptor instead.
func (*BatchCreateEntitiesRequest) GetEntities
func (x *BatchCreateEntitiesRequest) GetEntities() []*EntityType_Entity
func (*BatchCreateEntitiesRequest) GetLanguageCode
func (x *BatchCreateEntitiesRequest) GetLanguageCode() string
func (*BatchCreateEntitiesRequest) GetParent
func (x *BatchCreateEntitiesRequest) GetParent() string
func (*BatchCreateEntitiesRequest) ProtoMessage
func (*BatchCreateEntitiesRequest) ProtoMessage()
func (*BatchCreateEntitiesRequest) ProtoReflect
func (x *BatchCreateEntitiesRequest) ProtoReflect() protoreflect.Message
func (*BatchCreateEntitiesRequest) Reset
func (x *BatchCreateEntitiesRequest) Reset()
func (*BatchCreateEntitiesRequest) String
func (x *BatchCreateEntitiesRequest) String() string
BatchDeleteEntitiesRequest
type BatchDeleteEntitiesRequest struct {
// Required. The name of the entity type to delete entries for. Format:
// `projects/
The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities].
func (*BatchDeleteEntitiesRequest) Descriptor
func (*BatchDeleteEntitiesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchDeleteEntitiesRequest.ProtoReflect.Descriptor instead.
func (*BatchDeleteEntitiesRequest) GetEntityValues
func (x *BatchDeleteEntitiesRequest) GetEntityValues() []string
func (*BatchDeleteEntitiesRequest) GetLanguageCode
func (x *BatchDeleteEntitiesRequest) GetLanguageCode() string
func (*BatchDeleteEntitiesRequest) GetParent
func (x *BatchDeleteEntitiesRequest) GetParent() string
func (*BatchDeleteEntitiesRequest) ProtoMessage
func (*BatchDeleteEntitiesRequest) ProtoMessage()
func (*BatchDeleteEntitiesRequest) ProtoReflect
func (x *BatchDeleteEntitiesRequest) ProtoReflect() protoreflect.Message
func (*BatchDeleteEntitiesRequest) Reset
func (x *BatchDeleteEntitiesRequest) Reset()
func (*BatchDeleteEntitiesRequest) String
func (x *BatchDeleteEntitiesRequest) String() string
BatchDeleteEntityTypesRequest
type BatchDeleteEntityTypesRequest struct {
// Required. The name of the agent to delete all entities types for. Format:
// `projects/
The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes].
func (*BatchDeleteEntityTypesRequest) Descriptor
func (*BatchDeleteEntityTypesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchDeleteEntityTypesRequest.ProtoReflect.Descriptor instead.
func (*BatchDeleteEntityTypesRequest) GetEntityTypeNames
func (x *BatchDeleteEntityTypesRequest) GetEntityTypeNames() []string
func (*BatchDeleteEntityTypesRequest) GetParent
func (x *BatchDeleteEntityTypesRequest) GetParent() string
func (*BatchDeleteEntityTypesRequest) ProtoMessage
func (*BatchDeleteEntityTypesRequest) ProtoMessage()
func (*BatchDeleteEntityTypesRequest) ProtoReflect
func (x *BatchDeleteEntityTypesRequest) ProtoReflect() protoreflect.Message
func (*BatchDeleteEntityTypesRequest) Reset
func (x *BatchDeleteEntityTypesRequest) Reset()
func (*BatchDeleteEntityTypesRequest) String
func (x *BatchDeleteEntityTypesRequest) String() string
BatchDeleteIntentsRequest
type BatchDeleteIntentsRequest struct {
// Required. The name of the agent to delete all entities types for. Format:
// `projects/
The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents].
func (*BatchDeleteIntentsRequest) Descriptor
func (*BatchDeleteIntentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchDeleteIntentsRequest.ProtoReflect.Descriptor instead.
func (*BatchDeleteIntentsRequest) GetIntents
func (x *BatchDeleteIntentsRequest) GetIntents() []*Intent
func (*BatchDeleteIntentsRequest) GetParent
func (x *BatchDeleteIntentsRequest) GetParent() string
func (*BatchDeleteIntentsRequest) ProtoMessage
func (*BatchDeleteIntentsRequest) ProtoMessage()
func (*BatchDeleteIntentsRequest) ProtoReflect
func (x *BatchDeleteIntentsRequest) ProtoReflect() protoreflect.Message
func (*BatchDeleteIntentsRequest) Reset
func (x *BatchDeleteIntentsRequest) Reset()
func (*BatchDeleteIntentsRequest) String
func (x *BatchDeleteIntentsRequest) String() string
BatchUpdateEntitiesRequest
type BatchUpdateEntitiesRequest struct {
// Required. The name of the entity type to update or create entities in.
// Format: `projects/
The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities].
func (*BatchUpdateEntitiesRequest) Descriptor
func (*BatchUpdateEntitiesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateEntitiesRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateEntitiesRequest) GetEntities
func (x *BatchUpdateEntitiesRequest) GetEntities() []*EntityType_Entity
func (*BatchUpdateEntitiesRequest) GetLanguageCode
func (x *BatchUpdateEntitiesRequest) GetLanguageCode() string
func (*BatchUpdateEntitiesRequest) GetParent
func (x *BatchUpdateEntitiesRequest) GetParent() string
func (*BatchUpdateEntitiesRequest) GetUpdateMask
func (x *BatchUpdateEntitiesRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*BatchUpdateEntitiesRequest) ProtoMessage
func (*BatchUpdateEntitiesRequest) ProtoMessage()
func (*BatchUpdateEntitiesRequest) ProtoReflect
func (x *BatchUpdateEntitiesRequest) ProtoReflect() protoreflect.Message
func (*BatchUpdateEntitiesRequest) Reset
func (x *BatchUpdateEntitiesRequest) Reset()
func (*BatchUpdateEntitiesRequest) String
func (x *BatchUpdateEntitiesRequest) String() string
BatchUpdateEntityTypesRequest
type BatchUpdateEntityTypesRequest struct {
// Required. The name of the agent to update or create entity types in.
// Format: `projects/
The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
func (*BatchUpdateEntityTypesRequest) Descriptor
func (*BatchUpdateEntityTypesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateEntityTypesRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateEntityTypesRequest) GetEntityTypeBatch
func (m *BatchUpdateEntityTypesRequest) GetEntityTypeBatch() isBatchUpdateEntityTypesRequest_EntityTypeBatch
func (*BatchUpdateEntityTypesRequest) GetEntityTypeBatchInline
func (x *BatchUpdateEntityTypesRequest) GetEntityTypeBatchInline() *EntityTypeBatch
func (*BatchUpdateEntityTypesRequest) GetEntityTypeBatchUri
func (x *BatchUpdateEntityTypesRequest) GetEntityTypeBatchUri() string
func (*BatchUpdateEntityTypesRequest) GetLanguageCode
func (x *BatchUpdateEntityTypesRequest) GetLanguageCode() string
func (*BatchUpdateEntityTypesRequest) GetParent
func (x *BatchUpdateEntityTypesRequest) GetParent() string
func (*BatchUpdateEntityTypesRequest) GetUpdateMask
func (x *BatchUpdateEntityTypesRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*BatchUpdateEntityTypesRequest) ProtoMessage
func (*BatchUpdateEntityTypesRequest) ProtoMessage()
func (*BatchUpdateEntityTypesRequest) ProtoReflect
func (x *BatchUpdateEntityTypesRequest) ProtoReflect() protoreflect.Message
func (*BatchUpdateEntityTypesRequest) Reset
func (x *BatchUpdateEntityTypesRequest) Reset()
func (*BatchUpdateEntityTypesRequest) String
func (x *BatchUpdateEntityTypesRequest) String() string
BatchUpdateEntityTypesRequest_EntityTypeBatchInline
type BatchUpdateEntityTypesRequest_EntityTypeBatchInline struct {
// The collection of entity types to update or create.
EntityTypeBatchInline *EntityTypeBatch `protobuf:"bytes,3,opt,name=entity_type_batch_inline,json=entityTypeBatchInline,proto3,oneof"`
}
BatchUpdateEntityTypesRequest_EntityTypeBatchUri
type BatchUpdateEntityTypesRequest_EntityTypeBatchUri struct {
// The URI to a Google Cloud Storage file containing entity types to update
// or create. The file format can either be a serialized proto (of
// EntityBatch type) or a JSON object. Note: The URI must start with
// "gs://".
EntityTypeBatchUri string `protobuf:"bytes,2,opt,name=entity_type_batch_uri,json=entityTypeBatchUri,proto3,oneof"`
}
BatchUpdateEntityTypesResponse
type BatchUpdateEntityTypesResponse struct {
// The collection of updated or created entity types.
EntityTypes []*EntityType `protobuf:"bytes,1,rep,name=entity_types,json=entityTypes,proto3" json:"entity_types,omitempty"`
// contains filtered or unexported fields
}
The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
func (*BatchUpdateEntityTypesResponse) Descriptor
func (*BatchUpdateEntityTypesResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateEntityTypesResponse.ProtoReflect.Descriptor instead.
func (*BatchUpdateEntityTypesResponse) GetEntityTypes
func (x *BatchUpdateEntityTypesResponse) GetEntityTypes() []*EntityType
func (*BatchUpdateEntityTypesResponse) ProtoMessage
func (*BatchUpdateEntityTypesResponse) ProtoMessage()
func (*BatchUpdateEntityTypesResponse) ProtoReflect
func (x *BatchUpdateEntityTypesResponse) ProtoReflect() protoreflect.Message
func (*BatchUpdateEntityTypesResponse) Reset
func (x *BatchUpdateEntityTypesResponse) Reset()
func (*BatchUpdateEntityTypesResponse) String
func (x *BatchUpdateEntityTypesResponse) String() string
BatchUpdateIntentsRequest
type BatchUpdateIntentsRequest struct {
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
IntentBatch isBatchUpdateIntentsRequest_IntentBatch `protobuf_oneof:"intent_batch"`
LanguageCode string `protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
IntentView IntentView "" /* 135 byte string literal not displayed */
}
func (*BatchUpdateIntentsRequest) Descriptor
func (*BatchUpdateIntentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateIntentsRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateIntentsRequest) GetIntentBatch
func (m *BatchUpdateIntentsRequest) GetIntentBatch() isBatchUpdateIntentsRequest_IntentBatch
func (*BatchUpdateIntentsRequest) GetIntentBatchInline
func (x *BatchUpdateIntentsRequest) GetIntentBatchInline() *IntentBatch
func (*BatchUpdateIntentsRequest) GetIntentBatchUri
func (x *BatchUpdateIntentsRequest) GetIntentBatchUri() string
func (*BatchUpdateIntentsRequest) GetIntentView
func (x *BatchUpdateIntentsRequest) GetIntentView() IntentView
func (*BatchUpdateIntentsRequest) GetLanguageCode
func (x *BatchUpdateIntentsRequest) GetLanguageCode() string
func (*BatchUpdateIntentsRequest) GetParent
func (x *BatchUpdateIntentsRequest) GetParent() string
func (*BatchUpdateIntentsRequest) GetUpdateMask
func (x *BatchUpdateIntentsRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*BatchUpdateIntentsRequest) ProtoMessage
func (*BatchUpdateIntentsRequest) ProtoMessage()
func (*BatchUpdateIntentsRequest) ProtoReflect
func (x *BatchUpdateIntentsRequest) ProtoReflect() protoreflect.Message
func (*BatchUpdateIntentsRequest) Reset
func (x *BatchUpdateIntentsRequest) Reset()
func (*BatchUpdateIntentsRequest) String
func (x *BatchUpdateIntentsRequest) String() string
BatchUpdateIntentsRequest_IntentBatchInline
type BatchUpdateIntentsRequest_IntentBatchInline struct {
// The collection of intents to update or create.
IntentBatchInline *IntentBatch `protobuf:"bytes,3,opt,name=intent_batch_inline,json=intentBatchInline,proto3,oneof"`
}
BatchUpdateIntentsRequest_IntentBatchUri
type BatchUpdateIntentsRequest_IntentBatchUri struct {
// The URI to a Google Cloud Storage file containing intents to update or
// create. The file format can either be a serialized proto (of IntentBatch
// type) or JSON object. Note: The URI must start with "gs://".
IntentBatchUri string `protobuf:"bytes,2,opt,name=intent_batch_uri,json=intentBatchUri,proto3,oneof"`
}
BatchUpdateIntentsResponse
type BatchUpdateIntentsResponse struct {
// The collection of updated or created intents.
Intents []*Intent `protobuf:"bytes,1,rep,name=intents,proto3" json:"intents,omitempty"`
// contains filtered or unexported fields
}
The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].
func (*BatchUpdateIntentsResponse) Descriptor
func (*BatchUpdateIntentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateIntentsResponse.ProtoReflect.Descriptor instead.
func (*BatchUpdateIntentsResponse) GetIntents
func (x *BatchUpdateIntentsResponse) GetIntents() []*Intent
func (*BatchUpdateIntentsResponse) ProtoMessage
func (*BatchUpdateIntentsResponse) ProtoMessage()
func (*BatchUpdateIntentsResponse) ProtoReflect
func (x *BatchUpdateIntentsResponse) ProtoReflect() protoreflect.Message
func (*BatchUpdateIntentsResponse) Reset
func (x *BatchUpdateIntentsResponse) Reset()
func (*BatchUpdateIntentsResponse) String
func (x *BatchUpdateIntentsResponse) String() string
ClearSuggestionFeatureConfigOperationMetadata
type ClearSuggestionFeatureConfigOperationMetadata struct {
ConversationProfile string `protobuf:"bytes,1,opt,name=conversation_profile,json=conversationProfile,proto3" json:"conversation_profile,omitempty"`
ParticipantRole Participant_Role "" /* 156 byte string literal not displayed */
SuggestionFeatureType SuggestionFeature_Type "" /* 182 byte string literal not displayed */
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
}
Metadata for a [ConversationProfile.ClearSuggestionFeatureConfig][] operation.
func (*ClearSuggestionFeatureConfigOperationMetadata) Descriptor
func (*ClearSuggestionFeatureConfigOperationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ClearSuggestionFeatureConfigOperationMetadata.ProtoReflect.Descriptor instead.
func (*ClearSuggestionFeatureConfigOperationMetadata) GetConversationProfile
func (x *ClearSuggestionFeatureConfigOperationMetadata) GetConversationProfile() string
func (*ClearSuggestionFeatureConfigOperationMetadata) GetCreateTime
func (x *ClearSuggestionFeatureConfigOperationMetadata) GetCreateTime() *timestamppb.Timestamp
func (*ClearSuggestionFeatureConfigOperationMetadata) GetParticipantRole
func (x *ClearSuggestionFeatureConfigOperationMetadata) GetParticipantRole() Participant_Role
func (*ClearSuggestionFeatureConfigOperationMetadata) GetSuggestionFeatureType
func (x *ClearSuggestionFeatureConfigOperationMetadata) GetSuggestionFeatureType() SuggestionFeature_Type
func (*ClearSuggestionFeatureConfigOperationMetadata) ProtoMessage
func (*ClearSuggestionFeatureConfigOperationMetadata) ProtoMessage()
func (*ClearSuggestionFeatureConfigOperationMetadata) ProtoReflect
func (x *ClearSuggestionFeatureConfigOperationMetadata) ProtoReflect() protoreflect.Message
func (*ClearSuggestionFeatureConfigOperationMetadata) Reset
func (x *ClearSuggestionFeatureConfigOperationMetadata) Reset()
func (*ClearSuggestionFeatureConfigOperationMetadata) String
func (x *ClearSuggestionFeatureConfigOperationMetadata) String() string
ClearSuggestionFeatureConfigRequest
type ClearSuggestionFeatureConfigRequest struct {
ConversationProfile string `protobuf:"bytes,1,opt,name=conversation_profile,json=conversationProfile,proto3" json:"conversation_profile,omitempty"`
ParticipantRole Participant_Role "" /* 156 byte string literal not displayed */
SuggestionFeatureType SuggestionFeature_Type "" /* 182 byte string literal not displayed */
}
The request message for [ConversationProfiles.ClearFeature][].
func (*ClearSuggestionFeatureConfigRequest) Descriptor
func (*ClearSuggestionFeatureConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClearSuggestionFeatureConfigRequest.ProtoReflect.Descriptor instead.
func (*ClearSuggestionFeatureConfigRequest) GetConversationProfile
func (x *ClearSuggestionFeatureConfigRequest) GetConversationProfile() string
func (*ClearSuggestionFeatureConfigRequest) GetParticipantRole
func (x *ClearSuggestionFeatureConfigRequest) GetParticipantRole() Participant_Role
func (*ClearSuggestionFeatureConfigRequest) GetSuggestionFeatureType
func (x *ClearSuggestionFeatureConfigRequest) GetSuggestionFeatureType() SuggestionFeature_Type
func (*ClearSuggestionFeatureConfigRequest) ProtoMessage
func (*ClearSuggestionFeatureConfigRequest) ProtoMessage()
func (*ClearSuggestionFeatureConfigRequest) ProtoReflect
func (x *ClearSuggestionFeatureConfigRequest) ProtoReflect() protoreflect.Message
func (*ClearSuggestionFeatureConfigRequest) Reset
func (x *ClearSuggestionFeatureConfigRequest) Reset()
func (*ClearSuggestionFeatureConfigRequest) String
func (x *ClearSuggestionFeatureConfigRequest) String() string
CompleteConversationRequest
type CompleteConversationRequest struct {
// Required. Resource identifier of the conversation to close.
// Format: `projects/
The request message for [Conversations.CompleteConversation][google.cloud.dialogflow.v2.Conversations.CompleteConversation].
func (*CompleteConversationRequest) Descriptor
func (*CompleteConversationRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteConversationRequest.ProtoReflect.Descriptor instead.
func (*CompleteConversationRequest) GetName
func (x *CompleteConversationRequest) GetName() string
func (*CompleteConversationRequest) ProtoMessage
func (*CompleteConversationRequest) ProtoMessage()
func (*CompleteConversationRequest) ProtoReflect
func (x *CompleteConversationRequest) ProtoReflect() protoreflect.Message
func (*CompleteConversationRequest) Reset
func (x *CompleteConversationRequest) Reset()
func (*CompleteConversationRequest) String
func (x *CompleteConversationRequest) String() string
Context
type Context struct {
// Required. The unique identifier of the context. Format:
// `projects/
Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent.
Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts.
For more information about context, see the Contexts guide.
func (*Context) Descriptor
Deprecated: Use Context.ProtoReflect.Descriptor instead.
func (*Context) GetLifespanCount
func (*Context) GetName
func (*Context) GetParameters
func (*Context) ProtoMessage
func (*Context) ProtoMessage()
func (*Context) ProtoReflect
func (x *Context) ProtoReflect() protoreflect.Message
func (*Context) Reset
func (x *Context) Reset()
func (*Context) String
ContextsClient
type ContextsClient interface {
// Returns the list of all contexts in the specified session.
ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error)
// Retrieves the specified context.
GetContext(ctx context.Context, in *GetContextRequest, opts ...grpc.CallOption) (*Context, error)
// Creates a context.
//
// If the specified context already exists, overrides the context.
CreateContext(ctx context.Context, in *CreateContextRequest, opts ...grpc.CallOption) (*Context, error)
// Updates the specified context.
UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error)
// Deletes the specified context.
DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Deletes all active contexts in the specified session.
DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
ContextsClient is the client API for Contexts service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewContextsClient
func NewContextsClient(cc grpc.ClientConnInterface) ContextsClient
ContextsServer
type ContextsServer interface {
// Returns the list of all contexts in the specified session.
ListContexts(context.Context, *ListContextsRequest) (*ListContextsResponse, error)
// Retrieves the specified context.
GetContext(context.Context, *GetContextRequest) (*Context, error)
// Creates a context.
//
// If the specified context already exists, overrides the context.
CreateContext(context.Context, *CreateContextRequest) (*Context, error)
// Updates the specified context.
UpdateContext(context.Context, *UpdateContextRequest) (*Context, error)
// Deletes the specified context.
DeleteContext(context.Context, *DeleteContextRequest) (*emptypb.Empty, error)
// Deletes all active contexts in the specified session.
DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*emptypb.Empty, error)
}
ContextsServer is the server API for Contexts service.
Conversation
type Conversation struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
LifecycleState Conversation_LifecycleState "" /* 164 byte string literal not displayed */
ConversationProfile string `protobuf:"bytes,3,opt,name=conversation_profile,json=conversationProfile,proto3" json:"conversation_profile,omitempty"`
PhoneNumber *ConversationPhoneNumber `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
ConversationStage Conversation_ConversationStage "" /* 176 byte string literal not displayed */
}
Represents a conversation. A conversation is an interaction between an agent, including live agents and Dialogflow agents, and a support customer. Conversations can include phone calls and text-based chat sessions.
func (*Conversation) Descriptor
func (*Conversation) Descriptor() ([]byte, []int)
Deprecated: Use Conversation.ProtoReflect.Descriptor instead.
func (*Conversation) GetConversationProfile
func (x *Conversation) GetConversationProfile() string
func (*Conversation) GetConversationStage
func (x *Conversation) GetConversationStage() Conversation_ConversationStage
func (*Conversation) GetEndTime
func (x *Conversation) GetEndTime() *timestamppb.Timestamp
func (*Conversation) GetLifecycleState
func (x *Conversation) GetLifecycleState() Conversation_LifecycleState
func (*Conversation) GetName
func (x *Conversation) GetName() string
func (*Conversation) GetPhoneNumber
func (x *Conversation) GetPhoneNumber() *ConversationPhoneNumber
func (*Conversation) GetStartTime
func (x *Conversation) GetStartTime() *timestamppb.Timestamp
func (*Conversation) ProtoMessage
func (*Conversation) ProtoMessage()