Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
var (
	AudioEncoding_name = map[int32]string{
		0: "AUDIO_ENCODING_UNSPECIFIED",
		1: "AUDIO_ENCODING_LINEAR_16",
		2: "AUDIO_ENCODING_FLAC",
		3: "AUDIO_ENCODING_MULAW",
		4: "AUDIO_ENCODING_AMR",
		5: "AUDIO_ENCODING_AMR_WB",
		6: "AUDIO_ENCODING_OGG_OPUS",
		7: "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE",
	}
	AudioEncoding_value = map[string]int32{
		"AUDIO_ENCODING_UNSPECIFIED":            0,
		"AUDIO_ENCODING_LINEAR_16":              1,
		"AUDIO_ENCODING_FLAC":                   2,
		"AUDIO_ENCODING_MULAW":                  3,
		"AUDIO_ENCODING_AMR":                    4,
		"AUDIO_ENCODING_AMR_WB":                 5,
		"AUDIO_ENCODING_OGG_OPUS":               6,
		"AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": 7,
	}
)

Enum value maps for AudioEncoding.

View Source
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.

View Source
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.

View Source
var (
	OutputAudioEncoding_name = map[int32]string{
		0: "OUTPUT_AUDIO_ENCODING_UNSPECIFIED",
		1: "OUTPUT_AUDIO_ENCODING_LINEAR_16",
		2: "OUTPUT_AUDIO_ENCODING_MP3",
		3: "OUTPUT_AUDIO_ENCODING_OGG_OPUS",
	}
	OutputAudioEncoding_value = map[string]int32{
		"OUTPUT_AUDIO_ENCODING_UNSPECIFIED": 0,
		"OUTPUT_AUDIO_ENCODING_LINEAR_16":   1,
		"OUTPUT_AUDIO_ENCODING_MP3":         2,
		"OUTPUT_AUDIO_ENCODING_OGG_OPUS":    3,
	}
)

Enum value maps for OutputAudioEncoding.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_google_cloud_dialogflow_v2_agent_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_dialogflow_v2_audio_config_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_dialogflow_v2_context_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_dialogflow_v2_entity_type_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_dialogflow_v2_environment_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_dialogflow_v2_intent_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_dialogflow_v2_session_entity_type_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_dialogflow_v2_session_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_dialogflow_v2_validation_result_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_dialogflow_v2_webhook_proto protoreflect.FileDescriptor

Functions

func RegisterAgentsServer

func RegisterAgentsServer(s *grpc.Server, srv AgentsServer)

func RegisterContextsServer

func RegisterContextsServer(s *grpc.Server, srv ContextsServer)

func RegisterEntityTypesServer

func RegisterEntityTypesServer(s *grpc.Server, srv EntityTypesServer)

func RegisterEnvironmentsServer

func RegisterEnvironmentsServer(s *grpc.Server, srv EnvironmentsServer)

func RegisterIntentsServer

func RegisterIntentsServer(s *grpc.Server, srv IntentsServer)

func RegisterSessionEntityTypesServer

func RegisterSessionEntityTypesServer(s *grpc.Server, srv SessionEntityTypesServer)

func RegisterSessionsServer

func RegisterSessionsServer(s *grpc.Server, srv SessionsServer)

Types

type Agent

