- 1.70.0 (latest)
- 1.69.1
- 1.68.2
- 1.67.0
- 1.66.0
- 1.65.0
- 1.64.1
- 1.63.0
- 1.62.0
- 1.61.0
- 1.60.0
- 1.59.0
- 1.58.1
- 1.57.1
- 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
Constants
Agents_GetAgent_FullMethodName, Agents_SetAgent_FullMethodName, Agents_DeleteAgent_FullMethodName, Agents_SearchAgents_FullMethodName, Agents_TrainAgent_FullMethodName, Agents_ExportAgent_FullMethodName, Agents_ImportAgent_FullMethodName, Agents_RestoreAgent_FullMethodName, Agents_GetValidationResult_FullMethodName
const (
Agents_GetAgent_FullMethodName = "/google.cloud.dialogflow.v2.Agents/GetAgent"
Agents_SetAgent_FullMethodName = "/google.cloud.dialogflow.v2.Agents/SetAgent"
Agents_DeleteAgent_FullMethodName = "/google.cloud.dialogflow.v2.Agents/DeleteAgent"
Agents_SearchAgents_FullMethodName = "/google.cloud.dialogflow.v2.Agents/SearchAgents"
Agents_TrainAgent_FullMethodName = "/google.cloud.dialogflow.v2.Agents/TrainAgent"
Agents_ExportAgent_FullMethodName = "/google.cloud.dialogflow.v2.Agents/ExportAgent"
Agents_ImportAgent_FullMethodName = "/google.cloud.dialogflow.v2.Agents/ImportAgent"
Agents_RestoreAgent_FullMethodName = "/google.cloud.dialogflow.v2.Agents/RestoreAgent"
Agents_GetValidationResult_FullMethodName = "/google.cloud.dialogflow.v2.Agents/GetValidationResult"
)AnswerRecords_ListAnswerRecords_FullMethodName, AnswerRecords_UpdateAnswerRecord_FullMethodName
const (
AnswerRecords_ListAnswerRecords_FullMethodName = "/google.cloud.dialogflow.v2.AnswerRecords/ListAnswerRecords"
AnswerRecords_UpdateAnswerRecord_FullMethodName = "/google.cloud.dialogflow.v2.AnswerRecords/UpdateAnswerRecord"
)Contexts_ListContexts_FullMethodName, Contexts_GetContext_FullMethodName, Contexts_CreateContext_FullMethodName, Contexts_UpdateContext_FullMethodName, Contexts_DeleteContext_FullMethodName, Contexts_DeleteAllContexts_FullMethodName
const (
Contexts_ListContexts_FullMethodName = "/google.cloud.dialogflow.v2.Contexts/ListContexts"
Contexts_GetContext_FullMethodName = "/google.cloud.dialogflow.v2.Contexts/GetContext"
Contexts_CreateContext_FullMethodName = "/google.cloud.dialogflow.v2.Contexts/CreateContext"
Contexts_UpdateContext_FullMethodName = "/google.cloud.dialogflow.v2.Contexts/UpdateContext"
Contexts_DeleteContext_FullMethodName = "/google.cloud.dialogflow.v2.Contexts/DeleteContext"
Contexts_DeleteAllContexts_FullMethodName = "/google.cloud.dialogflow.v2.Contexts/DeleteAllContexts"
)ConversationDatasets_CreateConversationDataset_FullMethodName, ConversationDatasets_GetConversationDataset_FullMethodName, ConversationDatasets_ListConversationDatasets_FullMethodName, ConversationDatasets_DeleteConversationDataset_FullMethodName, ConversationDatasets_ImportConversationData_FullMethodName
const (
ConversationDatasets_CreateConversationDataset_FullMethodName = "/google.cloud.dialogflow.v2.ConversationDatasets/CreateConversationDataset"
ConversationDatasets_GetConversationDataset_FullMethodName = "/google.cloud.dialogflow.v2.ConversationDatasets/GetConversationDataset"
ConversationDatasets_ListConversationDatasets_FullMethodName = "/google.cloud.dialogflow.v2.ConversationDatasets/ListConversationDatasets"
ConversationDatasets_DeleteConversationDataset_FullMethodName = "/google.cloud.dialogflow.v2.ConversationDatasets/DeleteConversationDataset"
ConversationDatasets_ImportConversationData_FullMethodName = "/google.cloud.dialogflow.v2.ConversationDatasets/ImportConversationData"
)Conversations_CreateConversation_FullMethodName, Conversations_ListConversations_FullMethodName, Conversations_GetConversation_FullMethodName, Conversations_CompleteConversation_FullMethodName, Conversations_IngestContextReferences_FullMethodName, Conversations_ListMessages_FullMethodName, Conversations_SuggestConversationSummary_FullMethodName, Conversations_GenerateStatelessSummary_FullMethodName, Conversations_GenerateStatelessSuggestion_FullMethodName, Conversations_SearchKnowledge_FullMethodName, Conversations_GenerateSuggestions_FullMethodName
const (
Conversations_CreateConversation_FullMethodName = "/google.cloud.dialogflow.v2.Conversations/CreateConversation"
Conversations_ListConversations_FullMethodName = "/google.cloud.dialogflow.v2.Conversations/ListConversations"
Conversations_GetConversation_FullMethodName = "/google.cloud.dialogflow.v2.Conversations/GetConversation"
Conversations_CompleteConversation_FullMethodName = "/google.cloud.dialogflow.v2.Conversations/CompleteConversation"
Conversations_IngestContextReferences_FullMethodName = "/google.cloud.dialogflow.v2.Conversations/IngestContextReferences"
Conversations_ListMessages_FullMethodName = "/google.cloud.dialogflow.v2.Conversations/ListMessages"
Conversations_SuggestConversationSummary_FullMethodName = "/google.cloud.dialogflow.v2.Conversations/SuggestConversationSummary"
Conversations_GenerateStatelessSummary_FullMethodName = "/google.cloud.dialogflow.v2.Conversations/GenerateStatelessSummary"
Conversations_GenerateStatelessSuggestion_FullMethodName = "/google.cloud.dialogflow.v2.Conversations/GenerateStatelessSuggestion"
Conversations_SearchKnowledge_FullMethodName = "/google.cloud.dialogflow.v2.Conversations/SearchKnowledge"
Conversations_GenerateSuggestions_FullMethodName = "/google.cloud.dialogflow.v2.Conversations/GenerateSuggestions"
)ConversationModels_CreateConversationModel_FullMethodName, ConversationModels_GetConversationModel_FullMethodName, ConversationModels_ListConversationModels_FullMethodName, ConversationModels_DeleteConversationModel_FullMethodName, ConversationModels_DeployConversationModel_FullMethodName, ConversationModels_UndeployConversationModel_FullMethodName, ConversationModels_GetConversationModelEvaluation_FullMethodName, ConversationModels_ListConversationModelEvaluations_FullMethodName, ConversationModels_CreateConversationModelEvaluation_FullMethodName
const (
ConversationModels_CreateConversationModel_FullMethodName = "/google.cloud.dialogflow.v2.ConversationModels/CreateConversationModel"
ConversationModels_GetConversationModel_FullMethodName = "/google.cloud.dialogflow.v2.ConversationModels/GetConversationModel"
ConversationModels_ListConversationModels_FullMethodName = "/google.cloud.dialogflow.v2.ConversationModels/ListConversationModels"
ConversationModels_DeleteConversationModel_FullMethodName = "/google.cloud.dialogflow.v2.ConversationModels/DeleteConversationModel"
ConversationModels_DeployConversationModel_FullMethodName = "/google.cloud.dialogflow.v2.ConversationModels/DeployConversationModel"
ConversationModels_UndeployConversationModel_FullMethodName = "/google.cloud.dialogflow.v2.ConversationModels/UndeployConversationModel"
ConversationModels_GetConversationModelEvaluation_FullMethodName = "/google.cloud.dialogflow.v2.ConversationModels/GetConversationModelEvaluation"
ConversationModels_ListConversationModelEvaluations_FullMethodName = "/google.cloud.dialogflow.v2.ConversationModels/ListConversationModelEvaluations"
ConversationModels_CreateConversationModelEvaluation_FullMethodName = "/google.cloud.dialogflow.v2.ConversationModels/CreateConversationModelEvaluation"
)ConversationProfiles_ListConversationProfiles_FullMethodName, ConversationProfiles_GetConversationProfile_FullMethodName, ConversationProfiles_CreateConversationProfile_FullMethodName, ConversationProfiles_UpdateConversationProfile_FullMethodName, ConversationProfiles_DeleteConversationProfile_FullMethodName, ConversationProfiles_SetSuggestionFeatureConfig_FullMethodName, ConversationProfiles_ClearSuggestionFeatureConfig_FullMethodName
const (
ConversationProfiles_ListConversationProfiles_FullMethodName = "/google.cloud.dialogflow.v2.ConversationProfiles/ListConversationProfiles"
ConversationProfiles_GetConversationProfile_FullMethodName = "/google.cloud.dialogflow.v2.ConversationProfiles/GetConversationProfile"
ConversationProfiles_CreateConversationProfile_FullMethodName = "/google.cloud.dialogflow.v2.ConversationProfiles/CreateConversationProfile"
ConversationProfiles_UpdateConversationProfile_FullMethodName = "/google.cloud.dialogflow.v2.ConversationProfiles/UpdateConversationProfile"
ConversationProfiles_DeleteConversationProfile_FullMethodName = "/google.cloud.dialogflow.v2.ConversationProfiles/DeleteConversationProfile"
ConversationProfiles_SetSuggestionFeatureConfig_FullMethodName = "/google.cloud.dialogflow.v2.ConversationProfiles/SetSuggestionFeatureConfig"
ConversationProfiles_ClearSuggestionFeatureConfig_FullMethodName = "/google.cloud.dialogflow.v2.ConversationProfiles/ClearSuggestionFeatureConfig"
)Documents_ListDocuments_FullMethodName, Documents_GetDocument_FullMethodName, Documents_CreateDocument_FullMethodName, Documents_ImportDocuments_FullMethodName, Documents_DeleteDocument_FullMethodName, Documents_UpdateDocument_FullMethodName, Documents_ReloadDocument_FullMethodName, Documents_ExportDocument_FullMethodName
const (
Documents_ListDocuments_FullMethodName = "/google.cloud.dialogflow.v2.Documents/ListDocuments"
Documents_GetDocument_FullMethodName = "/google.cloud.dialogflow.v2.Documents/GetDocument"
Documents_CreateDocument_FullMethodName = "/google.cloud.dialogflow.v2.Documents/CreateDocument"
Documents_ImportDocuments_FullMethodName = "/google.cloud.dialogflow.v2.Documents/ImportDocuments"
Documents_DeleteDocument_FullMethodName = "/google.cloud.dialogflow.v2.Documents/DeleteDocument"
Documents_UpdateDocument_FullMethodName = "/google.cloud.dialogflow.v2.Documents/UpdateDocument"
Documents_ReloadDocument_FullMethodName = "/google.cloud.dialogflow.v2.Documents/ReloadDocument"
Documents_ExportDocument_FullMethodName = "/google.cloud.dialogflow.v2.Documents/ExportDocument"
)EncryptionSpecService_GetEncryptionSpec_FullMethodName, EncryptionSpecService_InitializeEncryptionSpec_FullMethodName
const (
EncryptionSpecService_GetEncryptionSpec_FullMethodName = "/google.cloud.dialogflow.v2.EncryptionSpecService/GetEncryptionSpec"
EncryptionSpecService_InitializeEncryptionSpec_FullMethodName = "/google.cloud.dialogflow.v2.EncryptionSpecService/InitializeEncryptionSpec"
)EntityTypes_ListEntityTypes_FullMethodName, EntityTypes_GetEntityType_FullMethodName, EntityTypes_CreateEntityType_FullMethodName, EntityTypes_UpdateEntityType_FullMethodName, EntityTypes_DeleteEntityType_FullMethodName, EntityTypes_BatchUpdateEntityTypes_FullMethodName, EntityTypes_BatchDeleteEntityTypes_FullMethodName, EntityTypes_BatchCreateEntities_FullMethodName, EntityTypes_BatchUpdateEntities_FullMethodName, EntityTypes_BatchDeleteEntities_FullMethodName
const (
EntityTypes_ListEntityTypes_FullMethodName = "/google.cloud.dialogflow.v2.EntityTypes/ListEntityTypes"
EntityTypes_GetEntityType_FullMethodName = "/google.cloud.dialogflow.v2.EntityTypes/GetEntityType"
EntityTypes_CreateEntityType_FullMethodName = "/google.cloud.dialogflow.v2.EntityTypes/CreateEntityType"
EntityTypes_UpdateEntityType_FullMethodName = "/google.cloud.dialogflow.v2.EntityTypes/UpdateEntityType"
EntityTypes_DeleteEntityType_FullMethodName = "/google.cloud.dialogflow.v2.EntityTypes/DeleteEntityType"
EntityTypes_BatchUpdateEntityTypes_FullMethodName = "/google.cloud.dialogflow.v2.EntityTypes/BatchUpdateEntityTypes"
EntityTypes_BatchDeleteEntityTypes_FullMethodName = "/google.cloud.dialogflow.v2.EntityTypes/BatchDeleteEntityTypes"
EntityTypes_BatchCreateEntities_FullMethodName = "/google.cloud.dialogflow.v2.EntityTypes/BatchCreateEntities"
EntityTypes_BatchUpdateEntities_FullMethodName = "/google.cloud.dialogflow.v2.EntityTypes/BatchUpdateEntities"
EntityTypes_BatchDeleteEntities_FullMethodName = "/google.cloud.dialogflow.v2.EntityTypes/BatchDeleteEntities"
)Environments_ListEnvironments_FullMethodName, Environments_GetEnvironment_FullMethodName, Environments_CreateEnvironment_FullMethodName, Environments_UpdateEnvironment_FullMethodName, Environments_DeleteEnvironment_FullMethodName, Environments_GetEnvironmentHistory_FullMethodName
const (
Environments_ListEnvironments_FullMethodName = "/google.cloud.dialogflow.v2.Environments/ListEnvironments"
Environments_GetEnvironment_FullMethodName = "/google.cloud.dialogflow.v2.Environments/GetEnvironment"
Environments_CreateEnvironment_FullMethodName = "/google.cloud.dialogflow.v2.Environments/CreateEnvironment"
Environments_UpdateEnvironment_FullMethodName = "/google.cloud.dialogflow.v2.Environments/UpdateEnvironment"
Environments_DeleteEnvironment_FullMethodName = "/google.cloud.dialogflow.v2.Environments/DeleteEnvironment"
Environments_GetEnvironmentHistory_FullMethodName = "/google.cloud.dialogflow.v2.Environments/GetEnvironmentHistory"
)Fulfillments_GetFulfillment_FullMethodName, Fulfillments_UpdateFulfillment_FullMethodName
const (
Fulfillments_GetFulfillment_FullMethodName = "/google.cloud.dialogflow.v2.Fulfillments/GetFulfillment"
Fulfillments_UpdateFulfillment_FullMethodName = "/google.cloud.dialogflow.v2.Fulfillments/UpdateFulfillment"
)Generators_CreateGenerator_FullMethodName, Generators_GetGenerator_FullMethodName, Generators_ListGenerators_FullMethodName, Generators_DeleteGenerator_FullMethodName, Generators_UpdateGenerator_FullMethodName
const (
Generators_CreateGenerator_FullMethodName = "/google.cloud.dialogflow.v2.Generators/CreateGenerator"
Generators_GetGenerator_FullMethodName = "/google.cloud.dialogflow.v2.Generators/GetGenerator"
Generators_ListGenerators_FullMethodName = "/google.cloud.dialogflow.v2.Generators/ListGenerators"
Generators_DeleteGenerator_FullMethodName = "/google.cloud.dialogflow.v2.Generators/DeleteGenerator"
Generators_UpdateGenerator_FullMethodName = "/google.cloud.dialogflow.v2.Generators/UpdateGenerator"
)Intents_ListIntents_FullMethodName, Intents_GetIntent_FullMethodName, Intents_CreateIntent_FullMethodName, Intents_UpdateIntent_FullMethodName, Intents_DeleteIntent_FullMethodName, Intents_BatchUpdateIntents_FullMethodName, Intents_BatchDeleteIntents_FullMethodName
const (
Intents_ListIntents_FullMethodName = "/google.cloud.dialogflow.v2.Intents/ListIntents"
Intents_GetIntent_FullMethodName = "/google.cloud.dialogflow.v2.Intents/GetIntent"
Intents_CreateIntent_FullMethodName = "/google.cloud.dialogflow.v2.Intents/CreateIntent"
Intents_UpdateIntent_FullMethodName = "/google.cloud.dialogflow.v2.Intents/UpdateIntent"
Intents_DeleteIntent_FullMethodName = "/google.cloud.dialogflow.v2.Intents/DeleteIntent"
Intents_BatchUpdateIntents_FullMethodName = "/google.cloud.dialogflow.v2.Intents/BatchUpdateIntents"
Intents_BatchDeleteIntents_FullMethodName = "/google.cloud.dialogflow.v2.Intents/BatchDeleteIntents"
)KnowledgeBases_ListKnowledgeBases_FullMethodName, KnowledgeBases_GetKnowledgeBase_FullMethodName, KnowledgeBases_CreateKnowledgeBase_FullMethodName, KnowledgeBases_DeleteKnowledgeBase_FullMethodName, KnowledgeBases_UpdateKnowledgeBase_FullMethodName
const (
KnowledgeBases_ListKnowledgeBases_FullMethodName = "/google.cloud.dialogflow.v2.KnowledgeBases/ListKnowledgeBases"
KnowledgeBases_GetKnowledgeBase_FullMethodName = "/google.cloud.dialogflow.v2.KnowledgeBases/GetKnowledgeBase"
KnowledgeBases_CreateKnowledgeBase_FullMethodName = "/google.cloud.dialogflow.v2.KnowledgeBases/CreateKnowledgeBase"
KnowledgeBases_DeleteKnowledgeBase_FullMethodName = "/google.cloud.dialogflow.v2.KnowledgeBases/DeleteKnowledgeBase"
KnowledgeBases_UpdateKnowledgeBase_FullMethodName = "/google.cloud.dialogflow.v2.KnowledgeBases/UpdateKnowledgeBase"
)Participants_CreateParticipant_FullMethodName, Participants_GetParticipant_FullMethodName, Participants_ListParticipants_FullMethodName, Participants_UpdateParticipant_FullMethodName, Participants_AnalyzeContent_FullMethodName, Participants_StreamingAnalyzeContent_FullMethodName, Participants_SuggestArticles_FullMethodName, Participants_SuggestFaqAnswers_FullMethodName, Participants_SuggestSmartReplies_FullMethodName, Participants_SuggestKnowledgeAssist_FullMethodName
const (
Participants_CreateParticipant_FullMethodName = "/google.cloud.dialogflow.v2.Participants/CreateParticipant"
Participants_GetParticipant_FullMethodName = "/google.cloud.dialogflow.v2.Participants/GetParticipant"
Participants_ListParticipants_FullMethodName = "/google.cloud.dialogflow.v2.Participants/ListParticipants"
Participants_UpdateParticipant_FullMethodName = "/google.cloud.dialogflow.v2.Participants/UpdateParticipant"
Participants_AnalyzeContent_FullMethodName = "/google.cloud.dialogflow.v2.Participants/AnalyzeContent"
Participants_StreamingAnalyzeContent_FullMethodName = "/google.cloud.dialogflow.v2.Participants/StreamingAnalyzeContent"
Participants_SuggestArticles_FullMethodName = "/google.cloud.dialogflow.v2.Participants/SuggestArticles"
Participants_SuggestFaqAnswers_FullMethodName = "/google.cloud.dialogflow.v2.Participants/SuggestFaqAnswers"
Participants_SuggestSmartReplies_FullMethodName = "/google.cloud.dialogflow.v2.Participants/SuggestSmartReplies"
Participants_SuggestKnowledgeAssist_FullMethodName = "/google.cloud.dialogflow.v2.Participants/SuggestKnowledgeAssist"
)SessionEntityTypes_ListSessionEntityTypes_FullMethodName, SessionEntityTypes_GetSessionEntityType_FullMethodName, SessionEntityTypes_CreateSessionEntityType_FullMethodName, SessionEntityTypes_UpdateSessionEntityType_FullMethodName, SessionEntityTypes_DeleteSessionEntityType_FullMethodName
const (
SessionEntityTypes_ListSessionEntityTypes_FullMethodName = "/google.cloud.dialogflow.v2.SessionEntityTypes/ListSessionEntityTypes"
SessionEntityTypes_GetSessionEntityType_FullMethodName = "/google.cloud.dialogflow.v2.SessionEntityTypes/GetSessionEntityType"
SessionEntityTypes_CreateSessionEntityType_FullMethodName = "/google.cloud.dialogflow.v2.SessionEntityTypes/CreateSessionEntityType"
SessionEntityTypes_UpdateSessionEntityType_FullMethodName = "/google.cloud.dialogflow.v2.SessionEntityTypes/UpdateSessionEntityType"
SessionEntityTypes_DeleteSessionEntityType_FullMethodName = "/google.cloud.dialogflow.v2.SessionEntityTypes/DeleteSessionEntityType"
)Sessions_DetectIntent_FullMethodName, Sessions_StreamingDetectIntent_FullMethodName
const (
Sessions_DetectIntent_FullMethodName = "/google.cloud.dialogflow.v2.Sessions/DetectIntent"
Sessions_StreamingDetectIntent_FullMethodName = "/google.cloud.dialogflow.v2.Sessions/StreamingDetectIntent"
)Versions_ListVersions_FullMethodName, Versions_GetVersion_FullMethodName, Versions_CreateVersion_FullMethodName, Versions_UpdateVersion_FullMethodName, Versions_DeleteVersion_FullMethodName
const (
Versions_ListVersions_FullMethodName = "/google.cloud.dialogflow.v2.Versions/ListVersions"
Versions_GetVersion_FullMethodName = "/google.cloud.dialogflow.v2.Versions/GetVersion"
Versions_CreateVersion_FullMethodName = "/google.cloud.dialogflow.v2.Versions/CreateVersion"
Versions_UpdateVersion_FullMethodName = "/google.cloud.dialogflow.v2.Versions/UpdateVersion"
Versions_DeleteVersion_FullMethodName = "/google.cloud.dialogflow.v2.Versions/DeleteVersion"
)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.
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.
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",
8: "AUDIO_ENCODING_ALAW",
}
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,
"AUDIO_ENCODING_ALAW": 8,
}
)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",
6: "OUTPUT_AUDIO_ENCODING_ALAW",
}
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,
"OUTPUT_AUDIO_ENCODING_ALAW": 6,
}
)Enum value maps for OutputAudioEncoding.
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.
Conversation_ContextReference_UpdateMode_name, Conversation_ContextReference_UpdateMode_value
var (
Conversation_ContextReference_UpdateMode_name = map[int32]string{
0: "UPDATE_MODE_UNSPECIFIED",
1: "APPEND",
2: "OVERWRITE",
}
Conversation_ContextReference_UpdateMode_value = map[string]int32{
"UPDATE_MODE_UNSPECIFIED": 0,
"APPEND": 1,
"OVERWRITE": 2,
}
)Enum value maps for Conversation_ContextReference_UpdateMode.
Conversation_ContextReference_ContextContent_ContentFormat_name, Conversation_ContextReference_ContextContent_ContentFormat_value
var (
Conversation_ContextReference_ContextContent_ContentFormat_name = map[int32]string{
0: "CONTENT_FORMAT_UNSPECIFIED",
1: "JSON",
2: "PLAIN_TEXT",
}
Conversation_ContextReference_ContextContent_ContentFormat_value = map[string]int32{
"CONTENT_FORMAT_UNSPECIFIED": 0,
"JSON": 1,
"PLAIN_TEXT": 2,
}
)Enum value maps for Conversation_ContextReference_ContextContent_ContentFormat.
SearchKnowledgeRequest_QuerySource_name, SearchKnowledgeRequest_QuerySource_value
var (
SearchKnowledgeRequest_QuerySource_name = map[int32]string{
0: "QUERY_SOURCE_UNSPECIFIED",
1: "AGENT_QUERY",
2: "SUGGESTED_QUERY",
}
SearchKnowledgeRequest_QuerySource_value = map[string]int32{
"QUERY_SOURCE_UNSPECIFIED": 0,
"AGENT_QUERY": 1,
"SUGGESTED_QUERY": 2,
}
)Enum value maps for SearchKnowledgeRequest_QuerySource.
SearchKnowledgeRequest_SearchConfig_BoostSpecs_BoostSpec_ConditionBoostSpec_BoostControlSpec_AttributeType_name, SearchKnowledgeRequest_SearchConfig_BoostSpecs_BoostSpec_ConditionBoostSpec_BoostControlSpec_AttributeType_value
var (
SearchKnowledgeRequest_SearchConfig_BoostSpecs_BoostSpec_ConditionBoostSpec_BoostControlSpec_AttributeType_name = map[int32]string{
0: "ATTRIBUTE_TYPE_UNSPECIFIED",
1: "NUMERICAL",
2: "FRESHNESS",
}
SearchKnowledgeRequest_SearchConfig_BoostSpecs_BoostSpec_ConditionBoostSpec_BoostControlSpec_AttributeType_value = map[string]int32{
"ATTRIBUTE_TYPE_UNSPECIFIED": 0,
"NUMERICAL": 1,
"FRESHNESS": 2,
}
)Enum value maps for SearchKnowledgeRequest_SearchConfig_BoostSpecs_BoostSpec_ConditionBoostSpec_BoostControlSpec_AttributeType.
SearchKnowledgeRequest_SearchConfig_BoostSpecs_BoostSpec_ConditionBoostSpec_BoostControlSpec_InterpolationType_name, SearchKnowledgeRequest_SearchConfig_BoostSpecs_BoostSpec_ConditionBoostSpec_BoostControlSpec_InterpolationType_value
var (
SearchKnowledgeRequest_SearchConfig_BoostSpecs_BoostSpec_ConditionBoostSpec_BoostControlSpec_InterpolationType_name = map[int32]string{
0: "INTERPOLATION_TYPE_UNSPECIFIED",
1: "LINEAR",
}
SearchKnowledgeRequest_SearchConfig_BoostSpecs_BoostSpec_ConditionBoostSpec_BoostControlSpec_InterpolationType_value = map[string]int32{
"INTERPOLATION_TYPE_UNSPECIFIED": 0,
"LINEAR": 1,
}
)Enum value maps for SearchKnowledgeRequest_SearchConfig_BoostSpecs_BoostSpec_ConditionBoostSpec_BoostControlSpec_InterpolationType.
SearchKnowledgeAnswer_AnswerType_name, SearchKnowledgeAnswer_AnswerType_value
var (
SearchKnowledgeAnswer_AnswerType_name = map[int32]string{
0: "ANSWER_TYPE_UNSPECIFIED",
1: "FAQ",
2: "GENERATIVE",
3: "INTENT",
}
SearchKnowledgeAnswer_AnswerType_value = map[string]int32{
"ANSWER_TYPE_UNSPECIFIED": 0,
"FAQ": 1,
"GENERATIVE": 2,
"INTENT": 3,
}
)Enum value maps for SearchKnowledgeAnswer_AnswerType.
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",
7: "NEW_RECOGNITION_RESULT",
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,
"NEW_RECOGNITION_RESULT": 7,
"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.
HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType_name, HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType_value
var (
HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType_name = map[int32]string{
0: "SECTION_TYPE_UNSPECIFIED",
1: "SITUATION",
2: "ACTION",
3: "RESOLUTION",
4: "REASON_FOR_CANCELLATION",
5: "CUSTOMER_SATISFACTION",
6: "ENTITIES",
}
HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType_value = map[string]int32{
"SECTION_TYPE_UNSPECIFIED": 0,
"SITUATION": 1,
"ACTION": 2,
"RESOLUTION": 3,
"REASON_FOR_CANCELLATION": 4,
"CUSTOMER_SATISFACTION": 5,
"ENTITIES": 6,
}
)Enum value maps for HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType.
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",
8: "CONVERSATION_SUMMARIZATION",
14: "KNOWLEDGE_SEARCH",
15: "KNOWLEDGE_ASSIST",
}
SuggestionFeature_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"ARTICLE_SUGGESTION": 1,
"FAQ": 2,
"SMART_REPLY": 3,
"CONVERSATION_SUMMARIZATION": 8,
"KNOWLEDGE_SEARCH": 14,
"KNOWLEDGE_ASSIST": 15,
}
)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.
TriggerEvent_name, TriggerEvent_value
var (
TriggerEvent_name = map[int32]string{
0: "TRIGGER_EVENT_UNSPECIFIED",
1: "END_OF_UTTERANCE",
2: "MANUAL_CALL",
3: "CUSTOMER_MESSAGE",
4: "AGENT_MESSAGE",
}
TriggerEvent_value = map[string]int32{
"TRIGGER_EVENT_UNSPECIFIED": 0,
"END_OF_UTTERANCE": 1,
"MANUAL_CALL": 2,
"CUSTOMER_MESSAGE": 3,
"AGENT_MESSAGE": 4,
}
)Enum value maps for TriggerEvent.
MessageEntry_Role_name, MessageEntry_Role_value
var (
MessageEntry_Role_name = map[int32]string{
0: "ROLE_UNSPECIFIED",
1: "HUMAN_AGENT",
2: "AUTOMATED_AGENT",
3: "END_USER",
}
MessageEntry_Role_value = map[string]int32{
"ROLE_UNSPECIFIED": 0,
"HUMAN_AGENT": 1,
"AUTOMATED_AGENT": 2,
"END_USER": 3,
}
)Enum value maps for MessageEntry_Role.
SummarizationSection_Type_name, SummarizationSection_Type_value
var (
SummarizationSection_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "SITUATION",
2: "ACTION",
3: "RESOLUTION",
4: "REASON_FOR_CANCELLATION",
5: "CUSTOMER_SATISFACTION",
6: "ENTITIES",
7: "CUSTOMER_DEFINED",
9: "SITUATION_CONCISE",
10: "ACTION_CONCISE",
}
SummarizationSection_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"SITUATION": 1,
"ACTION": 2,
"RESOLUTION": 3,
"REASON_FOR_CANCELLATION": 4,
"CUSTOMER_SATISFACTION": 5,
"ENTITIES": 6,
"CUSTOMER_DEFINED": 7,
"SITUATION_CONCISE": 9,
"ACTION_CONCISE": 10,
}
)Enum value maps for SummarizationSection_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.
Agents_ServiceDesc
var Agents_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Agents",
HandlerType: (*AgentsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAgent",
Handler: _Agents_GetAgent_Handler,
},
{
MethodName: "SetAgent",
Handler: _Agents_SetAgent_Handler,
},
{
MethodName: "DeleteAgent",
Handler: _Agents_DeleteAgent_Handler,
},
{
MethodName: "SearchAgents",
Handler: _Agents_SearchAgents_Handler,
},
{
MethodName: "TrainAgent",
Handler: _Agents_TrainAgent_Handler,
},
{
MethodName: "ExportAgent",
Handler: _Agents_ExportAgent_Handler,
},
{
MethodName: "ImportAgent",
Handler: _Agents_ImportAgent_Handler,
},
{
MethodName: "RestoreAgent",
Handler: _Agents_RestoreAgent_Handler,
},
{
MethodName: "GetValidationResult",
Handler: _Agents_GetValidationResult_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/agent.proto",
}Agents_ServiceDesc is the grpc.ServiceDesc for Agents service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
AnswerRecords_ServiceDesc
var AnswerRecords_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.AnswerRecords",
HandlerType: (*AnswerRecordsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListAnswerRecords",
Handler: _AnswerRecords_ListAnswerRecords_Handler,
},
{
MethodName: "UpdateAnswerRecord",
Handler: _AnswerRecords_UpdateAnswerRecord_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/answer_record.proto",
}AnswerRecords_ServiceDesc is the grpc.ServiceDesc for AnswerRecords service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Contexts_ServiceDesc
var Contexts_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Contexts",
HandlerType: (*ContextsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListContexts",
Handler: _Contexts_ListContexts_Handler,
},
{
MethodName: "GetContext",
Handler: _Contexts_GetContext_Handler,
},
{
MethodName: "CreateContext",
Handler: _Contexts_CreateContext_Handler,
},
{
MethodName: "UpdateContext",
Handler: _Contexts_UpdateContext_Handler,
},
{
MethodName: "DeleteContext",
Handler: _Contexts_DeleteContext_Handler,
},
{
MethodName: "DeleteAllContexts",
Handler: _Contexts_DeleteAllContexts_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/context.proto",
}Contexts_ServiceDesc is the grpc.ServiceDesc for Contexts service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
ConversationDatasets_ServiceDesc
var ConversationDatasets_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.ConversationDatasets",
HandlerType: (*ConversationDatasetsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateConversationDataset",
Handler: _ConversationDatasets_CreateConversationDataset_Handler,
},
{
MethodName: "GetConversationDataset",
Handler: _ConversationDatasets_GetConversationDataset_Handler,
},
{
MethodName: "ListConversationDatasets",
Handler: _ConversationDatasets_ListConversationDatasets_Handler,
},
{
MethodName: "DeleteConversationDataset",
Handler: _ConversationDatasets_DeleteConversationDataset_Handler,
},
{
MethodName: "ImportConversationData",
Handler: _ConversationDatasets_ImportConversationData_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/conversation_dataset.proto",
}ConversationDatasets_ServiceDesc is the grpc.ServiceDesc for ConversationDatasets service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
ConversationModels_ServiceDesc
var ConversationModels_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.ConversationModels",
HandlerType: (*ConversationModelsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateConversationModel",
Handler: _ConversationModels_CreateConversationModel_Handler,
},
{
MethodName: "GetConversationModel",
Handler: _ConversationModels_GetConversationModel_Handler,
},
{
MethodName: "ListConversationModels",
Handler: _ConversationModels_ListConversationModels_Handler,
},
{
MethodName: "DeleteConversationModel",
Handler: _ConversationModels_DeleteConversationModel_Handler,
},
{
MethodName: "DeployConversationModel",
Handler: _ConversationModels_DeployConversationModel_Handler,
},
{
MethodName: "UndeployConversationModel",
Handler: _ConversationModels_UndeployConversationModel_Handler,
},
{
MethodName: "GetConversationModelEvaluation",
Handler: _ConversationModels_GetConversationModelEvaluation_Handler,
},
{
MethodName: "ListConversationModelEvaluations",
Handler: _ConversationModels_ListConversationModelEvaluations_Handler,
},
{
MethodName: "CreateConversationModelEvaluation",
Handler: _ConversationModels_CreateConversationModelEvaluation_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/conversation_model.proto",
}ConversationModels_ServiceDesc is the grpc.ServiceDesc for ConversationModels service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
ConversationProfiles_ServiceDesc
var ConversationProfiles_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.ConversationProfiles",
HandlerType: (*ConversationProfilesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListConversationProfiles",
Handler: _ConversationProfiles_ListConversationProfiles_Handler,
},
{
MethodName: "GetConversationProfile",
Handler: _ConversationProfiles_GetConversationProfile_Handler,
},
{
MethodName: "CreateConversationProfile",
Handler: _ConversationProfiles_CreateConversationProfile_Handler,
},
{
MethodName: "UpdateConversationProfile",
Handler: _ConversationProfiles_UpdateConversationProfile_Handler,
},
{
MethodName: "DeleteConversationProfile",
Handler: _ConversationProfiles_DeleteConversationProfile_Handler,
},
{
MethodName: "SetSuggestionFeatureConfig",
Handler: _ConversationProfiles_SetSuggestionFeatureConfig_Handler,
},
{
MethodName: "ClearSuggestionFeatureConfig",
Handler: _ConversationProfiles_ClearSuggestionFeatureConfig_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/conversation_profile.proto",
}ConversationProfiles_ServiceDesc is the grpc.ServiceDesc for ConversationProfiles service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Conversations_ServiceDesc
var Conversations_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Conversations",
HandlerType: (*ConversationsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateConversation",
Handler: _Conversations_CreateConversation_Handler,
},
{
MethodName: "ListConversations",
Handler: _Conversations_ListConversations_Handler,
},
{
MethodName: "GetConversation",
Handler: _Conversations_GetConversation_Handler,
},
{
MethodName: "CompleteConversation",
Handler: _Conversations_CompleteConversation_Handler,
},
{
MethodName: "IngestContextReferences",
Handler: _Conversations_IngestContextReferences_Handler,
},
{
MethodName: "ListMessages",
Handler: _Conversations_ListMessages_Handler,
},
{
MethodName: "SuggestConversationSummary",
Handler: _Conversations_SuggestConversationSummary_Handler,
},
{
MethodName: "GenerateStatelessSummary",
Handler: _Conversations_GenerateStatelessSummary_Handler,
},
{
MethodName: "GenerateStatelessSuggestion",
Handler: _Conversations_GenerateStatelessSuggestion_Handler,
},
{
MethodName: "SearchKnowledge",
Handler: _Conversations_SearchKnowledge_Handler,
},
{
MethodName: "GenerateSuggestions",
Handler: _Conversations_GenerateSuggestions_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/conversation.proto",
}Conversations_ServiceDesc is the grpc.ServiceDesc for Conversations service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Documents_ServiceDesc
var Documents_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Documents",
HandlerType: (*DocumentsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListDocuments",
Handler: _Documents_ListDocuments_Handler,
},
{
MethodName: "GetDocument",
Handler: _Documents_GetDocument_Handler,
},
{
MethodName: "CreateDocument",
Handler: _Documents_CreateDocument_Handler,
},
{
MethodName: "ImportDocuments",
Handler: _Documents_ImportDocuments_Handler,
},
{
MethodName: "DeleteDocument",
Handler: _Documents_DeleteDocument_Handler,
},
{
MethodName: "UpdateDocument",
Handler: _Documents_UpdateDocument_Handler,
},
{
MethodName: "ReloadDocument",
Handler: _Documents_ReloadDocument_Handler,
},
{
MethodName: "ExportDocument",
Handler: _Documents_ExportDocument_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/document.proto",
}Documents_ServiceDesc is the grpc.ServiceDesc for Documents service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
EncryptionSpecService_ServiceDesc
var EncryptionSpecService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.EncryptionSpecService",
HandlerType: (*EncryptionSpecServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetEncryptionSpec",
Handler: _EncryptionSpecService_GetEncryptionSpec_Handler,
},
{
MethodName: "InitializeEncryptionSpec",
Handler: _EncryptionSpecService_InitializeEncryptionSpec_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/encryption_spec.proto",
}EncryptionSpecService_ServiceDesc is the grpc.ServiceDesc for EncryptionSpecService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
EntityTypes_ServiceDesc
var EntityTypes_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.EntityTypes",
HandlerType: (*EntityTypesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListEntityTypes",
Handler: _EntityTypes_ListEntityTypes_Handler,
},
{
MethodName: "GetEntityType",
Handler: _EntityTypes_GetEntityType_Handler,
},
{
MethodName: "CreateEntityType",
Handler: _EntityTypes_CreateEntityType_Handler,
},
{
MethodName: "UpdateEntityType",
Handler: _EntityTypes_UpdateEntityType_Handler,
},
{
MethodName: "DeleteEntityType",
Handler: _EntityTypes_DeleteEntityType_Handler,
},
{
MethodName: "BatchUpdateEntityTypes",
Handler: _EntityTypes_BatchUpdateEntityTypes_Handler,
},
{
MethodName: "BatchDeleteEntityTypes",
Handler: _EntityTypes_BatchDeleteEntityTypes_Handler,
},
{
MethodName: "BatchCreateEntities",
Handler: _EntityTypes_BatchCreateEntities_Handler,
},
{
MethodName: "BatchUpdateEntities",
Handler: _EntityTypes_BatchUpdateEntities_Handler,
},
{
MethodName: "BatchDeleteEntities",
Handler: _EntityTypes_BatchDeleteEntities_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/entity_type.proto",
}EntityTypes_ServiceDesc is the grpc.ServiceDesc for EntityTypes service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Environments_ServiceDesc
var Environments_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Environments",
HandlerType: (*EnvironmentsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListEnvironments",
Handler: _Environments_ListEnvironments_Handler,
},
{
MethodName: "GetEnvironment",
Handler: _Environments_GetEnvironment_Handler,
},
{
MethodName: "CreateEnvironment",
Handler: _Environments_CreateEnvironment_Handler,
},
{
MethodName: "UpdateEnvironment",
Handler: _Environments_UpdateEnvironment_Handler,
},
{
MethodName: "DeleteEnvironment",
Handler: _Environments_DeleteEnvironment_Handler,
},
{
MethodName: "GetEnvironmentHistory",
Handler: _Environments_GetEnvironmentHistory_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/environment.proto",
}Environments_ServiceDesc is the grpc.ServiceDesc for Environments service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_cloud_dialogflow_v2_agent_proto
var File_google_cloud_dialogflow_v2_agent_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_answer_record_proto
var File_google_cloud_dialogflow_v2_answer_record_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_audio_config_proto
var File_google_cloud_dialogflow_v2_audio_config_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_context_proto
var File_google_cloud_dialogflow_v2_context_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_conversation_dataset_proto
var File_google_cloud_dialogflow_v2_conversation_dataset_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_conversation_event_proto
var File_google_cloud_dialogflow_v2_conversation_event_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_conversation_model_proto
var File_google_cloud_dialogflow_v2_conversation_model_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_conversation_profile_proto
var File_google_cloud_dialogflow_v2_conversation_profile_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_conversation_proto
var File_google_cloud_dialogflow_v2_conversation_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_document_proto
var File_google_cloud_dialogflow_v2_document_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_encryption_spec_proto
var File_google_cloud_dialogflow_v2_encryption_spec_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_entity_type_proto
var File_google_cloud_dialogflow_v2_entity_type_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_environment_proto
var File_google_cloud_dialogflow_v2_environment_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_fulfillment_proto
var File_google_cloud_dialogflow_v2_fulfillment_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_gcs_proto
var File_google_cloud_dialogflow_v2_gcs_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_generator_proto
var File_google_cloud_dialogflow_v2_generator_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_human_agent_assistant_event_proto
var File_google_cloud_dialogflow_v2_human_agent_assistant_event_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_intent_proto
var File_google_cloud_dialogflow_v2_intent_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_knowledge_base_proto
var File_google_cloud_dialogflow_v2_knowledge_base_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_participant_proto
var File_google_cloud_dialogflow_v2_participant_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_session_entity_type_proto
var File_google_cloud_dialogflow_v2_session_entity_type_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_session_proto
var File_google_cloud_dialogflow_v2_session_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_validation_result_proto
var File_google_cloud_dialogflow_v2_validation_result_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_version_proto
var File_google_cloud_dialogflow_v2_version_proto protoreflect.FileDescriptorFile_google_cloud_dialogflow_v2_webhook_proto
var File_google_cloud_dialogflow_v2_webhook_proto protoreflect.FileDescriptorFulfillments_ServiceDesc
var Fulfillments_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Fulfillments",
HandlerType: (*FulfillmentsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetFulfillment",
Handler: _Fulfillments_GetFulfillment_Handler,
},
{
MethodName: "UpdateFulfillment",
Handler: _Fulfillments_UpdateFulfillment_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/fulfillment.proto",
}Fulfillments_ServiceDesc is the grpc.ServiceDesc for Fulfillments service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Generators_ServiceDesc
var Generators_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Generators",
HandlerType: (*GeneratorsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateGenerator",
Handler: _Generators_CreateGenerator_Handler,
},
{
MethodName: "GetGenerator",
Handler: _Generators_GetGenerator_Handler,
},
{
MethodName: "ListGenerators",
Handler: _Generators_ListGenerators_Handler,
},
{
MethodName: "DeleteGenerator",
Handler: _Generators_DeleteGenerator_Handler,
},
{
MethodName: "UpdateGenerator",
Handler: _Generators_UpdateGenerator_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/generator.proto",
}Generators_ServiceDesc is the grpc.ServiceDesc for Generators service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Intents_ServiceDesc
var Intents_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Intents",
HandlerType: (*IntentsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListIntents",
Handler: _Intents_ListIntents_Handler,
},
{
MethodName: "GetIntent",
Handler: _Intents_GetIntent_Handler,
},
{
MethodName: "CreateIntent",
Handler: _Intents_CreateIntent_Handler,
},
{
MethodName: "UpdateIntent",
Handler: _Intents_UpdateIntent_Handler,
},
{
MethodName: "DeleteIntent",
Handler: _Intents_DeleteIntent_Handler,
},
{
MethodName: "BatchUpdateIntents",
Handler: _Intents_BatchUpdateIntents_Handler,
},
{
MethodName: "BatchDeleteIntents",
Handler: _Intents_BatchDeleteIntents_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/intent.proto",
}Intents_ServiceDesc is the grpc.ServiceDesc for Intents service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
KnowledgeBases_ServiceDesc
var KnowledgeBases_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.KnowledgeBases",
HandlerType: (*KnowledgeBasesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListKnowledgeBases",
Handler: _KnowledgeBases_ListKnowledgeBases_Handler,
},
{
MethodName: "GetKnowledgeBase",
Handler: _KnowledgeBases_GetKnowledgeBase_Handler,
},
{
MethodName: "CreateKnowledgeBase",
Handler: _KnowledgeBases_CreateKnowledgeBase_Handler,
},
{
MethodName: "DeleteKnowledgeBase",
Handler: _KnowledgeBases_DeleteKnowledgeBase_Handler,
},
{
MethodName: "UpdateKnowledgeBase",
Handler: _KnowledgeBases_UpdateKnowledgeBase_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/knowledge_base.proto",
}KnowledgeBases_ServiceDesc is the grpc.ServiceDesc for KnowledgeBases service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Participants_ServiceDesc
var Participants_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Participants",
HandlerType: (*ParticipantsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateParticipant",
Handler: _Participants_CreateParticipant_Handler,
},
{
MethodName: "GetParticipant",
Handler: _Participants_GetParticipant_Handler,
},
{
MethodName: "ListParticipants",
Handler: _Participants_ListParticipants_Handler,
},
{
MethodName: "UpdateParticipant",
Handler: _Participants_UpdateParticipant_Handler,
},
{
MethodName: "AnalyzeContent",
Handler: _Participants_AnalyzeContent_Handler,
},
{
MethodName: "SuggestArticles",
Handler: _Participants_SuggestArticles_Handler,
},
{
MethodName: "SuggestFaqAnswers",
Handler: _Participants_SuggestFaqAnswers_Handler,
},
{
MethodName: "SuggestSmartReplies",
Handler: _Participants_SuggestSmartReplies_Handler,
},
{
MethodName: "SuggestKnowledgeAssist",
Handler: _Participants_SuggestKnowledgeAssist_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "StreamingAnalyzeContent",
Handler: _Participants_StreamingAnalyzeContent_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "google/cloud/dialogflow/v2/participant.proto",
}Participants_ServiceDesc is the grpc.ServiceDesc for Participants service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
SessionEntityTypes_ServiceDesc
var SessionEntityTypes_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.SessionEntityTypes",
HandlerType: (*SessionEntityTypesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListSessionEntityTypes",
Handler: _SessionEntityTypes_ListSessionEntityTypes_Handler,
},
{
MethodName: "GetSessionEntityType",
Handler: _SessionEntityTypes_GetSessionEntityType_Handler,
},
{
MethodName: "CreateSessionEntityType",
Handler: _SessionEntityTypes_CreateSessionEntityType_Handler,
},
{
MethodName: "UpdateSessionEntityType",
Handler: _SessionEntityTypes_UpdateSessionEntityType_Handler,
},
{
MethodName: "DeleteSessionEntityType",
Handler: _SessionEntityTypes_DeleteSessionEntityType_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/session_entity_type.proto",
}SessionEntityTypes_ServiceDesc is the grpc.ServiceDesc for SessionEntityTypes service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Sessions_ServiceDesc
var Sessions_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Sessions",
HandlerType: (*SessionsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "DetectIntent",
Handler: _Sessions_DetectIntent_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "StreamingDetectIntent",
Handler: _Sessions_StreamingDetectIntent_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "google/cloud/dialogflow/v2/session.proto",
}Sessions_ServiceDesc is the grpc.ServiceDesc for Sessions service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Versions_ServiceDesc
var Versions_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Versions",
HandlerType: (*VersionsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListVersions",
Handler: _Versions_ListVersions_Handler,
},
{
MethodName: "GetVersion",
Handler: _Versions_GetVersion_Handler,
},
{
MethodName: "CreateVersion",
Handler: _Versions_CreateVersion_Handler,
},
{
MethodName: "UpdateVersion",
Handler: _Versions_UpdateVersion_Handler,
},
{
MethodName: "DeleteVersion",
Handler: _Versions_DeleteVersion_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/version.proto",
}Versions_ServiceDesc is the grpc.ServiceDesc for Versions service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterAgentsServer
func RegisterAgentsServer(s grpc.ServiceRegistrar, srv AgentsServer)func RegisterAnswerRecordsServer
func RegisterAnswerRecordsServer(s grpc.ServiceRegistrar, srv AnswerRecordsServer)func RegisterContextsServer
func RegisterContextsServer(s grpc.ServiceRegistrar, srv ContextsServer)func RegisterConversationDatasetsServer
func RegisterConversationDatasetsServer(s grpc.ServiceRegistrar, srv ConversationDatasetsServer)func RegisterConversationModelsServer
func RegisterConversationModelsServer(s grpc.ServiceRegistrar, srv ConversationModelsServer)func RegisterConversationProfilesServer
func RegisterConversationProfilesServer(s grpc.ServiceRegistrar, srv ConversationProfilesServer)func RegisterConversationsServer
func RegisterConversationsServer(s grpc.ServiceRegistrar, srv ConversationsServer)func RegisterDocumentsServer
func RegisterDocumentsServer(s grpc.ServiceRegistrar, srv DocumentsServer)func RegisterEncryptionSpecServiceServer
func RegisterEncryptionSpecServiceServer(s grpc.ServiceRegistrar, srv EncryptionSpecServiceServer)func RegisterEntityTypesServer
func RegisterEntityTypesServer(s grpc.ServiceRegistrar, srv EntityTypesServer)func RegisterEnvironmentsServer
func RegisterEnvironmentsServer(s grpc.ServiceRegistrar, srv EnvironmentsServer)func RegisterFulfillmentsServer
func RegisterFulfillmentsServer(s grpc.ServiceRegistrar, srv FulfillmentsServer)func RegisterGeneratorsServer
func RegisterGeneratorsServer(s grpc.ServiceRegistrar, srv GeneratorsServer)func RegisterIntentsServer
func RegisterIntentsServer(s grpc.ServiceRegistrar, srv IntentsServer)func RegisterKnowledgeBasesServer
func RegisterKnowledgeBasesServer(s grpc.ServiceRegistrar, srv KnowledgeBasesServer)func RegisterParticipantsServer
func RegisterParticipantsServer(s grpc.ServiceRegistrar, srv ParticipantsServer)func RegisterSessionEntityTypesServer
func RegisterSessionEntityTypesServer(s grpc.ServiceRegistrar, srv SessionEntityTypesServer)func RegisterSessionsServer
func RegisterSessionsServer(s grpc.ServiceRegistrar, srv SessionsServer)func RegisterVersionsServer
func RegisterVersionsServer(s grpc.ServiceRegistrar, srv VersionsServer)Agent
type Agent struct {
// Required. The project of this agent.
// Format: `projects/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_ApiVersionfunc (*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_MatchModeDeprecated: Marked as deprecated in google/cloud/dialogflow/v2/agent.proto.
func (*Agent) GetParent
func (*Agent) GetSupportedLanguageCodes
func (*Agent) GetTier
func (x *Agent) GetTier() Agent_Tierfunc (*Agent) GetTimeZone
func (*Agent) ProtoMessage
func (*Agent) ProtoMessage()func (*Agent) ProtoReflect
func (x *Agent) ProtoReflect() protoreflect.Messagefunc (*Agent) Reset
func (x *Agent) Reset()func (*Agent) String
AgentAssistantFeedback
type AgentAssistantFeedback struct {
// Optional. Whether or not the suggested answer is relevant.
//
// For example:
//
// - Query: "Can I change my mailing address?"
// - Suggested document says: "Items must be returned/exchanged within 60
// days of the purchase date."
// - [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
AnswerRelevance AgentAssistantFeedback_AnswerRelevance `protobuf:"varint,1,opt,name=answer_relevance,json=answerRelevance,proto3,enum=google.cloud.dialogflow.v2.AgentAssistantFeedback_AnswerRelevance" json:"answer_relevance,omitempty"`
// Optional. Whether or not the information in the document is correct.
//
// For example:
//
// - Query: "Can I return the package in 2 days once received?"
// - Suggested document says: "Items must be returned/exchanged within 60
// days of the purchase date."
// - Ground truth: "No return or exchange is allowed."
// - [document_correctness][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_correctness]: [INCORRECT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.INCORRECT]
DocumentCorrectness AgentAssistantFeedback_DocumentCorrectness `protobuf:"varint,2,opt,name=document_correctness,json=documentCorrectness,proto3,enum=google.cloud.dialogflow.v2.AgentAssistantFeedback_DocumentCorrectness" json:"document_correctness,omitempty"`
// Optional. Whether or not the suggested document is efficient. For example,
// if the document is poorly written, hard to understand, hard to use or
// too long to find useful information,
// [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency]
// is
// [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
DocumentEfficiency AgentAssistantFeedback_DocumentEfficiency `protobuf:"varint,3,opt,name=document_efficiency,json=documentEfficiency,proto3,enum=google.cloud.dialogflow.v2.AgentAssistantFeedback_DocumentEfficiency" json:"document_efficiency,omitempty"`
// Optional. Feedback for conversation summarization.
SummarizationFeedback *AgentAssistantFeedback_SummarizationFeedback `protobuf:"bytes,4,opt,name=summarization_feedback,json=summarizationFeedback,proto3" json:"summarization_feedback,omitempty"`
// Optional. Feedback for knowledge search.
KnowledgeSearchFeedback *AgentAssistantFeedback_KnowledgeSearchFeedback `protobuf:"bytes,5,opt,name=knowledge_search_feedback,json=knowledgeSearchFeedback,proto3" json:"knowledge_search_feedback,omitempty"`
// Optional. Feedback for knowledge assist.
KnowledgeAssistFeedback *AgentAssistantFeedback_KnowledgeAssistFeedback `protobuf:"bytes,6,opt,name=knowledge_assist_feedback,json=knowledgeAssistFeedback,proto3" json:"knowledge_assist_feedback,omitempty"`
// contains filtered or unexported fields
}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_AnswerRelevancefunc (*AgentAssistantFeedback) GetDocumentCorrectness
func (x *AgentAssistantFeedback) GetDocumentCorrectness() AgentAssistantFeedback_DocumentCorrectnessfunc (*AgentAssistantFeedback) GetDocumentEfficiency
func (x *AgentAssistantFeedback) GetDocumentEfficiency() AgentAssistantFeedback_DocumentEfficiencyfunc (*AgentAssistantFeedback) GetKnowledgeAssistFeedback
func (x *AgentAssistantFeedback) GetKnowledgeAssistFeedback() *AgentAssistantFeedback_KnowledgeAssistFeedbackfunc (*AgentAssistantFeedback) GetKnowledgeSearchFeedback
func (x *AgentAssistantFeedback) GetKnowledgeSearchFeedback() *AgentAssistantFeedback_KnowledgeSearchFeedbackfunc (*AgentAssistantFeedback) GetSummarizationFeedback
func (x *AgentAssistantFeedback) GetSummarizationFeedback() *AgentAssistantFeedback_SummarizationFeedbackfunc (*AgentAssistantFeedback) ProtoMessage
func (*AgentAssistantFeedback) ProtoMessage()func (*AgentAssistantFeedback) ProtoReflect
func (x *AgentAssistantFeedback) ProtoReflect() protoreflect.Messagefunc (*AgentAssistantFeedback) Reset
func (x *AgentAssistantFeedback) Reset()func (*AgentAssistantFeedback) String
func (x *AgentAssistantFeedback) String() stringAgentAssistantFeedback_AnswerRelevance
type AgentAssistantFeedback_AnswerRelevance int32Relevance 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.EnumDescriptorfunc (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.EnumNumberfunc (AgentAssistantFeedback_AnswerRelevance) String
func (x AgentAssistantFeedback_AnswerRelevance) String() stringfunc (AgentAssistantFeedback_AnswerRelevance) Type
func (AgentAssistantFeedback_AnswerRelevance) Type() protoreflect.EnumTypeAgentAssistantFeedback_DocumentCorrectness
type AgentAssistantFeedback_DocumentCorrectness int32Correctness 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.EnumDescriptorfunc (AgentAssistantFeedback_DocumentCorrectness) Enum
func (x AgentAssistantFeedback_DocumentCorrectness) Enum() *AgentAssistantFeedback_DocumentCorrectnessfunc (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.EnumNumberfunc (AgentAssistantFeedback_DocumentCorrectness) String
func (x AgentAssistantFeedback_DocumentCorrectness) String() stringfunc (AgentAssistantFeedback_DocumentCorrectness) Type
func (AgentAssistantFeedback_DocumentCorrectness) Type() protoreflect.EnumTypeAgentAssistantFeedback_DocumentEfficiency
type AgentAssistantFeedback_DocumentEfficiency int32Efficiency 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.EnumDescriptorfunc (AgentAssistantFeedback_DocumentEfficiency) Enum
func (x AgentAssistantFeedback_DocumentEfficiency) Enum() *AgentAssistantFeedback_DocumentEfficiencyfunc (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.EnumNumberfunc (AgentAssistantFeedback_DocumentEfficiency) String
func (x AgentAssistantFeedback_DocumentEfficiency) String() stringfunc (AgentAssistantFeedback_DocumentEfficiency) Type
func (AgentAssistantFeedback_DocumentEfficiency) Type() protoreflect.EnumTypeAgentAssistantFeedback_KnowledgeAssistFeedback
type AgentAssistantFeedback_KnowledgeAssistFeedback struct {
// Whether the suggested answer was copied by the human agent.
// If the value is set to be true,
// [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
// will be updated to be true.
AnswerCopied bool `protobuf:"varint,1,opt,name=answer_copied,json=answerCopied,proto3" json:"answer_copied,omitempty"`
// The URIs clicked by the human agent. The value is appended for each
// UpdateAnswerRecordRequest.
// If the value is not empty,
// [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
// will be updated to be true.
ClickedUris []string `protobuf:"bytes,2,rep,name=clicked_uris,json=clickedUris,proto3" json:"clicked_uris,omitempty"`
// contains filtered or unexported fields
}Feedback for knowledge assist.
func (*AgentAssistantFeedback_KnowledgeAssistFeedback) Descriptor
func (*AgentAssistantFeedback_KnowledgeAssistFeedback) Descriptor() ([]byte, []int)Deprecated: Use AgentAssistantFeedback_KnowledgeAssistFeedback.ProtoReflect.Descriptor instead.
func (*AgentAssistantFeedback_KnowledgeAssistFeedback) GetAnswerCopied
func (x *AgentAssistantFeedback_KnowledgeAssistFeedback) GetAnswerCopied() boolfunc (*AgentAssistantFeedback_KnowledgeAssistFeedback) GetClickedUris
func (x *AgentAssistantFeedback_KnowledgeAssistFeedback) GetClickedUris() []stringfunc (*AgentAssistantFeedback_KnowledgeAssistFeedback) ProtoMessage
func (*AgentAssistantFeedback_KnowledgeAssistFeedback) ProtoMessage()func (*AgentAssistantFeedback_KnowledgeAssistFeedback) ProtoReflect
func (x *AgentAssistantFeedback_KnowledgeAssistFeedback) ProtoReflect() protoreflect.Messagefunc (*AgentAssistantFeedback_KnowledgeAssistFeedback) Reset
func (x *AgentAssistantFeedback_KnowledgeAssistFeedback) Reset()func (*AgentAssistantFeedback_KnowledgeAssistFeedback) String
func (x *AgentAssistantFeedback_KnowledgeAssistFeedback) String() stringAgentAssistantFeedback_KnowledgeSearchFeedback
type AgentAssistantFeedback_KnowledgeSearchFeedback struct {
// Whether the answer was copied by the human agent or not.
// If the value is set to be true,
// [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
// will be updated to be true.
AnswerCopied bool `protobuf:"varint,1,opt,name=answer_copied,json=answerCopied,proto3" json:"answer_copied,omitempty"`
// The URIs clicked by the human agent. The value is appended for each
// [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
// If the value is not empty,
// [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
// will be updated to be true.
ClickedUris []string `protobuf:"bytes,2,rep,name=clicked_uris,json=clickedUris,proto3" json:"clicked_uris,omitempty"`
// contains filtered or unexported fields
}Feedback for knowledge search.
func (*AgentAssistantFeedback_KnowledgeSearchFeedback) Descriptor
func (*AgentAssistantFeedback_KnowledgeSearchFeedback) Descriptor() ([]byte, []int)Deprecated: Use AgentAssistantFeedback_KnowledgeSearchFeedback.ProtoReflect.Descriptor instead.
func (*AgentAssistantFeedback_KnowledgeSearchFeedback) GetAnswerCopied
func (x *AgentAssistantFeedback_KnowledgeSearchFeedback) GetAnswerCopied() boolfunc (*AgentAssistantFeedback_KnowledgeSearchFeedback) GetClickedUris
func (x *AgentAssistantFeedback_KnowledgeSearchFeedback) GetClickedUris() []stringfunc (*AgentAssistantFeedback_KnowledgeSearchFeedback) ProtoMessage
func (*AgentAssistantFeedback_KnowledgeSearchFeedback) ProtoMessage()func (*AgentAssistantFeedback_KnowledgeSearchFeedback) ProtoReflect
func (x *AgentAssistantFeedback_KnowledgeSearchFeedback) ProtoReflect() protoreflect.Messagefunc (*AgentAssistantFeedback_KnowledgeSearchFeedback) Reset
func (x *AgentAssistantFeedback_KnowledgeSearchFeedback) Reset()func (*AgentAssistantFeedback_KnowledgeSearchFeedback) String
func (x *AgentAssistantFeedback_KnowledgeSearchFeedback) String() stringAgentAssistantFeedback_SummarizationFeedback
type AgentAssistantFeedback_SummarizationFeedback struct {
// Timestamp when composing of the summary starts.
StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Timestamp when the summary was submitted.
SubmitTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
// Text of actual submitted summary.
SummaryText string `protobuf:"bytes,3,opt,name=summary_text,json=summaryText,proto3" json:"summary_text,omitempty"`
// Optional. Actual text sections of submitted summary.
TextSections map[string]string `protobuf:"bytes,4,rep,name=text_sections,json=textSections,proto3" json:"text_sections,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}Feedback for conversation summarization.
func (*AgentAssistantFeedback_SummarizationFeedback) Descriptor
func (*AgentAssistantFeedback_SummarizationFeedback) Descriptor() ([]byte, []int)Deprecated: Use AgentAssistantFeedback_SummarizationFeedback.ProtoReflect.Descriptor instead.
func (*AgentAssistantFeedback_SummarizationFeedback) GetStartTime
func (x *AgentAssistantFeedback_SummarizationFeedback) GetStartTime() *timestamppb.Timestampfunc (*AgentAssistantFeedback_SummarizationFeedback) GetSubmitTime
func (x *AgentAssistantFeedback_SummarizationFeedback) GetSubmitTime() *timestamppb.Timestampfunc (*AgentAssistantFeedback_SummarizationFeedback) GetSummaryText
func (x *AgentAssistantFeedback_SummarizationFeedback) GetSummaryText() stringfunc (*AgentAssistantFeedback_SummarizationFeedback) GetTextSections
func (x *AgentAssistantFeedback_SummarizationFeedback) GetTextSections() map[string]stringfunc (*AgentAssistantFeedback_SummarizationFeedback) ProtoMessage
func (*AgentAssistantFeedback_SummarizationFeedback) ProtoMessage()func (*AgentAssistantFeedback_SummarizationFeedback) ProtoReflect
func (x *AgentAssistantFeedback_SummarizationFeedback) ProtoReflect() protoreflect.Messagefunc (*AgentAssistantFeedback_SummarizationFeedback) Reset
func (x *AgentAssistantFeedback_SummarizationFeedback) Reset()func (*AgentAssistantFeedback_SummarizationFeedback) String
func (x *AgentAssistantFeedback_SummarizationFeedback) String() stringAgentAssistantRecord
type AgentAssistantRecord struct {
// Output only. The agent assist answer.
//
// Types that are assignable to Answer:
//
// *AgentAssistantRecord_ArticleSuggestionAnswer
// *AgentAssistantRecord_FaqAnswer
// *AgentAssistantRecord_DialogflowAssistAnswer
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_Answerfunc (*AgentAssistantRecord) GetArticleSuggestionAnswer
func (x *AgentAssistantRecord) GetArticleSuggestionAnswer() *ArticleAnswerfunc (*AgentAssistantRecord) GetDialogflowAssistAnswer
func (x *AgentAssistantRecord) GetDialogflowAssistAnswer() *DialogflowAssistAnswerfunc (*AgentAssistantRecord) GetFaqAnswer
func (x *AgentAssistantRecord) GetFaqAnswer() *FaqAnswerfunc (*AgentAssistantRecord) ProtoMessage
func (*AgentAssistantRecord) ProtoMessage()func (*AgentAssistantRecord) ProtoReflect
func (x *AgentAssistantRecord) ProtoReflect() protoreflect.Messagefunc (*AgentAssistantRecord) Reset
func (x *AgentAssistantRecord) Reset()func (*AgentAssistantRecord) String
func (x *AgentAssistantRecord) String() stringAgentAssistantRecord_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_DialogflowAssistAnswer
type AgentAssistantRecord_DialogflowAssistAnswer struct {
// Output only. Dialogflow assist answer.
DialogflowAssistAnswer *DialogflowAssistAnswer `protobuf:"bytes,7,opt,name=dialogflow_assist_answer,json=dialogflowAssistAnswer,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 int32API 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.EnumDescriptorfunc (Agent_ApiVersion) Enum
func (x Agent_ApiVersion) Enum() *Agent_ApiVersionfunc (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.EnumNumberfunc (Agent_ApiVersion) String
func (x Agent_ApiVersion) String() stringfunc (Agent_ApiVersion) Type
func (Agent_ApiVersion) Type() protoreflect.EnumTypeAgent_MatchMode
type Agent_MatchMode int32Match 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.EnumDescriptorfunc (Agent_MatchMode) Enum
func (x Agent_MatchMode) Enum() *Agent_MatchModefunc (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.EnumNumberfunc (Agent_MatchMode) String
func (x Agent_MatchMode) String() stringfunc (Agent_MatchMode) Type
func (Agent_MatchMode) Type() protoreflect.EnumTypeAgent_Tier
type Agent_Tier int32Represents 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: Marked as deprecated in google/cloud/dialogflow/v2/agent.proto.
Agent_TIER_ENTERPRISE_PLUS Agent_Tier = 3
)func (Agent_Tier) Descriptor
func (Agent_Tier) Descriptor() protoreflect.EnumDescriptorfunc (Agent_Tier) Enum
func (x Agent_Tier) Enum() *Agent_Tierfunc (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.EnumNumberfunc (Agent_Tier) String
func (x Agent_Tier) String() stringfunc (Agent_Tier) Type
func (Agent_Tier) Type() protoreflect.EnumTypeAgentsClient
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) (*longrunningpb.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) (*longrunningpb.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) (*longrunningpb.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) (*longrunningpb.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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAgentsClient
func NewAgentsClient(cc grpc.ClientConnInterface) AgentsClientAgentsServer
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) (*longrunningpb.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) (*longrunningpb.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) (*longrunningpb.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) (*longrunningpb.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. All implementations should embed UnimplementedAgentsServer for forward compatibility
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() *AssistQueryParametersfunc (*AnalyzeContentRequest) GetAudioInput
func (x *AnalyzeContentRequest) GetAudioInput() *AudioInputfunc (*AnalyzeContentRequest) GetCxParameters
func (x *AnalyzeContentRequest) GetCxParameters() *structpb.Structfunc (*AnalyzeContentRequest) GetEventInput
func (x *AnalyzeContentRequest) GetEventInput() *EventInputfunc (*AnalyzeContentRequest) GetInput
func (m *AnalyzeContentRequest) GetInput() isAnalyzeContentRequest_Inputfunc (*AnalyzeContentRequest) GetParticipant
func (x *AnalyzeContentRequest) GetParticipant() stringfunc (*AnalyzeContentRequest) GetQueryParams
func (x *AnalyzeContentRequest) GetQueryParams() *QueryParametersfunc (*AnalyzeContentRequest) GetReplyAudioConfig
func (x *AnalyzeContentRequest) GetReplyAudioConfig() *OutputAudioConfigfunc (*AnalyzeContentRequest) GetRequestId
func (x *AnalyzeContentRequest) GetRequestId() stringfunc (*AnalyzeContentRequest) GetSuggestionInput
func (x *AnalyzeContentRequest) GetSuggestionInput() *SuggestionInputfunc (*AnalyzeContentRequest) GetTextInput
func (x *AnalyzeContentRequest) GetTextInput() *TextInputfunc (*AnalyzeContentRequest) ProtoMessage
func (*AnalyzeContentRequest) ProtoMessage()func (*AnalyzeContentRequest) ProtoReflect
func (x *AnalyzeContentRequest) ProtoReflect() protoreflect.Messagefunc (*AnalyzeContentRequest) Reset
func (x *AnalyzeContentRequest) Reset()func (*AnalyzeContentRequest) String
func (x *AnalyzeContentRequest) String() stringAnalyzeContentRequest_AudioInput
type AnalyzeContentRequest_AudioInput struct {
// The natural language speech audio to be processed.
AudioInput *AudioInput `protobuf:"bytes,7,opt,name=audio_input,json=audioInput,proto3,oneof"`
}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_SuggestionInput
type AnalyzeContentRequest_SuggestionInput struct {
// An input representing the selection of a suggestion.
SuggestionInput *SuggestionInput `protobuf:"bytes,12,opt,name=suggestion_input,json=suggestionInput,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 {
// The output text content.
// This field is set if the automated agent responded with text to show to
// the user.
ReplyText string `protobuf:"bytes,1,opt,name=reply_text,json=replyText,proto3" json:"reply_text,omitempty"`
// The audio data bytes encoded as specified in the request.
// This field is set if:
//
// - `reply_audio_config` was specified in the request, or
// - The automated agent responded with audio to play to the user. In such
// case, `reply_audio.config` contains settings used to synthesize the
// speech.
//
// In some scenarios, multiple output audio fields may be present in the
// response structure. In these cases, only the top-most-level audio output
// has content.
ReplyAudio *OutputAudio `protobuf:"bytes,2,opt,name=reply_audio,json=replyAudio,proto3" json:"reply_audio,omitempty"`
// Only set if a Dialogflow automated agent has responded.
// Note that in [AutomatedAgentReply.DetectIntentResponse][],
// [Sessions.DetectIntentResponse.output_audio][]
// and [Sessions.DetectIntentResponse.output_audio_config][]
// are always empty, use
// [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
// instead.
AutomatedAgentReply *AutomatedAgentReply `protobuf:"bytes,3,opt,name=automated_agent_reply,json=automatedAgentReply,proto3" json:"automated_agent_reply,omitempty"`
// Message analyzed by CCAI.
Message *Message `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
// The suggestions for most recent human agent. The order is the same as
// [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
// of
// [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
//
// Note that any failure of Agent Assist features will not lead to the overall
// failure of an AnalyzeContent API call. Instead, the features will
// fail silently with the error field set in the corresponding
// SuggestionResult.
HumanAgentSuggestionResults []*SuggestionResult `protobuf:"bytes,6,rep,name=human_agent_suggestion_results,json=humanAgentSuggestionResults,proto3" json:"human_agent_suggestion_results,omitempty"`
// The suggestions for end user. The order is the same as
// [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
// of
// [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
//
// Same as human_agent_suggestion_results, any failure of Agent Assist
// features will not lead to the overall failure of an AnalyzeContent API
// call. Instead, the features will fail silently with the error field set in
// the corresponding SuggestionResult.
EndUserSuggestionResults []*SuggestionResult `protobuf:"bytes,7,rep,name=end_user_suggestion_results,json=endUserSuggestionResults,proto3" json:"end_user_suggestion_results,omitempty"`
// Indicates the parameters of DTMF.
DtmfParameters *DtmfParameters `protobuf:"bytes,9,opt,name=dtmf_parameters,json=dtmfParameters,proto3" json:"dtmf_parameters,omitempty"`
// contains filtered or unexported fields
}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() *AutomatedAgentReplyfunc (*AnalyzeContentResponse) GetDtmfParameters
func (x *AnalyzeContentResponse) GetDtmfParameters() *DtmfParametersfunc (*AnalyzeContentResponse) GetEndUserSuggestionResults
func (x *AnalyzeContentResponse) GetEndUserSuggestionResults() []*SuggestionResultfunc (*AnalyzeContentResponse) GetHumanAgentSuggestionResults
func (x *AnalyzeContentResponse) GetHumanAgentSuggestionResults() []*SuggestionResultfunc (*AnalyzeContentResponse) GetMessage
func (x *AnalyzeContentResponse) GetMessage() *Messagefunc (*AnalyzeContentResponse) GetReplyAudio
func (x *AnalyzeContentResponse) GetReplyAudio() *OutputAudiofunc (*AnalyzeContentResponse) GetReplyText
func (x *AnalyzeContentResponse) GetReplyText() stringfunc (*AnalyzeContentResponse) ProtoMessage
func (*AnalyzeContentResponse) ProtoMessage()func (*AnalyzeContentResponse) ProtoReflect
func (x *AnalyzeContentResponse) ProtoReflect() protoreflect.Messagefunc (*AnalyzeContentResponse) Reset
func (x *AnalyzeContentResponse) Reset()func (*AnalyzeContentResponse) String
func (x *AnalyzeContentResponse) String() stringAnnotatedMessagePart
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() stringfunc (*AnnotatedMessagePart) GetFormattedValue
func (x *AnnotatedMessagePart) GetFormattedValue() *structpb.Valuefunc (*AnnotatedMessagePart) GetText
func (x *AnnotatedMessagePart) GetText() stringfunc (*AnnotatedMessagePart) ProtoMessage
func (*AnnotatedMessagePart) ProtoMessage()func (*AnnotatedMessagePart) ProtoReflect
func (x *AnnotatedMessagePart) ProtoReflect() protoreflect.Messagefunc (*AnnotatedMessagePart) Reset
func (x *AnnotatedMessagePart) Reset()func (*AnnotatedMessagePart) String
func (x *AnnotatedMessagePart) String() stringAnswerFeedback
type AnswerFeedback struct {
// The correctness level of the specific answer.
CorrectnessLevel AnswerFeedback_CorrectnessLevel `protobuf:"varint,1,opt,name=correctness_level,json=correctnessLevel,proto3,enum=google.cloud.dialogflow.v2.AnswerFeedback_CorrectnessLevel" json:"correctness_level,omitempty"`
// Normally, detail feedback is provided when answer is not fully correct.
//
// Types that are assignable to DetailFeedback:
//
// *AnswerFeedback_AgentAssistantDetailFeedback
DetailFeedback isAnswerFeedback_DetailFeedback `protobuf_oneof:"detail_feedback"`
// Indicates whether the answer/item was clicked by the human agent
// or not. Default to false.
// For knowledge search and knowledge assist, the answer record is considered
// to be clicked if the answer was copied or any URI was clicked.
Clicked bool `protobuf:"varint,3,opt,name=clicked,proto3" json:"clicked,omitempty"`
// Time when the answer/item was clicked.
ClickTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=click_time,json=clickTime,proto3" json:"click_time,omitempty"`
// Indicates whether the answer/item was displayed to the human
// agent in the agent desktop UI. Default to false.
Displayed bool `protobuf:"varint,4,opt,name=displayed,proto3" json:"displayed,omitempty"`
// Time when the answer/item was displayed.
DisplayTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=display_time,json=displayTime,proto3" json:"display_time,omitempty"`
// contains filtered or unexported fields
}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() *AgentAssistantFeedbackfunc (*AnswerFeedback) GetClickTime
func (x *AnswerFeedback) GetClickTime() *timestamppb.Timestampfunc (*AnswerFeedback) GetClicked
func (x *AnswerFeedback) GetClicked() boolfunc (*AnswerFeedback) GetCorrectnessLevel
func (x *AnswerFeedback) GetCorrectnessLevel() AnswerFeedback_CorrectnessLevelfunc (*AnswerFeedback) GetDetailFeedback
func (m *AnswerFeedback) GetDetailFeedback() isAnswerFeedback_DetailFeedbackfunc (*AnswerFeedback) GetDisplayTime
func (x *AnswerFeedback) GetDisplayTime() *timestamppb.Timestampfunc (*AnswerFeedback) GetDisplayed
func (x *AnswerFeedback) GetDisplayed() boolfunc (*AnswerFeedback) ProtoMessage
func (*AnswerFeedback) ProtoMessage()func (*AnswerFeedback) ProtoReflect
func (x *AnswerFeedback) ProtoReflect() protoreflect.Messagefunc (*AnswerFeedback) Reset
func (x *AnswerFeedback) Reset()func (*AnswerFeedback) String
func (x *AnswerFeedback) String() stringAnswerFeedback_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 int32The 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.EnumDescriptorfunc (AnswerFeedback_CorrectnessLevel) Enum
func (x AnswerFeedback_CorrectnessLevel) Enum() *AnswerFeedback_CorrectnessLevelfunc (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.EnumNumberfunc (AnswerFeedback_CorrectnessLevel) String
func (x AnswerFeedback_CorrectnessLevel) String() stringfunc (AnswerFeedback_CorrectnessLevel) Type
func (AnswerFeedback_CorrectnessLevel) Type() protoreflect.EnumTypeAnswerRecord
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:
DetectIntentintent matchingDetectIntentknowledge
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
[AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.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() *AgentAssistantRecordfunc (*AnswerRecord) GetAnswerFeedback
func (x *AnswerRecord) GetAnswerFeedback() *AnswerFeedbackfunc (*AnswerRecord) GetName
func (x *AnswerRecord) GetName() stringfunc (*AnswerRecord) GetRecord
func (m *AnswerRecord) GetRecord() isAnswerRecord_Recordfunc (*AnswerRecord) ProtoMessage
func (*AnswerRecord) ProtoMessage()func (*AnswerRecord) ProtoReflect
func (x *AnswerRecord) ProtoReflect() protoreflect.Messagefunc (*AnswerRecord) Reset
func (x *AnswerRecord) Reset()func (*AnswerRecord) String
func (x *AnswerRecord) String() stringAnswerRecord_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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAnswerRecordsClient
func NewAnswerRecordsClient(cc grpc.ClientConnInterface) AnswerRecordsClientAnswerRecordsServer
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. All implementations should embed UnimplementedAnswerRecordsServer for forward compatibility
ArticleAnswer
type ArticleAnswer struct {
// The article title.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// The article URI.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// Article snippets.
Snippets []string `protobuf:"bytes,3,rep,name=snippets,proto3" json:"snippets,omitempty"`
// Article match confidence.
// The system's confidence score that this article is a good match for this
// conversation, as a value from 0.0 (completely uncertain) to 1.0
// (completely certain).
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
// A map that contains metadata about the answer and the
// document from which it originates.
Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// The name of answer record, in the format of
// "projects/Represents article answer.
func (*ArticleAnswer) Descriptor
func (*ArticleAnswer) Descriptor() ([]byte, []int)Deprecated: Use ArticleAnswer.ProtoReflect.Descriptor instead.
func (*ArticleAnswer) GetAnswerRecord
func (x *ArticleAnswer) GetAnswerRecord() stringfunc (*ArticleAnswer) GetConfidence
func (x *ArticleAnswer) GetConfidence() float32func (*ArticleAnswer) GetMetadata
func (x *ArticleAnswer) GetMetadata() map[string]stringfunc (*ArticleAnswer) GetSnippets
func (x *ArticleAnswer) GetSnippets() []stringfunc (*ArticleAnswer) GetTitle
func (x *ArticleAnswer) GetTitle() stringfunc (*ArticleAnswer) GetUri
func (x *ArticleAnswer) GetUri() stringfunc (*ArticleAnswer) ProtoMessage
func (*ArticleAnswer) ProtoMessage()func (*ArticleAnswer) ProtoReflect
func (x *ArticleAnswer) ProtoReflect() protoreflect.Messagefunc (*ArticleAnswer) Reset
func (x *ArticleAnswer) Reset()func (*ArticleAnswer) String
func (x *ArticleAnswer) String() stringArticleSuggestionModelMetadata
type ArticleSuggestionModelMetadata struct {
// Optional. Type of the article suggestion model. If not provided, model_type
// is used.
TrainingModelType ConversationModel_ModelType `protobuf:"varint,3,opt,name=training_model_type,json=trainingModelType,proto3,enum=google.cloud.dialogflow.v2.ConversationModel_ModelType" json:"training_model_type,omitempty"`
// contains filtered or unexported fields
}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_ModelTypefunc (*ArticleSuggestionModelMetadata) ProtoMessage
func (*ArticleSuggestionModelMetadata) ProtoMessage()func (*ArticleSuggestionModelMetadata) ProtoReflect
func (x *ArticleSuggestionModelMetadata) ProtoReflect() protoreflect.Messagefunc (*ArticleSuggestionModelMetadata) Reset
func (x *ArticleSuggestionModelMetadata) Reset()func (*ArticleSuggestionModelMetadata) String
func (x *ArticleSuggestionModelMetadata) String() stringAssistQueryParameters
type AssistQueryParameters struct {
// Key-value filters on the metadata of documents returned by article
// suggestion. If specified, article suggestion only returns suggested
// documents that match all filters in their
// [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
// values for a metadata key should be concatenated by comma. For example,
// filters to match all documents that have 'US' or 'CA' in their market
// metadata values and 'agent' in their user metadata values will be
// ```
//
// documents_metadata_filters {
// key: "market"
// value: "US,CA"
// }
//
// documents_metadata_filters {
// key: "user"
// value: "agent"
// }
//
// ```
DocumentsMetadataFilters map[string]string `protobuf:"bytes,1,rep,name=documents_metadata_filters,json=documentsMetadataFilters,proto3" json:"documents_metadata_filters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}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]stringfunc (*AssistQueryParameters) ProtoMessage
func (*AssistQueryParameters) ProtoMessage()func (*AssistQueryParameters) ProtoReflect
func (x *AssistQueryParameters) ProtoReflect() protoreflect.Messagefunc (*AssistQueryParameters) Reset
func (x *AssistQueryParameters) Reset()func (*AssistQueryParameters) String
func (x *AssistQueryParameters) String() stringAudioEncoding
type AudioEncoding int32Audio 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, AudioEncoding_AUDIO_ENCODING_ALAW
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
// 8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.
AudioEncoding_AUDIO_ENCODING_ALAW AudioEncoding = 8
)func (AudioEncoding) Descriptor
func (AudioEncoding) Descriptor() protoreflect.EnumDescriptorfunc (AudioEncoding) Enum
func (x AudioEncoding) Enum() *AudioEncodingfunc (AudioEncoding) EnumDescriptor
func (AudioEncoding) EnumDescriptor() ([]byte, []int)Deprecated: Use AudioEncoding.Descriptor instead.
func (AudioEncoding) Number
func (x AudioEncoding) Number() protoreflect.EnumNumberfunc (AudioEncoding) String
func (x AudioEncoding) String() stringfunc (AudioEncoding) Type
func (AudioEncoding) Type() protoreflect.EnumTypeAudioInput
type AudioInput struct {
// Required. Instructs the speech recognizer how to process the speech audio.
Config *InputAudioConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
// Required. The natural language speech audio to be processed.
// A single request can contain up to 2 minutes of speech audio data.
// The transcribed text cannot contain more than 256 bytes for virtual agent
// interactions.
Audio []byte `protobuf:"bytes,2,opt,name=audio,proto3" json:"audio,omitempty"`
// contains filtered or unexported fields
}Represents the natural language speech audio to be processed.
func (*AudioInput) Descriptor
func (*AudioInput) Descriptor() ([]byte, []int)Deprecated: Use AudioInput.ProtoReflect.Descriptor instead.
func (*AudioInput) GetAudio
func (x *AudioInput) GetAudio() []bytefunc (*AudioInput) GetConfig
func (x *AudioInput) GetConfig() *InputAudioConfigfunc (*AudioInput) ProtoMessage
func (*AudioInput) ProtoMessage()func (*AudioInput) ProtoReflect
func (x *AudioInput) ProtoReflect() protoreflect.Messagefunc (*AudioInput) Reset
func (x *AudioInput) Reset()func (*AudioInput) String
func (x *AudioInput) String() stringAutomatedAgentConfig
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() stringfunc (*AutomatedAgentConfig) GetSessionTtl
func (x *AutomatedAgentConfig) GetSessionTtl() *durationpb.Durationfunc (*AutomatedAgentConfig) ProtoMessage
func (*AutomatedAgentConfig) ProtoMessage()func (*AutomatedAgentConfig) ProtoReflect
func (x *AutomatedAgentConfig) ProtoReflect() protoreflect.Messagefunc (*AutomatedAgentConfig) Reset
func (x *AutomatedAgentConfig) Reset()func (*AutomatedAgentConfig) String
func (x *AutomatedAgentConfig) String() stringAutomatedAgentReply
type AutomatedAgentReply struct {
// Response of the Dialogflow
// [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
// call.
DetectIntentResponse *DetectIntentResponse `protobuf:"bytes,1,opt,name=detect_intent_response,json=detectIntentResponse,proto3" json:"detect_intent_response,omitempty"`
// AutomatedAgentReply type.
AutomatedAgentReplyType AutomatedAgentReply_AutomatedAgentReplyType `protobuf:"varint,7,opt,name=automated_agent_reply_type,json=automatedAgentReplyType,proto3,enum=google.cloud.dialogflow.v2.AutomatedAgentReply_AutomatedAgentReplyType" json:"automated_agent_reply_type,omitempty"`
// Indicates whether the partial automated agent reply is interruptible when a
// later reply message arrives. e.g. if the agent specified some music as
// partial response, it can be cancelled.
AllowCancellation bool `protobuf:"varint,8,opt,name=allow_cancellation,json=allowCancellation,proto3" json:"allow_cancellation,omitempty"`
// The unique identifier of the current Dialogflow CX conversation page.
// Format: `projects/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() boolfunc (*AutomatedAgentReply) GetAutomatedAgentReplyType
func (x *AutomatedAgentReply) GetAutomatedAgentReplyType() AutomatedAgentReply_AutomatedAgentReplyTypefunc (*AutomatedAgentReply) GetCxCurrentPage
func (x *AutomatedAgentReply) GetCxCurrentPage() stringfunc (*AutomatedAgentReply) GetDetectIntentResponse
func (x *AutomatedAgentReply) GetDetectIntentResponse() *DetectIntentResponsefunc (*AutomatedAgentReply) ProtoMessage
func (*AutomatedAgentReply) ProtoMessage()func (*AutomatedAgentReply) ProtoReflect
func (x *AutomatedAgentReply) ProtoReflect() protoreflect.Messagefunc (*AutomatedAgentReply) Reset
func (x *AutomatedAgentReply) Reset()func (*AutomatedAgentReply) String
func (x *AutomatedAgentReply) String() stringAutomatedAgentReply_AutomatedAgentReplyType
type AutomatedAgentReply_AutomatedAgentReplyType int32Represents 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.EnumDescriptorfunc (AutomatedAgentReply_AutomatedAgentReplyType) Enum
func (x AutomatedAgentReply_AutomatedAgentReplyType) Enum() *AutomatedAgentReply_AutomatedAgentReplyTypefunc (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.EnumNumberfunc (AutomatedAgentReply_AutomatedAgentReplyType) String
func (x AutomatedAgentReply_AutomatedAgentReplyType) String() stringfunc (AutomatedAgentReply_AutomatedAgentReplyType) Type
func (AutomatedAgentReply_AutomatedAgentReplyType) Type() protoreflect.EnumTypeBatchCreateEntitiesRequest
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_Entityfunc (*BatchCreateEntitiesRequest) GetLanguageCode
func (x *BatchCreateEntitiesRequest) GetLanguageCode() stringfunc (*BatchCreateEntitiesRequest) GetParent
func (x *BatchCreateEntitiesRequest) GetParent() stringfunc (*BatchCreateEntitiesRequest) ProtoMessage
func (*BatchCreateEntitiesRequest) ProtoMessage()func (*BatchCreateEntitiesRequest) ProtoReflect
func (x *BatchCreateEntitiesRequest) ProtoReflect() protoreflect.Messagefunc (*BatchCreateEntitiesRequest) Reset
func (x *BatchCreateEntitiesRequest) Reset()func (*BatchCreateEntitiesRequest) String
func (x *BatchCreateEntitiesRequest) String() stringBatchDeleteEntitiesRequest
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() []stringfunc (*BatchDeleteEntitiesRequest) GetLanguageCode
func (x *BatchDeleteEntitiesRequest) GetLanguageCode() stringfunc (*BatchDeleteEntitiesRequest) GetParent
func (x *BatchDeleteEntitiesRequest) GetParent() stringfunc (*BatchDeleteEntitiesRequest) ProtoMessage
func (*BatchDeleteEntitiesRequest) ProtoMessage()func (*BatchDeleteEntitiesRequest) ProtoReflect
func (x *BatchDeleteEntitiesRequest) ProtoReflect() protoreflect.Messagefunc (*BatchDeleteEntitiesRequest) Reset
func (x *BatchDeleteEntitiesRequest) Reset()func (*BatchDeleteEntitiesRequest) String
func (x *BatchDeleteEntitiesRequest) String() stringBatchDeleteEntityTypesRequest
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() []stringfunc (*BatchDeleteEntityTypesRequest) GetParent
func (x *BatchDeleteEntityTypesRequest) GetParent() stringfunc (*BatchDeleteEntityTypesRequest) ProtoMessage
func (*BatchDeleteEntityTypesRequest) ProtoMessage()func (*BatchDeleteEntityTypesRequest) ProtoReflect
func (x *BatchDeleteEntityTypesRequest) ProtoReflect() protoreflect.Messagefunc (*BatchDeleteEntityTypesRequest) Reset
func (x *BatchDeleteEntityTypesRequest) Reset()func (*BatchDeleteEntityTypesRequest) String
func (x *BatchDeleteEntityTypesRequest) String() stringBatchDeleteIntentsRequest
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() []*Intentfunc (*BatchDeleteIntentsRequest) GetParent
func (x *BatchDeleteIntentsRequest) GetParent() stringfunc (*BatchDeleteIntentsRequest) ProtoMessage
func (*BatchDeleteIntentsRequest) ProtoMessage()func (*BatchDeleteIntentsRequest) ProtoReflect
func (x *BatchDeleteIntentsRequest) ProtoReflect() protoreflect.Messagefunc (*BatchDeleteIntentsRequest) Reset
func (x *BatchDeleteIntentsRequest) Reset()func (*BatchDeleteIntentsRequest) String
func (x *BatchDeleteIntentsRequest) String() stringBatchUpdateEntitiesRequest
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_Entityfunc (*BatchUpdateEntitiesRequest) GetLanguageCode
func (x *BatchUpdateEntitiesRequest) GetLanguageCode() stringfunc (*BatchUpdateEntitiesRequest) GetParent
func (x *BatchUpdateEntitiesRequest) GetParent() stringfunc (*BatchUpdateEntitiesRequest) GetUpdateMask
func (x *BatchUpdateEntitiesRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*BatchUpdateEntitiesRequest) ProtoMessage
func (*BatchUpdateEntitiesRequest) ProtoMessage()func (*BatchUpdateEntitiesRequest) ProtoReflect
func (x *BatchUpdateEntitiesRequest) ProtoReflect() protoreflect.Messagefunc (*BatchUpdateEntitiesRequest) Reset
func (x *BatchUpdateEntitiesRequest) Reset()func (*BatchUpdateEntitiesRequest) String
func (x *BatchUpdateEntitiesRequest) String() stringBatchUpdateEntityTypesRequest
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_EntityTypeBatchfunc (*BatchUpdateEntityTypesRequest) GetEntityTypeBatchInline
func (x *BatchUpdateEntityTypesRequest) GetEntityTypeBatchInline() *EntityTypeBatchfunc (*BatchUpdateEntityTypesRequest) GetEntityTypeBatchUri
func (x *BatchUpdateEntityTypesRequest) GetEntityTypeBatchUri() stringfunc (*BatchUpdateEntityTypesRequest) GetLanguageCode
func (x *BatchUpdateEntityTypesRequest) GetLanguageCode() stringfunc (*BatchUpdateEntityTypesRequest) GetParent
func (x *BatchUpdateEntityTypesRequest) GetParent() stringfunc (*BatchUpdateEntityTypesRequest) GetUpdateMask
func (x *BatchUpdateEntityTypesRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*BatchUpdateEntityTypesRequest) ProtoMessage
func (*BatchUpdateEntityTypesRequest) ProtoMessage()func (*BatchUpdateEntityTypesRequest) ProtoReflect
func (x *BatchUpdateEntityTypesRequest) ProtoReflect() protoreflect.Messagefunc (*BatchUpdateEntityTypesRequest) Reset
func (x *BatchUpdateEntityTypesRequest) Reset()func (*BatchUpdateEntityTypesRequest) String
func (x *BatchUpdateEntityTypesRequest) String() stringBatchUpdateEntityTypesRequest_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() []*EntityTypefunc (*BatchUpdateEntityTypesResponse) ProtoMessage
func (*BatchUpdateEntityTypesResponse) ProtoMessage()func (*BatchUpdateEntityTypesResponse) ProtoReflect
func (x *BatchUpdateEntityTypesResponse) ProtoReflect() protoreflect.Messagefunc (*BatchUpdateEntityTypesResponse) Reset
func (x *BatchUpdateEntityTypesResponse) Reset()func (*BatchUpdateEntityTypesResponse) String
func (x *BatchUpdateEntityTypesResponse) String() stringBatchUpdateIntentsRequest
type BatchUpdateIntentsRequest struct {
// Required. The name of the agent to update or create intents in.
// Format: `projects/func (*BatchUpdateIntentsRequest) Descriptor
func (*BatchUpdateIntentsRequest) Descriptor() ([]byte, []int)Deprecated: Use BatchUpdateIntentsRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateIntentsRequest) GetIntentBatch
func (m *BatchUpdateIntentsRequest) GetIntentBatch() isBatchUpdateIntentsRequest_IntentBatchfunc (*BatchUpdateIntentsRequest) GetIntentBatchInline
func (x *BatchUpdateIntentsRequest) GetIntentBatchInline() *IntentBatchfunc (*BatchUpdateIntentsRequest) GetIntentBatchUri
func (x *BatchUpdateIntentsRequest) GetIntentBatchUri() stringfunc (*BatchUpdateIntentsRequest) GetIntentView
func (x *BatchUpdateIntentsRequest) GetIntentView() IntentViewfunc (*BatchUpdateIntentsRequest) GetLanguageCode
func (x *BatchUpdateIntentsRequest) GetLanguageCode() stringfunc (*BatchUpdateIntentsRequest) GetParent
func (x *BatchUpdateIntentsRequest) GetParent() stringfunc (*BatchUpdateIntentsRequest) GetUpdateMask
func (x *BatchUpdateIntentsRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*BatchUpdateIntentsRequest) ProtoMessage
func (*BatchUpdateIntentsRequest) ProtoMessage()func (*BatchUpdateIntentsRequest) ProtoReflect
func (x *BatchUpdateIntentsRequest) ProtoReflect() protoreflect.Messagefunc (*BatchUpdateIntentsRequest) Reset
func (x *BatchUpdateIntentsRequest) Reset()func (*BatchUpdateIntentsRequest) String
func (x *BatchUpdateIntentsRequest) String() stringBatchUpdateIntentsRequest_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() []*Intentfunc (*BatchUpdateIntentsResponse) ProtoMessage
func (*BatchUpdateIntentsResponse) ProtoMessage()func (*BatchUpdateIntentsResponse) ProtoReflect
func (x *BatchUpdateIntentsResponse) ProtoReflect() protoreflect.Messagefunc (*BatchUpdateIntentsResponse) Reset
func (x *BatchUpdateIntentsResponse) Reset()func (*BatchUpdateIntentsResponse) String
func (x *BatchUpdateIntentsResponse) String() stringClearSuggestionFeatureConfigOperationMetadata
type ClearSuggestionFeatureConfigOperationMetadata struct {
// The resource name of the conversation profile. Format:
// `projects/Metadata for a [ConversationProfiles.ClearSuggestionFeatureConfig][google.cloud.dialogflow.v2.ConversationProfiles.ClearSuggestionFeatureConfig] operation.
func (*ClearSuggestionFeatureConfigOperationMetadata) Descriptor
func (*ClearSuggestionFeatureConfigOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use ClearSuggestionFeatureConfigOperationMetadata.ProtoReflect.Descriptor instead.
func (*ClearSuggestionFeatureConfigOperationMetadata) GetConversationProfile
func (x *ClearSuggestionFeatureConfigOperationMetadata) GetConversationProfile() stringfunc (*ClearSuggestionFeatureConfigOperationMetadata) GetCreateTime
func (x *ClearSuggestionFeatureConfigOperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*ClearSuggestionFeatureConfigOperationMetadata) GetParticipantRole
func (x *ClearSuggestionFeatureConfigOperationMetadata) GetParticipantRole() Participant_Rolefunc (*ClearSuggestionFeatureConfigOperationMetadata) GetSuggestionFeatureType
func (x *ClearSuggestionFeatureConfigOperationMetadata) GetSuggestionFeatureType() SuggestionFeature_Typefunc (*ClearSuggestionFeatureConfigOperationMetadata) ProtoMessage
func (*ClearSuggestionFeatureConfigOperationMetadata) ProtoMessage()func (*ClearSuggestionFeatureConfigOperationMetadata) ProtoReflect
func (x *ClearSuggestionFeatureConfigOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*ClearSuggestionFeatureConfigOperationMetadata) Reset
func (x *ClearSuggestionFeatureConfigOperationMetadata) Reset()func (*ClearSuggestionFeatureConfigOperationMetadata) String
func (x *ClearSuggestionFeatureConfigOperationMetadata) String() stringClearSuggestionFeatureConfigRequest
type ClearSuggestionFeatureConfigRequest struct {
// Required. The Conversation Profile to add or update the suggestion feature
// config. Format: `projects/The request message for [ConversationProfiles.ClearSuggestionFeatureConfig][google.cloud.dialogflow.v2.ConversationProfiles.ClearSuggestionFeatureConfig].
func (*ClearSuggestionFeatureConfigRequest) Descriptor
func (*ClearSuggestionFeatureConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use ClearSuggestionFeatureConfigRequest.ProtoReflect.Descriptor instead.
func (*ClearSuggestionFeatureConfigRequest) GetConversationProfile
func (x *ClearSuggestionFeatureConfigRequest) GetConversationProfile() stringfunc (*ClearSuggestionFeatureConfigRequest) GetParticipantRole
func (x *ClearSuggestionFeatureConfigRequest) GetParticipantRole() Participant_Rolefunc (*ClearSuggestionFeatureConfigRequest) GetSuggestionFeatureType
func (x *ClearSuggestionFeatureConfigRequest) GetSuggestionFeatureType() SuggestionFeature_Typefunc (*ClearSuggestionFeatureConfigRequest) ProtoMessage
func (*ClearSuggestionFeatureConfigRequest) ProtoMessage()func (*ClearSuggestionFeatureConfigRequest) ProtoReflect
func (x *ClearSuggestionFeatureConfigRequest) ProtoReflect() protoreflect.Messagefunc (*ClearSuggestionFeatureConfigRequest) Reset
func (x *ClearSuggestionFeatureConfigRequest) Reset()func (*ClearSuggestionFeatureConfigRequest) String
func (x *ClearSuggestionFeatureConfigRequest) String() stringCloudConversationDebuggingInfo
type CloudConversationDebuggingInfo struct {
// Number of input audio data chunks in streaming requests.
AudioDataChunks int32 `protobuf:"varint,1,opt,name=audio_data_chunks,json=audioDataChunks,proto3" json:"audio_data_chunks,omitempty"`
// Time offset of the end of speech utterance relative to the
// beginning of the first audio chunk.
ResultEndTimeOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=result_end_time_offset,json=resultEndTimeOffset,proto3" json:"result_end_time_offset,omitempty"`
// Duration of first audio chunk.
FirstAudioDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=first_audio_duration,json=firstAudioDuration,proto3" json:"first_audio_duration,omitempty"`
// Whether client used single utterance mode.
SingleUtterance bool `protobuf:"varint,5,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"`
// Time offsets of the speech partial results relative to the beginning of
// the stream.
SpeechPartialResultsEndTimes []*durationpb.Duration `protobuf:"bytes,6,rep,name=speech_partial_results_end_times,json=speechPartialResultsEndTimes,proto3" json:"speech_partial_results_end_times,omitempty"`
// Time offsets of the speech final results (is_final=true) relative to the
// beginning of the stream.
SpeechFinalResultsEndTimes []*durationpb.Duration `protobuf:"bytes,7,rep,name=speech_final_results_end_times,json=speechFinalResultsEndTimes,proto3" json:"speech_final_results_end_times,omitempty"`
// Total number of partial responses.
PartialResponses int32 `protobuf:"varint,8,opt,name=partial_responses,json=partialResponses,proto3" json:"partial_responses,omitempty"`
// Time offset of Speaker ID stream close time relative to the Speech stream
// close time in milliseconds. Only meaningful for conversations involving
// passive verification.
SpeakerIdPassiveLatencyMsOffset int32 `protobuf:"varint,9,opt,name=speaker_id_passive_latency_ms_offset,json=speakerIdPassiveLatencyMsOffset,proto3" json:"speaker_id_passive_latency_ms_offset,omitempty"`
// Whether a barge-in event is triggered in this request.
BargeinEventTriggered bool `protobuf:"varint,10,opt,name=bargein_event_triggered,json=bargeinEventTriggered,proto3" json:"bargein_event_triggered,omitempty"`
// Whether speech uses single utterance mode.
SpeechSingleUtterance bool `protobuf:"varint,11,opt,name=speech_single_utterance,json=speechSingleUtterance,proto3" json:"speech_single_utterance,omitempty"`
// Time offsets of the DTMF partial results relative to the beginning of
// the stream.
DtmfPartialResultsTimes []*durationpb.Duration `protobuf:"bytes,12,rep,name=dtmf_partial_results_times,json=dtmfPartialResultsTimes,proto3" json:"dtmf_partial_results_times,omitempty"`
// Time offsets of the DTMF final results relative to the beginning of
// the stream.
DtmfFinalResultsTimes []*durationpb.Duration `protobuf:"bytes,13,rep,name=dtmf_final_results_times,json=dtmfFinalResultsTimes,proto3" json:"dtmf_final_results_times,omitempty"`
// Time offset of the end-of-single-utterance signal relative to the
// beginning of the stream.
SingleUtteranceEndTimeOffset *durationpb.Duration `protobuf:"bytes,14,opt,name=single_utterance_end_time_offset,json=singleUtteranceEndTimeOffset,proto3" json:"single_utterance_end_time_offset,omitempty"`
// No speech timeout settings for the stream.
NoSpeechTimeout *durationpb.Duration `protobuf:"bytes,15,opt,name=no_speech_timeout,json=noSpeechTimeout,proto3" json:"no_speech_timeout,omitempty"`
// Speech endpointing timeout settings for the stream.
EndpointingTimeout *durationpb.Duration `protobuf:"bytes,19,opt,name=endpointing_timeout,json=endpointingTimeout,proto3" json:"endpointing_timeout,omitempty"`
// Whether the streaming terminates with an injected text query.
IsInputText bool `protobuf:"varint,16,opt,name=is_input_text,json=isInputText,proto3" json:"is_input_text,omitempty"`
// Client half close time in terms of input audio duration.
ClientHalfCloseTimeOffset *durationpb.Duration `protobuf:"bytes,17,opt,name=client_half_close_time_offset,json=clientHalfCloseTimeOffset,proto3" json:"client_half_close_time_offset,omitempty"`
// Client half close time in terms of API streaming duration.
ClientHalfCloseStreamingTimeOffset *durationpb.Duration `protobuf:"bytes,18,opt,name=client_half_close_streaming_time_offset,json=clientHalfCloseStreamingTimeOffset,proto3" json:"client_half_close_streaming_time_offset,omitempty"`
// contains filtered or unexported fields
}Cloud conversation info for easier debugging.
It will get populated in StreamingDetectIntentResponse or
StreamingAnalyzeContentResponse when the flag enable_debugging_info is
set to true in corresponding requests.
func (*CloudConversationDebuggingInfo) Descriptor
func (*CloudConversationDebuggingInfo) Descriptor() ([]byte, []int)Deprecated: Use CloudConversationDebuggingInfo.ProtoReflect.Descriptor instead.
func (*CloudConversationDebuggingInfo) GetAudioDataChunks
func (x *CloudConversationDebuggingInfo) GetAudioDataChunks() int32func (*CloudConversationDebuggingInfo) GetBargeinEventTriggered
func (x *CloudConversationDebuggingInfo) GetBargeinEventTriggered() boolfunc (*CloudConversationDebuggingInfo) GetClientHalfCloseStreamingTimeOffset
func (x *CloudConversationDebuggingInfo) GetClientHalfCloseStreamingTimeOffset() *durationpb.Durationfunc (*CloudConversationDebuggingInfo) GetClientHalfCloseTimeOffset
func (x *CloudConversationDebuggingInfo) GetClientHalfCloseTimeOffset() *durationpb.Durationfunc (*CloudConversationDebuggingInfo) GetDtmfFinalResultsTimes
func (x *CloudConversationDebuggingInfo) GetDtmfFinalResultsTimes() []*durationpb.Durationfunc (*CloudConversationDebuggingInfo) GetDtmfPartialResultsTimes
func (x *CloudConversationDebuggingInfo) GetDtmfPartialResultsTimes() []*durationpb.Durationfunc (*CloudConversationDebuggingInfo) GetEndpointingTimeout
func (x *CloudConversationDebuggingInfo) GetEndpointingTimeout() *durationpb.Durationfunc (*CloudConversationDebuggingInfo) GetFirstAudioDuration
func (x *CloudConversationDebuggingInfo) GetFirstAudioDuration() *durationpb.Durationfunc (*CloudConversationDebuggingInfo) GetIsInputText
func (x *CloudConversationDebuggingInfo) GetIsInputText() boolfunc (*CloudConversationDebuggingInfo) GetNoSpeechTimeout
func (x *CloudConversationDebuggingInfo) GetNoSpeechTimeout() *durationpb.Durationfunc (*CloudConversationDebuggingInfo) GetPartialResponses
func (x *CloudConversationDebuggingInfo) GetPartialResponses() int32func (*CloudConversationDebuggingInfo) GetResultEndTimeOffset
func (x *CloudConversationDebuggingInfo) GetResultEndTimeOffset() *durationpb.Durationfunc (*CloudConversationDebuggingInfo) GetSingleUtterance
func (x *CloudConversationDebuggingInfo) GetSingleUtterance() boolfunc (*CloudConversationDebuggingInfo) GetSingleUtteranceEndTimeOffset
func (x *CloudConversationDebuggingInfo) GetSingleUtteranceEndTimeOffset() *durationpb.Durationfunc (*CloudConversationDebuggingInfo) GetSpeakerIdPassiveLatencyMsOffset
func (x *CloudConversationDebuggingInfo) GetSpeakerIdPassiveLatencyMsOffset() int32func (*CloudConversationDebuggingInfo) GetSpeechFinalResultsEndTimes
func (x *CloudConversationDebuggingInfo) GetSpeechFinalResultsEndTimes() []*durationpb.Durationfunc (*CloudConversationDebuggingInfo) GetSpeechPartialResultsEndTimes
func (x *CloudConversationDebuggingInfo) GetSpeechPartialResultsEndTimes() []*durationpb.Durationfunc (*CloudConversationDebuggingInfo) GetSpeechSingleUtterance
func (x *CloudConversationDebuggingInfo) GetSpeechSingleUtterance() boolfunc (*CloudConversationDebuggingInfo) ProtoMessage
func (*CloudConversationDebuggingInfo) ProtoMessage()func (*CloudConversationDebuggingInfo) ProtoReflect
func (x *CloudConversationDebuggingInfo) ProtoReflect() protoreflect.Messagefunc (*CloudConversationDebuggingInfo) Reset
func (x *CloudConversationDebuggingInfo) Reset()func (*CloudConversationDebuggingInfo) String
func (x *CloudConversationDebuggingInfo) String() stringCompleteConversationRequest
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() stringfunc (*CompleteConversationRequest) ProtoMessage
func (*CompleteConversationRequest) ProtoMessage()func (*CompleteConversationRequest) ProtoReflect
func (x *CompleteConversationRequest) ProtoReflect() protoreflect.Messagefunc (*CompleteConversationRequest) Reset
func (x *CompleteConversationRequest) Reset()func (*CompleteConversationRequest) String
func (x *CompleteConversationRequest) String() stringContext
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.Messagefunc (*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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewContextsClient
func NewContextsClient(cc grpc.ClientConnInterface) ContextsClientContextsServer
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. All implementations should embed UnimplementedContextsServer for forward compatibility
Conversation
type Conversation struct {
// Output only. Identifier. The unique identifier of this conversation.
// Format: `projects/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() stringfunc (*Conversation) GetConversationStage
func (x *Conversation) GetConversationStage() Conversation_ConversationStagefunc (*Conversation) GetEndTime
func (x *Conversation) GetEndTime() *timestamppb.Timestampfunc (*Conversation) GetIngestedContextReferences
func (x *Conversation) GetIngestedContextReferences() map[string]*Conversation_ContextReferencefunc (*Conversation) GetLifecycleState
func (x *Conversation) GetLifecycleState() Conversation_LifecycleStatefunc (*Conversation) GetName
func (x *Conversation) GetName() stringfunc (*Conversation) GetPhoneNumber
func (x *Conversation) GetPhoneNumber() *ConversationPhoneNumberfunc (*Conversation) GetStartTime
func (x *Conversation) GetStartTime() *timestamppb.Timestampfunc (*Conversation) GetTelephonyConnectionInfo
func (x *Conversation) GetTelephonyConnectionInfo() *Conversation_TelephonyConnectionInfofunc (*Conversation) ProtoMessage
func (*Conversation) ProtoMessage()func (*Conversation) ProtoReflect
func (x *Conversation) ProtoReflect() protoreflect.Messagefunc (*Conversation) Reset
func (x *Conversation) Reset()func (*Conversation) String
func (x *Conversation) String() stringConversationContext
type ConversationContext struct {
// Optional. List of message transcripts in the conversation.
MessageEntries []*MessageEntry `protobuf:"bytes,1,rep,name=message_entries,json=messageEntries,proto3" json:"message_entries,omitempty"`
// contains filtered or unexported fields
}Context of the conversation, including transcripts.
func (*ConversationContext) Descriptor
func (*ConversationContext) Descriptor() ([]byte, []int)Deprecated: Use ConversationContext.ProtoReflect.Descriptor instead.
func (*ConversationContext) GetMessageEntries
func (x *ConversationContext) GetMessageEntries() []*MessageEntryfunc (*ConversationContext) ProtoMessage
func (*ConversationContext) ProtoMessage()func (*ConversationContext) ProtoReflect
func (x *ConversationContext) ProtoReflect() protoreflect.Messagefunc (*ConversationContext) Reset
func (x *ConversationContext) Reset()func (*ConversationContext) String
func (x *ConversationContext) String() stringConversationDataset
type ConversationDataset struct {
// Output only. ConversationDataset resource name. Format:
// `projects/Represents a conversation dataset that a user imports raw data into. The data inside ConversationDataset can not be changed after ImportConversationData finishes (and calling ImportConversationData on a dataset that already has data is not allowed).
func (*ConversationDataset) Descriptor
func (*ConversationDataset) Descriptor() ([]byte, []int)Deprecated: Use ConversationDataset.ProtoReflect.Descriptor instead.
func (*ConversationDataset) GetConversationCount
func (x *ConversationDataset) GetConversationCount() int64func (*ConversationDataset) GetConversationInfo
func (x *ConversationDataset) GetConversationInfo() *ConversationInfofunc (*ConversationDataset) GetCreateTime
func (x *ConversationDataset) GetCreateTime() *timestamppb.Timestampfunc (*ConversationDataset) GetDescription
func (x *ConversationDataset) GetDescription() stringfunc (*ConversationDataset) GetDisplayName
func (x *ConversationDataset) GetDisplayName() stringfunc (*ConversationDataset) GetInputConfig
func (x *ConversationDataset) GetInputConfig() *InputConfigfunc (*ConversationDataset) GetName
func (x *ConversationDataset) GetName() stringfunc (*ConversationDataset) GetSatisfiesPzi
func (x *ConversationDataset) GetSatisfiesPzi() boolfunc (*ConversationDataset) GetSatisfiesPzs
func (x *ConversationDataset) GetSatisfiesPzs() boolfunc (*ConversationDataset) ProtoMessage
func (*ConversationDataset) ProtoMessage()func (*ConversationDataset) ProtoReflect
func (x *ConversationDataset) ProtoReflect() protoreflect.Messagefunc (*ConversationDataset) Reset
func (x *ConversationDataset) Reset()func (*ConversationDataset) String
func (x *ConversationDataset) String() stringConversationDatasetsClient
type ConversationDatasetsClient interface {
// Creates a new conversation dataset.
//
// 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`:
// [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata]
// - `response`:
// [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]
CreateConversationDataset(ctx context.Context, in *CreateConversationDatasetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Retrieves the specified conversation dataset.
GetConversationDataset(ctx context.Context, in *GetConversationDatasetRequest, opts ...grpc.CallOption) (*ConversationDataset, error)
// Returns the list of all conversation datasets in the specified
// project and location.
ListConversationDatasets(ctx context.Context, in *ListConversationDatasetsRequest, opts ...grpc.CallOption) (*ListConversationDatasetsResponse, error)
// Deletes the specified conversation dataset.
//
// 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`:
// [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata]
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
DeleteConversationDataset(ctx context.Context, in *DeleteConversationDatasetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Import data into the specified conversation dataset. Note that it
// is not allowed to import data to a conversation dataset that
// already has data in it.
//
// 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`:
// [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata]
// - `response`:
// [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]
ImportConversationData(ctx context.Context, in *ImportConversationDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}ConversationDatasetsClient is the client API for ConversationDatasets service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewConversationDatasetsClient
func NewConversationDatasetsClient(cc grpc.ClientConnInterface) ConversationDatasetsClientConversationDatasetsServer
type ConversationDatasetsServer interface {
// Creates a new conversation dataset.
//
// 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`:
// [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata]
// - `response`:
// [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]
CreateConversationDataset(context.Context, *CreateConversationDatasetRequest) (*longrunningpb.Operation, error)
// Retrieves the specified conversation dataset.
GetConversationDataset(context.Context, *GetConversationDatasetRequest) (*ConversationDataset, error)
// Returns the list of all conversation datasets in the specified
// project and location.
ListConversationDatasets(context.Context, *ListConversationDatasetsRequest) (*ListConversationDatasetsResponse, error)
// Deletes the specified conversation dataset.
//
// 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`:
// [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata]
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
DeleteConversationDataset(context.Context, *DeleteConversationDatasetRequest) (*longrunningpb.Operation, error)
// Import data into the specified conversation dataset. Note that it
// is not allowed to import data to a conversation dataset that
// already has data in it.
//
// 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`:
// [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata]
// - `response`:
// [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]
ImportConversationData(context.Context, *ImportConversationDataRequest) (*longrunningpb.Operation, error)
}ConversationDatasetsServer is the server API for ConversationDatasets service. All implementations should embed UnimplementedConversationDatasetsServer for forward compatibility
ConversationEvent
type ConversationEvent struct {
// The unique identifier of the conversation this notification
// refers to.
// Format: `projects/Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.
func (*ConversationEvent) Descriptor
func (*ConversationEvent) Descriptor() ([]byte, []int)Deprecated: Use ConversationEvent.ProtoReflect.Descriptor instead.
func (*ConversationEvent) GetConversation
func (x *ConversationEvent) GetConversation() stringfunc (*ConversationEvent) GetErrorStatus
func (x *ConversationEvent) GetErrorStatus() *status.Statusfunc (*ConversationEvent) GetNewMessagePayload
func (x *ConversationEvent) GetNewMessagePayload() *Messagefunc (*ConversationEvent) GetNewRecognitionResultPayload
func (x *ConversationEvent) GetNewRecognitionResultPayload() *StreamingRecognitionResultfunc (*ConversationEvent) GetPayload
func (m *ConversationEvent) GetPayload() isConversationEvent_Payloadfunc (*ConversationEvent) GetType
func (x *ConversationEvent) GetType() ConversationEvent_Typefunc (*ConversationEvent) ProtoMessage
func (*ConversationEvent) ProtoMessage()func (*ConversationEvent) ProtoReflect
func (x *ConversationEvent) ProtoReflect() protoreflect.Messagefunc (*ConversationEvent) Reset
func (x *ConversationEvent) Reset()func (*ConversationEvent) String
func (x *ConversationEvent) String() stringConversationEvent_NewMessagePayload
type ConversationEvent_NewMessagePayload struct {
// Payload of NEW_MESSAGE event.
NewMessagePayload *Message `protobuf:"bytes,4,opt,name=new_message_payload,json=newMessagePayload,proto3,oneof"`
}ConversationEvent_NewRecognitionResultPayload
type ConversationEvent_NewRecognitionResultPayload struct {
// Payload of NEW_RECOGNITION_RESULT event.
NewRecognitionResultPayload *StreamingRecognitionResult `protobuf:"bytes,5,opt,name=new_recognition_result_payload,json=newRecognitionResultPayload,proto3,oneof"`
}ConversationEvent_Type
type ConversationEvent_Type int32Enumeration of the types of events available.
ConversationEvent_TYPE_UNSPECIFIED, ConversationEvent_CONVERSATION_STARTED, ConversationEvent_CONVERSATION_FINISHED, ConversationEvent_HUMAN_INTERVENTION_NEEDED, ConversationEvent_NEW_MESSAGE, ConversationEvent_NEW_RECOGNITION_RESULT, ConversationEvent_UNRECOVERABLE_ERROR
const (
// Type not set.
ConversationEvent_TYPE_UNSPECIFIED ConversationEvent_Type = 0
// A new conversation has been opened. This is fired when a telephone call
// is answered, or a conversation is created via the API.
ConversationEvent_CONVERSATION_STARTED ConversationEvent_Type = 1
// An existing conversation has closed. This is fired when a telephone call
// is terminated, or a conversation is closed via the API.
ConversationEvent_CONVERSATION_FINISHED ConversationEvent_Type = 2
// An existing conversation has received notification from Dialogflow that
// human intervention is required.
ConversationEvent_HUMAN_INTERVENTION_NEEDED ConversationEvent_Type = 3
// An existing conversation has received a new message, either from API or
// telephony. It is configured in
// [ConversationProfile.new_message_event_notification_config][google.cloud.dialogflow.v2.ConversationProfile.new_message_event_notification_config]
ConversationEvent_NEW_MESSAGE ConversationEvent_Type = 5
// An existing conversation has received a new speech recognition result.
// This is mainly for delivering intermediate transcripts. The notification
// is configured in
// [ConversationProfile.new_recognition_event_notification_config][].
ConversationEvent_NEW_RECOGNITION_RESULT ConversationEvent_Type = 7
// Unrecoverable error during a telephone call.
//
// In general non-recoverable errors only occur if something was
// misconfigured in the ConversationProfile corresponding to the call. After
// a non-recoverable error, Dialogflow may stop responding.
//
// We don't fire this event:
//
// * in an API call because we can directly return the error, or,
// * when we can recover from an error.
ConversationEvent_UNRECOVERABLE_ERROR ConversationEvent_Type = 4
)func (ConversationEvent_Type) Descriptor
func (ConversationEvent_Type) Descriptor() protoreflect.EnumDescriptorfunc (ConversationEvent_Type) Enum
func (x ConversationEvent_Type) Enum() *ConversationEvent_Typefunc (ConversationEvent_Type) EnumDescriptor
func (ConversationEvent_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use ConversationEvent_Type.Descriptor instead.
func (ConversationEvent_Type) Number
func (x ConversationEvent_Type) Number() protoreflect.EnumNumberfunc (ConversationEvent_Type) String
func (x ConversationEvent_Type) String() stringfunc (ConversationEvent_Type) Type
func (ConversationEvent_Type) Type() protoreflect.EnumTypeConversationInfo
type ConversationInfo struct {
// Optional. The language code of the conversation data within this dataset.
// See https://cloud.google.com/apis/design/standard_fields for more
// information. Supports all UTF-8 languages.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// contains filtered or unexported fields
}Represents metadata of a conversation.
func (*ConversationInfo) Descriptor
func (*ConversationInfo) Descriptor() ([]byte, []int)Deprecated: Use ConversationInfo.ProtoReflect.Descriptor instead.
func (*ConversationInfo) GetLanguageCode
func (x *ConversationInfo) GetLanguageCode() stringfunc (*ConversationInfo) ProtoMessage
func (*ConversationInfo) ProtoMessage()func (*ConversationInfo) ProtoReflect
func (x *ConversationInfo) ProtoReflect() protoreflect.Messagefunc (*ConversationInfo) Reset
func (x *ConversationInfo) Reset()func (*ConversationInfo) String
func (x *ConversationInfo) String() stringConversationModel
type ConversationModel struct {
// ConversationModel resource name. Format:
// `projects/Represents a conversation model.
func (*ConversationModel) Descriptor
func (*ConversationModel) Descriptor() ([]byte, []int)Deprecated: Use ConversationModel.ProtoReflect.Descriptor instead.
func (*ConversationModel) GetArticleSuggestionModelMetadata
func (x *ConversationModel) GetArticleSuggestionModelMetadata() *ArticleSuggestionModelMetadatafunc (*ConversationModel) GetCreateTime
func (x *ConversationModel) GetCreateTime() *timestamppb.Timestampfunc (*ConversationModel) GetDatasets
func (x *ConversationModel) GetDatasets() []*InputDatasetfunc (*ConversationModel) GetDisplayName
func (x *ConversationModel) GetDisplayName() stringfunc (*ConversationModel) GetLanguageCode
func (x *ConversationModel) GetLanguageCode() stringfunc (*ConversationModel) GetModelMetadata
func (m *ConversationModel) GetModelMetadata() isConversationModel_ModelMetadatafunc (*ConversationModel) GetName
func (x *ConversationModel) GetName() stringfunc (*ConversationModel) GetSatisfiesPzi
func (x *ConversationModel) GetSatisfiesPzi() boolfunc (*ConversationModel) GetSatisfiesPzs
func (x *ConversationModel) GetSatisfiesPzs() boolfunc (*ConversationModel) GetSmartReplyModelMetadata
func (x *ConversationModel) GetSmartReplyModelMetadata() *SmartReplyModelMetadatafunc (*ConversationModel) GetState
func (x *ConversationModel) GetState() ConversationModel_Statefunc (*ConversationModel) ProtoMessage
func (*ConversationModel) ProtoMessage()func (*ConversationModel) ProtoReflect
func (x *ConversationModel) ProtoReflect() protoreflect.Messagefunc (*ConversationModel) Reset
func (x *ConversationModel) Reset()func (*ConversationModel) String
func (x *ConversationModel) String() stringConversationModelEvaluation
type ConversationModelEvaluation struct {
// The resource name of the evaluation. Format:
// `projects/Represents evaluation result of a conversation model.
func (*ConversationModelEvaluation) Descriptor
func (*ConversationModelEvaluation) Descriptor() ([]byte, []int)Deprecated: Use ConversationModelEvaluation.ProtoReflect.Descriptor instead.
func (*ConversationModelEvaluation) GetCreateTime
func (x *ConversationModelEvaluation) GetCreateTime() *timestamppb.Timestampfunc (*ConversationModelEvaluation) GetDisplayName
func (x *ConversationModelEvaluation) GetDisplayName() stringfunc (*ConversationModelEvaluation) GetEvaluationConfig
func (x *ConversationModelEvaluation) GetEvaluationConfig() *EvaluationConfigfunc (*ConversationModelEvaluation) GetMetrics
func (m *ConversationModelEvaluation) GetMetrics() isConversationModelEvaluation_Metricsfunc (*ConversationModelEvaluation) GetName
func (x *ConversationModelEvaluation) GetName() stringfunc (*ConversationModelEvaluation) GetRawHumanEvalTemplateCsv
func (x *ConversationModelEvaluation) GetRawHumanEvalTemplateCsv() stringfunc (*ConversationModelEvaluation) GetSmartReplyMetrics
func (x *ConversationModelEvaluation) GetSmartReplyMetrics() *SmartReplyMetricsfunc (*ConversationModelEvaluation) ProtoMessage
func (*ConversationModelEvaluation) ProtoMessage()func (*ConversationModelEvaluation) ProtoReflect
func (x *ConversationModelEvaluation) ProtoReflect() protoreflect.Messagefunc (*ConversationModelEvaluation) Reset
func (x *ConversationModelEvaluation) Reset()func (*ConversationModelEvaluation) String
func (x *ConversationModelEvaluation) String() stringConversationModelEvaluation_SmartReplyMetrics
type ConversationModelEvaluation_SmartReplyMetrics struct {
// Output only. Only available when model is for smart reply.
SmartReplyMetrics *SmartReplyMetrics `protobuf:"bytes,5,opt,name=smart_reply_metrics,json=smartReplyMetrics,proto3,oneof"`
}ConversationModel_ArticleSuggestionModelMetadata
type ConversationModel_ArticleSuggestionModelMetadata struct {
// Metadata for article suggestion models.
ArticleSuggestionModelMetadata *ArticleSuggestionModelMetadata `protobuf:"bytes,8,opt,name=article_suggestion_model_metadata,json=articleSuggestionModelMetadata,proto3,oneof"`
}ConversationModel_ModelType
type ConversationModel_ModelType int32Model type.
ConversationModel_MODEL_TYPE_UNSPECIFIED, ConversationModel_SMART_REPLY_DUAL_ENCODER_MODEL, ConversationModel_SMART_REPLY_BERT_MODEL
const (
// ModelType unspecified.
ConversationModel_MODEL_TYPE_UNSPECIFIED ConversationModel_ModelType = 0
// ModelType smart reply dual encoder model.
ConversationModel_SMART_REPLY_DUAL_ENCODER_MODEL ConversationModel_ModelType = 2
// ModelType smart reply bert model.
ConversationModel_SMART_REPLY_BERT_MODEL ConversationModel_ModelType = 6
)func (ConversationModel_ModelType) Descriptor
func (ConversationModel_ModelType) Descriptor() protoreflect.EnumDescriptorfunc (ConversationModel_ModelType) Enum
func (x ConversationModel_ModelType) Enum() *ConversationModel_ModelTypefunc (ConversationModel_ModelType) EnumDescriptor
func (ConversationModel_ModelType) EnumDescriptor() ([]byte, []int)Deprecated: Use ConversationModel_ModelType.Descriptor instead.
func (ConversationModel_ModelType) Number
func (x ConversationModel_ModelType) Number() protoreflect.EnumNumberfunc (ConversationModel_ModelType) String
func (x ConversationModel_ModelType) String() stringfunc (ConversationModel_ModelType) Type
func (ConversationModel_ModelType) Type() protoreflect.EnumTypeConversationModel_SmartReplyModelMetadata
type ConversationModel_SmartReplyModelMetadata struct {
// Metadata for smart reply models.
SmartReplyModelMetadata *SmartReplyModelMetadata `protobuf:"bytes,9,opt,name=smart_reply_model_metadata,json=smartReplyModelMetadata,proto3,oneof"`
}ConversationModel_State
type ConversationModel_State int32State of the model.
ConversationModel_STATE_UNSPECIFIED, ConversationModel_CREATING, ConversationModel_UNDEPLOYED, ConversationModel_DEPLOYING, ConversationModel_DEPLOYED, ConversationModel_UNDEPLOYING, ConversationModel_DELETING, ConversationModel_FAILED, ConversationModel_PENDING
const (
// Should not be used, an un-set enum has this value by default.
ConversationModel_STATE_UNSPECIFIED ConversationModel_State = 0
// Model being created.
ConversationModel_CREATING ConversationModel_State = 1
// Model is not deployed but ready to deploy.
ConversationModel_UNDEPLOYED ConversationModel_State = 2
// Model is deploying.
ConversationModel_DEPLOYING ConversationModel_State = 3
// Model is deployed and ready to use.
ConversationModel_DEPLOYED ConversationModel_State = 4
// Model is undeploying.
ConversationModel_UNDEPLOYING ConversationModel_State = 5
// Model is deleting.
ConversationModel_DELETING ConversationModel_State = 6
// Model is in error state. Not ready to deploy and use.
ConversationModel_FAILED ConversationModel_State = 7
// Model is being created but the training has not started,
// The model may remain in this state until there is enough capacity to
// start training.
ConversationModel_PENDING ConversationModel_State = 8
)func (ConversationModel_State) Descriptor
func (ConversationModel_State) Descriptor() protoreflect.EnumDescriptorfunc (ConversationModel_State) Enum
func (x ConversationModel_State) Enum() *ConversationModel_Statefunc (ConversationModel_State) EnumDescriptor
func (ConversationModel_State) EnumDescriptor() ([]byte, []int)Deprecated: Use ConversationModel_State.Descriptor instead.
func (ConversationModel_State) Number
func (x ConversationModel_State) Number() protoreflect.EnumNumberfunc (ConversationModel_State) String
func (x ConversationModel_State) String() stringfunc (ConversationModel_State) Type
func (ConversationModel_State) Type() protoreflect.EnumTypeConversationModelsClient
type ConversationModelsClient interface {
// Creates a model.
//
// 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`:
// [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata]
// - `response`:
// [ConversationModel][google.cloud.dialogflow.v2.ConversationModel]
CreateConversationModel(ctx context.Context, in *CreateConversationModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets conversation model.
GetConversationModel(ctx context.Context, in *GetConversationModelRequest, opts ...grpc.CallOption) (*ConversationModel, error)
// Lists conversation models.
ListConversationModels(ctx context.Context, in *ListConversationModelsRequest, opts ...grpc.CallOption) (*ListConversationModelsResponse, error)
// Deletes a model.
//
// 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`:
// [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata]
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
DeleteConversationModel(ctx context.Context, in *DeleteConversationModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deploys a model. If a model is already deployed, deploying it
// has no effect. A model can only serve prediction requests after it gets
// deployed. For article suggestion, custom model will not be used unless
// it is deployed.
//
// 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`:
// [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata]
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
DeployConversationModel(ctx context.Context, in *DeployConversationModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Undeploys a model. If the model is not deployed this method has no effect.
// If the model is currently being used:
// - For article suggestion, article suggestion will fallback to the default
// model if model is undeployed.
//
// 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`:
// [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata]
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
UndeployConversationModel(ctx context.Context, in *UndeployConversationModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets an evaluation of conversation model.
GetConversationModelEvaluation(ctx context.Context, in *GetConversationModelEvaluationRequest, opts ...grpc.CallOption) (*ConversationModelEvaluation, error)
// Lists evaluations of a conversation model.
ListConversationModelEvaluations(ctx context.Context, in *ListConversationModelEvaluationsRequest, opts ...grpc.CallOption) (*ListConversationModelEvaluationsResponse, error)
// Creates evaluation of a conversation model.
CreateConversationModelEvaluation(ctx context.Context, in *CreateConversationModelEvaluationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}ConversationModelsClient is the client API for ConversationModels service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewConversationModelsClient
func NewConversationModelsClient(cc grpc.ClientConnInterface) ConversationModelsClientConversationModelsServer
type ConversationModelsServer interface {
// Creates a model.
//
// 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`:
// [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata]
// - `response`:
// [ConversationModel][google.cloud.dialogflow.v2.ConversationModel]
CreateConversationModel(context.Context, *CreateConversationModelRequest) (*longrunningpb.Operation, error)
// Gets conversation model.
GetConversationModel(context.Context, *GetConversationModelRequest) (*ConversationModel, error)
// Lists conversation models.
ListConversationModels(context.Context, *ListConversationModelsRequest) (*ListConversationModelsResponse, error)
// Deletes a model.
//
// 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`:
// [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata]
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
DeleteConversationModel(context.Context, *DeleteConversationModelRequest) (*longrunningpb.Operation, error)
// Deploys a model. If a model is already deployed, deploying it
// has no effect. A model can only serve prediction requests after it gets
// deployed. For article suggestion, custom model will not be used unless
// it is deployed.
//
// 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`:
// [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata]
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
DeployConversationModel(context.Context, *DeployConversationModelRequest) (*longrunningpb.Operation, error)
// Undeploys a model. If the model is not deployed this method has no effect.
// If the model is currently being used:
// - For article suggestion, article suggestion will fallback to the default
// model if model is undeployed.
//
// 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`:
// [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata]
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
UndeployConversationModel(context.Context, *UndeployConversationModelRequest) (*longrunningpb.Operation, error)
// Gets an evaluation of conversation model.
GetConversationModelEvaluation(context.Context, *GetConversationModelEvaluationRequest) (*ConversationModelEvaluation, error)
// Lists evaluations of a conversation model.
ListConversationModelEvaluations(context.Context, *ListConversationModelEvaluationsRequest) (*ListConversationModelEvaluationsResponse, error)
// Creates evaluation of a conversation model.
CreateConversationModelEvaluation(context.Context, *CreateConversationModelEvaluationRequest) (*longrunningpb.Operation, error)
}ConversationModelsServer is the server API for ConversationModels service. All implementations should embed UnimplementedConversationModelsServer for forward compatibility
ConversationPhoneNumber
type ConversationPhoneNumber struct {
// Output only. Desired country code for the phone number.
CountryCode int32 `protobuf:"varint,2,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
// Output only. The phone number to connect to this conversation.
PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
// contains filtered or unexported fields
}Represents a phone number for telephony integration. It allows for connecting a particular conversation over telephony.
func (*ConversationPhoneNumber) Descriptor
func (*ConversationPhoneNumber) Descriptor() ([]byte, []int)Deprecated: Use ConversationPhoneNumber.ProtoReflect.Descriptor instead.
func (*ConversationPhoneNumber) GetCountryCode
func (x *ConversationPhoneNumber) GetCountryCode() int32func (*ConversationPhoneNumber) GetPhoneNumber
func (x *ConversationPhoneNumber) GetPhoneNumber() stringfunc (*ConversationPhoneNumber) ProtoMessage
func (*ConversationPhoneNumber) ProtoMessage()func (*ConversationPhoneNumber) ProtoReflect
func (x *ConversationPhoneNumber) ProtoReflect() protoreflect.Messagefunc (*ConversationPhoneNumber) Reset
func (x *ConversationPhoneNumber) Reset()func (*ConversationPhoneNumber) String
func (x *ConversationPhoneNumber) String() stringConversationProfile
type ConversationProfile struct {
// The unique identifier of this conversation profile.
// Format: `projects/Defines the services to connect to incoming Dialogflow conversations.
func (*ConversationProfile) Descriptor
func (*ConversationProfile) Descriptor() ([]byte, []int)Deprecated: Use ConversationProfile.ProtoReflect.Descriptor instead.
func (*ConversationProfile) GetAutomatedAgentConfig
func (x *ConversationProfile) GetAutomatedAgentConfig() *AutomatedAgentConfigfunc (*ConversationProfile) GetCreateTime
func (x *ConversationProfile) GetCreateTime() *timestamppb.Timestampfunc (*ConversationProfile) GetDisplayName
func (x *ConversationProfile) GetDisplayName() stringfunc (*ConversationProfile) GetHumanAgentAssistantConfig
func (x *ConversationProfile) GetHumanAgentAssistantConfig() *HumanAgentAssistantConfigfunc (*ConversationProfile) GetHumanAgentHandoffConfig
func (x *ConversationProfile) GetHumanAgentHandoffConfig() *HumanAgentHandoffConfigfunc (*ConversationProfile) GetLanguageCode
func (x *ConversationProfile) GetLanguageCode() stringfunc (*ConversationProfile) GetLoggingConfig
func (x *ConversationProfile) GetLoggingConfig() *LoggingConfigfunc (*ConversationProfile) GetName
func (x *ConversationProfile) GetName() stringfunc (*ConversationProfile) GetNewMessageEventNotificationConfig
func (x *ConversationProfile) GetNewMessageEventNotificationConfig() *NotificationConfigfunc (*ConversationProfile) GetNewRecognitionResultNotificationConfig
func (x *ConversationProfile) GetNewRecognitionResultNotificationConfig() *NotificationConfigfunc (*ConversationProfile) GetNotificationConfig
func (x *ConversationProfile) GetNotificationConfig() *NotificationConfigfunc (*ConversationProfile) GetSecuritySettings
func (x *ConversationProfile) GetSecuritySettings() stringfunc (*ConversationProfile) GetSttConfig
func (x *ConversationProfile) GetSttConfig() *SpeechToTextConfigfunc (*ConversationProfile) GetTimeZone
func (x *ConversationProfile) GetTimeZone() stringfunc (*ConversationProfile) GetTtsConfig
func (x *ConversationProfile) GetTtsConfig() *SynthesizeSpeechConfigfunc (*ConversationProfile) GetUpdateTime
func (x *ConversationProfile) GetUpdateTime() *timestamppb.Timestampfunc (*ConversationProfile) ProtoMessage
func (*ConversationProfile) ProtoMessage()func (*ConversationProfile) ProtoReflect
func (x *ConversationProfile) ProtoReflect() protoreflect.Messagefunc (*ConversationProfile) Reset
func (x *ConversationProfile) Reset()func (*ConversationProfile) String
func (x *ConversationProfile) String() stringConversationProfilesClient
type ConversationProfilesClient interface {
// Returns the list of all conversation profiles in the specified project.
ListConversationProfiles(ctx context.Context, in *ListConversationProfilesRequest, opts ...grpc.CallOption) (*ListConversationProfilesResponse, error)
// Retrieves the specified conversation profile.
GetConversationProfile(ctx context.Context, in *GetConversationProfileRequest, opts ...grpc.CallOption) (*ConversationProfile, error)
// Creates a conversation profile in the specified project.
//
// [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
// and
// [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
// aren't populated in the response. You can retrieve them via
// [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
// API.
CreateConversationProfile(ctx context.Context, in *CreateConversationProfileRequest, opts ...grpc.CallOption) (*ConversationProfile, error)
// Updates the specified conversation profile.
//
// [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
// and
// [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
// aren't populated in the response. You can retrieve them via
// [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
// API.
UpdateConversationProfile(ctx context.Context, in *UpdateConversationProfileRequest, opts ...grpc.CallOption) (*ConversationProfile, error)
// Deletes the specified conversation profile.
DeleteConversationProfile(ctx context.Context, in *DeleteConversationProfileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Adds or updates a suggestion feature in a conversation profile.
// If the conversation profile contains the type of suggestion feature for
// the participant role, it will update it. Otherwise it will insert the
// suggestion feature.
//
// 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`:
// [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
// - `response`:
// [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
//
// If a long running operation to add or update suggestion feature
// config for the same conversation profile, participant role and suggestion
// feature type exists, please cancel the existing long running operation
// before sending such request, otherwise the request will be rejected.
SetSuggestionFeatureConfig(ctx context.Context, in *SetSuggestionFeatureConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Clears a suggestion feature from a conversation profile for the given
// participant role.
//
// 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`:
// [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
// - `response`:
// [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
ClearSuggestionFeatureConfig(ctx context.Context, in *ClearSuggestionFeatureConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}ConversationProfilesClient is the client API for ConversationProfiles service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewConversationProfilesClient
func NewConversationProfilesClient(cc grpc.ClientConnInterface) ConversationProfilesClientConversationProfilesServer
type ConversationProfilesServer interface {
// Returns the list of all conversation profiles in the specified project.
ListConversationProfiles(context.Context, *ListConversationProfilesRequest) (*ListConversationProfilesResponse, error)
// Retrieves the specified conversation profile.
GetConversationProfile(context.Context, *GetConversationProfileRequest) (*ConversationProfile, error)
// Creates a conversation profile in the specified project.
//
// [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
// and
// [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
// aren't populated in the response. You can retrieve them via
// [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
// API.
CreateConversationProfile(context.Context, *CreateConversationProfileRequest) (*ConversationProfile, error)
// Updates the specified conversation profile.
//
// [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
// and
// [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
// aren't populated in the response. You can retrieve them via
// [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
// API.
UpdateConversationProfile(context.Context, *UpdateConversationProfileRequest) (*ConversationProfile, error)
// Deletes the specified conversation profile.
DeleteConversationProfile(context.Context, *DeleteConversationProfileRequest) (*emptypb.Empty, error)
// Adds or updates a suggestion feature in a conversation profile.
// If the conversation profile contains the type of suggestion feature for
// the participant role, it will update it. Otherwise it will insert the
// suggestion feature.
//
// 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`:
// [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
// - `response`:
// [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
//
// If a long running operation to add or update suggestion feature
// config for the same conversation profile, participant role and suggestion
// feature type exists, please cancel the existing long running operation
// before sending such request, otherwise the request will be rejected.
SetSuggestionFeatureConfig(context.Context, *SetSuggestionFeatureConfigRequest) (*longrunningpb.Operation, error)
// Clears a suggestion feature from a conversation profile for the given
// participant role.
//
// 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`:
// [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
// - `response`:
// [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
ClearSuggestionFeatureConfig(context.Context, *ClearSuggestionFeatureConfigRequest) (*longrunningpb.Operation, error)
}ConversationProfilesServer is the server API for ConversationProfiles service. All implementations should embed UnimplementedConversationProfilesServer for forward compatibility
Conversation_ContextReference
type Conversation_ContextReference struct {
// Required. The list of content updates for a context reference.
ContextContents []*Conversation_ContextReference_ContextContent `protobuf:"bytes,1,rep,name=context_contents,json=contextContents,proto3" json:"context_contents,omitempty"`
// Required. The mode in which context reference contents are updated.
UpdateMode Conversation_ContextReference_UpdateMode `protobuf:"varint,2,opt,name=update_mode,json=updateMode,proto3,enum=google.cloud.dialogflow.v2.Conversation_ContextReference_UpdateMode" json:"update_mode,omitempty"`
// Optional. The language of the information ingested, defaults to "en-US"
// if not set.
LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Output only. The time the context reference was first created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}Represents a section of ingested context information.
func (*Conversation_ContextReference) Descriptor
func (*Conversation_ContextReference) Descriptor() ([]byte, []int)Deprecated: Use Conversation_ContextReference.ProtoReflect.Descriptor instead.
func (*Conversation_ContextReference) GetContextContents
func (x *Conversation_ContextReference) GetContextContents() []*Conversation_ContextReference_ContextContentfunc (*Conversation_ContextReference) GetCreateTime
func (x *Conversation_ContextReference) GetCreateTime() *timestamppb.Timestampfunc (*Conversation_ContextReference) GetLanguageCode
func (x *Conversation_ContextReference) GetLanguageCode() stringfunc (*Conversation_ContextReference) GetUpdateMode
func (x *Conversation_ContextReference) GetUpdateMode() Conversation_ContextReference_UpdateModefunc (*Conversation_ContextReference) ProtoMessage
func (*Conversation_ContextReference) ProtoMessage()func (*Conversation_ContextReference) ProtoReflect
func (x *Conversation_ContextReference) ProtoReflect() protoreflect.Messagefunc (*Conversation_ContextReference) Reset
func (x *Conversation_ContextReference) Reset()func (*Conversation_ContextReference) String
func (x *Conversation_ContextReference) String() stringConversation_ContextReference_ContextContent
type Conversation_ContextReference_ContextContent struct {
// Required. The information ingested in a single request.
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// Required. The format of the ingested string.
ContentFormat Conversation_ContextReference_ContextContent_ContentFormat `protobuf:"varint,2,opt,name=content_format,json=contentFormat,proto3,enum=google.cloud.dialogflow.v2.Conversation_ContextReference_ContextContent_ContentFormat" json:"content_format,omitempty"`
// Output only. The time when this information was incorporated into the
// relevant context reference.
IngestionTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ingestion_time,json=ingestionTime,proto3" json:"ingestion_time,omitempty"`
// contains filtered or unexported fields
}Contents ingested.
func (*Conversation_ContextReference_ContextContent) Descriptor
func (*Conversation_ContextReference_ContextContent) Descriptor() ([]byte, []int)Deprecated: Use Conversation_ContextReference_ContextContent.ProtoReflect.Descriptor instead.
func (*Conversation_ContextReference_ContextContent) GetContent
func (x *Conversation_ContextReference_ContextContent) GetContent() stringfunc (*Conversation_ContextReference_ContextContent) GetContentFormat
func (x *Conversation_ContextReference_ContextContent) GetContentFormat() Conversation_ContextReference_ContextContent_ContentFormatfunc (*Conversation_ContextReference_ContextContent) GetIngestionTime
func (x *Conversation_ContextReference_ContextContent) GetIngestionTime() *timestamppb.Timestampfunc (*Conversation_ContextReference_ContextContent) ProtoMessage
func (*Conversation_ContextReference_ContextContent) ProtoMessage()func (*Conversation_ContextReference_ContextContent) ProtoReflect
func (x *Conversation_ContextReference_ContextContent) ProtoReflect() protoreflect.Messagefunc (*Conversation_ContextReference_ContextContent) Reset
func (x *Conversation_ContextReference_ContextContent) Reset()func (*Conversation_ContextReference_ContextContent) String
func (x *Conversation_ContextReference_ContextContent) String() stringConversation_ContextReference_ContextContent_ContentFormat
type Conversation_ContextReference_ContextContent_ContentFormat int32Represents the format of the ingested string.
Conversation_ContextReference_ContextContent_CONTENT_FORMAT_UNSPECIFIED, Conversation_ContextReference_ContextContent_JSON, Conversation_ContextReference_ContextContent_PLAIN_TEXT
const (
// Unspecified content format.
Conversation_ContextReference_ContextContent_CONTENT_FORMAT_UNSPECIFIED Conversation_ContextReference_ContextContent_ContentFormat = 0
// Content was provided in JSON format.
Conversation_ContextReference_ContextContent_JSON Conversation_ContextReference_ContextContent_ContentFormat = 1
// Content was provided as plain text.
Conversation_ContextReference_ContextContent_PLAIN_TEXT Conversation_ContextReference_ContextContent_ContentFormat = 2
)func (Conversation_ContextReference_ContextContent_ContentFormat) Descriptor
func (Conversation_ContextReference_ContextContent_ContentFormat) Descriptor() protoreflect.EnumDescriptorfunc (Conversation_ContextReference_ContextContent_ContentFormat) Enum
func (x Conversation_ContextReference_ContextContent_ContentFormat) Enum() *Conversation_ContextReference_ContextContent_ContentFormatfunc (Conversation_ContextReference_ContextContent_ContentFormat) EnumDescriptor
func (Conversation_ContextReference_ContextContent_ContentFormat) EnumDescriptor() ([]byte, []int)Deprecated: Use Conversation_ContextReference_ContextContent_ContentFormat.Descriptor instead.
func (Conversation_ContextReference_ContextContent_ContentFormat) Number
func (x Conversation_ContextReference_ContextContent_ContentFormat) Number() protoreflect.EnumNumberfunc (Conversation_ContextReference_ContextContent_ContentFormat) String
func (x Conversation_ContextReference_ContextContent_ContentFormat) String() stringfunc (Conversation_ContextReference_ContextContent_ContentFormat) Type
Conversation_ContextReference_UpdateMode
type Conversation_ContextReference_UpdateMode int32Represents the mode in which context reference contents are updated.
Conversation_ContextReference_UPDATE_MODE_UNSPECIFIED, Conversation_ContextReference_APPEND, Conversation_ContextReference_OVERWRITE
const (
// Unspecified update mode.
Conversation_ContextReference_UPDATE_MODE_UNSPECIFIED Conversation_ContextReference_UpdateMode = 0
// Context content updates are applied in append mode.
Conversation_ContextReference_APPEND Conversation_ContextReference_UpdateMode = 1
// Context content updates are applied in overwrite mode.
Conversation_ContextReference_OVERWRITE Conversation_ContextReference_UpdateMode = 2
)func (Conversation_ContextReference_UpdateMode) Descriptor
func (Conversation_ContextReference_UpdateMode) Descriptor() protoreflect.EnumDescriptorfunc (Conversation_ContextReference_UpdateMode) Enum
func (Conversation_ContextReference_UpdateMode) EnumDescriptor
func (Conversation_ContextReference_UpdateMode) EnumDescriptor() ([]byte, []int)Deprecated: Use Conversation_ContextReference_UpdateMode.Descriptor instead.
func (Conversation_ContextReference_UpdateMode) Number
func (x Conversation_ContextReference_UpdateMode) Number() protoreflect.EnumNumberfunc (Conversation_ContextReference_UpdateMode) String
func (x Conversation_ContextReference_UpdateMode) String() stringfunc (Conversation_ContextReference_UpdateMode) Type
func (Conversation_ContextReference_UpdateMode) Type() protoreflect.EnumTypeConversation_ConversationStage
type Conversation_ConversationStage int32Enumeration of the different conversation stages a conversation can be in. Reference: https://cloud.google.com/agent-assist/docs/basics#conversation_stages
Conversation_CONVERSATION_STAGE_UNSPECIFIED, Conversation_VIRTUAL_AGENT_STAGE, Conversation_HUMAN_ASSIST_STAGE
const (
// Unknown. Should never be used after a conversation is successfully
// created.
Conversation_CONVERSATION_STAGE_UNSPECIFIED Conversation_ConversationStage = 0
// The conversation should return virtual agent responses into the
// conversation.
Conversation_VIRTUAL_AGENT_STAGE Conversation_ConversationStage = 1
// The conversation should not provide responses, just listen and provide
// suggestions.
Conversation_HUMAN_ASSIST_STAGE Conversation_ConversationStage = 2
)func (Conversation_ConversationStage) Descriptor
func (Conversation_ConversationStage) Descriptor() protoreflect.EnumDescriptorfunc (Conversation_ConversationStage) Enum
func (x Conversation_ConversationStage) Enum() *Conversation_ConversationStagefunc (Conversation_ConversationStage) EnumDescriptor
func (Conversation_ConversationStage) EnumDescriptor() ([]byte, []int)Deprecated: Use Conversation_ConversationStage.Descriptor instead.
func (Conversation_ConversationStage) Number
func (x Conversation_ConversationStage) Number() protoreflect.EnumNumberfunc (Conversation_ConversationStage) String
func (x Conversation_ConversationStage) String() stringfunc (Conversation_ConversationStage) Type
func (Conversation_ConversationStage) Type() protoreflect.EnumTypeConversation_LifecycleState
type Conversation_LifecycleState int32Enumeration of the completion status of the conversation.
Conversation_LIFECYCLE_STATE_UNSPECIFIED, Conversation_IN_PROGRESS, Conversation_COMPLETED
const (
// Unknown.
Conversation_LIFECYCLE_STATE_UNSPECIFIED Conversation_LifecycleState = 0
// Conversation is currently open for media analysis.
Conversation_IN_PROGRESS Conversation_LifecycleState = 1
// Conversation has been completed.
Conversation_COMPLETED Conversation_LifecycleState = 2
)func (Conversation_LifecycleState) Descriptor
func (Conversation_LifecycleState) Descriptor() protoreflect.EnumDescriptorfunc (Conversation_LifecycleState) Enum
func (x Conversation_LifecycleState) Enum() *Conversation_LifecycleStatefunc (Conversation_LifecycleState) EnumDescriptor
func (Conversation_LifecycleState) EnumDescriptor() ([]byte, []int)Deprecated: Use Conversation_LifecycleState.Descriptor instead.
func (Conversation_LifecycleState) Number
func (x Conversation_LifecycleState) Number() protoreflect.EnumNumberfunc (Conversation_LifecycleState) String
func (x Conversation_LifecycleState) String() stringfunc (Conversation_LifecycleState) Type
func (Conversation_LifecycleState) Type() protoreflect.EnumTypeConversation_TelephonyConnectionInfo
type Conversation_TelephonyConnectionInfo struct {
// Output only. The number dialed to connect this call in E.164 format.
DialedNumber string `protobuf:"bytes,2,opt,name=dialed_number,json=dialedNumber,proto3" json:"dialed_number,omitempty"`
// Optional. SDP of the call. It's initially the SDP answer to the endpoint,
// but maybe later updated for the purpose of making the link active, etc.
Sdp string `protobuf:"bytes,5,opt,name=sdp,proto3" json:"sdp,omitempty"`
// Output only. The SIP headers from the initial SIP INVITE.
SipHeaders []*Conversation_TelephonyConnectionInfo_SipHeader `protobuf:"bytes,12,rep,name=sip_headers,json=sipHeaders,proto3" json:"sip_headers,omitempty"`
// Output only. The mime content from the initial SIP INVITE.
ExtraMimeContents []*Conversation_TelephonyConnectionInfo_MimeContent `protobuf:"bytes,13,rep,name=extra_mime_contents,json=extraMimeContents,proto3" json:"extra_mime_contents,omitempty"`
// contains filtered or unexported fields
}The information about phone calls connected via phone gateway to the conversation.
func (*Conversation_TelephonyConnectionInfo) Descriptor
func (*Conversation_TelephonyConnectionInfo) Descriptor() ([]byte, []int)Deprecated: Use Conversation_TelephonyConnectionInfo.ProtoReflect.Descriptor instead.
func (*Conversation_TelephonyConnectionInfo) GetDialedNumber
func (x *Conversation_TelephonyConnectionInfo) GetDialedNumber() stringfunc (*Conversation_TelephonyConnectionInfo) GetExtraMimeContents
func (x *Conversation_TelephonyConnectionInfo) GetExtraMimeContents() []*Conversation_TelephonyConnectionInfo_MimeContentfunc (*Conversation_TelephonyConnectionInfo) GetSdp
func (x *Conversation_TelephonyConnectionInfo) GetSdp() stringfunc (*Conversation_TelephonyConnectionInfo) GetSipHeaders
func (x *Conversation_TelephonyConnectionInfo) GetSipHeaders() []*Conversation_TelephonyConnectionInfo_SipHeaderfunc (*Conversation_TelephonyConnectionInfo) ProtoMessage
func (*Conversation_TelephonyConnectionInfo) ProtoMessage()func (*Conversation_TelephonyConnectionInfo) ProtoReflect
func (x *Conversation_TelephonyConnectionInfo) ProtoReflect() protoreflect.Messagefunc (*Conversation_TelephonyConnectionInfo) Reset
func (x *Conversation_TelephonyConnectionInfo) Reset()func (*Conversation_TelephonyConnectionInfo) String
func (x *Conversation_TelephonyConnectionInfo) String() stringConversation_TelephonyConnectionInfo_MimeContent
type Conversation_TelephonyConnectionInfo_MimeContent struct {
// Optional. The mime type of the content.
MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// Optional. The content payload.
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}The mime content from the initial SIP INVITE.
func (*Conversation_TelephonyConnectionInfo_MimeContent) Descriptor
func (*Conversation_TelephonyConnectionInfo_MimeContent) Descriptor() ([]byte, []int)Deprecated: Use Conversation_TelephonyConnectionInfo_MimeContent.ProtoReflect.Descriptor instead.
func (*Conversation_TelephonyConnectionInfo_MimeContent) GetContent
func (x *Conversation_TelephonyConnectionInfo_MimeContent) GetContent() []bytefunc (*Conversation_TelephonyConnectionInfo_MimeContent) GetMimeType
func (x *Conversation_TelephonyConnectionInfo_MimeContent) GetMimeType() stringfunc (*Conversation_TelephonyConnectionInfo_MimeContent) ProtoMessage
func (*Conversation_TelephonyConnectionInfo_MimeContent) ProtoMessage()func (*Conversation_TelephonyConnectionInfo_MimeContent) ProtoReflect
func (x *Conversation_TelephonyConnectionInfo_MimeContent) ProtoReflect() protoreflect.Messagefunc (*Conversation_TelephonyConnectionInfo_MimeContent) Reset
func (x *Conversation_TelephonyConnectionInfo_MimeContent) Reset()func (*Conversation_TelephonyConnectionInfo_MimeContent) String
func (x *Conversation_TelephonyConnectionInfo_MimeContent) String() stringConversation_TelephonyConnectionInfo_SipHeader
type Conversation_TelephonyConnectionInfo_SipHeader struct {
// Optional. The name of the header.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The value of the header.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}The SIP headers from the initial SIP INVITE.
func (*Conversation_TelephonyConnectionInfo_SipHeader) Descriptor
func (*Conversation_TelephonyConnectionInfo_SipHeader) Descriptor() ([]byte, []int)Deprecated: Use Conversation_TelephonyConnectionInfo_SipHeader.ProtoReflect.Descriptor instead.
func (*Conversation_TelephonyConnectionInfo_SipHeader) GetName
func (x *Conversation_TelephonyConnectionInfo_SipHeader) GetName() stringfunc (*Conversation_TelephonyConnectionInfo_SipHeader) GetValue
func (x *Conversation_TelephonyConnectionInfo_SipHeader) GetValue() stringfunc (*Conversation_TelephonyConnectionInfo_SipHeader) ProtoMessage
func (*Conversation_TelephonyConnectionInfo_SipHeader) ProtoMessage()func (*Conversation_TelephonyConnectionInfo_SipHeader) ProtoReflect
func (x *Conversation_TelephonyConnectionInfo_SipHeader) ProtoReflect() protoreflect.Messagefunc (*Conversation_TelephonyConnectionInfo_SipHeader) Reset
func (x *Conversation_TelephonyConnectionInfo_SipHeader) Reset()func (*Conversation_TelephonyConnectionInfo_SipHeader) String
func (x *Conversation_TelephonyConnectionInfo_SipHeader) String() stringConversationsClient
type ConversationsClient interface {
// Creates a new conversation. Conversations are auto-completed after 24
// hours.
//
// Conversation Lifecycle:
// There are two stages during a conversation: Automated Agent Stage and
// Assist Stage.
//
// For Automated Agent Stage, there will be a dialogflow agent responding to
// user queries.
//
// For Assist Stage, there's no dialogflow agent responding to user queries.
// But we will provide suggestions which are generated from conversation.
//
// If
// [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile]
// is configured for a dialogflow agent, conversation will start from
// `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And
// during `Automated Agent Stage`, once an
// [Intent][google.cloud.dialogflow.v2.Intent] with
// [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff]
// is triggered, conversation will transfer to Assist Stage.
CreateConversation(ctx context.Context, in *CreateConversationRequest, opts ...grpc.CallOption) (*Conversation, error)
// Returns the list of all conversations in the specified project.
ListConversations(ctx context.Context, in *ListConversationsRequest, opts ...grpc.CallOption) (*ListConversationsResponse, error)
// Retrieves the specific conversation.
GetConversation(ctx context.Context, in *GetConversationRequest, opts ...grpc.CallOption) (*Conversation, error)
// Completes the specified conversation. Finished conversations are purged
// from the database after 30 days.
CompleteConversation(ctx context.Context, in *CompleteConversationRequest, opts ...grpc.CallOption) (*Conversation, error)
// Data ingestion API.
// Ingests context references for an existing conversation.
IngestContextReferences(ctx context.Context, in *IngestContextReferencesRequest, opts ...grpc.CallOption) (*IngestContextReferencesResponse, error)
// Lists messages that belong to a given conversation.
// `messages` are ordered by `create_time` in descending order. To fetch
// updates without duplication, send request with filter
// `create_time_epoch_microseconds >
// [first item's create_time of previous request]` and empty page_token.
ListMessages(ctx context.Context, in *ListMessagesRequest, opts ...grpc.CallOption) (*ListMessagesResponse, error)
// Suggests summary for a conversation based on specific historical messages.
// The range of the messages to be used for summary can be specified in the
// request.
SuggestConversationSummary(ctx context.Context, in *SuggestConversationSummaryRequest, opts ...grpc.CallOption) (*SuggestConversationSummaryResponse, error)
// Generates and returns a summary for a conversation that does not have a
// resource created for it.
GenerateStatelessSummary(ctx context.Context, in *GenerateStatelessSummaryRequest, opts ...grpc.CallOption) (*GenerateStatelessSummaryResponse, error)
// Generates and returns a suggestion for a conversation that does not have a
// resource created for it.
GenerateStatelessSuggestion(ctx context.Context, in *GenerateStatelessSuggestionRequest, opts ...grpc.CallOption) (*GenerateStatelessSuggestionResponse, error)
// Get answers for the given query based on knowledge documents.
SearchKnowledge(ctx context.Context, in *SearchKnowledgeRequest, opts ...grpc.CallOption) (*SearchKnowledgeResponse, error)
// Generates all the suggestions using generators configured in the
// conversation profile. A generator is used only if its trigger event is
// matched.
GenerateSuggestions(ctx context.Context, in *GenerateSuggestionsRequest, opts ...grpc.CallOption) (*GenerateSuggestionsResponse, error)
}ConversationsClient is the client API for Conversations service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewConversationsClient
func NewConversationsClient(cc grpc.ClientConnInterface) ConversationsClientConversationsServer
type ConversationsServer interface {
// Creates a new conversation. Conversations are auto-completed after 24
// hours.
//
// Conversation Lifecycle:
// There are two stages during a conversation: Automated Agent Stage and
// Assist Stage.
//
// For Automated Agent Stage, there will be a dialogflow agent responding to
// user queries.
//
// For Assist Stage, there's no dialogflow agent responding to user queries.
// But we will provide suggestions which are generated from conversation.
//
// If
// [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile]
// is configured for a dialogflow agent, conversation will start from
// `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And
// during `Automated Agent Stage`, once an
// [Intent][google.cloud.dialogflow.v2.Intent] with
// [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff]
// is triggered, conversation will transfer to Assist Stage.
CreateConversation(context.Context, *CreateConversationRequest) (*Conversation, error)
// Returns the list of all conversations in the specified project.
ListConversations(context.Context, *ListConversationsRequest) (*ListConversationsResponse, error)
// Retrieves the specific conversation.
GetConversation(context.Context, *GetConversationRequest) (*Conversation, error)
// Completes the specified conversation. Finished conversations are purged
// from the database after 30 days.
CompleteConversation(context.Context, *CompleteConversationRequest) (*Conversation, error)
// Data ingestion API.
// Ingests context references for an existing conversation.
IngestContextReferences(context.Context, *IngestContextReferencesRequest) (*IngestContextReferencesResponse, error)
// Lists messages that belong to a given conversation.
// `messages` are ordered by `create_time` in descending order. To fetch
// updates without duplication, send request with filter
// `create_time_epoch_microseconds >
// [first item's create_time of previous request]` and empty page_token.
ListMessages(context.Context, *ListMessagesRequest) (*ListMessagesResponse, error)
// Suggests summary for a conversation based on specific historical messages.
// The range of the messages to be used for summary can be specified in the
// request.
SuggestConversationSummary(context.Context, *SuggestConversationSummaryRequest) (*SuggestConversationSummaryResponse, error)
// Generates and returns a summary for a conversation that does not have a
// resource created for it.
GenerateStatelessSummary(context.Context, *GenerateStatelessSummaryRequest) (*GenerateStatelessSummaryResponse, error)
// Generates and returns a suggestion for a conversation that does not have a
// resource created for it.
GenerateStatelessSuggestion(context.Context, *GenerateStatelessSuggestionRequest) (*GenerateStatelessSuggestionResponse, error)
// Get answers for the given query based on knowledge documents.
SearchKnowledge(context.Context, *SearchKnowledgeRequest) (*SearchKnowledgeResponse, error)
// Generates all the suggestions using generators configured in the
// conversation profile. A generator is used only if its trigger event is
// matched.
GenerateSuggestions(context.Context, *GenerateSuggestionsRequest) (*GenerateSuggestionsResponse, error)
}ConversationsServer is the server API for Conversations service. All implementations should embed UnimplementedConversationsServer for forward compatibility
CreateContextRequest
type CreateContextRequest struct {
// Required. The session to create a context for.
// Format: `projects/The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].
func (*CreateContextRequest) Descriptor
func (*CreateContextRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateContextRequest.ProtoReflect.Descriptor instead.
func (*CreateContextRequest) GetContext
func (x *CreateContextRequest) GetContext() *Contextfunc (*CreateContextRequest) GetParent
func (x *CreateContextRequest) GetParent() stringfunc (*CreateContextRequest) ProtoMessage
func (*CreateContextRequest) ProtoMessage()func (*CreateContextRequest) ProtoReflect
func (x *CreateContextRequest) ProtoReflect() protoreflect.Messagefunc (*CreateContextRequest) Reset
func (x *CreateContextRequest) Reset()func (*CreateContextRequest) String
func (x *CreateContextRequest) String() stringCreateConversationDatasetOperationMetadata
type CreateConversationDatasetOperationMetadata struct {
// The resource name of the conversation dataset that will be created. Format:
// `projects/Metadata for [CreateConversationDataset][].
func (*CreateConversationDatasetOperationMetadata) Descriptor
func (*CreateConversationDatasetOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use CreateConversationDatasetOperationMetadata.ProtoReflect.Descriptor instead.
func (*CreateConversationDatasetOperationMetadata) GetConversationDataset
func (x *CreateConversationDatasetOperationMetadata) GetConversationDataset() stringfunc (*CreateConversationDatasetOperationMetadata) ProtoMessage
func (*CreateConversationDatasetOperationMetadata) ProtoMessage()func (*CreateConversationDatasetOperationMetadata) ProtoReflect
func (x *CreateConversationDatasetOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*CreateConversationDatasetOperationMetadata) Reset
func (x *CreateConversationDatasetOperationMetadata) Reset()func (*CreateConversationDatasetOperationMetadata) String
func (x *CreateConversationDatasetOperationMetadata) String() stringCreateConversationDatasetRequest
type CreateConversationDatasetRequest struct {
// Required. The project to create conversation dataset for. Format:
// `projects/The request message for [ConversationDatasets.CreateConversationDataset][google.cloud.dialogflow.v2.ConversationDatasets.CreateConversationDataset].
func (*CreateConversationDatasetRequest) Descriptor
func (*CreateConversationDatasetRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateConversationDatasetRequest.ProtoReflect.Descriptor instead.
func (*CreateConversationDatasetRequest) GetConversationDataset
func (x *CreateConversationDatasetRequest) GetConversationDataset() *ConversationDatasetfunc (*CreateConversationDatasetRequest) GetParent
func (x *CreateConversationDatasetRequest) GetParent() stringfunc (*CreateConversationDatasetRequest) ProtoMessage
func (*CreateConversationDatasetRequest) ProtoMessage()func (*CreateConversationDatasetRequest) ProtoReflect
func (x *CreateConversationDatasetRequest) ProtoReflect() protoreflect.Messagefunc (*CreateConversationDatasetRequest) Reset
func (x *CreateConversationDatasetRequest) Reset()func (*CreateConversationDatasetRequest) String
func (x *CreateConversationDatasetRequest) String() stringCreateConversationModelEvaluationOperationMetadata
type CreateConversationModelEvaluationOperationMetadata struct {
// The resource name of the conversation model. Format:
// `projects/Metadata for a [ConversationModels.CreateConversationModelEvaluation][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModelEvaluation] operation.
func (*CreateConversationModelEvaluationOperationMetadata) Descriptor
func (*CreateConversationModelEvaluationOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use CreateConversationModelEvaluationOperationMetadata.ProtoReflect.Descriptor instead.
func (*CreateConversationModelEvaluationOperationMetadata) GetConversationModel
func (x *CreateConversationModelEvaluationOperationMetadata) GetConversationModel() stringfunc (*CreateConversationModelEvaluationOperationMetadata) GetConversationModelEvaluation
func (x *CreateConversationModelEvaluationOperationMetadata) GetConversationModelEvaluation() stringfunc (*CreateConversationModelEvaluationOperationMetadata) GetCreateTime
func (x *CreateConversationModelEvaluationOperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*CreateConversationModelEvaluationOperationMetadata) GetState
func (x *CreateConversationModelEvaluationOperationMetadata) GetState() CreateConversationModelEvaluationOperationMetadata_Statefunc (*CreateConversationModelEvaluationOperationMetadata) ProtoMessage
func (*CreateConversationModelEvaluationOperationMetadata) ProtoMessage()func (*CreateConversationModelEvaluationOperationMetadata) ProtoReflect
func (x *CreateConversationModelEvaluationOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*CreateConversationModelEvaluationOperationMetadata) Reset
func (x *CreateConversationModelEvaluationOperationMetadata) Reset()func (*CreateConversationModelEvaluationOperationMetadata) String
func (x *CreateConversationModelEvaluationOperationMetadata) String() stringCreateConversationModelEvaluationOperationMetadata_State
type CreateConversationModelEvaluationOperationMetadata_State int32State of CreateConversationModel operation.
CreateConversationModelEvaluationOperationMetadata_STATE_UNSPECIFIED, CreateConversationModelEvaluationOperationMetadata_INITIALIZING, CreateConversationModelEvaluationOperationMetadata_RUNNING, CreateConversationModelEvaluationOperationMetadata_CANCELLED, CreateConversationModelEvaluationOperationMetadata_SUCCEEDED, CreateConversationModelEvaluationOperationMetadata_FAILED
const (
// Operation status not specified.
CreateConversationModelEvaluationOperationMetadata_STATE_UNSPECIFIED CreateConversationModelEvaluationOperationMetadata_State = 0
// The operation is being prepared.
CreateConversationModelEvaluationOperationMetadata_INITIALIZING CreateConversationModelEvaluationOperationMetadata_State = 1
// The operation is running.
CreateConversationModelEvaluationOperationMetadata_RUNNING CreateConversationModelEvaluationOperationMetadata_State = 2
// The operation is cancelled.
CreateConversationModelEvaluationOperationMetadata_CANCELLED CreateConversationModelEvaluationOperationMetadata_State = 3
// The operation has succeeded.
CreateConversationModelEvaluationOperationMetadata_SUCCEEDED CreateConversationModelEvaluationOperationMetadata_State = 4
// The operation has failed.
CreateConversationModelEvaluationOperationMetadata_FAILED CreateConversationModelEvaluationOperationMetadata_State = 5
)func (CreateConversationModelEvaluationOperationMetadata_State) Descriptor
func (CreateConversationModelEvaluationOperationMetadata_State) Descriptor() protoreflect.EnumDescriptorfunc (CreateConversationModelEvaluationOperationMetadata_State) Enum
func (x CreateConversationModelEvaluationOperationMetadata_State) Enum() *CreateConversationModelEvaluationOperationMetadata_Statefunc (CreateConversationModelEvaluationOperationMetadata_State) EnumDescriptor
func (CreateConversationModelEvaluationOperationMetadata_State) EnumDescriptor() ([]byte, []int)Deprecated: Use CreateConversationModelEvaluationOperationMetadata_State.Descriptor instead.
func (CreateConversationModelEvaluationOperationMetadata_State) Number
func (x CreateConversationModelEvaluationOperationMetadata_State) Number() protoreflect.EnumNumberfunc (CreateConversationModelEvaluationOperationMetadata_State) String
func (x CreateConversationModelEvaluationOperationMetadata_State) String() stringfunc (CreateConversationModelEvaluationOperationMetadata_State) Type
CreateConversationModelEvaluationRequest
type CreateConversationModelEvaluationRequest struct {
// Required. The conversation model resource name. Format:
// `projects/The request message for [ConversationModels.CreateConversationModelEvaluation][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModelEvaluation]
func (*CreateConversationModelEvaluationRequest) Descriptor
func (*CreateConversationModelEvaluationRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateConversationModelEvaluationRequest.ProtoReflect.Descriptor instead.
func (*CreateConversationModelEvaluationRequest) GetConversationModelEvaluation
func (x *CreateConversationModelEvaluationRequest) GetConversationModelEvaluation() *ConversationModelEvaluationfunc (*CreateConversationModelEvaluationRequest) GetParent
func (x *CreateConversationModelEvaluationRequest) GetParent() stringfunc (*CreateConversationModelEvaluationRequest) ProtoMessage
func (*CreateConversationModelEvaluationRequest) ProtoMessage()func (*CreateConversationModelEvaluationRequest) ProtoReflect
func (x *CreateConversationModelEvaluationRequest) ProtoReflect() protoreflect.Messagefunc (*CreateConversationModelEvaluationRequest) Reset
func (x *CreateConversationModelEvaluationRequest) Reset()func (*CreateConversationModelEvaluationRequest) String
func (x *CreateConversationModelEvaluationRequest) String() stringCreateConversationModelOperationMetadata
type CreateConversationModelOperationMetadata struct {
// The resource name of the conversation model. Format:
// `projects/Metadata for a [ConversationModels.CreateConversationModel][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModel] operation.
func (*CreateConversationModelOperationMetadata) Descriptor
func (*CreateConversationModelOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use CreateConversationModelOperationMetadata.ProtoReflect.Descriptor instead.
func (*CreateConversationModelOperationMetadata) GetConversationModel
func (x *CreateConversationModelOperationMetadata) GetConversationModel() stringfunc (*CreateConversationModelOperationMetadata) GetCreateTime
func (x *CreateConversationModelOperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*CreateConversationModelOperationMetadata) GetState
func (x *CreateConversationModelOperationMetadata) GetState() CreateConversationModelOperationMetadata_Statefunc (*CreateConversationModelOperationMetadata) ProtoMessage
func (*CreateConversationModelOperationMetadata) ProtoMessage()func (*CreateConversationModelOperationMetadata) ProtoReflect
func (x *CreateConversationModelOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*CreateConversationModelOperationMetadata) Reset
func (x *CreateConversationModelOperationMetadata) Reset()func (*CreateConversationModelOperationMetadata) String
func (x *CreateConversationModelOperationMetadata) String() stringCreateConversationModelOperationMetadata_State
type CreateConversationModelOperationMetadata_State int32State of CreateConversationModel operation.
CreateConversationModelOperationMetadata_STATE_UNSPECIFIED, CreateConversationModelOperationMetadata_PENDING, CreateConversationModelOperationMetadata_SUCCEEDED, CreateConversationModelOperationMetadata_FAILED, CreateConversationModelOperationMetadata_CANCELLED, CreateConversationModelOperationMetadata_CANCELLING, CreateConversationModelOperationMetadata_TRAINING
const (
// Invalid.
CreateConversationModelOperationMetadata_STATE_UNSPECIFIED CreateConversationModelOperationMetadata_State = 0
// Request is submitted, but training has not started yet.
// The model may remain in this state until there is enough capacity to
// start training.
CreateConversationModelOperationMetadata_PENDING CreateConversationModelOperationMetadata_State = 1
// The training has succeeded.
CreateConversationModelOperationMetadata_SUCCEEDED CreateConversationModelOperationMetadata_State = 2
// The training has succeeded.
CreateConversationModelOperationMetadata_FAILED CreateConversationModelOperationMetadata_State = 3
// The training has been cancelled.
CreateConversationModelOperationMetadata_CANCELLED CreateConversationModelOperationMetadata_State = 4
// The training is in cancelling state.
CreateConversationModelOperationMetadata_CANCELLING CreateConversationModelOperationMetadata_State = 5
// Custom model is training.
CreateConversationModelOperationMetadata_TRAINING CreateConversationModelOperationMetadata_State = 6
)func (CreateConversationModelOperationMetadata_State) Descriptor
func (CreateConversationModelOperationMetadata_State) Descriptor() protoreflect.EnumDescriptorfunc (CreateConversationModelOperationMetadata_State) Enum
func (x CreateConversationModelOperationMetadata_State) Enum() *CreateConversationModelOperationMetadata_Statefunc (CreateConversationModelOperationMetadata_State) EnumDescriptor
func (CreateConversationModelOperationMetadata_State) EnumDescriptor() ([]byte, []int)Deprecated: Use CreateConversationModelOperationMetadata_State.Descriptor instead.
func (CreateConversationModelOperationMetadata_State) Number
func (x CreateConversationModelOperationMetadata_State) Number() protoreflect.EnumNumberfunc (CreateConversationModelOperationMetadata_State) String
func (x CreateConversationModelOperationMetadata_State) String() stringfunc (CreateConversationModelOperationMetadata_State) Type
CreateConversationModelRequest
type CreateConversationModelRequest struct {
// The project to create conversation model for. Format:
// `projects/The request message for [ConversationModels.CreateConversationModel][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModel]
func (*CreateConversationModelRequest) Descriptor
func (*CreateConversationModelRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateConversationModelRequest.ProtoReflect.Descriptor instead.
func (*CreateConversationModelRequest) GetConversationModel
func (x *CreateConversationModelRequest) GetConversationModel() *ConversationModelfunc (*CreateConversationModelRequest) GetParent
func (x *CreateConversationModelRequest) GetParent() stringfunc (*CreateConversationModelRequest) ProtoMessage
func (*CreateConversationModelRequest) ProtoMessage()func (*CreateConversationModelRequest) ProtoReflect
func (x *CreateConversationModelRequest) ProtoReflect() protoreflect.Messagefunc (*CreateConversationModelRequest) Reset
func (x *CreateConversationModelRequest) Reset()func (*CreateConversationModelRequest) String
func (x *CreateConversationModelRequest) String() stringCreateConversationProfileRequest
type CreateConversationProfileRequest struct {
// Required. The project to create a conversation profile for.
// Format: `projects/The request message for [ConversationProfiles.CreateConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.CreateConversationProfile].
func (*CreateConversationProfileRequest) Descriptor
func (*CreateConversationProfileRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateConversationProfileRequest.ProtoReflect.Descriptor instead.
func (*CreateConversationProfileRequest) GetConversationProfile
func (x *CreateConversationProfileRequest) GetConversationProfile() *ConversationProfilefunc (*CreateConversationProfileRequest) GetParent
func (x *CreateConversationProfileRequest) GetParent() stringfunc (*CreateConversationProfileRequest) ProtoMessage
func (*CreateConversationProfileRequest) ProtoMessage()func (*CreateConversationProfileRequest) ProtoReflect
func (x *CreateConversationProfileRequest) ProtoReflect() protoreflect.Messagefunc (*CreateConversationProfileRequest) Reset
func (x *CreateConversationProfileRequest) Reset()func (*CreateConversationProfileRequest) String
func (x *CreateConversationProfileRequest) String() stringCreateConversationRequest
type CreateConversationRequest struct {
// Required. Resource identifier of the project creating the conversation.
// Format: `projects/The request message for [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation].
func (*CreateConversationRequest) Descriptor
func (*CreateConversationRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateConversationRequest.ProtoReflect.Descriptor instead.
func (*CreateConversationRequest) GetConversation
func (x *CreateConversationRequest) GetConversation() *Conversationfunc (*CreateConversationRequest) GetConversationId
func (x *CreateConversationRequest) GetConversationId() stringfunc (*CreateConversationRequest) GetParent
func (x *CreateConversationRequest) GetParent() stringfunc (*CreateConversationRequest) ProtoMessage
func (*CreateConversationRequest) ProtoMessage()func (*CreateConversationRequest) ProtoReflect
func (x *CreateConversationRequest) ProtoReflect() protoreflect.Messagefunc (*CreateConversationRequest) Reset
func (x *CreateConversationRequest) Reset()func (*CreateConversationRequest) String
func (x *CreateConversationRequest) String() stringCreateDocumentRequest
type CreateDocumentRequest struct {
// Required. The knowledge base to create a document for.
// Format: `projects/Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2.Documents.CreateDocument].
func (*CreateDocumentRequest) Descriptor
func (*CreateDocumentRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateDocumentRequest.ProtoReflect.Descriptor instead.
func (*CreateDocumentRequest) GetDocument
func (x *CreateDocumentRequest) GetDocument() *Documentfunc (*CreateDocumentRequest) GetParent
func (x *CreateDocumentRequest) GetParent() stringfunc (*CreateDocumentRequest) ProtoMessage
func (*CreateDocumentRequest) ProtoMessage()func (*CreateDocumentRequest) ProtoReflect
func (x *CreateDocumentRequest) ProtoReflect() protoreflect.Messagefunc (*CreateDocumentRequest) Reset
func (x *CreateDocumentRequest) Reset()func (*CreateDocumentRequest) String
func (x *CreateDocumentRequest) String() stringCreateEntityTypeRequest
type CreateEntityTypeRequest struct {
// Required. The agent to create a entity type for.
// Format: `projects/The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType].
func (*CreateEntityTypeRequest) Descriptor
func (*CreateEntityTypeRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateEntityTypeRequest.ProtoReflect.Descriptor instead.
func (*CreateEntityTypeRequest) GetEntityType
func (x *CreateEntityTypeRequest) GetEntityType() *EntityTypefunc (*CreateEntityTypeRequest) GetLanguageCode
func (x *CreateEntityTypeRequest) GetLanguageCode() stringfunc (*CreateEntityTypeRequest) GetParent
func (x *CreateEntityTypeRequest) GetParent() stringfunc (*CreateEntityTypeRequest) ProtoMessage
func (*CreateEntityTypeRequest) ProtoMessage()func (*CreateEntityTypeRequest) ProtoReflect
func (x *CreateEntityTypeRequest) ProtoReflect() protoreflect.Messagefunc (*CreateEntityTypeRequest) Reset
func (x *CreateEntityTypeRequest) Reset()func (*CreateEntityTypeRequest) String
func (x *CreateEntityTypeRequest) String() stringCreateEnvironmentRequest
type CreateEnvironmentRequest struct {
// Required. The agent to create an environment for.
// Supported formats:
//
// - `projects/The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.v2.Environments.CreateEnvironment].
func (*CreateEnvironmentRequest) Descriptor
func (*CreateEnvironmentRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateEnvironmentRequest.ProtoReflect.Descriptor instead.
func (*CreateEnvironmentRequest) GetEnvironment
func (x *CreateEnvironmentRequest) GetEnvironment() *Environmentfunc (*CreateEnvironmentRequest) GetEnvironmentId
func (x *CreateEnvironmentRequest) GetEnvironmentId() stringfunc (*CreateEnvironmentRequest) GetParent
func (x *CreateEnvironmentRequest) GetParent() stringfunc (*CreateEnvironmentRequest) ProtoMessage
func (*CreateEnvironmentRequest) ProtoMessage()func (*CreateEnvironmentRequest) ProtoReflect
func (x *CreateEnvironmentRequest) ProtoReflect() protoreflect.Messagefunc (*CreateEnvironmentRequest) Reset
func (x *CreateEnvironmentRequest) Reset()func (*CreateEnvironmentRequest) String
func (x *CreateEnvironmentRequest) String() stringCreateGeneratorRequest
type CreateGeneratorRequest struct {
// Required. The project/location to create generator for. Format:
// `projects/Request message of CreateGenerator.
func (*CreateGeneratorRequest) Descriptor
func (*CreateGeneratorRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateGeneratorRequest.ProtoReflect.Descriptor instead.
func (*CreateGeneratorRequest) GetGenerator
func (x *CreateGeneratorRequest) GetGenerator() *Generatorfunc (*CreateGeneratorRequest) GetGeneratorId
func (x *CreateGeneratorRequest) GetGeneratorId() stringfunc (*CreateGeneratorRequest) GetParent
func (x *CreateGeneratorRequest) GetParent() stringfunc (*CreateGeneratorRequest) ProtoMessage
func (*CreateGeneratorRequest) ProtoMessage()func (*CreateGeneratorRequest) ProtoReflect
func (x *CreateGeneratorRequest) ProtoReflect() protoreflect.Messagefunc (*CreateGeneratorRequest) Reset
func (x *CreateGeneratorRequest) Reset()func (*CreateGeneratorRequest) String
func (x *CreateGeneratorRequest) String() stringCreateIntentRequest
type CreateIntentRequest struct {
// Required. The agent to create a intent for.
// Format: `projects/The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent].
func (*CreateIntentRequest) Descriptor
func (*CreateIntentRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateIntentRequest.ProtoReflect.Descriptor instead.
func (*CreateIntentRequest) GetIntent
func (x *CreateIntentRequest) GetIntent() *Intentfunc (*CreateIntentRequest) GetIntentView
func (x *CreateIntentRequest) GetIntentView() IntentViewfunc (*CreateIntentRequest) GetLanguageCode
func (x *CreateIntentRequest) GetLanguageCode() stringfunc (*CreateIntentRequest) GetParent
func (x *CreateIntentRequest) GetParent() stringfunc (*CreateIntentRequest) ProtoMessage
func (*CreateIntentRequest) ProtoMessage()func (*CreateIntentRequest) ProtoReflect
func (x *CreateIntentRequest) ProtoReflect() protoreflect.Messagefunc (*CreateIntentRequest) Reset
func (x *CreateIntentRequest) Reset()func (*CreateIntentRequest) String
func (x *CreateIntentRequest) String() stringCreateKnowledgeBaseRequest
type CreateKnowledgeBaseRequest struct {
// Required. The project to create a knowledge base for.
// Format: `projects/Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.CreateKnowledgeBase].
func (*CreateKnowledgeBaseRequest) Descriptor
func (*CreateKnowledgeBaseRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateKnowledgeBaseRequest.ProtoReflect.Descriptor instead.
func (*CreateKnowledgeBaseRequest) GetKnowledgeBase
func (x *CreateKnowledgeBaseRequest) GetKnowledgeBase() *KnowledgeBasefunc (*CreateKnowledgeBaseRequest) GetParent
func (x *CreateKnowledgeBaseRequest) GetParent() stringfunc (*CreateKnowledgeBaseRequest) ProtoMessage
func (*CreateKnowledgeBaseRequest) ProtoMessage()func (*CreateKnowledgeBaseRequest) ProtoReflect
func (x *CreateKnowledgeBaseRequest) ProtoReflect() protoreflect.Messagefunc (*CreateKnowledgeBaseRequest) Reset
func (x *CreateKnowledgeBaseRequest) Reset()func (*CreateKnowledgeBaseRequest) String
func (x *CreateKnowledgeBaseRequest) String() stringCreateParticipantRequest
type CreateParticipantRequest struct {
// Required. Resource identifier of the conversation adding the participant.
// Format: `projects/The request message for [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant].
func (*CreateParticipantRequest) Descriptor
func (*CreateParticipantRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateParticipantRequest.ProtoReflect.Descriptor instead.
func (*CreateParticipantRequest) GetParent
func (x *CreateParticipantRequest) GetParent() stringfunc (*CreateParticipantRequest) GetParticipant
func (x *CreateParticipantRequest) GetParticipant() *Participantfunc (*CreateParticipantRequest) ProtoMessage
func (*CreateParticipantRequest) ProtoMessage()func (*CreateParticipantRequest) ProtoReflect
func (x *CreateParticipantRequest) ProtoReflect() protoreflect.Messagefunc (*CreateParticipantRequest) Reset
func (x *CreateParticipantRequest) Reset()func (*CreateParticipantRequest) String
func (x *CreateParticipantRequest) String() stringCreateSessionEntityTypeRequest
type CreateSessionEntityTypeRequest struct {
// Required. The session to create a session entity type for.
// Format: `projects/The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType].
func (*CreateSessionEntityTypeRequest) Descriptor
func (*CreateSessionEntityTypeRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateSessionEntityTypeRequest.ProtoReflect.Descriptor instead.
func (*CreateSessionEntityTypeRequest) GetParent
func (x *CreateSessionEntityTypeRequest) GetParent() stringfunc (*CreateSessionEntityTypeRequest) GetSessionEntityType
func (x *CreateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityTypefunc (*CreateSessionEntityTypeRequest) ProtoMessage
func (*CreateSessionEntityTypeRequest) ProtoMessage()func (*CreateSessionEntityTypeRequest) ProtoReflect
func (x *CreateSessionEntityTypeRequest) ProtoReflect() protoreflect.Messagefunc (*CreateSessionEntityTypeRequest) Reset
func (x *CreateSessionEntityTypeRequest) Reset()func (*CreateSessionEntityTypeRequest) String
func (x *CreateSessionEntityTypeRequest) String() stringCreateVersionRequest
type CreateVersionRequest struct {
// Required. The agent to create a version for.
// Supported formats:
//
// - `projects/The request message for [Versions.CreateVersion][google.cloud.dialogflow.v2.Versions.CreateVersion].
func (*CreateVersionRequest) Descriptor
func (*CreateVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateVersionRequest.ProtoReflect.Descriptor instead.
func (*CreateVersionRequest) GetParent
func (x *CreateVersionRequest) GetParent() stringfunc (*CreateVersionRequest) GetVersion
func (x *CreateVersionRequest) GetVersion() *Versionfunc (*CreateVersionRequest) ProtoMessage
func (*CreateVersionRequest) ProtoMessage()func (*CreateVersionRequest) ProtoReflect
func (x *CreateVersionRequest) ProtoReflect() protoreflect.Messagefunc (*CreateVersionRequest) Reset
func (x *CreateVersionRequest) Reset()func (*CreateVersionRequest) String
func (x *CreateVersionRequest) String() stringDeleteAgentRequest
type DeleteAgentRequest struct {
// Required. The project that the agent to delete is associated with.
// Format: `projects/The request message for [Agents.DeleteAgent][google.cloud.dialogflow.v2.Agents.DeleteAgent].
func (*DeleteAgentRequest) Descriptor
func (*DeleteAgentRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteAgentRequest.ProtoReflect.Descriptor instead.
func (*DeleteAgentRequest) GetParent
func (x *DeleteAgentRequest) GetParent() stringfunc (*DeleteAgentRequest) ProtoMessage
func (*DeleteAgentRequest) ProtoMessage()func (*DeleteAgentRequest) ProtoReflect
func (x *DeleteAgentRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteAgentRequest) Reset
func (x *DeleteAgentRequest) Reset()func (*DeleteAgentRequest) String
func (x *DeleteAgentRequest) String() stringDeleteAllContextsRequest
type DeleteAllContextsRequest struct {
// Required. The name of the session to delete all contexts from. Format:
// `projects/The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts].
func (*DeleteAllContextsRequest) Descriptor
func (*DeleteAllContextsRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteAllContextsRequest.ProtoReflect.Descriptor instead.
func (*DeleteAllContextsRequest) GetParent
func (x *DeleteAllContextsRequest) GetParent() stringfunc (*DeleteAllContextsRequest) ProtoMessage
func (*DeleteAllContextsRequest) ProtoMessage()func (*DeleteAllContextsRequest) ProtoReflect
func (x *DeleteAllContextsRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteAllContextsRequest) Reset
func (x *DeleteAllContextsRequest) Reset()func (*DeleteAllContextsRequest) String
func (x *DeleteAllContextsRequest) String() stringDeleteContextRequest
type DeleteContextRequest struct {
// Required. The name of the context to delete. Format:
// `projects/The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext].
func (*DeleteContextRequest) Descriptor
func (*DeleteContextRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteContextRequest.ProtoReflect.Descriptor instead.
func (*DeleteContextRequest) GetName
func (x *DeleteContextRequest) GetName() stringfunc (*DeleteContextRequest) ProtoMessage
func (*DeleteContextRequest) ProtoMessage()func (*DeleteContextRequest) ProtoReflect
func (x *DeleteContextRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteContextRequest) Reset
func (x *DeleteContextRequest) Reset()func (*DeleteContextRequest) String
func (x *DeleteContextRequest) String() stringDeleteConversationDatasetOperationMetadata
type DeleteConversationDatasetOperationMetadata struct {
// contains filtered or unexported fields
}Metadata for [DeleteConversationDataset][].
func (*DeleteConversationDatasetOperationMetadata) Descriptor
func (*DeleteConversationDatasetOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use DeleteConversationDatasetOperationMetadata.ProtoReflect.Descriptor instead.
func (*DeleteConversationDatasetOperationMetadata) ProtoMessage
func (*DeleteConversationDatasetOperationMetadata) ProtoMessage()func (*DeleteConversationDatasetOperationMetadata) ProtoReflect
func (x *DeleteConversationDatasetOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*DeleteConversationDatasetOperationMetadata) Reset
func (x *DeleteConversationDatasetOperationMetadata) Reset()func (*DeleteConversationDatasetOperationMetadata) String
func (x *DeleteConversationDatasetOperationMetadata) String() stringDeleteConversationDatasetRequest
type DeleteConversationDatasetRequest struct {
// Required. The conversation dataset to delete. Format:
// `projects/The request message for [ConversationDatasets.DeleteConversationDataset][google.cloud.dialogflow.v2.ConversationDatasets.DeleteConversationDataset].
func (*DeleteConversationDatasetRequest) Descriptor
func (*DeleteConversationDatasetRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteConversationDatasetRequest.ProtoReflect.Descriptor instead.
func (*DeleteConversationDatasetRequest) GetName
func (x *DeleteConversationDatasetRequest) GetName() stringfunc (*DeleteConversationDatasetRequest) ProtoMessage
func (*DeleteConversationDatasetRequest) ProtoMessage()func (*DeleteConversationDatasetRequest) ProtoReflect
func (x *DeleteConversationDatasetRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteConversationDatasetRequest) Reset
func (x *DeleteConversationDatasetRequest) Reset()func (*DeleteConversationDatasetRequest) String
func (x *DeleteConversationDatasetRequest) String() stringDeleteConversationModelOperationMetadata
type DeleteConversationModelOperationMetadata struct {
// The resource name of the conversation model. Format:
// `projects/Metadata for a [ConversationModels.DeleteConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeleteConversationModel] operation.
func (*DeleteConversationModelOperationMetadata) Descriptor
func (*DeleteConversationModelOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use DeleteConversationModelOperationMetadata.ProtoReflect.Descriptor instead.
func (*DeleteConversationModelOperationMetadata) GetConversationModel
func (x *DeleteConversationModelOperationMetadata) GetConversationModel() stringfunc (*DeleteConversationModelOperationMetadata) GetCreateTime
func (x *DeleteConversationModelOperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*DeleteConversationModelOperationMetadata) ProtoMessage
func (*DeleteConversationModelOperationMetadata) ProtoMessage()func (*DeleteConversationModelOperationMetadata) ProtoReflect
func (x *DeleteConversationModelOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*DeleteConversationModelOperationMetadata) Reset
func (x *DeleteConversationModelOperationMetadata) Reset()func (*DeleteConversationModelOperationMetadata) String
func (x *DeleteConversationModelOperationMetadata) String() stringDeleteConversationModelRequest
type DeleteConversationModelRequest struct {
// Required. The conversation model to delete. Format:
// `projects/The request message for [ConversationModels.DeleteConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeleteConversationModel]
func (*DeleteConversationModelRequest) Descriptor
func (*DeleteConversationModelRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteConversationModelRequest.ProtoReflect.Descriptor instead.
func (*DeleteConversationModelRequest) GetName
func (x *DeleteConversationModelRequest) GetName() stringfunc (*DeleteConversationModelRequest) ProtoMessage
func (*DeleteConversationModelRequest) ProtoMessage()func (*DeleteConversationModelRequest) ProtoReflect
func (x *DeleteConversationModelRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteConversationModelRequest) Reset
func (x *DeleteConversationModelRequest) Reset()func (*DeleteConversationModelRequest) String
func (x *DeleteConversationModelRequest) String() stringDeleteConversationProfileRequest
type DeleteConversationProfileRequest struct {
// Required. The name of the conversation profile to delete.
// Format: `projects/The request message for [ConversationProfiles.DeleteConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.DeleteConversationProfile].
This operation fails if the conversation profile is still referenced from a phone number.
func (*DeleteConversationProfileRequest) Descriptor
func (*DeleteConversationProfileRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteConversationProfileRequest.ProtoReflect.Descriptor instead.
func (*DeleteConversationProfileRequest) GetName
func (x *DeleteConversationProfileRequest) GetName() stringfunc (*DeleteConversationProfileRequest) ProtoMessage
func (*DeleteConversationProfileRequest) ProtoMessage()func (*DeleteConversationProfileRequest) ProtoReflect
func (x *DeleteConversationProfileRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteConversationProfileRequest) Reset
func (x *DeleteConversationProfileRequest) Reset()func (*DeleteConversationProfileRequest) String
func (x *DeleteConversationProfileRequest) String() stringDeleteDocumentRequest
type DeleteDocumentRequest struct {
// Required. The name of the document to delete.
// Format: `projects/Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2.Documents.DeleteDocument].
func (*DeleteDocumentRequest) Descriptor
func (*DeleteDocumentRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteDocumentRequest.ProtoReflect.Descriptor instead.
func (*DeleteDocumentRequest) GetName
func (x *DeleteDocumentRequest) GetName() stringfunc (*DeleteDocumentRequest) ProtoMessage
func (*DeleteDocumentRequest) ProtoMessage()func (*DeleteDocumentRequest) ProtoReflect
func (x *DeleteDocumentRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteDocumentRequest) Reset
func (x *DeleteDocumentRequest) Reset()func (*DeleteDocumentRequest) String
func (x *DeleteDocumentRequest) String() stringDeleteEntityTypeRequest
type DeleteEntityTypeRequest struct {
// Required. The name of the entity type to delete.
// Format: `projects/The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType].
func (*DeleteEntityTypeRequest) Descriptor
func (*DeleteEntityTypeRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteEntityTypeRequest.ProtoReflect.Descriptor instead.
func (*DeleteEntityTypeRequest) GetName
func (x *DeleteEntityTypeRequest) GetName() stringfunc (*DeleteEntityTypeRequest) ProtoMessage
func (*DeleteEntityTypeRequest) ProtoMessage()func (*DeleteEntityTypeRequest) ProtoReflect
func (x *DeleteEntityTypeRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteEntityTypeRequest) Reset
func (x *DeleteEntityTypeRequest) Reset()func (*DeleteEntityTypeRequest) String
func (x *DeleteEntityTypeRequest) String() stringDeleteEnvironmentRequest
type DeleteEnvironmentRequest struct {
// Required. The name of the environment to delete.
// / Format:
//
// - `projects/The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.v2.Environments.DeleteEnvironment].
func (*DeleteEnvironmentRequest) Descriptor
func (*DeleteEnvironmentRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteEnvironmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteEnvironmentRequest) GetName
func (x *DeleteEnvironmentRequest) GetName() stringfunc (*DeleteEnvironmentRequest) ProtoMessage
func (*DeleteEnvironmentRequest) ProtoMessage()func (*DeleteEnvironmentRequest) ProtoReflect
func (x *DeleteEnvironmentRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteEnvironmentRequest) Reset
func (x *DeleteEnvironmentRequest) Reset()func (*DeleteEnvironmentRequest) String
func (x *DeleteEnvironmentRequest) String() stringDeleteGeneratorRequest
type DeleteGeneratorRequest struct {
// Required. The generator resource name to delete. Format:
// `projects/Request of DeleteGenerator.
func (*DeleteGeneratorRequest) Descriptor
func (*DeleteGeneratorRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteGeneratorRequest.ProtoReflect.Descriptor instead.
func (*DeleteGeneratorRequest) GetName
func (x *DeleteGeneratorRequest) GetName() stringfunc (*DeleteGeneratorRequest) ProtoMessage
func (*DeleteGeneratorRequest) ProtoMessage()func (*DeleteGeneratorRequest) ProtoReflect
func (x *DeleteGeneratorRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteGeneratorRequest) Reset
func (x *DeleteGeneratorRequest) Reset()func (*DeleteGeneratorRequest) String
func (x *DeleteGeneratorRequest) String() stringDeleteIntentRequest
type DeleteIntentRequest struct {
// Required. The name of the intent to delete. If this intent has direct or
// indirect followup intents, we also delete them.
// Format: `projects/The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent].
func (*DeleteIntentRequest) Descriptor
func (*DeleteIntentRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteIntentRequest.ProtoReflect.Descriptor instead.
func (*DeleteIntentRequest) GetName
func (x *DeleteIntentRequest) GetName() stringfunc (*DeleteIntentRequest) ProtoMessage
func (*DeleteIntentRequest) ProtoMessage()func (*DeleteIntentRequest) ProtoReflect
func (x *DeleteIntentRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteIntentRequest) Reset
func (x *DeleteIntentRequest) Reset()func (*DeleteIntentRequest) String
func (x *DeleteIntentRequest) String() stringDeleteKnowledgeBaseRequest
type DeleteKnowledgeBaseRequest struct {
// Required. The name of the knowledge base to delete.
// Format: `projects/Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.DeleteKnowledgeBase].
func (*DeleteKnowledgeBaseRequest) Descriptor
func (*DeleteKnowledgeBaseRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteKnowledgeBaseRequest.ProtoReflect.Descriptor instead.
func (*DeleteKnowledgeBaseRequest) GetForce
func (x *DeleteKnowledgeBaseRequest) GetForce() boolfunc (*DeleteKnowledgeBaseRequest) GetName
func (x *DeleteKnowledgeBaseRequest) GetName() stringfunc (*DeleteKnowledgeBaseRequest) ProtoMessage
func (*DeleteKnowledgeBaseRequest) ProtoMessage()func (*DeleteKnowledgeBaseRequest) ProtoReflect
func (x *DeleteKnowledgeBaseRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteKnowledgeBaseRequest) Reset
func (x *DeleteKnowledgeBaseRequest) Reset()func (*DeleteKnowledgeBaseRequest) String
func (x *DeleteKnowledgeBaseRequest) String() stringDeleteSessionEntityTypeRequest
type DeleteSessionEntityTypeRequest struct {
// Required. The name of the entity type to delete. Format:
// `projects/The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType].
func (*DeleteSessionEntityTypeRequest) Descriptor
func (*DeleteSessionEntityTypeRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteSessionEntityTypeRequest.ProtoReflect.Descriptor instead.
func (*DeleteSessionEntityTypeRequest) GetName
func (x *DeleteSessionEntityTypeRequest) GetName() stringfunc (*DeleteSessionEntityTypeRequest) ProtoMessage
func (*DeleteSessionEntityTypeRequest) ProtoMessage()func (*DeleteSessionEntityTypeRequest) ProtoReflect
func (x *DeleteSessionEntityTypeRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteSessionEntityTypeRequest) Reset
func (x *DeleteSessionEntityTypeRequest) Reset()func (*DeleteSessionEntityTypeRequest) String
func (x *DeleteSessionEntityTypeRequest) String() stringDeleteVersionRequest
type DeleteVersionRequest struct {
// Required. The name of the version to delete.
// Supported formats:
//
// - `projects/The request message for [Versions.DeleteVersion][google.cloud.dialogflow.v2.Versions.DeleteVersion].
func (*DeleteVersionRequest) Descriptor
func (*DeleteVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteVersionRequest.ProtoReflect.Descriptor instead.
func (*DeleteVersionRequest) GetName
func (x *DeleteVersionRequest) GetName() stringfunc (*DeleteVersionRequest) ProtoMessage
func (*DeleteVersionRequest) ProtoMessage()func (*DeleteVersionRequest) ProtoReflect
func (x *DeleteVersionRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteVersionRequest) Reset
func (x *DeleteVersionRequest) Reset()func (*DeleteVersionRequest) String
func (x *DeleteVersionRequest) String() stringDeployConversationModelOperationMetadata
type DeployConversationModelOperationMetadata struct {
// The resource name of the conversation model. Format:
// `projects/Metadata for a [ConversationModels.DeployConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeployConversationModel] operation.
func (*DeployConversationModelOperationMetadata) Descriptor
func (*DeployConversationModelOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use DeployConversationModelOperationMetadata.ProtoReflect.Descriptor instead.
func (*DeployConversationModelOperationMetadata) GetConversationModel
func (x *DeployConversationModelOperationMetadata) GetConversationModel() stringfunc (*DeployConversationModelOperationMetadata) GetCreateTime
func (x *DeployConversationModelOperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*DeployConversationModelOperationMetadata) ProtoMessage
func (*DeployConversationModelOperationMetadata) ProtoMessage()func (*DeployConversationModelOperationMetadata) ProtoReflect
func (x *DeployConversationModelOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*DeployConversationModelOperationMetadata) Reset
func (x *DeployConversationModelOperationMetadata) Reset()func (*DeployConversationModelOperationMetadata) String
func (x *DeployConversationModelOperationMetadata) String() stringDeployConversationModelRequest
type DeployConversationModelRequest struct {
// Required. The conversation model to deploy. Format:
// `projects/The request message for [ConversationModels.DeployConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeployConversationModel]
func (*DeployConversationModelRequest) Descriptor
func (*DeployConversationModelRequest) Descriptor() ([]byte, []int)Deprecated: Use DeployConversationModelRequest.ProtoReflect.Descriptor instead.
func (*DeployConversationModelRequest) GetName
func (x *DeployConversationModelRequest) GetName() stringfunc (*DeployConversationModelRequest) ProtoMessage
func (*DeployConversationModelRequest) ProtoMessage()func (*DeployConversationModelRequest) ProtoReflect
func (x *DeployConversationModelRequest) ProtoReflect() protoreflect.Messagefunc (*DeployConversationModelRequest) Reset
func (x *DeployConversationModelRequest) Reset()func (*DeployConversationModelRequest) String
func (x *DeployConversationModelRequest) String() stringDetectIntentRequest
type DetectIntentRequest struct {
// Required. The name of the session this query is sent to. Format:
// `projects/The request to detect user's intent.
func (*DetectIntentRequest) Descriptor
func (*DetectIntentRequest) Descriptor() ([]byte, []int)Deprecated: Use DetectIntentRequest.ProtoReflect.Descriptor instead.
func (*DetectIntentRequest) GetInputAudio
func (x *DetectIntentRequest) GetInputAudio() []bytefunc (*DetectIntentRequest) GetOutputAudioConfig
func (x *DetectIntentRequest) GetOutputAudioConfig() *OutputAudioConfigfunc (*DetectIntentRequest) GetOutputAudioConfigMask
func (x *DetectIntentRequest) GetOutputAudioConfigMask() *fieldmaskpb.FieldMaskfunc (*DetectIntentRequest) GetQueryInput
func (x *DetectIntentRequest) GetQueryInput() *QueryInputfunc (*DetectIntentRequest) GetQueryParams
func (x *DetectIntentRequest) GetQueryParams() *QueryParametersfunc (*DetectIntentRequest) GetSession
func (x *DetectIntentRequest) GetSession() stringfunc (*DetectIntentRequest) ProtoMessage
func (*DetectIntentRequest) ProtoMessage()func (*DetectIntentRequest) ProtoReflect
func (x *DetectIntentRequest) ProtoReflect() protoreflect.Messagefunc (*DetectIntentRequest) Reset
func (x *DetectIntentRequest) Reset()func (*DetectIntentRequest) String
func (x *DetectIntentRequest) String() stringDetectIntentResponse
type DetectIntentResponse struct {
// The unique identifier of the response. It can be used to
// locate a response in the training example set or for reporting issues.
ResponseId string `protobuf:"bytes,1,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"`
// The selected results of the conversational query or event processing.
// See `alternative_query_results` for additional potential results.
QueryResult *QueryResult `protobuf:"bytes,2,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
// Specifies the status of the webhook request.
WebhookStatus *status.Status `protobuf:"bytes,3,opt,name=webhook_status,json=webhookStatus,proto3" json:"webhook_status,omitempty"`
// The audio data bytes encoded as specified in the request.
// Note: The output audio is generated based on the values of default platform
// text responses found in the `query_result.fulfillment_messages` field. If
// multiple default text responses exist, they will be concatenated when
// generating audio. If no default platform text responses exist, the
// generated audio content will be empty.
//
// In some scenarios, multiple output audio fields may be present in the
// response structure. In these cases, only the top-most-level audio output
// has content.
OutputAudio []byte `protobuf:"bytes,4,opt,name=output_audio,json=outputAudio,proto3" json:"output_audio,omitempty"`
// The config used by the speech synthesizer to generate the output audio.
OutputAudioConfig *OutputAudioConfig `protobuf:"bytes,6,opt,name=output_audio_config,json=outputAudioConfig,proto3" json:"output_audio_config,omitempty"`
// contains filtered or unexported fields
}The message returned from the [DetectIntent][] method.
func (*DetectIntentResponse) Descriptor
func (*DetectIntentResponse) Descriptor() ([]byte, []int)Deprecated: Use DetectIntentResponse.ProtoReflect.Descriptor instead.
func (*DetectIntentResponse) GetOutputAudio
func (x *DetectIntentResponse) GetOutputAudio() []bytefunc (*DetectIntentResponse) GetOutputAudioConfig
func (x *DetectIntentResponse) GetOutputAudioConfig() *OutputAudioConfigfunc (*DetectIntentResponse) GetQueryResult
func (x *DetectIntentResponse) GetQueryResult() *QueryResultfunc (*DetectIntentResponse) GetResponseId
func (x *DetectIntentResponse) GetResponseId() stringfunc (*DetectIntentResponse) GetWebhookStatus
func (x *DetectIntentResponse) GetWebhookStatus() *status.Statusfunc (*DetectIntentResponse) ProtoMessage
func (*DetectIntentResponse) ProtoMessage()func (*DetectIntentResponse) ProtoReflect
func (x *DetectIntentResponse) ProtoReflect() protoreflect.Messagefunc (*DetectIntentResponse) Reset
func (x *DetectIntentResponse) Reset()func (*DetectIntentResponse) String
func (x *DetectIntentResponse) String() stringDialogflowAssistAnswer
type DialogflowAssistAnswer struct {
// Result from DetectIntent for one matched intent.
//
// Types that are assignable to Result:
//
// *DialogflowAssistAnswer_QueryResult
// *DialogflowAssistAnswer_IntentSuggestion
Result isDialogflowAssistAnswer_Result `protobuf_oneof:"result"`
// The name of answer record, in the format of
// "projects/Represents a Dialogflow assist answer.
func (*DialogflowAssistAnswer) Descriptor
func (*DialogflowAssistAnswer) Descriptor() ([]byte, []int)Deprecated: Use DialogflowAssistAnswer.ProtoReflect.Descriptor instead.
func (*DialogflowAssistAnswer) GetAnswerRecord
func (x *DialogflowAssistAnswer) GetAnswerRecord() stringfunc (*DialogflowAssistAnswer) GetIntentSuggestion
func (x *DialogflowAssistAnswer) GetIntentSuggestion() *IntentSuggestionfunc (*DialogflowAssistAnswer) GetQueryResult
func (x *DialogflowAssistAnswer) GetQueryResult() *QueryResultfunc (*DialogflowAssistAnswer) GetResult
func (m *DialogflowAssistAnswer) GetResult() isDialogflowAssistAnswer_Resultfunc (*DialogflowAssistAnswer) ProtoMessage
func (*DialogflowAssistAnswer) ProtoMessage()func (*DialogflowAssistAnswer) ProtoReflect
func (x *DialogflowAssistAnswer) ProtoReflect() protoreflect.Messagefunc (*DialogflowAssistAnswer) Reset
func (x *DialogflowAssistAnswer) Reset()func (*DialogflowAssistAnswer) String
func (x *DialogflowAssistAnswer) String() stringDialogflowAssistAnswer_IntentSuggestion
type DialogflowAssistAnswer_IntentSuggestion struct {
// An intent suggestion generated from conversation.
IntentSuggestion *IntentSuggestion `protobuf:"bytes,5,opt,name=intent_suggestion,json=intentSuggestion,proto3,oneof"`
}DialogflowAssistAnswer_QueryResult
type DialogflowAssistAnswer_QueryResult struct {
// Result from v2 agent.
QueryResult *QueryResult `protobuf:"bytes,1,opt,name=query_result,json=queryResult,proto3,oneof"`
}Document
type Document struct {
// Optional. The document resource name.
// The name must be empty when creating a document.
// Format: `projects/A knowledge document to be used by a [KnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBase].
For more information, see the knowledge base guide.
Note: The projects.agent.knowledgeBases.documents resource is deprecated;
only use projects.knowledgeBases.documents.
func (*Document) Descriptor
Deprecated: Use Document.ProtoReflect.Descriptor instead.
func (*Document) GetContentUri
func (*Document) GetDisplayName
func (*Document) GetEnableAutoReload
func (*Document) GetKnowledgeTypes
func (x *Document) GetKnowledgeTypes() []Document_KnowledgeTypefunc (*Document) GetLatestReloadStatus
func (x *Document) GetLatestReloadStatus() *Document_ReloadStatusfunc (*Document) GetMetadata
func (*Document) GetMimeType
func (*Document) GetName
func (*Document) GetRawContent
func (*Document) GetSource
func (m *Document) GetSource() isDocument_Sourcefunc (*Document) GetState
func (x *Document) GetState() Document_Statefunc (*Document) ProtoMessage
func (*Document) ProtoMessage()func (*Document) ProtoReflect
func (x *Document) ProtoReflect() protoreflect.Messagefunc (*Document) Reset
func (x *Document) Reset()func (*Document) String
Document_ContentUri
type Document_ContentUri struct {
// The URI where the file content is located.
//
// For documents stored in Google Cloud Storage, these URIs must have
// the form `gs://Document_KnowledgeType
type Document_KnowledgeType int32The knowledge type of document content.
Document_KNOWLEDGE_TYPE_UNSPECIFIED, Document_FAQ, Document_EXTRACTIVE_QA, Document_ARTICLE_SUGGESTION, Document_AGENT_FACING_SMART_REPLY
const (
// The type is unspecified or arbitrary.
Document_KNOWLEDGE_TYPE_UNSPECIFIED Document_KnowledgeType = 0
// The document content contains question and answer pairs as either HTML or
// CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats
// may fail to be parsed.
//
// CSV must have questions in the first column and answers in the second,
// with no header. Because of this explicit format, they are always parsed
// accurately.
Document_FAQ Document_KnowledgeType = 1
// Documents for which unstructured text is extracted and used for
// question answering.
Document_EXTRACTIVE_QA Document_KnowledgeType = 2
// The entire document content as a whole can be used for query results.
// Only for Contact Center Solutions on Dialogflow.
Document_ARTICLE_SUGGESTION Document_KnowledgeType = 3
// The document contains agent-facing Smart Reply entries.
Document_AGENT_FACING_SMART_REPLY Document_KnowledgeType = 4
)func (Document_KnowledgeType) Descriptor
func (Document_KnowledgeType) Descriptor() protoreflect.EnumDescriptorfunc (Document_KnowledgeType) Enum
func (x Document_KnowledgeType) Enum() *Document_KnowledgeTypefunc (Document_KnowledgeType) EnumDescriptor
func (Document_KnowledgeType) EnumDescriptor() ([]byte, []int)Deprecated: Use Document_KnowledgeType.Descriptor instead.
func (Document_KnowledgeType) Number
func (x Document_KnowledgeType) Number() protoreflect.EnumNumberfunc (Document_KnowledgeType) String
func (x Document_KnowledgeType) String() stringfunc (Document_KnowledgeType) Type
func (Document_KnowledgeType) Type() protoreflect.EnumTypeDocument_RawContent
type Document_RawContent struct {
// The raw content of the document. This field is only permitted for
// EXTRACTIVE_QA and FAQ knowledge types.
RawContent []byte `protobuf:"bytes,9,opt,name=raw_content,json=rawContent,proto3,oneof"`
}Document_ReloadStatus
type Document_ReloadStatus struct {
// The time of a reload attempt.
// This reload may have been triggered automatically or manually and may
// not have succeeded.
Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
// The status of a reload attempt or the initial load.
Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}The status of a reload attempt.
func (*Document_ReloadStatus) Descriptor
func (*Document_ReloadStatus) Descriptor() ([]byte, []int)Deprecated: Use Document_ReloadStatus.ProtoReflect.Descriptor instead.
func (*Document_ReloadStatus) GetStatus
func (x *Document_ReloadStatus) GetStatus() *status.Statusfunc (*Document_ReloadStatus) GetTime
func (x *Document_ReloadStatus) GetTime() *timestamppb.Timestampfunc (*Document_ReloadStatus) ProtoMessage
func (*Document_ReloadStatus) ProtoMessage()func (*Document_ReloadStatus) ProtoReflect
func (x *Document_ReloadStatus) ProtoReflect() protoreflect.Messagefunc (*Document_ReloadStatus) Reset
func (x *Document_ReloadStatus) Reset()func (*Document_ReloadStatus) String
func (x *Document_ReloadStatus) String() stringDocument_State
type Document_State int32Possible states of the document
Document_STATE_UNSPECIFIED, Document_CREATING, Document_ACTIVE, Document_UPDATING, Document_RELOADING, Document_DELETING
const (
// The document state is unspecified.
Document_STATE_UNSPECIFIED Document_State = 0
// The document creation is in progress.
Document_CREATING Document_State = 1
// The document is active and ready to use.
Document_ACTIVE Document_State = 2
// The document updation is in progress.
Document_UPDATING Document_State = 3
// The document is reloading.
Document_RELOADING Document_State = 4
// The document deletion is in progress.
Document_DELETING Document_State = 5
)func (Document_State) Descriptor
func (Document_State) Descriptor() protoreflect.EnumDescriptorfunc (Document_State) Enum
func (x Document_State) Enum() *Document_Statefunc (Document_State) EnumDescriptor
func (Document_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Document_State.Descriptor instead.
func (Document_State) Number
func (x Document_State) Number() protoreflect.EnumNumberfunc (Document_State) String
func (x Document_State) String() stringfunc (Document_State) Type
func (Document_State) Type() protoreflect.EnumTypeDocumentsClient
type DocumentsClient interface {
// Returns the list of all documents of the knowledge base.
ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error)
// Retrieves the specified document.
GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*Document, error)
// Creates a new document.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`: [Document][google.cloud.dialogflow.v2.Document]
CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Creates documents by importing data from external sources.
// Dialogflow supports up to 350 documents in each request. If you try to
// import more, Dialogflow will return an error.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`:
// [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse]
ImportDocuments(ctx context.Context, in *ImportDocumentsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes the specified document.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the specified document.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`: [Document][google.cloud.dialogflow.v2.Document]
UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Reloads the specified document from its specified source, content_uri or
// content. The previously loaded content of the document will be deleted.
// Note: Even when the content of the document has not changed, there still
// may be side effects because of internal implementation changes.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`: [Document][google.cloud.dialogflow.v2.Document]
//
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
// only use `projects.knowledgeBases.documents`.
ReloadDocument(ctx context.Context, in *ReloadDocumentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Exports a smart messaging candidate document into the specified
// destination.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`: [Document][google.cloud.dialogflow.v2.Document]
ExportDocument(ctx context.Context, in *ExportDocumentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}DocumentsClient is the client API for Documents service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDocumentsClient
func NewDocumentsClient(cc grpc.ClientConnInterface) DocumentsClientDocumentsServer
type DocumentsServer interface {
// Returns the list of all documents of the knowledge base.
ListDocuments(context.Context, *ListDocumentsRequest) (*ListDocumentsResponse, error)
// Retrieves the specified document.
GetDocument(context.Context, *GetDocumentRequest) (*Document, error)
// Creates a new document.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`: [Document][google.cloud.dialogflow.v2.Document]
CreateDocument(context.Context, *CreateDocumentRequest) (*longrunningpb.Operation, error)
// Creates documents by importing data from external sources.
// Dialogflow supports up to 350 documents in each request. If you try to
// import more, Dialogflow will return an error.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`:
// [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse]
ImportDocuments(context.Context, *ImportDocumentsRequest) (*longrunningpb.Operation, error)
// Deletes the specified document.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`: An [Empty
// message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
DeleteDocument(context.Context, *DeleteDocumentRequest) (*longrunningpb.Operation, error)
// Updates the specified document.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`: [Document][google.cloud.dialogflow.v2.Document]
UpdateDocument(context.Context, *UpdateDocumentRequest) (*longrunningpb.Operation, error)
// Reloads the specified document from its specified source, content_uri or
// content. The previously loaded content of the document will be deleted.
// Note: Even when the content of the document has not changed, there still
// may be side effects because of internal implementation changes.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`: [Document][google.cloud.dialogflow.v2.Document]
//
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
// only use `projects.knowledgeBases.documents`.
ReloadDocument(context.Context, *ReloadDocumentRequest) (*longrunningpb.Operation, error)
// Exports a smart messaging candidate document into the specified
// destination.
//
// This method is a [long-running
// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
// The returned `Operation` type has the following method-specific fields:
//
// - `metadata`:
// [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
// - `response`: [Document][google.cloud.dialogflow.v2.Document]
ExportDocument(context.Context, *ExportDocumentRequest) (*longrunningpb.Operation, error)
}DocumentsServer is the server API for Documents service. All implementations should embed UnimplementedDocumentsServer for forward compatibility
DtmfParameters
type DtmfParameters struct {
// Indicates whether DTMF input can be handled in the next request.
AcceptsDtmfInput bool `protobuf:"varint,1,opt,name=accepts_dtmf_input,json=acceptsDtmfInput,proto3" json:"accepts_dtmf_input,omitempty"`
// contains filtered or unexported fields
}The message in the response that indicates the parameters of DTMF.
func (*DtmfParameters) Descriptor
func (*DtmfParameters) Descriptor() ([]byte, []int)Deprecated: Use DtmfParameters.ProtoReflect.Descriptor instead.
func (*DtmfParameters) GetAcceptsDtmfInput
func (x *DtmfParameters) GetAcceptsDtmfInput() boolfunc (*DtmfParameters) ProtoMessage
func (*DtmfParameters) ProtoMessage()func (*DtmfParameters) ProtoReflect
func (x *DtmfParameters) ProtoReflect() protoreflect.Messagefunc (*DtmfParameters) Reset
func (x *DtmfParameters) Reset()func (*DtmfParameters) String
func (x *DtmfParameters) String() stringEncryptionSpec
type EncryptionSpec struct {
// Immutable. The resource name of the encryption key specification resource.
// Format:
// projects/{project}/locations/{location}/encryptionSpec
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The name of customer-managed encryption key that is used to
// secure a resource and its sub-resources. If empty, the resource is secured
// by the default Google encryption key. Only the key in the same location as
// this resource is allowed to be used for encryption. Format:
// `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
KmsKey string `protobuf:"bytes,2,opt,name=kms_key,json=kmsKey,proto3" json:"kms_key,omitempty"`
// contains filtered or unexported fields
}A customer-managed encryption key specification that can be applied to all created resources (e.g. Conversation).
func (*EncryptionSpec) Descriptor
func (*EncryptionSpec) Descriptor() ([]byte, []int)Deprecated: Use EncryptionSpec.ProtoReflect.Descriptor instead.
func (*EncryptionSpec) GetKmsKey
func (x *EncryptionSpec) GetKmsKey() stringfunc (*EncryptionSpec) GetName
func (x *EncryptionSpec) GetName() stringfunc (*EncryptionSpec) ProtoMessage
func (*EncryptionSpec) ProtoMessage()func (*EncryptionSpec) ProtoReflect
func (x *EncryptionSpec) ProtoReflect() protoreflect.Messagefunc (*EncryptionSpec) Reset
func (x *EncryptionSpec) Reset()func (*EncryptionSpec) String
func (x *EncryptionSpec) String() stringEncryptionSpecServiceClient
type EncryptionSpecServiceClient interface {
// Gets location-level encryption key specification.
GetEncryptionSpec(ctx context.Context, in *GetEncryptionSpecRequest, opts ...grpc.CallOption) (*EncryptionSpec, error)
// Initializes a location-level encryption key specification. An error will
// be thrown if the location has resources already created before the
// initialization. Once the encryption specification is initialized at a
// location, it is immutable and all newly created resources under the
// location will be encrypted with the existing specification.
InitializeEncryptionSpec(ctx context.Context, in *InitializeEncryptionSpecRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}EncryptionSpecServiceClient is the client API for EncryptionSpecService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEncryptionSpecServiceClient
func NewEncryptionSpecServiceClient(cc grpc.ClientConnInterface) EncryptionSpecServiceClientEncryptionSpecServiceServer
type EncryptionSpecServiceServer interface {
// Gets location-level encryption key specification.
GetEncryptionSpec(context.Context, *GetEncryptionSpecRequest) (*EncryptionSpec, error)
// Initializes a location-level encryption key specification. An error will
// be thrown if the location has resources already created before the
// initialization. Once the encryption specification is initialized at a
// location, it is immutable and all newly created resources under the
// location will be encrypted with the existing specification.
InitializeEncryptionSpec(context.Context, *InitializeEncryptionSpecRequest) (*longrunningpb.Operation, error)
}EncryptionSpecServiceServer is the server API for EncryptionSpecService service. All implementations should embed UnimplementedEncryptionSpecServiceServer for forward compatibility
EntityType
type EntityType struct {
// The unique identifier of the entity type.
// Required for
// [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType]
// and
// [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]
// methods. Format: `projects/Each intent parameter has a type, called the entity type, which dictates exactly how data from an end-user expression is extracted.
Dialogflow provides predefined system entities that can match many common types of data. For example, there are system entities for matching dates, times, colors, email addresses, and so on. You can also create your own custom entities for matching custom data. For example, you could define a vegetable entity that can match the types of vegetables available for purchase with a grocery store agent.
For more information, see the Entity guide.
func (*EntityType) Descriptor
func (*EntityType) Descriptor() ([]byte, []int)Deprecated: Use EntityType.ProtoReflect.Descriptor instead.
func (*EntityType) GetAutoExpansionMode
func (x *EntityType) GetAutoExpansionMode() EntityType_AutoExpansionModefunc (*EntityType) GetDisplayName
func (x *EntityType) GetDisplayName() stringfunc (*EntityType) GetEnableFuzzyExtraction
func (x *EntityType) GetEnableFuzzyExtraction() boolfunc (*EntityType) GetEntities
func (x *EntityType) GetEntities() []*EntityType_Entityfunc (*EntityType) GetKind
func (x *EntityType) GetKind() EntityType_Kindfunc (*EntityType) GetName
func (x *EntityType) GetName() stringfunc (*EntityType) ProtoMessage
func (*EntityType) ProtoMessage()func (*EntityType) ProtoReflect
func (x *EntityType) ProtoReflect() protoreflect.Messagefunc (*EntityType) Reset
func (x *EntityType) Reset()func (*EntityType) String
func (x *EntityType) String() stringEntityTypeBatch
type EntityTypeBatch struct {
// A collection of entity types.
EntityTypes []*EntityType `protobuf:"bytes,1,rep,name=entity_types,json=entityTypes,proto3" json:"entity_types,omitempty"`
// contains filtered or unexported fields
}This message is a wrapper around a collection of entity types.
func (*EntityTypeBatch) Descriptor
func (*EntityTypeBatch) Descriptor() ([]byte, []int)Deprecated: Use EntityTypeBatch.ProtoReflect.Descriptor instead.
func (*EntityTypeBatch) GetEntityTypes
func (x *EntityTypeBatch) GetEntityTypes() []*EntityTypefunc (*EntityTypeBatch) ProtoMessage
func (*EntityTypeBatch) ProtoMessage()func (*EntityTypeBatch) ProtoReflect
func (x *EntityTypeBatch) ProtoReflect() protoreflect.Messagefunc (*EntityTypeBatch) Reset
func (x *EntityTypeBatch) Reset()func (*EntityTypeBatch) String
func (x *EntityTypeBatch) String() stringEntityType_AutoExpansionMode
type EntityType_AutoExpansionMode int32Represents different entity type expansion modes. Automated expansion allows an agent to recognize values that have not been explicitly listed in the entity (for example, new kinds of shopping list items).
EntityType_AUTO_EXPANSION_MODE_UNSPECIFIED, EntityType_AUTO_EXPANSION_MODE_DEFAULT
const (
// Auto expansion disabled for the entity.
EntityType_AUTO_EXPANSION_MODE_UNSPECIFIED EntityType_AutoExpansionMode = 0
// Allows an agent to recognize values that have not been explicitly
// listed in the entity.
EntityType_AUTO_EXPANSION_MODE_DEFAULT EntityType_AutoExpansionMode = 1
)func (EntityType_AutoExpansionMode) Descriptor
func (EntityType_AutoExpansionMode) Descriptor() protoreflect.EnumDescriptorfunc (EntityType_AutoExpansionMode) Enum
func (x EntityType_AutoExpansionMode) Enum() *EntityType_AutoExpansionModefunc (EntityType_AutoExpansionMode) EnumDescriptor
func (EntityType_AutoExpansionMode) EnumDescriptor() ([]byte, []int)Deprecated: Use EntityType_AutoExpansionMode.Descriptor instead.
func (EntityType_AutoExpansionMode) Number
func (x EntityType_AutoExpansionMode) Number() protoreflect.EnumNumberfunc (EntityType_AutoExpansionMode) String
func (x EntityType_AutoExpansionMode) String() stringfunc (EntityType_AutoExpansionMode) Type
func (EntityType_AutoExpansionMode) Type() protoreflect.EnumTypeEntityType_Entity
type EntityType_Entity struct {
// Required. The primary value associated with this entity entry.
// For example, if the entity type is *vegetable*, the value could be
// *scallions*.
//
// For `KIND_MAP` entity types:
//
// * A reference value to be used in place of synonyms.
//
// For `KIND_LIST` entity types:
//
// - A string that can contain references to other entity types (with or
// without aliases).
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// Required. A collection of value synonyms. For example, if the entity type
// is *vegetable*, and `value` is *scallions*, a synonym could be *green
// onions*.
//
// For `KIND_LIST` entity types:
//
// * This collection must contain exactly one synonym equal to `value`.
Synonyms []string `protobuf:"bytes,2,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
// contains filtered or unexported fields
}An entity entry for an associated entity type.
func (*EntityType_Entity) Descriptor
func (*EntityType_Entity) Descriptor() ([]byte, []int)Deprecated: Use EntityType_Entity.ProtoReflect.Descriptor instead.
func (*EntityType_Entity) GetSynonyms
func (x *EntityType_Entity) GetSynonyms() []stringfunc (*EntityType_Entity) GetValue
func (x *EntityType_Entity) GetValue() stringfunc (*EntityType_Entity) ProtoMessage
func (*EntityType_Entity) ProtoMessage()func (*EntityType_Entity) ProtoReflect
func (x *EntityType_Entity) ProtoReflect() protoreflect.Messagefunc (*EntityType_Entity) Reset
func (x *EntityType_Entity) Reset()func (*EntityType_Entity) String
func (x *EntityType_Entity) String() stringEntityType_Kind
type EntityType_Kind int32Represents kinds of entities.
EntityType_KIND_UNSPECIFIED, EntityType_KIND_MAP, EntityType_KIND_LIST, EntityType_KIND_REGEXP
const (
// Not specified. This value should be never used.
EntityType_KIND_UNSPECIFIED EntityType_Kind = 0
// Map entity types allow mapping of a group of synonyms to a reference
// value.
EntityType_KIND_MAP EntityType_Kind = 1
// List entity types contain a set of entries that do not map to reference
// values. However, list entity types can contain references to other entity
// types (with or without aliases).
EntityType_KIND_LIST EntityType_Kind = 2
// Regexp entity types allow to specify regular expressions in entries
// values.
EntityType_KIND_REGEXP EntityType_Kind = 3
)func (EntityType_Kind) Descriptor
func (EntityType_Kind) Descriptor() protoreflect.EnumDescriptorfunc (EntityType_Kind) Enum
func (x EntityType_Kind) Enum() *EntityType_Kindfunc (EntityType_Kind) EnumDescriptor
func (EntityType_Kind) EnumDescriptor() ([]byte, []int)Deprecated: Use EntityType_Kind.Descriptor instead.
func (EntityType_Kind) Number
func (x EntityType_Kind) Number() protoreflect.EnumNumberfunc (EntityType_Kind) String
func (x EntityType_Kind) String() stringfunc (EntityType_Kind) Type
func (EntityType_Kind) Type() protoreflect.EnumTypeEntityTypesClient
type EntityTypesClient interface {
// Returns the list of all entity types in the specified agent.
ListEntityTypes(ctx context.Context, in *ListEntityTypesRequest, opts ...grpc.CallOption) (*ListEntityTypesResponse, error)
// Retrieves the specified entity type.
GetEntityType(ctx context.Context, in *GetEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error)
// Creates an entity type in 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).
CreateEntityType(ctx context.Context, in *CreateEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error)
// Updates the specified entity type.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
UpdateEntityType(ctx context.Context, in *UpdateEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error)
// Deletes the specified entity type.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Updates/Creates multiple entity types in 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`:
//
// [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
BatchUpdateEntityTypes(ctx context.Context, in *BatchUpdateEntityTypesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes entity types in 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).
BatchDeleteEntityTypes(ctx context.Context, in *BatchDeleteEntityTypesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Creates multiple new entities in the specified entity type.
//
// 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).
BatchCreateEntities(ctx context.Context, in *BatchCreateEntitiesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates or creates multiple entities in the specified entity type. This
// method does not affect entities in the entity type that aren't explicitly
// specified in the request.
//
// 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).
BatchUpdateEntities(ctx context.Context, in *BatchUpdateEntitiesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes entities in the specified entity type.
//
// 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).
BatchDeleteEntities(ctx context.Context, in *BatchDeleteEntitiesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}EntityTypesClient is the client API for EntityTypes service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEntityTypesClient
func NewEntityTypesClient(cc grpc.ClientConnInterface) EntityTypesClientEntityTypesServer
type EntityTypesServer interface {
// Returns the list of all entity types in the specified agent.
ListEntityTypes(context.Context, *ListEntityTypesRequest) (*ListEntityTypesResponse, error)
// Retrieves the specified entity type.
GetEntityType(context.Context, *GetEntityTypeRequest) (*EntityType, error)
// Creates an entity type in 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).
CreateEntityType(context.Context, *CreateEntityTypeRequest) (*EntityType, error)
// Updates the specified entity type.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
UpdateEntityType(context.Context, *UpdateEntityTypeRequest) (*EntityType, error)
// Deletes the specified entity type.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*emptypb.Empty, error)
// Updates/Creates multiple entity types in 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`:
//
// [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
BatchUpdateEntityTypes(context.Context, *BatchUpdateEntityTypesRequest) (*longrunningpb.Operation, error)
// Deletes entity types in 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).
BatchDeleteEntityTypes(context.Context, *BatchDeleteEntityTypesRequest) (*longrunningpb.Operation, error)
// Creates multiple new entities in the specified entity type.
//
// 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).
BatchCreateEntities(context.Context, *BatchCreateEntitiesRequest) (*longrunningpb.Operation, error)
// Updates or creates multiple entities in the specified entity type. This
// method does not affect entities in the entity type that aren't explicitly
// specified in the request.
//
// 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).
BatchUpdateEntities(context.Context, *BatchUpdateEntitiesRequest) (*longrunningpb.Operation, error)
// Deletes entities in the specified entity type.
//
// 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).
BatchDeleteEntities(context.Context, *BatchDeleteEntitiesRequest) (*longrunningpb.Operation, error)
}EntityTypesServer is the server API for EntityTypes service. All implementations should embed UnimplementedEntityTypesServer for forward compatibility
Environment
type Environment struct {
// Output only. The unique identifier of this agent environment.
// Supported formats:
//
// - `projects/You can create multiple versions of your agent and publish them to separate environments.
When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent.
When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for:
- testing
- development
- production
- etc.
For more information, see the versions and environments guide.
func (*Environment) Descriptor
func (*Environment) Descriptor() ([]byte, []int)Deprecated: Use Environment.ProtoReflect.Descriptor instead.
func (*Environment) GetAgentVersion
func (x *Environment) GetAgentVersion() stringfunc (*Environment) GetDescription
func (x *Environment) GetDescription() stringfunc (*Environment) GetFulfillment
func (x *Environment) GetFulfillment() *Fulfillmentfunc (*Environment) GetName
func (x *Environment) GetName() stringfunc (*Environment) GetState
func (x *Environment) GetState() Environment_Statefunc (*Environment) GetTextToSpeechSettings
func (x *Environment) GetTextToSpeechSettings() *TextToSpeechSettingsfunc (*Environment) GetUpdateTime
func (x *Environment) GetUpdateTime() *timestamppb.Timestampfunc (*Environment) ProtoMessage
func (*Environment) ProtoMessage()func (*Environment) ProtoReflect
func (x *Environment) ProtoReflect() protoreflect.Messagefunc (*Environment) Reset
func (x *Environment) Reset()func (*Environment) String
func (x *Environment) String() stringEnvironmentHistory
type EnvironmentHistory struct {
// Output only. The name of the environment this history is for.
// Supported formats:
//
// - `projects/The response message for [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory].
func (*EnvironmentHistory) Descriptor
func (*EnvironmentHistory) Descriptor() ([]byte, []int)Deprecated: Use EnvironmentHistory.ProtoReflect.Descriptor instead.
func (*EnvironmentHistory) GetEntries
func (x *EnvironmentHistory) GetEntries() []*EnvironmentHistory_Entryfunc (*EnvironmentHistory) GetNextPageToken
func (x *EnvironmentHistory) GetNextPageToken() stringfunc (*EnvironmentHistory) GetParent
func (x *EnvironmentHistory) GetParent() stringfunc (*EnvironmentHistory) ProtoMessage
func (*EnvironmentHistory) ProtoMessage()func (*EnvironmentHistory) ProtoReflect
func (x *EnvironmentHistory) ProtoReflect() protoreflect.Messagefunc (*EnvironmentHistory) Reset
func (x *EnvironmentHistory) Reset()func (*EnvironmentHistory) String
func (x *EnvironmentHistory) String() stringEnvironmentHistory_Entry
type EnvironmentHistory_Entry struct {
// The agent version loaded into this environment history entry.
AgentVersion string `protobuf:"bytes,1,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
// The developer-provided description for this environment history entry.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// The creation time of this environment history entry.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}Represents an environment history entry.
func (*EnvironmentHistory_Entry) Descriptor
func (*EnvironmentHistory_Entry) Descriptor() ([]byte, []int)Deprecated: Use EnvironmentHistory_Entry.ProtoReflect.Descriptor instead.
func (*EnvironmentHistory_Entry) GetAgentVersion
func (x *EnvironmentHistory_Entry) GetAgentVersion() stringfunc (*EnvironmentHistory_Entry) GetCreateTime
func (x *EnvironmentHistory_Entry) GetCreateTime() *timestamppb.Timestampfunc (*EnvironmentHistory_Entry) GetDescription
func (x *EnvironmentHistory_Entry) GetDescription() stringfunc (*EnvironmentHistory_Entry) ProtoMessage
func (*EnvironmentHistory_Entry) ProtoMessage()func (*EnvironmentHistory_Entry) ProtoReflect
func (x *EnvironmentHistory_Entry) ProtoReflect() protoreflect.Messagefunc (*EnvironmentHistory_Entry) Reset
func (x *EnvironmentHistory_Entry) Reset()func (*EnvironmentHistory_Entry) String
func (x *EnvironmentHistory_Entry) String() stringEnvironment_State
type Environment_State int32Represents an environment state. When an environment is pointed to a new
agent version, the environment is temporarily set to the LOADING state.
During that time, the environment keeps on serving the previous version of
the agent. After the new agent version is done loading, the environment is
set back to the RUNNING state.
Environment_STATE_UNSPECIFIED, Environment_STOPPED, Environment_LOADING, Environment_RUNNING
const (
// Not specified. This value is not used.
Environment_STATE_UNSPECIFIED Environment_State = 0
// Stopped.
Environment_STOPPED Environment_State = 1
// Loading.
Environment_LOADING Environment_State = 2
// Running.
Environment_RUNNING Environment_State = 3
)func (Environment_State) Descriptor
func (Environment_State) Descriptor() protoreflect.EnumDescriptorfunc (Environment_State) Enum
func (x Environment_State) Enum() *Environment_Statefunc (Environment_State) EnumDescriptor
func (Environment_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Environment_State.Descriptor instead.
func (Environment_State) Number
func (x Environment_State) Number() protoreflect.EnumNumberfunc (Environment_State) String
func (x Environment_State) String() stringfunc (Environment_State) Type
func (Environment_State) Type() protoreflect.EnumTypeEnvironmentsClient
type EnvironmentsClient interface {
// Returns the list of all non-default environments of the specified agent.
ListEnvironments(ctx context.Context, in *ListEnvironmentsRequest, opts ...grpc.CallOption) (*ListEnvironmentsResponse, error)
// Retrieves the specified agent environment.
GetEnvironment(ctx context.Context, in *GetEnvironmentRequest, opts ...grpc.CallOption) (*Environment, error)
// Creates an agent environment.
CreateEnvironment(ctx context.Context, in *CreateEnvironmentRequest, opts ...grpc.CallOption) (*Environment, error)
// Updates the specified agent environment.
//
// This method allows you to deploy new agent versions into the environment.
// When an environment is pointed to a new agent version by setting
// `environment.agent_version`, the environment is temporarily set to the
// `LOADING` state. During that time, the environment continues serving the
// previous version of the agent. After the new agent version is done loading,
// the environment is set back to the `RUNNING` state.
// You can use "-" as Environment ID in environment name to update an agent
// version in the default environment. WARNING: this will negate all recent
// changes to the draft agent and can't be undone. You may want to save the
// draft agent to a version before calling this method.
UpdateEnvironment(ctx context.Context, in *UpdateEnvironmentRequest, opts ...grpc.CallOption) (*Environment, error)
// Deletes the specified agent environment.
DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets the history of the specified environment.
GetEnvironmentHistory(ctx context.Context, in *GetEnvironmentHistoryRequest, opts ...grpc.CallOption) (*EnvironmentHistory, error)
}EnvironmentsClient is the client API for Environments service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEnvironmentsClient
func NewEnvironmentsClient(cc grpc.ClientConnInterface) EnvironmentsClientEnvironmentsServer
type EnvironmentsServer interface {
// Returns the list of all non-default environments of the specified agent.
ListEnvironments(context.Context, *ListEnvironmentsRequest) (*ListEnvironmentsResponse, error)
// Retrieves the specified agent environment.
GetEnvironment(context.Context, *GetEnvironmentRequest) (*Environment, error)
// Creates an agent environment.
CreateEnvironment(context.Context, *CreateEnvironmentRequest) (*Environment, error)
// Updates the specified agent environment.
//
// This method allows you to deploy new agent versions into the environment.
// When an environment is pointed to a new agent version by setting
// `environment.agent_version`, the environment is temporarily set to the
// `LOADING` state. During that time, the environment continues serving the
// previous version of the agent. After the new agent version is done loading,
// the environment is set back to the `RUNNING` state.
// You can use "-" as Environment ID in environment name to update an agent
// version in the default environment. WARNING: this will negate all recent
// changes to the draft agent and can't be undone. You may want to save the
// draft agent to a version before calling this method.
UpdateEnvironment(context.Context, *UpdateEnvironmentRequest) (*Environment, error)
// Deletes the specified agent environment.
DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*emptypb.Empty, error)
// Gets the history of the specified environment.
GetEnvironmentHistory(context.Context, *GetEnvironmentHistoryRequest) (*EnvironmentHistory, error)
}EnvironmentsServer is the server API for Environments service. All implementations should embed UnimplementedEnvironmentsServer for forward compatibility
EvaluationConfig
type EvaluationConfig struct {
// Required. Datasets used for evaluation.
Datasets []*InputDataset `protobuf:"bytes,3,rep,name=datasets,proto3" json:"datasets,omitempty"`
// Specific configurations for different models in order to do evaluation.
//
// Types that are assignable to ModelSpecificConfig:
//
// *EvaluationConfig_SmartReplyConfig_
// *EvaluationConfig_SmartComposeConfig_
ModelSpecificConfig isEvaluationConfig_ModelSpecificConfig `protobuf_oneof:"model_specific_config"`
// contains filtered or unexported fields
}The configuration for model evaluation.
func (*EvaluationConfig) Descriptor
func (*EvaluationConfig) Descriptor() ([]byte, []int)Deprecated: Use EvaluationConfig.ProtoReflect.Descriptor instead.
func (*EvaluationConfig) GetDatasets
func (x *EvaluationConfig) GetDatasets() []*InputDatasetfunc (*EvaluationConfig) GetModelSpecificConfig
func (m *EvaluationConfig) GetModelSpecificConfig() isEvaluationConfig_ModelSpecificConfigfunc (*EvaluationConfig) GetSmartComposeConfig
func (x *EvaluationConfig) GetSmartComposeConfig() *EvaluationConfig_SmartComposeConfigfunc (*EvaluationConfig) GetSmartReplyConfig
func (x *EvaluationConfig) GetSmartReplyConfig() *EvaluationConfig_SmartReplyConfigfunc (*EvaluationConfig) ProtoMessage
func (*EvaluationConfig) ProtoMessage()func (*EvaluationConfig) ProtoReflect
func (x *EvaluationConfig) ProtoReflect() protoreflect.Messagefunc (*EvaluationConfig) Reset
func (x *EvaluationConfig) Reset()func (*EvaluationConfig) String
func (x *EvaluationConfig) String() stringEvaluationConfig_SmartComposeConfig
type EvaluationConfig_SmartComposeConfig struct {
// The allowlist document resource name.
// Format: `projects/Smart compose specific configuration for evaluation job.
func (*EvaluationConfig_SmartComposeConfig) Descriptor
func (*EvaluationConfig_SmartComposeConfig) Descriptor() ([]byte, []int)Deprecated: Use EvaluationConfig_SmartComposeConfig.ProtoReflect.Descriptor instead.
func (*EvaluationConfig_SmartComposeConfig) GetAllowlistDocument
func (x *EvaluationConfig_SmartComposeConfig) GetAllowlistDocument() stringfunc (*EvaluationConfig_SmartComposeConfig) GetMaxResultCount
func (x *EvaluationConfig_SmartComposeConfig) GetMaxResultCount() int32func (*EvaluationConfig_SmartComposeConfig) ProtoMessage
func (*EvaluationConfig_SmartComposeConfig) ProtoMessage()func (*EvaluationConfig_SmartComposeConfig) ProtoReflect
func (x *EvaluationConfig_SmartComposeConfig) ProtoReflect() protoreflect.Messagefunc (*EvaluationConfig_SmartComposeConfig) Reset
func (x *EvaluationConfig_SmartComposeConfig) Reset()func (*EvaluationConfig_SmartComposeConfig) String
func (x *EvaluationConfig_SmartComposeConfig) String() stringEvaluationConfig_SmartComposeConfig_
type EvaluationConfig_SmartComposeConfig_ struct {
// Configuration for smart compose model evaluation.
SmartComposeConfig *EvaluationConfig_SmartComposeConfig `protobuf:"bytes,4,opt,name=smart_compose_config,json=smartComposeConfig,proto3,oneof"`
}EvaluationConfig_SmartReplyConfig
type EvaluationConfig_SmartReplyConfig struct {
// The allowlist document resource name.
// Format: `projects/Smart reply specific configuration for evaluation job.
func (*EvaluationConfig_SmartReplyConfig) Descriptor
func (*EvaluationConfig_SmartReplyConfig) Descriptor() ([]byte, []int)Deprecated: Use EvaluationConfig_SmartReplyConfig.ProtoReflect.Descriptor instead.
func (*EvaluationConfig_SmartReplyConfig) GetAllowlistDocument
func (x *EvaluationConfig_SmartReplyConfig) GetAllowlistDocument() stringfunc (*EvaluationConfig_SmartReplyConfig) GetMaxResultCount
func (x *EvaluationConfig_SmartReplyConfig) GetMaxResultCount() int32func (*EvaluationConfig_SmartReplyConfig) ProtoMessage
func (*EvaluationConfig_SmartReplyConfig) ProtoMessage()func (*EvaluationConfig_SmartReplyConfig) ProtoReflect
func (x *EvaluationConfig_SmartReplyConfig) ProtoReflect() protoreflect.Messagefunc (*EvaluationConfig_SmartReplyConfig) Reset
func (x *EvaluationConfig_SmartReplyConfig) Reset()func (*EvaluationConfig_SmartReplyConfig) String
func (x *EvaluationConfig_SmartReplyConfig) String() stringEvaluationConfig_SmartReplyConfig_
type EvaluationConfig_SmartReplyConfig_ struct {
// Configuration for smart reply model evaluation.
SmartReplyConfig *EvaluationConfig_SmartReplyConfig `protobuf:"bytes,2,opt,name=smart_reply_config,json=smartReplyConfig,proto3,oneof"`
}EventInput
type EventInput struct {
// Required. The unique identifier of the event.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The collection of parameters associated with the event.
//
// Depending on your protocol or client library language, this is a
// map, associative array, symbol table, dictionary, or JSON object
// composed of a collection of (MapKey, MapValue) pairs:
//
// * MapKey type: string
// * MapKey value: parameter name
// * MapValue type: If parameter's entity type is a composite entity then use
// map, otherwise, depending on the parameter value type, it could be one of
// string, number, boolean, null, list or map.
// * MapValue value: If parameter's entity type is a composite entity then use
// map from composite entity property names to property values, otherwise,
// use parameter value.
Parameters *structpb.Struct `protobuf:"bytes,2,opt,name=parameters,proto3" json:"parameters,omitempty"`
// Required. The language of this query. See [Language
// Support](https://cloud.google.com/dialogflow/docs/reference/language)
// for a list of the currently supported language codes. Note that queries in
// the same session do not necessarily need to specify the same language.
//
// This field is ignored when used in the context of a
// [WebhookResponse.followup_event_input][google.cloud.dialogflow.v2.WebhookResponse.followup_event_input]
// field, because the language was already defined in the originating detect
// intent request.
LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// contains filtered or unexported fields
}Events allow for matching intents by event name instead of the natural
language input. For instance, input <event: { name: "welcome_event",
parameters: { name: "Sam" } }> can trigger a personalized welcome response.
The parameter name may be used by the agent in the response:
"Hello #welcome_event.name! What can I do for you today?".
func (*EventInput) Descriptor
func (*EventInput) Descriptor() ([]byte, []int)Deprecated: Use EventInput.ProtoReflect.Descriptor instead.
func (*EventInput) GetLanguageCode
func (x *EventInput) GetLanguageCode() stringfunc (*EventInput) GetName
func (x *EventInput) GetName() stringfunc (*EventInput) GetParameters
func (x *EventInput) GetParameters() *structpb.Structfunc (*EventInput) ProtoMessage
func (*EventInput) ProtoMessage()func (*EventInput) ProtoReflect
func (x *EventInput) ProtoReflect() protoreflect.Messagefunc (*EventInput) Reset
func (x *EventInput) Reset()func (*EventInput) String
func (x *EventInput) String() stringExportAgentRequest
type ExportAgentRequest struct {
// Required. The project that the agent to export is associated with.
// Format: `projects/The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
func (*ExportAgentRequest) Descriptor
func (*ExportAgentRequest) Descriptor() ([]byte, []int)Deprecated: Use ExportAgentRequest.ProtoReflect.Descriptor instead.
func (*ExportAgentRequest) GetAgentUri
func (x *ExportAgentRequest) GetAgentUri() stringfunc (*ExportAgentRequest) GetParent
func (x *ExportAgentRequest) GetParent() stringfunc (*ExportAgentRequest) ProtoMessage
func (*ExportAgentRequest) ProtoMessage()func (*ExportAgentRequest) ProtoReflect
func (x *ExportAgentRequest) ProtoReflect() protoreflect.Messagefunc (*ExportAgentRequest) Reset
func (x *ExportAgentRequest) Reset()func (*ExportAgentRequest) String
func (x *ExportAgentRequest) String() stringExportAgentResponse
type ExportAgentResponse struct {
// The exported agent.
//
// Types that are assignable to Agent:
//
// *ExportAgentResponse_AgentUri
// *ExportAgentResponse_AgentContent
Agent isExportAgentResponse_Agent `protobuf_oneof:"agent"`
// contains filtered or unexported fields
}The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
func (*ExportAgentResponse) Descriptor
func (*ExportAgentResponse) Descriptor() ([]byte, []int)Deprecated: Use ExportAgentResponse.ProtoReflect.Descriptor instead.
func (*ExportAgentResponse) GetAgent
func (m *ExportAgentResponse) GetAgent() isExportAgentResponse_Agentfunc (*ExportAgentResponse) GetAgentContent
func (x *ExportAgentResponse) GetAgentContent() []bytefunc (*ExportAgentResponse) GetAgentUri
func (x *ExportAgentResponse) GetAgentUri() stringfunc (*ExportAgentResponse) ProtoMessage
func (*ExportAgentResponse) ProtoMessage()func (*ExportAgentResponse) ProtoReflect
func (x *ExportAgentResponse) ProtoReflect() protoreflect.Messagefunc (*ExportAgentResponse) Reset
func (x *ExportAgentResponse) Reset()func (*ExportAgentResponse) String
func (x *ExportAgentResponse) String() stringExportAgentResponse_AgentContent
type ExportAgentResponse_AgentContent struct {
// Zip compressed raw byte content for agent.
AgentContent []byte `protobuf:"bytes,2,opt,name=agent_content,json=agentContent,proto3,oneof"`
}ExportAgentResponse_AgentUri
type ExportAgentResponse_AgentUri struct {
// The URI to a file containing the exported agent. This field is populated
// only if `agent_uri` is specified in `ExportAgentRequest`.
AgentUri string `protobuf:"bytes,1,opt,name=agent_uri,json=agentUri,proto3,oneof"`
}ExportDocumentRequest
type ExportDocumentRequest struct {
// Required. The name of the document to export.
// Format: `projects/Request message for [Documents.ExportDocument][google.cloud.dialogflow.v2.Documents.ExportDocument].
func (*ExportDocumentRequest) Descriptor
func (*ExportDocumentRequest) Descriptor() ([]byte, []int)Deprecated: Use ExportDocumentRequest.ProtoReflect.Descriptor instead.
func (*ExportDocumentRequest) GetDestination
func (m *ExportDocumentRequest) GetDestination() isExportDocumentRequest_Destinationfunc (*ExportDocumentRequest) GetExportFullContent
func (x *ExportDocumentRequest) GetExportFullContent() boolfunc (*ExportDocumentRequest) GetGcsDestination
func (x *ExportDocumentRequest) GetGcsDestination() *GcsDestinationfunc (*ExportDocumentRequest) GetName
func (x *ExportDocumentRequest) GetName() stringfunc (*ExportDocumentRequest) GetSmartMessagingPartialUpdate
func (x *ExportDocumentRequest) GetSmartMessagingPartialUpdate() boolfunc (*ExportDocumentRequest) ProtoMessage
func (*ExportDocumentRequest) ProtoMessage()func (*ExportDocumentRequest) ProtoReflect
func (x *ExportDocumentRequest) ProtoReflect() protoreflect.Messagefunc (*ExportDocumentRequest) Reset
func (x *ExportDocumentRequest) Reset()func (*ExportDocumentRequest) String
func (x *ExportDocumentRequest) String() stringExportDocumentRequest_GcsDestination
type ExportDocumentRequest_GcsDestination struct {
// Cloud Storage file path to export the document.
GcsDestination *GcsDestination `protobuf:"bytes,2,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}ExportOperationMetadata
type ExportOperationMetadata struct {
// Cloud Storage file path of the exported data.
ExportedGcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=exported_gcs_destination,json=exportedGcsDestination,proto3" json:"exported_gcs_destination,omitempty"`
// contains filtered or unexported fields
}Metadata related to the Export Data Operations (e.g. ExportDocument).
func (*ExportOperationMetadata) Descriptor
func (*ExportOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use ExportOperationMetadata.ProtoReflect.Descriptor instead.
func (*ExportOperationMetadata) GetExportedGcsDestination
func (x *ExportOperationMetadata) GetExportedGcsDestination() *GcsDestinationfunc (*ExportOperationMetadata) ProtoMessage
func (*ExportOperationMetadata) ProtoMessage()func (*ExportOperationMetadata) ProtoReflect
func (x *ExportOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*ExportOperationMetadata) Reset
func (x *ExportOperationMetadata) Reset()func (*ExportOperationMetadata) String
func (x *ExportOperationMetadata) String() stringFaqAnswer
type FaqAnswer struct {
// The piece of text from the `source` knowledge base document.
Answer string `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"`
// The system's confidence score that this Knowledge answer is a good match
// for this conversational query, range from 0.0 (completely uncertain)
// to 1.0 (completely certain).
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
// The corresponding FAQ question.
Question string `protobuf:"bytes,3,opt,name=question,proto3" json:"question,omitempty"`
// Indicates which Knowledge Document this answer was extracted
// from.
// Format: `projects/Represents answer from "frequently asked questions".
func (*FaqAnswer) Descriptor
Deprecated: Use FaqAnswer.ProtoReflect.Descriptor instead.
func (*FaqAnswer) GetAnswer
func (*FaqAnswer) GetAnswerRecord
func (*FaqAnswer) GetConfidence
func (*FaqAnswer) GetMetadata
func (*FaqAnswer) GetQuestion
func (*FaqAnswer) GetSource
func (*FaqAnswer) ProtoMessage
func (*FaqAnswer) ProtoMessage()func (*FaqAnswer) ProtoReflect
func (x *FaqAnswer) ProtoReflect() protoreflect.Messagefunc (*FaqAnswer) Reset
func (x *FaqAnswer) Reset()func (*FaqAnswer) String
FewShotExample
type FewShotExample struct {
// Optional. Conversation transcripts.
ConversationContext *ConversationContext `protobuf:"bytes,3,opt,name=conversation_context,json=conversationContext,proto3" json:"conversation_context,omitempty"`
// Optional. Key is the placeholder field name in input, value is the value of
// the placeholder. E.g. instruction contains "@price", and ingested data has
// <"price", "10"="">
ExtraInfo map[string]string `protobuf:"bytes,4,rep,name=extra_info,json=extraInfo,proto3" json:"extra_info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Instruction list of this few_shot example.
//
// Types that are assignable to InstructionList:
//
// *FewShotExample_SummarizationSectionList
InstructionList isFewShotExample_InstructionList `protobuf_oneof:"instruction_list"`
// Required. Example output of the model.
Output *GeneratorSuggestion `protobuf:"bytes,7,opt,name=output,proto3" json:"output,omitempty"`
// contains filtered or unexported fields
}Providing examples in the generator (i.e. building a few-shot generator) helps convey the desired format of the LLM response.
func (*FewShotExample) Descriptor
func (*FewShotExample) Descriptor() ([]byte, []int)Deprecated: Use FewShotExample.ProtoReflect.Descriptor instead.
func (*FewShotExample) GetConversationContext
func (x *FewShotExample) GetConversationContext() *ConversationContextfunc (*FewShotExample) GetExtraInfo
func (x *FewShotExample) GetExtraInfo() map[string]stringfunc (*FewShotExample) GetInstructionList
func (m *FewShotExample) GetInstructionList() isFewShotExample_InstructionListfunc (*FewShotExample) GetOutput
func (x *FewShotExample) GetOutput() *GeneratorSuggestionfunc (*FewShotExample) GetSummarizationSectionList
func (x *FewShotExample) GetSummarizationSectionList() *SummarizationSectionListfunc (*FewShotExample) ProtoMessage
func (*FewShotExample) ProtoMessage()func (*FewShotExample) ProtoReflect
func (x *FewShotExample) ProtoReflect() protoreflect.Messagefunc (*FewShotExample) Reset
func (x *FewShotExample) Reset()func (*FewShotExample) String
func (x *FewShotExample) String() stringFewShotExample_SummarizationSectionList
type FewShotExample_SummarizationSectionList struct {
// Summarization sections.
SummarizationSectionList *SummarizationSectionList `protobuf:"bytes,6,opt,name=summarization_section_list,json=summarizationSectionList,proto3,oneof"`
}FreeFormContext
type FreeFormContext struct {
// Optional. Free form text input to LLM.
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}Free form generator context that customer can configure.
func (*FreeFormContext) Descriptor
func (*FreeFormContext) Descriptor() ([]byte, []int)Deprecated: Use FreeFormContext.ProtoReflect.Descriptor instead.
func (*FreeFormContext) GetText
func (x *FreeFormContext) GetText() stringfunc (*FreeFormContext) ProtoMessage
func (*FreeFormContext) ProtoMessage()func (*FreeFormContext) ProtoReflect
func (x *FreeFormContext) ProtoReflect() protoreflect.Messagefunc (*FreeFormContext) Reset
func (x *FreeFormContext) Reset()func (*FreeFormContext) String
func (x *FreeFormContext) String() stringFreeFormSuggestion
type FreeFormSuggestion struct {
// Required. Free form suggestion.
Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
// contains filtered or unexported fields
}Suggestion generated using free form generator.
func (*FreeFormSuggestion) Descriptor
func (*FreeFormSuggestion) Descriptor() ([]byte, []int)Deprecated: Use FreeFormSuggestion.ProtoReflect.Descriptor instead.
func (*FreeFormSuggestion) GetResponse
func (x *FreeFormSuggestion) GetResponse() stringfunc (*FreeFormSuggestion) ProtoMessage
func (*FreeFormSuggestion) ProtoMessage()func (*FreeFormSuggestion) ProtoReflect
func (x *FreeFormSuggestion) ProtoReflect() protoreflect.Messagefunc (*FreeFormSuggestion) Reset
func (x *FreeFormSuggestion) Reset()func (*FreeFormSuggestion) String
func (x *FreeFormSuggestion) String() stringFulfillment
type Fulfillment struct {
// Required. The unique identifier of the fulfillment.
// Supported formats:
//
// - `projects/By default, your agent responds to a matched intent with a static response. As an alternative, you can provide a more dynamic response by using fulfillment. When you enable fulfillment for an intent, Dialogflow responds to that intent by calling a service that you define. For example, if an end-user wants to schedule a haircut on Friday, your service can check your database and respond to the end-user with availability information for Friday.
For more information, see the fulfillment guide.
func (*Fulfillment) Descriptor
func (*Fulfillment) Descriptor() ([]byte, []int)Deprecated: Use Fulfillment.ProtoReflect.Descriptor instead.
func (*Fulfillment) GetDisplayName
func (x *Fulfillment) GetDisplayName() stringfunc (*Fulfillment) GetEnabled
func (x *Fulfillment) GetEnabled() boolfunc (*Fulfillment) GetFeatures
func (x *Fulfillment) GetFeatures() []*Fulfillment_Featurefunc (*Fulfillment) GetFulfillment
func (m *Fulfillment) GetFulfillment() isFulfillment_Fulfillmentfunc (*Fulfillment) GetGenericWebService
func (x *Fulfillment) GetGenericWebService() *Fulfillment_GenericWebServicefunc (*Fulfillment) GetName
func (x *Fulfillment) GetName() stringfunc (*Fulfillment) ProtoMessage
func (*Fulfillment) ProtoMessage()func (*Fulfillment) ProtoReflect
func (x *Fulfillment) ProtoReflect() protoreflect.Messagefunc (*Fulfillment) Reset
func (x *Fulfillment) Reset()func (*Fulfillment) String
func (x *Fulfillment) String() stringFulfillment_Feature
type Fulfillment_Feature struct {
// The type of the feature that enabled for fulfillment.
Type Fulfillment_Feature_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.dialogflow.v2.Fulfillment_Feature_Type" json:"type,omitempty"`
// contains filtered or unexported fields
}Whether fulfillment is enabled for the specific feature.
func (*Fulfillment_Feature) Descriptor
func (*Fulfillment_Feature) Descriptor() ([]byte, []int)Deprecated: Use Fulfillment_Feature.ProtoReflect.Descriptor instead.
func (*Fulfillment_Feature) GetType
func (x *Fulfillment_Feature) GetType() Fulfillment_Feature_Typefunc (*Fulfillment_Feature) ProtoMessage
func (*Fulfillment_Feature) ProtoMessage()func (*Fulfillment_Feature) ProtoReflect
func (x *Fulfillment_Feature) ProtoReflect() protoreflect.Messagefunc (*Fulfillment_Feature) Reset
func (x *Fulfillment_Feature) Reset()func (*Fulfillment_Feature) String
func (x *Fulfillment_Feature) String() stringFulfillment_Feature_Type
type Fulfillment_Feature_Type int32The type of the feature.
Fulfillment_Feature_TYPE_UNSPECIFIED, Fulfillment_Feature_SMALLTALK
const (
// Feature type not specified.
Fulfillment_Feature_TYPE_UNSPECIFIED Fulfillment_Feature_Type = 0
// Fulfillment is enabled for SmallTalk.
Fulfillment_Feature_SMALLTALK Fulfillment_Feature_Type = 1
)func (Fulfillment_Feature_Type) Descriptor
func (Fulfillment_Feature_Type) Descriptor() protoreflect.EnumDescriptorfunc (Fulfillment_Feature_Type) Enum
func (x Fulfillment_Feature_Type) Enum() *Fulfillment_Feature_Typefunc (Fulfillment_Feature_Type) EnumDescriptor
func (Fulfillment_Feature_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use Fulfillment_Feature_Type.Descriptor instead.
func (Fulfillment_Feature_Type) Number
func (x Fulfillment_Feature_Type) Number() protoreflect.EnumNumberfunc (Fulfillment_Feature_Type) String
func (x Fulfillment_Feature_Type) String() stringfunc (Fulfillment_Feature_Type) Type
func (Fulfillment_Feature_Type) Type() protoreflect.EnumTypeFulfillment_GenericWebService
type Fulfillment_GenericWebService struct {
// Required. The fulfillment URI for receiving POST requests.
// It must use https protocol.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// Optional. The user name for HTTP Basic authentication.
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// Optional. The password for HTTP Basic authentication.
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
// Optional. The HTTP request headers to send together with fulfillment
// requests.
RequestHeaders map[string]string `protobuf:"bytes,4,rep,name=request_headers,json=requestHeaders,proto3" json:"request_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Indicates if generic web service is created through Cloud
// Functions integration. Defaults to false.
//
// is_cloud_function is deprecated. Cloud functions can be configured by
// its uri as a regular web service now.
//
// Deprecated: Marked as deprecated in google/cloud/dialogflow/v2/fulfillment.proto.
IsCloudFunction bool `protobuf:"varint,5,opt,name=is_cloud_function,json=isCloudFunction,proto3" json:"is_cloud_function,omitempty"`
// contains filtered or unexported fields
}Represents configuration for a generic web service. Dialogflow supports two mechanisms for authentications:
- Basic authentication with username and password.
- Authentication with additional authentication headers.
More information could be found at: https://cloud.google.com/dialogflow/docs/fulfillment-configure.
func (*Fulfillment_GenericWebService) Descriptor
func (*Fulfillment_GenericWebService) Descriptor() ([]byte, []int)Deprecated: Use Fulfillment_GenericWebService.ProtoReflect.Descriptor instead.
func (*Fulfillment_GenericWebService) GetIsCloudFunction
func (x *Fulfillment_GenericWebService) GetIsCloudFunction() boolDeprecated: Marked as deprecated in google/cloud/dialogflow/v2/fulfillment.proto.
func (*Fulfillment_GenericWebService) GetPassword
func (x *Fulfillment_GenericWebService) GetPassword() stringfunc (*Fulfillment_GenericWebService) GetRequestHeaders
func (x *Fulfillment_GenericWebService) GetRequestHeaders() map[string]stringfunc (*Fulfillment_GenericWebService) GetUri
func (x *Fulfillment_GenericWebService) GetUri() stringfunc (*Fulfillment_GenericWebService) GetUsername
func (x *Fulfillment_GenericWebService) GetUsername() stringfunc (*Fulfillment_GenericWebService) ProtoMessage
func (*Fulfillment_GenericWebService) ProtoMessage()func (*Fulfillment_GenericWebService) ProtoReflect
func (x *Fulfillment_GenericWebService) ProtoReflect() protoreflect.Messagefunc (*Fulfillment_GenericWebService) Reset
func (x *Fulfillment_GenericWebService) Reset()func (*Fulfillment_GenericWebService) String
func (x *Fulfillment_GenericWebService) String() stringFulfillment_GenericWebService_
type Fulfillment_GenericWebService_ struct {
// Configuration for a generic web service.
GenericWebService *Fulfillment_GenericWebService `protobuf:"bytes,3,opt,name=generic_web_service,json=genericWebService,proto3,oneof"`
}FulfillmentsClient
type FulfillmentsClient interface {
// Retrieves the fulfillment.
GetFulfillment(ctx context.Context, in *GetFulfillmentRequest, opts ...grpc.CallOption) (*Fulfillment, error)
// Updates the fulfillment.
UpdateFulfillment(ctx context.Context, in *UpdateFulfillmentRequest, opts ...grpc.CallOption) (*Fulfillment, error)
}FulfillmentsClient is the client API for Fulfillments service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFulfillmentsClient
func NewFulfillmentsClient(cc grpc.ClientConnInterface) FulfillmentsClientFulfillmentsServer
type FulfillmentsServer interface {
// Retrieves the fulfillment.
GetFulfillment(context.Context, *GetFulfillmentRequest) (*Fulfillment, error)
// Updates the fulfillment.
UpdateFulfillment(context.Context, *UpdateFulfillmentRequest) (*Fulfillment, error)
}FulfillmentsServer is the server API for Fulfillments service. All implementations should embed UnimplementedFulfillmentsServer for forward compatibility
GcsDestination
type GcsDestination struct {
// The Google Cloud Storage URIs for the output. A URI is of the
// form:
// `gs://bucket/object-prefix-or-name`
// Whether a prefix or name is used depends on the use case. The requesting
// user must have "write-permission" to the bucket.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}Google Cloud Storage location for the output.
func (*GcsDestination) Descriptor
func (*GcsDestination) Descriptor() ([]byte, []int)Deprecated: Use GcsDestination.ProtoReflect.Descriptor instead.
func (*GcsDestination) GetUri
func (x *GcsDestination) GetUri() stringfunc (*GcsDestination) ProtoMessage
func (*GcsDestination) ProtoMessage()func (*GcsDestination) ProtoReflect
func (x *GcsDestination) ProtoReflect() protoreflect.Messagefunc (*GcsDestination) Reset
func (x *GcsDestination) Reset()func (*GcsDestination) String
func (x *GcsDestination) String() stringGcsSources
type GcsSources struct {
// Required. Google Cloud Storage URIs for the inputs. A URI is of the form:
// `gs://bucket/object-prefix-or-name`
// Whether a prefix or name is used depends on the use case.
Uris []string `protobuf:"bytes,2,rep,name=uris,proto3" json:"uris,omitempty"`
// contains filtered or unexported fields
}Google Cloud Storage location for the inputs.
func (*GcsSources) Descriptor
func (*GcsSources) Descriptor() ([]byte, []int)Deprecated: Use GcsSources.ProtoReflect.Descriptor instead.
func (*GcsSources) GetUris
func (x *GcsSources) GetUris() []stringfunc (*GcsSources) ProtoMessage
func (*GcsSources) ProtoMessage()func (*GcsSources) ProtoReflect
func (x *GcsSources) ProtoReflect() protoreflect.Messagefunc (*GcsSources) Reset
func (x *GcsSources) Reset()func (*GcsSources) String
func (x *GcsSources) String() stringGenerateStatelessSuggestionRequest
type GenerateStatelessSuggestionRequest struct {
// Required. The parent resource to charge for the Suggestion's generation.
// Format: `projects/The request message for [Conversations.GenerateStatelessSuggestion][google.cloud.dialogflow.v2.Conversations.GenerateStatelessSuggestion].
func (*GenerateStatelessSuggestionRequest) Descriptor
func (*GenerateStatelessSuggestionRequest) Descriptor() ([]byte, []int)Deprecated: Use GenerateStatelessSuggestionRequest.ProtoReflect.Descriptor instead.
func (*GenerateStatelessSuggestionRequest) GetContextReferences
func (x *GenerateStatelessSuggestionRequest) GetContextReferences() map[string]*Conversation_ContextReferencefunc (*GenerateStatelessSuggestionRequest) GetConversationContext
func (x *GenerateStatelessSuggestionRequest) GetConversationContext() *ConversationContextfunc (*GenerateStatelessSuggestionRequest) GetGenerator
func (x *GenerateStatelessSuggestionRequest) GetGenerator() *Generatorfunc (*GenerateStatelessSuggestionRequest) GetGeneratorName
func (x *GenerateStatelessSuggestionRequest) GetGeneratorName() stringfunc (*GenerateStatelessSuggestionRequest) GetGeneratorResource
func (m *GenerateStatelessSuggestionRequest) GetGeneratorResource() isGenerateStatelessSuggestionRequest_GeneratorResourcefunc (*GenerateStatelessSuggestionRequest) GetParent
func (x *GenerateStatelessSuggestionRequest) GetParent() stringfunc (*GenerateStatelessSuggestionRequest) GetTriggerEvents
func (x *GenerateStatelessSuggestionRequest) GetTriggerEvents() []TriggerEventfunc (*GenerateStatelessSuggestionRequest) ProtoMessage
func (*GenerateStatelessSuggestionRequest) ProtoMessage()func (*GenerateStatelessSuggestionRequest) ProtoReflect
func (x *GenerateStatelessSuggestionRequest) ProtoReflect() protoreflect.Messagefunc (*GenerateStatelessSuggestionRequest) Reset
func (x *GenerateStatelessSuggestionRequest) Reset()func (*GenerateStatelessSuggestionRequest) String
func (x *GenerateStatelessSuggestionRequest) String() stringGenerateStatelessSuggestionRequest_Generator
type GenerateStatelessSuggestionRequest_Generator struct {
// Uncreated generator. It should be a complete generator that includes all
// information about the generator.
Generator *Generator `protobuf:"bytes,2,opt,name=generator,proto3,oneof"`
}GenerateStatelessSuggestionRequest_GeneratorName
type GenerateStatelessSuggestionRequest_GeneratorName struct {
// The resource name of the existing created generator. Format:
// `projects/GenerateStatelessSuggestionResponse
type GenerateStatelessSuggestionResponse struct {
// Required. Generated suggestion for a conversation.
GeneratorSuggestion *GeneratorSuggestion `protobuf:"bytes,1,opt,name=generator_suggestion,json=generatorSuggestion,proto3" json:"generator_suggestion,omitempty"`
// contains filtered or unexported fields
}The response message for [Conversations.GenerateStatelessSuggestion][google.cloud.dialogflow.v2.Conversations.GenerateStatelessSuggestion].
func (*GenerateStatelessSuggestionResponse) Descriptor
func (*GenerateStatelessSuggestionResponse) Descriptor() ([]byte, []int)Deprecated: Use GenerateStatelessSuggestionResponse.ProtoReflect.Descriptor instead.
func (*GenerateStatelessSuggestionResponse) GetGeneratorSuggestion
func (x *GenerateStatelessSuggestionResponse) GetGeneratorSuggestion() *GeneratorSuggestionfunc (*GenerateStatelessSuggestionResponse) ProtoMessage
func (*GenerateStatelessSuggestionResponse) ProtoMessage()func (*GenerateStatelessSuggestionResponse) ProtoReflect
func (x *GenerateStatelessSuggestionResponse) ProtoReflect() protoreflect.Messagefunc (*GenerateStatelessSuggestionResponse) Reset
func (x *GenerateStatelessSuggestionResponse) Reset()func (*GenerateStatelessSuggestionResponse) String
func (x *GenerateStatelessSuggestionResponse) String() stringGenerateStatelessSummaryRequest
type GenerateStatelessSummaryRequest struct {
// Required. The conversation to suggest a summary for.
StatelessConversation *GenerateStatelessSummaryRequest_MinimalConversation `protobuf:"bytes,1,opt,name=stateless_conversation,json=statelessConversation,proto3" json:"stateless_conversation,omitempty"`
// Required. A ConversationProfile containing information required for Summary
// generation.
// Required fields: {language_code, security_settings}
// Optional fields: {agent_assistant_config}
ConversationProfile *ConversationProfile `protobuf:"bytes,2,opt,name=conversation_profile,json=conversationProfile,proto3" json:"conversation_profile,omitempty"`
// Optional. The name of the latest conversation message used as context for
// generating a Summary. If empty, the latest message of the conversation will
// be used. The format is specific to the user and the names of the messages
// provided.
LatestMessage string `protobuf:"bytes,3,opt,name=latest_message,json=latestMessage,proto3" json:"latest_message,omitempty"`
// Optional. Max number of messages prior to and including
// [latest_message] to use as context when compiling the
// suggestion. By default 500 and at most 1000.
MaxContextSize int32 `protobuf:"varint,4,opt,name=max_context_size,json=maxContextSize,proto3" json:"max_context_size,omitempty"`
// contains filtered or unexported fields
}The request message for [Conversations.GenerateStatelessSummary][google.cloud.dialogflow.v2.Conversations.GenerateStatelessSummary].
func (*GenerateStatelessSummaryRequest) Descriptor
func (*GenerateStatelessSummaryRequest) Descriptor() ([]byte, []int)Deprecated: Use GenerateStatelessSummaryRequest.ProtoReflect.Descriptor instead.
func (*GenerateStatelessSummaryRequest) GetConversationProfile
func (x *GenerateStatelessSummaryRequest) GetConversationProfile() *ConversationProfilefunc (*GenerateStatelessSummaryRequest) GetLatestMessage
func (x *GenerateStatelessSummaryRequest) GetLatestMessage() stringfunc (*GenerateStatelessSummaryRequest) GetMaxContextSize
func (x *GenerateStatelessSummaryRequest) GetMaxContextSize() int32func (*GenerateStatelessSummaryRequest) GetStatelessConversation
func (x *GenerateStatelessSummaryRequest) GetStatelessConversation() *GenerateStatelessSummaryRequest_MinimalConversationfunc (*GenerateStatelessSummaryRequest) ProtoMessage
func (*GenerateStatelessSummaryRequest) ProtoMessage()func (*GenerateStatelessSummaryRequest) ProtoReflect
func (x *GenerateStatelessSummaryRequest) ProtoReflect() protoreflect.Messagefunc (*GenerateStatelessSummaryRequest) Reset
func (x *GenerateStatelessSummaryRequest) Reset()func (*GenerateStatelessSummaryRequest) String
func (x *GenerateStatelessSummaryRequest) String() stringGenerateStatelessSummaryRequest_MinimalConversation
type GenerateStatelessSummaryRequest_MinimalConversation struct {
// Required. The messages that the Summary will be generated from. It is
// expected that this message content is already redacted and does not
// contain any PII. Required fields: {content, language_code, participant,
// participant_role} Optional fields: {send_time} If send_time is not
// provided, then the messages must be provided in chronological order.
Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
// Required. The parent resource to charge for the Summary's generation.
// Format: `projects/The minimum amount of information required to generate a Summary without having a Conversation resource created.
func (*GenerateStatelessSummaryRequest_MinimalConversation) Descriptor
func (*GenerateStatelessSummaryRequest_MinimalConversation) Descriptor() ([]byte, []int)Deprecated: Use GenerateStatelessSummaryRequest_MinimalConversation.ProtoReflect.Descriptor instead.
func (*GenerateStatelessSummaryRequest_MinimalConversation) GetMessages
func (x *GenerateStatelessSummaryRequest_MinimalConversation) GetMessages() []*Messagefunc (*GenerateStatelessSummaryRequest_MinimalConversation) GetParent
func (x *GenerateStatelessSummaryRequest_MinimalConversation) GetParent() stringfunc (*GenerateStatelessSummaryRequest_MinimalConversation) ProtoMessage
func (*GenerateStatelessSummaryRequest_MinimalConversation) ProtoMessage()func (*GenerateStatelessSummaryRequest_MinimalConversation) ProtoReflect
func (x *GenerateStatelessSummaryRequest_MinimalConversation) ProtoReflect() protoreflect.Messagefunc (*GenerateStatelessSummaryRequest_MinimalConversation) Reset
func (x *GenerateStatelessSummaryRequest_MinimalConversation) Reset()func (*GenerateStatelessSummaryRequest_MinimalConversation) String
func (x *GenerateStatelessSummaryRequest_MinimalConversation) String() stringGenerateStatelessSummaryResponse
type GenerateStatelessSummaryResponse struct {
// Generated summary.
Summary *GenerateStatelessSummaryResponse_Summary `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"`
// The name of the latest conversation message used as context for
// compiling suggestion. The format is specific to the user and the names of
// the messages provided.
LatestMessage string `protobuf:"bytes,2,opt,name=latest_message,json=latestMessage,proto3" json:"latest_message,omitempty"`
// Number of messages prior to and including
// [latest_message][google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.latest_message]
// used to compile the suggestion. It may be smaller than the
// [GenerateStatelessSummaryRequest.max_context_size][google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.max_context_size]
// field in the request if there weren't that many messages in the
// conversation.
ContextSize int32 `protobuf:"varint,3,opt,name=context_size,json=contextSize,proto3" json:"context_size,omitempty"`
// contains filtered or unexported fields
}The response message for [Conversations.GenerateStatelessSummary][google.cloud.dialogflow.v2.Conversations.GenerateStatelessSummary].
func (*GenerateStatelessSummaryResponse) Descriptor
func (*GenerateStatelessSummaryResponse) Descriptor() ([]byte, []int)Deprecated: Use GenerateStatelessSummaryResponse.ProtoReflect.Descriptor instead.
func (*GenerateStatelessSummaryResponse) GetContextSize
func (x *GenerateStatelessSummaryResponse) GetContextSize() int32func (*GenerateStatelessSummaryResponse) GetLatestMessage
func (x *GenerateStatelessSummaryResponse) GetLatestMessage() stringfunc (*GenerateStatelessSummaryResponse) GetSummary
func (x *GenerateStatelessSummaryResponse) GetSummary() *GenerateStatelessSummaryResponse_Summaryfunc (*GenerateStatelessSummaryResponse) ProtoMessage
func (*GenerateStatelessSummaryResponse) ProtoMessage()func (*GenerateStatelessSummaryResponse) ProtoReflect
func (x *GenerateStatelessSummaryResponse) ProtoReflect() protoreflect.Messagefunc (*GenerateStatelessSummaryResponse) Reset
func (x *GenerateStatelessSummaryResponse) Reset()func (*GenerateStatelessSummaryResponse) String
func (x *GenerateStatelessSummaryResponse) String() stringGenerateStatelessSummaryResponse_Summary
type GenerateStatelessSummaryResponse_Summary struct {
// The summary content that is concatenated into one string.
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// The summary content that is divided into sections. The key is the
// section's name and the value is the section's content. There is no
// specific format for the key or value.
TextSections map[string]string `protobuf:"bytes,2,rep,name=text_sections,json=textSections,proto3" json:"text_sections,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// The baseline model version used to generate this summary. It is empty if
// a baseline model was not used to generate this summary.
BaselineModelVersion string `protobuf:"bytes,4,opt,name=baseline_model_version,json=baselineModelVersion,proto3" json:"baseline_model_version,omitempty"`
// contains filtered or unexported fields
}Generated summary for a conversation.
func (*GenerateStatelessSummaryResponse_Summary) Descriptor
func (*GenerateStatelessSummaryResponse_Summary) Descriptor() ([]byte, []int)Deprecated: Use GenerateStatelessSummaryResponse_Summary.ProtoReflect.Descriptor instead.
func (*GenerateStatelessSummaryResponse_Summary) GetBaselineModelVersion
func (x *GenerateStatelessSummaryResponse_Summary) GetBaselineModelVersion() stringfunc (*GenerateStatelessSummaryResponse_Summary) GetText
func (x *GenerateStatelessSummaryResponse_Summary) GetText() stringfunc (*GenerateStatelessSummaryResponse_Summary) GetTextSections
func (x *GenerateStatelessSummaryResponse_Summary) GetTextSections() map[string]stringfunc (*GenerateStatelessSummaryResponse_Summary) ProtoMessage
func (*GenerateStatelessSummaryResponse_Summary) ProtoMessage()func (*GenerateStatelessSummaryResponse_Summary) ProtoReflect
func (x *GenerateStatelessSummaryResponse_Summary) ProtoReflect() protoreflect.Messagefunc (*GenerateStatelessSummaryResponse_Summary) Reset
func (x *GenerateStatelessSummaryResponse_Summary) Reset()func (*GenerateStatelessSummaryResponse_Summary) String
func (x *GenerateStatelessSummaryResponse_Summary) String() stringGenerateSuggestionsRequest
type GenerateSuggestionsRequest struct {
// Required. The conversation for which the suggestions are generated. Format:
// `projects/The request message for [Conversations.GenerateSuggestions][google.cloud.dialogflow.v2.Conversations.GenerateSuggestions].
func (*GenerateSuggestionsRequest) Descriptor
func (*GenerateSuggestionsRequest) Descriptor() ([]byte, []int)Deprecated: Use GenerateSuggestionsRequest.ProtoReflect.Descriptor instead.
func (*GenerateSuggestionsRequest) GetConversation
func (x *GenerateSuggestionsRequest) GetConversation() stringfunc (*GenerateSuggestionsRequest) GetLatestMessage
func (x *GenerateSuggestionsRequest) GetLatestMessage() stringfunc (*GenerateSuggestionsRequest) GetTriggerEvents
func (x *GenerateSuggestionsRequest) GetTriggerEvents() []TriggerEventfunc (*GenerateSuggestionsRequest) ProtoMessage
func (*GenerateSuggestionsRequest) ProtoMessage()func (*GenerateSuggestionsRequest) ProtoReflect
func (x *GenerateSuggestionsRequest) ProtoReflect() protoreflect.Messagefunc (*GenerateSuggestionsRequest) Reset
func (x *GenerateSuggestionsRequest) Reset()func (*GenerateSuggestionsRequest) String
func (x *GenerateSuggestionsRequest) String() stringGenerateSuggestionsResponse
type GenerateSuggestionsResponse struct {
// The answers generated for the conversation based on context.
GeneratorSuggestionAnswers []*GenerateSuggestionsResponse_GeneratorSuggestionAnswer `protobuf:"bytes,1,rep,name=generator_suggestion_answers,json=generatorSuggestionAnswers,proto3" json:"generator_suggestion_answers,omitempty"`
// The name of the latest conversation message used as context for
// compiling suggestion.
//
// Format: `projects/The response message for [Conversations.GenerateSuggestions][google.cloud.dialogflow.v2.Conversations.GenerateSuggestions].
func (*GenerateSuggestionsResponse) Descriptor
func (*GenerateSuggestionsResponse) Descriptor() ([]byte, []int)Deprecated: Use GenerateSuggestionsResponse.ProtoReflect.Descriptor instead.
func (*GenerateSuggestionsResponse) GetGeneratorSuggestionAnswers
func (x *GenerateSuggestionsResponse) GetGeneratorSuggestionAnswers() []*GenerateSuggestionsResponse_GeneratorSuggestionAnswerfunc (*GenerateSuggestionsResponse) GetLatestMessage
func (x *GenerateSuggestionsResponse) GetLatestMessage() stringfunc (*GenerateSuggestionsResponse) ProtoMessage
func (*GenerateSuggestionsResponse) ProtoMessage()func (*GenerateSuggestionsResponse) ProtoReflect
func (x *GenerateSuggestionsResponse) ProtoReflect() protoreflect.Messagefunc (*GenerateSuggestionsResponse) Reset
func (x *GenerateSuggestionsResponse) Reset()func (*GenerateSuggestionsResponse) String
func (x *GenerateSuggestionsResponse) String() stringGenerateSuggestionsResponse_GeneratorSuggestionAnswer
type GenerateSuggestionsResponse_GeneratorSuggestionAnswer struct {
// Suggestion details.
GeneratorSuggestion *GeneratorSuggestion `protobuf:"bytes,1,opt,name=generator_suggestion,json=generatorSuggestion,proto3" json:"generator_suggestion,omitempty"`
// The name of the generator used to generate this suggestion. Format:
// `projects/A GeneratorSuggestion answer.
func (*GenerateSuggestionsResponse_GeneratorSuggestionAnswer) Descriptor
func (*GenerateSuggestionsResponse_GeneratorSuggestionAnswer) Descriptor() ([]byte, []int)Deprecated: Use GenerateSuggestionsResponse_GeneratorSuggestionAnswer.ProtoReflect.Descriptor instead.
func (*GenerateSuggestionsResponse_GeneratorSuggestionAnswer) GetAnswerRecord
func (x *GenerateSuggestionsResponse_GeneratorSuggestionAnswer) GetAnswerRecord() stringfunc (*GenerateSuggestionsResponse_GeneratorSuggestionAnswer) GetGeneratorSuggestion
func (x *GenerateSuggestionsResponse_GeneratorSuggestionAnswer) GetGeneratorSuggestion() *GeneratorSuggestionfunc (*GenerateSuggestionsResponse_GeneratorSuggestionAnswer) GetSourceGenerator
func (x *GenerateSuggestionsResponse_GeneratorSuggestionAnswer) GetSourceGenerator() stringfunc (*GenerateSuggestionsResponse_GeneratorSuggestionAnswer) ProtoMessage
func (*GenerateSuggestionsResponse_GeneratorSuggestionAnswer) ProtoMessage()func (*GenerateSuggestionsResponse_GeneratorSuggestionAnswer) ProtoReflect
func (x *GenerateSuggestionsResponse_GeneratorSuggestionAnswer) ProtoReflect() protoreflect.Messagefunc (*GenerateSuggestionsResponse_GeneratorSuggestionAnswer) Reset
func (x *GenerateSuggestionsResponse_GeneratorSuggestionAnswer) Reset()func (*GenerateSuggestionsResponse_GeneratorSuggestionAnswer) String
func (x *GenerateSuggestionsResponse_GeneratorSuggestionAnswer) String() stringGenerator
type Generator struct {
// Output only. Identifier. The resource name of the generator. Format:
// `projects/LLM generator.
func (*Generator) Descriptor
Deprecated: Use Generator.ProtoReflect.Descriptor instead.
func (*Generator) GetContext
func (m *Generator) GetContext() isGenerator_Contextfunc (*Generator) GetCreateTime
func (x *Generator) GetCreateTime() *timestamppb.Timestampfunc (*Generator) GetDescription
func (*Generator) GetFoundationModel
func (m *Generator) GetFoundationModel() isGenerator_FoundationModelfunc (*Generator) GetFreeFormContext
func (x *Generator) GetFreeFormContext() *FreeFormContextfunc (*Generator) GetInferenceParameter
func (x *Generator) GetInferenceParameter() *InferenceParameterfunc (*Generator) GetName
func (*Generator) GetPublishedModel
func (*Generator) GetSummarizationContext
func (x *Generator) GetSummarizationContext() *SummarizationContextfunc (*Generator) GetTriggerEvent
func (x *Generator) GetTriggerEvent() TriggerEventfunc (*Generator) GetUpdateTime
func (x *Generator) GetUpdateTime() *timestamppb.Timestampfunc (*Generator) ProtoMessage
func (*Generator) ProtoMessage()func (*Generator) ProtoReflect
func (x *Generator) ProtoReflect() protoreflect.Messagefunc (*Generator) Reset
func (x *Generator) Reset()func (*Generator) String
GeneratorSuggestion
type GeneratorSuggestion struct {
// The suggestion could be one of the many types
//
// Types that are assignable to Suggestion:
//
// *GeneratorSuggestion_FreeFormSuggestion
// *GeneratorSuggestion_SummarySuggestion
Suggestion isGeneratorSuggestion_Suggestion `protobuf_oneof:"suggestion"`
// contains filtered or unexported fields
}Suggestion generated using a Generator.
func (*GeneratorSuggestion) Descriptor
func (*GeneratorSuggestion) Descriptor() ([]byte, []int)Deprecated: Use GeneratorSuggestion.ProtoReflect.Descriptor instead.
func (*GeneratorSuggestion) GetFreeFormSuggestion
func (x *GeneratorSuggestion) GetFreeFormSuggestion() *FreeFormSuggestionfunc (*GeneratorSuggestion) GetSuggestion
func (m *GeneratorSuggestion) GetSuggestion() isGeneratorSuggestion_Suggestionfunc (*GeneratorSuggestion) GetSummarySuggestion
func (x *GeneratorSuggestion) GetSummarySuggestion() *SummarySuggestionfunc (*GeneratorSuggestion) ProtoMessage
func (*GeneratorSuggestion) ProtoMessage()func (*GeneratorSuggestion) ProtoReflect
func (x *GeneratorSuggestion) ProtoReflect() protoreflect.Messagefunc (*GeneratorSuggestion) Reset
func (x *GeneratorSuggestion) Reset()func (*GeneratorSuggestion) String
func (x *GeneratorSuggestion) String() stringGeneratorSuggestion_FreeFormSuggestion
type GeneratorSuggestion_FreeFormSuggestion struct {
// Optional. Free form suggestion.
FreeFormSuggestion *FreeFormSuggestion `protobuf:"bytes,1,opt,name=free_form_suggestion,json=freeFormSuggestion,proto3,oneof"`
}GeneratorSuggestion_SummarySuggestion
type GeneratorSuggestion_SummarySuggestion struct {
// Optional. Suggested summary.
SummarySuggestion *SummarySuggestion `protobuf:"bytes,2,opt,name=summary_suggestion,json=summarySuggestion,proto3,oneof"`
}Generator_FreeFormContext
type Generator_FreeFormContext struct {
// Input of free from generator to LLM.
FreeFormContext *FreeFormContext `protobuf:"bytes,11,opt,name=free_form_context,json=freeFormContext,proto3,oneof"`
}Generator_PublishedModel
type Generator_PublishedModel struct {
// Optional. The published Large Language Model name.
// - To use the latest model version, specify the model name without version
// number. Example: `text-bison`
// - To use a stable model version, specify the version number as well.
// Example: `text-bison@002`.
PublishedModel string `protobuf:"bytes,15,opt,name=published_model,json=publishedModel,proto3,oneof"`
}Generator_SummarizationContext
type Generator_SummarizationContext struct {
// Input of prebuilt Summarization feature.
SummarizationContext *SummarizationContext `protobuf:"bytes,13,opt,name=summarization_context,json=summarizationContext,proto3,oneof"`
}GeneratorsClient
type GeneratorsClient interface {
// Creates a generator.
CreateGenerator(ctx context.Context, in *CreateGeneratorRequest, opts ...grpc.CallOption) (*Generator, error)
// Retrieves a generator.
GetGenerator(ctx context.Context, in *GetGeneratorRequest, opts ...grpc.CallOption) (*Generator, error)
// Lists generators.
ListGenerators(ctx context.Context, in *ListGeneratorsRequest, opts ...grpc.CallOption) (*ListGeneratorsResponse, error)
// Deletes a generator.
DeleteGenerator(ctx context.Context, in *DeleteGeneratorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Updates a generator.
UpdateGenerator(ctx context.Context, in *UpdateGeneratorRequest, opts ...grpc.CallOption) (*Generator, error)
}GeneratorsClient is the client API for Generators service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewGeneratorsClient
func NewGeneratorsClient(cc grpc.ClientConnInterface) GeneratorsClientGeneratorsServer
type GeneratorsServer interface {
// Creates a generator.
CreateGenerator(context.Context, *CreateGeneratorRequest) (*Generator, error)
// Retrieves a generator.
GetGenerator(context.Context, *GetGeneratorRequest) (*Generator, error)
// Lists generators.
ListGenerators(context.Context, *ListGeneratorsRequest) (*ListGeneratorsResponse, error)
// Deletes a generator.
DeleteGenerator(context.Context, *DeleteGeneratorRequest) (*emptypb.Empty, error)
// Updates a generator.
UpdateGenerator(context.Context, *UpdateGeneratorRequest) (*Generator, error)
}GeneratorsServer is the server API for Generators service. All implementations should embed UnimplementedGeneratorsServer for forward compatibility
GetAgentRequest
type GetAgentRequest struct {
// Required. The project that the agent to fetch is associated with.
// Format: `projects/The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent].
func (*GetAgentRequest) Descriptor
func (*GetAgentRequest) Descriptor() ([]byte, []int)Deprecated: Use GetAgentRequest.ProtoReflect.Descriptor instead.
func (*GetAgentRequest) GetParent
func (x *GetAgentRequest) GetParent() stringfunc (*GetAgentRequest) ProtoMessage
func (*GetAgentRequest) ProtoMessage()func (*GetAgentRequest) ProtoReflect
func (x *GetAgentRequest) ProtoReflect() protoreflect.Messagefunc (*GetAgentRequest) Reset
func (x *GetAgentRequest) Reset()func (*GetAgentRequest) String
func (x *GetAgentRequest) String() stringGetContextRequest
type GetContextRequest struct {
// Required. The name of the context. Format:
// `projects/The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext].
func (*GetContextRequest) Descriptor
func (*GetContextRequest) Descriptor() ([]byte, []int)Deprecated: Use GetContextRequest.ProtoReflect.Descriptor instead.
func (*GetContextRequest) GetName
func (x *GetContextRequest) GetName() stringfunc (*GetContextRequest) ProtoMessage
func (*GetContextRequest) ProtoMessage()func (*GetContextRequest) ProtoReflect
func (x *GetContextRequest) ProtoReflect() protoreflect.Messagefunc (*GetContextRequest) Reset
func (x *GetContextRequest) Reset()func (*GetContextRequest) String
func (x *GetContextRequest) String() stringGetConversationDatasetRequest
type GetConversationDatasetRequest struct {
// Required. The conversation dataset to retrieve. Format:
// `projects/The request message for [ConversationDatasets.GetConversationDataset][google.cloud.dialogflow.v2.ConversationDatasets.GetConversationDataset].
func (*GetConversationDatasetRequest) Descriptor
func (*GetConversationDatasetRequest) Descriptor() ([]byte, []int)Deprecated: Use GetConversationDatasetRequest.ProtoReflect.Descriptor instead.
func (*GetConversationDatasetRequest) GetName
func (x *GetConversationDatasetRequest) GetName() stringfunc (*GetConversationDatasetRequest) ProtoMessage
func (*GetConversationDatasetRequest) ProtoMessage()func (*GetConversationDatasetRequest) ProtoReflect
func (x *GetConversationDatasetRequest) ProtoReflect() protoreflect.Messagefunc (*GetConversationDatasetRequest) Reset
func (x *GetConversationDatasetRequest) Reset()func (*GetConversationDatasetRequest) String
func (x *GetConversationDatasetRequest) String() stringGetConversationModelEvaluationRequest
type GetConversationModelEvaluationRequest struct {
// Required. The conversation model evaluation resource name. Format:
// `projects/The request message for [ConversationModels.GetConversationModelEvaluation][google.cloud.dialogflow.v2.ConversationModels.GetConversationModelEvaluation]
func (*GetConversationModelEvaluationRequest) Descriptor
func (*GetConversationModelEvaluationRequest) Descriptor() ([]byte, []int)Deprecated: Use GetConversationModelEvaluationRequest.ProtoReflect.Descriptor instead.
func (*GetConversationModelEvaluationRequest) GetName
func (x *GetConversationModelEvaluationRequest) GetName() stringfunc (*GetConversationModelEvaluationRequest) ProtoMessage
func (*GetConversationModelEvaluationRequest) ProtoMessage()func (*GetConversationModelEvaluationRequest) ProtoReflect
func (x *GetConversationModelEvaluationRequest) ProtoReflect() protoreflect.Messagefunc (*GetConversationModelEvaluationRequest) Reset
func (x *GetConversationModelEvaluationRequest) Reset()func (*GetConversationModelEvaluationRequest) String
func (x *GetConversationModelEvaluationRequest) String() stringGetConversationModelRequest
type GetConversationModelRequest struct {
// Required. The conversation model to retrieve. Format:
// `projects/The request message for [ConversationModels.GetConversationModel][google.cloud.dialogflow.v2.ConversationModels.GetConversationModel]
func (*GetConversationModelRequest) Descriptor
func (*GetConversationModelRequest) Descriptor() ([]byte, []int)Deprecated: Use GetConversationModelRequest.ProtoReflect.Descriptor instead.
func (*GetConversationModelRequest) GetName
func (x *GetConversationModelRequest) GetName() stringfunc (*GetConversationModelRequest) ProtoMessage
func (*GetConversationModelRequest) ProtoMessage()func (*GetConversationModelRequest) ProtoReflect
func (x *GetConversationModelRequest) ProtoReflect() protoreflect.Messagefunc (*GetConversationModelRequest) Reset
func (x *GetConversationModelRequest) Reset()func (*GetConversationModelRequest) String
func (x *GetConversationModelRequest) String() stringGetConversationProfileRequest
type GetConversationProfileRequest struct {
// Required. The resource name of the conversation profile.
// Format: `projects/The request message for [ConversationProfiles.GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile].
func (*GetConversationProfileRequest) Descriptor
func (*GetConversationProfileRequest) Descriptor() ([]byte, []int)Deprecated: Use GetConversationProfileRequest.ProtoReflect.Descriptor instead.
func (*GetConversationProfileRequest) GetName
func (x *GetConversationProfileRequest) GetName() stringfunc (*GetConversationProfileRequest) ProtoMessage
func (*GetConversationProfileRequest) ProtoMessage()func (*GetConversationProfileRequest) ProtoReflect
func (x *GetConversationProfileRequest) ProtoReflect() protoreflect.Messagefunc (*GetConversationProfileRequest) Reset
func (x *GetConversationProfileRequest) Reset()func (*GetConversationProfileRequest) String
func (x *GetConversationProfileRequest) String() stringGetConversationRequest
type GetConversationRequest struct {
// Required. The name of the conversation. Format:
// `projects/The request message for [Conversations.GetConversation][google.cloud.dialogflow.v2.Conversations.GetConversation].
func (*GetConversationRequest) Descriptor
func (*GetConversationRequest) Descriptor() ([]byte, []int)Deprecated: Use GetConversationRequest.ProtoReflect.Descriptor instead.
func (*GetConversationRequest) GetName
func (x *GetConversationRequest) GetName() stringfunc (*GetConversationRequest) ProtoMessage
func (*GetConversationRequest) ProtoMessage()func (*GetConversationRequest) ProtoReflect
func (x *GetConversationRequest) ProtoReflect() protoreflect.Messagefunc (*GetConversationRequest) Reset
func (x *GetConversationRequest) Reset()func (*GetConversationRequest) String
func (x *GetConversationRequest) String() stringGetDocumentRequest
type GetDocumentRequest struct {
// Required. The name of the document to retrieve.
// Format `projects/Request message for [Documents.GetDocument][google.cloud.dialogflow.v2.Documents.GetDocument].
func (*GetDocumentRequest) Descriptor
func (*GetDocumentRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDocumentRequest.ProtoReflect.Descriptor instead.
func (*GetDocumentRequest) GetName
func (x *GetDocumentRequest) GetName() stringfunc (*GetDocumentRequest) ProtoMessage
func (*GetDocumentRequest) ProtoMessage()func (*GetDocumentRequest) ProtoReflect
func (x *GetDocumentRequest) ProtoReflect() protoreflect.Messagefunc (*GetDocumentRequest) Reset
func (x *GetDocumentRequest) Reset()func (*GetDocumentRequest) String
func (x *GetDocumentRequest) String() stringGetEncryptionSpecRequest
type GetEncryptionSpecRequest struct {
// Required. The name of the encryption spec resource to get.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request to get location-level encryption specification.
func (*GetEncryptionSpecRequest) Descriptor
func (*GetEncryptionSpecRequest) Descriptor() ([]byte, []int)Deprecated: Use GetEncryptionSpecRequest.ProtoReflect.Descriptor instead.
func (*GetEncryptionSpecRequest) GetName
func (x *GetEncryptionSpecRequest) GetName() stringfunc (*GetEncryptionSpecRequest) ProtoMessage
func (*GetEncryptionSpecRequest) ProtoMessage()func (*GetEncryptionSpecRequest) ProtoReflect
func (x *GetEncryptionSpecRequest) ProtoReflect() protoreflect.Messagefunc (*GetEncryptionSpecRequest) Reset
func (x *GetEncryptionSpecRequest) Reset()func (*GetEncryptionSpecRequest) String
func (x *GetEncryptionSpecRequest) String() stringGetEntityTypeRequest
type GetEntityTypeRequest struct {
// Required. The name of the entity type.
// Format: `projects/The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType].
func (*GetEntityTypeRequest) Descriptor
func (*GetEntityTypeRequest) Descriptor() ([]byte, []int)Deprecated: Use GetEntityTypeRequest.ProtoReflect.Descriptor instead.
func (*GetEntityTypeRequest) GetLanguageCode
func (x *GetEntityTypeRequest) GetLanguageCode() stringfunc (*GetEntityTypeRequest) GetName
func (x *GetEntityTypeRequest) GetName() stringfunc (*GetEntityTypeRequest) ProtoMessage
func (*GetEntityTypeRequest) ProtoMessage()func (*GetEntityTypeRequest) ProtoReflect
func (x *GetEntityTypeRequest) ProtoReflect() protoreflect.Messagefunc (*GetEntityTypeRequest) Reset
func (x *GetEntityTypeRequest) Reset()func (*GetEntityTypeRequest) String
func (x *GetEntityTypeRequest) String() stringGetEnvironmentHistoryRequest
type GetEnvironmentHistoryRequest struct {
// Required. The name of the environment to retrieve history for.
// Supported formats:
//
// - `projects/The request message for [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory].
func (*GetEnvironmentHistoryRequest) Descriptor
func (*GetEnvironmentHistoryRequest) Descriptor() ([]byte, []int)Deprecated: Use GetEnvironmentHistoryRequest.ProtoReflect.Descriptor instead.
func (*GetEnvironmentHistoryRequest) GetPageSize
func (x *GetEnvironmentHistoryRequest) GetPageSize() int32func (*GetEnvironmentHistoryRequest) GetPageToken
func (x *GetEnvironmentHistoryRequest) GetPageToken() stringfunc (*GetEnvironmentHistoryRequest) GetParent
func (x *GetEnvironmentHistoryRequest) GetParent() stringfunc (*GetEnvironmentHistoryRequest) ProtoMessage
func (*GetEnvironmentHistoryRequest) ProtoMessage()func (*GetEnvironmentHistoryRequest) ProtoReflect
func (x *GetEnvironmentHistoryRequest) ProtoReflect() protoreflect.Messagefunc (*GetEnvironmentHistoryRequest) Reset
func (x *GetEnvironmentHistoryRequest) Reset()func (*GetEnvironmentHistoryRequest) String
func (x *GetEnvironmentHistoryRequest) String() stringGetEnvironmentRequest
type GetEnvironmentRequest struct {
// Required. The name of the environment.
// Supported formats:
//
// - `projects/The request message for [Environments.GetEnvironment][google.cloud.dialogflow.v2.Environments.GetEnvironment].
func (*GetEnvironmentRequest) Descriptor
func (*GetEnvironmentRequest) Descriptor() ([]byte, []int)Deprecated: Use GetEnvironmentRequest.ProtoReflect.Descriptor instead.
func (*GetEnvironmentRequest) GetName
func (x *GetEnvironmentRequest) GetName() stringfunc (*GetEnvironmentRequest) ProtoMessage
func (*GetEnvironmentRequest) ProtoMessage()func (*GetEnvironmentRequest) ProtoReflect
func (x *GetEnvironmentRequest) ProtoReflect() protoreflect.Messagefunc (*GetEnvironmentRequest) Reset
func (x *GetEnvironmentRequest) Reset()func (*GetEnvironmentRequest) String
func (x *GetEnvironmentRequest) String() stringGetFulfillmentRequest
type GetFulfillmentRequest struct {
// Required. The name of the fulfillment.
// Format: `projects/The request message for [Fulfillments.GetFulfillment][google.cloud.dialogflow.v2.Fulfillments.GetFulfillment].
func (*GetFulfillmentRequest) Descriptor
func (*GetFulfillmentRequest) Descriptor() ([]byte, []int)Deprecated: Use GetFulfillmentRequest.ProtoReflect.Descriptor instead.
func (*GetFulfillmentRequest) GetName
func (x *GetFulfillmentRequest) GetName() stringfunc (*GetFulfillmentRequest) ProtoMessage
func (*GetFulfillmentRequest) ProtoMessage()func (*GetFulfillmentRequest) ProtoReflect
func (x *GetFulfillmentRequest) ProtoReflect() protoreflect.Messagefunc (*GetFulfillmentRequest) Reset
func (x *GetFulfillmentRequest) Reset()func (*GetFulfillmentRequest) String
func (x *GetFulfillmentRequest) String() stringGetGeneratorRequest
type GetGeneratorRequest struct {
// Required. The generator resource name to retrieve. Format:
// `projects/Request message of GetGenerator.
func (*GetGeneratorRequest) Descriptor
func (*GetGeneratorRequest) Descriptor() ([]byte, []int)Deprecated: Use GetGeneratorRequest.ProtoReflect.Descriptor instead.
func (*GetGeneratorRequest) GetName
func (x *GetGeneratorRequest) GetName() stringfunc (*GetGeneratorRequest) ProtoMessage
func (*GetGeneratorRequest) ProtoMessage()func (*GetGeneratorRequest) ProtoReflect
func (x *GetGeneratorRequest) ProtoReflect() protoreflect.Messagefunc (*GetGeneratorRequest) Reset
func (x *GetGeneratorRequest) Reset()func (*GetGeneratorRequest) String
func (x *GetGeneratorRequest) String() stringGetIntentRequest
type GetIntentRequest struct {
// Required. The name of the intent.
// Format: `projects/The request message for [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent].
func (*GetIntentRequest) Descriptor
func (*GetIntentRequest) Descriptor() ([]byte, []int)Deprecated: Use GetIntentRequest.ProtoReflect.Descriptor instead.
func (*GetIntentRequest) GetIntentView
func (x *GetIntentRequest) GetIntentView() IntentViewfunc (*GetIntentRequest) GetLanguageCode
func (x *GetIntentRequest) GetLanguageCode() stringfunc (*GetIntentRequest) GetName
func (x *GetIntentRequest) GetName() stringfunc (*GetIntentRequest) ProtoMessage
func (*GetIntentRequest) ProtoMessage()func (*GetIntentRequest) ProtoReflect
func (x *GetIntentRequest) ProtoReflect() protoreflect.Messagefunc (*GetIntentRequest) Reset
func (x *GetIntentRequest) Reset()func (*GetIntentRequest) String
func (x *GetIntentRequest) String() stringGetKnowledgeBaseRequest
type GetKnowledgeBaseRequest struct {
// Required. The name of the knowledge base to retrieve.
// Format `projects/Request message for [KnowledgeBases.GetKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.GetKnowledgeBase].
func (*GetKnowledgeBaseRequest) Descriptor
func (*GetKnowledgeBaseRequest) Descriptor() ([]byte, []int)Deprecated: Use GetKnowledgeBaseRequest.ProtoReflect.Descriptor instead.
func (*GetKnowledgeBaseRequest) GetName
func (x *GetKnowledgeBaseRequest) GetName() stringfunc (*GetKnowledgeBaseRequest) ProtoMessage
func (*GetKnowledgeBaseRequest) ProtoMessage()func (*GetKnowledgeBaseRequest) ProtoReflect
func (x *GetKnowledgeBaseRequest) ProtoReflect() protoreflect.Messagefunc (*GetKnowledgeBaseRequest) Reset
func (x *GetKnowledgeBaseRequest) Reset()func (*GetKnowledgeBaseRequest) String
func (x *GetKnowledgeBaseRequest) String() stringGetParticipantRequest
type GetParticipantRequest struct {
// Required. The name of the participant. Format:
// `projects/The request message for [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant].
func (*GetParticipantRequest) Descriptor
func (*GetParticipantRequest) Descriptor() ([]byte, []int)Deprecated: Use GetParticipantRequest.ProtoReflect.Descriptor instead.
func (*GetParticipantRequest) GetName
func (x *GetParticipantRequest) GetName() stringfunc (*GetParticipantRequest) ProtoMessage
func (*GetParticipantRequest) ProtoMessage()func (*GetParticipantRequest) ProtoReflect
func (x *GetParticipantRequest) ProtoReflect() protoreflect.Messagefunc (*GetParticipantRequest) Reset
func (x *GetParticipantRequest) Reset()func (*GetParticipantRequest) String
func (x *GetParticipantRequest) String() stringGetSessionEntityTypeRequest
type GetSessionEntityTypeRequest struct {
// Required. The name of the session entity type. Format:
// `projects/The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType].
func (*GetSessionEntityTypeRequest) Descriptor
func (*GetSessionEntityTypeRequest) Descriptor() ([]byte, []int)Deprecated: Use GetSessionEntityTypeRequest.ProtoReflect.Descriptor instead.
func (*GetSessionEntityTypeRequest) GetName
func (x *GetSessionEntityTypeRequest) GetName() stringfunc (*GetSessionEntityTypeRequest) ProtoMessage
func (*GetSessionEntityTypeRequest) ProtoMessage()func (*GetSessionEntityTypeRequest) ProtoReflect
func (x *GetSessionEntityTypeRequest) ProtoReflect() protoreflect.Messagefunc (*GetSessionEntityTypeRequest) Reset
func (x *GetSessionEntityTypeRequest) Reset()func (*GetSessionEntityTypeRequest) String
func (x *GetSessionEntityTypeRequest) String() stringGetValidationResultRequest
type GetValidationResultRequest struct {
// Required. The project that the agent is associated with.
// Format: `projects/The request message for [Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult].
func (*GetValidationResultRequest) Descriptor
func (*GetValidationResultRequest) Descriptor() ([]byte, []int)Deprecated: Use GetValidationResultRequest.ProtoReflect.Descriptor instead.
func (*GetValidationResultRequest) GetLanguageCode
func (x *GetValidationResultRequest) GetLanguageCode() stringfunc (*GetValidationResultRequest) GetParent
func (x *GetValidationResultRequest) GetParent() stringfunc (*GetValidationResultRequest) ProtoMessage
func (*GetValidationResultRequest) ProtoMessage()func (*GetValidationResultRequest) ProtoReflect
func (x *GetValidationResultRequest) ProtoReflect() protoreflect.Messagefunc (*GetValidationResultRequest) Reset
func (x *GetValidationResultRequest) Reset()func (*GetValidationResultRequest) String
func (x *GetValidationResultRequest) String() stringGetVersionRequest
type GetVersionRequest struct {
// Required. The name of the version.
// Supported formats:
//
// - `projects/The request message for [Versions.GetVersion][google.cloud.dialogflow.v2.Versions.GetVersion].
func (*GetVersionRequest) Descriptor
func (*GetVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.
func (*GetVersionRequest) GetName
func (x *GetVersionRequest) GetName() stringfunc (*GetVersionRequest) ProtoMessage
func (*GetVersionRequest) ProtoMessage()func (*GetVersionRequest) ProtoReflect
func (x *GetVersionRequest) ProtoReflect() protoreflect.Messagefunc (*GetVersionRequest) Reset
func (x *GetVersionRequest) Reset()func (*GetVersionRequest) String
func (x *GetVersionRequest) String() stringHumanAgentAssistantConfig
type HumanAgentAssistantConfig struct {
// Pub/Sub topic on which to publish new agent assistant events.
NotificationConfig *NotificationConfig `protobuf:"bytes,2,opt,name=notification_config,json=notificationConfig,proto3" json:"notification_config,omitempty"`
// Configuration for agent assistance of human agent participant.
HumanAgentSuggestionConfig *HumanAgentAssistantConfig_SuggestionConfig `protobuf:"bytes,3,opt,name=human_agent_suggestion_config,json=humanAgentSuggestionConfig,proto3" json:"human_agent_suggestion_config,omitempty"`
// Configuration for agent assistance of end user participant.
//
// Currently, this feature is not general available, please contact Google
// to get access.
EndUserSuggestionConfig *HumanAgentAssistantConfig_SuggestionConfig `protobuf:"bytes,4,opt,name=end_user_suggestion_config,json=endUserSuggestionConfig,proto3" json:"end_user_suggestion_config,omitempty"`
// Configuration for message analysis.
MessageAnalysisConfig *HumanAgentAssistantConfig_MessageAnalysisConfig `protobuf:"bytes,5,opt,name=message_analysis_config,json=messageAnalysisConfig,proto3" json:"message_analysis_config,omitempty"`
// contains filtered or unexported fields
}Defines the Human Agent Assist to connect to a conversation.
func (*HumanAgentAssistantConfig) Descriptor
func (*HumanAgentAssistantConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig) GetEndUserSuggestionConfig
func (x *HumanAgentAssistantConfig) GetEndUserSuggestionConfig() *HumanAgentAssistantConfig_SuggestionConfigfunc (*HumanAgentAssistantConfig) GetHumanAgentSuggestionConfig
func (x *HumanAgentAssistantConfig) GetHumanAgentSuggestionConfig() *HumanAgentAssistantConfig_SuggestionConfigfunc (*HumanAgentAssistantConfig) GetMessageAnalysisConfig
func (x *HumanAgentAssistantConfig) GetMessageAnalysisConfig() *HumanAgentAssistantConfig_MessageAnalysisConfigfunc (*HumanAgentAssistantConfig) GetNotificationConfig
func (x *HumanAgentAssistantConfig) GetNotificationConfig() *NotificationConfigfunc (*HumanAgentAssistantConfig) ProtoMessage
func (*HumanAgentAssistantConfig) ProtoMessage()func (*HumanAgentAssistantConfig) ProtoReflect
func (x *HumanAgentAssistantConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig) Reset
func (x *HumanAgentAssistantConfig) Reset()func (*HumanAgentAssistantConfig) String
func (x *HumanAgentAssistantConfig) String() stringHumanAgentAssistantConfig_ConversationModelConfig
type HumanAgentAssistantConfig_ConversationModelConfig struct {
// Conversation model resource name. Format: `projects/Custom conversation models used in agent assist feature.
Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY, CONVERSATION_SUMMARIZATION.
func (*HumanAgentAssistantConfig_ConversationModelConfig) Descriptor
func (*HumanAgentAssistantConfig_ConversationModelConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_ConversationModelConfig.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_ConversationModelConfig) GetBaselineModelVersion
func (x *HumanAgentAssistantConfig_ConversationModelConfig) GetBaselineModelVersion() stringfunc (*HumanAgentAssistantConfig_ConversationModelConfig) GetModel
func (x *HumanAgentAssistantConfig_ConversationModelConfig) GetModel() stringfunc (*HumanAgentAssistantConfig_ConversationModelConfig) ProtoMessage
func (*HumanAgentAssistantConfig_ConversationModelConfig) ProtoMessage()func (*HumanAgentAssistantConfig_ConversationModelConfig) ProtoReflect
func (x *HumanAgentAssistantConfig_ConversationModelConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_ConversationModelConfig) Reset
func (x *HumanAgentAssistantConfig_ConversationModelConfig) Reset()func (*HumanAgentAssistantConfig_ConversationModelConfig) String
func (x *HumanAgentAssistantConfig_ConversationModelConfig) String() stringHumanAgentAssistantConfig_ConversationProcessConfig
type HumanAgentAssistantConfig_ConversationProcessConfig struct {
// Number of recent non-small-talk sentences to use as context for article
// and FAQ suggestion
RecentSentencesCount int32 `protobuf:"varint,2,opt,name=recent_sentences_count,json=recentSentencesCount,proto3" json:"recent_sentences_count,omitempty"`
// contains filtered or unexported fields
}Config to process conversation.
func (*HumanAgentAssistantConfig_ConversationProcessConfig) Descriptor
func (*HumanAgentAssistantConfig_ConversationProcessConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_ConversationProcessConfig.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_ConversationProcessConfig) GetRecentSentencesCount
func (x *HumanAgentAssistantConfig_ConversationProcessConfig) GetRecentSentencesCount() int32func (*HumanAgentAssistantConfig_ConversationProcessConfig) ProtoMessage
func (*HumanAgentAssistantConfig_ConversationProcessConfig) ProtoMessage()func (*HumanAgentAssistantConfig_ConversationProcessConfig) ProtoReflect
func (x *HumanAgentAssistantConfig_ConversationProcessConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_ConversationProcessConfig) Reset
func (x *HumanAgentAssistantConfig_ConversationProcessConfig) Reset()func (*HumanAgentAssistantConfig_ConversationProcessConfig) String
func (x *HumanAgentAssistantConfig_ConversationProcessConfig) String() stringHumanAgentAssistantConfig_MessageAnalysisConfig
type HumanAgentAssistantConfig_MessageAnalysisConfig struct {
// Enable entity extraction in conversation messages on [agent assist
// stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
// If unspecified, defaults to false.
//
// Currently, this feature is not general available, please contact Google
// to get access.
EnableEntityExtraction bool `protobuf:"varint,2,opt,name=enable_entity_extraction,json=enableEntityExtraction,proto3" json:"enable_entity_extraction,omitempty"`
// Enable sentiment analysis in conversation messages on [agent assist
// stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
// If unspecified, defaults to false. Sentiment analysis inspects user input
// and identifies the prevailing subjective opinion, especially to determine
// a user's attitude as positive, negative, or neutral:
// https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
// For
// [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
// method, result will be in
// [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
// For
// [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
// method, result will be in
// [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
// For
// [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
// method, result will be in
// [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
// If Pub/Sub notification is configured, result will be in
// [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
EnableSentimentAnalysis bool `protobuf:"varint,3,opt,name=enable_sentiment_analysis,json=enableSentimentAnalysis,proto3" json:"enable_sentiment_analysis,omitempty"`
// contains filtered or unexported fields
}Configuration for analyses to run on each conversation message.
func (*HumanAgentAssistantConfig_MessageAnalysisConfig) Descriptor
func (*HumanAgentAssistantConfig_MessageAnalysisConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_MessageAnalysisConfig.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_MessageAnalysisConfig) GetEnableEntityExtraction
func (x *HumanAgentAssistantConfig_MessageAnalysisConfig) GetEnableEntityExtraction() boolfunc (*HumanAgentAssistantConfig_MessageAnalysisConfig) GetEnableSentimentAnalysis
func (x *HumanAgentAssistantConfig_MessageAnalysisConfig) GetEnableSentimentAnalysis() boolfunc (*HumanAgentAssistantConfig_MessageAnalysisConfig) ProtoMessage
func (*HumanAgentAssistantConfig_MessageAnalysisConfig) ProtoMessage()func (*HumanAgentAssistantConfig_MessageAnalysisConfig) ProtoReflect
func (x *HumanAgentAssistantConfig_MessageAnalysisConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_MessageAnalysisConfig) Reset
func (x *HumanAgentAssistantConfig_MessageAnalysisConfig) Reset()func (*HumanAgentAssistantConfig_MessageAnalysisConfig) String
func (x *HumanAgentAssistantConfig_MessageAnalysisConfig) String() stringHumanAgentAssistantConfig_SuggestionConfig
type HumanAgentAssistantConfig_SuggestionConfig struct {
// Configuration of different suggestion features. One feature can have only
// one config.
FeatureConfigs []*HumanAgentAssistantConfig_SuggestionFeatureConfig `protobuf:"bytes,2,rep,name=feature_configs,json=featureConfigs,proto3" json:"feature_configs,omitempty"`
// If `group_suggestion_responses` is false, and there are multiple
// `feature_configs` in `event based suggestion` or
// StreamingAnalyzeContent, we will try to deliver suggestions to customers
// as soon as we get new suggestion. Different type of suggestions based on
// the same context will be in separate Pub/Sub event or
// `StreamingAnalyzeContentResponse`.
//
// If `group_suggestion_responses` set to true. All the suggestions to the
// same participant based on the same context will be grouped into a single
// Pub/Sub event or StreamingAnalyzeContentResponse.
GroupSuggestionResponses bool `protobuf:"varint,3,opt,name=group_suggestion_responses,json=groupSuggestionResponses,proto3" json:"group_suggestion_responses,omitempty"`
// Optional. List of various generator resource names used in the
// conversation profile.
Generators []string `protobuf:"bytes,4,rep,name=generators,proto3" json:"generators,omitempty"`
// Optional. When disable_high_latency_features_sync_delivery is true and
// using the AnalyzeContent API, we will not deliver the responses from high
// latency features in the API response. The
// human_agent_assistant_config.notification_config must be configured and
// enable_event_based_suggestion must be set to true to receive the
// responses from high latency features in Pub/Sub. High latency feature(s):
// KNOWLEDGE_ASSIST
DisableHighLatencyFeaturesSyncDelivery bool `protobuf:"varint,5,opt,name=disable_high_latency_features_sync_delivery,json=disableHighLatencyFeaturesSyncDelivery,proto3" json:"disable_high_latency_features_sync_delivery,omitempty"`
// contains filtered or unexported fields
}Detail human agent assistant config.
func (*HumanAgentAssistantConfig_SuggestionConfig) Descriptor
func (*HumanAgentAssistantConfig_SuggestionConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_SuggestionConfig.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_SuggestionConfig) GetDisableHighLatencyFeaturesSyncDelivery
func (x *HumanAgentAssistantConfig_SuggestionConfig) GetDisableHighLatencyFeaturesSyncDelivery() boolfunc (*HumanAgentAssistantConfig_SuggestionConfig) GetFeatureConfigs
func (x *HumanAgentAssistantConfig_SuggestionConfig) GetFeatureConfigs() []*HumanAgentAssistantConfig_SuggestionFeatureConfigfunc (*HumanAgentAssistantConfig_SuggestionConfig) GetGenerators
func (x *HumanAgentAssistantConfig_SuggestionConfig) GetGenerators() []stringfunc (*HumanAgentAssistantConfig_SuggestionConfig) GetGroupSuggestionResponses
func (x *HumanAgentAssistantConfig_SuggestionConfig) GetGroupSuggestionResponses() boolfunc (*HumanAgentAssistantConfig_SuggestionConfig) ProtoMessage
func (*HumanAgentAssistantConfig_SuggestionConfig) ProtoMessage()func (*HumanAgentAssistantConfig_SuggestionConfig) ProtoReflect
func (x *HumanAgentAssistantConfig_SuggestionConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_SuggestionConfig) Reset
func (x *HumanAgentAssistantConfig_SuggestionConfig) Reset()func (*HumanAgentAssistantConfig_SuggestionConfig) String
func (x *HumanAgentAssistantConfig_SuggestionConfig) String() stringHumanAgentAssistantConfig_SuggestionFeatureConfig
type HumanAgentAssistantConfig_SuggestionFeatureConfig struct {
// The suggestion feature.
SuggestionFeature *SuggestionFeature `protobuf:"bytes,5,opt,name=suggestion_feature,json=suggestionFeature,proto3" json:"suggestion_feature,omitempty"`
// Automatically iterates all participants and tries to compile
// suggestions.
//
// Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST,
// KNOWLEDGE_ASSIST.
EnableEventBasedSuggestion bool `protobuf:"varint,3,opt,name=enable_event_based_suggestion,json=enableEventBasedSuggestion,proto3" json:"enable_event_based_suggestion,omitempty"`
// Optional. Disable the logging of search queries sent by human agents. It
// can prevent those queries from being stored at answer records.
//
// Supported features: KNOWLEDGE_SEARCH.
DisableAgentQueryLogging bool `protobuf:"varint,14,opt,name=disable_agent_query_logging,json=disableAgentQueryLogging,proto3" json:"disable_agent_query_logging,omitempty"`
// Optional. Enable query suggestion even if we can't find its answer.
// By default, queries are suggested only if we find its answer.
// Supported features: KNOWLEDGE_ASSIST
EnableQuerySuggestionWhenNoAnswer bool `protobuf:"varint,15,opt,name=enable_query_suggestion_when_no_answer,json=enableQuerySuggestionWhenNoAnswer,proto3" json:"enable_query_suggestion_when_no_answer,omitempty"`
// Optional. Enable including conversation context during query answer
// generation. Supported features: KNOWLEDGE_SEARCH.
EnableConversationAugmentedQuery bool `protobuf:"varint,16,opt,name=enable_conversation_augmented_query,json=enableConversationAugmentedQuery,proto3" json:"enable_conversation_augmented_query,omitempty"`
// Optional. Enable query suggestion only.
// Supported features: KNOWLEDGE_ASSIST
EnableQuerySuggestionOnly bool `protobuf:"varint,17,opt,name=enable_query_suggestion_only,json=enableQuerySuggestionOnly,proto3" json:"enable_query_suggestion_only,omitempty"`
// Settings of suggestion trigger.
//
// Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
SuggestionTriggerSettings *HumanAgentAssistantConfig_SuggestionTriggerSettings `protobuf:"bytes,10,opt,name=suggestion_trigger_settings,json=suggestionTriggerSettings,proto3" json:"suggestion_trigger_settings,omitempty"`
// Configs of query.
QueryConfig *HumanAgentAssistantConfig_SuggestionQueryConfig `protobuf:"bytes,6,opt,name=query_config,json=queryConfig,proto3" json:"query_config,omitempty"`
// Configs of custom conversation model.
ConversationModelConfig *HumanAgentAssistantConfig_ConversationModelConfig `protobuf:"bytes,7,opt,name=conversation_model_config,json=conversationModelConfig,proto3" json:"conversation_model_config,omitempty"`
// Configs for processing conversation.
ConversationProcessConfig *HumanAgentAssistantConfig_ConversationProcessConfig `protobuf:"bytes,8,opt,name=conversation_process_config,json=conversationProcessConfig,proto3" json:"conversation_process_config,omitempty"`
// contains filtered or unexported fields
}Config for suggestion features.
func (*HumanAgentAssistantConfig_SuggestionFeatureConfig) Descriptor
func (*HumanAgentAssistantConfig_SuggestionFeatureConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_SuggestionFeatureConfig.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_SuggestionFeatureConfig) GetConversationModelConfig
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) GetConversationModelConfig() *HumanAgentAssistantConfig_ConversationModelConfigfunc (*HumanAgentAssistantConfig_SuggestionFeatureConfig) GetConversationProcessConfig
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) GetConversationProcessConfig() *HumanAgentAssistantConfig_ConversationProcessConfigfunc (*HumanAgentAssistantConfig_SuggestionFeatureConfig) GetDisableAgentQueryLogging
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) GetDisableAgentQueryLogging() boolfunc (*HumanAgentAssistantConfig_SuggestionFeatureConfig) GetEnableConversationAugmentedQuery
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) GetEnableConversationAugmentedQuery() boolfunc (*HumanAgentAssistantConfig_SuggestionFeatureConfig) GetEnableEventBasedSuggestion
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) GetEnableEventBasedSuggestion() boolfunc (*HumanAgentAssistantConfig_SuggestionFeatureConfig) GetEnableQuerySuggestionOnly
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) GetEnableQuerySuggestionOnly() boolfunc (*HumanAgentAssistantConfig_SuggestionFeatureConfig) GetEnableQuerySuggestionWhenNoAnswer
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) GetEnableQuerySuggestionWhenNoAnswer() boolfunc (*HumanAgentAssistantConfig_SuggestionFeatureConfig) GetQueryConfig
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) GetQueryConfig() *HumanAgentAssistantConfig_SuggestionQueryConfigfunc (*HumanAgentAssistantConfig_SuggestionFeatureConfig) GetSuggestionFeature
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) GetSuggestionFeature() *SuggestionFeaturefunc (*HumanAgentAssistantConfig_SuggestionFeatureConfig) GetSuggestionTriggerSettings
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) GetSuggestionTriggerSettings() *HumanAgentAssistantConfig_SuggestionTriggerSettingsfunc (*HumanAgentAssistantConfig_SuggestionFeatureConfig) ProtoMessage
func (*HumanAgentAssistantConfig_SuggestionFeatureConfig) ProtoMessage()func (*HumanAgentAssistantConfig_SuggestionFeatureConfig) ProtoReflect
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_SuggestionFeatureConfig) Reset
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) Reset()func (*HumanAgentAssistantConfig_SuggestionFeatureConfig) String
func (x *HumanAgentAssistantConfig_SuggestionFeatureConfig) String() stringHumanAgentAssistantConfig_SuggestionQueryConfig
type HumanAgentAssistantConfig_SuggestionQueryConfig struct {
// Source of query.
//
// Types that are assignable to QuerySource:
//
// *HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_
// *HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_
// *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_
QuerySource isHumanAgentAssistantConfig_SuggestionQueryConfig_QuerySource `protobuf_oneof:"query_source"`
// Maximum number of results to return. Currently, if unset, defaults to 10.
// And the max number is 20.
MaxResults int32 `protobuf:"varint,4,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"`
// Confidence threshold of query result.
//
// Agent Assist gives each suggestion a score in the range [0.0, 1.0], based
// on the relevance between the suggestion and the current conversation
// context. A score of 0.0 has no relevance, while a score of 1.0 has high
// relevance. Only suggestions with a score greater than or equal to the
// value of this field are included in the results.
//
// For a baseline model (the default), the recommended value is in the range
// [0.05, 0.1].
//
// For a custom model, there is no recommended value. Tune this value by
// starting from a very low value and slowly increasing until you have
// desired results.
//
// If this field is not set, it defaults to 0.0, which means that all
// suggestions are returned.
//
// Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE,
// KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
ConfidenceThreshold float32 `protobuf:"fixed32,5,opt,name=confidence_threshold,json=confidenceThreshold,proto3" json:"confidence_threshold,omitempty"`
// Determines how recent conversation context is filtered when generating
// suggestions. If unspecified, no messages will be dropped.
ContextFilterSettings *HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings `protobuf:"bytes,7,opt,name=context_filter_settings,json=contextFilterSettings,proto3" json:"context_filter_settings,omitempty"`
// Optional. The customized sections chosen to return when requesting a
// summary of a conversation.
Sections *HumanAgentAssistantConfig_SuggestionQueryConfig_Sections `protobuf:"bytes,8,opt,name=sections,proto3" json:"sections,omitempty"`
// Optional. The number of recent messages to include in the context.
// Supported features: KNOWLEDGE_ASSIST.
ContextSize int32 `protobuf:"varint,9,opt,name=context_size,json=contextSize,proto3" json:"context_size,omitempty"`
// contains filtered or unexported fields
}Config for suggestion query.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig) Descriptor
func (*HumanAgentAssistantConfig_SuggestionQueryConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_SuggestionQueryConfig.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig) GetConfidenceThreshold
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig) GetConfidenceThreshold() float32func (*HumanAgentAssistantConfig_SuggestionQueryConfig) GetContextFilterSettings
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig) GetContextFilterSettings() *HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettingsfunc (*HumanAgentAssistantConfig_SuggestionQueryConfig) GetContextSize
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig) GetContextSize() int32func (*HumanAgentAssistantConfig_SuggestionQueryConfig) GetDialogflowQuerySource
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig) GetDialogflowQuerySource() *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySourcefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig) GetDocumentQuerySource
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig) GetDocumentQuerySource() *HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySourcefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig) GetKnowledgeBaseQuerySource
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig) GetKnowledgeBaseQuerySource() *HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySourcefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig) GetMaxResults
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig) GetMaxResults() int32func (*HumanAgentAssistantConfig_SuggestionQueryConfig) GetQuerySource
func (m *HumanAgentAssistantConfig_SuggestionQueryConfig) GetQuerySource() isHumanAgentAssistantConfig_SuggestionQueryConfig_QuerySourcefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig) GetSections
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig) GetSections() *HumanAgentAssistantConfig_SuggestionQueryConfig_Sectionsfunc (*HumanAgentAssistantConfig_SuggestionQueryConfig) ProtoMessage
func (*HumanAgentAssistantConfig_SuggestionQueryConfig) ProtoMessage()func (*HumanAgentAssistantConfig_SuggestionQueryConfig) ProtoReflect
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig) Reset
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig) Reset()func (*HumanAgentAssistantConfig_SuggestionQueryConfig) String
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig) String() stringHumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings
type HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings struct {
// If set to true, the last message from virtual agent (hand off message)
// and the message before it (trigger message of hand off) are dropped.
DropHandoffMessages bool `protobuf:"varint,1,opt,name=drop_handoff_messages,json=dropHandoffMessages,proto3" json:"drop_handoff_messages,omitempty"`
// If set to true, all messages from virtual agent are dropped.
DropVirtualAgentMessages bool `protobuf:"varint,2,opt,name=drop_virtual_agent_messages,json=dropVirtualAgentMessages,proto3" json:"drop_virtual_agent_messages,omitempty"`
// If set to true, all messages from ivr stage are dropped.
DropIvrMessages bool `protobuf:"varint,3,opt,name=drop_ivr_messages,json=dropIvrMessages,proto3" json:"drop_ivr_messages,omitempty"`
// contains filtered or unexported fields
}Settings that determine how to filter recent conversation context when generating suggestions.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) Descriptor
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) GetDropHandoffMessages
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) GetDropHandoffMessages() boolfunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) GetDropIvrMessages
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) GetDropIvrMessages() boolfunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) GetDropVirtualAgentMessages
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) GetDropVirtualAgentMessages() boolfunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) ProtoMessage
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) ProtoMessage()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) ProtoReflect
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) Reset
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) Reset()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) String
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings) String() stringHumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource
type HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource struct {
// Required. The name of a Dialogflow virtual agent used for end user side
// intent detection and suggestion. Format: `projects/Dialogflow source setting.
Supported feature: DIALOGFLOW_ASSIST.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) Descriptor
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) GetAgent
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) GetAgent() stringfunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) GetHumanAgentSideConfig
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) GetHumanAgentSideConfig() *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfigfunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) ProtoMessage
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) ProtoMessage()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) ProtoReflect
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) Reset
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) Reset()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) String
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource) String() stringHumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_
type HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_ struct {
// Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
DialogflowQuerySource *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource `protobuf:"bytes,3,opt,name=dialogflow_query_source,json=dialogflowQuerySource,proto3,oneof"`
}HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig
type HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig struct {
// Optional. The name of a dialogflow virtual agent used for intent
// detection and suggestion triggered by human agent.
// Format: `projects/The configuration used for human agent side Dialogflow assist suggestion.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) Descriptor
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) GetAgent
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) GetAgent() stringfunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) ProtoMessage
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) ProtoMessage()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) ProtoReflect
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) Reset
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) Reset()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) String
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_HumanAgentSideConfig) String() stringHumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource
type HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource struct {
// Required. Knowledge documents to query from. Format:
// `projects/Document source settings.
Supported features: SMART_REPLY, SMART_COMPOSE.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) Descriptor
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) GetDocuments
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) GetDocuments() []stringfunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) ProtoMessage
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) ProtoMessage()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) ProtoReflect
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) Reset
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) Reset()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) String
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource) String() stringHumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_
type HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_ struct {
// Query from knowledge base document. It is used by:
// SMART_REPLY, SMART_COMPOSE.
DocumentQuerySource *HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource `protobuf:"bytes,2,opt,name=document_query_source,json=documentQuerySource,proto3,oneof"`
}HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource
type HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource struct {
// Required. Knowledge bases to query. Format:
// `projects/Knowledge base source settings.
Supported features: ARTICLE_SUGGESTION, FAQ.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) Descriptor
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) GetKnowledgeBases
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) GetKnowledgeBases() []stringfunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) ProtoMessage
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) ProtoMessage()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) ProtoReflect
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) Reset
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) Reset()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) String
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource) String() stringHumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_
type HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_ struct {
// Query from knowledgebase. It is used by:
// ARTICLE_SUGGESTION, FAQ.
KnowledgeBaseQuerySource *HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource `protobuf:"bytes,1,opt,name=knowledge_base_query_source,json=knowledgeBaseQuerySource,proto3,oneof"`
}HumanAgentAssistantConfig_SuggestionQueryConfig_Sections
type HumanAgentAssistantConfig_SuggestionQueryConfig_Sections struct {
// The selected sections chosen to return when requesting a summary of a
// conversation. A duplicate selected section will be treated as a single
// selected section. If section types are not provided, the default will
// be {SITUATION, ACTION, RESULT}.
SectionTypes []HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType `protobuf:"varint,1,rep,packed,name=section_types,json=sectionTypes,proto3,enum=google.cloud.dialogflow.v2.HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType" json:"section_types,omitempty"`
// contains filtered or unexported fields
}Custom sections to return when requesting a summary of a conversation.
This is only supported when baseline_model_version == '2.0'.
Supported features: CONVERSATION_SUMMARIZATION, CONVERSATION_SUMMARIZATION_VOICE.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) Descriptor
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_SuggestionQueryConfig_Sections.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) GetSectionTypes
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) GetSectionTypes() []HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionTypefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) ProtoMessage
func (*HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) ProtoMessage()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) ProtoReflect
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) Reset
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) Reset()func (*HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) String
func (x *HumanAgentAssistantConfig_SuggestionQueryConfig_Sections) String() stringHumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType
type HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType int32Selectable sections to return when requesting a summary of a conversation.
HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SECTION_TYPE_UNSPECIFIED, HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SITUATION, HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_ACTION, HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_RESOLUTION, HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_REASON_FOR_CANCELLATION, HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_CUSTOMER_SATISFACTION, HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_ENTITIES
const (
// Undefined section type, does not return anything.
HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SECTION_TYPE_UNSPECIFIED HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType = 0
// What the customer needs help with or has question about.
// Section name: "situation".
HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SITUATION HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType = 1
// What the agent does to help the customer.
// Section name: "action".
HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_ACTION HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType = 2
// Result of the customer service. A single word describing the result
// of the conversation.
// Section name: "resolution".
HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_RESOLUTION HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType = 3
// Reason for cancellation if the customer requests for a cancellation.
// "N/A" otherwise.
// Section name: "reason_for_cancellation".
HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_REASON_FOR_CANCELLATION HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType = 4
// "Unsatisfied" or "Satisfied" depending on the customer's feelings at
// the end of the conversation.
// Section name: "customer_satisfaction".
HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_CUSTOMER_SATISFACTION HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType = 5
// Key entities extracted from the conversation, such as ticket number,
// order number, dollar amount, etc.
// Section names are prefixed by "entities/".
HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_ENTITIES HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType = 6
)func (HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) Descriptor
func (HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) Descriptor() protoreflect.EnumDescriptorfunc (HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) Enum
func (x HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) Enum() *HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionTypefunc (HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) EnumDescriptor
func (HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) EnumDescriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType.Descriptor instead.
func (HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) Number
func (x HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) Number() protoreflect.EnumNumberfunc (HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) String
func (x HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) String() stringfunc (HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) Type
func (HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_SectionType) Type() protoreflect.EnumTypeHumanAgentAssistantConfig_SuggestionTriggerSettings
type HumanAgentAssistantConfig_SuggestionTriggerSettings struct {
// Do not trigger if last utterance is small talk.
NoSmalltalk bool `protobuf:"varint,1,opt,name=no_smalltalk,json=noSmalltalk,proto3" json:"no_smalltalk,omitempty"`
// Only trigger suggestion if participant role of last utterance is
// END_USER.
OnlyEndUser bool `protobuf:"varint,2,opt,name=only_end_user,json=onlyEndUser,proto3" json:"only_end_user,omitempty"`
// contains filtered or unexported fields
}Settings of suggestion trigger.
func (*HumanAgentAssistantConfig_SuggestionTriggerSettings) Descriptor
func (*HumanAgentAssistantConfig_SuggestionTriggerSettings) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantConfig_SuggestionTriggerSettings.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantConfig_SuggestionTriggerSettings) GetNoSmalltalk
func (x *HumanAgentAssistantConfig_SuggestionTriggerSettings) GetNoSmalltalk() boolfunc (*HumanAgentAssistantConfig_SuggestionTriggerSettings) GetOnlyEndUser
func (x *HumanAgentAssistantConfig_SuggestionTriggerSettings) GetOnlyEndUser() boolfunc (*HumanAgentAssistantConfig_SuggestionTriggerSettings) ProtoMessage
func (*HumanAgentAssistantConfig_SuggestionTriggerSettings) ProtoMessage()func (*HumanAgentAssistantConfig_SuggestionTriggerSettings) ProtoReflect
func (x *HumanAgentAssistantConfig_SuggestionTriggerSettings) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantConfig_SuggestionTriggerSettings) Reset
func (x *HumanAgentAssistantConfig_SuggestionTriggerSettings) Reset()func (*HumanAgentAssistantConfig_SuggestionTriggerSettings) String
func (x *HumanAgentAssistantConfig_SuggestionTriggerSettings) String() stringHumanAgentAssistantEvent
type HumanAgentAssistantEvent struct {
// The conversation this notification refers to.
// Format: `projects/Represents a notification sent to Cloud Pub/Sub subscribers for human agent assistant events in a specific conversation.
func (*HumanAgentAssistantEvent) Descriptor
func (*HumanAgentAssistantEvent) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentAssistantEvent.ProtoReflect.Descriptor instead.
func (*HumanAgentAssistantEvent) GetConversation
func (x *HumanAgentAssistantEvent) GetConversation() stringfunc (*HumanAgentAssistantEvent) GetParticipant
func (x *HumanAgentAssistantEvent) GetParticipant() stringfunc (*HumanAgentAssistantEvent) GetSuggestionResults
func (x *HumanAgentAssistantEvent) GetSuggestionResults() []*SuggestionResultfunc (*HumanAgentAssistantEvent) ProtoMessage
func (*HumanAgentAssistantEvent) ProtoMessage()func (*HumanAgentAssistantEvent) ProtoReflect
func (x *HumanAgentAssistantEvent) ProtoReflect() protoreflect.Messagefunc (*HumanAgentAssistantEvent) Reset
func (x *HumanAgentAssistantEvent) Reset()func (*HumanAgentAssistantEvent) String
func (x *HumanAgentAssistantEvent) String() stringHumanAgentHandoffConfig
type HumanAgentHandoffConfig struct {
// Required. Specifies which agent service to connect for human agent handoff.
//
// Types that are assignable to AgentService:
//
// *HumanAgentHandoffConfig_LivePersonConfig_
// *HumanAgentHandoffConfig_SalesforceLiveAgentConfig_
AgentService isHumanAgentHandoffConfig_AgentService `protobuf_oneof:"agent_service"`
// contains filtered or unexported fields
}Defines the hand off to a live agent, typically on which external agent service provider to connect to a conversation.
Currently, this feature is not general available, please contact Google to get access.
func (*HumanAgentHandoffConfig) Descriptor
func (*HumanAgentHandoffConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentHandoffConfig.ProtoReflect.Descriptor instead.
func (*HumanAgentHandoffConfig) GetAgentService
func (m *HumanAgentHandoffConfig) GetAgentService() isHumanAgentHandoffConfig_AgentServicefunc (*HumanAgentHandoffConfig) GetLivePersonConfig
func (x *HumanAgentHandoffConfig) GetLivePersonConfig() *HumanAgentHandoffConfig_LivePersonConfigfunc (*HumanAgentHandoffConfig) GetSalesforceLiveAgentConfig
func (x *HumanAgentHandoffConfig) GetSalesforceLiveAgentConfig() *HumanAgentHandoffConfig_SalesforceLiveAgentConfigfunc (*HumanAgentHandoffConfig) ProtoMessage
func (*HumanAgentHandoffConfig) ProtoMessage()func (*HumanAgentHandoffConfig) ProtoReflect
func (x *HumanAgentHandoffConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAgentHandoffConfig) Reset
func (x *HumanAgentHandoffConfig) Reset()func (*HumanAgentHandoffConfig) String
func (x *HumanAgentHandoffConfig) String() stringHumanAgentHandoffConfig_LivePersonConfig
type HumanAgentHandoffConfig_LivePersonConfig struct {
// Required. Account number of the LivePerson account to connect. This is
// the account number you input at the login page.
AccountNumber string `protobuf:"bytes,1,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
// contains filtered or unexported fields
}Configuration specific to LivePerson.
func (*HumanAgentHandoffConfig_LivePersonConfig) Descriptor
func (*HumanAgentHandoffConfig_LivePersonConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentHandoffConfig_LivePersonConfig.ProtoReflect.Descriptor instead.
func (*HumanAgentHandoffConfig_LivePersonConfig) GetAccountNumber
func (x *HumanAgentHandoffConfig_LivePersonConfig) GetAccountNumber() stringfunc (*HumanAgentHandoffConfig_LivePersonConfig) ProtoMessage
func (*HumanAgentHandoffConfig_LivePersonConfig) ProtoMessage()func (*HumanAgentHandoffConfig_LivePersonConfig) ProtoReflect
func (x *HumanAgentHandoffConfig_LivePersonConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAgentHandoffConfig_LivePersonConfig) Reset
func (x *HumanAgentHandoffConfig_LivePersonConfig) Reset()func (*HumanAgentHandoffConfig_LivePersonConfig) String
func (x *HumanAgentHandoffConfig_LivePersonConfig) String() stringHumanAgentHandoffConfig_LivePersonConfig_
type HumanAgentHandoffConfig_LivePersonConfig_ struct {
// Uses [LivePerson](https://www.liveperson.com).
LivePersonConfig *HumanAgentHandoffConfig_LivePersonConfig `protobuf:"bytes,1,opt,name=live_person_config,json=livePersonConfig,proto3,oneof"`
}HumanAgentHandoffConfig_SalesforceLiveAgentConfig
type HumanAgentHandoffConfig_SalesforceLiveAgentConfig struct {
// Required. The organization ID of the Salesforce account.
OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
// Required. Live Agent deployment ID.
DeploymentId string `protobuf:"bytes,2,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
// Required. Live Agent chat button ID.
ButtonId string `protobuf:"bytes,3,opt,name=button_id,json=buttonId,proto3" json:"button_id,omitempty"`
// Required. Domain of the Live Agent endpoint for this agent. You can find
// the endpoint URL in the `Live Agent settings` page. For example if URL
// has the form https://d.la4-c2-phx.salesforceliveagent.com/...,
// you should fill in d.la4-c2-phx.salesforceliveagent.com.
EndpointDomain string `protobuf:"bytes,4,opt,name=endpoint_domain,json=endpointDomain,proto3" json:"endpoint_domain,omitempty"`
// contains filtered or unexported fields
}Configuration specific to Salesforce Live Agent.
func (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig) Descriptor
func (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAgentHandoffConfig_SalesforceLiveAgentConfig.ProtoReflect.Descriptor instead.
func (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig) GetButtonId
func (x *HumanAgentHandoffConfig_SalesforceLiveAgentConfig) GetButtonId() stringfunc (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig) GetDeploymentId
func (x *HumanAgentHandoffConfig_SalesforceLiveAgentConfig) GetDeploymentId() stringfunc (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig) GetEndpointDomain
func (x *HumanAgentHandoffConfig_SalesforceLiveAgentConfig) GetEndpointDomain() stringfunc (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig) GetOrganizationId
func (x *HumanAgentHandoffConfig_SalesforceLiveAgentConfig) GetOrganizationId() stringfunc (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig) ProtoMessage
func (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig) ProtoMessage()func (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig) ProtoReflect
func (x *HumanAgentHandoffConfig_SalesforceLiveAgentConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig) Reset
func (x *HumanAgentHandoffConfig_SalesforceLiveAgentConfig) Reset()func (*HumanAgentHandoffConfig_SalesforceLiveAgentConfig) String
func (x *HumanAgentHandoffConfig_SalesforceLiveAgentConfig) String() stringHumanAgentHandoffConfig_SalesforceLiveAgentConfig_
type HumanAgentHandoffConfig_SalesforceLiveAgentConfig_ struct {
// Uses Salesforce Live Agent.
SalesforceLiveAgentConfig *HumanAgentHandoffConfig_SalesforceLiveAgentConfig `protobuf:"bytes,2,opt,name=salesforce_live_agent_config,json=salesforceLiveAgentConfig,proto3,oneof"`
}ImportAgentRequest
type ImportAgentRequest struct {
// Required. The project that the agent to import is associated with.
// Format: `projects/The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
func (*ImportAgentRequest) Descriptor
func (*ImportAgentRequest) Descriptor() ([]byte, []int)Deprecated: Use ImportAgentRequest.ProtoReflect.Descriptor instead.
func (*ImportAgentRequest) GetAgent
func (m *ImportAgentRequest) GetAgent() isImportAgentRequest_Agentfunc (*ImportAgentRequest) GetAgentContent
func (x *ImportAgentRequest) GetAgentContent() []bytefunc (*ImportAgentRequest) GetAgentUri
func (x *ImportAgentRequest) GetAgentUri() stringfunc (*ImportAgentRequest) GetParent
func (x *ImportAgentRequest) GetParent() stringfunc (*ImportAgentRequest) ProtoMessage
func (*ImportAgentRequest) ProtoMessage()func (*ImportAgentRequest) ProtoReflect
func (x *ImportAgentRequest) ProtoReflect() protoreflect.Messagefunc (*ImportAgentRequest) Reset
func (x *ImportAgentRequest) Reset()func (*ImportAgentRequest) String
func (x *ImportAgentRequest) String() stringImportAgentRequest_AgentContent
type ImportAgentRequest_AgentContent struct {
// Zip compressed raw byte content for agent.
AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"`
}ImportAgentRequest_AgentUri
type ImportAgentRequest_AgentUri struct {
// The URI to a Google Cloud Storage file containing the agent to import.
// Note: The URI must start with "gs://".
//
// Dialogflow performs a read operation for the Cloud Storage object
// on the caller's behalf, so your request authentication must
// have read permissions for the object. For more information, see
// [Dialogflow access
// control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"`
}ImportConversationDataOperationMetadata
type ImportConversationDataOperationMetadata struct {
// The resource name of the imported conversation dataset. Format:
// `projects/Metadata for a [ConversationDatasets.ImportConversationData][google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData] operation.
func (*ImportConversationDataOperationMetadata) Descriptor
func (*ImportConversationDataOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use ImportConversationDataOperationMetadata.ProtoReflect.Descriptor instead.
func (*ImportConversationDataOperationMetadata) GetConversationDataset
func (x *ImportConversationDataOperationMetadata) GetConversationDataset() stringfunc (*ImportConversationDataOperationMetadata) GetCreateTime
func (x *ImportConversationDataOperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*ImportConversationDataOperationMetadata) GetPartialFailures
func (x *ImportConversationDataOperationMetadata) GetPartialFailures() []*status.Statusfunc (*ImportConversationDataOperationMetadata) ProtoMessage
func (*ImportConversationDataOperationMetadata) ProtoMessage()func (*ImportConversationDataOperationMetadata) ProtoReflect
func (x *ImportConversationDataOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*ImportConversationDataOperationMetadata) Reset
func (x *ImportConversationDataOperationMetadata) Reset()func (*ImportConversationDataOperationMetadata) String
func (x *ImportConversationDataOperationMetadata) String() stringImportConversationDataOperationResponse
type ImportConversationDataOperationResponse struct {
// The resource name of the imported conversation dataset. Format:
// `projects/Response used for [ConversationDatasets.ImportConversationData][google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData] long running operation.
func (*ImportConversationDataOperationResponse) Descriptor
func (*ImportConversationDataOperationResponse) Descriptor() ([]byte, []int)Deprecated: Use ImportConversationDataOperationResponse.ProtoReflect.Descriptor instead.
func (*ImportConversationDataOperationResponse) GetConversationDataset
func (x *ImportConversationDataOperationResponse) GetConversationDataset() stringfunc (*ImportConversationDataOperationResponse) GetImportCount
func (x *ImportConversationDataOperationResponse) GetImportCount() int32func (*ImportConversationDataOperationResponse) ProtoMessage
func (*ImportConversationDataOperationResponse) ProtoMessage()func (*ImportConversationDataOperationResponse) ProtoReflect
func (x *ImportConversationDataOperationResponse) ProtoReflect() protoreflect.Messagefunc (*ImportConversationDataOperationResponse) Reset
func (x *ImportConversationDataOperationResponse) Reset()func (*ImportConversationDataOperationResponse) String
func (x *ImportConversationDataOperationResponse) String() stringImportConversationDataRequest
type ImportConversationDataRequest struct {
// Required. Dataset resource name. Format:
// `projects/The request message for [ConversationDatasets.ImportConversationData][google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData].
func (*ImportConversationDataRequest) Descriptor
func (*ImportConversationDataRequest) Descriptor() ([]byte, []int)Deprecated: Use ImportConversationDataRequest.ProtoReflect.Descriptor instead.
func (*ImportConversationDataRequest) GetInputConfig
func (x *ImportConversationDataRequest) GetInputConfig() *InputConfigfunc (*ImportConversationDataRequest) GetName
func (x *ImportConversationDataRequest) GetName() stringfunc (*ImportConversationDataRequest) ProtoMessage
func (*ImportConversationDataRequest) ProtoMessage()func (*ImportConversationDataRequest) ProtoReflect
func (x *ImportConversationDataRequest) ProtoReflect() protoreflect.Messagefunc (*ImportConversationDataRequest) Reset
func (x *ImportConversationDataRequest) Reset()func (*ImportConversationDataRequest) String
func (x *ImportConversationDataRequest) String() stringImportDocumentTemplate
type ImportDocumentTemplate struct {
// Required. The MIME type of the document.
MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// Required. The knowledge type of document content.
KnowledgeTypes []Document_KnowledgeType `protobuf:"varint,2,rep,packed,name=knowledge_types,json=knowledgeTypes,proto3,enum=google.cloud.dialogflow.v2.Document_KnowledgeType" json:"knowledge_types,omitempty"`
// Metadata for the document. The metadata supports arbitrary
// key-value pairs. Suggested use cases include storing a document's title,
// an external URL distinct from the document's content_uri, etc.
// The max size of a `key` or a `value` of the metadata is 1024 bytes.
Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}The template used for importing documents.
func (*ImportDocumentTemplate) Descriptor
func (*ImportDocumentTemplate) Descriptor() ([]byte, []int)Deprecated: Use ImportDocumentTemplate.ProtoReflect.Descriptor instead.
func (*ImportDocumentTemplate) GetKnowledgeTypes
func (x *ImportDocumentTemplate) GetKnowledgeTypes() []Document_KnowledgeTypefunc (*ImportDocumentTemplate) GetMetadata
func (x *ImportDocumentTemplate) GetMetadata() map[string]stringfunc (*ImportDocumentTemplate) GetMimeType
func (x *ImportDocumentTemplate) GetMimeType() stringfunc (*ImportDocumentTemplate) ProtoMessage
func (*ImportDocumentTemplate) ProtoMessage()func (*ImportDocumentTemplate) ProtoReflect
func (x *ImportDocumentTemplate) ProtoReflect() protoreflect.Messagefunc (*ImportDocumentTemplate) Reset
func (x *ImportDocumentTemplate) Reset()func (*ImportDocumentTemplate) String
func (x *ImportDocumentTemplate) String() stringImportDocumentsRequest
type ImportDocumentsRequest struct {
// Required. The knowledge base to import documents into.
// Format: `projects/Request message for [Documents.ImportDocuments][google.cloud.dialogflow.v2.Documents.ImportDocuments].
func (*ImportDocumentsRequest) Descriptor
func (*ImportDocumentsRequest) Descriptor() ([]byte, []int)Deprecated: Use ImportDocumentsRequest.ProtoReflect.Descriptor instead.
func (*ImportDocumentsRequest) GetDocumentTemplate
func (x *ImportDocumentsRequest) GetDocumentTemplate() *ImportDocumentTemplatefunc (*ImportDocumentsRequest) GetGcsSource
func (x *ImportDocumentsRequest) GetGcsSource() *GcsSourcesfunc (*ImportDocumentsRequest) GetImportGcsCustomMetadata
func (x *ImportDocumentsRequest) GetImportGcsCustomMetadata() boolfunc (*ImportDocumentsRequest) GetParent
func (x *ImportDocumentsRequest) GetParent() stringfunc (*ImportDocumentsRequest) GetSource
func (m *ImportDocumentsRequest) GetSource() isImportDocumentsRequest_Sourcefunc (*ImportDocumentsRequest) ProtoMessage
func (*ImportDocumentsRequest) ProtoMessage()func (*ImportDocumentsRequest) ProtoReflect
func (x *ImportDocumentsRequest) ProtoReflect() protoreflect.Messagefunc (*ImportDocumentsRequest) Reset
func (x *ImportDocumentsRequest) Reset()func (*ImportDocumentsRequest) String
func (x *ImportDocumentsRequest) String() stringImportDocumentsRequest_GcsSource
type ImportDocumentsRequest_GcsSource struct {
// Optional. The Google Cloud Storage location for the documents.
// The path can include a wildcard.
//
// These URIs may have the forms
// `gs://ImportDocumentsResponse
type ImportDocumentsResponse struct {
// Includes details about skipped documents or any other warnings.
Warnings []*status.Status `protobuf:"bytes,1,rep,name=warnings,proto3" json:"warnings,omitempty"`
// contains filtered or unexported fields
}Response message for [Documents.ImportDocuments][google.cloud.dialogflow.v2.Documents.ImportDocuments].
func (*ImportDocumentsResponse) Descriptor
func (*ImportDocumentsResponse) Descriptor() ([]byte, []int)Deprecated: Use ImportDocumentsResponse.ProtoReflect.Descriptor instead.
func (*ImportDocumentsResponse) GetWarnings
func (x *ImportDocumentsResponse) GetWarnings() []*status.Statusfunc (*ImportDocumentsResponse) ProtoMessage
func (*ImportDocumentsResponse) ProtoMessage()func (*ImportDocumentsResponse) ProtoReflect
func (x *ImportDocumentsResponse) ProtoReflect() protoreflect.Messagefunc (*ImportDocumentsResponse) Reset
func (x *ImportDocumentsResponse) Reset()func (*ImportDocumentsResponse) String
func (x *ImportDocumentsResponse) String() stringInferenceParameter
type InferenceParameter struct {
// Optional. Maximum number of the output tokens for the generator.
MaxOutputTokens *int32 `protobuf:"varint,1,opt,name=max_output_tokens,json=maxOutputTokens,proto3,oneof" json:"max_output_tokens,omitempty"`
// Optional. Controls the randomness of LLM predictions.
// Low temperature = less random. High temperature = more random.
// If unset (or 0), uses a default value of 0.
Temperature *float64 `protobuf:"fixed64,2,opt,name=temperature,proto3,oneof" json:"temperature,omitempty"`
// Optional. Top-k changes how the model selects tokens for output. A top-k of
// 1 means the selected token is the most probable among all tokens in the
// model's vocabulary (also called greedy decoding), while a top-k of 3 means
// that the next token is selected from among the 3 most probable tokens
// (using temperature). For each token selection step, the top K tokens with
// the highest probabilities are sampled. Then tokens are further filtered
// based on topP with the final token selected using temperature sampling.
// Specify a lower value for less random responses and a higher value for more
// random responses. Acceptable value is [1, 40], default to 40.
TopK *int32 `protobuf:"varint,3,opt,name=top_k,json=topK,proto3,oneof" json:"top_k,omitempty"`
// Optional. Top-p changes how the model selects tokens for output. Tokens are
// selected from most K (see topK parameter) probable to least until the sum
// of their probabilities equals the top-p value. For example, if tokens A, B,
// and C have a probability of 0.3, 0.2, and 0.1 and the top-p value is 0.5,
// then the model will select either A or B as the next token (using
// temperature) and doesn't consider C. The default top-p value is 0.95.
// Specify a lower value for less random responses and a higher value for more
// random responses. Acceptable value is [0.0, 1.0], default to 0.95.
TopP *float64 `protobuf:"fixed64,4,opt,name=top_p,json=topP,proto3,oneof" json:"top_p,omitempty"`
// contains filtered or unexported fields
}The parameters of inference.
func (*InferenceParameter) Descriptor
func (*InferenceParameter) Descriptor() ([]byte, []int)Deprecated: Use InferenceParameter.ProtoReflect.Descriptor instead.
func (*InferenceParameter) GetMaxOutputTokens
func (x *InferenceParameter) GetMaxOutputTokens() int32func (*InferenceParameter) GetTemperature
func (x *InferenceParameter) GetTemperature() float64func (*InferenceParameter) GetTopK
func (x *InferenceParameter) GetTopK() int32func (*InferenceParameter) GetTopP
func (x *InferenceParameter) GetTopP() float64func (*InferenceParameter) ProtoMessage
func (*InferenceParameter) ProtoMessage()func (*InferenceParameter) ProtoReflect
func (x *InferenceParameter) ProtoReflect() protoreflect.Messagefunc (*InferenceParameter) Reset
func (x *InferenceParameter) Reset()func (*InferenceParameter) String
func (x *InferenceParameter) String() stringIngestContextReferencesRequest
type IngestContextReferencesRequest struct {
// Required. Resource identifier of the conversation to ingest context
// information for. Format: `projects/The request message for [ConversationsService.IngestContextReferences][].
func (*IngestContextReferencesRequest) Descriptor
func (*IngestContextReferencesRequest) Descriptor() ([]byte, []int)Deprecated: Use IngestContextReferencesRequest.ProtoReflect.Descriptor instead.
func (*IngestContextReferencesRequest) GetContextReferences
func (x *IngestContextReferencesRequest) GetContextReferences() map[string]*Conversation_ContextReferencefunc (*IngestContextReferencesRequest) GetConversation
func (x *IngestContextReferencesRequest) GetConversation() stringfunc (*IngestContextReferencesRequest) ProtoMessage
func (*IngestContextReferencesRequest) ProtoMessage()func (*IngestContextReferencesRequest) ProtoReflect
func (x *IngestContextReferencesRequest) ProtoReflect() protoreflect.Messagefunc (*IngestContextReferencesRequest) Reset
func (x *IngestContextReferencesRequest) Reset()func (*IngestContextReferencesRequest) String
func (x *IngestContextReferencesRequest) String() stringIngestContextReferencesResponse
type IngestContextReferencesResponse struct {
// All context references ingested.
IngestedContextReferences map[string]*Conversation_ContextReference `protobuf:"bytes,1,rep,name=ingested_context_references,json=ingestedContextReferences,proto3" json:"ingested_context_references,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}The response message for [ConversationsService.IngestContextReferences][].
func (*IngestContextReferencesResponse) Descriptor
func (*IngestContextReferencesResponse) Descriptor() ([]byte, []int)Deprecated: Use IngestContextReferencesResponse.ProtoReflect.Descriptor instead.
func (*IngestContextReferencesResponse) GetIngestedContextReferences
func (x *IngestContextReferencesResponse) GetIngestedContextReferences() map[string]*Conversation_ContextReferencefunc (*IngestContextReferencesResponse) ProtoMessage
func (*IngestContextReferencesResponse) ProtoMessage()func (*IngestContextReferencesResponse) ProtoReflect
func (x *IngestContextReferencesResponse) ProtoReflect() protoreflect.Messagefunc (*IngestContextReferencesResponse) Reset
func (x *IngestContextReferencesResponse) Reset()func (*IngestContextReferencesResponse) String
func (x *IngestContextReferencesResponse) String() stringInitializeEncryptionSpecMetadata
type InitializeEncryptionSpecMetadata struct {
// Output only. The original request for initialization.
Request *InitializeEncryptionSpecRequest `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"`
// contains filtered or unexported fields
}Metadata for initializing a location-level encryption specification.
func (*InitializeEncryptionSpecMetadata) Descriptor
func (*InitializeEncryptionSpecMetadata) Descriptor() ([]byte, []int)Deprecated: Use InitializeEncryptionSpecMetadata.ProtoReflect.Descriptor instead.
func (*InitializeEncryptionSpecMetadata) GetRequest
func (x *InitializeEncryptionSpecMetadata) GetRequest() *InitializeEncryptionSpecRequestfunc (*InitializeEncryptionSpecMetadata) ProtoMessage
func (*InitializeEncryptionSpecMetadata) ProtoMessage()func (*InitializeEncryptionSpecMetadata) ProtoReflect
func (x *InitializeEncryptionSpecMetadata) ProtoReflect() protoreflect.Messagefunc (*InitializeEncryptionSpecMetadata) Reset
func (x *InitializeEncryptionSpecMetadata) Reset()func (*InitializeEncryptionSpecMetadata) String
func (x *InitializeEncryptionSpecMetadata) String() stringInitializeEncryptionSpecRequest
type InitializeEncryptionSpecRequest struct {
// Required. The encryption spec used for CMEK encryption. It is required that
// the kms key is in the same region as the endpoint. The same key will be
// used for all provisioned resources, if encryption is available. If the
// kms_key_name is left empty, no encryption will be enforced.
EncryptionSpec *EncryptionSpec `protobuf:"bytes,1,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"`
// contains filtered or unexported fields
}The request to initialize a location-level encryption specification.
func (*InitializeEncryptionSpecRequest) Descriptor
func (*InitializeEncryptionSpecRequest) Descriptor() ([]byte, []int)Deprecated: Use InitializeEncryptionSpecRequest.ProtoReflect.Descriptor instead.
func (*InitializeEncryptionSpecRequest) GetEncryptionSpec
func (x *InitializeEncryptionSpecRequest) GetEncryptionSpec() *EncryptionSpecfunc (*InitializeEncryptionSpecRequest) ProtoMessage
func (*InitializeEncryptionSpecRequest) ProtoMessage()func (*InitializeEncryptionSpecRequest) ProtoReflect
func (x *InitializeEncryptionSpecRequest) ProtoReflect() protoreflect.Messagefunc (*InitializeEncryptionSpecRequest) Reset
func (x *InitializeEncryptionSpecRequest) Reset()func (*InitializeEncryptionSpecRequest) String
func (x *InitializeEncryptionSpecRequest) String() stringInitializeEncryptionSpecResponse
type InitializeEncryptionSpecResponse struct {
// contains filtered or unexported fields
}The response to initialize a location-level encryption specification.
func (*InitializeEncryptionSpecResponse) Descriptor
func (*InitializeEncryptionSpecResponse) Descriptor() ([]byte, []int)Deprecated: Use InitializeEncryptionSpecResponse.ProtoReflect.Descriptor instead.
func (*InitializeEncryptionSpecResponse) ProtoMessage
func (*InitializeEncryptionSpecResponse) ProtoMessage()func (*InitializeEncryptionSpecResponse) ProtoReflect
func (x *InitializeEncryptionSpecResponse) ProtoReflect() protoreflect.Messagefunc (*InitializeEncryptionSpecResponse) Reset
func (x *InitializeEncryptionSpecResponse) Reset()func (*InitializeEncryptionSpecResponse) String
func (x *InitializeEncryptionSpecResponse) String() stringInputAudioConfig
type InputAudioConfig struct {
// Required. Audio encoding of the audio content to process.
AudioEncoding AudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,proto3,enum=google.cloud.dialogflow.v2.AudioEncoding" json:"audio_encoding,omitempty"`
// Required. Sample rate (in Hertz) of the audio content sent in the query.
// Refer to [Cloud Speech API
// documentation](https://cloud.google.com/speech-to-text/docs/basics) for
// more details.
SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
// Required. The language of the supplied audio. Dialogflow does not do
// translations. See [Language
// Support](https://cloud.google.com/dialogflow/docs/reference/language)
// for a list of the currently supported language codes. Note that queries in
// the same session do not necessarily need to specify the same language.
LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// If `true`, Dialogflow returns
// [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
// [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult]
// with information about the recognized speech words, e.g. start and end time
// offsets. If false or unspecified, Speech doesn't return any word-level
// information.
EnableWordInfo bool `protobuf:"varint,13,opt,name=enable_word_info,json=enableWordInfo,proto3" json:"enable_word_info,omitempty"`
// A list of strings containing words and phrases that the speech
// recognizer should recognize with higher likelihood.
//
// See [the Cloud Speech
// documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
// for more details.
//
// This field is deprecated. Please use [`speech_contexts`]() instead. If you
// specify both [`phrase_hints`]() and [`speech_contexts`](), Dialogflow will
// treat the [`phrase_hints`]() as a single additional [`SpeechContext`]().
//
// Deprecated: Marked as deprecated in google/cloud/dialogflow/v2/audio_config.proto.
PhraseHints []string `protobuf:"bytes,4,rep,name=phrase_hints,json=phraseHints,proto3" json:"phrase_hints,omitempty"`
// Context information to assist speech recognition.
//
// See [the Cloud Speech
// documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
// for more details.
SpeechContexts []*SpeechContext `protobuf:"bytes,11,rep,name=speech_contexts,json=speechContexts,proto3" json:"speech_contexts,omitempty"`
// Optional. Which Speech model to select for the given request.
// For more information, see
// [Speech models](https://cloud.google.com/dialogflow/es/docs/speech-models).
Model string `protobuf:"bytes,7,opt,name=model,proto3" json:"model,omitempty"`
// Which variant of the [Speech
// model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
ModelVariant SpeechModelVariant `protobuf:"varint,10,opt,name=model_variant,json=modelVariant,proto3,enum=google.cloud.dialogflow.v2.SpeechModelVariant" json:"model_variant,omitempty"`
// If `false` (default), recognition does not cease until the
// client closes the stream.
// If `true`, the recognizer will detect a single spoken utterance in input
// audio. Recognition ceases when it detects the audio's voice has
// stopped or paused. In this case, once a detected intent is received, the
// client should close the stream and start a new request with a new stream as
// needed.
// Note: This setting is relevant only for streaming methods.
// Note: When specified, InputAudioConfig.single_utterance takes precedence
// over StreamingDetectIntentRequest.single_utterance.
SingleUtterance bool `protobuf:"varint,8,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"`
// Only used in
// [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
// and
// [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent].
// If `false` and recognition doesn't return any result, trigger
// `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
DisableNoSpeechRecognizedEvent bool `protobuf:"varint,14,opt,name=disable_no_speech_recognized_event,json=disableNoSpeechRecognizedEvent,proto3" json:"disable_no_speech_recognized_event,omitempty"`
// Enable automatic punctuation option at the speech backend.
EnableAutomaticPunctuation bool `protobuf:"varint,17,opt,name=enable_automatic_punctuation,json=enableAutomaticPunctuation,proto3" json:"enable_automatic_punctuation,omitempty"`
// A collection of phrase set resources to use for speech adaptation.
PhraseSets []string `protobuf:"bytes,20,rep,name=phrase_sets,json=phraseSets,proto3" json:"phrase_sets,omitempty"`
// If `true`, the request will opt out for STT conformer model migration.
// This field will be deprecated once force migration takes place in June
// 2024. Please refer to [Dialogflow ES Speech model
// migration](https://cloud.google.com/dialogflow/es/docs/speech-model-migration).
OptOutConformerModelMigration bool `protobuf:"varint,26,opt,name=opt_out_conformer_model_migration,json=optOutConformerModelMigration,proto3" json:"opt_out_conformer_model_migration,omitempty"`
// contains filtered or unexported fields
}Instructs the speech recognizer how to process the audio content.
func (*InputAudioConfig) Descriptor
func (*InputAudioConfig) Descriptor() ([]byte, []int)Deprecated: Use InputAudioConfig.ProtoReflect.Descriptor instead.
func (*InputAudioConfig) GetAudioEncoding
func (x *InputAudioConfig) GetAudioEncoding() AudioEncodingfunc (*InputAudioConfig) GetDisableNoSpeechRecognizedEvent
func (x *InputAudioConfig) GetDisableNoSpeechRecognizedEvent() boolfunc (*InputAudioConfig) GetEnableAutomaticPunctuation
func (x *InputAudioConfig) GetEnableAutomaticPunctuation() boolfunc (*InputAudioConfig) GetEnableWordInfo
func (x *InputAudioConfig) GetEnableWordInfo() boolfunc (*InputAudioConfig) GetLanguageCode
func (x *InputAudioConfig) GetLanguageCode() stringfunc (*InputAudioConfig) GetModel
func (x *InputAudioConfig) GetModel() stringfunc (*InputAudioConfig) GetModelVariant
func (x *InputAudioConfig) GetModelVariant() SpeechModelVariantfunc (*InputAudioConfig) GetOptOutConformerModelMigration
func (x *InputAudioConfig) GetOptOutConformerModelMigration() boolfunc (*InputAudioConfig) GetPhraseHints
func (x *InputAudioConfig) GetPhraseHints() []stringDeprecated: Marked as deprecated in google/cloud/dialogflow/v2/audio_config.proto.
func (*InputAudioConfig) GetPhraseSets
func (x *InputAudioConfig) GetPhraseSets() []stringfunc (*InputAudioConfig) GetSampleRateHertz
func (x *InputAudioConfig) GetSampleRateHertz() int32func (*InputAudioConfig) GetSingleUtterance
func (x *InputAudioConfig) GetSingleUtterance() boolfunc (*InputAudioConfig) GetSpeechContexts
func (x *InputAudioConfig) GetSpeechContexts() []*SpeechContextfunc (*InputAudioConfig) ProtoMessage
func (*InputAudioConfig) ProtoMessage()func (*InputAudioConfig) ProtoReflect
func (x *InputAudioConfig) ProtoReflect() protoreflect.Messagefunc (*InputAudioConfig) Reset
func (x *InputAudioConfig) Reset()func (*InputAudioConfig) String
func (x *InputAudioConfig) String() stringInputConfig
type InputConfig struct {
// Required. Where the data is from.
//
// Types that are assignable to Source:
//
// *InputConfig_GcsSource
Source isInputConfig_Source `protobuf_oneof:"source"`
// contains filtered or unexported fields
}Represents the configuration of importing a set of conversation files in Google Cloud Storage.
func (*InputConfig) Descriptor
func (*InputConfig) Descriptor() ([]byte, []int)Deprecated: Use InputConfig.ProtoReflect.Descriptor instead.
func (*InputConfig) GetGcsSource
func (x *InputConfig) GetGcsSource() *GcsSourcesfunc (*InputConfig) GetSource
func (m *InputConfig) GetSource() isInputConfig_Sourcefunc (*InputConfig) ProtoMessage
func (*InputConfig) ProtoMessage()func (*InputConfig) ProtoReflect
func (x *InputConfig) ProtoReflect() protoreflect.Messagefunc (*InputConfig) Reset
func (x *InputConfig) Reset()func (*InputConfig) String
func (x *InputConfig) String() stringInputConfig_GcsSource
type InputConfig_GcsSource struct {
// The Cloud Storage URI has the form gs://InputDataset
type InputDataset struct {
// Required. ConversationDataset resource name. Format:
// `projects/InputDataset used to create model or do evaluation. NextID:5
func (*InputDataset) Descriptor
func (*InputDataset) Descriptor() ([]byte, []int)Deprecated: Use InputDataset.ProtoReflect.Descriptor instead.
func (*InputDataset) GetDataset
func (x *InputDataset) GetDataset() stringfunc (*InputDataset) ProtoMessage
func (*InputDataset) ProtoMessage()func (*InputDataset) ProtoReflect
func (x *InputDataset) ProtoReflect() protoreflect.Messagefunc (*InputDataset) Reset
func (x *InputDataset) Reset()func (*InputDataset) String
func (x *InputDataset) String() stringInputTextConfig
type InputTextConfig struct {
// Required. The language of this conversational query. See [Language
// Support](https://cloud.google.com/dialogflow/docs/reference/language)
// for a list of the currently supported language codes.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// contains filtered or unexported fields
}Defines the language used in the input text.
func (*InputTextConfig) Descriptor
func (*InputTextConfig) Descriptor() ([]byte, []int)Deprecated: Use InputTextConfig.ProtoReflect.Descriptor instead.
func (*InputTextConfig) GetLanguageCode
func (x *InputTextConfig) GetLanguageCode() stringfunc (*InputTextConfig) ProtoMessage
func (*InputTextConfig) ProtoMessage()func (*InputTextConfig) ProtoReflect
func (x *InputTextConfig) ProtoReflect() protoreflect.Messagefunc (*InputTextConfig) Reset
func (x *InputTextConfig) Reset()func (*InputTextConfig) String
func (x *InputTextConfig) String() stringIntent
type Intent struct {
// Optional. The unique identifier of this intent.
// Required for
// [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and
// [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
// methods.
// Format: `projects/An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification.
For more information, see the intent guide.
func (*Intent) Descriptor
Deprecated: Use Intent.ProtoReflect.Descriptor instead.
func (*Intent) GetAction
func (*Intent) GetDefaultResponsePlatforms
func (x *Intent) GetDefaultResponsePlatforms() []Intent_Message_Platformfunc (*Intent) GetDisplayName
func (*Intent) GetEndInteraction
func (*Intent) GetEvents
func (*Intent) GetFollowupIntentInfo
func (x *Intent) GetFollowupIntentInfo() []*Intent_FollowupIntentInfofunc (*Intent) GetInputContextNames
func (*Intent) GetIsFallback
func (*Intent) GetLiveAgentHandoff
func (*Intent) GetMessages
func (x *Intent) GetMessages() []*Intent_Messagefunc (*Intent) GetMlDisabled
func (*Intent) GetName
func (*Intent) GetOutputContexts
func (*Intent) GetParameters
func (x *Intent) GetParameters() []*Intent_Parameterfunc (*Intent) GetParentFollowupIntentName
func (*Intent) GetPriority
func (*Intent) GetResetContexts
func (*Intent) GetRootFollowupIntentName
func (*Intent) GetTrainingPhrases
func (x *Intent) GetTrainingPhrases() []*Intent_TrainingPhrasefunc (*Intent) GetWebhookState
func (x *Intent) GetWebhookState() Intent_WebhookStatefunc (*Intent) ProtoMessage
func (*Intent) ProtoMessage()func (*Intent) ProtoReflect
func (x *Intent) ProtoReflect() protoreflect.Messagefunc (*Intent) Reset
func (x *Intent) Reset()func (*Intent) String
IntentBatch
type IntentBatch struct {
// A collection of intents.
Intents []*Intent `protobuf:"bytes,1,rep,name=intents,proto3" json:"intents,omitempty"`
// contains filtered or unexported fields
}This message is a wrapper around a collection of intents.
func (*IntentBatch) Descriptor
func (*IntentBatch) Descriptor() ([]byte, []int)Deprecated: Use IntentBatch.ProtoReflect.Descriptor instead.
func (*IntentBatch) GetIntents
func (x *IntentBatch) GetIntents() []*Intentfunc (*IntentBatch) ProtoMessage
func (*IntentBatch) ProtoMessage()func (*IntentBatch) ProtoReflect
func (x *IntentBatch) ProtoReflect() protoreflect.Messagefunc (*IntentBatch) Reset
func (x *IntentBatch) Reset()func (*IntentBatch) String
func (x *IntentBatch) String() stringIntentSuggestion
type IntentSuggestion struct {
// The display name of the intent.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The name of the intent.
//
// Types that are assignable to Intent:
//
// *IntentSuggestion_IntentV2
Intent isIntentSuggestion_Intent `protobuf_oneof:"intent"`
// Human readable description for better understanding an intent like its
// scope, content, result etc. Maximum character limit: 140 characters.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}Represents an intent suggestion.
func (*IntentSuggestion) Descriptor
func (*IntentSuggestion) Descriptor() ([]byte, []int)Deprecated: Use IntentSuggestion.ProtoReflect.Descriptor instead.
func (*IntentSuggestion) GetDescription
func (x *IntentSuggestion) GetDescription() stringfunc (*IntentSuggestion) GetDisplayName
func (x *IntentSuggestion) GetDisplayName() stringfunc (*IntentSuggestion) GetIntent
func (m *IntentSuggestion) GetIntent() isIntentSuggestion_Intentfunc (*IntentSuggestion) GetIntentV2
func (x *IntentSuggestion) GetIntentV2() stringfunc (*IntentSuggestion) ProtoMessage
func (*IntentSuggestion) ProtoMessage()func (*IntentSuggestion) ProtoReflect
func (x *IntentSuggestion) ProtoReflect() protoreflect.Messagefunc (*IntentSuggestion) Reset
func (x *IntentSuggestion) Reset()func (*IntentSuggestion) String
func (x *IntentSuggestion) String() stringIntentSuggestion_IntentV2
type IntentSuggestion_IntentV2 struct {
// The unique identifier of this
// [intent][google.cloud.dialogflow.v2.Intent]. Format: `projects/IntentView
type IntentView int32Represents the options for views of an intent. An intent can be a sizable object. Therefore, we provide a resource view that does not return training phrases in the response by default.
IntentView_INTENT_VIEW_UNSPECIFIED, IntentView_INTENT_VIEW_FULL
const (
// Training phrases field is not populated in the response.
IntentView_INTENT_VIEW_UNSPECIFIED IntentView = 0
// All fields are populated.
IntentView_INTENT_VIEW_FULL IntentView = 1
)func (IntentView) Descriptor
func (IntentView) Descriptor() protoreflect.EnumDescriptorfunc (IntentView) Enum
func (x IntentView) Enum() *IntentViewfunc (IntentView) EnumDescriptor
func (IntentView) EnumDescriptor() ([]byte, []int)Deprecated: Use IntentView.Descriptor instead.
func (IntentView) Number
func (x IntentView) Number() protoreflect.EnumNumberfunc (IntentView) String
func (x IntentView) String() stringfunc (IntentView) Type
func (IntentView) Type() protoreflect.EnumTypeIntent_FollowupIntentInfo
type Intent_FollowupIntentInfo struct {
// The unique identifier of the followup intent.
// Format: `projects/Represents a single followup intent in the chain.
func (*Intent_FollowupIntentInfo) Descriptor
func (*Intent_FollowupIntentInfo) Descriptor() ([]byte, []int)Deprecated: Use Intent_FollowupIntentInfo.ProtoReflect.Descriptor instead.
func (*Intent_FollowupIntentInfo) GetFollowupIntentName
func (x *Intent_FollowupIntentInfo) GetFollowupIntentName() stringfunc (*Intent_FollowupIntentInfo) GetParentFollowupIntentName
func (x *Intent_FollowupIntentInfo) GetParentFollowupIntentName() stringfunc (*Intent_FollowupIntentInfo) ProtoMessage
func (*Intent_FollowupIntentInfo) ProtoMessage()func (*Intent_FollowupIntentInfo) ProtoReflect
func (x *Intent_FollowupIntentInfo) ProtoReflect() protoreflect.Messagefunc (*Intent_FollowupIntentInfo) Reset
func (x *Intent_FollowupIntentInfo) Reset()func (*Intent_FollowupIntentInfo) String
func (x *Intent_FollowupIntentInfo) String() stringIntent_Message
type Intent_Message struct {
// Required. The rich response message.
//
// Types that are assignable to Message:
//
// *Intent_Message_Text_
// *Intent_Message_Image_
// *Intent_Message_QuickReplies_
// *Intent_Message_Card_
// *Intent_Message_Payload
// *Intent_Message_SimpleResponses_
// *Intent_Message_BasicCard_
// *Intent_Message_Suggestions_
// *Intent_Message_LinkOutSuggestion_
// *Intent_Message_ListSelect_
// *Intent_Message_CarouselSelect_
// *Intent_Message_BrowseCarouselCard_
// *Intent_Message_TableCard_
// *Intent_Message_MediaContent_
Message isIntent_Message_Message `protobuf_oneof:"message"`
// Optional. The platform that this message is intended for.
Platform Intent_Message_Platform `protobuf:"varint,6,opt,name=platform,proto3,enum=google.cloud.dialogflow.v2.Intent_Message_Platform" json:"platform,omitempty"`
// contains filtered or unexported fields
}A rich response message.
Corresponds to the intent Response field in the Dialogflow console.
For more information, see
Rich response
messages.
func (*Intent_Message) Descriptor
func (*Intent_Message) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message.ProtoReflect.Descriptor instead.
func (*Intent_Message) GetBasicCard
func (x *Intent_Message) GetBasicCard() *Intent_Message_BasicCardfunc (*Intent_Message) GetBrowseCarouselCard
func (x *Intent_Message) GetBrowseCarouselCard() *Intent_Message_BrowseCarouselCardfunc (*Intent_Message) GetCard
func (x *Intent_Message) GetCard() *Intent_Message_Cardfunc (*Intent_Message) GetCarouselSelect
func (x *Intent_Message) GetCarouselSelect() *Intent_Message_CarouselSelectfunc (*Intent_Message) GetImage
func (x *Intent_Message) GetImage() *Intent_Message_Imagefunc (*Intent_Message) GetLinkOutSuggestion
func (x *Intent_Message) GetLinkOutSuggestion() *Intent_Message_LinkOutSuggestionfunc (*Intent_Message) GetListSelect
func (x *Intent_Message) GetListSelect() *Intent_Message_ListSelectfunc (*Intent_Message) GetMediaContent
func (x *Intent_Message) GetMediaContent() *Intent_Message_MediaContentfunc (*Intent_Message) GetMessage
func (m *Intent_Message) GetMessage() isIntent_Message_Messagefunc (*Intent_Message) GetPayload
func (x *Intent_Message) GetPayload() *structpb.Structfunc (*Intent_Message) GetPlatform
func (x *Intent_Message) GetPlatform() Intent_Message_Platformfunc (*Intent_Message) GetQuickReplies
func (x *Intent_Message) GetQuickReplies() *Intent_Message_QuickRepliesfunc (*Intent_Message) GetSimpleResponses
func (x *Intent_Message) GetSimpleResponses() *Intent_Message_SimpleResponsesfunc (*Intent_Message) GetSuggestions
func (x *Intent_Message) GetSuggestions() *Intent_Message_Suggestionsfunc (*Intent_Message) GetTableCard
func (x *Intent_Message) GetTableCard() *Intent_Message_TableCardfunc (*Intent_Message) GetText
func (x *Intent_Message) GetText() *Intent_Message_Textfunc (*Intent_Message) ProtoMessage
func (*Intent_Message) ProtoMessage()func (*Intent_Message) ProtoReflect
func (x *Intent_Message) ProtoReflect() protoreflect.Messagefunc (*Intent_Message) Reset
func (x *Intent_Message) Reset()func (*Intent_Message) String
func (x *Intent_Message) String() stringIntent_Message_BasicCard
type Intent_Message_BasicCard struct {
// Optional. The title of the card.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// Optional. The subtitle of the card.
Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
// Required, unless image is present. The body text of the card.
FormattedText string `protobuf:"bytes,3,opt,name=formatted_text,json=formattedText,proto3" json:"formatted_text,omitempty"`
// Optional. The image for the card.
Image *Intent_Message_Image `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
// Optional. The collection of card buttons.
Buttons []*Intent_Message_BasicCard_Button `protobuf:"bytes,5,rep,name=buttons,proto3" json:"buttons,omitempty"`
// contains filtered or unexported fields
}The basic card message. Useful for displaying information.
func (*Intent_Message_BasicCard) Descriptor
func (*Intent_Message_BasicCard) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_BasicCard.ProtoReflect.Descriptor instead.
func (*Intent_Message_BasicCard) GetButtons
func (x *Intent_Message_BasicCard) GetButtons() []*Intent_Message_BasicCard_Buttonfunc (*Intent_Message_BasicCard) GetFormattedText
func (x *Intent_Message_BasicCard) GetFormattedText() stringfunc (*Intent_Message_BasicCard) GetImage
func (x *Intent_Message_BasicCard) GetImage() *Intent_Message_Imagefunc (*Intent_Message_BasicCard) GetSubtitle
func (x *Intent_Message_BasicCard) GetSubtitle() stringfunc (*Intent_Message_BasicCard) GetTitle
func (x *Intent_Message_BasicCard) GetTitle() stringfunc (*Intent_Message_BasicCard) ProtoMessage
func (*Intent_Message_BasicCard) ProtoMessage()func (*Intent_Message_BasicCard) ProtoReflect
func (x *Intent_Message_BasicCard) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_BasicCard) Reset
func (x *Intent_Message_BasicCard) Reset()func (*Intent_Message_BasicCard) String
func (x *Intent_Message_BasicCard) String() stringIntent_Message_BasicCard_
type Intent_Message_BasicCard_ struct {
// The basic card response for Actions on Google.
BasicCard *Intent_Message_BasicCard `protobuf:"bytes,8,opt,name=basic_card,json=basicCard,proto3,oneof"`
}Intent_Message_BasicCard_Button
type Intent_Message_BasicCard_Button struct {
// Required. The title of the button.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// Required. Action to take when a user taps on the button.
OpenUriAction *Intent_Message_BasicCard_Button_OpenUriAction `protobuf:"bytes,2,opt,name=open_uri_action,json=openUriAction,proto3" json:"open_uri_action,omitempty"`
// contains filtered or unexported fields
}The button object that appears at the bottom of a card.
func (*Intent_Message_BasicCard_Button) Descriptor
func (*Intent_Message_BasicCard_Button) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_BasicCard_Button.ProtoReflect.Descriptor instead.
func (*Intent_Message_BasicCard_Button) GetOpenUriAction
func (x *Intent_Message_BasicCard_Button) GetOpenUriAction() *Intent_Message_BasicCard_Button_OpenUriActionfunc (*Intent_Message_BasicCard_Button) GetTitle
func (x *Intent_Message_BasicCard_Button) GetTitle() stringfunc (*Intent_Message_BasicCard_Button) ProtoMessage
func (*Intent_Message_BasicCard_Button) ProtoMessage()func (*Intent_Message_BasicCard_Button) ProtoReflect
func (x *Intent_Message_BasicCard_Button) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_BasicCard_Button) Reset
func (x *Intent_Message_BasicCard_Button) Reset()func (*Intent_Message_BasicCard_Button) String
func (x *Intent_Message_BasicCard_Button) String() stringIntent_Message_BasicCard_Button_OpenUriAction
type Intent_Message_BasicCard_Button_OpenUriAction struct {
// Required. The HTTP or HTTPS scheme URI.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}Opens the given URI.
func (*Intent_Message_BasicCard_Button_OpenUriAction) Descriptor
func (*Intent_Message_BasicCard_Button_OpenUriAction) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_BasicCard_Button_OpenUriAction.ProtoReflect.Descriptor instead.
func (*Intent_Message_BasicCard_Button_OpenUriAction) GetUri
func (x *Intent_Message_BasicCard_Button_OpenUriAction) GetUri() stringfunc (*Intent_Message_BasicCard_Button_OpenUriAction) ProtoMessage
func (*Intent_Message_BasicCard_Button_OpenUriAction) ProtoMessage()func (*Intent_Message_BasicCard_Button_OpenUriAction) ProtoReflect
func (x *Intent_Message_BasicCard_Button_OpenUriAction) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_BasicCard_Button_OpenUriAction) Reset
func (x *Intent_Message_BasicCard_Button_OpenUriAction) Reset()func (*Intent_Message_BasicCard_Button_OpenUriAction) String
func (x *Intent_Message_BasicCard_Button_OpenUriAction) String() stringIntent_Message_BrowseCarouselCard
type Intent_Message_BrowseCarouselCard struct {
// Required. List of items in the Browse Carousel Card. Minimum of two
// items, maximum of ten.
Items []*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// Optional. Settings for displaying the image. Applies to every image in
// [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items].
ImageDisplayOptions Intent_Message_BrowseCarouselCard_ImageDisplayOptions `protobuf:"varint,2,opt,name=image_display_options,json=imageDisplayOptions,proto3,enum=google.cloud.dialogflow.v2.Intent_Message_BrowseCarouselCard_ImageDisplayOptions" json:"image_display_options,omitempty"`
// contains filtered or unexported fields
}Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel
func (*Intent_Message_BrowseCarouselCard) Descriptor
func (*Intent_Message_BrowseCarouselCard) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_BrowseCarouselCard.ProtoReflect.Descriptor instead.
func (*Intent_Message_BrowseCarouselCard) GetImageDisplayOptions
func (x *Intent_Message_BrowseCarouselCard) GetImageDisplayOptions() Intent_Message_BrowseCarouselCard_ImageDisplayOptionsfunc (*Intent_Message_BrowseCarouselCard) GetItems
func (x *Intent_Message_BrowseCarouselCard) GetItems() []*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItemfunc (*Intent_Message_BrowseCarouselCard) ProtoMessage
func (*Intent_Message_BrowseCarouselCard) ProtoMessage()func (*Intent_Message_BrowseCarouselCard) ProtoReflect
func (x *Intent_Message_BrowseCarouselCard) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_BrowseCarouselCard) Reset
func (x *Intent_Message_BrowseCarouselCard) Reset()func (*Intent_Message_BrowseCarouselCard) String
func (x *Intent_Message_BrowseCarouselCard) String() stringIntent_Message_BrowseCarouselCard_
type Intent_Message_BrowseCarouselCard_ struct {
// Browse carousel card for Actions on Google.
BrowseCarouselCard *Intent_Message_BrowseCarouselCard `protobuf:"bytes,22,opt,name=browse_carousel_card,json=browseCarouselCard,proto3,oneof"`
}Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem
type Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem struct {
// Required. Action to present to the user.
OpenUriAction *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction `protobuf:"bytes,1,opt,name=open_uri_action,json=openUriAction,proto3" json:"open_uri_action,omitempty"`
// Required. Title of the carousel item. Maximum of two lines of text.
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// Optional. Description of the carousel item. Maximum of four lines of
// text.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. Hero image for the carousel item.
Image *Intent_Message_Image `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
// Optional. Text that appears at the bottom of the Browse Carousel
// Card. Maximum of one line of text.
Footer string `protobuf:"bytes,5,opt,name=footer,proto3" json:"footer,omitempty"`
// contains filtered or unexported fields
}Browsing carousel tile
func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) Descriptor
func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem.ProtoReflect.Descriptor instead.
func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetDescription
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetDescription() stringfunc (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetFooter
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetFooter() stringfunc (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetImage
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetImage() *Intent_Message_Imagefunc (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetOpenUriAction
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetOpenUriAction() *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlActionfunc (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetTitle
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetTitle() stringfunc (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) ProtoMessage
func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) ProtoMessage()func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) ProtoReflect
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) Reset
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) Reset()func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) String
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) String() stringIntent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction
type Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction struct {
// Required. URL
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// Optional. Specifies the type of viewer that is used when opening
// the URL. Defaults to opening via web browser.
UrlTypeHint Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint `protobuf:"varint,3,opt,name=url_type_hint,json=urlTypeHint,proto3,enum=google.cloud.dialogflow.v2.Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint" json:"url_type_hint,omitempty"`
// contains filtered or unexported fields
}Actions on Google action to open a given url.
func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) Descriptor
func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction.ProtoReflect.Descriptor instead.
func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) GetUrl
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) GetUrl() stringfunc (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) GetUrlTypeHint
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) GetUrlTypeHint() Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHintfunc (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) ProtoMessage
func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) ProtoMessage()func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) ProtoReflect
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) Reset
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) Reset()func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) String
func (x *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) String() stringIntent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint
type Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint int32Type of the URI.
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_URL_TYPE_HINT_UNSPECIFIED, Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_AMP_ACTION, Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_AMP_CONTENT
const (
// Unspecified
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_URL_TYPE_HINT_UNSPECIFIED Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint = 0
// Url would be an amp action
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_AMP_ACTION Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint = 1
// URL that points directly to AMP content, or to a canonical URL
// which refers to AMP content via .
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_AMP_CONTENT Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint = 2
)func (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Descriptor
func (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Descriptor() protoreflect.EnumDescriptorfunc (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Enum
func (x Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Enum() *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHintfunc (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) EnumDescriptor
func (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) EnumDescriptor() ([]byte, []int)Deprecated: Use Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint.Descriptor instead.
func (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Number
func (x Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Number() protoreflect.EnumNumberfunc (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) String
func (x Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) String() stringfunc (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Type
func (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Type() protoreflect.EnumTypeIntent_Message_BrowseCarouselCard_ImageDisplayOptions
type Intent_Message_BrowseCarouselCard_ImageDisplayOptions int32Image display options for Actions on Google. This should be used for when the image's aspect ratio does not match the image container's aspect ratio.
Intent_Message_BrowseCarouselCard_IMAGE_DISPLAY_OPTIONS_UNSPECIFIED, Intent_Message_BrowseCarouselCard_GRAY, Intent_Message_BrowseCarouselCard_WHITE, Intent_Message_BrowseCarouselCard_CROPPED, Intent_Message_BrowseCarouselCard_BLURRED_BACKGROUND
const (
// Fill the gaps between the image and the image container with gray
// bars.
Intent_Message_BrowseCarouselCard_IMAGE_DISPLAY_OPTIONS_UNSPECIFIED Intent_Message_BrowseCarouselCard_ImageDisplayOptions = 0
// Fill the gaps between the image and the image container with gray
// bars.
Intent_Message_BrowseCarouselCard_GRAY Intent_Message_BrowseCarouselCard_ImageDisplayOptions = 1
// Fill the gaps between the image and the image container with white
// bars.
Intent_Message_BrowseCarouselCard_WHITE Intent_Message_BrowseCarouselCard_ImageDisplayOptions = 2
// Image is scaled such that the image width and height match or exceed
// the container dimensions. This may crop the top and bottom of the
// image if the scaled image height is greater than the container
// height, or crop the left and right of the image if the scaled image
// width is greater than the container width. This is similar to "Zoom
// Mode" on a widescreen TV when playing a 4:3 video.
Intent_Message_BrowseCarouselCard_CROPPED Intent_Message_BrowseCarouselCard_ImageDisplayOptions = 3
// Pad the gaps between image and image frame with a blurred copy of the
// same image.
Intent_Message_BrowseCarouselCard_BLURRED_BACKGROUND Intent_Message_BrowseCarouselCard_ImageDisplayOptions = 4
)func (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) Descriptor
func (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) Descriptor() protoreflect.EnumDescriptorfunc (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) Enum
func (x Intent_Message_BrowseCarouselCard_ImageDisplayOptions) Enum() *Intent_Message_BrowseCarouselCard_ImageDisplayOptionsfunc (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) EnumDescriptor
func (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) EnumDescriptor() ([]byte, []int)Deprecated: Use Intent_Message_BrowseCarouselCard_ImageDisplayOptions.Descriptor instead.
func (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) Number
func (x Intent_Message_BrowseCarouselCard_ImageDisplayOptions) Number() protoreflect.EnumNumberfunc (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) String
func (x Intent_Message_BrowseCarouselCard_ImageDisplayOptions) String() stringfunc (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) Type
Intent_Message_Card
type Intent_Message_Card struct {
// Optional. The title of the card.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// Optional. The subtitle of the card.
Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
// Optional. The public URI to an image file for the card.
ImageUri string `protobuf:"bytes,3,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"`
// Optional. The collection of card buttons.
Buttons []*Intent_Message_Card_Button `protobuf:"bytes,4,rep,name=buttons,proto3" json:"buttons,omitempty"`
// contains filtered or unexported fields
}The card response message.
func (*Intent_Message_Card) Descriptor
func (*Intent_Message_Card) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_Card.ProtoReflect.Descriptor instead.
func (*Intent_Message_Card) GetButtons
func (x *Intent_Message_Card) GetButtons() []*Intent_Message_Card_Buttonfunc (*Intent_Message_Card) GetImageUri
func (x *Intent_Message_Card) GetImageUri() stringfunc (*Intent_Message_Card) GetSubtitle
func (x *Intent_Message_Card) GetSubtitle() stringfunc (*Intent_Message_Card) GetTitle
func (x *Intent_Message_Card) GetTitle() stringfunc (*Intent_Message_Card) ProtoMessage
func (*Intent_Message_Card) ProtoMessage()func (*Intent_Message_Card) ProtoReflect
func (x *Intent_Message_Card) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_Card) Reset
func (x *Intent_Message_Card) Reset()func (*Intent_Message_Card) String
func (x *Intent_Message_Card) String() stringIntent_Message_Card_
type Intent_Message_Card_ struct {
// The card response.
Card *Intent_Message_Card `protobuf:"bytes,4,opt,name=card,proto3,oneof"`
}Intent_Message_Card_Button
type Intent_Message_Card_Button struct {
// Optional. The text to show on the button.
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// Optional. The text to send back to the Dialogflow API or a URI to
// open.
Postback string `protobuf:"bytes,2,opt,name=postback,proto3" json:"postback,omitempty"`
// contains filtered or unexported fields
}Contains information about a button.
func (*Intent_Message_Card_Button) Descriptor
func (*Intent_Message_Card_Button) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_Card_Button.ProtoReflect.Descriptor instead.
func (*Intent_Message_Card_Button) GetPostback
func (x *Intent_Message_Card_Button) GetPostback() stringfunc (*Intent_Message_Card_Button) GetText
func (x *Intent_Message_Card_Button) GetText() stringfunc (*Intent_Message_Card_Button) ProtoMessage
func (*Intent_Message_Card_Button) ProtoMessage()func (*Intent_Message_Card_Button) ProtoReflect
func (x *Intent_Message_Card_Button) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_Card_Button) Reset
func (x *Intent_Message_Card_Button) Reset()func (*Intent_Message_Card_Button) String
func (x *Intent_Message_Card_Button) String() stringIntent_Message_CarouselSelect
type Intent_Message_CarouselSelect struct {
// Required. Carousel items.
Items []*Intent_Message_CarouselSelect_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}The card for presenting a carousel of options to select from.
func (*Intent_Message_CarouselSelect) Descriptor
func (*Intent_Message_CarouselSelect) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_CarouselSelect.ProtoReflect.Descriptor instead.
func (*Intent_Message_CarouselSelect) GetItems
func (x *Intent_Message_CarouselSelect) GetItems() []*Intent_Message_CarouselSelect_Itemfunc (*Intent_Message_CarouselSelect) ProtoMessage
func (*Intent_Message_CarouselSelect) ProtoMessage()func (*Intent_Message_CarouselSelect) ProtoReflect
func (x *Intent_Message_CarouselSelect) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_CarouselSelect) Reset
func (x *Intent_Message_CarouselSelect) Reset()func (*Intent_Message_CarouselSelect) String
func (x *Intent_Message_CarouselSelect) String() stringIntent_Message_CarouselSelect_
type Intent_Message_CarouselSelect_ struct {
// The carousel card response for Actions on Google.
CarouselSelect *Intent_Message_CarouselSelect `protobuf:"bytes,12,opt,name=carousel_select,json=carouselSelect,proto3,oneof"`
}Intent_Message_CarouselSelect_Item
type Intent_Message_CarouselSelect_Item struct {
// Required. Additional info about the option item.
Info *Intent_Message_SelectItemInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
// Required. Title of the carousel item.
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// Optional. The body text of the card.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. The image to display.
Image *Intent_Message_Image `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
// contains filtered or unexported fields
}An item in the carousel.
func (*Intent_Message_CarouselSelect_Item) Descriptor
func (*Intent_Message_CarouselSelect_Item) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_CarouselSelect_Item.ProtoReflect.Descriptor instead.
func (*Intent_Message_CarouselSelect_Item) GetDescription
func (x *Intent_Message_CarouselSelect_Item) GetDescription() stringfunc (*Intent_Message_CarouselSelect_Item) GetImage
func (x *Intent_Message_CarouselSelect_Item) GetImage() *Intent_Message_Imagefunc (*Intent_Message_CarouselSelect_Item) GetInfo
func (x *Intent_Message_CarouselSelect_Item) GetInfo() *Intent_Message_SelectItemInfofunc (*Intent_Message_CarouselSelect_Item) GetTitle
func (x *Intent_Message_CarouselSelect_Item) GetTitle() stringfunc (*Intent_Message_CarouselSelect_Item) ProtoMessage
func (*Intent_Message_CarouselSelect_Item) ProtoMessage()func (*Intent_Message_CarouselSelect_Item) ProtoReflect
func (x *Intent_Message_CarouselSelect_Item) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_CarouselSelect_Item) Reset
func (x *Intent_Message_CarouselSelect_Item) Reset()func (*Intent_Message_CarouselSelect_Item) String
func (x *Intent_Message_CarouselSelect_Item) String() stringIntent_Message_ColumnProperties
type Intent_Message_ColumnProperties struct {
// Required. Column heading.
Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// Optional. Defines text alignment for all cells in this column.
HorizontalAlignment Intent_Message_ColumnProperties_HorizontalAlignment `protobuf:"varint,2,opt,name=horizontal_alignment,json=horizontalAlignment,proto3,enum=google.cloud.dialogflow.v2.Intent_Message_ColumnProperties_HorizontalAlignment" json:"horizontal_alignment,omitempty"`
// contains filtered or unexported fields
}Column properties for [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard].
func (*Intent_Message_ColumnProperties) Descriptor
func (*Intent_Message_ColumnProperties) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_ColumnProperties.ProtoReflect.Descriptor instead.
func (*Intent_Message_ColumnProperties) GetHeader
func (x *Intent_Message_ColumnProperties) GetHeader() stringfunc (*Intent_Message_ColumnProperties) GetHorizontalAlignment
func (x *Intent_Message_ColumnProperties) GetHorizontalAlignment() Intent_Message_ColumnProperties_HorizontalAlignmentfunc (*Intent_Message_ColumnProperties) ProtoMessage
func (*Intent_Message_ColumnProperties) ProtoMessage()func (*Intent_Message_ColumnProperties) ProtoReflect
func (x *Intent_Message_ColumnProperties) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_ColumnProperties) Reset
func (x *Intent_Message_ColumnProperties) Reset()func (*Intent_Message_ColumnProperties) String
func (x *Intent_Message_ColumnProperties) String() stringIntent_Message_ColumnProperties_HorizontalAlignment
type Intent_Message_ColumnProperties_HorizontalAlignment int32Text alignments within a cell.
Intent_Message_ColumnProperties_HORIZONTAL_ALIGNMENT_UNSPECIFIED, Intent_Message_ColumnProperties_LEADING, Intent_Message_ColumnProperties_CENTER, Intent_Message_ColumnProperties_TRAILING
const (
// Text is aligned to the leading edge of the column.
Intent_Message_ColumnProperties_HORIZONTAL_ALIGNMENT_UNSPECIFIED Intent_Message_ColumnProperties_HorizontalAlignment = 0
// Text is aligned to the leading edge of the column.
Intent_Message_ColumnProperties_LEADING Intent_Message_ColumnProperties_HorizontalAlignment = 1
// Text is centered in the column.
Intent_Message_ColumnProperties_CENTER Intent_Message_ColumnProperties_HorizontalAlignment = 2
// Text is aligned to the trailing edge of the column.
Intent_Message_ColumnProperties_TRAILING Intent_Message_ColumnProperties_HorizontalAlignment = 3
)func (Intent_Message_ColumnProperties_HorizontalAlignment) Descriptor
func (Intent_Message_ColumnProperties_HorizontalAlignment) Descriptor() protoreflect.EnumDescriptorfunc (Intent_Message_ColumnProperties_HorizontalAlignment) Enum
func (x Intent_Message_ColumnProperties_HorizontalAlignment) Enum() *Intent_Message_ColumnProperties_HorizontalAlignmentfunc (Intent_Message_ColumnProperties_HorizontalAlignment) EnumDescriptor
func (Intent_Message_ColumnProperties_HorizontalAlignment) EnumDescriptor() ([]byte, []int)Deprecated: Use Intent_Message_ColumnProperties_HorizontalAlignment.Descriptor instead.
func (Intent_Message_ColumnProperties_HorizontalAlignment) Number
func (x Intent_Message_ColumnProperties_HorizontalAlignment) Number() protoreflect.EnumNumberfunc (Intent_Message_ColumnProperties_HorizontalAlignment) String
func (x Intent_Message_ColumnProperties_HorizontalAlignment) String() stringfunc (Intent_Message_ColumnProperties_HorizontalAlignment) Type
Intent_Message_Image
type Intent_Message_Image struct {
// Optional. The public URI to an image file.
ImageUri string `protobuf:"bytes,1,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"`
// Optional. A text description of the image to be used for accessibility,
// e.g., screen readers.
AccessibilityText string `protobuf:"bytes,2,opt,name=accessibility_text,json=accessibilityText,proto3" json:"accessibility_text,omitempty"`
// contains filtered or unexported fields
}The image response message.
func (*Intent_Message_Image) Descriptor
func (*Intent_Message_Image) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_Image.ProtoReflect.Descriptor instead.
func (*Intent_Message_Image) GetAccessibilityText
func (x *Intent_Message_Image) GetAccessibilityText() stringfunc (*Intent_Message_Image) GetImageUri
func (x *Intent_Message_Image) GetImageUri() stringfunc (*Intent_Message_Image) ProtoMessage
func (*Intent_Message_Image) ProtoMessage()func (*Intent_Message_Image) ProtoReflect
func (x *Intent_Message_Image) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_Image) Reset
func (x *Intent_Message_Image) Reset()func (*Intent_Message_Image) String
func (x *Intent_Message_Image) String() stringIntent_Message_Image_
type Intent_Message_Image_ struct {
// The image response.
Image *Intent_Message_Image `protobuf:"bytes,2,opt,name=image,proto3,oneof"`
}Intent_Message_LinkOutSuggestion
type Intent_Message_LinkOutSuggestion struct {
// Required. The name of the app or site this chip is linking to.
DestinationName string `protobuf:"bytes,1,opt,name=destination_name,json=destinationName,proto3" json:"destination_name,omitempty"`
// Required. The URI of the app or site to open when the user taps the
// suggestion chip.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}The suggestion chip message that allows the user to jump out to the app or website associated with this agent.
func (*Intent_Message_LinkOutSuggestion) Descriptor
func (*Intent_Message_LinkOutSuggestion) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_LinkOutSuggestion.ProtoReflect.Descriptor instead.
func (*Intent_Message_LinkOutSuggestion) GetDestinationName
func (x *Intent_Message_LinkOutSuggestion) GetDestinationName() stringfunc (*Intent_Message_LinkOutSuggestion) GetUri
func (x *Intent_Message_LinkOutSuggestion) GetUri() stringfunc (*Intent_Message_LinkOutSuggestion) ProtoMessage
func (*Intent_Message_LinkOutSuggestion) ProtoMessage()func (*Intent_Message_LinkOutSuggestion) ProtoReflect
func (x *Intent_Message_LinkOutSuggestion) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_LinkOutSuggestion) Reset
func (x *Intent_Message_LinkOutSuggestion) Reset()func (*Intent_Message_LinkOutSuggestion) String
func (x *Intent_Message_LinkOutSuggestion) String() stringIntent_Message_LinkOutSuggestion_
type Intent_Message_LinkOutSuggestion_ struct {
// The link out suggestion chip for Actions on Google.
LinkOutSuggestion *Intent_Message_LinkOutSuggestion `protobuf:"bytes,10,opt,name=link_out_suggestion,json=linkOutSuggestion,proto3,oneof"`
}Intent_Message_ListSelect
type Intent_Message_ListSelect struct {
// Optional. The overall title of the list.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// Required. List items.
Items []*Intent_Message_ListSelect_Item `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
// Optional. Subtitle of the list.
Subtitle string `protobuf:"bytes,3,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
// contains filtered or unexported fields
}The card for presenting a list of options to select from.
func (*Intent_Message_ListSelect) Descriptor
func (*Intent_Message_ListSelect) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_ListSelect.ProtoReflect.Descriptor instead.
func (*Intent_Message_ListSelect) GetItems
func (x *Intent_Message_ListSelect) GetItems() []*Intent_Message_ListSelect_Itemfunc (*Intent_Message_ListSelect) GetSubtitle
func (x *Intent_Message_ListSelect) GetSubtitle() stringfunc (*Intent_Message_ListSelect) GetTitle
func (x *Intent_Message_ListSelect) GetTitle() stringfunc (*Intent_Message_ListSelect) ProtoMessage
func (*Intent_Message_ListSelect) ProtoMessage()func (*Intent_Message_ListSelect) ProtoReflect
func (x *Intent_Message_ListSelect) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_ListSelect) Reset
func (x *Intent_Message_ListSelect) Reset()func (*Intent_Message_ListSelect) String
func (x *Intent_Message_ListSelect) String() stringIntent_Message_ListSelect_
type Intent_Message_ListSelect_ struct {
// The list card response for Actions on Google.
ListSelect *Intent_Message_ListSelect `protobuf:"bytes,11,opt,name=list_select,json=listSelect,proto3,oneof"`
}Intent_Message_ListSelect_Item
type Intent_Message_ListSelect_Item struct {
// Required. Additional information about this option.
Info *Intent_Message_SelectItemInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
// Required. The title of the list item.
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// Optional. The main text describing the item.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. The image to display.
Image *Intent_Message_Image `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
// contains filtered or unexported fields
}An item in the list.
func (*Intent_Message_ListSelect_Item) Descriptor
func (*Intent_Message_ListSelect_Item) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_ListSelect_Item.ProtoReflect.Descriptor instead.
func (*Intent_Message_ListSelect_Item) GetDescription
func (x *Intent_Message_ListSelect_Item) GetDescription() stringfunc (*Intent_Message_ListSelect_Item) GetImage
func (x *Intent_Message_ListSelect_Item) GetImage() *Intent_Message_Imagefunc (*Intent_Message_ListSelect_Item) GetInfo
func (x *Intent_Message_ListSelect_Item) GetInfo() *Intent_Message_SelectItemInfofunc (*Intent_Message_ListSelect_Item) GetTitle
func (x *Intent_Message_ListSelect_Item) GetTitle() stringfunc (*Intent_Message_ListSelect_Item) ProtoMessage
func (*Intent_Message_ListSelect_Item) ProtoMessage()func (*Intent_Message_ListSelect_Item) ProtoReflect
func (x *Intent_Message_ListSelect_Item) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_ListSelect_Item) Reset
func (x *Intent_Message_ListSelect_Item) Reset()func (*Intent_Message_ListSelect_Item) String
func (x *Intent_Message_ListSelect_Item) String() stringIntent_Message_MediaContent
type Intent_Message_MediaContent struct {
// Optional. What type of media is the content (ie "audio").
MediaType Intent_Message_MediaContent_ResponseMediaType `protobuf:"varint,1,opt,name=media_type,json=mediaType,proto3,enum=google.cloud.dialogflow.v2.Intent_Message_MediaContent_ResponseMediaType" json:"media_type,omitempty"`
// Required. List of media objects.
MediaObjects []*Intent_Message_MediaContent_ResponseMediaObject `protobuf:"bytes,2,rep,name=media_objects,json=mediaObjects,proto3" json:"media_objects,omitempty"`
// contains filtered or unexported fields
}The media content card for Actions on Google.
func (*Intent_Message_MediaContent) Descriptor
func (*Intent_Message_MediaContent) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_MediaContent.ProtoReflect.Descriptor instead.
func (*Intent_Message_MediaContent) GetMediaObjects
func (x *Intent_Message_MediaContent) GetMediaObjects() []*Intent_Message_MediaContent_ResponseMediaObjectfunc (*Intent_Message_MediaContent) GetMediaType
func (x *Intent_Message_MediaContent) GetMediaType() Intent_Message_MediaContent_ResponseMediaTypefunc (*Intent_Message_MediaContent) ProtoMessage
func (*Intent_Message_MediaContent) ProtoMessage()func (*Intent_Message_MediaContent) ProtoReflect
func (x *Intent_Message_MediaContent) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_MediaContent) Reset
func (x *Intent_Message_MediaContent) Reset()func (*Intent_Message_MediaContent) String
func (x *Intent_Message_MediaContent) String() stringIntent_Message_MediaContent_
type Intent_Message_MediaContent_ struct {
// The media content card for Actions on Google.
MediaContent *Intent_Message_MediaContent `protobuf:"bytes,24,opt,name=media_content,json=mediaContent,proto3,oneof"`
}Intent_Message_MediaContent_ResponseMediaObject
type Intent_Message_MediaContent_ResponseMediaObject struct {
// Required. Name of media card.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Description of media card.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Image to show with the media card.
//
// Types that are assignable to Image:
//
// *Intent_Message_MediaContent_ResponseMediaObject_LargeImage
// *Intent_Message_MediaContent_ResponseMediaObject_Icon
Image isIntent_Message_MediaContent_ResponseMediaObject_Image `protobuf_oneof:"image"`
// Required. Url where the media is stored.
ContentUrl string `protobuf:"bytes,5,opt,name=content_url,json=contentUrl,proto3" json:"content_url,omitempty"`
// contains filtered or unexported fields
}Response media object for media content card.
func (*Intent_Message_MediaContent_ResponseMediaObject) Descriptor
func (*Intent_Message_MediaContent_ResponseMediaObject) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_MediaContent_ResponseMediaObject.ProtoReflect.Descriptor instead.
func (*Intent_Message_MediaContent_ResponseMediaObject) GetContentUrl
func (x *Intent_Message_MediaContent_ResponseMediaObject) GetContentUrl() stringfunc (*Intent_Message_MediaContent_ResponseMediaObject) GetDescription
func (x *Intent_Message_MediaContent_ResponseMediaObject) GetDescription() stringfunc (*Intent_Message_MediaContent_ResponseMediaObject) GetIcon
func (x *Intent_Message_MediaContent_ResponseMediaObject) GetIcon() *Intent_Message_Imagefunc (*Intent_Message_MediaContent_ResponseMediaObject) GetImage
func (m *Intent_Message_MediaContent_ResponseMediaObject) GetImage() isIntent_Message_MediaContent_ResponseMediaObject_Imagefunc (*Intent_Message_MediaContent_ResponseMediaObject) GetLargeImage
func (x *Intent_Message_MediaContent_ResponseMediaObject) GetLargeImage() *Intent_Message_Imagefunc (*Intent_Message_MediaContent_ResponseMediaObject) GetName
func (x *Intent_Message_MediaContent_ResponseMediaObject) GetName() stringfunc (*Intent_Message_MediaContent_ResponseMediaObject) ProtoMessage
func (*Intent_Message_MediaContent_ResponseMediaObject) ProtoMessage()func (*Intent_Message_MediaContent_ResponseMediaObject) ProtoReflect
func (x *Intent_Message_MediaContent_ResponseMediaObject) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_MediaContent_ResponseMediaObject) Reset
func (x *Intent_Message_MediaContent_ResponseMediaObject) Reset()func (*Intent_Message_MediaContent_ResponseMediaObject) String
func (x *Intent_Message_MediaContent_ResponseMediaObject) String() stringIntent_Message_MediaContent_ResponseMediaObject_Icon
type Intent_Message_MediaContent_ResponseMediaObject_Icon struct {
// Optional. Icon to display above media content.
Icon *Intent_Message_Image `protobuf:"bytes,4,opt,name=icon,proto3,oneof"`
}Intent_Message_MediaContent_ResponseMediaObject_LargeImage
type Intent_Message_MediaContent_ResponseMediaObject_LargeImage struct {
// Optional. Image to display above media content.
LargeImage *Intent_Message_Image `protobuf:"bytes,3,opt,name=large_image,json=largeImage,proto3,oneof"`
}Intent_Message_MediaContent_ResponseMediaType
type Intent_Message_MediaContent_ResponseMediaType int32Format of response media type.
Intent_Message_MediaContent_RESPONSE_MEDIA_TYPE_UNSPECIFIED, Intent_Message_MediaContent_AUDIO
const (
// Unspecified.
Intent_Message_MediaContent_RESPONSE_MEDIA_TYPE_UNSPECIFIED Intent_Message_MediaContent_ResponseMediaType = 0
// Response media type is audio.
Intent_Message_MediaContent_AUDIO Intent_Message_MediaContent_ResponseMediaType = 1
)func (Intent_Message_MediaContent_ResponseMediaType) Descriptor
func (Intent_Message_MediaContent_ResponseMediaType) Descriptor() protoreflect.EnumDescriptorfunc (Intent_Message_MediaContent_ResponseMediaType) Enum
func (x Intent_Message_MediaContent_ResponseMediaType) Enum() *Intent_Message_MediaContent_ResponseMediaTypefunc (Intent_Message_MediaContent_ResponseMediaType) EnumDescriptor
func (Intent_Message_MediaContent_ResponseMediaType) EnumDescriptor() ([]byte, []int)Deprecated: Use Intent_Message_MediaContent_ResponseMediaType.Descriptor instead.
func (Intent_Message_MediaContent_ResponseMediaType) Number
func (x Intent_Message_MediaContent_ResponseMediaType) Number() protoreflect.EnumNumberfunc (Intent_Message_MediaContent_ResponseMediaType) String
func (x Intent_Message_MediaContent_ResponseMediaType) String() stringfunc (Intent_Message_MediaContent_ResponseMediaType) Type
Intent_Message_Payload
type Intent_Message_Payload struct {
// A custom platform-specific response.
Payload *structpb.Struct `protobuf:"bytes,5,opt,name=payload,proto3,oneof"`
}Intent_Message_Platform
type Intent_Message_Platform int32The rich response message integration platform. See Integrations.
Intent_Message_PLATFORM_UNSPECIFIED, Intent_Message_FACEBOOK, Intent_Message_SLACK, Intent_Message_TELEGRAM, Intent_Message_KIK, Intent_Message_SKYPE, Intent_Message_LINE, Intent_Message_VIBER, Intent_Message_ACTIONS_ON_GOOGLE, Intent_Message_GOOGLE_HANGOUTS
const (
// Default platform.
Intent_Message_PLATFORM_UNSPECIFIED Intent_Message_Platform = 0
// Facebook.
Intent_Message_FACEBOOK Intent_Message_Platform = 1
// Slack.
Intent_Message_SLACK Intent_Message_Platform = 2
// Telegram.
Intent_Message_TELEGRAM Intent_Message_Platform = 3
// Kik.
Intent_Message_KIK Intent_Message_Platform = 4
// Skype.
Intent_Message_SKYPE Intent_Message_Platform = 5
// Line.
Intent_Message_LINE Intent_Message_Platform = 6
// Viber.
Intent_Message_VIBER Intent_Message_Platform = 7
// Google Assistant
// See [Dialogflow webhook
// format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
Intent_Message_ACTIONS_ON_GOOGLE Intent_Message_Platform = 8
// Google Hangouts.
Intent_Message_GOOGLE_HANGOUTS Intent_Message_Platform = 11
)func (Intent_Message_Platform) Descriptor
func (Intent_Message_Platform) Descriptor() protoreflect.EnumDescriptorfunc (Intent_Message_Platform) Enum
func (x Intent_Message_Platform) Enum() *Intent_Message_Platformfunc (Intent_Message_Platform) EnumDescriptor
func (Intent_Message_Platform) EnumDescriptor() ([]byte, []int)Deprecated: Use Intent_Message_Platform.Descriptor instead.
func (Intent_Message_Platform) Number
func (x Intent_Message_Platform) Number() protoreflect.EnumNumberfunc (Intent_Message_Platform) String
func (x Intent_Message_Platform) String() stringfunc (Intent_Message_Platform) Type
func (Intent_Message_Platform) Type() protoreflect.EnumTypeIntent_Message_QuickReplies
type Intent_Message_QuickReplies struct {
// Optional. The title of the collection of quick replies.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// Optional. The collection of quick replies.
QuickReplies []string `protobuf:"bytes,2,rep,name=quick_replies,json=quickReplies,proto3" json:"quick_replies,omitempty"`
// contains filtered or unexported fields
}The quick replies response message.
func (*Intent_Message_QuickReplies) Descriptor
func (*Intent_Message_QuickReplies) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_QuickReplies.ProtoReflect.Descriptor instead.
func (*Intent_Message_QuickReplies) GetQuickReplies
func (x *Intent_Message_QuickReplies) GetQuickReplies() []stringfunc (*Intent_Message_QuickReplies) GetTitle
func (x *Intent_Message_QuickReplies) GetTitle() stringfunc (*Intent_Message_QuickReplies) ProtoMessage
func (*Intent_Message_QuickReplies) ProtoMessage()func (*Intent_Message_QuickReplies) ProtoReflect
func (x *Intent_Message_QuickReplies) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_QuickReplies) Reset
func (x *Intent_Message_QuickReplies) Reset()func (*Intent_Message_QuickReplies) String
func (x *Intent_Message_QuickReplies) String() stringIntent_Message_QuickReplies_
type Intent_Message_QuickReplies_ struct {
// The quick replies response.
QuickReplies *Intent_Message_QuickReplies `protobuf:"bytes,3,opt,name=quick_replies,json=quickReplies,proto3,oneof"`
}Intent_Message_SelectItemInfo
type Intent_Message_SelectItemInfo struct {
// Required. A unique key that will be sent back to the agent if this
// response is given.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Optional. A list of synonyms that can also be used to trigger this
// item in dialog.
Synonyms []string `protobuf:"bytes,2,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
// contains filtered or unexported fields
}Additional info about the select item for when it is triggered in a dialog.
func (*Intent_Message_SelectItemInfo) Descriptor
func (*Intent_Message_SelectItemInfo) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_SelectItemInfo.ProtoReflect.Descriptor instead.
func (*Intent_Message_SelectItemInfo) GetKey
func (x *Intent_Message_SelectItemInfo) GetKey() stringfunc (*Intent_Message_SelectItemInfo) GetSynonyms
func (x *Intent_Message_SelectItemInfo) GetSynonyms() []stringfunc (*Intent_Message_SelectItemInfo) ProtoMessage
func (*Intent_Message_SelectItemInfo) ProtoMessage()func (*Intent_Message_SelectItemInfo) ProtoReflect
func (x *Intent_Message_SelectItemInfo) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_SelectItemInfo) Reset
func (x *Intent_Message_SelectItemInfo) Reset()func (*Intent_Message_SelectItemInfo) String
func (x *Intent_Message_SelectItemInfo) String() stringIntent_Message_SimpleResponse
type Intent_Message_SimpleResponse struct {
// One of text_to_speech or ssml must be provided. The plain text of the
// speech output. Mutually exclusive with ssml.
TextToSpeech string `protobuf:"bytes,1,opt,name=text_to_speech,json=textToSpeech,proto3" json:"text_to_speech,omitempty"`
// One of text_to_speech or ssml must be provided. Structured spoken
// response to the user in the SSML format. Mutually exclusive with
// text_to_speech.
Ssml string `protobuf:"bytes,2,opt,name=ssml,proto3" json:"ssml,omitempty"`
// Optional. The text to display.
DisplayText string `protobuf:"bytes,3,opt,name=display_text,json=displayText,proto3" json:"display_text,omitempty"`
// contains filtered or unexported fields
}The simple response message containing speech or text.
func (*Intent_Message_SimpleResponse) Descriptor
func (*Intent_Message_SimpleResponse) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_SimpleResponse.ProtoReflect.Descriptor instead.
func (*Intent_Message_SimpleResponse) GetDisplayText
func (x *Intent_Message_SimpleResponse) GetDisplayText() stringfunc (*Intent_Message_SimpleResponse) GetSsml
func (x *Intent_Message_SimpleResponse) GetSsml() stringfunc (*Intent_Message_SimpleResponse) GetTextToSpeech
func (x *Intent_Message_SimpleResponse) GetTextToSpeech() stringfunc (*Intent_Message_SimpleResponse) ProtoMessage
func (*Intent_Message_SimpleResponse) ProtoMessage()func (*Intent_Message_SimpleResponse) ProtoReflect
func (x *Intent_Message_SimpleResponse) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_SimpleResponse) Reset
func (x *Intent_Message_SimpleResponse) Reset()func (*Intent_Message_SimpleResponse) String
func (x *Intent_Message_SimpleResponse) String() stringIntent_Message_SimpleResponses
type Intent_Message_SimpleResponses struct {
// Required. The list of simple responses.
SimpleResponses []*Intent_Message_SimpleResponse `protobuf:"bytes,1,rep,name=simple_responses,json=simpleResponses,proto3" json:"simple_responses,omitempty"`
// contains filtered or unexported fields
}The collection of simple response candidates.
This message in QueryResult.fulfillment_messages and
WebhookResponse.fulfillment_messages should contain only one
SimpleResponse.
func (*Intent_Message_SimpleResponses) Descriptor
func (*Intent_Message_SimpleResponses) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_SimpleResponses.ProtoReflect.Descriptor instead.
func (*Intent_Message_SimpleResponses) GetSimpleResponses
func (x *Intent_Message_SimpleResponses) GetSimpleResponses() []*Intent_Message_SimpleResponsefunc (*Intent_Message_SimpleResponses) ProtoMessage
func (*Intent_Message_SimpleResponses) ProtoMessage()func (*Intent_Message_SimpleResponses) ProtoReflect
func (x *Intent_Message_SimpleResponses) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_SimpleResponses) Reset
func (x *Intent_Message_SimpleResponses) Reset()func (*Intent_Message_SimpleResponses) String
func (x *Intent_Message_SimpleResponses) String() stringIntent_Message_SimpleResponses_
type Intent_Message_SimpleResponses_ struct {
// The voice and text-only responses for Actions on Google.
SimpleResponses *Intent_Message_SimpleResponses `protobuf:"bytes,7,opt,name=simple_responses,json=simpleResponses,proto3,oneof"`
}Intent_Message_Suggestion
type Intent_Message_Suggestion struct {
// Required. The text shown the in the suggestion chip.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// contains filtered or unexported fields
}The suggestion chip message that the user can tap to quickly post a reply to the conversation.
func (*Intent_Message_Suggestion) Descriptor
func (*Intent_Message_Suggestion) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_Suggestion.ProtoReflect.Descriptor instead.
func (*Intent_Message_Suggestion) GetTitle
func (x *Intent_Message_Suggestion) GetTitle() stringfunc (*Intent_Message_Suggestion) ProtoMessage
func (*Intent_Message_Suggestion) ProtoMessage()func (*Intent_Message_Suggestion) ProtoReflect
func (x *Intent_Message_Suggestion) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_Suggestion) Reset
func (x *Intent_Message_Suggestion) Reset()func (*Intent_Message_Suggestion) String
func (x *Intent_Message_Suggestion) String() stringIntent_Message_Suggestions
type Intent_Message_Suggestions struct {
// Required. The list of suggested replies.
Suggestions []*Intent_Message_Suggestion `protobuf:"bytes,1,rep,name=suggestions,proto3" json:"suggestions,omitempty"`
// contains filtered or unexported fields
}The collection of suggestions.
func (*Intent_Message_Suggestions) Descriptor
func (*Intent_Message_Suggestions) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_Suggestions.ProtoReflect.Descriptor instead.
func (*Intent_Message_Suggestions) GetSuggestions
func (x *Intent_Message_Suggestions) GetSuggestions() []*Intent_Message_Suggestionfunc (*Intent_Message_Suggestions) ProtoMessage
func (*Intent_Message_Suggestions) ProtoMessage()func (*Intent_Message_Suggestions) ProtoReflect
func (x *Intent_Message_Suggestions) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_Suggestions) Reset
func (x *Intent_Message_Suggestions) Reset()func (*Intent_Message_Suggestions) String
func (x *Intent_Message_Suggestions) String() stringIntent_Message_Suggestions_
type Intent_Message_Suggestions_ struct {
// The suggestion chips for Actions on Google.
Suggestions *Intent_Message_Suggestions `protobuf:"bytes,9,opt,name=suggestions,proto3,oneof"`
}Intent_Message_TableCard
type Intent_Message_TableCard struct {
// Required. Title of the card.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// Optional. Subtitle to the title.
Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
// Optional. Image which should be displayed on the card.
Image *Intent_Message_Image `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
// Optional. Display properties for the columns in this table.
ColumnProperties []*Intent_Message_ColumnProperties `protobuf:"bytes,4,rep,name=column_properties,json=columnProperties,proto3" json:"column_properties,omitempty"`
// Optional. Rows in this table of data.
Rows []*Intent_Message_TableCardRow `protobuf:"bytes,5,rep,name=rows,proto3" json:"rows,omitempty"`
// Optional. List of buttons for the card.
Buttons []*Intent_Message_BasicCard_Button `protobuf:"bytes,6,rep,name=buttons,proto3" json:"buttons,omitempty"`
// contains filtered or unexported fields
}Table card for Actions on Google.
func (*Intent_Message_TableCard) Descriptor
func (*Intent_Message_TableCard) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_TableCard.ProtoReflect.Descriptor instead.
func (*Intent_Message_TableCard) GetButtons
func (x *Intent_Message_TableCard) GetButtons() []*Intent_Message_BasicCard_Buttonfunc (*Intent_Message_TableCard) GetColumnProperties
func (x *Intent_Message_TableCard) GetColumnProperties() []*Intent_Message_ColumnPropertiesfunc (*Intent_Message_TableCard) GetImage
func (x *Intent_Message_TableCard) GetImage() *Intent_Message_Imagefunc (*Intent_Message_TableCard) GetRows
func (x *Intent_Message_TableCard) GetRows() []*Intent_Message_TableCardRowfunc (*Intent_Message_TableCard) GetSubtitle
func (x *Intent_Message_TableCard) GetSubtitle() stringfunc (*Intent_Message_TableCard) GetTitle
func (x *Intent_Message_TableCard) GetTitle() stringfunc (*Intent_Message_TableCard) ProtoMessage
func (*Intent_Message_TableCard) ProtoMessage()func (*Intent_Message_TableCard) ProtoReflect
func (x *Intent_Message_TableCard) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_TableCard) Reset
func (x *Intent_Message_TableCard) Reset()func (*Intent_Message_TableCard) String
func (x *Intent_Message_TableCard) String() stringIntent_Message_TableCardCell
type Intent_Message_TableCardCell struct {
// Required. Text in this cell.
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}Cell of [TableCardRow][google.cloud.dialogflow.v2.Intent.Message.TableCardRow].
func (*Intent_Message_TableCardCell) Descriptor
func (*Intent_Message_TableCardCell) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_TableCardCell.ProtoReflect.Descriptor instead.
func (*Intent_Message_TableCardCell) GetText
func (x *Intent_Message_TableCardCell) GetText() stringfunc (*Intent_Message_TableCardCell) ProtoMessage
func (*Intent_Message_TableCardCell) ProtoMessage()func (*Intent_Message_TableCardCell) ProtoReflect
func (x *Intent_Message_TableCardCell) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_TableCardCell) Reset
func (x *Intent_Message_TableCardCell) Reset()func (*Intent_Message_TableCardCell) String
func (x *Intent_Message_TableCardCell) String() stringIntent_Message_TableCardRow
type Intent_Message_TableCardRow struct {
// Optional. List of cells that make up this row.
Cells []*Intent_Message_TableCardCell `protobuf:"bytes,1,rep,name=cells,proto3" json:"cells,omitempty"`
// Optional. Whether to add a visual divider after this row.
DividerAfter bool `protobuf:"varint,2,opt,name=divider_after,json=dividerAfter,proto3" json:"divider_after,omitempty"`
// contains filtered or unexported fields
}Row of [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard].
func (*Intent_Message_TableCardRow) Descriptor
func (*Intent_Message_TableCardRow) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_TableCardRow.ProtoReflect.Descriptor instead.
func (*Intent_Message_TableCardRow) GetCells
func (x *Intent_Message_TableCardRow) GetCells() []*Intent_Message_TableCardCellfunc (*Intent_Message_TableCardRow) GetDividerAfter
func (x *Intent_Message_TableCardRow) GetDividerAfter() boolfunc (*Intent_Message_TableCardRow) ProtoMessage
func (*Intent_Message_TableCardRow) ProtoMessage()func (*Intent_Message_TableCardRow) ProtoReflect
func (x *Intent_Message_TableCardRow) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_TableCardRow) Reset
func (x *Intent_Message_TableCardRow) Reset()func (*Intent_Message_TableCardRow) String
func (x *Intent_Message_TableCardRow) String() stringIntent_Message_TableCard_
type Intent_Message_TableCard_ struct {
// Table card for Actions on Google.
TableCard *Intent_Message_TableCard `protobuf:"bytes,23,opt,name=table_card,json=tableCard,proto3,oneof"`
}Intent_Message_Text
type Intent_Message_Text struct {
// Optional. The collection of the agent's responses.
Text []string `protobuf:"bytes,1,rep,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}The text response message.
func (*Intent_Message_Text) Descriptor
func (*Intent_Message_Text) Descriptor() ([]byte, []int)Deprecated: Use Intent_Message_Text.ProtoReflect.Descriptor instead.
func (*Intent_Message_Text) GetText
func (x *Intent_Message_Text) GetText() []stringfunc (*Intent_Message_Text) ProtoMessage
func (*Intent_Message_Text) ProtoMessage()func (*Intent_Message_Text) ProtoReflect
func (x *Intent_Message_Text) ProtoReflect() protoreflect.Messagefunc (*Intent_Message_Text) Reset
func (x *Intent_Message_Text) Reset()func (*Intent_Message_Text) String
func (x *Intent_Message_Text) String() stringIntent_Message_Text_
type Intent_Message_Text_ struct {
// The text response.
Text *Intent_Message_Text `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}Intent_Parameter
type Intent_Parameter struct {
// The unique identifier of this parameter.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The name of the parameter.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The definition of the parameter value. It can be:
//
// - a constant string,
// - a parameter value defined as `$parameter_name`,
// - an original parameter value defined as `$parameter_name.original`,
// - a parameter value from some context defined as
// `#context_name.parameter_name`.
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// Optional. The default value to use when the `value` yields an empty
// result.
// Default values can be extracted from contexts by using the following
// syntax: `#context_name.parameter_name`.
DefaultValue string `protobuf:"bytes,4,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
// Optional. The name of the entity type, prefixed with `@`, that
// describes values of the parameter. If the parameter is
// required, this must be provided.
EntityTypeDisplayName string `protobuf:"bytes,5,opt,name=entity_type_display_name,json=entityTypeDisplayName,proto3" json:"entity_type_display_name,omitempty"`
// Optional. Indicates whether the parameter is required. That is,
// whether the intent cannot be completed without collecting the parameter
// value.
Mandatory bool `protobuf:"varint,6,opt,name=mandatory,proto3" json:"mandatory,omitempty"`
// Optional. The collection of prompts that the agent can present to the
// user in order to collect a value for the parameter.
Prompts []string `protobuf:"bytes,7,rep,name=prompts,proto3" json:"prompts,omitempty"`
// Optional. Indicates whether the parameter represents a list of values.
IsList bool `protobuf:"varint,8,opt,name=is_list,json=isList,proto3" json:"is_list,omitempty"`
// contains filtered or unexported fields
}Represents intent parameters.
func (*Intent_Parameter) Descriptor
func (*Intent_Parameter) Descriptor() ([]byte, []int)Deprecated: Use Intent_Parameter.ProtoReflect.Descriptor instead.
func (*Intent_Parameter) GetDefaultValue
func (x *Intent_Parameter) GetDefaultValue() stringfunc (*Intent_Parameter) GetDisplayName
func (x *Intent_Parameter) GetDisplayName() stringfunc (*Intent_Parameter) GetEntityTypeDisplayName
func (x *Intent_Parameter) GetEntityTypeDisplayName() stringfunc (*Intent_Parameter) GetIsList
func (x *Intent_Parameter) GetIsList() boolfunc (*Intent_Parameter) GetMandatory
func (x *Intent_Parameter) GetMandatory() boolfunc (*Intent_Parameter) GetName
func (x *Intent_Parameter) GetName() stringfunc (*Intent_Parameter) GetPrompts
func (x *Intent_Parameter) GetPrompts() []stringfunc (*Intent_Parameter) GetValue
func (x *Intent_Parameter) GetValue() stringfunc (*Intent_Parameter) ProtoMessage
func (*Intent_Parameter) ProtoMessage()func (*Intent_Parameter) ProtoReflect
func (x *Intent_Parameter) ProtoReflect() protoreflect.Messagefunc (*Intent_Parameter) Reset
func (x *Intent_Parameter) Reset()func (*Intent_Parameter) String
func (x *Intent_Parameter) String() stringIntent_TrainingPhrase
type Intent_TrainingPhrase struct {
// Output only. The unique identifier of this training phrase.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The type of the training phrase.
Type Intent_TrainingPhrase_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.dialogflow.v2.Intent_TrainingPhrase_Type" json:"type,omitempty"`
// Required. The ordered list of training phrase parts.
// The parts are concatenated in order to form the training phrase.
//
// Note: The API does not automatically annotate training phrases like the
// Dialogflow Console does.
//
// Note: Do not forget to include whitespace at part boundaries,
// so the training phrase is well formatted when the parts are concatenated.
//
// If the training phrase does not need to be annotated with parameters,
// you just need a single part with only the
// [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text]
// field set.
//
// If you want to annotate the training phrase, you must create multiple
// parts, where the fields of each part are populated in one of two ways:
//
// - `Part.text` is set to a part of the phrase that has no parameters.
// - `Part.text` is set to a part of the phrase that you want to annotate,
// and the `entity_type`, `alias`, and `user_defined` fields are all
// set.
Parts []*Intent_TrainingPhrase_Part `protobuf:"bytes,3,rep,name=parts,proto3" json:"parts,omitempty"`
// Optional. Indicates how many times this example was added to
// the intent. Each time a developer adds an existing sample by editing an
// intent or training, this counter is increased.
TimesAddedCount int32 `protobuf:"varint,4,opt,name=times_added_count,json=timesAddedCount,proto3" json:"times_added_count,omitempty"`
// contains filtered or unexported fields
}Represents an example that the agent is trained on.
func (*Intent_TrainingPhrase) Descriptor
func (*Intent_TrainingPhrase) Descriptor() ([]byte, []int)Deprecated: Use Intent_TrainingPhrase.ProtoReflect.Descriptor instead.
func (*Intent_TrainingPhrase) GetName
func (x *Intent_TrainingPhrase) GetName() stringfunc (*Intent_TrainingPhrase) GetParts
func (x *Intent_TrainingPhrase) GetParts() []*Intent_TrainingPhrase_Partfunc (*Intent_TrainingPhrase) GetTimesAddedCount
func (x *Intent_TrainingPhrase) GetTimesAddedCount() int32func (*Intent_TrainingPhrase) GetType
func (x *Intent_TrainingPhrase) GetType() Intent_TrainingPhrase_Typefunc (*Intent_TrainingPhrase) ProtoMessage
func (*Intent_TrainingPhrase) ProtoMessage()func (*Intent_TrainingPhrase) ProtoReflect
func (x *Intent_TrainingPhrase) ProtoReflect() protoreflect.Messagefunc (*Intent_TrainingPhrase) Reset
func (x *Intent_TrainingPhrase) Reset()func (*Intent_TrainingPhrase) String
func (x *Intent_TrainingPhrase) String() stringIntent_TrainingPhrase_Part
type Intent_TrainingPhrase_Part struct {
// Required. The text for this part.
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// Optional. The entity type name prefixed with `@`.
// This field is required for annotated parts of the training phrase.
EntityType string `protobuf:"bytes,2,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"`
// Optional. The parameter name for the value extracted from the
// annotated part of the example.
// This field is required for annotated parts of the training phrase.
Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
// Optional. Indicates whether the text was manually annotated.
// This field is set to true when the Dialogflow Console is used to
// manually annotate the part. When creating an annotated part with the
// API, you must set this to true.
UserDefined bool `protobuf:"varint,4,opt,name=user_defined,json=userDefined,proto3" json:"user_defined,omitempty"`
// contains filtered or unexported fields
}Represents a part of a training phrase.
func (*Intent_TrainingPhrase_Part) Descriptor
func (*Intent_TrainingPhrase_Part) Descriptor() ([]byte, []int)Deprecated: Use Intent_TrainingPhrase_Part.ProtoReflect.Descriptor instead.
func (*Intent_TrainingPhrase_Part) GetAlias
func (x *Intent_TrainingPhrase_Part) GetAlias() stringfunc (*Intent_TrainingPhrase_Part) GetEntityType
func (x *Intent_TrainingPhrase_Part) GetEntityType() stringfunc (*Intent_TrainingPhrase_Part) GetText
func (x *Intent_TrainingPhrase_Part) GetText() stringfunc (*Intent_TrainingPhrase_Part) GetUserDefined
func (x *Intent_TrainingPhrase_Part) GetUserDefined() boolfunc (*Intent_TrainingPhrase_Part) ProtoMessage
func (*Intent_TrainingPhrase_Part) ProtoMessage()func (*Intent_TrainingPhrase_Part) ProtoReflect
func (x *Intent_TrainingPhrase_Part) ProtoReflect() protoreflect.Messagefunc (*Intent_TrainingPhrase_Part) Reset
func (x *Intent_TrainingPhrase_Part) Reset()func (*Intent_TrainingPhrase_Part) String
func (x *Intent_TrainingPhrase_Part) String() stringIntent_TrainingPhrase_Type
type Intent_TrainingPhrase_Type int32Represents different types of training phrases.
Intent_TrainingPhrase_TYPE_UNSPECIFIED, Intent_TrainingPhrase_EXAMPLE, Intent_TrainingPhrase_TEMPLATE
const (
// Not specified. This value should never be used.
Intent_TrainingPhrase_TYPE_UNSPECIFIED Intent_TrainingPhrase_Type = 0
// Examples do not contain @-prefixed entity type names, but example parts
// can be annotated with entity types.
Intent_TrainingPhrase_EXAMPLE Intent_TrainingPhrase_Type = 1
// Templates are not annotated with entity types, but they can contain
// @-prefixed entity type names as substrings.
// Template mode has been deprecated. Example mode is the only supported
// way to create new training phrases. If you have existing training
// phrases that you've created in template mode, those will continue to
// work.
//
// Deprecated: Marked as deprecated in google/cloud/dialogflow/v2/intent.proto.
Intent_TrainingPhrase_TEMPLATE Intent_TrainingPhrase_Type = 2
)func (Intent_TrainingPhrase_Type) Descriptor
func (Intent_TrainingPhrase_Type) Descriptor() protoreflect.EnumDescriptorfunc (Intent_TrainingPhrase_Type) Enum
func (x Intent_TrainingPhrase_Type) Enum() *Intent_TrainingPhrase_Typefunc (Intent_TrainingPhrase_Type) EnumDescriptor
func (Intent_TrainingPhrase_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use Intent_TrainingPhrase_Type.Descriptor instead.
func (Intent_TrainingPhrase_Type) Number
func (x Intent_TrainingPhrase_Type) Number() protoreflect.EnumNumberfunc (Intent_TrainingPhrase_Type) String
func (x Intent_TrainingPhrase_Type) String() stringfunc (Intent_TrainingPhrase_Type) Type
func (Intent_TrainingPhrase_Type) Type() protoreflect.EnumTypeIntent_WebhookState
type Intent_WebhookState int32Represents the different states that webhooks can be in.
Intent_WEBHOOK_STATE_UNSPECIFIED, Intent_WEBHOOK_STATE_ENABLED, Intent_WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING
const (
// Webhook is disabled in the agent and in the intent.
Intent_WEBHOOK_STATE_UNSPECIFIED Intent_WebhookState = 0
// Webhook is enabled in the agent and in the intent.
Intent_WEBHOOK_STATE_ENABLED Intent_WebhookState = 1
// Webhook is enabled in the agent and in the intent. Also, each slot
// filling prompt is forwarded to the webhook.
Intent_WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING Intent_WebhookState = 2
)func (Intent_WebhookState) Descriptor
func (Intent_WebhookState) Descriptor() protoreflect.EnumDescriptorfunc (Intent_WebhookState) Enum
func (x Intent_WebhookState) Enum() *Intent_WebhookStatefunc (Intent_WebhookState) EnumDescriptor
func (Intent_WebhookState) EnumDescriptor() ([]byte, []int)Deprecated: Use Intent_WebhookState.Descriptor instead.
func (Intent_WebhookState) Number
func (x Intent_WebhookState) Number() protoreflect.EnumNumberfunc (Intent_WebhookState) String
func (x Intent_WebhookState) String() stringfunc (Intent_WebhookState) Type
func (Intent_WebhookState) Type() protoreflect.EnumTypeIntentsClient
type IntentsClient interface {
// Returns the list of all intents in the specified agent.
ListIntents(ctx context.Context, in *ListIntentsRequest, opts ...grpc.CallOption) (*ListIntentsResponse, error)
// Retrieves the specified intent.
GetIntent(ctx context.Context, in *GetIntentRequest, opts ...grpc.CallOption) (*Intent, error)
// Creates an intent in 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).
CreateIntent(ctx context.Context, in *CreateIntentRequest, opts ...grpc.CallOption) (*Intent, error)
// Updates the specified intent.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
UpdateIntent(ctx context.Context, in *UpdateIntentRequest, opts ...grpc.CallOption) (*Intent, error)
// Deletes the specified intent and its direct or indirect followup intents.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
DeleteIntent(ctx context.Context, in *DeleteIntentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Updates/Creates multiple intents in 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`:
//
// [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
BatchUpdateIntents(ctx context.Context, in *BatchUpdateIntentsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes intents in 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).
BatchDeleteIntents(ctx context.Context, in *BatchDeleteIntentsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}IntentsClient is the client API for Intents service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewIntentsClient
func NewIntentsClient(cc grpc.ClientConnInterface) IntentsClientIntentsServer
type IntentsServer interface {
// Returns the list of all intents in the specified agent.
ListIntents(context.Context, *ListIntentsRequest) (*ListIntentsResponse, error)
// Retrieves the specified intent.
GetIntent(context.Context, *GetIntentRequest) (*Intent, error)
// Creates an intent in 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).
CreateIntent(context.Context, *CreateIntentRequest) (*Intent, error)
// Updates the specified intent.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
UpdateIntent(context.Context, *UpdateIntentRequest) (*Intent, error)
// Deletes the specified intent and its direct or indirect followup intents.
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
DeleteIntent(context.Context, *DeleteIntentRequest) (*emptypb.Empty, error)
// Updates/Creates multiple intents in 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`:
//
// [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
//
// Note: You should always train an agent prior to sending it queries. See the
// [training
// documentation](https://cloud.google.com/dialogflow/es/docs/training).
BatchUpdateIntents(context.Context, *BatchUpdateIntentsRequest) (*longrunningpb.Operation, error)
// Deletes intents in 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).
BatchDeleteIntents(context.Context, *BatchDeleteIntentsRequest) (*longrunningpb.Operation, error)
}IntentsServer is the server API for Intents service. All implementations should embed UnimplementedIntentsServer for forward compatibility
KnowledgeAssistAnswer
type KnowledgeAssistAnswer struct {
// The query suggested based on the context. Suggestion is made only if it
// is different from the previous suggestion.
SuggestedQuery *KnowledgeAssistAnswer_SuggestedQuery `protobuf:"bytes,1,opt,name=suggested_query,json=suggestedQuery,proto3" json:"suggested_query,omitempty"`
// The answer generated for the suggested query. Whether or not an answer is
// generated depends on how confident we are about the generated query.
SuggestedQueryAnswer *KnowledgeAssistAnswer_KnowledgeAnswer `protobuf:"bytes,2,opt,name=suggested_query_answer,json=suggestedQueryAnswer,proto3" json:"suggested_query_answer,omitempty"`
// The name of the answer record.
// Format: `projects/Represents a Knowledge Assist answer.
func (*KnowledgeAssistAnswer) Descriptor
func (*KnowledgeAssistAnswer) Descriptor() ([]byte, []int)Deprecated: Use KnowledgeAssistAnswer.ProtoReflect.Descriptor instead.
func (*KnowledgeAssistAnswer) GetAnswerRecord
func (x *KnowledgeAssistAnswer) GetAnswerRecord() stringfunc (*KnowledgeAssistAnswer) GetSuggestedQuery
func (x *KnowledgeAssistAnswer) GetSuggestedQuery() *KnowledgeAssistAnswer_SuggestedQueryfunc (*KnowledgeAssistAnswer) GetSuggestedQueryAnswer
func (x *KnowledgeAssistAnswer) GetSuggestedQueryAnswer() *KnowledgeAssistAnswer_KnowledgeAnswerfunc (*KnowledgeAssistAnswer) ProtoMessage
func (*KnowledgeAssistAnswer) ProtoMessage()func (*KnowledgeAssistAnswer) ProtoReflect
func (x *KnowledgeAssistAnswer) ProtoReflect() protoreflect.Messagefunc (*KnowledgeAssistAnswer) Reset
func (x *KnowledgeAssistAnswer) Reset()func (*KnowledgeAssistAnswer) String
func (x *KnowledgeAssistAnswer) String() stringKnowledgeAssistAnswer_KnowledgeAnswer
type KnowledgeAssistAnswer_KnowledgeAnswer struct {
// The piece of text from the `source` that answers this suggested query.
AnswerText string `protobuf:"bytes,1,opt,name=answer_text,json=answerText,proto3" json:"answer_text,omitempty"`
// Source of result.
//
// Types that are assignable to Source:
//
// *KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_
// *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_
Source isKnowledgeAssistAnswer_KnowledgeAnswer_Source `protobuf_oneof:"source"`
// contains filtered or unexported fields
}Represents an answer from Knowledge. Currently supports FAQ and Generative answers.
func (*KnowledgeAssistAnswer_KnowledgeAnswer) Descriptor
func (*KnowledgeAssistAnswer_KnowledgeAnswer) Descriptor() ([]byte, []int)Deprecated: Use KnowledgeAssistAnswer_KnowledgeAnswer.ProtoReflect.Descriptor instead.
func (*KnowledgeAssistAnswer_KnowledgeAnswer) GetAnswerText
func (x *KnowledgeAssistAnswer_KnowledgeAnswer) GetAnswerText() stringfunc (*KnowledgeAssistAnswer_KnowledgeAnswer) GetFaqSource
func (x *KnowledgeAssistAnswer_KnowledgeAnswer) GetFaqSource() *KnowledgeAssistAnswer_KnowledgeAnswer_FaqSourcefunc (*KnowledgeAssistAnswer_KnowledgeAnswer) GetGenerativeSource
func (x *KnowledgeAssistAnswer_KnowledgeAnswer) GetGenerativeSource() *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSourcefunc (*KnowledgeAssistAnswer_KnowledgeAnswer) GetSource
func (m *KnowledgeAssistAnswer_KnowledgeAnswer) GetSource() isKnowledgeAssistAnswer_KnowledgeAnswer_Sourcefunc (*KnowledgeAssistAnswer_KnowledgeAnswer) ProtoMessage
func (*KnowledgeAssistAnswer_KnowledgeAnswer) ProtoMessage()func (*KnowledgeAssistAnswer_KnowledgeAnswer) ProtoReflect
func (x *KnowledgeAssistAnswer_KnowledgeAnswer) ProtoReflect() protoreflect.Messagefunc (*KnowledgeAssistAnswer_KnowledgeAnswer) Reset
func (x *KnowledgeAssistAnswer_KnowledgeAnswer) Reset()func (*KnowledgeAssistAnswer_KnowledgeAnswer) String
func (x *KnowledgeAssistAnswer_KnowledgeAnswer) String() stringKnowledgeAssistAnswer_KnowledgeAnswer_FaqSource
type KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource struct {
// The corresponding FAQ question.
Question string `protobuf:"bytes,2,opt,name=question,proto3" json:"question,omitempty"`
// contains filtered or unexported fields
}Details about source of FAQ answer.
func (*KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) Descriptor
func (*KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) Descriptor() ([]byte, []int)Deprecated: Use KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource.ProtoReflect.Descriptor instead.
func (*KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) GetQuestion
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) GetQuestion() stringfunc (*KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) ProtoMessage
func (*KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) ProtoMessage()func (*KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) ProtoReflect
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) ProtoReflect() protoreflect.Messagefunc (*KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) Reset
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) Reset()func (*KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) String
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource) String() stringKnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_
type KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_ struct {
// Populated if the prediction came from FAQ.
FaqSource *KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource `protobuf:"bytes,3,opt,name=faq_source,json=faqSource,proto3,oneof"`
}KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource
type KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource struct {
// All snippets used for this Generative Prediction, with their source URI
// and data.
Snippets []*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet `protobuf:"bytes,1,rep,name=snippets,proto3" json:"snippets,omitempty"`
// contains filtered or unexported fields
}Details about source of Generative answer.
func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) Descriptor
func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) Descriptor() ([]byte, []int)Deprecated: Use KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource.ProtoReflect.Descriptor instead.
func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) GetSnippets
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) GetSnippets() []*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippetfunc (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) ProtoMessage
func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) ProtoMessage()func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) ProtoReflect
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) ProtoReflect() protoreflect.Messagefunc (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) Reset
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) Reset()func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) String
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource) String() stringKnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_
type KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_ struct {
// Populated if the prediction was Generative.
GenerativeSource *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource `protobuf:"bytes,4,opt,name=generative_source,json=generativeSource,proto3,oneof"`
}KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet
type KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet struct {
// URI the data is sourced from.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// Text taken from that URI.
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
// Title of the document.
Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
// Metadata of the document.
Metadata *structpb.Struct `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}Snippet Source for a Generative Prediction.
func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) Descriptor
func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) Descriptor() ([]byte, []int)Deprecated: Use KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet.ProtoReflect.Descriptor instead.
func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) GetMetadata
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) GetMetadata() *structpb.Structfunc (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) GetText
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) GetText() stringfunc (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) GetTitle
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) GetTitle() stringfunc (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) GetUri
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) GetUri() stringfunc (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) ProtoMessage
func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) ProtoMessage()func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) ProtoReflect
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) ProtoReflect() protoreflect.Messagefunc (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) Reset
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) Reset()func (*KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) String
func (x *KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet) String() stringKnowledgeAssistAnswer_SuggestedQuery
type KnowledgeAssistAnswer_SuggestedQuery struct {
// Suggested query text.
QueryText string `protobuf:"bytes,1,opt,name=query_text,json=queryText,proto3" json:"query_text,omitempty"`
// contains filtered or unexported fields
}Represents a suggested query.
func (*KnowledgeAssistAnswer_SuggestedQuery) Descriptor
func (*KnowledgeAssistAnswer_SuggestedQuery) Descriptor() ([]byte, []int)Deprecated: Use KnowledgeAssistAnswer_SuggestedQuery.ProtoReflect.Descriptor instead.
func (*KnowledgeAssistAnswer_SuggestedQuery) GetQueryText
func (x *KnowledgeAssistAnswer_SuggestedQuery) GetQueryText() stringfunc (*KnowledgeAssistAnswer_SuggestedQuery) ProtoMessage
func (*KnowledgeAssistAnswer_SuggestedQuery) ProtoMessage()func (*KnowledgeAssistAnswer_SuggestedQuery) ProtoReflect
func (x *KnowledgeAssistAnswer_SuggestedQuery) ProtoReflect() protoreflect.Messagefunc (*KnowledgeAssistAnswer_SuggestedQuery) Reset
func (x *KnowledgeAssistAnswer_SuggestedQuery) Reset()func (*KnowledgeAssistAnswer_SuggestedQuery) String
func (x *KnowledgeAssistAnswer_SuggestedQuery) String() stringKnowledgeBase
type KnowledgeBase struct {
// The knowledge base resource name.
// The name must be empty when creating a knowledge base.
// Format: `projects/A knowledge base represents a collection of knowledge documents that you provide to Dialogflow. Your knowledge documents contain information that may be useful during conversations with end-users. Some Dialogflow features use knowledge bases when looking for a response to an end-user input.
For more information, see the knowledge base guide.
Note: The projects.agent.knowledgeBases resource is deprecated;
only use projects.knowledgeBases.
func (*KnowledgeBase) Descriptor
func (*KnowledgeBase) Descriptor() ([]byte, []int)Deprecated: Use KnowledgeBase.ProtoReflect.Descriptor instead.
func (*KnowledgeBase) GetDisplayName
func (x *KnowledgeBase) GetDisplayName() stringfunc (*KnowledgeBase) GetLanguageCode
func (x *KnowledgeBase) GetLanguageCode() stringfunc (*KnowledgeBase) GetName
func (x *KnowledgeBase) GetName() stringfunc (*KnowledgeBase) ProtoMessage
func (*KnowledgeBase) ProtoMessage()func (*KnowledgeBase) ProtoReflect
func (x *KnowledgeBase) ProtoReflect() protoreflect.Messagefunc (*KnowledgeBase) Reset
func (x *KnowledgeBase) Reset()func (*KnowledgeBase) String
func (x *KnowledgeBase) String() stringKnowledgeBasesClient
type KnowledgeBasesClient interface {
// Returns the list of all knowledge bases of the specified agent.
ListKnowledgeBases(ctx context.Context, in *ListKnowledgeBasesRequest, opts ...grpc.CallOption) (*ListKnowledgeBasesResponse, error)
// Retrieves the specified knowledge base.
GetKnowledgeBase(ctx context.Context, in *GetKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error)
// Creates a knowledge base.
CreateKnowledgeBase(ctx context.Context, in *CreateKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error)
// Deletes the specified knowledge base.
DeleteKnowledgeBase(ctx context.Context, in *DeleteKnowledgeBaseRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Updates the specified knowledge base.
UpdateKnowledgeBase(ctx context.Context, in *UpdateKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error)
}KnowledgeBasesClient is the client API for KnowledgeBases service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewKnowledgeBasesClient
func NewKnowledgeBasesClient(cc grpc.ClientConnInterface) KnowledgeBasesClientKnowledgeBasesServer
type KnowledgeBasesServer interface {
// Returns the list of all knowledge bases of the specified agent.
ListKnowledgeBases(context.Context, *ListKnowledgeBasesRequest) (*ListKnowledgeBasesResponse, error)
// Retrieves the specified knowledge base.
GetKnowledgeBase(context.Context, *GetKnowledgeBaseRequest) (*KnowledgeBase, error)
// Creates a knowledge base.
CreateKnowledgeBase(context.Context, *CreateKnowledgeBaseRequest) (*KnowledgeBase, error)
// Deletes the specified knowledge base.
DeleteKnowledgeBase(context.Context, *DeleteKnowledgeBaseRequest) (*emptypb.Empty, error)
// Updates the specified knowledge base.
UpdateKnowledgeBase(context.Context, *UpdateKnowledgeBaseRequest) (*KnowledgeBase, error)
}KnowledgeBasesServer is the server API for KnowledgeBases service. All implementations should embed UnimplementedKnowledgeBasesServer for forward compatibility
KnowledgeOperationMetadata
type KnowledgeOperationMetadata struct {
// Output only. The current state of this operation.
State KnowledgeOperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.dialogflow.v2.KnowledgeOperationMetadata_State" json:"state,omitempty"`
// The name of the knowledge base interacted with during the operation.
KnowledgeBase string `protobuf:"bytes,3,opt,name=knowledge_base,json=knowledgeBase,proto3" json:"knowledge_base,omitempty"`
// Additional metadata for the Knowledge operation.
//
// Types that are assignable to OperationMetadata:
//
// *KnowledgeOperationMetadata_ExportOperationMetadata
OperationMetadata isKnowledgeOperationMetadata_OperationMetadata `protobuf_oneof:"operation_metadata"`
// contains filtered or unexported fields
}Metadata in google::longrunning::Operation for Knowledge operations.
func (*KnowledgeOperationMetadata) Descriptor
func (*KnowledgeOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use KnowledgeOperationMetadata.ProtoReflect.Descriptor instead.
func (*KnowledgeOperationMetadata) GetExportOperationMetadata
func (x *KnowledgeOperationMetadata) GetExportOperationMetadata() *ExportOperationMetadatafunc (*KnowledgeOperationMetadata) GetKnowledgeBase
func (x *KnowledgeOperationMetadata) GetKnowledgeBase() stringfunc (*KnowledgeOperationMetadata) GetOperationMetadata
func (m *KnowledgeOperationMetadata) GetOperationMetadata() isKnowledgeOperationMetadata_OperationMetadatafunc (*KnowledgeOperationMetadata) GetState
func (x *KnowledgeOperationMetadata) GetState() KnowledgeOperationMetadata_Statefunc (*KnowledgeOperationMetadata) ProtoMessage
func (*KnowledgeOperationMetadata) ProtoMessage()func (*KnowledgeOperationMetadata) ProtoReflect
func (x *KnowledgeOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*KnowledgeOperationMetadata) Reset
func (x *KnowledgeOperationMetadata) Reset()func (*KnowledgeOperationMetadata) String
func (x *KnowledgeOperationMetadata) String() stringKnowledgeOperationMetadata_ExportOperationMetadata
type KnowledgeOperationMetadata_ExportOperationMetadata struct {
// Metadata for the Export Data Operation such as the destination of export.
ExportOperationMetadata *ExportOperationMetadata `protobuf:"bytes,4,opt,name=export_operation_metadata,json=exportOperationMetadata,proto3,oneof"`
}KnowledgeOperationMetadata_State
type KnowledgeOperationMetadata_State int32States of the operation.
KnowledgeOperationMetadata_STATE_UNSPECIFIED, KnowledgeOperationMetadata_PENDING, KnowledgeOperationMetadata_RUNNING, KnowledgeOperationMetadata_DONE
const (
// State unspecified.
KnowledgeOperationMetadata_STATE_UNSPECIFIED KnowledgeOperationMetadata_State = 0
// The operation has been created.
KnowledgeOperationMetadata_PENDING KnowledgeOperationMetadata_State = 1
// The operation is currently running.
KnowledgeOperationMetadata_RUNNING KnowledgeOperationMetadata_State = 2
// The operation is done, either cancelled or completed.
KnowledgeOperationMetadata_DONE KnowledgeOperationMetadata_State = 3
)func (KnowledgeOperationMetadata_State) Descriptor
func (KnowledgeOperationMetadata_State) Descriptor() protoreflect.EnumDescriptorfunc (KnowledgeOperationMetadata_State) Enum
func (x KnowledgeOperationMetadata_State) Enum() *KnowledgeOperationMetadata_Statefunc (KnowledgeOperationMetadata_State) EnumDescriptor
func (KnowledgeOperationMetadata_State) EnumDescriptor() ([]byte, []int)Deprecated: Use KnowledgeOperationMetadata_State.Descriptor instead.
func (KnowledgeOperationMetadata_State) Number
func (x KnowledgeOperationMetadata_State) Number() protoreflect.EnumNumberfunc (KnowledgeOperationMetadata_State) String
func (x KnowledgeOperationMetadata_State) String() stringfunc (KnowledgeOperationMetadata_State) Type
func (KnowledgeOperationMetadata_State) Type() protoreflect.EnumTypeListAnswerRecordsRequest
type ListAnswerRecordsRequest struct {
// Required. The project to list all answer records for in reverse
// chronological order. Format: `projects/Request message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords].
func (*ListAnswerRecordsRequest) Descriptor
func (*ListAnswerRecordsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListAnswerRecordsRequest.ProtoReflect.Descriptor instead.
func (*ListAnswerRecordsRequest) GetFilter
func (x *ListAnswerRecordsRequest) GetFilter() stringfunc (*ListAnswerRecordsRequest) GetPageSize
func (x *ListAnswerRecordsRequest) GetPageSize() int32func (*ListAnswerRecordsRequest) GetPageToken
func (x *ListAnswerRecordsRequest) GetPageToken() stringfunc (*ListAnswerRecordsRequest) GetParent
func (x *ListAnswerRecordsRequest) GetParent() stringfunc (*ListAnswerRecordsRequest) ProtoMessage
func (*ListAnswerRecordsRequest) ProtoMessage()func (*ListAnswerRecordsRequest) ProtoReflect
func (x *ListAnswerRecordsRequest) ProtoReflect() protoreflect.Messagefunc (*ListAnswerRecordsRequest) Reset
func (x *ListAnswerRecordsRequest) Reset()func (*ListAnswerRecordsRequest) String
func (x *ListAnswerRecordsRequest) String() stringListAnswerRecordsResponse
type ListAnswerRecordsResponse struct {
// The list of answer records.
AnswerRecords []*AnswerRecord `protobuf:"bytes,1,rep,name=answer_records,json=answerRecords,proto3" json:"answer_records,omitempty"`
// A token to retrieve next page of results. Or empty if there are no more
// results.
// Pass this value in the
// [ListAnswerRecordsRequest.page_token][google.cloud.dialogflow.v2.ListAnswerRecordsRequest.page_token]
// field in the subsequent call to `ListAnswerRecords` method to retrieve the
// next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords].
func (*ListAnswerRecordsResponse) Descriptor
func (*ListAnswerRecordsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListAnswerRecordsResponse.ProtoReflect.Descriptor instead.
func (*ListAnswerRecordsResponse) GetAnswerRecords
func (x *ListAnswerRecordsResponse) GetAnswerRecords() []*AnswerRecordfunc (*ListAnswerRecordsResponse) GetNextPageToken
func (x *ListAnswerRecordsResponse) GetNextPageToken() stringfunc (*ListAnswerRecordsResponse) ProtoMessage
func (*ListAnswerRecordsResponse) ProtoMessage()func (*ListAnswerRecordsResponse) ProtoReflect
func (x *ListAnswerRecordsResponse) ProtoReflect() protoreflect.Messagefunc (*ListAnswerRecordsResponse) Reset
func (x *ListAnswerRecordsResponse) Reset()func (*ListAnswerRecordsResponse) String
func (x *ListAnswerRecordsResponse) String() stringListContextsRequest
type ListContextsRequest struct {
// Required. The session to list all contexts from.
// Format: `projects/The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
func (*ListContextsRequest) Descriptor
func (*ListContextsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListContextsRequest.ProtoReflect.Descriptor instead.
func (*ListContextsRequest) GetPageSize
func (x *ListContextsRequest) GetPageSize() int32func (*ListContextsRequest) GetPageToken
func (x *ListContextsRequest) GetPageToken() stringfunc (*ListContextsRequest) GetParent
func (x *ListContextsRequest) GetParent() stringfunc (*ListContextsRequest) ProtoMessage
func (*ListContextsRequest) ProtoMessage()func (*ListContextsRequest) ProtoReflect
func (x *ListContextsRequest) ProtoReflect() protoreflect.Messagefunc (*ListContextsRequest) Reset
func (x *ListContextsRequest) Reset()func (*ListContextsRequest) String
func (x *ListContextsRequest) String() stringListContextsResponse
type ListContextsResponse struct {
// The list of contexts. There will be a maximum number of items
// returned based on the page_size field in the request.
Contexts []*Context `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
func (*ListContextsResponse) Descriptor
func (*ListContextsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListContextsResponse.ProtoReflect.Descriptor instead.
func (*ListContextsResponse) GetContexts
func (x *ListContextsResponse) GetContexts() []*Contextfunc (*ListContextsResponse) GetNextPageToken
func (x *ListContextsResponse) GetNextPageToken() stringfunc (*ListContextsResponse) ProtoMessage
func (*ListContextsResponse) ProtoMessage()func (*ListContextsResponse) ProtoReflect
func (x *ListContextsResponse) ProtoReflect() protoreflect.Messagefunc (*ListContextsResponse) Reset
func (x *ListContextsResponse) Reset()func (*ListContextsResponse) String
func (x *ListContextsResponse) String() stringListConversationDatasetsRequest
type ListConversationDatasetsRequest struct {
// Required. The project and location name to list all conversation datasets
// for. Format: `projects/The request message for [ConversationDatasets.ListConversationDatasets][google.cloud.dialogflow.v2.ConversationDatasets.ListConversationDatasets].
func (*ListConversationDatasetsRequest) Descriptor
func (*ListConversationDatasetsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListConversationDatasetsRequest.ProtoReflect.Descriptor instead.
func (*ListConversationDatasetsRequest) GetPageSize
func (x *ListConversationDatasetsRequest) GetPageSize() int32func (*ListConversationDatasetsRequest) GetPageToken
func (x *ListConversationDatasetsRequest) GetPageToken() stringfunc (*ListConversationDatasetsRequest) GetParent
func (x *ListConversationDatasetsRequest) GetParent() stringfunc (*ListConversationDatasetsRequest) ProtoMessage
func (*ListConversationDatasetsRequest) ProtoMessage()func (*ListConversationDatasetsRequest) ProtoReflect
func (x *ListConversationDatasetsRequest) ProtoReflect() protoreflect.Messagefunc (*ListConversationDatasetsRequest) Reset
func (x *ListConversationDatasetsRequest) Reset()func (*ListConversationDatasetsRequest) String
func (x *ListConversationDatasetsRequest) String() stringListConversationDatasetsResponse
type ListConversationDatasetsResponse struct {
// The list of datasets to return.
ConversationDatasets []*ConversationDataset `protobuf:"bytes,1,rep,name=conversation_datasets,json=conversationDatasets,proto3" json:"conversation_datasets,omitempty"`
// The token to use to retrieve the next page of results, or empty if there
// are no more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [ConversationDatasets.ListConversationDatasets][google.cloud.dialogflow.v2.ConversationDatasets.ListConversationDatasets].
func (*ListConversationDatasetsResponse) Descriptor
func (*ListConversationDatasetsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListConversationDatasetsResponse.ProtoReflect.Descriptor instead.
func (*ListConversationDatasetsResponse) GetConversationDatasets
func (x *ListConversationDatasetsResponse) GetConversationDatasets() []*ConversationDatasetfunc (*ListConversationDatasetsResponse) GetNextPageToken
func (x *ListConversationDatasetsResponse) GetNextPageToken() stringfunc (*ListConversationDatasetsResponse) ProtoMessage
func (*ListConversationDatasetsResponse) ProtoMessage()func (*ListConversationDatasetsResponse) ProtoReflect
func (x *ListConversationDatasetsResponse) ProtoReflect() protoreflect.Messagefunc (*ListConversationDatasetsResponse) Reset
func (x *ListConversationDatasetsResponse) Reset()func (*ListConversationDatasetsResponse) String
func (x *ListConversationDatasetsResponse) String() stringListConversationModelEvaluationsRequest
type ListConversationModelEvaluationsRequest struct {
// Required. The conversation model resource name. Format:
// `projects/The request message for [ConversationModels.ListConversationModelEvaluations][google.cloud.dialogflow.v2.ConversationModels.ListConversationModelEvaluations]
func (*ListConversationModelEvaluationsRequest) Descriptor
func (*ListConversationModelEvaluationsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListConversationModelEvaluationsRequest.ProtoReflect.Descriptor instead.
func (*ListConversationModelEvaluationsRequest) GetPageSize
func (x *ListConversationModelEvaluationsRequest) GetPageSize() int32func (*ListConversationModelEvaluationsRequest) GetPageToken
func (x *ListConversationModelEvaluationsRequest) GetPageToken() stringfunc (*ListConversationModelEvaluationsRequest) GetParent
func (x *ListConversationModelEvaluationsRequest) GetParent() stringfunc (*ListConversationModelEvaluationsRequest) ProtoMessage
func (*ListConversationModelEvaluationsRequest) ProtoMessage()func (*ListConversationModelEvaluationsRequest) ProtoReflect
func (x *ListConversationModelEvaluationsRequest) ProtoReflect() protoreflect.Messagefunc (*ListConversationModelEvaluationsRequest) Reset
func (x *ListConversationModelEvaluationsRequest) Reset()func (*ListConversationModelEvaluationsRequest) String
func (x *ListConversationModelEvaluationsRequest) String() stringListConversationModelEvaluationsResponse
type ListConversationModelEvaluationsResponse struct {
// The list of evaluations to return.
ConversationModelEvaluations []*ConversationModelEvaluation `protobuf:"bytes,1,rep,name=conversation_model_evaluations,json=conversationModelEvaluations,proto3" json:"conversation_model_evaluations,omitempty"`
// Token to retrieve the next page of results, or empty if there are no more
// results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [ConversationModels.ListConversationModelEvaluations][google.cloud.dialogflow.v2.ConversationModels.ListConversationModelEvaluations]
func (*ListConversationModelEvaluationsResponse) Descriptor
func (*ListConversationModelEvaluationsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListConversationModelEvaluationsResponse.ProtoReflect.Descriptor instead.
func (*ListConversationModelEvaluationsResponse) GetConversationModelEvaluations
func (x *ListConversationModelEvaluationsResponse) GetConversationModelEvaluations() []*ConversationModelEvaluationfunc (*ListConversationModelEvaluationsResponse) GetNextPageToken
func (x *ListConversationModelEvaluationsResponse) GetNextPageToken() stringfunc (*ListConversationModelEvaluationsResponse) ProtoMessage
func (*ListConversationModelEvaluationsResponse) ProtoMessage()func (*ListConversationModelEvaluationsResponse) ProtoReflect
func (x *ListConversationModelEvaluationsResponse) ProtoReflect() protoreflect.Messagefunc (*ListConversationModelEvaluationsResponse) Reset
func (x *ListConversationModelEvaluationsResponse) Reset()func (*ListConversationModelEvaluationsResponse) String
func (x *ListConversationModelEvaluationsResponse) String() stringListConversationModelsRequest
type ListConversationModelsRequest struct {
// Required. The project to list all conversation models for.
// Format: `projects/The request message for [ConversationModels.ListConversationModels][google.cloud.dialogflow.v2.ConversationModels.ListConversationModels]
func (*ListConversationModelsRequest) Descriptor
func (*ListConversationModelsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListConversationModelsRequest.ProtoReflect.Descriptor instead.
func (*ListConversationModelsRequest) GetPageSize
func (x *ListConversationModelsRequest) GetPageSize() int32func (*ListConversationModelsRequest) GetPageToken
func (x *ListConversationModelsRequest) GetPageToken() stringfunc (*ListConversationModelsRequest) GetParent
func (x *ListConversationModelsRequest) GetParent() stringfunc (*ListConversationModelsRequest) ProtoMessage
func (*ListConversationModelsRequest) ProtoMessage()func (*ListConversationModelsRequest) ProtoReflect
func (x *ListConversationModelsRequest) ProtoReflect() protoreflect.Messagefunc (*ListConversationModelsRequest) Reset
func (x *ListConversationModelsRequest) Reset()func (*ListConversationModelsRequest) String
func (x *ListConversationModelsRequest) String() stringListConversationModelsResponse
type ListConversationModelsResponse struct {
// The list of models to return.
ConversationModels []*ConversationModel `protobuf:"bytes,1,rep,name=conversation_models,json=conversationModels,proto3" json:"conversation_models,omitempty"`
// Token to retrieve the next page of results, or empty if there are no more
// results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [ConversationModels.ListConversationModels][google.cloud.dialogflow.v2.ConversationModels.ListConversationModels]
func (*ListConversationModelsResponse) Descriptor
func (*ListConversationModelsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListConversationModelsResponse.ProtoReflect.Descriptor instead.
func (*ListConversationModelsResponse) GetConversationModels
func (x *ListConversationModelsResponse) GetConversationModels() []*ConversationModelfunc (*ListConversationModelsResponse) GetNextPageToken
func (x *ListConversationModelsResponse) GetNextPageToken() stringfunc (*ListConversationModelsResponse) ProtoMessage
func (*ListConversationModelsResponse) ProtoMessage()func (*ListConversationModelsResponse) ProtoReflect
func (x *ListConversationModelsResponse) ProtoReflect() protoreflect.Messagefunc (*ListConversationModelsResponse) Reset
func (x *ListConversationModelsResponse) Reset()func (*ListConversationModelsResponse) String
func (x *ListConversationModelsResponse) String() stringListConversationProfilesRequest
type ListConversationProfilesRequest struct {
// Required. The project to list all conversation profiles from.
// Format: `projects/The request message for [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfiles].
func (*ListConversationProfilesRequest) Descriptor
func (*ListConversationProfilesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListConversationProfilesRequest.ProtoReflect.Descriptor instead.
func (*ListConversationProfilesRequest) GetPageSize
func (x *ListConversationProfilesRequest) GetPageSize() int32func (*ListConversationProfilesRequest) GetPageToken
func (x *ListConversationProfilesRequest) GetPageToken() stringfunc (*ListConversationProfilesRequest) GetParent
func (x *ListConversationProfilesRequest) GetParent() stringfunc (*ListConversationProfilesRequest) ProtoMessage
func (*ListConversationProfilesRequest) ProtoMessage()func (*ListConversationProfilesRequest) ProtoReflect
func (x *ListConversationProfilesRequest) ProtoReflect() protoreflect.Messagefunc (*ListConversationProfilesRequest) Reset
func (x *ListConversationProfilesRequest) Reset()func (*ListConversationProfilesRequest) String
func (x *ListConversationProfilesRequest) String() stringListConversationProfilesResponse
type ListConversationProfilesResponse struct {
// The list of project conversation profiles. There is a maximum number
// of items returned based on the page_size field in the request.
ConversationProfiles []*ConversationProfile `protobuf:"bytes,1,rep,name=conversation_profiles,json=conversationProfiles,proto3" json:"conversation_profiles,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfiles].
func (*ListConversationProfilesResponse) Descriptor
func (*ListConversationProfilesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListConversationProfilesResponse.ProtoReflect.Descriptor instead.
func (*ListConversationProfilesResponse) GetConversationProfiles
func (x *ListConversationProfilesResponse) GetConversationProfiles() []*ConversationProfilefunc (*ListConversationProfilesResponse) GetNextPageToken
func (x *ListConversationProfilesResponse) GetNextPageToken() stringfunc (*ListConversationProfilesResponse) ProtoMessage
func (*ListConversationProfilesResponse) ProtoMessage()func (*ListConversationProfilesResponse) ProtoReflect
func (x *ListConversationProfilesResponse) ProtoReflect() protoreflect.Messagefunc (*ListConversationProfilesResponse) Reset
func (x *ListConversationProfilesResponse) Reset()func (*ListConversationProfilesResponse) String
func (x *ListConversationProfilesResponse) String() stringListConversationsRequest
type ListConversationsRequest struct {
// Required. The project from which to list all conversation.
// Format: `projects/The request message for [Conversations.ListConversations][google.cloud.dialogflow.v2.Conversations.ListConversations].
func (*ListConversationsRequest) Descriptor
func (*ListConversationsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListConversationsRequest.ProtoReflect.Descriptor instead.
func (*ListConversationsRequest) GetFilter
func (x *ListConversationsRequest) GetFilter() stringfunc (*ListConversationsRequest) GetPageSize
func (x *ListConversationsRequest) GetPageSize() int32func (*ListConversationsRequest) GetPageToken
func (x *ListConversationsRequest) GetPageToken() stringfunc (*ListConversationsRequest) GetParent
func (x *ListConversationsRequest) GetParent() stringfunc (*ListConversationsRequest) ProtoMessage
func (*ListConversationsRequest) ProtoMessage()func (*ListConversationsRequest) ProtoReflect
func (x *ListConversationsRequest) ProtoReflect() protoreflect.Messagefunc (*ListConversationsRequest) Reset
func (x *ListConversationsRequest) Reset()func (*ListConversationsRequest) String
func (x *ListConversationsRequest) String() stringListConversationsResponse
type ListConversationsResponse struct {
// The list of conversations. There will be a maximum number of items
// returned based on the page_size field in the request.
Conversations []*Conversation `protobuf:"bytes,1,rep,name=conversations,proto3" json:"conversations,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [Conversations.ListConversations][google.cloud.dialogflow.v2.Conversations.ListConversations].
func (*ListConversationsResponse) Descriptor
func (*ListConversationsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListConversationsResponse.ProtoReflect.Descriptor instead.
func (*ListConversationsResponse) GetConversations
func (x *ListConversationsResponse) GetConversations() []*Conversationfunc (*ListConversationsResponse) GetNextPageToken
func (x *ListConversationsResponse) GetNextPageToken() stringfunc (*ListConversationsResponse) ProtoMessage
func (*ListConversationsResponse) ProtoMessage()func (*ListConversationsResponse) ProtoReflect
func (x *ListConversationsResponse) ProtoReflect() protoreflect.Messagefunc (*ListConversationsResponse) Reset
func (x *ListConversationsResponse) Reset()func (*ListConversationsResponse) String
func (x *ListConversationsResponse) String() stringListDocumentsRequest
type ListDocumentsRequest struct {
// Required. The knowledge base to list all documents for.
// Format: `projects/Request message for [Documents.ListDocuments][google.cloud.dialogflow.v2.Documents.ListDocuments].
func (*ListDocumentsRequest) Descriptor
func (*ListDocumentsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDocumentsRequest.ProtoReflect.Descriptor instead.
func (*ListDocumentsRequest) GetFilter
func (x *ListDocumentsRequest) GetFilter() stringfunc (*ListDocumentsRequest) GetPageSize
func (x *ListDocumentsRequest) GetPageSize() int32func (*ListDocumentsRequest) GetPageToken
func (x *ListDocumentsRequest) GetPageToken() stringfunc (*ListDocumentsRequest) GetParent
func (x *ListDocumentsRequest) GetParent() stringfunc (*ListDocumentsRequest) ProtoMessage
func (*ListDocumentsRequest) ProtoMessage()func (*ListDocumentsRequest) ProtoReflect
func (x *ListDocumentsRequest) ProtoReflect() protoreflect.Messagefunc (*ListDocumentsRequest) Reset
func (x *ListDocumentsRequest) Reset()func (*ListDocumentsRequest) String
func (x *ListDocumentsRequest) String() stringListDocumentsResponse
type ListDocumentsResponse struct {
// The list of documents.
Documents []*Document `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for [Documents.ListDocuments][google.cloud.dialogflow.v2.Documents.ListDocuments].
func (*ListDocumentsResponse) Descriptor
func (*ListDocumentsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDocumentsResponse.ProtoReflect.Descriptor instead.
func (*ListDocumentsResponse) GetDocuments
func (x *ListDocumentsResponse) GetDocuments() []*Documentfunc (*ListDocumentsResponse) GetNextPageToken
func (x *ListDocumentsResponse) GetNextPageToken() stringfunc (*ListDocumentsResponse) ProtoMessage
func (*ListDocumentsResponse) ProtoMessage()func (*ListDocumentsResponse) ProtoReflect
func (x *ListDocumentsResponse) ProtoReflect() protoreflect.Messagefunc (*ListDocumentsResponse) Reset
func (x *ListDocumentsResponse) Reset()func (*ListDocumentsResponse) String
func (x *ListDocumentsResponse) String() stringListEntityTypesRequest
type ListEntityTypesRequest struct {
// Required. The agent to list all entity types from.
// Format: `projects/The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
func (*ListEntityTypesRequest) Descriptor
func (*ListEntityTypesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListEntityTypesRequest.ProtoReflect.Descriptor instead.
func (*ListEntityTypesRequest) GetLanguageCode
func (x *ListEntityTypesRequest) GetLanguageCode() stringfunc (*ListEntityTypesRequest) GetPageSize
func (x *ListEntityTypesRequest) GetPageSize() int32func (*ListEntityTypesRequest) GetPageToken
func (x *ListEntityTypesRequest) GetPageToken() stringfunc (*ListEntityTypesRequest) GetParent
func (x *ListEntityTypesRequest) GetParent() stringfunc (*ListEntityTypesRequest) ProtoMessage
func (*ListEntityTypesRequest) ProtoMessage()func (*ListEntityTypesRequest) ProtoReflect
func (x *ListEntityTypesRequest) ProtoReflect() protoreflect.Messagefunc (*ListEntityTypesRequest) Reset
func (x *ListEntityTypesRequest) Reset()func (*ListEntityTypesRequest) String
func (x *ListEntityTypesRequest) String() stringListEntityTypesResponse
type ListEntityTypesResponse struct {
// The list of agent entity types. There will be a maximum number of items
// returned based on the page_size field in the request.
EntityTypes []*EntityType `protobuf:"bytes,1,rep,name=entity_types,json=entityTypes,proto3" json:"entity_types,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
func (*ListEntityTypesResponse) Descriptor
func (*ListEntityTypesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListEntityTypesResponse.ProtoReflect.Descriptor instead.
func (*ListEntityTypesResponse) GetEntityTypes
func (x *ListEntityTypesResponse) GetEntityTypes() []*EntityTypefunc (*ListEntityTypesResponse) GetNextPageToken
func (x *ListEntityTypesResponse) GetNextPageToken() stringfunc (*ListEntityTypesResponse) ProtoMessage
func (*ListEntityTypesResponse) ProtoMessage()func (*ListEntityTypesResponse) ProtoReflect
func (x *ListEntityTypesResponse) ProtoReflect() protoreflect.Messagefunc (*ListEntityTypesResponse) Reset
func (x *ListEntityTypesResponse) Reset()func (*ListEntityTypesResponse) String
func (x *ListEntityTypesResponse) String() stringListEnvironmentsRequest
type ListEnvironmentsRequest struct {
// Required. The agent to list all environments from.
// Format:
//
// - `projects/The request message for [Environments.ListEnvironments][google.cloud.dialogflow.v2.Environments.ListEnvironments].
func (*ListEnvironmentsRequest) Descriptor
func (*ListEnvironmentsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListEnvironmentsRequest.ProtoReflect.Descriptor instead.
func (*ListEnvironmentsRequest) GetPageSize
func (x *ListEnvironmentsRequest) GetPageSize() int32func (*ListEnvironmentsRequest) GetPageToken
func (x *ListEnvironmentsRequest) GetPageToken() stringfunc (*ListEnvironmentsRequest) GetParent
func (x *ListEnvironmentsRequest) GetParent() stringfunc (*ListEnvironmentsRequest) ProtoMessage
func (*ListEnvironmentsRequest) ProtoMessage()func (*ListEnvironmentsRequest) ProtoReflect
func (x *ListEnvironmentsRequest) ProtoReflect() protoreflect.Messagefunc (*ListEnvironmentsRequest) Reset
func (x *ListEnvironmentsRequest) Reset()func (*ListEnvironmentsRequest) String
func (x *ListEnvironmentsRequest) String() stringListEnvironmentsResponse
type ListEnvironmentsResponse struct {
// The list of agent environments. There will be a maximum number of items
// returned based on the page_size field in the request.
Environments []*Environment `protobuf:"bytes,1,rep,name=environments,proto3" json:"environments,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [Environments.ListEnvironments][google.cloud.dialogflow.v2.Environments.ListEnvironments].
func (*ListEnvironmentsResponse) Descriptor
func (*ListEnvironmentsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListEnvironmentsResponse.ProtoReflect.Descriptor instead.
func (*ListEnvironmentsResponse) GetEnvironments
func (x *ListEnvironmentsResponse) GetEnvironments() []*Environmentfunc (*ListEnvironmentsResponse) GetNextPageToken
func (x *ListEnvironmentsResponse) GetNextPageToken() stringfunc (*ListEnvironmentsResponse) ProtoMessage
func (*ListEnvironmentsResponse) ProtoMessage()func (*ListEnvironmentsResponse) ProtoReflect
func (x *ListEnvironmentsResponse) ProtoReflect() protoreflect.Messagefunc (*ListEnvironmentsResponse) Reset
func (x *ListEnvironmentsResponse) Reset()func (*ListEnvironmentsResponse) String
func (x *ListEnvironmentsResponse) String() stringListGeneratorsRequest
type ListGeneratorsRequest struct {
// Required. The project/location to list generators for. Format:
// `projects/Request message of ListGenerators.
func (*ListGeneratorsRequest) Descriptor
func (*ListGeneratorsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListGeneratorsRequest.ProtoReflect.Descriptor instead.
func (*ListGeneratorsRequest) GetPageSize
func (x *ListGeneratorsRequest) GetPageSize() int32func (*ListGeneratorsRequest) GetPageToken
func (x *ListGeneratorsRequest) GetPageToken() stringfunc (*ListGeneratorsRequest) GetParent
func (x *ListGeneratorsRequest) GetParent() stringfunc (*ListGeneratorsRequest) ProtoMessage
func (*ListGeneratorsRequest) ProtoMessage()func (*ListGeneratorsRequest) ProtoReflect
func (x *ListGeneratorsRequest) ProtoReflect() protoreflect.Messagefunc (*ListGeneratorsRequest) Reset
func (x *ListGeneratorsRequest) Reset()func (*ListGeneratorsRequest) String
func (x *ListGeneratorsRequest) String() stringListGeneratorsResponse
type ListGeneratorsResponse struct {
// List of generators retrieved.
Generators []*Generator `protobuf:"bytes,1,rep,name=generators,proto3" json:"generators,omitempty"`
// Token to retrieve the next page of results, or empty if there are no more
// results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response of ListGenerators.
func (*ListGeneratorsResponse) Descriptor
func (*ListGeneratorsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListGeneratorsResponse.ProtoReflect.Descriptor instead.
func (*ListGeneratorsResponse) GetGenerators
func (x *ListGeneratorsResponse) GetGenerators() []*Generatorfunc (*ListGeneratorsResponse) GetNextPageToken
func (x *ListGeneratorsResponse) GetNextPageToken() stringfunc (*ListGeneratorsResponse) ProtoMessage
func (*ListGeneratorsResponse) ProtoMessage()func (*ListGeneratorsResponse) ProtoReflect
func (x *ListGeneratorsResponse) ProtoReflect() protoreflect.Messagefunc (*ListGeneratorsResponse) Reset
func (x *ListGeneratorsResponse) Reset()func (*ListGeneratorsResponse) String
func (x *ListGeneratorsResponse) String() stringListIntentsRequest
type ListIntentsRequest struct {
// Required. The agent to list all intents from.
// Format: `projects/The request message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
func (*ListIntentsRequest) Descriptor
func (*ListIntentsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListIntentsRequest.ProtoReflect.Descriptor instead.
func (*ListIntentsRequest) GetIntentView
func (x *ListIntentsRequest) GetIntentView() IntentViewfunc (*ListIntentsRequest) GetLanguageCode
func (x *ListIntentsRequest) GetLanguageCode() stringfunc (*ListIntentsRequest) GetPageSize
func (x *ListIntentsRequest) GetPageSize() int32func (*ListIntentsRequest) GetPageToken
func (x *ListIntentsRequest) GetPageToken() stringfunc (*ListIntentsRequest) GetParent
func (x *ListIntentsRequest) GetParent() stringfunc (*ListIntentsRequest) ProtoMessage
func (*ListIntentsRequest) ProtoMessage()func (*ListIntentsRequest) ProtoReflect
func (x *ListIntentsRequest) ProtoReflect() protoreflect.Messagefunc (*ListIntentsRequest) Reset
func (x *ListIntentsRequest) Reset()func (*ListIntentsRequest) String
func (x *ListIntentsRequest) String() stringListIntentsResponse
type ListIntentsResponse struct {
// The list of agent intents. There will be a maximum number of items
// returned based on the page_size field in the request.
Intents []*Intent `protobuf:"bytes,1,rep,name=intents,proto3" json:"intents,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
func (*ListIntentsResponse) Descriptor
func (*ListIntentsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListIntentsResponse.ProtoReflect.Descriptor instead.
func (*ListIntentsResponse) GetIntents
func (x *ListIntentsResponse) GetIntents() []*Intentfunc (*ListIntentsResponse) GetNextPageToken
func (x *ListIntentsResponse) GetNextPageToken() stringfunc (*ListIntentsResponse) ProtoMessage
func (*ListIntentsResponse) ProtoMessage()func (*ListIntentsResponse) ProtoReflect
func (x *ListIntentsResponse) ProtoReflect() protoreflect.Messagefunc (*ListIntentsResponse) Reset
func (x *ListIntentsResponse) Reset()func (*ListIntentsResponse) String
func (x *ListIntentsResponse) String() stringListKnowledgeBasesRequest
type ListKnowledgeBasesRequest struct {
// Required. The project to list of knowledge bases for.
// Format: `projects/Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBases].
func (*ListKnowledgeBasesRequest) Descriptor
func (*ListKnowledgeBasesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListKnowledgeBasesRequest.ProtoReflect.Descriptor instead.
func (*ListKnowledgeBasesRequest) GetFilter
func (x *ListKnowledgeBasesRequest) GetFilter() stringfunc (*ListKnowledgeBasesRequest) GetPageSize
func (x *ListKnowledgeBasesRequest) GetPageSize() int32func (*ListKnowledgeBasesRequest) GetPageToken
func (x *ListKnowledgeBasesRequest) GetPageToken() stringfunc (*ListKnowledgeBasesRequest) GetParent
func (x *ListKnowledgeBasesRequest) GetParent() stringfunc (*ListKnowledgeBasesRequest) ProtoMessage
func (*ListKnowledgeBasesRequest) ProtoMessage()func (*ListKnowledgeBasesRequest) ProtoReflect
func (x *ListKnowledgeBasesRequest) ProtoReflect() protoreflect.Messagefunc (*ListKnowledgeBasesRequest) Reset
func (x *ListKnowledgeBasesRequest) Reset()func (*ListKnowledgeBasesRequest) String
func (x *ListKnowledgeBasesRequest) String() stringListKnowledgeBasesResponse
type ListKnowledgeBasesResponse struct {
// The list of knowledge bases.
KnowledgeBases []*KnowledgeBase `protobuf:"bytes,1,rep,name=knowledge_bases,json=knowledgeBases,proto3" json:"knowledge_bases,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBases].
func (*ListKnowledgeBasesResponse) Descriptor
func (*ListKnowledgeBasesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListKnowledgeBasesResponse.ProtoReflect.Descriptor instead.
func (*ListKnowledgeBasesResponse) GetKnowledgeBases
func (x *ListKnowledgeBasesResponse) GetKnowledgeBases() []*KnowledgeBasefunc (*ListKnowledgeBasesResponse) GetNextPageToken
func (x *ListKnowledgeBasesResponse) GetNextPageToken() stringfunc (*ListKnowledgeBasesResponse) ProtoMessage
func (*ListKnowledgeBasesResponse) ProtoMessage()func (*ListKnowledgeBasesResponse) ProtoReflect
func (x *ListKnowledgeBasesResponse) ProtoReflect() protoreflect.Messagefunc (*ListKnowledgeBasesResponse) Reset
func (x *ListKnowledgeBasesResponse) Reset()func (*ListKnowledgeBasesResponse) String
func (x *ListKnowledgeBasesResponse) String() stringListMessagesRequest
type ListMessagesRequest struct {
// Required. The name of the conversation to list messages for.
// Format: `projects/The request message for [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages].
func (*ListMessagesRequest) Descriptor
func (*ListMessagesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListMessagesRequest.ProtoReflect.Descriptor instead.
func (*ListMessagesRequest) GetFilter
func (x *ListMessagesRequest) GetFilter() stringfunc (*ListMessagesRequest) GetPageSize
func (x *ListMessagesRequest) GetPageSize() int32func (*ListMessagesRequest) GetPageToken
func (x *ListMessagesRequest) GetPageToken() stringfunc (*ListMessagesRequest) GetParent
func (x *ListMessagesRequest) GetParent() stringfunc (*ListMessagesRequest) ProtoMessage
func (*ListMessagesRequest) ProtoMessage()func (*ListMessagesRequest) ProtoReflect
func (x *ListMessagesRequest) ProtoReflect() protoreflect.Messagefunc (*ListMessagesRequest) Reset
func (x *ListMessagesRequest) Reset()func (*ListMessagesRequest) String
func (x *ListMessagesRequest) String() stringListMessagesResponse
type ListMessagesResponse struct {
// The list of messages. There will be a maximum number of items
// returned based on the page_size field in the request.
// `messages` is sorted by `create_time` in descending order.
Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
// Token to retrieve the next page of results, or empty if there are
// no more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages].
func (*ListMessagesResponse) Descriptor
func (*ListMessagesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListMessagesResponse.ProtoReflect.Descriptor instead.
func (*ListMessagesResponse) GetMessages
func (x *ListMessagesResponse) GetMessages() []*Messagefunc (*ListMessagesResponse) GetNextPageToken
func (x *ListMessagesResponse) GetNextPageToken() stringfunc (*ListMessagesResponse) ProtoMessage
func (*ListMessagesResponse) ProtoMessage()func (*ListMessagesResponse) ProtoReflect
func (x *ListMessagesResponse) ProtoReflect() protoreflect.Messagefunc (*ListMessagesResponse) Reset
func (x *ListMessagesResponse) Reset()func (*ListMessagesResponse) String
func (x *ListMessagesResponse) String() stringListParticipantsRequest
type ListParticipantsRequest struct {
// Required. The conversation to list all participants from.
// Format: `projects/The request message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
func (*ListParticipantsRequest) Descriptor
func (*ListParticipantsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListParticipantsRequest.ProtoReflect.Descriptor instead.
func (*ListParticipantsRequest) GetPageSize
func (x *ListParticipantsRequest) GetPageSize() int32func (*ListParticipantsRequest) GetPageToken
func (x *ListParticipantsRequest) GetPageToken() stringfunc (*ListParticipantsRequest) GetParent
func (x *ListParticipantsRequest) GetParent() stringfunc (*ListParticipantsRequest) ProtoMessage
func (*ListParticipantsRequest) ProtoMessage()func (*ListParticipantsRequest) ProtoReflect
func (x *ListParticipantsRequest) ProtoReflect() protoreflect.Messagefunc (*ListParticipantsRequest) Reset
func (x *ListParticipantsRequest) Reset()func (*ListParticipantsRequest) String
func (x *ListParticipantsRequest) String() stringListParticipantsResponse
type ListParticipantsResponse struct {
// The list of participants. There is a maximum number of items
// returned based on the page_size field in the request.
Participants []*Participant `protobuf:"bytes,1,rep,name=participants,proto3" json:"participants,omitempty"`
// Token to retrieve the next page of results or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
func (*ListParticipantsResponse) Descriptor
func (*ListParticipantsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListParticipantsResponse.ProtoReflect.Descriptor instead.
func (*ListParticipantsResponse) GetNextPageToken
func (x *ListParticipantsResponse) GetNextPageToken() stringfunc (*ListParticipantsResponse) GetParticipants
func (x *ListParticipantsResponse) GetParticipants() []*Participantfunc (*ListParticipantsResponse) ProtoMessage
func (*ListParticipantsResponse) ProtoMessage()func (*ListParticipantsResponse) ProtoReflect
func (x *ListParticipantsResponse) ProtoReflect() protoreflect.Messagefunc (*ListParticipantsResponse) Reset
func (x *ListParticipantsResponse) Reset()func (*ListParticipantsResponse) String
func (x *ListParticipantsResponse) String() stringListSessionEntityTypesRequest
type ListSessionEntityTypesRequest struct {
// Required. The session to list all session entity types from.
// Format: `projects/The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
func (*ListSessionEntityTypesRequest) Descriptor
func (*ListSessionEntityTypesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListSessionEntityTypesRequest.ProtoReflect.Descriptor instead.
func (*ListSessionEntityTypesRequest) GetPageSize
func (x *ListSessionEntityTypesRequest) GetPageSize() int32func (*ListSessionEntityTypesRequest) GetPageToken
func (x *ListSessionEntityTypesRequest) GetPageToken() stringfunc (*ListSessionEntityTypesRequest) GetParent
func (x *ListSessionEntityTypesRequest) GetParent() stringfunc (*ListSessionEntityTypesRequest) ProtoMessage
func (*ListSessionEntityTypesRequest) ProtoMessage()func (*ListSessionEntityTypesRequest) ProtoReflect
func (x *ListSessionEntityTypesRequest) ProtoReflect() protoreflect.Messagefunc (*ListSessionEntityTypesRequest) Reset
func (x *ListSessionEntityTypesRequest) Reset()func (*ListSessionEntityTypesRequest) String
func (x *ListSessionEntityTypesRequest) String() stringListSessionEntityTypesResponse
type ListSessionEntityTypesResponse struct {
// The list of session entity types. There will be a maximum number of items
// returned based on the page_size field in the request.
SessionEntityTypes []*SessionEntityType `protobuf:"bytes,1,rep,name=session_entity_types,json=sessionEntityTypes,proto3" json:"session_entity_types,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
func (*ListSessionEntityTypesResponse) Descriptor
func (*ListSessionEntityTypesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListSessionEntityTypesResponse.ProtoReflect.Descriptor instead.
func (*ListSessionEntityTypesResponse) GetNextPageToken
func (x *ListSessionEntityTypesResponse) GetNextPageToken() stringfunc (*ListSessionEntityTypesResponse) GetSessionEntityTypes
func (x *ListSessionEntityTypesResponse) GetSessionEntityTypes() []*SessionEntityTypefunc (*ListSessionEntityTypesResponse) ProtoMessage
func (*ListSessionEntityTypesResponse) ProtoMessage()func (*ListSessionEntityTypesResponse) ProtoReflect
func (x *ListSessionEntityTypesResponse) ProtoReflect() protoreflect.Messagefunc (*ListSessionEntityTypesResponse) Reset
func (x *ListSessionEntityTypesResponse) Reset()func (*ListSessionEntityTypesResponse) String
func (x *ListSessionEntityTypesResponse) String() stringListVersionsRequest
type ListVersionsRequest struct {
// Required. The agent to list all versions from.
// Supported formats:
//
// - `projects/The request message for [Versions.ListVersions][google.cloud.dialogflow.v2.Versions.ListVersions].
func (*ListVersionsRequest) Descriptor
func (*ListVersionsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListVersionsRequest.ProtoReflect.Descriptor instead.
func (*ListVersionsRequest) GetPageSize
func (x *ListVersionsRequest) GetPageSize() int32func (*ListVersionsRequest) GetPageToken
func (x *ListVersionsRequest) GetPageToken() stringfunc (*ListVersionsRequest) GetParent
func (x *ListVersionsRequest) GetParent() stringfunc (*ListVersionsRequest) ProtoMessage
func (*ListVersionsRequest) ProtoMessage()func (*ListVersionsRequest) ProtoReflect
func (x *ListVersionsRequest) ProtoReflect() protoreflect.Messagefunc (*ListVersionsRequest) Reset
func (x *ListVersionsRequest) Reset()func (*ListVersionsRequest) String
func (x *ListVersionsRequest) String() stringListVersionsResponse
type ListVersionsResponse struct {
// The list of agent versions. There will be a maximum number of items
// returned based on the page_size field in the request.
Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [Versions.ListVersions][google.cloud.dialogflow.v2.Versions.ListVersions].
func (*ListVersionsResponse) Descriptor
func (*ListVersionsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListVersionsResponse.ProtoReflect.Descriptor instead.
func (*ListVersionsResponse) GetNextPageToken
func (x *ListVersionsResponse) GetNextPageToken() stringfunc (*ListVersionsResponse) GetVersions
func (x *ListVersionsResponse) GetVersions() []*Versionfunc (*ListVersionsResponse) ProtoMessage
func (*ListVersionsResponse) ProtoMessage()func (*ListVersionsResponse) ProtoReflect
func (x *ListVersionsResponse) ProtoReflect() protoreflect.Messagefunc (*ListVersionsResponse) Reset
func (x *ListVersionsResponse) Reset()func (*ListVersionsResponse) String
func (x *ListVersionsResponse) String() stringLoggingConfig
type LoggingConfig struct {
// Whether to log conversation events like
// [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED]
// to Stackdriver in the conversation project as JSON format
// [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.
EnableStackdriverLogging bool `protobuf:"varint,3,opt,name=enable_stackdriver_logging,json=enableStackdriverLogging,proto3" json:"enable_stackdriver_logging,omitempty"`
// contains filtered or unexported fields
}Defines logging behavior for conversation lifecycle events.
func (*LoggingConfig) Descriptor
func (*LoggingConfig) Descriptor() ([]byte, []int)Deprecated: Use LoggingConfig.ProtoReflect.Descriptor instead.
func (*LoggingConfig) GetEnableStackdriverLogging
func (x *LoggingConfig) GetEnableStackdriverLogging() boolfunc (*LoggingConfig) ProtoMessage
func (*LoggingConfig) ProtoMessage()func (*LoggingConfig) ProtoReflect
func (x *LoggingConfig) ProtoReflect() protoreflect.Messagefunc (*LoggingConfig) Reset
func (x *LoggingConfig) Reset()func (*LoggingConfig) String
func (x *LoggingConfig) String() stringMessage
type Message struct {
// Optional. The unique identifier of the message.
// Format: `projects/Represents a message posted into a conversation.
func (*Message) Descriptor
Deprecated: Use Message.ProtoReflect.Descriptor instead.
func (*Message) GetContent
func (*Message) GetCreateTime
func (x *Message) GetCreateTime() *timestamppb.Timestampfunc (*Message) GetLanguageCode
func (*Message) GetMessageAnnotation
func (x *Message) GetMessageAnnotation() *MessageAnnotationfunc (*Message) GetName
func (*Message) GetParticipant
func (*Message) GetParticipantRole
func (x *Message) GetParticipantRole() Participant_Rolefunc (*Message) GetSendTime
func (x *Message) GetSendTime() *timestamppb.Timestampfunc (*Message) GetSentimentAnalysis
func (x *Message) GetSentimentAnalysis() *SentimentAnalysisResultfunc (*Message) ProtoMessage
func (*Message) ProtoMessage()func (*Message) ProtoReflect
func (x *Message) ProtoReflect() protoreflect.Messagefunc (*Message) Reset
func (x *Message) Reset()func (*Message) String
MessageAnnotation
type MessageAnnotation struct {
// The collection of annotated message parts ordered by their
// position in the message. You can recover the annotated message by
// concatenating [AnnotatedMessagePart.text].
Parts []*AnnotatedMessagePart `protobuf:"bytes,1,rep,name=parts,proto3" json:"parts,omitempty"`
// Indicates whether the text message contains entities.
ContainEntities bool `protobuf:"varint,2,opt,name=contain_entities,json=containEntities,proto3" json:"contain_entities,omitempty"`
// contains filtered or unexported fields
}Represents the result of annotation for the message.
func (*MessageAnnotation) Descriptor
func (*MessageAnnotation) Descriptor() ([]byte, []int)Deprecated: Use MessageAnnotation.ProtoReflect.Descriptor instead.
func (*MessageAnnotation) GetContainEntities
func (x *MessageAnnotation) GetContainEntities() boolfunc (*MessageAnnotation) GetParts
func (x *MessageAnnotation) GetParts() []*AnnotatedMessagePartfunc (*MessageAnnotation) ProtoMessage
func (*MessageAnnotation) ProtoMessage()func (*MessageAnnotation) ProtoReflect
func (x *MessageAnnotation) ProtoReflect() protoreflect.Messagefunc (*MessageAnnotation) Reset
func (x *MessageAnnotation) Reset()func (*MessageAnnotation) String
func (x *MessageAnnotation) String() stringMessageEntry
type MessageEntry struct {
// Optional. Participant role of the message.
Role MessageEntry_Role `protobuf:"varint,1,opt,name=role,proto3,enum=google.cloud.dialogflow.v2.MessageEntry_Role" json:"role,omitempty"`
// Optional. Transcript content of the message.
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
// Optional. The language of the text. See [Language
// Support](https://cloud.google.com/dialogflow/docs/reference/language) for a
// list of the currently supported language codes.
LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Optional. Create time of the message entry.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}Represents a message entry of a conversation.
func (*MessageEntry) Descriptor
func (*MessageEntry) Descriptor() ([]byte, []int)Deprecated: Use MessageEntry.ProtoReflect.Descriptor instead.
func (*MessageEntry) GetCreateTime
func (x *MessageEntry) GetCreateTime() *timestamppb.Timestampfunc (*MessageEntry) GetLanguageCode
func (x *MessageEntry) GetLanguageCode() stringfunc (*MessageEntry) GetRole
func (x *MessageEntry) GetRole() MessageEntry_Rolefunc (*MessageEntry) GetText
func (x *MessageEntry) GetText() stringfunc (*MessageEntry) ProtoMessage
func (*MessageEntry) ProtoMessage()func (*MessageEntry) ProtoReflect
func (x *MessageEntry) ProtoReflect() protoreflect.Messagefunc (*MessageEntry) Reset
func (x *MessageEntry) Reset()func (*MessageEntry) String
func (x *MessageEntry) String() stringMessageEntry_Role
type MessageEntry_Role int32Enumeration of the roles a participant can play in a conversation.
MessageEntry_ROLE_UNSPECIFIED, MessageEntry_HUMAN_AGENT, MessageEntry_AUTOMATED_AGENT, MessageEntry_END_USER
const (
// Participant role not set.
MessageEntry_ROLE_UNSPECIFIED MessageEntry_Role = 0
// Participant is a human agent.
MessageEntry_HUMAN_AGENT MessageEntry_Role = 1
// Participant is an automated agent, such as a Dialogflow agent.
MessageEntry_AUTOMATED_AGENT MessageEntry_Role = 2
// Participant is an end user that has called or chatted with
// Dialogflow services.
MessageEntry_END_USER MessageEntry_Role = 3
)func (MessageEntry_Role) Descriptor
func (MessageEntry_Role) Descriptor() protoreflect.EnumDescriptorfunc (MessageEntry_Role) Enum
func (x MessageEntry_Role) Enum() *MessageEntry_Rolefunc (MessageEntry_Role) EnumDescriptor
func (MessageEntry_Role) EnumDescriptor() ([]byte, []int)Deprecated: Use MessageEntry_Role.Descriptor instead.
func (MessageEntry_Role) Number
func (x MessageEntry_Role) Number() protoreflect.EnumNumberfunc (MessageEntry_Role) String
func (x MessageEntry_Role) String() stringfunc (MessageEntry_Role) Type
func (MessageEntry_Role) Type() protoreflect.EnumTypeNotificationConfig
type NotificationConfig struct {
// Name of the Pub/Sub topic to publish conversation
// events like
// [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED]
// as serialized
// [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.
//
// For telephony integration to receive notification, make sure either this
// topic is in the same project as the conversation or you grant
// `service-Defines notification behavior.
func (*NotificationConfig) Descriptor
func (*NotificationConfig) Descriptor() ([]byte, []int)Deprecated: Use NotificationConfig.ProtoReflect.Descriptor instead.
func (*NotificationConfig) GetMessageFormat
func (x *NotificationConfig) GetMessageFormat() NotificationConfig_MessageFormatfunc (*NotificationConfig) GetTopic
func (x *NotificationConfig) GetTopic() stringfunc (*NotificationConfig) ProtoMessage
func (*NotificationConfig) ProtoMessage()func (*NotificationConfig) ProtoReflect
func (x *NotificationConfig) ProtoReflect() protoreflect.Messagefunc (*NotificationConfig) Reset
func (x *NotificationConfig) Reset()func (*NotificationConfig) String
func (x *NotificationConfig) String() stringNotificationConfig_MessageFormat
type NotificationConfig_MessageFormat int32Format of cloud pub/sub message.
NotificationConfig_MESSAGE_FORMAT_UNSPECIFIED, NotificationConfig_PROTO, NotificationConfig_JSON
const (
// If it is unspecified, PROTO will be used.
NotificationConfig_MESSAGE_FORMAT_UNSPECIFIED NotificationConfig_MessageFormat = 0
// Pub/Sub message will be serialized proto.
NotificationConfig_PROTO NotificationConfig_MessageFormat = 1
// Pub/Sub message will be json.
NotificationConfig_JSON NotificationConfig_MessageFormat = 2
)func (NotificationConfig_MessageFormat) Descriptor
func (NotificationConfig_MessageFormat) Descriptor() protoreflect.EnumDescriptorfunc (NotificationConfig_MessageFormat) Enum
func (x NotificationConfig_MessageFormat) Enum() *NotificationConfig_MessageFormatfunc (NotificationConfig_MessageFormat) EnumDescriptor
func (NotificationConfig_MessageFormat) EnumDescriptor() ([]byte, []int)Deprecated: Use NotificationConfig_MessageFormat.Descriptor instead.
func (NotificationConfig_MessageFormat) Number
func (x NotificationConfig_MessageFormat) Number() protoreflect.EnumNumberfunc (NotificationConfig_MessageFormat) String
func (x NotificationConfig_MessageFormat) String() stringfunc (NotificationConfig_MessageFormat) Type
func (NotificationConfig_MessageFormat) Type() protoreflect.EnumTypeOriginalDetectIntentRequest
type OriginalDetectIntentRequest struct {
// The source of this request, e.g., `google`, `facebook`, `slack`. It is set
// by Dialogflow-owned servers.
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
// Optional. The version of the protocol used for this request.
// This field is AoG-specific.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Optional. This field is set to the value of the `QueryParameters.payload`
// field passed in the request. Some integrations that query a Dialogflow
// agent may provide additional information in the payload.
//
// In particular, for the Dialogflow Phone Gateway integration, this field has
// the form:
//
// {
// "telephony": {
// "caller_id": "+18558363987"
// }
// }Represents the contents of the original request that was passed to
the [Streaming]DetectIntent call.
func (*OriginalDetectIntentRequest) Descriptor
func (*OriginalDetectIntentRequest) Descriptor() ([]byte, []int)Deprecated: Use OriginalDetectIntentRequest.ProtoReflect.Descriptor instead.
func (*OriginalDetectIntentRequest) GetPayload
func (x *OriginalDetectIntentRequest) GetPayload() *structpb.Structfunc (*OriginalDetectIntentRequest) GetSource
func (x *OriginalDetectIntentRequest) GetSource() stringfunc (*OriginalDetectIntentRequest) GetVersion
func (x *OriginalDetectIntentRequest) GetVersion() stringfunc (*OriginalDetectIntentRequest) ProtoMessage
func (*OriginalDetectIntentRequest) ProtoMessage()func (*OriginalDetectIntentRequest) ProtoReflect
func (x *OriginalDetectIntentRequest) ProtoReflect() protoreflect.Messagefunc (*OriginalDetectIntentRequest) Reset
func (x *OriginalDetectIntentRequest) Reset()func (*OriginalDetectIntentRequest) String
func (x *OriginalDetectIntentRequest) String() stringOutputAudio
type OutputAudio struct {
// Instructs the speech synthesizer how to generate the speech
// audio.
Config *OutputAudioConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
// The natural language speech audio.
Audio []byte `protobuf:"bytes,2,opt,name=audio,proto3" json:"audio,omitempty"`
// contains filtered or unexported fields
}Represents the natural language speech audio to be played to the end user.
func (*OutputAudio) Descriptor
func (*OutputAudio) Descriptor() ([]byte, []int)Deprecated: Use OutputAudio.ProtoReflect.Descriptor instead.
func (*OutputAudio) GetAudio
func (x *OutputAudio) GetAudio() []bytefunc (*OutputAudio) GetConfig
func (x *OutputAudio) GetConfig() *OutputAudioConfigfunc (*OutputAudio) ProtoMessage
func (*OutputAudio) ProtoMessage()func (*OutputAudio) ProtoReflect
func (x *OutputAudio) ProtoReflect() protoreflect.Messagefunc (*OutputAudio) Reset
func