type Agent struct {

	// Required. The project of this agent.
	// Format: `projects/<Project ID>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The name of this agent.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Required. The default language of the agent as a language tag. See
	// [Language
	// Support](https://cloud.google.com/dialogflow/docs/reference/language)
	// for a list of the currently supported language codes. This field cannot be
	// set by the `Update` method.
	DefaultLanguageCode string `protobuf:"bytes,3,opt,name=default_language_code,json=defaultLanguageCode,proto3" json:"default_language_code,omitempty"`
	// Optional. The list of all languages supported by this agent (except for the
	// `default_language_code`).
	SupportedLanguageCodes []string `` /* 129-byte string literal not displayed */
	// Required. The time zone of this agent from the
	// [time zone database](https://www.iana.org/time-zones), e.g.,
	// America/New_York, Europe/Paris.
	TimeZone string `protobuf:"bytes,5,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
	// Optional. The description of this agent.
	// The maximum length is 500 characters. If exceeded, the request is rejected.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// Optional. The URI of the agent's avatar.
	// Avatars are used throughout the Dialogflow console and in the self-hosted
	// [Web
	// Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
	// integration.
	AvatarUri string `protobuf:"bytes,7,opt,name=avatar_uri,json=avatarUri,proto3" json:"avatar_uri,omitempty"`
	// Optional. Determines whether this agent should log conversation queries.
	EnableLogging bool `protobuf:"varint,8,opt,name=enable_logging,json=enableLogging,proto3" json:"enable_logging,omitempty"`
	// Optional. Determines how intents are detected from user queries.
	//
	// Deprecated: Do not use.
	MatchMode Agent_MatchMode `` /* 137-byte string literal not displayed */
	// Optional. To filter out false positive results and still get variety in
	// matched natural language inputs for your agent, you can tune the machine
	// learning classification threshold. If the returned score value is less than
	// the threshold value, then a fallback intent will be triggered or, if there
	// are no fallback intents defined, no intent will be triggered. The score
	// values range from 0.0 (completely uncertain) to 1.0 (completely certain).
	// If set to 0.0, the default of 0.3 is used.
	ClassificationThreshold float32 `` /* 133-byte string literal not displayed */
	// Optional. API version displayed in Dialogflow console. If not specified,
	// V2 API is assumed. Clients are free to query different service endpoints
	// for different API versions. However, bots connectors and webhook calls will
	// follow the specified API version.
	ApiVersion Agent_ApiVersion `` /* 142-byte string literal not displayed */
	// Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
	Tier Agent_Tier `protobuf:"varint,15,opt,name=tier,proto3,enum=google.cloud.dialogflow.v2.Agent_Tier" json:"tier,omitempty"`
	// contains filtered or unexported fields
}

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](https://cloud.google.com/dialogflow/docs/agents-overview).

func (*Agent) Descriptor

func (*Agent) Descriptor() ([]byte, []int)

Deprecated: Use Agent.ProtoReflect.Descriptor instead.

func (*Agent) GetApiVersion

func (x *Agent) GetApiVersion() Agent_ApiVersion

func (*Agent) GetAvatarUri

func (x *Agent) GetAvatarUri() string

func (*Agent) GetClassificationThreshold

func (x *Agent) GetClassificationThreshold() float32

func (*Agent) GetDefaultLanguageCode

func (x *Agent) GetDefaultLanguageCode() string

func (*Agent) GetDescription

func (x *Agent) GetDescription() string

func (*Agent) GetDisplayName

func (x *Agent) GetDisplayName() string

func (*Agent) GetEnableLogging

func (x *Agent) GetEnableLogging() bool

func (*Agent) GetMatchMode

func (x *Agent) GetMatchMode() Agent_MatchMode

Deprecated: Do not use.

func (*Agent) GetParent

func (x *Agent) GetParent() string

func (*Agent) GetSupportedLanguageCodes

func (x *Agent) GetSupportedLanguageCodes() []string

func (*Agent) GetTier

func (x *Agent) GetTier() Agent_Tier

func (*Agent) GetTimeZone

func (x *Agent) GetTimeZone() string

func (*Agent) ProtoMessage

func (*Agent) ProtoMessage()

func (*Agent) ProtoReflect

func (x *Agent) ProtoReflect() protoreflect.Message

func (*Agent) Reset

func (x *Agent) Reset()

func (*Agent) String

func (x *Agent) String() string

type Agent_ApiVersion

type Agent_ApiVersion int32

API version for the agent.

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) Enum

func (Agent_ApiVersion) EnumDescriptor

func (Agent_ApiVersion) EnumDescriptor() ([]byte, []int)

Deprecated: Use Agent_ApiVersion.Descriptor instead.

func (Agent_ApiVersion) Number

func (Agent_ApiVersion) String

func (x Agent_ApiVersion) String() string

func (Agent_ApiVersion) Type

type Agent_MatchMode

type Agent_MatchMode int32

Match mode determines how intents are detected from user queries.

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) Enum

func (x Agent_MatchMode) Enum() *Agent_MatchMode

func (Agent_MatchMode) EnumDescriptor

func (Agent_MatchMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use Agent_MatchMode.Descriptor instead.

func (Agent_MatchMode) Number

func (Agent_MatchMode) String

func (x Agent_MatchMode) String() string

func (Agent_MatchMode) Type

type Agent_Tier

type Agent_Tier int32

Represents the agent tier.

const (
	// Not specified. This value should never be used.
	Agent_TIER_UNSPECIFIED Agent_Tier = 0
	// Standard tier.
	Agent_TIER_STANDARD Agent_Tier = 1
	// Enterprise tier (Essentials).
	Agent_TIER_ENTERPRISE Agent_Tier = 2
	// Enterprise tier (Plus).
	Agent_TIER_ENTERPRISE_PLUS Agent_Tier = 3
)

func (Agent_Tier) Descriptor

func (Agent_Tier) Descriptor() protoreflect.EnumDescriptor

func (Agent_Tier) Enum

func (x Agent_Tier) Enum() *Agent_Tier

func (Agent_Tier) EnumDescriptor

func (Agent_Tier) EnumDescriptor() ([]byte, []int)

Deprecated: Use Agent_Tier.Descriptor instead.

func (Agent_Tier) Number

func (x Agent_Tier) Number() protoreflect.EnumNumber

func (Agent_Tier) String

func (x Agent_Tier) String() string

func (Agent_Tier) Type

type AgentsClient

type AgentsClient interface {
	// Retrieves the specified agent.
	GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error)
	// Creates/updates the specified agent.
	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.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Exports the specified agent to a ZIP file.
	//
	// Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]>
	ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Imports the specified agent from a ZIP file.
	//
	// Uploads new intents and entity types without deleting the existing ones.
	// Intents and entity types with the same name are replaced with the new
	// versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft
	// agent will be trained automatically (unless disabled in agent settings).
	// However, once the import is done, training may not be completed yet. Please
	// call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train
	// explicitly.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	// An operation which tracks when importing is complete. It only tracks
	// when the draft agent is updated not when it is done training.
	ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Restores the specified agent from a ZIP file.
	//
	// Replaces the current agent version with a new one. All the intents and
	// entity types in the older version are deleted. After the restore, the
	// restored draft agent will be trained automatically (unless disabled in
	// agent settings). However, once the restore is done, training may not be
	// completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it
	// returns in order to train explicitly.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	// An operation which tracks when restoring is complete. It only tracks
	// when the draft agent is updated not when it is done training.
	RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Gets agent validation result. Agent validation is performed during
	// training time and is updated automatically when training is completed.
	GetValidationResult(ctx context.Context, in *GetValidationResultRequest, opts ...grpc.CallOption) (*ValidationResult, error)
}

AgentsClient is the client API for Agents service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAgentsClient

func NewAgentsClient(cc grpc.ClientConnInterface) AgentsClient

type AgentsServer

type AgentsServer interface {
	// Retrieves the specified agent.
	GetAgent(context.Context, *GetAgentRequest) (*Agent, error)
	// Creates/updates the specified agent.
	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.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	TrainAgent(context.Context, *TrainAgentRequest) (*longrunning.Operation, error)
	// Exports the specified agent to a ZIP file.
	//
	// Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]>
	ExportAgent(context.Context, *ExportAgentRequest) (*longrunning.Operation, error)
	// Imports the specified agent from a ZIP file.
	//
	// Uploads new intents and entity types without deleting the existing ones.
	// Intents and entity types with the same name are replaced with the new
	// versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft
	// agent will be trained automatically (unless disabled in agent settings).
	// However, once the import is done, training may not be completed yet. Please
	// call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train
	// explicitly.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	// An operation which tracks when importing is complete. It only tracks
	// when the draft agent is updated not when it is done training.
	ImportAgent(context.Context, *ImportAgentRequest) (*longrunning.Operation, error)
	// Restores the specified agent from a ZIP file.
	//
	// Replaces the current agent version with a new one. All the intents and
	// entity types in the older version are deleted. After the restore, the
	// restored draft agent will be trained automatically (unless disabled in
	// agent settings). However, once the restore is done, training may not be
	// completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it
	// returns in order to train explicitly.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	// An operation which tracks when restoring is complete. It only tracks
	// when the draft agent is updated not when it is done training.
	RestoreAgent(context.Context, *RestoreAgentRequest) (*longrunning.Operation, error)
	// Gets agent validation result. Agent validation is performed during
	// training time and is updated automatically when training is completed.
	GetValidationResult(context.Context, *GetValidationResultRequest) (*ValidationResult, error)
}

AgentsServer is the server API for Agents service.

type AudioEncoding

type AudioEncoding int32

Audio encoding of the audio content sent in the conversational query request. Refer to the [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics) for more details.

const (
	// Not specified.
	AudioEncoding_AUDIO_ENCODING_UNSPECIFIED AudioEncoding = 0
	// Uncompressed 16-bit signed little-endian samples (Linear PCM).
	AudioEncoding_AUDIO_ENCODING_LINEAR_16 AudioEncoding = 1
	// [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio
	// Codec) is the recommended encoding because it is lossless (therefore
	// recognition is not compromised) and requires only about half the
	// bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and
	// 24-bit samples, however, not all fields in `STREAMINFO` are supported.
	AudioEncoding_AUDIO_ENCODING_FLAC AudioEncoding = 2
	// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
	AudioEncoding_AUDIO_ENCODING_MULAW AudioEncoding = 3
	// Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
	AudioEncoding_AUDIO_ENCODING_AMR AudioEncoding = 4
	// Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
	AudioEncoding_AUDIO_ENCODING_AMR_WB AudioEncoding = 5
	// Opus encoded audio frames in Ogg container
	// ([OggOpus](https://wiki.xiph.org/OggOpus)).
	// `sample_rate_hertz` must be 16000.
	AudioEncoding_AUDIO_ENCODING_OGG_OPUS AudioEncoding = 6
	// Although the use of lossy encodings is not recommended, if a very low
	// bitrate encoding is required, `OGG_OPUS` is highly preferred over
	// Speex encoding. The [Speex](https://speex.org/) encoding supported by
	// Dialogflow API has a header byte in each block, as in MIME type
	// `audio/x-speex-with-header-byte`.
	// It is a variant of the RTP Speex encoding defined in
	// [RFC 5574](https://tools.ietf.org/html/rfc5574).
	// The stream is a sequence of blocks, one block per RTP packet. Each block
	// starts with a byte containing the length of the block, in bytes, followed
	// by one or more frames of Speex data, padded to an integral number of
	// bytes (octets) as specified in RFC 5574. In other words, each RTP header
	// is replaced with a single byte containing the block length. Only Speex
	// wideband is supported. `sample_rate_hertz` must be 16000.
	AudioEncoding_AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE AudioEncoding = 7
)

func (AudioEncoding) Descriptor

func (AudioEncoding) Enum

func (x AudioEncoding) Enum() *AudioEncoding

func (AudioEncoding) EnumDescriptor

func (AudioEncoding) EnumDescriptor() ([]byte, []int)

Deprecated: Use AudioEncoding.Descriptor instead.

func (AudioEncoding) Number

func (AudioEncoding) String

func (x AudioEncoding) String() string

func (AudioEncoding) Type

type BatchCreateEntitiesRequest

type BatchCreateEntitiesRequest struct {

	// Required. The name of the entity type to create entities in. Format:
	// `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The entities to create.
	Entities []*EntityType_Entity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"`
	// Optional. The language used to access language-specific data.
	// If not specified, the agent's default language is used.
	// For more information, see
	// [Multilingual intent and entity
	// data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
	LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// contains filtered or unexported fields
}

The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities].

func (*BatchCreateEntitiesRequest) Descriptor

func (*BatchCreateEntitiesRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchCreateEntitiesRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateEntitiesRequest) GetEntities

func (x *BatchCreateEntitiesRequest) GetEntities() []*EntityType_Entity

func (*BatchCreateEntitiesRequest) GetLanguageCode

func (x *BatchCreateEntitiesRequest) GetLanguageCode() string

func (*BatchCreateEntitiesRequest) GetParent

func (x *BatchCreateEntitiesRequest) GetParent() string

func (*BatchCreateEntitiesRequest) ProtoMessage

func (*BatchCreateEntitiesRequest) ProtoMessage()

func (*BatchCreateEntitiesRequest) ProtoReflect

func (*BatchCreateEntitiesRequest) Reset

func (x *BatchCreateEntitiesRequest) Reset()

func (*BatchCreateEntitiesRequest) String

func (x *BatchCreateEntitiesRequest) String() string

type BatchDeleteEntitiesRequest

type BatchDeleteEntitiesRequest struct {

	// Required. The name of the entity type to delete entries for. Format:
	// `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The reference `values` of the entities to delete. Note that
	// these are not fully-qualified names, i.e. they don't start with
	// `projects/<Project ID>`.
	EntityValues []string `protobuf:"bytes,2,rep,name=entity_values,json=entityValues,proto3" json:"entity_values,omitempty"`
	// Optional. The language used to access language-specific data.
	// If not specified, the agent's default language is used.
	// For more information, see
	// [Multilingual intent and entity
	// data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
	LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// contains filtered or unexported fields
}

The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities].

func (*BatchDeleteEntitiesRequest) Descriptor

func (*BatchDeleteEntitiesRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchDeleteEntitiesRequest.ProtoReflect.Descriptor instead.

func (*BatchDeleteEntitiesRequest) GetEntityValues

func (x *BatchDeleteEntitiesRequest) GetEntityValues() []string

func (*BatchDeleteEntitiesRequest) GetLanguageCode

func (x *BatchDeleteEntitiesRequest) GetLanguageCode() string

func (*BatchDeleteEntitiesRequest) GetParent

func (x *BatchDeleteEntitiesRequest) GetParent() string

func (*BatchDeleteEntitiesRequest) ProtoMessage

func (*BatchDeleteEntitiesRequest) ProtoMessage()

func (*BatchDeleteEntitiesRequest) ProtoReflect

func (*BatchDeleteEntitiesRequest) Reset

func (x *BatchDeleteEntitiesRequest) Reset()

func (*BatchDeleteEntitiesRequest) String

func (x *BatchDeleteEntitiesRequest) String() string

type BatchDeleteEntityTypesRequest

type BatchDeleteEntityTypesRequest struct {

	// Required. The name of the agent to delete all entities types for. Format:
	// `projects/<Project ID>/agent`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The names entity types to delete. All names must point to the
	// same agent as `parent`.
	EntityTypeNames []string `protobuf:"bytes,2,rep,name=entity_type_names,json=entityTypeNames,proto3" json:"entity_type_names,omitempty"`
	// contains filtered or unexported fields
}

The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes].

func (*BatchDeleteEntityTypesRequest) Descriptor

func (*BatchDeleteEntityTypesRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchDeleteEntityTypesRequest.ProtoReflect.Descriptor instead.

func (*BatchDeleteEntityTypesRequest) GetEntityTypeNames

func (x *BatchDeleteEntityTypesRequest) GetEntityTypeNames() []string

func (*BatchDeleteEntityTypesRequest) GetParent

func (x *BatchDeleteEntityTypesRequest) GetParent() string

func (*BatchDeleteEntityTypesRequest) ProtoMessage

func (*BatchDeleteEntityTypesRequest) ProtoMessage()

func (*BatchDeleteEntityTypesRequest) ProtoReflect

func (*BatchDeleteEntityTypesRequest) Reset

func (x *BatchDeleteEntityTypesRequest) Reset()

func (*BatchDeleteEntityTypesRequest) String

type BatchDeleteIntentsRequest

type BatchDeleteIntentsRequest struct {

	// Required. The name of the agent to delete all entities types for. Format:
	// `projects/<Project ID>/agent`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The collection of intents to delete. Only intent `name` must be
	// filled in.
	Intents []*Intent `protobuf:"bytes,2,rep,name=intents,proto3" json:"intents,omitempty"`
	// contains filtered or unexported fields
}

The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents].

func (*BatchDeleteIntentsRequest) Descriptor

func (*BatchDeleteIntentsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchDeleteIntentsRequest.ProtoReflect.Descriptor instead.

func (*BatchDeleteIntentsRequest) GetIntents

func (x *BatchDeleteIntentsRequest) GetIntents() []*Intent

func (*BatchDeleteIntentsRequest) GetParent

func (x *BatchDeleteIntentsRequest) GetParent() string

func (*BatchDeleteIntentsRequest) ProtoMessage

func (*BatchDeleteIntentsRequest) ProtoMessage()

func (*BatchDeleteIntentsRequest) ProtoReflect

func (*BatchDeleteIntentsRequest) Reset

func (x *BatchDeleteIntentsRequest) Reset()

func (*BatchDeleteIntentsRequest) String

func (x *BatchDeleteIntentsRequest) String() string

type BatchUpdateEntitiesRequest

type BatchUpdateEntitiesRequest struct {

	// Required. The name of the entity type to update or create entities in.
	// Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The entities to update or create.
	Entities []*EntityType_Entity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"`
	// Optional. The language used to access language-specific data.
	// If not specified, the agent's default language is used.
	// For more information, see
	// [Multilingual intent and entity
	// data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
	LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Optional. The mask to control which fields get updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities].

func (*BatchUpdateEntitiesRequest) Descriptor

func (*BatchUpdateEntitiesRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchUpdateEntitiesRequest.ProtoReflect.Descriptor instead.

func (*BatchUpdateEntitiesRequest) GetEntities

func (x *BatchUpdateEntitiesRequest) GetEntities() []*EntityType_Entity

func (*BatchUpdateEntitiesRequest) GetLanguageCode

func (x *BatchUpdateEntitiesRequest) GetLanguageCode() string

func (*BatchUpdateEntitiesRequest) GetParent

func (x *BatchUpdateEntitiesRequest) GetParent() string

func (*BatchUpdateEntitiesRequest) GetUpdateMask

func (x *BatchUpdateEntitiesRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*BatchUpdateEntitiesRequest) ProtoMessage

func (*BatchUpdateEntitiesRequest) ProtoMessage()

func (*BatchUpdateEntitiesRequest) ProtoReflect

func (*BatchUpdateEntitiesRequest) Reset

func (x *BatchUpdateEntitiesRequest) Reset()

func (*BatchUpdateEntitiesRequest) String

func (x *BatchUpdateEntitiesRequest) String() string

type BatchUpdateEntityTypesRequest

type BatchUpdateEntityTypesRequest struct {

	// Required. The name of the agent to update or create entity types in.
	// Format: `projects/<Project ID>/agent`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The source of the entity type batch.
	//
	// For each entity type in the batch:
	//
	// *   If `name` is specified, we update an existing entity type.
	// *   If `name` is not specified, we create a new entity type.
	//
	// Types that are assignable to EntityTypeBatch:
	//	*BatchUpdateEntityTypesRequest_EntityTypeBatchUri
	//	*BatchUpdateEntityTypesRequest_EntityTypeBatchInline
	EntityTypeBatch isBatchUpdateEntityTypesRequest_EntityTypeBatch `protobuf_oneof:"entity_type_batch"`
	// Optional. The language used to access language-specific data.
	// If not specified, the agent's default language is used.
	// For more information, see
	// [Multilingual intent and entity
	// data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
	LanguageCode string `protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Optional. The mask to control which fields get updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].

func (*BatchUpdateEntityTypesRequest) Descriptor

func (*BatchUpdateEntityTypesRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchUpdateEntityTypesRequest.ProtoReflect.Descriptor instead.

func (*BatchUpdateEntityTypesRequest) GetEntityTypeBatch

func (m *BatchUpdateEntityTypesRequest) GetEntityTypeBatch() isBatchUpdateEntityTypesRequest_EntityTypeBatch

func (*BatchUpdateEntityTypesRequest) GetEntityTypeBatchInline

func (x *BatchUpdateEntityTypesRequest) GetEntityTypeBatchInline() *EntityTypeBatch

func (*BatchUpdateEntityTypesRequest) GetEntityTypeBatchUri

func (x *BatchUpdateEntityTypesRequest) GetEntityTypeBatchUri() string

func (*BatchUpdateEntityTypesRequest) GetLanguageCode

func (x *BatchUpdateEntityTypesRequest) GetLanguageCode() string

func (*BatchUpdateEntityTypesRequest) GetParent

func (x *BatchUpdateEntityTypesRequest) GetParent() string

func (*BatchUpdateEntityTypesRequest) GetUpdateMask

func (*BatchUpdateEntityTypesRequest) ProtoMessage

func (*BatchUpdateEntityTypesRequest) ProtoMessage()

func (*BatchUpdateEntityTypesRequest) ProtoReflect

func (*BatchUpdateEntityTypesRequest) Reset

func (x *BatchUpdateEntityTypesRequest) Reset()

func (*BatchUpdateEntityTypesRequest) String

type BatchUpdateEntityTypesRequest_EntityTypeBatchInline

type BatchUpdateEntityTypesRequest_EntityTypeBatchInline struct {
	// The collection of entity types to update or create.
	EntityTypeBatchInline *EntityTypeBatch `protobuf:"bytes,3,opt,name=entity_type_batch_inline,json=entityTypeBatchInline,proto3,oneof"`
}

type 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"`
}

type BatchUpdateEntityTypesResponse

type BatchUpdateEntityTypesResponse struct {

	// The collection of updated or created entity types.
	EntityTypes []*EntityType `protobuf:"bytes,1,rep,name=entity_types,json=entityTypes,proto3" json:"entity_types,omitempty"`
	// contains filtered or unexported fields
}

The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].

func (*BatchUpdateEntityTypesResponse) Descriptor

func (*BatchUpdateEntityTypesResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchUpdateEntityTypesResponse.ProtoReflect.Descriptor instead.

func (*BatchUpdateEntityTypesResponse) GetEntityTypes

func (x *BatchUpdateEntityTypesResponse) GetEntityTypes() []*EntityType

func (*BatchUpdateEntityTypesResponse) ProtoMessage

func (*BatchUpdateEntityTypesResponse) ProtoMessage()

func (*BatchUpdateEntityTypesResponse) ProtoReflect

func (*BatchUpdateEntityTypesResponse) Reset

func (x *BatchUpdateEntityTypesResponse) Reset()

func (*BatchUpdateEntityTypesResponse) String

type BatchUpdateIntentsRequest

type BatchUpdateIntentsRequest struct {

	// Required. The name of the agent to update or create intents in.
	// Format: `projects/<Project ID>/agent`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The source of the intent batch.
	//
	// Types that are assignable to IntentBatch:
	//	*BatchUpdateIntentsRequest_IntentBatchUri
	//	*BatchUpdateIntentsRequest_IntentBatchInline
	IntentBatch isBatchUpdateIntentsRequest_IntentBatch `protobuf_oneof:"intent_batch"`
	// Optional. The language used to access language-specific data.
	// If not specified, the agent's default language is used.
	// For more information, see
	// [Multilingual intent and entity
	// data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
	LanguageCode string `protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Optional. The mask to control which fields get updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// Optional. The resource view to apply to the returned intent.
	IntentView IntentView `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchUpdateIntentsRequest) Descriptor

func (*BatchUpdateIntentsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchUpdateIntentsRequest.ProtoReflect.Descriptor instead.

func (*BatchUpdateIntentsRequest) GetIntentBatch

func (m *BatchUpdateIntentsRequest) GetIntentBatch() isBatchUpdateIntentsRequest_IntentBatch

func (*BatchUpdateIntentsRequest) GetIntentBatchInline

func (x *BatchUpdateIntentsRequest) GetIntentBatchInline() *IntentBatch

func (*BatchUpdateIntentsRequest) GetIntentBatchUri

func (x *BatchUpdateIntentsRequest) GetIntentBatchUri() string

func (*BatchUpdateIntentsRequest) GetIntentView

func (x *BatchUpdateIntentsRequest) GetIntentView() IntentView

func (*BatchUpdateIntentsRequest) GetLanguageCode

func (x *BatchUpdateIntentsRequest) GetLanguageCode() string

func (*BatchUpdateIntentsRequest) GetParent

func (x *BatchUpdateIntentsRequest) GetParent() string

func (*BatchUpdateIntentsRequest) GetUpdateMask

func (x *BatchUpdateIntentsRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*BatchUpdateIntentsRequest) ProtoMessage

func (*BatchUpdateIntentsRequest) ProtoMessage()

func (*BatchUpdateIntentsRequest) ProtoReflect

func (*BatchUpdateIntentsRequest) Reset

func (x *BatchUpdateIntentsRequest) Reset()

func (*BatchUpdateIntentsRequest) String

func (x *BatchUpdateIntentsRequest) String() string

type BatchUpdateIntentsRequest_IntentBatchInline

type BatchUpdateIntentsRequest_IntentBatchInline struct {
	// The collection of intents to update or create.
	IntentBatchInline *IntentBatch `protobuf:"bytes,3,opt,name=intent_batch_inline,json=intentBatchInline,proto3,oneof"`
}

type 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"`
}

type BatchUpdateIntentsResponse

type BatchUpdateIntentsResponse struct {

	// The collection of updated or created intents.
	Intents []*Intent `protobuf:"bytes,1,rep,name=intents,proto3" json:"intents,omitempty"`
	// contains filtered or unexported fields
}

The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].

func (*BatchUpdateIntentsResponse) Descriptor

func (*BatchUpdateIntentsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchUpdateIntentsResponse.ProtoReflect.Descriptor instead.

func (*BatchUpdateIntentsResponse) GetIntents

func (x *BatchUpdateIntentsResponse) GetIntents() []*Intent

func (*BatchUpdateIntentsResponse) ProtoMessage

func (*BatchUpdateIntentsResponse) ProtoMessage()

func (*BatchUpdateIntentsResponse) ProtoReflect

func (*BatchUpdateIntentsResponse) Reset

func (x *BatchUpdateIntentsResponse) Reset()

func (*BatchUpdateIntentsResponse) String

func (x *BatchUpdateIntentsResponse) String() string

type Context

type Context struct {

	// Required. The unique identifier of the context. Format:
	// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
	// or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
	// ID>/sessions/<Session ID>/contexts/<Context ID>`.
	//
	// The `Context ID` is always converted to lowercase, may only contain
	// characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
	//
	// If `Environment ID` is not specified, we assume default 'draft'
	// environment. If `User ID` is not specified, we assume default '-' user.
	//
	// The following context names are reserved for internal use by Dialogflow.
	// You should not use these contexts or create contexts with these names:
	//
	// * `__system_counters__`
	// * `*_id_dialog_context`
	// * `*_dialog_params_size`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. The number of conversational query requests after which the
	// context expires. The default is `0`. If set to `0`, the context expires
	// immediately. Contexts expire automatically after 20 minutes if there
	// are no matching queries.
	LifespanCount int32 `protobuf:"varint,2,opt,name=lifespan_count,json=lifespanCount,proto3" json:"lifespan_count,omitempty"`
	// Optional. The collection of parameters associated with this context.
	//
	// 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: map
	//     -   Else: depending on parameter value type, could be one of string,
	//         number, boolean, null, list or map
	// -   MapValue value:
	//     -   If parameter's entity type is a composite entity:
	//         map from composite entity property names to property values
	//     -   Else: parameter value
	Parameters *structpb.Struct `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

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](https://cloud.google.com/dialogflow/docs/contexts-overview).

func (*Context) Descriptor

func (*Context) Descriptor() ([]byte, []int)

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) GetLifespanCount

func (x *Context) GetLifespanCount() int32

func (*Context) GetName

func (x *Context) GetName() string

func (*Context) GetParameters

func (x *Context) GetParameters() *structpb.Struct

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) ProtoReflect

func (x *Context) ProtoReflect() protoreflect.Message

func (*Context) Reset

func (x *Context) Reset()

func (*Context) String

func (x *Context) String() string

type ContextsClient

type ContextsClient interface {
	// Returns the list of all contexts in the specified session.
	ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error)
	// Retrieves the specified context.
	GetContext(ctx context.Context, in *GetContextRequest, opts ...grpc.CallOption) (*Context, error)
	// Creates a context.
	//
	// If the specified context already exists, overrides the context.
	CreateContext(ctx context.Context, in *CreateContextRequest, opts ...grpc.CallOption) (*Context, error)
	// Updates the specified context.
	UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error)
	// Deletes the specified context.
	DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Deletes all active contexts in the specified session.
	DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ContextsClient is the client API for Contexts service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ContextsServer

type ContextsServer interface {
	// Returns the list of all contexts in the specified session.
	ListContexts(context.Context, *ListContextsRequest) (*ListContextsResponse, error)
	// Retrieves the specified context.
	GetContext(context.Context, *GetContextRequest) (*Context, error)
	// Creates a context.
	//
	// If the specified context already exists, overrides the context.
	CreateContext(context.Context, *CreateContextRequest) (*Context, error)
	// Updates the specified context.
	UpdateContext(context.Context, *UpdateContextRequest) (*Context, error)
	// Deletes the specified context.
	DeleteContext(context.Context, *DeleteContextRequest) (*emptypb.Empty, error)
	// Deletes all active contexts in the specified session.
	DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*emptypb.Empty, error)
}

ContextsServer is the server API for Contexts service.

type CreateContextRequest

type CreateContextRequest struct {

	// Required. The session to create a context for.
	// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
	// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
	// ID>/sessions/<Session ID>`.
	// If `Environment ID` is not specified, we assume default 'draft'
	// environment. If `User ID` is not specified, we assume default '-' user.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The context to create.
	Context *Context `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

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() *Context

func (*CreateContextRequest) GetParent

func (x *CreateContextRequest) GetParent() string

func (*CreateContextRequest) ProtoMessage

func (*CreateContextRequest) ProtoMessage()

func (*CreateContextRequest) ProtoReflect

func (x *CreateContextRequest) ProtoReflect() protoreflect.Message

func (*CreateContextRequest) Reset

func (x *CreateContextRequest) Reset()

func (*CreateContextRequest) String

func (x *CreateContextRequest) String() string

type CreateEntityTypeRequest

type CreateEntityTypeRequest struct {

	// Required. The agent to create a entity type for.
	// Format: `projects/<Project ID>/agent`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The entity type to create.
	EntityType *EntityType `protobuf:"bytes,2,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"`
	// Optional. The language used to access language-specific data.
	// If not specified, the agent's default language is used.
	// For more information, see
	// [Multilingual intent and entity
	// data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
	LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// contains filtered or unexported fields
}

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() *EntityType

func (*CreateEntityTypeRequest) GetLanguageCode

func (x *CreateEntityTypeRequest) GetLanguageCode() string

func (*CreateEntityTypeRequest) GetParent

func (x *CreateEntityTypeRequest) GetParent() string

func (*CreateEntityTypeRequest) ProtoMessage

func (*CreateEntityTypeRequest) ProtoMessage()

func (*CreateEntityTypeRequest) ProtoReflect

func (x *CreateEntityTypeRequest) ProtoReflect() protoreflect.Message

func (*CreateEntityTypeRequest) Reset

func (x *CreateEntityTypeRequest) Reset()

func (*CreateEntityTypeRequest) String

func (x *CreateEntityTypeRequest) String() string

type CreateIntentRequest

type CreateIntentRequest struct {

	// Required. The agent to create a intent for.
	// Format: `projects/<Project ID>/agent`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The intent to create.
	Intent *Intent `protobuf:"bytes,2,opt,name=intent,proto3" json:"intent,omitempty"`
	// Optional. The language used to access language-specific data.
	// If not specified, the agent's default language is used.
	// For more information, see
	// [Multilingual intent and entity
	// data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
	LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Optional. The resource view to apply to the returned intent.
	IntentView IntentView `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

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() *Intent

func (*CreateIntentRequest) GetIntentView

func (x *CreateIntentRequest) GetIntentView() IntentView

func (*CreateIntentRequest) GetLanguageCode

func (x *CreateIntentRequest) GetLanguageCode() string

func (*CreateIntentRequest) GetParent

func (x *CreateIntentRequest) GetParent() string

func (*CreateIntentRequest) ProtoMessage

func (*CreateIntentRequest) ProtoMessage()

func (*CreateIntentRequest) ProtoReflect

func (x *CreateIntentRequest) ProtoReflect() protoreflect.Message

func (*CreateIntentRequest) Reset

func (x *CreateIntentRequest) Reset()

func (*CreateIntentRequest) String

func (x *CreateIntentRequest) String() string

type CreateSessionEntityTypeRequest

type CreateSessionEntityTypeRequest struct {

	// Required. The session to create a session entity type for.
	// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
	// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
	// sessions/<Session ID>`.
	// If `Environment ID` is not specified, we assume default 'draft'
	// environment. If `User ID` is not specified, we assume default '-' user.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The session entity type to create.
	SessionEntityType *SessionEntityType `protobuf:"bytes,2,opt,name=session_entity_type,json=sessionEntityType,proto3" json:"session_entity_type,omitempty"`
	// contains filtered or unexported fields
}

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() string

func (*CreateSessionEntityTypeRequest) GetSessionEntityType

func (x *CreateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityType

func (*CreateSessionEntityTypeRequest) ProtoMessage

func (*CreateSessionEntityTypeRequest) ProtoMessage()

func (*CreateSessionEntityTypeRequest) ProtoReflect

func (*CreateSessionEntityTypeRequest) Reset

func (x *CreateSessionEntityTypeRequest) Reset()

func (*CreateSessionEntityTypeRequest) String

type DeleteAgentRequest

type DeleteAgentRequest struct {

	// Required. The project that the agent to delete is associated with.
	// Format: `projects/<Project ID>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

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() string

func (*DeleteAgentRequest) ProtoMessage

func (*DeleteAgentRequest) ProtoMessage()

func (*DeleteAgentRequest) ProtoReflect

func (x *DeleteAgentRequest) ProtoReflect() protoreflect.Message

func (*DeleteAgentRequest) Reset

func (x *DeleteAgentRequest) Reset()

func (*DeleteAgentRequest) String

func (x *DeleteAgentRequest) String() string

type DeleteAllContextsRequest

type DeleteAllContextsRequest struct {

	// Required. The name of the session to delete all contexts from. Format:
	// `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
	// ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
	// ID>`.
	// If `Environment ID` is not specified we assume default 'draft' environment.
	// If `User ID` is not specified, we assume default '-' user.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

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() string

func (*DeleteAllContextsRequest) ProtoMessage

func (*DeleteAllContextsRequest) ProtoMessage()

func (*DeleteAllContextsRequest) ProtoReflect

func (x *DeleteAllContextsRequest) ProtoReflect() protoreflect.Message

func (*DeleteAllContextsRequest) Reset

func (x *DeleteAllContextsRequest) Reset()

func (*DeleteAllContextsRequest) String

func (x *DeleteAllContextsRequest) String() string

type DeleteContextRequest

type DeleteContextRequest struct {

	// Required. The name of the context to delete. Format:
	// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
	// or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
	// ID>/sessions/<Session ID>/contexts/<Context ID>`.
	// If `Environment ID` is not specified, we assume default 'draft'
	// environment. If `User ID` is not specified, we assume default '-' user.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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() string

func (*DeleteContextRequest) ProtoMessage

func (*DeleteContextRequest) ProtoMessage()

func (*DeleteContextRequest) ProtoReflect

func (x *DeleteContextRequest) ProtoReflect() protoreflect.Message

func (*DeleteContextRequest) Reset

func (x *DeleteContextRequest) Reset()

func (*DeleteContextRequest) String

func (x *DeleteContextRequest) String() string

type DeleteEntityTypeRequest

type DeleteEntityTypeRequest struct {

	// Required. The name of the entity type to delete.
	// Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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() string

func (*DeleteEntityTypeRequest) ProtoMessage

func (*DeleteEntityTypeRequest) ProtoMessage()

func (*DeleteEntityTypeRequest) ProtoReflect

func (x *DeleteEntityTypeRequest) ProtoReflect() protoreflect.Message

func (*DeleteEntityTypeRequest) Reset

func (x *DeleteEntityTypeRequest) Reset()

func (*DeleteEntityTypeRequest) String

func (x *DeleteEntityTypeRequest) String() string

type DeleteIntentRequest

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/<Project ID>/agent/intents/<Intent ID>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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() string

func (*DeleteIntentRequest) ProtoMessage

func (*DeleteIntentRequest) ProtoMessage()

func (*DeleteIntentRequest) ProtoReflect

func (x *DeleteIntentRequest) ProtoReflect() protoreflect.Message

func (*DeleteIntentRequest) Reset

func (x *DeleteIntentRequest) Reset()

func (*DeleteIntentRequest) String

func (x *DeleteIntentRequest) String() string

type DeleteSessionEntityTypeRequest

type DeleteSessionEntityTypeRequest struct {

	// Required. The name of the entity type to delete. Format:
	// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
	// Display Name>` or `projects/<Project ID>/agent/environments/<Environment
	// ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
	// Name>`.
	// If `Environment ID` is not specified, we assume default 'draft'
	// environment. If `User ID` is not specified, we assume default '-' user.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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 (*DeleteSessionEntityTypeRequest) ProtoMessage

func (*DeleteSessionEntityTypeRequest) ProtoMessage()

func (*DeleteSessionEntityTypeRequest) ProtoReflect

func (*DeleteSessionEntityTypeRequest) Reset

func (x *DeleteSessionEntityTypeRequest) Reset()

func (*DeleteSessionEntityTypeRequest) String

type DetectIntentRequest

type DetectIntentRequest struct {

	// Required. The name of the session this query is sent to. Format:
	// `projects/<Project ID>/agent/sessions/<Session ID>`, or
	// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
	// ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
	// default 'draft' environment. If `User ID` is not specified, we are using
	// "-". It's up to the API caller to choose an appropriate `Session ID` and
	// `User Id`. They can be a random number or some type of user and session
	// identifiers (preferably hashed). The length of the `Session ID` and
	// `User ID` must not exceed 36 characters.
	//
	// For more information, see the [API interactions
	// guide](https://cloud.google.com/dialogflow/docs/api-overview).
	//
	// Note: Always use agent versions for production traffic.
	// See [Versions and
	// environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
	Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	// The parameters of this query.
	QueryParams *QueryParameters `protobuf:"bytes,2,opt,name=query_params,json=queryParams,proto3" json:"query_params,omitempty"`
	// Required. The input specification. It can be set to:
	//
	// 1.  an audio config
	//     which instructs the speech recognizer how to process the speech audio,
	//
	// 2.  a conversational query in the form of text, or
	//
	// 3.  an event that specifies which intent to trigger.
	QueryInput *QueryInput `protobuf:"bytes,3,opt,name=query_input,json=queryInput,proto3" json:"query_input,omitempty"`
	// Instructs the speech synthesizer how to generate the output
	// audio. If this field is not set and agent-level speech synthesizer is not
	// configured, no output audio is generated.
	OutputAudioConfig *OutputAudioConfig `protobuf:"bytes,4,opt,name=output_audio_config,json=outputAudioConfig,proto3" json:"output_audio_config,omitempty"`
	// Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
	// request-level config should override speech synthesizer settings defined at
	// agent-level.
	//
	// If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] replaces the agent-level
	// config in its entirety.
	OutputAudioConfigMask *fieldmaskpb.FieldMask `` /* 128-byte string literal not displayed */
	// The natural language speech audio to be processed. This field
	// should be populated iff `query_input` is set to an input audio config.
	// A single request can contain up to 1 minute of speech audio data.
	InputAudio []byte `protobuf:"bytes,5,opt,name=input_audio,json=inputAudio,proto3" json:"input_audio,omitempty"`
	// contains filtered or unexported fields
}

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() []byte

func (*DetectIntentRequest) GetOutputAudioConfig

func (x *DetectIntentRequest) GetOutputAudioConfig() *OutputAudioConfig

func (*DetectIntentRequest) GetOutputAudioConfigMask

func (x *DetectIntentRequest) GetOutputAudioConfigMask() *fieldmaskpb.FieldMask

func (*DetectIntentRequest) GetQueryInput

func (x *DetectIntentRequest) GetQueryInput() *QueryInput

func (*DetectIntentRequest) GetQueryParams

func (x *DetectIntentRequest) GetQueryParams() *QueryParameters

func (*DetectIntentRequest) GetSession

func (x *DetectIntentRequest) GetSession() string

func (*DetectIntentRequest) ProtoMessage

func (*DetectIntentRequest) ProtoMessage()

func (*DetectIntentRequest) ProtoReflect

func (x *DetectIntentRequest) ProtoReflect() protoreflect.Message

func (*DetectIntentRequest) Reset

func (x *DetectIntentRequest) Reset()

func (*DetectIntentRequest) String

func (x *DetectIntentRequest) String() string

type DetectIntentResponse

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() []byte

func (*DetectIntentResponse) GetOutputAudioConfig

func (x *DetectIntentResponse) GetOutputAudioConfig() *OutputAudioConfig

func (*DetectIntentResponse) GetQueryResult

func (x *DetectIntentResponse) GetQueryResult() *QueryResult

func (*DetectIntentResponse) GetResponseId

func (x *DetectIntentResponse) GetResponseId() string

func (*DetectIntentResponse) GetWebhookStatus

func (x *DetectIntentResponse) GetWebhookStatus() *status.Status

func (*DetectIntentResponse) ProtoMessage

func (*DetectIntentResponse) ProtoMessage()

func (*DetectIntentResponse) ProtoReflect

func (x *DetectIntentResponse) ProtoReflect() protoreflect.Message

func (*DetectIntentResponse) Reset

func (x *DetectIntentResponse) Reset()

func (*DetectIntentResponse) String

func (x *DetectIntentResponse) String() string

type 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/<Project ID>/agent/entityTypes/<Entity Type ID>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The name of the entity type.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Required. Indicates the kind of entity type.
	Kind EntityType_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=google.cloud.dialogflow.v2.EntityType_Kind" json:"kind,omitempty"`
	// Optional. Indicates whether the entity type can be automatically
	// expanded.
	AutoExpansionMode EntityType_AutoExpansionMode `` /* 176-byte string literal not displayed */
	// Optional. The collection of entity entries associated with the entity type.
	Entities []*EntityType_Entity `protobuf:"bytes,6,rep,name=entities,proto3" json:"entities,omitempty"`
	// Optional. Enables fuzzy entity extraction during classification.
	EnableFuzzyExtraction bool `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

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](https://cloud.google.com/dialogflow/docs/entities-overview).

func (*EntityType) Descriptor

func (*EntityType) Descriptor() ([]byte, []int)

Deprecated: Use EntityType.ProtoReflect.Descriptor instead.

func (*EntityType) GetAutoExpansionMode

func (x *EntityType) GetAutoExpansionMode() EntityType_AutoExpansionMode

func (*EntityType) GetDisplayName

func (x *EntityType) GetDisplayName() string

func (*EntityType) GetEnableFuzzyExtraction

func (x *EntityType) GetEnableFuzzyExtraction() bool

func (*EntityType) GetEntities

func (x *EntityType) GetEntities() []*EntityType_Entity

func (*EntityType) GetKind

func (x *EntityType) GetKind() EntityType_Kind

func (*EntityType) GetName

func (x *EntityType) GetName() string

func (*EntityType) ProtoMessage

func (*EntityType) ProtoMessage()

func (*EntityType) ProtoReflect

func (x *EntityType) ProtoReflect() protoreflect.Message

func (*EntityType) Reset

func (x *EntityType) Reset()

func (*EntityType) String

func (x *EntityType) String() string

type EntityTypeBatch

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() []*EntityType

func (*EntityTypeBatch) ProtoMessage

func (*EntityTypeBatch) ProtoMessage()

func (*EntityTypeBatch) ProtoReflect

func (x *EntityTypeBatch) ProtoReflect() protoreflect.Message

func (*EntityTypeBatch) Reset

func (x *EntityTypeBatch) Reset()

func (*EntityTypeBatch) String

func (x *EntityTypeBatch) String() string

type EntityType_AutoExpansionMode

type EntityType_AutoExpansionMode int32

Represents 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).

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) Enum

func (EntityType_AutoExpansionMode) EnumDescriptor

func (EntityType_AutoExpansionMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use EntityType_AutoExpansionMode.Descriptor instead.

func (EntityType_AutoExpansionMode) Number

func (EntityType_AutoExpansionMode) String

func (EntityType_AutoExpansionMode) Type

type EntityType_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() []string

func (*EntityType_Entity) GetValue

func (x *EntityType_Entity) GetValue() string

func (*EntityType_Entity) ProtoMessage

func (*EntityType_Entity) ProtoMessage()

func (*EntityType_Entity) ProtoReflect

func (x *EntityType_Entity) ProtoReflect() protoreflect.Message

func (*EntityType_Entity) Reset

func (x *EntityType_Entity) Reset()

func (*EntityType_Entity) String

func (x *EntityType_Entity) String() string

type EntityType_Kind

type EntityType_Kind int32

Represents kinds of entities.

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) Enum

func (x EntityType_Kind) Enum() *EntityType_Kind

func (EntityType_Kind) EnumDescriptor

func (EntityType_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use EntityType_Kind.Descriptor instead.

func (EntityType_Kind) Number

func (EntityType_Kind) String

func (x EntityType_Kind) String() string

func (EntityType_Kind) Type

type EntityTypesClient

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.
	CreateEntityType(ctx context.Context, in *CreateEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error)
	// Updates the specified entity type.
	UpdateEntityType(ctx context.Context, in *UpdateEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error)
	// Deletes the specified entity type.
	DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Updates/Creates multiple entity types in the specified agent.
	//
	// Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]>
	BatchUpdateEntityTypes(ctx context.Context, in *BatchUpdateEntityTypesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Deletes entity types in the specified agent.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	BatchDeleteEntityTypes(ctx context.Context, in *BatchDeleteEntityTypesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Creates multiple new entities in the specified entity type.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	BatchCreateEntities(ctx context.Context, in *BatchCreateEntitiesRequest, opts ...grpc.CallOption) (*longrunning.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.
	//
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	BatchUpdateEntities(ctx context.Context, in *BatchUpdateEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Deletes entities in the specified entity type.
	//
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	BatchDeleteEntities(ctx context.Context, in *BatchDeleteEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
}

EntityTypesClient is the client API for EntityTypes service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type EntityTypesServer

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, *