dialogflow

package
v0.0.0-...-e165f0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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",
}
View Source
var Agent_ApiVersion_value = map[string]int32{
	"API_VERSION_UNSPECIFIED": 0,
	"API_VERSION_V1":          1,
	"API_VERSION_V2":          2,
	"API_VERSION_V2_BETA_1":   3,
}
View Source
var Agent_MatchMode_name = map[int32]string{
	0: "MATCH_MODE_UNSPECIFIED",
	1: "MATCH_MODE_HYBRID",
	2: "MATCH_MODE_ML_ONLY",
}
View Source
var Agent_MatchMode_value = map[string]int32{
	"MATCH_MODE_UNSPECIFIED": 0,
	"MATCH_MODE_HYBRID":      1,
	"MATCH_MODE_ML_ONLY":     2,
}
View Source
var Agent_Tier_name = map[int32]string{
	0: "TIER_UNSPECIFIED",
	1: "TIER_STANDARD",
	2: "TIER_ENTERPRISE",
	3: "TIER_ENTERPRISE_PLUS",
}
View Source
var Agent_Tier_value = map[string]int32{
	"TIER_UNSPECIFIED":     0,
	"TIER_STANDARD":        1,
	"TIER_ENTERPRISE":      2,
	"TIER_ENTERPRISE_PLUS": 3,
}
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",
}
View Source
var 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,
}
View Source
var EntityType_AutoExpansionMode_name = map[int32]string{
	0: "AUTO_EXPANSION_MODE_UNSPECIFIED",
	1: "AUTO_EXPANSION_MODE_DEFAULT",
}
View Source
var EntityType_AutoExpansionMode_value = map[string]int32{
	"AUTO_EXPANSION_MODE_UNSPECIFIED": 0,
	"AUTO_EXPANSION_MODE_DEFAULT":     1,
}
View Source
var EntityType_Kind_name = map[int32]string{
	0: "KIND_UNSPECIFIED",
	1: "KIND_MAP",
	2: "KIND_LIST",
	3: "KIND_REGEXP",
}
View Source
var EntityType_Kind_value = map[string]int32{
	"KIND_UNSPECIFIED": 0,
	"KIND_MAP":         1,
	"KIND_LIST":        2,
	"KIND_REGEXP":      3,
}
View Source
var Environment_State_name = map[int32]string{
	0: "STATE_UNSPECIFIED",
	1: "STOPPED",
	2: "LOADING",
	3: "RUNNING",
}
View Source
var Environment_State_value = map[string]int32{
	"STATE_UNSPECIFIED": 0,
	"STOPPED":           1,
	"LOADING":           2,
	"RUNNING":           3,
}
View Source
var IntentView_name = map[int32]string{
	0: "INTENT_VIEW_UNSPECIFIED",
	1: "INTENT_VIEW_FULL",
}
View Source
var IntentView_value = map[string]int32{
	"INTENT_VIEW_UNSPECIFIED": 0,
	"INTENT_VIEW_FULL":        1,
}
View Source
var Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint_name = map[int32]string{
	0: "URL_TYPE_HINT_UNSPECIFIED",
	1: "AMP_ACTION",
	2: "AMP_CONTENT",
}
View Source
var Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint_value = map[string]int32{
	"URL_TYPE_HINT_UNSPECIFIED": 0,
	"AMP_ACTION":                1,
	"AMP_CONTENT":               2,
}
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",
}
View Source
var Intent_Message_BrowseCarouselCard_ImageDisplayOptions_value = map[string]int32{
	"IMAGE_DISPLAY_OPTIONS_UNSPECIFIED": 0,
	"GRAY":                              1,
	"WHITE":                             2,
	"CROPPED":                           3,
	"BLURRED_BACKGROUND":                4,
}
View Source
var Intent_Message_ColumnProperties_HorizontalAlignment_name = map[int32]string{
	0: "HORIZONTAL_ALIGNMENT_UNSPECIFIED",
	1: "LEADING",
	2: "CENTER",
	3: "TRAILING",
}
View Source
var Intent_Message_ColumnProperties_HorizontalAlignment_value = map[string]int32{
	"HORIZONTAL_ALIGNMENT_UNSPECIFIED": 0,
	"LEADING":                          1,
	"CENTER":                           2,
	"TRAILING":                         3,
}
View Source
var Intent_Message_MediaContent_ResponseMediaType_name = map[int32]string{
	0: "RESPONSE_MEDIA_TYPE_UNSPECIFIED",
	1: "AUDIO",
}
View Source
var Intent_Message_MediaContent_ResponseMediaType_value = map[string]int32{
	"RESPONSE_MEDIA_TYPE_UNSPECIFIED": 0,
	"AUDIO":                           1,
}
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",
}
View Source
var 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,
}
View Source
var Intent_TrainingPhrase_Type_name = map[int32]string{
	0: "TYPE_UNSPECIFIED",
	1: "EXAMPLE",
	2: "TEMPLATE",
}
View Source
var Intent_TrainingPhrase_Type_value = map[string]int32{
	"TYPE_UNSPECIFIED": 0,
	"EXAMPLE":          1,
	"TEMPLATE":         2,
}
View Source
var Intent_WebhookState_name = map[int32]string{
	0: "WEBHOOK_STATE_UNSPECIFIED",
	1: "WEBHOOK_STATE_ENABLED",
	2: "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING",
}
View Source
var Intent_WebhookState_value = map[string]int32{
	"WEBHOOK_STATE_UNSPECIFIED":              0,
	"WEBHOOK_STATE_ENABLED":                  1,
	"WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING": 2,
}
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",
}
View Source
var 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,
}
View Source
var SessionEntityType_EntityOverrideMode_name = map[int32]string{
	0: "ENTITY_OVERRIDE_MODE_UNSPECIFIED",
	1: "ENTITY_OVERRIDE_MODE_OVERRIDE",
	2: "ENTITY_OVERRIDE_MODE_SUPPLEMENT",
}
View Source
var SessionEntityType_EntityOverrideMode_value = map[string]int32{
	"ENTITY_OVERRIDE_MODE_UNSPECIFIED": 0,
	"ENTITY_OVERRIDE_MODE_OVERRIDE":    1,
	"ENTITY_OVERRIDE_MODE_SUPPLEMENT":  2,
}
View Source
var SpeechModelVariant_name = map[int32]string{
	0: "SPEECH_MODEL_VARIANT_UNSPECIFIED",
	1: "USE_BEST_AVAILABLE",
	2: "USE_STANDARD",
	3: "USE_ENHANCED",
}
View Source
var SpeechModelVariant_value = map[string]int32{
	"SPEECH_MODEL_VARIANT_UNSPECIFIED": 0,
	"USE_BEST_AVAILABLE":               1,
	"USE_STANDARD":                     2,
	"USE_ENHANCED":                     3,
}
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",
}
View Source
var 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,
}
View Source
var StreamingRecognitionResult_MessageType_name = map[int32]string{
	0: "MESSAGE_TYPE_UNSPECIFIED",
	1: "TRANSCRIPT",
	2: "END_OF_SINGLE_UTTERANCE",
}
View Source
var StreamingRecognitionResult_MessageType_value = map[string]int32{
	"MESSAGE_TYPE_UNSPECIFIED": 0,
	"TRANSCRIPT":               1,
	"END_OF_SINGLE_UTTERANCE":  2,
}
View Source
var ValidationError_Severity_name = map[int32]string{
	0: "SEVERITY_UNSPECIFIED",
	1: "INFO",
	2: "WARNING",
	3: "ERROR",
	4: "CRITICAL",
}
View Source
var ValidationError_Severity_value = map[string]int32{
	"SEVERITY_UNSPECIFIED": 0,
	"INFO":                 1,
	"WARNING":              2,
	"ERROR":                3,
	"CRITICAL":             4,
}

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.
	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"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Represents a conversational agent.

func (*Agent) Descriptor

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

func (*Agent) GetApiVersion

func (m *Agent) GetApiVersion() Agent_ApiVersion

func (*Agent) GetAvatarUri

func (m *Agent) GetAvatarUri() string

func (*Agent) GetClassificationThreshold

func (m *Agent) GetClassificationThreshold() float32

func (*Agent) GetDefaultLanguageCode

func (m *Agent) GetDefaultLanguageCode() string

func (*Agent) GetDescription

func (m *Agent) GetDescription() string

func (*Agent) GetDisplayName

func (m *Agent) GetDisplayName() string

func (*Agent) GetEnableLogging

func (m *Agent) GetEnableLogging() bool

func (*Agent) GetMatchMode

func (m *Agent) GetMatchMode() Agent_MatchMode

func (*Agent) GetParent

func (m *Agent) GetParent() string

func (*Agent) GetSupportedLanguageCodes

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

func (*Agent) GetTier

func (m *Agent) GetTier() Agent_Tier

func (*Agent) GetTimeZone

func (m *Agent) GetTimeZone() string

func (*Agent) ProtoMessage

func (*Agent) ProtoMessage()

func (*Agent) Reset

func (m *Agent) Reset()

func (*Agent) String

func (m *Agent) String() string

func (*Agent) XXX_DiscardUnknown

func (m *Agent) XXX_DiscardUnknown()

func (*Agent) XXX_Marshal

func (m *Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Agent) XXX_Merge

func (m *Agent) XXX_Merge(src proto.Message)

func (*Agent) XXX_Size

func (m *Agent) XXX_Size() int

func (*Agent) XXX_Unmarshal

func (m *Agent) XXX_Unmarshal(b []byte) error

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

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

func (Agent_ApiVersion) String

func (x Agent_ApiVersion) String() string

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

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

func (Agent_MatchMode) String

func (x Agent_MatchMode) String() string

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

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

func (Agent_Tier) String

func (x Agent_Tier) String() string

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) (*empty.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.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	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.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	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) (*empty.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.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	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.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	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) EnumDescriptor

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

func (AudioEncoding) String

func (x AudioEncoding) String() string

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*BatchCreateEntitiesRequest) Descriptor

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

func (*BatchCreateEntitiesRequest) GetEntities

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

func (*BatchCreateEntitiesRequest) GetLanguageCode

func (m *BatchCreateEntitiesRequest) GetLanguageCode() string

func (*BatchCreateEntitiesRequest) GetParent

func (m *BatchCreateEntitiesRequest) GetParent() string

func (*BatchCreateEntitiesRequest) ProtoMessage

func (*BatchCreateEntitiesRequest) ProtoMessage()

func (*BatchCreateEntitiesRequest) Reset

func (m *BatchCreateEntitiesRequest) Reset()

func (*BatchCreateEntitiesRequest) String

func (m *BatchCreateEntitiesRequest) String() string

func (*BatchCreateEntitiesRequest) XXX_DiscardUnknown

func (m *BatchCreateEntitiesRequest) XXX_DiscardUnknown()

func (*BatchCreateEntitiesRequest) XXX_Marshal

func (m *BatchCreateEntitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchCreateEntitiesRequest) XXX_Merge

func (m *BatchCreateEntitiesRequest) XXX_Merge(src proto.Message)

func (*BatchCreateEntitiesRequest) XXX_Size

func (m *BatchCreateEntitiesRequest) XXX_Size() int

func (*BatchCreateEntitiesRequest) XXX_Unmarshal

func (m *BatchCreateEntitiesRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*BatchDeleteEntitiesRequest) Descriptor

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

func (*BatchDeleteEntitiesRequest) GetEntityValues

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

func (*BatchDeleteEntitiesRequest) GetLanguageCode

func (m *BatchDeleteEntitiesRequest) GetLanguageCode() string

func (*BatchDeleteEntitiesRequest) GetParent

func (m *BatchDeleteEntitiesRequest) GetParent() string

func (*BatchDeleteEntitiesRequest) ProtoMessage

func (*BatchDeleteEntitiesRequest) ProtoMessage()

func (*BatchDeleteEntitiesRequest) Reset

func (m *BatchDeleteEntitiesRequest) Reset()

func (*BatchDeleteEntitiesRequest) String

func (m *BatchDeleteEntitiesRequest) String() string

func (*BatchDeleteEntitiesRequest) XXX_DiscardUnknown

func (m *BatchDeleteEntitiesRequest) XXX_DiscardUnknown()

func (*BatchDeleteEntitiesRequest) XXX_Marshal

func (m *BatchDeleteEntitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchDeleteEntitiesRequest) XXX_Merge

func (m *BatchDeleteEntitiesRequest) XXX_Merge(src proto.Message)

func (*BatchDeleteEntitiesRequest) XXX_Size

func (m *BatchDeleteEntitiesRequest) XXX_Size() int

func (*BatchDeleteEntitiesRequest) XXX_Unmarshal

func (m *BatchDeleteEntitiesRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*BatchDeleteEntityTypesRequest) Descriptor

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

func (*BatchDeleteEntityTypesRequest) GetEntityTypeNames

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

func (*BatchDeleteEntityTypesRequest) GetParent

func (m *BatchDeleteEntityTypesRequest) GetParent() string

func (*BatchDeleteEntityTypesRequest) ProtoMessage

func (*BatchDeleteEntityTypesRequest) ProtoMessage()

func (*BatchDeleteEntityTypesRequest) Reset

func (m *BatchDeleteEntityTypesRequest) Reset()

func (*BatchDeleteEntityTypesRequest) String

func (*BatchDeleteEntityTypesRequest) XXX_DiscardUnknown

func (m *BatchDeleteEntityTypesRequest) XXX_DiscardUnknown()

func (*BatchDeleteEntityTypesRequest) XXX_Marshal

func (m *BatchDeleteEntityTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchDeleteEntityTypesRequest) XXX_Merge

func (m *BatchDeleteEntityTypesRequest) XXX_Merge(src proto.Message)

func (*BatchDeleteEntityTypesRequest) XXX_Size

func (m *BatchDeleteEntityTypesRequest) XXX_Size() int

func (*BatchDeleteEntityTypesRequest) XXX_Unmarshal

func (m *BatchDeleteEntityTypesRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

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

func (*BatchDeleteIntentsRequest) Descriptor

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

func (*BatchDeleteIntentsRequest) GetIntents

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

func (*BatchDeleteIntentsRequest) GetParent

func (m *BatchDeleteIntentsRequest) GetParent() string

func (*BatchDeleteIntentsRequest) ProtoMessage

func (*BatchDeleteIntentsRequest) ProtoMessage()

func (*BatchDeleteIntentsRequest) Reset

func (m *BatchDeleteIntentsRequest) Reset()

func (*BatchDeleteIntentsRequest) String

func (m *BatchDeleteIntentsRequest) String() string

func (*BatchDeleteIntentsRequest) XXX_DiscardUnknown

func (m *BatchDeleteIntentsRequest) XXX_DiscardUnknown()

func (*BatchDeleteIntentsRequest) XXX_Marshal

func (m *BatchDeleteIntentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchDeleteIntentsRequest) XXX_Merge

func (m *BatchDeleteIntentsRequest) XXX_Merge(src proto.Message)

func (*BatchDeleteIntentsRequest) XXX_Size

func (m *BatchDeleteIntentsRequest) XXX_Size() int

func (*BatchDeleteIntentsRequest) XXX_Unmarshal

func (m *BatchDeleteIntentsRequest) XXX_Unmarshal(b []byte) error

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           *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

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

func (*BatchUpdateEntitiesRequest) Descriptor

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

func (*BatchUpdateEntitiesRequest) GetEntities

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

func (*BatchUpdateEntitiesRequest) GetLanguageCode

func (m *BatchUpdateEntitiesRequest) GetLanguageCode() string

func (*BatchUpdateEntitiesRequest) GetParent

func (m *BatchUpdateEntitiesRequest) GetParent() string

func (*BatchUpdateEntitiesRequest) GetUpdateMask

func (m *BatchUpdateEntitiesRequest) GetUpdateMask() *field_mask.FieldMask

func (*BatchUpdateEntitiesRequest) ProtoMessage

func (*BatchUpdateEntitiesRequest) ProtoMessage()

func (*BatchUpdateEntitiesRequest) Reset

func (m *BatchUpdateEntitiesRequest) Reset()

func (*BatchUpdateEntitiesRequest) String

func (m *BatchUpdateEntitiesRequest) String() string

func (*BatchUpdateEntitiesRequest) XXX_DiscardUnknown

func (m *BatchUpdateEntitiesRequest) XXX_DiscardUnknown()

func (*BatchUpdateEntitiesRequest) XXX_Marshal

func (m *BatchUpdateEntitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchUpdateEntitiesRequest) XXX_Merge

func (m *BatchUpdateEntitiesRequest) XXX_Merge(src proto.Message)

func (*BatchUpdateEntitiesRequest) XXX_Size

func (m *BatchUpdateEntitiesRequest) XXX_Size() int

func (*BatchUpdateEntitiesRequest) XXX_Unmarshal

func (m *BatchUpdateEntitiesRequest) XXX_Unmarshal(b []byte) error

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 valid to be assigned 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           *field_mask.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

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

func (*BatchUpdateEntityTypesRequest) Descriptor

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

func (*BatchUpdateEntityTypesRequest) GetEntityTypeBatch

func (m *BatchUpdateEntityTypesRequest) GetEntityTypeBatch() isBatchUpdateEntityTypesRequest_EntityTypeBatch

func (*BatchUpdateEntityTypesRequest) GetEntityTypeBatchInline

func (m *BatchUpdateEntityTypesRequest) GetEntityTypeBatchInline() *EntityTypeBatch

func (*BatchUpdateEntityTypesRequest) GetEntityTypeBatchUri

func (m *BatchUpdateEntityTypesRequest) GetEntityTypeBatchUri() string

func (*BatchUpdateEntityTypesRequest) GetLanguageCode

func (m *BatchUpdateEntityTypesRequest) GetLanguageCode() string

func (*BatchUpdateEntityTypesRequest) GetParent

func (m *BatchUpdateEntityTypesRequest) GetParent() string

func (*BatchUpdateEntityTypesRequest) GetUpdateMask

func (*BatchUpdateEntityTypesRequest) ProtoMessage

func (*BatchUpdateEntityTypesRequest) ProtoMessage()

func (*BatchUpdateEntityTypesRequest) Reset

func (m *BatchUpdateEntityTypesRequest) Reset()

func (*BatchUpdateEntityTypesRequest) String

func (*BatchUpdateEntityTypesRequest) XXX_DiscardUnknown

func (m *BatchUpdateEntityTypesRequest) XXX_DiscardUnknown()

func (*BatchUpdateEntityTypesRequest) XXX_Marshal

func (m *BatchUpdateEntityTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchUpdateEntityTypesRequest) XXX_Merge

func (m *BatchUpdateEntityTypesRequest) XXX_Merge(src proto.Message)

func (*BatchUpdateEntityTypesRequest) XXX_OneofWrappers

func (*BatchUpdateEntityTypesRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*BatchUpdateEntityTypesRequest) XXX_Size

func (m *BatchUpdateEntityTypesRequest) XXX_Size() int

func (*BatchUpdateEntityTypesRequest) XXX_Unmarshal

func (m *BatchUpdateEntityTypesRequest) XXX_Unmarshal(b []byte) error

type BatchUpdateEntityTypesRequest_EntityTypeBatchInline

type BatchUpdateEntityTypesRequest_EntityTypeBatchInline struct {
	EntityTypeBatchInline *EntityTypeBatch `protobuf:"bytes,3,opt,name=entity_type_batch_inline,json=entityTypeBatchInline,proto3,oneof"`
}

type BatchUpdateEntityTypesRequest_EntityTypeBatchUri

type BatchUpdateEntityTypesRequest_EntityTypeBatchUri struct {
	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"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

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

func (*BatchUpdateEntityTypesResponse) Descriptor

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

func (*BatchUpdateEntityTypesResponse) GetEntityTypes

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

func (*BatchUpdateEntityTypesResponse) ProtoMessage

func (*BatchUpdateEntityTypesResponse) ProtoMessage()

func (*BatchUpdateEntityTypesResponse) Reset

func (m *BatchUpdateEntityTypesResponse) Reset()

func (*BatchUpdateEntityTypesResponse) String

func (*BatchUpdateEntityTypesResponse) XXX_DiscardUnknown

func (m *BatchUpdateEntityTypesResponse) XXX_DiscardUnknown()

func (*BatchUpdateEntityTypesResponse) XXX_Marshal

func (m *BatchUpdateEntityTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchUpdateEntityTypesResponse) XXX_Merge

func (m *BatchUpdateEntityTypesResponse) XXX_Merge(src proto.Message)

func (*BatchUpdateEntityTypesResponse) XXX_Size

func (m *BatchUpdateEntityTypesResponse) XXX_Size() int

func (*BatchUpdateEntityTypesResponse) XXX_Unmarshal

func (m *BatchUpdateEntityTypesResponse) XXX_Unmarshal(b []byte) error

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 valid to be assigned 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 *field_mask.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 */
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*BatchUpdateIntentsRequest) Descriptor

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

func (*BatchUpdateIntentsRequest) GetIntentBatch

func (m *BatchUpdateIntentsRequest) GetIntentBatch() isBatchUpdateIntentsRequest_IntentBatch

func (*BatchUpdateIntentsRequest) GetIntentBatchInline

func (m *BatchUpdateIntentsRequest) GetIntentBatchInline() *IntentBatch

func (*BatchUpdateIntentsRequest) GetIntentBatchUri

func (m *BatchUpdateIntentsRequest) GetIntentBatchUri() string

func (*BatchUpdateIntentsRequest) GetIntentView

func (m *BatchUpdateIntentsRequest) GetIntentView() IntentView

func (*BatchUpdateIntentsRequest) GetLanguageCode

func (m *BatchUpdateIntentsRequest) GetLanguageCode() string

func (*BatchUpdateIntentsRequest) GetParent

func (m *BatchUpdateIntentsRequest) GetParent() string

func (*BatchUpdateIntentsRequest) GetUpdateMask

func (m *BatchUpdateIntentsRequest) GetUpdateMask() *field_mask.FieldMask

func (*BatchUpdateIntentsRequest) ProtoMessage

func (*BatchUpdateIntentsRequest) ProtoMessage()

func (*BatchUpdateIntentsRequest) Reset

func (m *BatchUpdateIntentsRequest) Reset()

func (*BatchUpdateIntentsRequest) String

func (m *BatchUpdateIntentsRequest) String() string

func (*BatchUpdateIntentsRequest) XXX_DiscardUnknown

func (m *BatchUpdateIntentsRequest) XXX_DiscardUnknown()

func (*BatchUpdateIntentsRequest) XXX_Marshal

func (m *BatchUpdateIntentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchUpdateIntentsRequest) XXX_Merge

func (m *BatchUpdateIntentsRequest) XXX_Merge(src proto.Message)

func (*BatchUpdateIntentsRequest) XXX_OneofWrappers

func (*BatchUpdateIntentsRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*BatchUpdateIntentsRequest) XXX_Size

func (m *BatchUpdateIntentsRequest) XXX_Size() int

func (*BatchUpdateIntentsRequest) XXX_Unmarshal

func (m *BatchUpdateIntentsRequest) XXX_Unmarshal(b []byte) error

type BatchUpdateIntentsRequest_IntentBatchInline

type BatchUpdateIntentsRequest_IntentBatchInline struct {
	IntentBatchInline *IntentBatch `protobuf:"bytes,3,opt,name=intent_batch_inline,json=intentBatchInline,proto3,oneof"`
}

type BatchUpdateIntentsRequest_IntentBatchUri

type BatchUpdateIntentsRequest_IntentBatchUri struct {
	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"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

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

func (*BatchUpdateIntentsResponse) Descriptor

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

func (*BatchUpdateIntentsResponse) GetIntents

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

func (*BatchUpdateIntentsResponse) ProtoMessage

func (*BatchUpdateIntentsResponse) ProtoMessage()

func (*BatchUpdateIntentsResponse) Reset

func (m *BatchUpdateIntentsResponse) Reset()

func (*BatchUpdateIntentsResponse) String

func (m *BatchUpdateIntentsResponse) String() string

func (*BatchUpdateIntentsResponse) XXX_DiscardUnknown

func (m *BatchUpdateIntentsResponse) XXX_DiscardUnknown()

func (*BatchUpdateIntentsResponse) XXX_Marshal

func (m *BatchUpdateIntentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchUpdateIntentsResponse) XXX_Merge

func (m *BatchUpdateIntentsResponse) XXX_Merge(src proto.Message)

func (*BatchUpdateIntentsResponse) XXX_Size

func (m *BatchUpdateIntentsResponse) XXX_Size() int

func (*BatchUpdateIntentsResponse) XXX_Unmarshal

func (m *BatchUpdateIntentsResponse) XXX_Unmarshal(b []byte) error

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: string or number, depending on parameter value type
	// -   MapValue value:
	//     -   If parameter's entity type is a composite entity:
	//         map from composite entity property names to property values
	//     -   Else: parameter value
	Parameters           *_struct.Struct `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Represents a context.

func (*Context) Descriptor

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

func (*Context) GetLifespanCount

func (m *Context) GetLifespanCount() int32

func (*Context) GetName

func (m *Context) GetName() string

func (*Context) GetParameters

func (m *Context) GetParameters() *_struct.Struct

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) Reset

func (m *Context) Reset()

func (*Context) String

func (m *Context) String() string

func (*Context) XXX_DiscardUnknown

func (m *Context) XXX_DiscardUnknown()

func (*Context) XXX_Marshal

func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Context) XXX_Merge

func (m *Context) XXX_Merge(src proto.Message)

func (*Context) XXX_Size

func (m *Context) XXX_Size() int

func (*Context) XXX_Unmarshal

func (m *Context) XXX_Unmarshal(b []byte) error

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) (*empty.Empty, error)
	// Deletes all active contexts in the specified session.
	DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

ContextsClient is the client API for Contexts service.

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

func NewContextsClient

func NewContextsClient(cc grpc.ClientConnInterface) ContextsClient

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) (*empty.Empty, error)
	// Deletes all active contexts in the specified session.
	DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*empty.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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].

func (*CreateContextRequest) Descriptor

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

func (*CreateContextRequest) GetContext

func (m *CreateContextRequest) GetContext() *Context

func (*CreateContextRequest) GetParent

func (m *CreateContextRequest) GetParent() string

func (*CreateContextRequest) ProtoMessage

func (*CreateContextRequest) ProtoMessage()

func (*CreateContextRequest) Reset

func (m *CreateContextRequest) Reset()

func (*CreateContextRequest) String

func (m *CreateContextRequest) String() string

func (*CreateContextRequest) XXX_DiscardUnknown

func (m *CreateContextRequest) XXX_DiscardUnknown()

func (*CreateContextRequest) XXX_Marshal

func (m *CreateContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateContextRequest) XXX_Merge

func (m *CreateContextRequest) XXX_Merge(src proto.Message)

func (*CreateContextRequest) XXX_Size

func (m *CreateContextRequest) XXX_Size() int

func (*CreateContextRequest) XXX_Unmarshal

func (m *CreateContextRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*CreateEntityTypeRequest) Descriptor

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

func (*CreateEntityTypeRequest) GetEntityType

func (m *CreateEntityTypeRequest) GetEntityType() *EntityType

func (*CreateEntityTypeRequest) GetLanguageCode

func (m *CreateEntityTypeRequest) GetLanguageCode() string

func (*CreateEntityTypeRequest) GetParent

func (m *CreateEntityTypeRequest) GetParent() string

func (*CreateEntityTypeRequest) ProtoMessage

func (*CreateEntityTypeRequest) ProtoMessage()

func (*CreateEntityTypeRequest) Reset

func (m *CreateEntityTypeRequest) Reset()

func (*CreateEntityTypeRequest) String

func (m *CreateEntityTypeRequest) String() string

func (*CreateEntityTypeRequest) XXX_DiscardUnknown

func (m *CreateEntityTypeRequest) XXX_DiscardUnknown()

func (*CreateEntityTypeRequest) XXX_Marshal

func (m *CreateEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateEntityTypeRequest) XXX_Merge

func (m *CreateEntityTypeRequest) XXX_Merge(src proto.Message)

func (*CreateEntityTypeRequest) XXX_Size

func (m *CreateEntityTypeRequest) XXX_Size() int

func (*CreateEntityTypeRequest) XXX_Unmarshal

func (m *CreateEntityTypeRequest) XXX_Unmarshal(b []byte) error

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 */
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

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

func (*CreateIntentRequest) Descriptor

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

func (*CreateIntentRequest) GetIntent

func (m *CreateIntentRequest) GetIntent() *Intent

func (*CreateIntentRequest) GetIntentView

func (m *CreateIntentRequest) GetIntentView() IntentView

func (*CreateIntentRequest) GetLanguageCode

func (m *CreateIntentRequest) GetLanguageCode() string

func (*CreateIntentRequest) GetParent

func (m *CreateIntentRequest) GetParent() string

func (*CreateIntentRequest) ProtoMessage

func (*CreateIntentRequest) ProtoMessage()

func (*CreateIntentRequest) Reset

func (m *CreateIntentRequest) Reset()

func (*CreateIntentRequest) String

func (m *CreateIntentRequest) String() string

func (*CreateIntentRequest) XXX_DiscardUnknown

func (m *CreateIntentRequest) XXX_DiscardUnknown()

func (*CreateIntentRequest) XXX_Marshal

func (m *CreateIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateIntentRequest) XXX_Merge

func (m *CreateIntentRequest) XXX_Merge(src proto.Message)

func (*CreateIntentRequest) XXX_Size

func (m *CreateIntentRequest) XXX_Size() int

func (*CreateIntentRequest) XXX_Unmarshal

func (m *CreateIntentRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType].

func (*CreateSessionEntityTypeRequest) Descriptor

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

func (*CreateSessionEntityTypeRequest) GetParent

func (m *CreateSessionEntityTypeRequest) GetParent() string

func (*CreateSessionEntityTypeRequest) GetSessionEntityType

func (m *CreateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityType

func (*CreateSessionEntityTypeRequest) ProtoMessage

func (*CreateSessionEntityTypeRequest) ProtoMessage()

func (*CreateSessionEntityTypeRequest) Reset

func (m *CreateSessionEntityTypeRequest) Reset()

func (*CreateSessionEntityTypeRequest) String

func (*CreateSessionEntityTypeRequest) XXX_DiscardUnknown

func (m *CreateSessionEntityTypeRequest) XXX_DiscardUnknown()

func (*CreateSessionEntityTypeRequest) XXX_Marshal

func (m *CreateSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateSessionEntityTypeRequest) XXX_Merge

func (m *CreateSessionEntityTypeRequest) XXX_Merge(src proto.Message)

func (*CreateSessionEntityTypeRequest) XXX_Size

func (m *CreateSessionEntityTypeRequest) XXX_Size() int

func (*CreateSessionEntityTypeRequest) XXX_Unmarshal

func (m *CreateSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Agents.DeleteAgent][google.cloud.dialogflow.v2.Agents.DeleteAgent].

func (*DeleteAgentRequest) Descriptor

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

func (*DeleteAgentRequest) GetParent

func (m *DeleteAgentRequest) GetParent() string

func (*DeleteAgentRequest) ProtoMessage

func (*DeleteAgentRequest) ProtoMessage()

func (*DeleteAgentRequest) Reset

func (m *DeleteAgentRequest) Reset()

func (*DeleteAgentRequest) String

func (m *DeleteAgentRequest) String() string

func (*DeleteAgentRequest) XXX_DiscardUnknown

func (m *DeleteAgentRequest) XXX_DiscardUnknown()

func (*DeleteAgentRequest) XXX_Marshal

func (m *DeleteAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteAgentRequest) XXX_Merge

func (m *DeleteAgentRequest) XXX_Merge(src proto.Message)

func (*DeleteAgentRequest) XXX_Size

func (m *DeleteAgentRequest) XXX_Size() int

func (*DeleteAgentRequest) XXX_Unmarshal

func (m *DeleteAgentRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts].

func (*DeleteAllContextsRequest) Descriptor

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

func (*DeleteAllContextsRequest) GetParent

func (m *DeleteAllContextsRequest) GetParent() string

func (*DeleteAllContextsRequest) ProtoMessage

func (*DeleteAllContextsRequest) ProtoMessage()

func (*DeleteAllContextsRequest) Reset

func (m *DeleteAllContextsRequest) Reset()

func (*DeleteAllContextsRequest) String

func (m *DeleteAllContextsRequest) String() string

func (*DeleteAllContextsRequest) XXX_DiscardUnknown

func (m *DeleteAllContextsRequest) XXX_DiscardUnknown()

func (*DeleteAllContextsRequest) XXX_Marshal

func (m *DeleteAllContextsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteAllContextsRequest) XXX_Merge

func (m *DeleteAllContextsRequest) XXX_Merge(src proto.Message)

func (*DeleteAllContextsRequest) XXX_Size

func (m *DeleteAllContextsRequest) XXX_Size() int

func (*DeleteAllContextsRequest) XXX_Unmarshal

func (m *DeleteAllContextsRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext].

func (*DeleteContextRequest) Descriptor

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

func (*DeleteContextRequest) GetName

func (m *DeleteContextRequest) GetName() string

func (*DeleteContextRequest) ProtoMessage

func (*DeleteContextRequest) ProtoMessage()

func (*DeleteContextRequest) Reset

func (m *DeleteContextRequest) Reset()

func (*DeleteContextRequest) String

func (m *DeleteContextRequest) String() string

func (*DeleteContextRequest) XXX_DiscardUnknown

func (m *DeleteContextRequest) XXX_DiscardUnknown()

func (*DeleteContextRequest) XXX_Marshal

func (m *DeleteContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteContextRequest) XXX_Merge

func (m *DeleteContextRequest) XXX_Merge(src proto.Message)

func (*DeleteContextRequest) XXX_Size

func (m *DeleteContextRequest) XXX_Size() int

func (*DeleteContextRequest) XXX_Unmarshal

func (m *DeleteContextRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*DeleteEntityTypeRequest) Descriptor

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

func (*DeleteEntityTypeRequest) GetName

func (m *DeleteEntityTypeRequest) GetName() string

func (*DeleteEntityTypeRequest) ProtoMessage

func (*DeleteEntityTypeRequest) ProtoMessage()

func (*DeleteEntityTypeRequest) Reset

func (m *DeleteEntityTypeRequest) Reset()

func (*DeleteEntityTypeRequest) String

func (m *DeleteEntityTypeRequest) String() string

func (*DeleteEntityTypeRequest) XXX_DiscardUnknown

func (m *DeleteEntityTypeRequest) XXX_DiscardUnknown()

func (*DeleteEntityTypeRequest) XXX_Marshal

func (m *DeleteEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteEntityTypeRequest) XXX_Merge

func (m *DeleteEntityTypeRequest) XXX_Merge(src proto.Message)

func (*DeleteEntityTypeRequest) XXX_Size

func (m *DeleteEntityTypeRequest) XXX_Size() int

func (*DeleteEntityTypeRequest) XXX_Unmarshal

func (m *DeleteEntityTypeRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*DeleteIntentRequest) Descriptor

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

func (*DeleteIntentRequest) GetName

func (m *DeleteIntentRequest) GetName() string

func (*DeleteIntentRequest) ProtoMessage

func (*DeleteIntentRequest) ProtoMessage()

func (*DeleteIntentRequest) Reset

func (m *DeleteIntentRequest) Reset()

func (*DeleteIntentRequest) String

func (m *DeleteIntentRequest) String() string

func (*DeleteIntentRequest) XXX_DiscardUnknown

func (m *DeleteIntentRequest) XXX_DiscardUnknown()

func (*DeleteIntentRequest) XXX_Marshal

func (m *DeleteIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteIntentRequest) XXX_Merge

func (m *DeleteIntentRequest) XXX_Merge(src proto.Message)

func (*DeleteIntentRequest) XXX_Size

func (m *DeleteIntentRequest) XXX_Size() int

func (*DeleteIntentRequest) XXX_Unmarshal

func (m *DeleteIntentRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType].

func (*DeleteSessionEntityTypeRequest) Descriptor

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

func (*DeleteSessionEntityTypeRequest) GetName

func (*DeleteSessionEntityTypeRequest) ProtoMessage

func (*DeleteSessionEntityTypeRequest) ProtoMessage()

func (*DeleteSessionEntityTypeRequest) Reset

func (m *DeleteSessionEntityTypeRequest) Reset()

func (*DeleteSessionEntityTypeRequest) String

func (*DeleteSessionEntityTypeRequest) XXX_DiscardUnknown

func (m *DeleteSessionEntityTypeRequest) XXX_DiscardUnknown()

func (*DeleteSessionEntityTypeRequest) XXX_Marshal

func (m *DeleteSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteSessionEntityTypeRequest) XXX_Merge

func (m *DeleteSessionEntityTypeRequest) XXX_Merge(src proto.Message)

func (*DeleteSessionEntityTypeRequest) XXX_Size

func (m *DeleteSessionEntityTypeRequest) XXX_Size() int

func (*DeleteSessionEntityTypeRequest) XXX_Unmarshal

func (m *DeleteSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error

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.
	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 *field_mask.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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request to detect user's intent.

func (*DetectIntentRequest) Descriptor

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

func (*DetectIntentRequest) GetInputAudio

func (m *DetectIntentRequest) GetInputAudio() []byte

func (*DetectIntentRequest) GetOutputAudioConfig

func (m *DetectIntentRequest) GetOutputAudioConfig() *OutputAudioConfig

func (*DetectIntentRequest) GetOutputAudioConfigMask

func (m *DetectIntentRequest) GetOutputAudioConfigMask() *field_mask.FieldMask

func (*DetectIntentRequest) GetQueryInput

func (m *DetectIntentRequest) GetQueryInput() *QueryInput

func (*DetectIntentRequest) GetQueryParams

func (m *DetectIntentRequest) GetQueryParams() *QueryParameters

func (*DetectIntentRequest) GetSession

func (m *DetectIntentRequest) GetSession() string

func (*DetectIntentRequest) ProtoMessage

func (*DetectIntentRequest) ProtoMessage()

func (*DetectIntentRequest) Reset

func (m *DetectIntentRequest) Reset()

func (*DetectIntentRequest) String

func (m *DetectIntentRequest) String() string

func (*DetectIntentRequest) XXX_DiscardUnknown

func (m *DetectIntentRequest) XXX_DiscardUnknown()

func (*DetectIntentRequest) XXX_Marshal

func (m *DetectIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DetectIntentRequest) XXX_Merge

func (m *DetectIntentRequest) XXX_Merge(src proto.Message)

func (*DetectIntentRequest) XXX_Size

func (m *DetectIntentRequest) XXX_Size() int

func (*DetectIntentRequest) XXX_Unmarshal

func (m *DetectIntentRequest) XXX_Unmarshal(b []byte) error

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.
	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"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

The message returned from the DetectIntent method.

func (*DetectIntentResponse) Descriptor

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

func (*DetectIntentResponse) GetOutputAudio

func (m *DetectIntentResponse) GetOutputAudio() []byte

func (*DetectIntentResponse) GetOutputAudioConfig

func (m *DetectIntentResponse) GetOutputAudioConfig() *OutputAudioConfig

func (*DetectIntentResponse) GetQueryResult

func (m *DetectIntentResponse) GetQueryResult() *QueryResult

func (*DetectIntentResponse) GetResponseId

func (m *DetectIntentResponse) GetResponseId() string

func (*DetectIntentResponse) GetWebhookStatus

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

func (*DetectIntentResponse) ProtoMessage

func (*DetectIntentResponse) ProtoMessage()

func (*DetectIntentResponse) Reset

func (m *DetectIntentResponse) Reset()

func (*DetectIntentResponse) String

func (m *DetectIntentResponse) String() string

func (*DetectIntentResponse) XXX_DiscardUnknown

func (m *DetectIntentResponse) XXX_DiscardUnknown()

func (*DetectIntentResponse) XXX_Marshal

func (m *DetectIntentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DetectIntentResponse) XXX_Merge

func (m *DetectIntentResponse) XXX_Merge(src proto.Message)

func (*DetectIntentResponse) XXX_Size

func (m *DetectIntentResponse) XXX_Size() int

func (*DetectIntentResponse) XXX_Unmarshal

func (m *DetectIntentResponse) XXX_Unmarshal(b []byte) error

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 */
	XXX_NoUnkeyedLiteral  struct{} `json:"-"`
	XXX_unrecognized      []byte   `json:"-"`
	XXX_sizecache         int32    `json:"-"`
}

Represents an entity type. Entity types serve as a tool for extracting parameter values from natural language queries.

func (*EntityType) Descriptor

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

func (*EntityType) GetAutoExpansionMode

func (m *EntityType) GetAutoExpansionMode() EntityType_AutoExpansionMode

func (*EntityType) GetDisplayName

func (m *EntityType) GetDisplayName() string

func (*EntityType) GetEnableFuzzyExtraction

func (m *EntityType) GetEnableFuzzyExtraction() bool

func (*EntityType) GetEntities

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

func (*EntityType) GetKind

func (m *EntityType) GetKind() EntityType_Kind

func (*EntityType) GetName

func (m *EntityType) GetName() string

func (*EntityType) ProtoMessage

func (*EntityType) ProtoMessage()

func (*EntityType) Reset

func (m *EntityType) Reset()

func (*EntityType) String

func (m *EntityType) String() string

func (*EntityType) XXX_DiscardUnknown

func (m *EntityType) XXX_DiscardUnknown()

func (*EntityType) XXX_Marshal

func (m *EntityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntityType) XXX_Merge

func (m *EntityType) XXX_Merge(src proto.Message)

func (*EntityType) XXX_Size

func (m *EntityType) XXX_Size() int

func (*EntityType) XXX_Unmarshal

func (m *EntityType) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

This message is a wrapper around a collection of entity types.

func (*EntityTypeBatch) Descriptor

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

func (*EntityTypeBatch) GetEntityTypes

func (m *EntityTypeBatch) GetEntityTypes() []*EntityType

func (*EntityTypeBatch) ProtoMessage

func (*EntityTypeBatch) ProtoMessage()

func (*EntityTypeBatch) Reset

func (m *EntityTypeBatch) Reset()

func (*EntityTypeBatch) String

func (m *EntityTypeBatch) String() string

func (*EntityTypeBatch) XXX_DiscardUnknown

func (m *EntityTypeBatch) XXX_DiscardUnknown()

func (*EntityTypeBatch) XXX_Marshal

func (m *EntityTypeBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntityTypeBatch) XXX_Merge

func (m *EntityTypeBatch) XXX_Merge(src proto.Message)

func (*EntityTypeBatch) XXX_Size

func (m *EntityTypeBatch) XXX_Size() int

func (*EntityTypeBatch) XXX_Unmarshal

func (m *EntityTypeBatch) XXX_Unmarshal(b []byte) error

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

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

func (EntityType_AutoExpansionMode) String

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An **entity entry** for an associated entity type.

func (*EntityType_Entity) Descriptor

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

func (*EntityType_Entity) GetSynonyms

func (m *EntityType_Entity) GetSynonyms() []string

func (*EntityType_Entity) GetValue

func (m *EntityType_Entity) GetValue() string

func (*EntityType_Entity) ProtoMessage

func (*EntityType_Entity) ProtoMessage()

func (*EntityType_Entity) Reset

func (m *EntityType_Entity) Reset()

func (*EntityType_Entity) String

func (m *EntityType_Entity) String() string

func (*EntityType_Entity) XXX_DiscardUnknown

func (m *EntityType_Entity) XXX_DiscardUnknown()

func (*EntityType_Entity) XXX_Marshal

func (m *EntityType_Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntityType_Entity) XXX_Merge

func (m *EntityType_Entity) XXX_Merge(src proto.Message)

func (*EntityType_Entity) XXX_Size

func (m *EntityType_Entity) XXX_Size() int

func (*EntityType_Entity) XXX_Unmarshal

func (m *EntityType_Entity) XXX_Unmarshal(b []byte) error

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

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

func (EntityType_Kind) String

func (x EntityType_Kind) String() string

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

EntityTypesServer is the server API for EntityTypes service.

type Environment

type Environment struct {
	// Output only. The unique identifier of this agent environment.
	// Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
	// For Environment ID, "-" is reserved for 'draft' environment.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. The developer-provided description for this environment.
	// The maximum length is 500 characters. If exceeded, the request is rejected.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Optional. The agent version loaded into this environment.
	// Format: `projects/<Project ID>/agent/versions/<Version ID>`.
	AgentVersion string `protobuf:"bytes,3,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
	// Output only. The state of this environment. This field is read-only, i.e., it cannot be
	// set by create and update methods.
	State Environment_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.dialogflow.v2.Environment_State" json:"state,omitempty"`
	// Output only. The last update time of this environment. This field is read-only, i.e., it
	// cannot be set by create and update methods.
	UpdateTime           *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Represents an agent environment.

func (*Environment) Descriptor

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

func (*Environment) GetAgentVersion

func (m *Environment) GetAgentVersion() string

func (*Environment) GetDescription

func (m *Environment) GetDescription() string

func (*Environment) GetName

func (m *Environment) GetName() string

func (*Environment) GetState

func (m *Environment) GetState() Environment_State

func (*Environment) GetUpdateTime

func (m *Environment) GetUpdateTime() *timestamp.Timestamp

func (*Environment) ProtoMessage

func (*Environment) ProtoMessage()

func (*Environment) Reset

func (m *Environment) Reset()

func (*Environment) String

func (m *Environment) String() string

func (*Environment) XXX_DiscardUnknown

func (m *Environment) XXX_DiscardUnknown()

func (*Environment) XXX_Marshal

func (m *Environment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Environment) XXX_Merge

func (m *Environment) XXX_Merge(src proto.Message)

func (*Environment) XXX_Size

func (m *Environment) XXX_Size() int

func (*Environment) XXX_Unmarshal

func (m *Environment) XXX_Unmarshal(b []byte) error

type Environment_State

type Environment_State int32

Represents an environment state. When a 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.

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

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

func (Environment_State) String

func (x Environment_State) String() string

type EnvironmentsClient

type EnvironmentsClient interface {
	// Returns the list of all non-draft environments of the specified agent.
	ListEnvironments(ctx context.Context, in *ListEnvironmentsRequest, opts ...grpc.CallOption) (*ListEnvironmentsResponse, error)
}

EnvironmentsClient is the client API for Environments service.

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

type EnvironmentsServer

type EnvironmentsServer interface {
	// Returns the list of all non-draft environments of the specified agent.
	ListEnvironments(context.Context, *ListEnvironmentsRequest) (*ListEnvironmentsResponse, error)
}

EnvironmentsServer is the server API for Environments service.

type 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: map
	//     -   Else: string or number, depending on parameter value type
	// -   MapValue value:
	//     -   If parameter's entity type is a composite entity:
	//         map from composite entity property names to property values
	//     -   Else: parameter value
	Parameters *_struct.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.
	LanguageCode         string   `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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)

func (*EventInput) GetLanguageCode

func (m *EventInput) GetLanguageCode() string

func (*EventInput) GetName

func (m *EventInput) GetName() string

func (*EventInput) GetParameters

func (m *EventInput) GetParameters() *_struct.Struct

func (*EventInput) ProtoMessage

func (*EventInput) ProtoMessage()

func (*EventInput) Reset

func (m *EventInput) Reset()

func (*EventInput) String

func (m *EventInput) String() string

func (*EventInput) XXX_DiscardUnknown

func (m *EventInput) XXX_DiscardUnknown()

func (*EventInput) XXX_Marshal

func (m *EventInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventInput) XXX_Merge

func (m *EventInput) XXX_Merge(src proto.Message)

func (*EventInput) XXX_Size

func (m *EventInput) XXX_Size() int

func (*EventInput) XXX_Unmarshal

func (m *EventInput) XXX_Unmarshal(b []byte) error

type ExportAgentRequest

type ExportAgentRequest struct {
	// Required. The project that the agent to export is associated with.
	// Format: `projects/<Project ID>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
	// URI to export the agent to.
	// The format of this URI must be `gs://<bucket-name>/<object-name>`.
	// If left unspecified, the serialized agent is returned inline.
	AgentUri             string   `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3" json:"agent_uri,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].

func (*ExportAgentRequest) Descriptor

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

func (*ExportAgentRequest) GetAgentUri

func (m *ExportAgentRequest) GetAgentUri() string

func (*ExportAgentRequest) GetParent

func (m *ExportAgentRequest) GetParent() string

func (*ExportAgentRequest) ProtoMessage

func (*ExportAgentRequest) ProtoMessage()

func (*ExportAgentRequest) Reset

func (m *ExportAgentRequest) Reset()

func (*ExportAgentRequest) String

func (m *ExportAgentRequest) String() string

func (*ExportAgentRequest) XXX_DiscardUnknown

func (m *ExportAgentRequest) XXX_DiscardUnknown()

func (*ExportAgentRequest) XXX_Marshal

func (m *ExportAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportAgentRequest) XXX_Merge

func (m *ExportAgentRequest) XXX_Merge(src proto.Message)

func (*ExportAgentRequest) XXX_Size

func (m *ExportAgentRequest) XXX_Size() int

func (*ExportAgentRequest) XXX_Unmarshal

func (m *ExportAgentRequest) XXX_Unmarshal(b []byte) error

type ExportAgentResponse

type ExportAgentResponse struct {
	// The exported agent.
	//
	// Types that are valid to be assigned to Agent:
	//	*ExportAgentResponse_AgentUri
	//	*ExportAgentResponse_AgentContent
	Agent                isExportAgentResponse_Agent `protobuf_oneof:"agent"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].

func (*ExportAgentResponse) Descriptor

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

func (*ExportAgentResponse) GetAgent

func (m *ExportAgentResponse) GetAgent() isExportAgentResponse_Agent

func (*ExportAgentResponse) GetAgentContent

func (m *ExportAgentResponse) GetAgentContent() []byte

func (*ExportAgentResponse) GetAgentUri

func (m *ExportAgentResponse) GetAgentUri() string

func (*ExportAgentResponse) ProtoMessage

func (*ExportAgentResponse) ProtoMessage()

func (*ExportAgentResponse) Reset

func (m *ExportAgentResponse) Reset()

func (*ExportAgentResponse) String

func (m *ExportAgentResponse) String() string

func (*ExportAgentResponse) XXX_DiscardUnknown

func (m *ExportAgentResponse) XXX_DiscardUnknown()

func (*ExportAgentResponse) XXX_Marshal

func (m *ExportAgentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportAgentResponse) XXX_Merge

func (m *ExportAgentResponse) XXX_Merge(src proto.Message)

func (*ExportAgentResponse) XXX_OneofWrappers

func (*ExportAgentResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ExportAgentResponse) XXX_Size

func (m *ExportAgentResponse) XXX_Size() int

func (*ExportAgentResponse) XXX_Unmarshal

func (m *ExportAgentResponse) XXX_Unmarshal(b []byte) error

type ExportAgentResponse_AgentContent

type ExportAgentResponse_AgentContent struct {
	AgentContent []byte `protobuf:"bytes,2,opt,name=agent_content,json=agentContent,proto3,oneof"`
}

type ExportAgentResponse_AgentUri

type ExportAgentResponse_AgentUri struct {
	AgentUri string `protobuf:"bytes,1,opt,name=agent_uri,json=agentUri,proto3,oneof"`
}

type GetAgentRequest

type GetAgentRequest struct {
	// Required. The project that the agent to fetch is associated with.
	// Format: `projects/<Project ID>`.
	Parent               string   `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent].

func (*GetAgentRequest) Descriptor

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

func (*GetAgentRequest) GetParent

func (m *GetAgentRequest) GetParent() string

func (*GetAgentRequest) ProtoMessage

func (*GetAgentRequest) ProtoMessage()

func (*GetAgentRequest) Reset

func (m *GetAgentRequest) Reset()

func (*GetAgentRequest) String

func (m *GetAgentRequest) String() string

func (*GetAgentRequest) XXX_DiscardUnknown

func (m *GetAgentRequest) XXX_DiscardUnknown()

func (*GetAgentRequest) XXX_Marshal

func (m *GetAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAgentRequest) XXX_Merge

func (m *GetAgentRequest) XXX_Merge(src proto.Message)

func (*GetAgentRequest) XXX_Size

func (m *GetAgentRequest) XXX_Size() int

func (*GetAgentRequest) XXX_Unmarshal

func (m *GetAgentRequest) XXX_Unmarshal(b []byte) error

type GetContextRequest

type GetContextRequest struct {
	// Required. The name 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>`.
	// 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext].

func (*GetContextRequest) Descriptor

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

func (*GetContextRequest) GetName

func (m *GetContextRequest) GetName() string

func (*GetContextRequest) ProtoMessage

func (*GetContextRequest) ProtoMessage()

func (*GetContextRequest) Reset

func (m *GetContextRequest) Reset()

func (*GetContextRequest) String

func (m *GetContextRequest) String() string

func (*GetContextRequest) XXX_DiscardUnknown

func (m *GetContextRequest) XXX_DiscardUnknown()

func (*GetContextRequest) XXX_Marshal

func (m *GetContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetContextRequest) XXX_Merge

func (m *GetContextRequest) XXX_Merge(src proto.Message)

func (*GetContextRequest) XXX_Size

func (m *GetContextRequest) XXX_Size() int

func (*GetContextRequest) XXX_Unmarshal

func (m *GetContextRequest) XXX_Unmarshal(b []byte) error

type GetEntityTypeRequest

type GetEntityTypeRequest struct {
	// Required. The name of the entity type.
	// Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,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,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*GetEntityTypeRequest) Descriptor

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

func (*GetEntityTypeRequest) GetLanguageCode

func (m *GetEntityTypeRequest) GetLanguageCode() string

func (*GetEntityTypeRequest) GetName

func (m *GetEntityTypeRequest) GetName() string

func (*GetEntityTypeRequest) ProtoMessage

func (*GetEntityTypeRequest) ProtoMessage()

func (*GetEntityTypeRequest) Reset

func (m *GetEntityTypeRequest) Reset()

func (*GetEntityTypeRequest) String

func (m *GetEntityTypeRequest) String() string

func (*GetEntityTypeRequest) XXX_DiscardUnknown

func (m *GetEntityTypeRequest) XXX_DiscardUnknown()

func (*GetEntityTypeRequest) XXX_Marshal

func (m *GetEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetEntityTypeRequest) XXX_Merge

func (m *GetEntityTypeRequest) XXX_Merge(src proto.Message)

func (*GetEntityTypeRequest) XXX_Size

func (m *GetEntityTypeRequest) XXX_Size() int

func (*GetEntityTypeRequest) XXX_Unmarshal

func (m *GetEntityTypeRequest) XXX_Unmarshal(b []byte) error

type GetIntentRequest

type GetIntentRequest struct {
	// Required. The name of the intent.
	// Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,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,2,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 */
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

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

func (*GetIntentRequest) Descriptor

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

func (*GetIntentRequest) GetIntentView

func (m *GetIntentRequest) GetIntentView() IntentView

func (*GetIntentRequest) GetLanguageCode

func (m *GetIntentRequest) GetLanguageCode() string

func (*GetIntentRequest) GetName

func (m *GetIntentRequest) GetName() string

func (*GetIntentRequest) ProtoMessage

func (*GetIntentRequest) ProtoMessage()

func (*GetIntentRequest) Reset

func (m *GetIntentRequest) Reset()

func (*GetIntentRequest) String

func (m *GetIntentRequest) String() string

func (*GetIntentRequest) XXX_DiscardUnknown

func (m *GetIntentRequest) XXX_DiscardUnknown()

func (*GetIntentRequest) XXX_Marshal

func (m *GetIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetIntentRequest) XXX_Merge

func (m *GetIntentRequest) XXX_Merge(src proto.Message)

func (*GetIntentRequest) XXX_Size

func (m *GetIntentRequest) XXX_Size() int

func (*GetIntentRequest) XXX_Unmarshal

func (m *GetIntentRequest) XXX_Unmarshal(b []byte) error

type GetSessionEntityTypeRequest

type GetSessionEntityTypeRequest struct {
	// Required. The name of the session entity type. 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType].

func (*GetSessionEntityTypeRequest) Descriptor

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

func (*GetSessionEntityTypeRequest) GetName

func (m *GetSessionEntityTypeRequest) GetName() string

func (*GetSessionEntityTypeRequest) ProtoMessage

func (*GetSessionEntityTypeRequest) ProtoMessage()

func (*GetSessionEntityTypeRequest) Reset

func (m *GetSessionEntityTypeRequest) Reset()

func (*GetSessionEntityTypeRequest) String

func (m *GetSessionEntityTypeRequest) String() string

func (*GetSessionEntityTypeRequest) XXX_DiscardUnknown

func (m *GetSessionEntityTypeRequest) XXX_DiscardUnknown()

func (*GetSessionEntityTypeRequest) XXX_Marshal

func (m *GetSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSessionEntityTypeRequest) XXX_Merge

func (m *GetSessionEntityTypeRequest) XXX_Merge(src proto.Message)

func (*GetSessionEntityTypeRequest) XXX_Size

func (m *GetSessionEntityTypeRequest) XXX_Size() int

func (*GetSessionEntityTypeRequest) XXX_Unmarshal

func (m *GetSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error

type GetValidationResultRequest

type GetValidationResultRequest struct {
	// Required. The project that the agent is associated with.
	// Format: `projects/<Project ID>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The language for which you want a validation result. If not
	// specified, the agent's default language is used. [Many
	// languages](https://cloud.google.com/dialogflow/docs/reference/language)
	// are supported. Note: languages must be enabled in the agent before they can
	// be used.
	LanguageCode         string   `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult].

func (*GetValidationResultRequest) Descriptor

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

func (*GetValidationResultRequest) GetLanguageCode

func (m *GetValidationResultRequest) GetLanguageCode() string

func (*GetValidationResultRequest) GetParent

func (m *GetValidationResultRequest) GetParent() string

func (*GetValidationResultRequest) ProtoMessage

func (*GetValidationResultRequest) ProtoMessage()

func (*GetValidationResultRequest) Reset

func (m *GetValidationResultRequest) Reset()

func (*GetValidationResultRequest) String

func (m *GetValidationResultRequest) String() string

func (*GetValidationResultRequest) XXX_DiscardUnknown

func (m *GetValidationResultRequest) XXX_DiscardUnknown()

func (*GetValidationResultRequest) XXX_Marshal

func (m *GetValidationResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetValidationResultRequest) XXX_Merge

func (m *GetValidationResultRequest) XXX_Merge(src proto.Message)

func (*GetValidationResultRequest) XXX_Size

func (m *GetValidationResultRequest) XXX_Size() int

func (*GetValidationResultRequest) XXX_Unmarshal

func (m *GetValidationResultRequest) XXX_Unmarshal(b []byte) error

type ImportAgentRequest

type ImportAgentRequest struct {
	// Required. The project that the agent to import is associated with.
	// Format: `projects/<Project ID>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The agent to import.
	//
	// Types that are valid to be assigned to Agent:
	//	*ImportAgentRequest_AgentUri
	//	*ImportAgentRequest_AgentContent
	Agent                isImportAgentRequest_Agent `protobuf_oneof:"agent"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].

func (*ImportAgentRequest) Descriptor

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

func (*ImportAgentRequest) GetAgent

func (m *ImportAgentRequest) GetAgent() isImportAgentRequest_Agent

func (*ImportAgentRequest) GetAgentContent

func (m *ImportAgentRequest) GetAgentContent() []byte

func (*ImportAgentRequest) GetAgentUri

func (m *ImportAgentRequest) GetAgentUri() string

func (*ImportAgentRequest) GetParent

func (m *ImportAgentRequest) GetParent() string

func (*ImportAgentRequest) ProtoMessage

func (*ImportAgentRequest) ProtoMessage()

func (*ImportAgentRequest) Reset

func (m *ImportAgentRequest) Reset()

func (*ImportAgentRequest) String

func (m *ImportAgentRequest) String() string

func (*ImportAgentRequest) XXX_DiscardUnknown

func (m *ImportAgentRequest) XXX_DiscardUnknown()

func (*ImportAgentRequest) XXX_Marshal

func (m *ImportAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportAgentRequest) XXX_Merge

func (m *ImportAgentRequest) XXX_Merge(src proto.Message)

func (*ImportAgentRequest) XXX_OneofWrappers

func (*ImportAgentRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ImportAgentRequest) XXX_Size

func (m *ImportAgentRequest) XXX_Size() int

func (*ImportAgentRequest) XXX_Unmarshal

func (m *ImportAgentRequest) XXX_Unmarshal(b []byte) error

type ImportAgentRequest_AgentContent

type ImportAgentRequest_AgentContent struct {
	AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"`
}

type ImportAgentRequest_AgentUri

type ImportAgentRequest_AgentUri struct {
	AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"`
}

type InputAudioConfig

type InputAudioConfig struct {
	// Required. Audio encoding of the audio content to process.
	AudioEncoding AudioEncoding `` /* 147-byte string literal not displayed */
	// 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]().
	PhraseHints []string `protobuf:"bytes,4,rep,name=phrase_hints,json=phraseHints,proto3" json:"phrase_hints,omitempty"` // Deprecated: Do not use.
	// 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"`
	// Which Speech model to select for the given request. Select the
	// model best suited to your domain to get best results. If a model is not
	// explicitly specified, then we auto-select a model based on the parameters
	// in the InputAudioConfig.
	// If enhanced speech model is enabled for the agent and an enhanced
	// version of the specified model for the language does not exist, then the
	// speech is recognized using the standard version of the specified model.
	// Refer to
	// [Cloud Speech API
	// documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
	// for more details.
	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 `` /* 150-byte string literal not displayed */
	// 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Instructs the speech recognizer how to process the audio content.

func (*InputAudioConfig) Descriptor

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

func (*InputAudioConfig) GetAudioEncoding

func (m *InputAudioConfig) GetAudioEncoding() AudioEncoding

func (*InputAudioConfig) GetEnableWordInfo

func (m *InputAudioConfig) GetEnableWordInfo() bool

func (*InputAudioConfig) GetLanguageCode

func (m *InputAudioConfig) GetLanguageCode() string

func (*InputAudioConfig) GetModel

func (m *InputAudioConfig) GetModel() string

func (*InputAudioConfig) GetModelVariant

func (m *InputAudioConfig) GetModelVariant() SpeechModelVariant

func (*InputAudioConfig) GetPhraseHints deprecated

func (m *InputAudioConfig) GetPhraseHints() []string

Deprecated: Do not use.

func (*InputAudioConfig) GetSampleRateHertz

func (m *InputAudioConfig) GetSampleRateHertz() int32

func (*InputAudioConfig) GetSingleUtterance

func (m *InputAudioConfig) GetSingleUtterance() bool

func (*InputAudioConfig) GetSpeechContexts

func (m *InputAudioConfig) GetSpeechContexts() []*SpeechContext

func (*InputAudioConfig) ProtoMessage

func (*InputAudioConfig) ProtoMessage()

func (*InputAudioConfig) Reset

func (m *InputAudioConfig) Reset()

func (*InputAudioConfig) String

func (m *InputAudioConfig) String() string

func (*InputAudioConfig) XXX_DiscardUnknown

func (m *InputAudioConfig) XXX_DiscardUnknown()

func (*InputAudioConfig) XXX_Marshal

func (m *InputAudioConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InputAudioConfig) XXX_Merge

func (m *InputAudioConfig) XXX_Merge(src proto.Message)

func (*InputAudioConfig) XXX_Size

func (m *InputAudioConfig) XXX_Size() int

func (*InputAudioConfig) XXX_Unmarshal

func (m *InputAudioConfig) XXX_Unmarshal(b []byte) error

type Intent

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/<Project ID>/agent/intents/<Intent ID>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The name of this intent.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Optional. Indicates whether webhooks are enabled for the intent.
	WebhookState Intent_WebhookState `` /* 150-byte string literal not displayed */
	// Optional. The priority of this intent. Higher numbers represent higher
	// priorities.
	//
	// - If the supplied value is unspecified or 0, the service
	//   translates the value to 500,000, which corresponds to the
	//   `Normal` priority in the console.
	// - If the supplied value is negative, the intent is ignored
	//   in runtime detect intent requests.
	Priority int32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
	// Optional. Indicates whether this is a fallback intent.
	IsFallback bool `protobuf:"varint,4,opt,name=is_fallback,json=isFallback,proto3" json:"is_fallback,omitempty"`
	// Optional. Indicates whether Machine Learning is disabled for the intent.
	// Note: If `ml_disabled` setting is set to true, then this intent is not
	// taken into account during inference in `ML ONLY` match mode. Also,
	// auto-markup in the UI is turned off.
	MlDisabled bool `protobuf:"varint,19,opt,name=ml_disabled,json=mlDisabled,proto3" json:"ml_disabled,omitempty"`
	// Optional. The list of context names required for this intent to be
	// triggered.
	// Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
	InputContextNames []string `protobuf:"bytes,7,rep,name=input_context_names,json=inputContextNames,proto3" json:"input_context_names,omitempty"`
	// Optional. The collection of event names that trigger the intent.
	// If the collection of input contexts is not empty, all of the contexts must
	// be present in the active user session for an event to trigger this intent.
	// Event names are limited to 150 characters.
	Events []string `protobuf:"bytes,8,rep,name=events,proto3" json:"events,omitempty"`
	// Optional. The collection of examples that the agent is
	// trained on.
	TrainingPhrases []*Intent_TrainingPhrase `protobuf:"bytes,9,rep,name=training_phrases,json=trainingPhrases,proto3" json:"training_phrases,omitempty"`
	// Optional. The name of the action associated with the intent.
	// Note: The action name must not contain whitespaces.
	Action string `protobuf:"bytes,10,opt,name=action,proto3" json:"action,omitempty"`
	// Optional. The collection of contexts that are activated when the intent
	// is matched. Context messages in this collection should not set the
	// parameters field. Setting the `lifespan_count` to 0 will reset the context
	// when the intent is matched.
	// Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
	OutputContexts []*Context `protobuf:"bytes,11,rep,name=output_contexts,json=outputContexts,proto3" json:"output_contexts,omitempty"`
	// Optional. Indicates whether to delete all contexts in the current
	// session when this intent is matched.
	ResetContexts bool `protobuf:"varint,12,opt,name=reset_contexts,json=resetContexts,proto3" json:"reset_contexts,omitempty"`
	// Optional. The collection of parameters associated with the intent.
	Parameters []*Intent_Parameter `protobuf:"bytes,13,rep,name=parameters,proto3" json:"parameters,omitempty"`
	// Optional. The collection of rich messages corresponding to the
	// `Response` field in the Dialogflow console.
	Messages []*Intent_Message `protobuf:"bytes,14,rep,name=messages,proto3" json:"messages,omitempty"`
	// Optional. The list of platforms for which the first responses will be
	// copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
	DefaultResponsePlatforms []Intent_Message_Platform `` /* 200-byte string literal not displayed */
	// Read-only. The unique identifier of the root intent in the chain of
	// followup intents. It identifies the correct followup intents chain for
	// this intent. We populate this field only in the output.
	//
	// Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
	RootFollowupIntentName string `` /* 132-byte string literal not displayed */
	// Read-only after creation. The unique identifier of the parent intent in the
	// chain of followup intents. You can set this field when creating an intent,
	// for example with [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or
	// [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], in order to make this
	// intent a followup intent.
	//
	// It identifies the parent followup intent.
	// Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
	ParentFollowupIntentName string `` /* 138-byte string literal not displayed */
	// Read-only. Information about all followup intents that have this intent as
	// a direct or indirect parent. We populate this field only in the output.
	FollowupIntentInfo   []*Intent_FollowupIntentInfo `protobuf:"bytes,18,rep,name=followup_intent_info,json=followupIntentInfo,proto3" json:"followup_intent_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

Represents an intent. Intents convert a number of user expressions or patterns into an action. An action is an extraction of a user command or sentence semantics.

func (*Intent) Descriptor

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

func (*Intent) GetAction

func (m *Intent) GetAction() string

func (*Intent) GetDefaultResponsePlatforms

func (m *Intent) GetDefaultResponsePlatforms() []Intent_Message_Platform

func (*Intent) GetDisplayName

func (m *Intent) GetDisplayName() string

func (*Intent) GetEvents

func (m *Intent) GetEvents() []string

func (*Intent) GetFollowupIntentInfo

func (m *Intent) GetFollowupIntentInfo() []*Intent_FollowupIntentInfo

func (*Intent) GetInputContextNames

func (m *Intent) GetInputContextNames() []string

func (*Intent) GetIsFallback

func (m *Intent) GetIsFallback() bool

func (*Intent) GetMessages

func (m *Intent) GetMessages() []*Intent_Message

func (*Intent) GetMlDisabled

func (m *Intent) GetMlDisabled() bool

func (*Intent) GetName

func (m *Intent) GetName() string

func (*Intent) GetOutputContexts

func (m *Intent) GetOutputContexts() []*Context

func (*Intent) GetParameters

func (m *Intent) GetParameters() []*Intent_Parameter

func (*Intent) GetParentFollowupIntentName

func (m *Intent) GetParentFollowupIntentName() string

func (*Intent) GetPriority

func (m *Intent) GetPriority() int32

func (*Intent) GetResetContexts

func (m *Intent) GetResetContexts() bool

func (*Intent) GetRootFollowupIntentName

func (m *Intent) GetRootFollowupIntentName() string

func (*Intent) GetTrainingPhrases

func (m *Intent) GetTrainingPhrases() []*Intent_TrainingPhrase

func (*Intent) GetWebhookState

func (m *Intent) GetWebhookState() Intent_WebhookState

func (*Intent) ProtoMessage

func (*Intent) ProtoMessage()

func (*Intent) Reset

func (m *Intent) Reset()

func (*Intent) String

func (m *Intent) String() string

func (*Intent) XXX_DiscardUnknown

func (m *Intent) XXX_DiscardUnknown()

func (*Intent) XXX_Marshal

func (m *Intent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent) XXX_Merge

func (m *Intent) XXX_Merge(src proto.Message)

func (*Intent) XXX_Size

func (m *Intent) XXX_Size() int

func (*Intent) XXX_Unmarshal

func (m *Intent) XXX_Unmarshal(b []byte) error

type IntentBatch

type IntentBatch struct {
	// A collection of intents.
	Intents              []*Intent `protobuf:"bytes,1,rep,name=intents,proto3" json:"intents,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

This message is a wrapper around a collection of intents.

func (*IntentBatch) Descriptor

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

func (*IntentBatch) GetIntents

func (m *IntentBatch) GetIntents() []*Intent

func (*IntentBatch) ProtoMessage

func (*IntentBatch) ProtoMessage()

func (*IntentBatch) Reset

func (m *IntentBatch) Reset()

func (*IntentBatch) String

func (m *IntentBatch) String() string

func (*IntentBatch) XXX_DiscardUnknown

func (m *IntentBatch) XXX_DiscardUnknown()

func (*IntentBatch) XXX_Marshal

func (m *IntentBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntentBatch) XXX_Merge

func (m *IntentBatch) XXX_Merge(src proto.Message)

func (*IntentBatch) XXX_Size

func (m *IntentBatch) XXX_Size() int

func (*IntentBatch) XXX_Unmarshal

func (m *IntentBatch) XXX_Unmarshal(b []byte) error

type IntentView

type IntentView int32

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

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

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

func (IntentView) String

func (x IntentView) String() string

type Intent_FollowupIntentInfo

type Intent_FollowupIntentInfo struct {
	// The unique identifier of the followup intent.
	// Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
	FollowupIntentName string `protobuf:"bytes,1,opt,name=followup_intent_name,json=followupIntentName,proto3" json:"followup_intent_name,omitempty"`
	// The unique identifier of the followup intent's parent.
	// Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
	ParentFollowupIntentName string   `` /* 137-byte string literal not displayed */
	XXX_NoUnkeyedLiteral     struct{} `json:"-"`
	XXX_unrecognized         []byte   `json:"-"`
	XXX_sizecache            int32    `json:"-"`
}

Represents a single followup intent in the chain.

func (*Intent_FollowupIntentInfo) Descriptor

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

func (*Intent_FollowupIntentInfo) GetFollowupIntentName

func (m *Intent_FollowupIntentInfo) GetFollowupIntentName() string

func (*Intent_FollowupIntentInfo) GetParentFollowupIntentName

func (m *Intent_FollowupIntentInfo) GetParentFollowupIntentName() string

func (*Intent_FollowupIntentInfo) ProtoMessage

func (*Intent_FollowupIntentInfo) ProtoMessage()

func (*Intent_FollowupIntentInfo) Reset

func (m *Intent_FollowupIntentInfo) Reset()

func (*Intent_FollowupIntentInfo) String

func (m *Intent_FollowupIntentInfo) String() string

func (*Intent_FollowupIntentInfo) XXX_DiscardUnknown

func (m *Intent_FollowupIntentInfo) XXX_DiscardUnknown()

func (*Intent_FollowupIntentInfo) XXX_Marshal

func (m *Intent_FollowupIntentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_FollowupIntentInfo) XXX_Merge

func (m *Intent_FollowupIntentInfo) XXX_Merge(src proto.Message)

func (*Intent_FollowupIntentInfo) XXX_Size

func (m *Intent_FollowupIntentInfo) XXX_Size() int

func (*Intent_FollowupIntentInfo) XXX_Unmarshal

func (m *Intent_FollowupIntentInfo) XXX_Unmarshal(b []byte) error

type Intent_Message

type Intent_Message struct {
	// Required. The rich response message.
	//
	// Types that are valid to be assigned 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 `` /* 126-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).

func (*Intent_Message) Descriptor

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

func (*Intent_Message) GetBasicCard

func (m *Intent_Message) GetBasicCard() *Intent_Message_BasicCard

func (*Intent_Message) GetBrowseCarouselCard

func (m *Intent_Message) GetBrowseCarouselCard() *Intent_Message_BrowseCarouselCard

func (*Intent_Message) GetCard

func (m *Intent_Message) GetCard() *Intent_Message_Card

func (*Intent_Message) GetCarouselSelect

func (m *Intent_Message) GetCarouselSelect() *Intent_Message_CarouselSelect

func (*Intent_Message) GetImage

func (m *Intent_Message) GetImage() *Intent_Message_Image

func (*Intent_Message) GetLinkOutSuggestion

func (m *Intent_Message) GetLinkOutSuggestion() *Intent_Message_LinkOutSuggestion

func (*Intent_Message) GetListSelect

func (m *Intent_Message) GetListSelect() *Intent_Message_ListSelect

func (*Intent_Message) GetMediaContent

func (m *Intent_Message) GetMediaContent() *Intent_Message_MediaContent

func (*Intent_Message) GetMessage

func (m *Intent_Message) GetMessage() isIntent_Message_Message

func (*Intent_Message) GetPayload

func (m *Intent_Message) GetPayload() *_struct.Struct

func (*Intent_Message) GetPlatform

func (m *Intent_Message) GetPlatform() Intent_Message_Platform

func (*Intent_Message) GetQuickReplies

func (m *Intent_Message) GetQuickReplies() *Intent_Message_QuickReplies

func (*Intent_Message) GetSimpleResponses

func (m *Intent_Message) GetSimpleResponses() *Intent_Message_SimpleResponses

func (*Intent_Message) GetSuggestions

func (m *Intent_Message) GetSuggestions() *Intent_Message_Suggestions

func (*Intent_Message) GetTableCard

func (m *Intent_Message) GetTableCard() *Intent_Message_TableCard

func (*Intent_Message) GetText

func (m *Intent_Message) GetText() *Intent_Message_Text

func (*Intent_Message) ProtoMessage

func (*Intent_Message) ProtoMessage()

func (*Intent_Message) Reset

func (m *Intent_Message) Reset()

func (*Intent_Message) String

func (m *Intent_Message) String() string

func (*Intent_Message) XXX_DiscardUnknown

func (m *Intent_Message) XXX_DiscardUnknown()

func (*Intent_Message) XXX_Marshal

func (m *Intent_Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message) XXX_Merge

func (m *Intent_Message) XXX_Merge(src proto.Message)

func (*Intent_Message) XXX_OneofWrappers

func (*Intent_Message) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Intent_Message) XXX_Size

func (m *Intent_Message) XXX_Size() int

func (*Intent_Message) XXX_Unmarshal

func (m *Intent_Message) XXX_Unmarshal(b []byte) error

type Intent_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"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

The basic card message. Useful for displaying information.

func (*Intent_Message_BasicCard) Descriptor

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

func (*Intent_Message_BasicCard) GetButtons

func (*Intent_Message_BasicCard) GetFormattedText

func (m *Intent_Message_BasicCard) GetFormattedText() string

func (*Intent_Message_BasicCard) GetImage

func (*Intent_Message_BasicCard) GetSubtitle

func (m *Intent_Message_BasicCard) GetSubtitle() string

func (*Intent_Message_BasicCard) GetTitle

func (m *Intent_Message_BasicCard) GetTitle() string

func (*Intent_Message_BasicCard) ProtoMessage

func (*Intent_Message_BasicCard) ProtoMessage()

func (*Intent_Message_BasicCard) Reset

func (m *Intent_Message_BasicCard) Reset()

func (*Intent_Message_BasicCard) String

func (m *Intent_Message_BasicCard) String() string

func (*Intent_Message_BasicCard) XXX_DiscardUnknown

func (m *Intent_Message_BasicCard) XXX_DiscardUnknown()

func (*Intent_Message_BasicCard) XXX_Marshal

func (m *Intent_Message_BasicCard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_BasicCard) XXX_Merge

func (m *Intent_Message_BasicCard) XXX_Merge(src proto.Message)

func (*Intent_Message_BasicCard) XXX_Size

func (m *Intent_Message_BasicCard) XXX_Size() int

func (*Intent_Message_BasicCard) XXX_Unmarshal

func (m *Intent_Message_BasicCard) XXX_Unmarshal(b []byte) error

type Intent_Message_BasicCard_

type Intent_Message_BasicCard_ struct {
	BasicCard *Intent_Message_BasicCard `protobuf:"bytes,8,opt,name=basic_card,json=basicCard,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{}                                       `json:"-"`
	XXX_unrecognized     []byte                                         `json:"-"`
	XXX_sizecache        int32                                          `json:"-"`
}

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)

func (*Intent_Message_BasicCard_Button) GetOpenUriAction

func (*Intent_Message_BasicCard_Button) GetTitle

func (*Intent_Message_BasicCard_Button) ProtoMessage

func (*Intent_Message_BasicCard_Button) ProtoMessage()

func (*Intent_Message_BasicCard_Button) Reset

func (*Intent_Message_BasicCard_Button) String

func (*Intent_Message_BasicCard_Button) XXX_DiscardUnknown

func (m *Intent_Message_BasicCard_Button) XXX_DiscardUnknown()

func (*Intent_Message_BasicCard_Button) XXX_Marshal

func (m *Intent_Message_BasicCard_Button) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_BasicCard_Button) XXX_Merge

func (m *Intent_Message_BasicCard_Button) XXX_Merge(src proto.Message)

func (*Intent_Message_BasicCard_Button) XXX_Size

func (m *Intent_Message_BasicCard_Button) XXX_Size() int

func (*Intent_Message_BasicCard_Button) XXX_Unmarshal

func (m *Intent_Message_BasicCard_Button) XXX_Unmarshal(b []byte) error

type Intent_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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Opens the given URI.

func (*Intent_Message_BasicCard_Button_OpenUriAction) Descriptor

func (*Intent_Message_BasicCard_Button_OpenUriAction) GetUri

func (*Intent_Message_BasicCard_Button_OpenUriAction) ProtoMessage

func (*Intent_Message_BasicCard_Button_OpenUriAction) Reset

func (*Intent_Message_BasicCard_Button_OpenUriAction) String

func (*Intent_Message_BasicCard_Button_OpenUriAction) XXX_DiscardUnknown

func (m *Intent_Message_BasicCard_Button_OpenUriAction) XXX_DiscardUnknown()

func (*Intent_Message_BasicCard_Button_OpenUriAction) XXX_Marshal

func (m *Intent_Message_BasicCard_Button_OpenUriAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_BasicCard_Button_OpenUriAction) XXX_Merge

func (*Intent_Message_BasicCard_Button_OpenUriAction) XXX_Size

func (*Intent_Message_BasicCard_Button_OpenUriAction) XXX_Unmarshal

type Intent_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 `` /* 207-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                              `json:"-"`
	XXX_unrecognized     []byte                                                `json:"-"`
	XXX_sizecache        int32                                                 `json:"-"`
}

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)

func (*Intent_Message_BrowseCarouselCard) GetImageDisplayOptions

func (*Intent_Message_BrowseCarouselCard) GetItems

func (*Intent_Message_BrowseCarouselCard) ProtoMessage

func (*Intent_Message_BrowseCarouselCard) ProtoMessage()

func (*Intent_Message_BrowseCarouselCard) Reset

func (*Intent_Message_BrowseCarouselCard) String

func (*Intent_Message_BrowseCarouselCard) XXX_DiscardUnknown

func (m *Intent_Message_BrowseCarouselCard) XXX_DiscardUnknown()

func (*Intent_Message_BrowseCarouselCard) XXX_Marshal

func (m *Intent_Message_BrowseCarouselCard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_BrowseCarouselCard) XXX_Merge

func (*Intent_Message_BrowseCarouselCard) XXX_Size

func (m *Intent_Message_BrowseCarouselCard) XXX_Size() int

func (*Intent_Message_BrowseCarouselCard) XXX_Unmarshal

func (m *Intent_Message_BrowseCarouselCard) XXX_Unmarshal(b []byte) error

type Intent_Message_BrowseCarouselCard_

type Intent_Message_BrowseCarouselCard_ struct {
	BrowseCarouselCard *Intent_Message_BrowseCarouselCard `protobuf:"bytes,22,opt,name=browse_carousel_card,json=browseCarouselCard,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Browsing carousel tile

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) Descriptor

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetDescription

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetFooter

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetImage

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetOpenUriAction

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) GetTitle

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) ProtoMessage

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) Reset

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) String

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) XXX_DiscardUnknown

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) XXX_Marshal

func (m *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) XXX_Merge

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) XXX_Size

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem) XXX_Unmarshal

type Intent_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 `` /* 212-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                                                           `json:"-"`
	XXX_unrecognized     []byte                                                                             `json:"-"`
	XXX_sizecache        int32                                                                              `json:"-"`
}

Actions on Google action to open a given url.

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) Descriptor

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) GetUrl

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) ProtoMessage

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) Reset

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) String

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) XXX_DiscardUnknown

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) XXX_Marshal

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) XXX_Merge

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) XXX_Size

func (*Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction) XXX_Unmarshal

type Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint

type Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint int32

Type of the URI.

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 <link rel="amphtml">.
	Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_AMP_CONTENT Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint = 2
)

func (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) EnumDescriptor

func (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) String

type Intent_Message_BrowseCarouselCard_ImageDisplayOptions

type Intent_Message_BrowseCarouselCard_ImageDisplayOptions int32

Image 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.

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

func (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) String

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"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

The card response message.

func (*Intent_Message_Card) Descriptor

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

func (*Intent_Message_Card) GetButtons

func (*Intent_Message_Card) GetImageUri

func (m *Intent_Message_Card) GetImageUri() string

func (*Intent_Message_Card) GetSubtitle

func (m *Intent_Message_Card) GetSubtitle() string

func (*Intent_Message_Card) GetTitle

func (m *Intent_Message_Card) GetTitle() string

func (*Intent_Message_Card) ProtoMessage

func (*Intent_Message_Card) ProtoMessage()

func (*Intent_Message_Card) Reset

func (m *Intent_Message_Card) Reset()

func (*Intent_Message_Card) String

func (m *Intent_Message_Card) String() string

func (*Intent_Message_Card) XXX_DiscardUnknown

func (m *Intent_Message_Card) XXX_DiscardUnknown()

func (*Intent_Message_Card) XXX_Marshal

func (m *Intent_Message_Card) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_Card) XXX_Merge

func (m *Intent_Message_Card) XXX_Merge(src proto.Message)

func (*Intent_Message_Card) XXX_Size

func (m *Intent_Message_Card) XXX_Size() int

func (*Intent_Message_Card) XXX_Unmarshal

func (m *Intent_Message_Card) XXX_Unmarshal(b []byte) error

type Intent_Message_Card_

type Intent_Message_Card_ struct {
	Card *Intent_Message_Card `protobuf:"bytes,4,opt,name=card,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Contains information about a button.

func (*Intent_Message_Card_Button) Descriptor

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

func (*Intent_Message_Card_Button) GetPostback

func (m *Intent_Message_Card_Button) GetPostback() string

func (*Intent_Message_Card_Button) GetText

func (m *Intent_Message_Card_Button) GetText() string

func (*Intent_Message_Card_Button) ProtoMessage

func (*Intent_Message_Card_Button) ProtoMessage()

func (*Intent_Message_Card_Button) Reset

func (m *Intent_Message_Card_Button) Reset()

func (*Intent_Message_Card_Button) String

func (m *Intent_Message_Card_Button) String() string

func (*Intent_Message_Card_Button) XXX_DiscardUnknown

func (m *Intent_Message_Card_Button) XXX_DiscardUnknown()

func (*Intent_Message_Card_Button) XXX_Marshal

func (m *Intent_Message_Card_Button) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_Card_Button) XXX_Merge

func (m *Intent_Message_Card_Button) XXX_Merge(src proto.Message)

func (*Intent_Message_Card_Button) XXX_Size

func (m *Intent_Message_Card_Button) XXX_Size() int

func (*Intent_Message_Card_Button) XXX_Unmarshal

func (m *Intent_Message_Card_Button) XXX_Unmarshal(b []byte) error

type Intent_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"`
	XXX_NoUnkeyedLiteral struct{}                              `json:"-"`
	XXX_unrecognized     []byte                                `json:"-"`
	XXX_sizecache        int32                                 `json:"-"`
}

The card for presenting a carousel of options to select from.

func (*Intent_Message_CarouselSelect) Descriptor

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

func (*Intent_Message_CarouselSelect) GetItems

func (*Intent_Message_CarouselSelect) ProtoMessage

func (*Intent_Message_CarouselSelect) ProtoMessage()

func (*Intent_Message_CarouselSelect) Reset

func (m *Intent_Message_CarouselSelect) Reset()

func (*Intent_Message_CarouselSelect) String

func (*Intent_Message_CarouselSelect) XXX_DiscardUnknown

func (m *Intent_Message_CarouselSelect) XXX_DiscardUnknown()

func (*Intent_Message_CarouselSelect) XXX_Marshal

func (m *Intent_Message_CarouselSelect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_CarouselSelect) XXX_Merge

func (m *Intent_Message_CarouselSelect) XXX_Merge(src proto.Message)

func (*Intent_Message_CarouselSelect) XXX_Size

func (m *Intent_Message_CarouselSelect) XXX_Size() int

func (*Intent_Message_CarouselSelect) XXX_Unmarshal

func (m *Intent_Message_CarouselSelect) XXX_Unmarshal(b []byte) error

type Intent_Message_CarouselSelect_

type Intent_Message_CarouselSelect_ struct {
	CarouselSelect *Intent_Message_CarouselSelect `protobuf:"bytes,12,opt,name=carousel_select,json=carouselSelect,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

An item in the carousel.

func (*Intent_Message_CarouselSelect_Item) Descriptor

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

func (*Intent_Message_CarouselSelect_Item) GetDescription

func (m *Intent_Message_CarouselSelect_Item) GetDescription() string

func (*Intent_Message_CarouselSelect_Item) GetImage

func (*Intent_Message_CarouselSelect_Item) GetInfo

func (*Intent_Message_CarouselSelect_Item) GetTitle

func (*Intent_Message_CarouselSelect_Item) ProtoMessage

func (*Intent_Message_CarouselSelect_Item) ProtoMessage()

func (*Intent_Message_CarouselSelect_Item) Reset

func (*Intent_Message_CarouselSelect_Item) String

func (*Intent_Message_CarouselSelect_Item) XXX_DiscardUnknown

func (m *Intent_Message_CarouselSelect_Item) XXX_DiscardUnknown()

func (*Intent_Message_CarouselSelect_Item) XXX_Marshal

func (m *Intent_Message_CarouselSelect_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_CarouselSelect_Item) XXX_Merge

func (*Intent_Message_CarouselSelect_Item) XXX_Size

func (*Intent_Message_CarouselSelect_Item) XXX_Unmarshal

func (m *Intent_Message_CarouselSelect_Item) XXX_Unmarshal(b []byte) error

type Intent_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 `` /* 203-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                            `json:"-"`
	XXX_unrecognized     []byte                                              `json:"-"`
	XXX_sizecache        int32                                               `json:"-"`
}

Column properties for [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard].

func (*Intent_Message_ColumnProperties) Descriptor

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

func (*Intent_Message_ColumnProperties) GetHeader

func (m *Intent_Message_ColumnProperties) GetHeader() string

func (*Intent_Message_ColumnProperties) GetHorizontalAlignment

func (*Intent_Message_ColumnProperties) ProtoMessage

func (*Intent_Message_ColumnProperties) ProtoMessage()

func (*Intent_Message_ColumnProperties) Reset

func (*Intent_Message_ColumnProperties) String

func (*Intent_Message_ColumnProperties) XXX_DiscardUnknown

func (m *Intent_Message_ColumnProperties) XXX_DiscardUnknown()

func (*Intent_Message_ColumnProperties) XXX_Marshal

func (m *Intent_Message_ColumnProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_ColumnProperties) XXX_Merge

func (m *Intent_Message_ColumnProperties) XXX_Merge(src proto.Message)

func (*Intent_Message_ColumnProperties) XXX_Size

func (m *Intent_Message_ColumnProperties) XXX_Size() int

func (*Intent_Message_ColumnProperties) XXX_Unmarshal

func (m *Intent_Message_ColumnProperties) XXX_Unmarshal(b []byte) error

type Intent_Message_ColumnProperties_HorizontalAlignment

type Intent_Message_ColumnProperties_HorizontalAlignment int32

Text alignments within a cell.

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

func (Intent_Message_ColumnProperties_HorizontalAlignment) String

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The image response message.

func (*Intent_Message_Image) Descriptor

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

func (*Intent_Message_Image) GetAccessibilityText

func (m *Intent_Message_Image) GetAccessibilityText() string

func (*Intent_Message_Image) GetImageUri

func (m *Intent_Message_Image) GetImageUri() string

func (*Intent_Message_Image) ProtoMessage

func (*Intent_Message_Image) ProtoMessage()

func (*Intent_Message_Image) Reset

func (m *Intent_Message_Image) Reset()

func (*Intent_Message_Image) String

func (m *Intent_Message_Image) String() string

func (*Intent_Message_Image) XXX_DiscardUnknown

func (m *Intent_Message_Image) XXX_DiscardUnknown()

func (*Intent_Message_Image) XXX_Marshal

func (m *Intent_Message_Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_Image) XXX_Merge

func (m *Intent_Message_Image) XXX_Merge(src proto.Message)

func (*Intent_Message_Image) XXX_Size

func (m *Intent_Message_Image) XXX_Size() int

func (*Intent_Message_Image) XXX_Unmarshal

func (m *Intent_Message_Image) XXX_Unmarshal(b []byte) error

type Intent_Message_Image_

type Intent_Message_Image_ struct {
	Image *Intent_Message_Image `protobuf:"bytes,2,opt,name=image,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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)

func (*Intent_Message_LinkOutSuggestion) GetDestinationName

func (m *Intent_Message_LinkOutSuggestion) GetDestinationName() string

func (*Intent_Message_LinkOutSuggestion) GetUri

func (*Intent_Message_LinkOutSuggestion) ProtoMessage

func (*Intent_Message_LinkOutSuggestion) ProtoMessage()

func (*Intent_Message_LinkOutSuggestion) Reset

func (*Intent_Message_LinkOutSuggestion) String

func (*Intent_Message_LinkOutSuggestion) XXX_DiscardUnknown

func (m *Intent_Message_LinkOutSuggestion) XXX_DiscardUnknown()

func (*Intent_Message_LinkOutSuggestion) XXX_Marshal

func (m *Intent_Message_LinkOutSuggestion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_LinkOutSuggestion) XXX_Merge

func (*Intent_Message_LinkOutSuggestion) XXX_Size

func (m *Intent_Message_LinkOutSuggestion) XXX_Size() int

func (*Intent_Message_LinkOutSuggestion) XXX_Unmarshal

func (m *Intent_Message_LinkOutSuggestion) XXX_Unmarshal(b []byte) error

type Intent_Message_LinkOutSuggestion_

type Intent_Message_LinkOutSuggestion_ struct {
	LinkOutSuggestion *Intent_Message_LinkOutSuggestion `protobuf:"bytes,10,opt,name=link_out_suggestion,json=linkOutSuggestion,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The card for presenting a list of options to select from.

func (*Intent_Message_ListSelect) Descriptor

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

func (*Intent_Message_ListSelect) GetItems

func (*Intent_Message_ListSelect) GetSubtitle

func (m *Intent_Message_ListSelect) GetSubtitle() string

func (*Intent_Message_ListSelect) GetTitle

func (m *Intent_Message_ListSelect) GetTitle() string

func (*Intent_Message_ListSelect) ProtoMessage

func (*Intent_Message_ListSelect) ProtoMessage()

func (*Intent_Message_ListSelect) Reset

func (m *Intent_Message_ListSelect) Reset()

func (*Intent_Message_ListSelect) String

func (m *Intent_Message_ListSelect) String() string

func (*Intent_Message_ListSelect) XXX_DiscardUnknown

func (m *Intent_Message_ListSelect) XXX_DiscardUnknown()

func (*Intent_Message_ListSelect) XXX_Marshal

func (m *Intent_Message_ListSelect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_ListSelect) XXX_Merge

func (m *Intent_Message_ListSelect) XXX_Merge(src proto.Message)

func (*Intent_Message_ListSelect) XXX_Size

func (m *Intent_Message_ListSelect) XXX_Size() int

func (*Intent_Message_ListSelect) XXX_Unmarshal

func (m *Intent_Message_ListSelect) XXX_Unmarshal(b []byte) error

type Intent_Message_ListSelect_

type Intent_Message_ListSelect_ struct {
	ListSelect *Intent_Message_ListSelect `protobuf:"bytes,11,opt,name=list_select,json=listSelect,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

An item in the list.

func (*Intent_Message_ListSelect_Item) Descriptor

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

func (*Intent_Message_ListSelect_Item) GetDescription

func (m *Intent_Message_ListSelect_Item) GetDescription() string

func (*Intent_Message_ListSelect_Item) GetImage

func (*Intent_Message_ListSelect_Item) GetInfo

func (*Intent_Message_ListSelect_Item) GetTitle

func (m *Intent_Message_ListSelect_Item) GetTitle() string

func (*Intent_Message_ListSelect_Item) ProtoMessage

func (*Intent_Message_ListSelect_Item) ProtoMessage()

func (*Intent_Message_ListSelect_Item) Reset

func (m *Intent_Message_ListSelect_Item) Reset()

func (*Intent_Message_ListSelect_Item) String

func (*Intent_Message_ListSelect_Item) XXX_DiscardUnknown

func (m *Intent_Message_ListSelect_Item) XXX_DiscardUnknown()

func (*Intent_Message_ListSelect_Item) XXX_Marshal

func (m *Intent_Message_ListSelect_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_ListSelect_Item) XXX_Merge

func (m *Intent_Message_ListSelect_Item) XXX_Merge(src proto.Message)

func (*Intent_Message_ListSelect_Item) XXX_Size

func (m *Intent_Message_ListSelect_Item) XXX_Size() int

func (*Intent_Message_ListSelect_Item) XXX_Unmarshal

func (m *Intent_Message_ListSelect_Item) XXX_Unmarshal(b []byte) error

type Intent_Message_MediaContent

type Intent_Message_MediaContent struct {
	// Optional. What type of media is the content (ie "audio").
	MediaType Intent_Message_MediaContent_ResponseMediaType `` /* 167-byte string literal not displayed */
	// Required. List of media objects.
	MediaObjects         []*Intent_Message_MediaContent_ResponseMediaObject `protobuf:"bytes,2,rep,name=media_objects,json=mediaObjects,proto3" json:"media_objects,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                           `json:"-"`
	XXX_unrecognized     []byte                                             `json:"-"`
	XXX_sizecache        int32                                              `json:"-"`
}

The media content card for Actions on Google.

func (*Intent_Message_MediaContent) Descriptor

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

func (*Intent_Message_MediaContent) GetMediaObjects

func (*Intent_Message_MediaContent) GetMediaType

func (*Intent_Message_MediaContent) ProtoMessage

func (*Intent_Message_MediaContent) ProtoMessage()

func (*Intent_Message_MediaContent) Reset

func (m *Intent_Message_MediaContent) Reset()

func (*Intent_Message_MediaContent) String

func (m *Intent_Message_MediaContent) String() string

func (*Intent_Message_MediaContent) XXX_DiscardUnknown

func (m *Intent_Message_MediaContent) XXX_DiscardUnknown()

func (*Intent_Message_MediaContent) XXX_Marshal

func (m *Intent_Message_MediaContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_MediaContent) XXX_Merge

func (m *Intent_Message_MediaContent) XXX_Merge(src proto.Message)

func (*Intent_Message_MediaContent) XXX_Size

func (m *Intent_Message_MediaContent) XXX_Size() int

func (*Intent_Message_MediaContent) XXX_Unmarshal

func (m *Intent_Message_MediaContent) XXX_Unmarshal(b []byte) error

type Intent_Message_MediaContent_

type Intent_Message_MediaContent_ struct {
	MediaContent *Intent_Message_MediaContent `protobuf:"bytes,24,opt,name=media_content,json=mediaContent,proto3,oneof"`
}

type 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 valid to be assigned 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response media object for media content card.

func (*Intent_Message_MediaContent_ResponseMediaObject) Descriptor

func (*Intent_Message_MediaContent_ResponseMediaObject) GetContentUrl

func (*Intent_Message_MediaContent_ResponseMediaObject) GetDescription

func (*Intent_Message_MediaContent_ResponseMediaObject) GetIcon

func (*Intent_Message_MediaContent_ResponseMediaObject) GetImage

func (m *Intent_Message_MediaContent_ResponseMediaObject) GetImage() isIntent_Message_MediaContent_ResponseMediaObject_Image

func (*Intent_Message_MediaContent_ResponseMediaObject) GetLargeImage

func (*Intent_Message_MediaContent_ResponseMediaObject) GetName

func (*Intent_Message_MediaContent_ResponseMediaObject) ProtoMessage

func (*Intent_Message_MediaContent_ResponseMediaObject) Reset

func (*Intent_Message_MediaContent_ResponseMediaObject) String

func (*Intent_Message_MediaContent_ResponseMediaObject) XXX_DiscardUnknown

func (m *Intent_Message_MediaContent_ResponseMediaObject) XXX_DiscardUnknown()

func (*Intent_Message_MediaContent_ResponseMediaObject) XXX_Marshal

func (m *Intent_Message_MediaContent_ResponseMediaObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_MediaContent_ResponseMediaObject) XXX_Merge

func (*Intent_Message_MediaContent_ResponseMediaObject) XXX_OneofWrappers

func (*Intent_Message_MediaContent_ResponseMediaObject) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Intent_Message_MediaContent_ResponseMediaObject) XXX_Size

func (*Intent_Message_MediaContent_ResponseMediaObject) XXX_Unmarshal

type Intent_Message_MediaContent_ResponseMediaObject_Icon

type Intent_Message_MediaContent_ResponseMediaObject_Icon struct {
	Icon *Intent_Message_Image `protobuf:"bytes,4,opt,name=icon,proto3,oneof"`
}

type Intent_Message_MediaContent_ResponseMediaObject_LargeImage

type Intent_Message_MediaContent_ResponseMediaObject_LargeImage struct {
	LargeImage *Intent_Message_Image `protobuf:"bytes,3,opt,name=large_image,json=largeImage,proto3,oneof"`
}

type Intent_Message_MediaContent_ResponseMediaType

type Intent_Message_MediaContent_ResponseMediaType int32

Format of response media type.

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

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

func (Intent_Message_MediaContent_ResponseMediaType) String

type Intent_Message_Payload

type Intent_Message_Payload struct {
	Payload *_struct.Struct `protobuf:"bytes,5,opt,name=payload,proto3,oneof"`
}

type Intent_Message_Platform

type Intent_Message_Platform int32

The rich response message integration platform. See [Integrations](https://cloud.google.com/dialogflow/docs/integrations).

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

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

func (Intent_Message_Platform) String

func (x Intent_Message_Platform) String() string

type Intent_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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The quick replies response message.

func (*Intent_Message_QuickReplies) Descriptor

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

func (*Intent_Message_QuickReplies) GetQuickReplies

func (m *Intent_Message_QuickReplies) GetQuickReplies() []string

func (*Intent_Message_QuickReplies) GetTitle

func (m *Intent_Message_QuickReplies) GetTitle() string

func (*Intent_Message_QuickReplies) ProtoMessage

func (*Intent_Message_QuickReplies) ProtoMessage()

func (*Intent_Message_QuickReplies) Reset

func (m *Intent_Message_QuickReplies) Reset()

func (*Intent_Message_QuickReplies) String

func (m *Intent_Message_QuickReplies) String() string

func (*Intent_Message_QuickReplies) XXX_DiscardUnknown

func (m *Intent_Message_QuickReplies) XXX_DiscardUnknown()

func (*Intent_Message_QuickReplies) XXX_Marshal

func (m *Intent_Message_QuickReplies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_QuickReplies) XXX_Merge

func (m *Intent_Message_QuickReplies) XXX_Merge(src proto.Message)

func (*Intent_Message_QuickReplies) XXX_Size

func (m *Intent_Message_QuickReplies) XXX_Size() int

func (*Intent_Message_QuickReplies) XXX_Unmarshal

func (m *Intent_Message_QuickReplies) XXX_Unmarshal(b []byte) error

type Intent_Message_QuickReplies_

type Intent_Message_QuickReplies_ struct {
	QuickReplies *Intent_Message_QuickReplies `protobuf:"bytes,3,opt,name=quick_replies,json=quickReplies,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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)

func (*Intent_Message_SelectItemInfo) GetKey

func (*Intent_Message_SelectItemInfo) GetSynonyms

func (m *Intent_Message_SelectItemInfo) GetSynonyms() []string

func (*Intent_Message_SelectItemInfo) ProtoMessage

func (*Intent_Message_SelectItemInfo) ProtoMessage()

func (*Intent_Message_SelectItemInfo) Reset

func (m *Intent_Message_SelectItemInfo) Reset()

func (*Intent_Message_SelectItemInfo) String

func (*Intent_Message_SelectItemInfo) XXX_DiscardUnknown

func (m *Intent_Message_SelectItemInfo) XXX_DiscardUnknown()

func (*Intent_Message_SelectItemInfo) XXX_Marshal

func (m *Intent_Message_SelectItemInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_SelectItemInfo) XXX_Merge

func (m *Intent_Message_SelectItemInfo) XXX_Merge(src proto.Message)

func (*Intent_Message_SelectItemInfo) XXX_Size

func (m *Intent_Message_SelectItemInfo) XXX_Size() int

func (*Intent_Message_SelectItemInfo) XXX_Unmarshal

func (m *Intent_Message_SelectItemInfo) XXX_Unmarshal(b []byte) error

type Intent_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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The simple response message containing speech or text.

func (*Intent_Message_SimpleResponse) Descriptor

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

func (*Intent_Message_SimpleResponse) GetDisplayText

func (m *Intent_Message_SimpleResponse) GetDisplayText() string

func (*Intent_Message_SimpleResponse) GetSsml

func (*Intent_Message_SimpleResponse) GetTextToSpeech

func (m *Intent_Message_SimpleResponse) GetTextToSpeech() string

func (*Intent_Message_SimpleResponse) ProtoMessage

func (*Intent_Message_SimpleResponse) ProtoMessage()

func (*Intent_Message_SimpleResponse) Reset

func (m *Intent_Message_SimpleResponse) Reset()

func (*Intent_Message_SimpleResponse) String

func (*Intent_Message_SimpleResponse) XXX_DiscardUnknown

func (m *Intent_Message_SimpleResponse) XXX_DiscardUnknown()

func (*Intent_Message_SimpleResponse) XXX_Marshal

func (m *Intent_Message_SimpleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_SimpleResponse) XXX_Merge

func (m *Intent_Message_SimpleResponse) XXX_Merge(src proto.Message)

func (*Intent_Message_SimpleResponse) XXX_Size

func (m *Intent_Message_SimpleResponse) XXX_Size() int

func (*Intent_Message_SimpleResponse) XXX_Unmarshal

func (m *Intent_Message_SimpleResponse) XXX_Unmarshal(b []byte) error

type Intent_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"`
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

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)

func (*Intent_Message_SimpleResponses) GetSimpleResponses

func (*Intent_Message_SimpleResponses) ProtoMessage

func (*Intent_Message_SimpleResponses) ProtoMessage()

func (*Intent_Message_SimpleResponses) Reset

func (m *Intent_Message_SimpleResponses) Reset()

func (*Intent_Message_SimpleResponses) String

func (*Intent_Message_SimpleResponses) XXX_DiscardUnknown

func (m *Intent_Message_SimpleResponses) XXX_DiscardUnknown()

func (*Intent_Message_SimpleResponses) XXX_Marshal

func (m *Intent_Message_SimpleResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_SimpleResponses) XXX_Merge

func (m *Intent_Message_SimpleResponses) XXX_Merge(src proto.Message)

func (*Intent_Message_SimpleResponses) XXX_Size

func (m *Intent_Message_SimpleResponses) XXX_Size() int

func (*Intent_Message_SimpleResponses) XXX_Unmarshal

func (m *Intent_Message_SimpleResponses) XXX_Unmarshal(b []byte) error

type Intent_Message_SimpleResponses_

type Intent_Message_SimpleResponses_ struct {
	SimpleResponses *Intent_Message_SimpleResponses `protobuf:"bytes,7,opt,name=simple_responses,json=simpleResponses,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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)

func (*Intent_Message_Suggestion) GetTitle

func (m *Intent_Message_Suggestion) GetTitle() string

func (*Intent_Message_Suggestion) ProtoMessage

func (*Intent_Message_Suggestion) ProtoMessage()

func (*Intent_Message_Suggestion) Reset

func (m *Intent_Message_Suggestion) Reset()

func (*Intent_Message_Suggestion) String

func (m *Intent_Message_Suggestion) String() string

func (*Intent_Message_Suggestion) XXX_DiscardUnknown

func (m *Intent_Message_Suggestion) XXX_DiscardUnknown()

func (*Intent_Message_Suggestion) XXX_Marshal

func (m *Intent_Message_Suggestion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_Suggestion) XXX_Merge

func (m *Intent_Message_Suggestion) XXX_Merge(src proto.Message)

func (*Intent_Message_Suggestion) XXX_Size

func (m *Intent_Message_Suggestion) XXX_Size() int

func (*Intent_Message_Suggestion) XXX_Unmarshal

func (m *Intent_Message_Suggestion) XXX_Unmarshal(b []byte) error

type Intent_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"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

The collection of suggestions.

func (*Intent_Message_Suggestions) Descriptor

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

func (*Intent_Message_Suggestions) GetSuggestions

func (*Intent_Message_Suggestions) ProtoMessage

func (*Intent_Message_Suggestions) ProtoMessage()

func (*Intent_Message_Suggestions) Reset

func (m *Intent_Message_Suggestions) Reset()

func (*Intent_Message_Suggestions) String

func (m *Intent_Message_Suggestions) String() string

func (*Intent_Message_Suggestions) XXX_DiscardUnknown

func (m *Intent_Message_Suggestions) XXX_DiscardUnknown()

func (*Intent_Message_Suggestions) XXX_Marshal

func (m *Intent_Message_Suggestions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_Suggestions) XXX_Merge

func (m *Intent_Message_Suggestions) XXX_Merge(src proto.Message)

func (*Intent_Message_Suggestions) XXX_Size

func (m *Intent_Message_Suggestions) XXX_Size() int

func (*Intent_Message_Suggestions) XXX_Unmarshal

func (m *Intent_Message_Suggestions) XXX_Unmarshal(b []byte) error

type Intent_Message_Suggestions_

type Intent_Message_Suggestions_ struct {
	Suggestions *Intent_Message_Suggestions `protobuf:"bytes,9,opt,name=suggestions,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

Table card for Actions on Google.

func (*Intent_Message_TableCard) Descriptor

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

func (*Intent_Message_TableCard) GetButtons

func (*Intent_Message_TableCard) GetColumnProperties

func (m *Intent_Message_TableCard) GetColumnProperties() []*Intent_Message_ColumnProperties

func (*Intent_Message_TableCard) GetImage

func (*Intent_Message_TableCard) GetRows

func (*Intent_Message_TableCard) GetSubtitle

func (m *Intent_Message_TableCard) GetSubtitle() string

func (*Intent_Message_TableCard) GetTitle

func (m *Intent_Message_TableCard) GetTitle() string

func (*Intent_Message_TableCard) ProtoMessage

func (*Intent_Message_TableCard) ProtoMessage()

func (*Intent_Message_TableCard) Reset

func (m *Intent_Message_TableCard) Reset()

func (*Intent_Message_TableCard) String

func (m *Intent_Message_TableCard) String() string

func (*Intent_Message_TableCard) XXX_DiscardUnknown

func (m *Intent_Message_TableCard) XXX_DiscardUnknown()

func (*Intent_Message_TableCard) XXX_Marshal

func (m *Intent_Message_TableCard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_TableCard) XXX_Merge

func (m *Intent_Message_TableCard) XXX_Merge(src proto.Message)

func (*Intent_Message_TableCard) XXX_Size

func (m *Intent_Message_TableCard) XXX_Size() int

func (*Intent_Message_TableCard) XXX_Unmarshal

func (m *Intent_Message_TableCard) XXX_Unmarshal(b []byte) error

type Intent_Message_TableCardCell

type Intent_Message_TableCardCell struct {
	// Required. Text in this cell.
	Text                 string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Cell of [TableCardRow][google.cloud.dialogflow.v2.Intent.Message.TableCardRow].

func (*Intent_Message_TableCardCell) Descriptor

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

func (*Intent_Message_TableCardCell) GetText

func (m *Intent_Message_TableCardCell) GetText() string

func (*Intent_Message_TableCardCell) ProtoMessage

func (*Intent_Message_TableCardCell) ProtoMessage()

func (*Intent_Message_TableCardCell) Reset

func (m *Intent_Message_TableCardCell) Reset()

func (*Intent_Message_TableCardCell) String

func (*Intent_Message_TableCardCell) XXX_DiscardUnknown

func (m *Intent_Message_TableCardCell) XXX_DiscardUnknown()

func (*Intent_Message_TableCardCell) XXX_Marshal

func (m *Intent_Message_TableCardCell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_TableCardCell) XXX_Merge

func (m *Intent_Message_TableCardCell) XXX_Merge(src proto.Message)

func (*Intent_Message_TableCardCell) XXX_Size

func (m *Intent_Message_TableCardCell) XXX_Size() int

func (*Intent_Message_TableCardCell) XXX_Unmarshal

func (m *Intent_Message_TableCardCell) XXX_Unmarshal(b []byte) error

type Intent_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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Row of [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard].

func (*Intent_Message_TableCardRow) Descriptor

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

func (*Intent_Message_TableCardRow) GetCells

func (*Intent_Message_TableCardRow) GetDividerAfter

func (m *Intent_Message_TableCardRow) GetDividerAfter() bool

func (*Intent_Message_TableCardRow) ProtoMessage

func (*Intent_Message_TableCardRow) ProtoMessage()

func (*Intent_Message_TableCardRow) Reset

func (m *Intent_Message_TableCardRow) Reset()

func (*Intent_Message_TableCardRow) String

func (m *Intent_Message_TableCardRow) String() string

func (*Intent_Message_TableCardRow) XXX_DiscardUnknown

func (m *Intent_Message_TableCardRow) XXX_DiscardUnknown()

func (*Intent_Message_TableCardRow) XXX_Marshal

func (m *Intent_Message_TableCardRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_TableCardRow) XXX_Merge

func (m *Intent_Message_TableCardRow) XXX_Merge(src proto.Message)

func (*Intent_Message_TableCardRow) XXX_Size

func (m *Intent_Message_TableCardRow) XXX_Size() int

func (*Intent_Message_TableCardRow) XXX_Unmarshal

func (m *Intent_Message_TableCardRow) XXX_Unmarshal(b []byte) error

type Intent_Message_TableCard_

type Intent_Message_TableCard_ struct {
	TableCard *Intent_Message_TableCard `protobuf:"bytes,23,opt,name=table_card,json=tableCard,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The text response message.

func (*Intent_Message_Text) Descriptor

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

func (*Intent_Message_Text) GetText

func (m *Intent_Message_Text) GetText() []string

func (*Intent_Message_Text) ProtoMessage

func (*Intent_Message_Text) ProtoMessage()

func (*Intent_Message_Text) Reset

func (m *Intent_Message_Text) Reset()

func (*Intent_Message_Text) String

func (m *Intent_Message_Text) String() string

func (*Intent_Message_Text) XXX_DiscardUnknown

func (m *Intent_Message_Text) XXX_DiscardUnknown()

func (*Intent_Message_Text) XXX_Marshal

func (m *Intent_Message_Text) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Message_Text) XXX_Merge

func (m *Intent_Message_Text) XXX_Merge(src proto.Message)

func (*Intent_Message_Text) XXX_Size

func (m *Intent_Message_Text) XXX_Size() int

func (*Intent_Message_Text) XXX_Unmarshal

func (m *Intent_Message_Text) XXX_Unmarshal(b []byte) error

type Intent_Message_Text_

type Intent_Message_Text_ struct {
	Text *Intent_Message_Text `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}

type 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 `` /* 128-byte string literal not displayed */
	// 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents intent parameters.

func (*Intent_Parameter) Descriptor

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

func (*Intent_Parameter) GetDefaultValue

func (m *Intent_Parameter) GetDefaultValue() string

func (*Intent_Parameter) GetDisplayName

func (m *Intent_Parameter) GetDisplayName() string

func (*Intent_Parameter) GetEntityTypeDisplayName

func (m *Intent_Parameter) GetEntityTypeDisplayName() string

func (*Intent_Parameter) GetIsList

func (m *Intent_Parameter) GetIsList() bool

func (*Intent_Parameter) GetMandatory

func (m *Intent_Parameter) GetMandatory() bool

func (*Intent_Parameter) GetName

func (m *Intent_Parameter) GetName() string

func (*Intent_Parameter) GetPrompts

func (m *Intent_Parameter) GetPrompts() []string

func (*Intent_Parameter) GetValue

func (m *Intent_Parameter) GetValue() string

func (*Intent_Parameter) ProtoMessage

func (*Intent_Parameter) ProtoMessage()

func (*Intent_Parameter) Reset

func (m *Intent_Parameter) Reset()

func (*Intent_Parameter) String

func (m *Intent_Parameter) String() string

func (*Intent_Parameter) XXX_DiscardUnknown

func (m *Intent_Parameter) XXX_DiscardUnknown()

func (*Intent_Parameter) XXX_Marshal

func (m *Intent_Parameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_Parameter) XXX_Merge

func (m *Intent_Parameter) XXX_Merge(src proto.Message)

func (*Intent_Parameter) XXX_Size

func (m *Intent_Parameter) XXX_Size() int

func (*Intent_Parameter) XXX_Unmarshal

func (m *Intent_Parameter) XXX_Unmarshal(b []byte) error

type Intent_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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents an example that the agent is trained on.

func (*Intent_TrainingPhrase) Descriptor

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

func (*Intent_TrainingPhrase) GetName

func (m *Intent_TrainingPhrase) GetName() string

func (*Intent_TrainingPhrase) GetParts

func (*Intent_TrainingPhrase) GetTimesAddedCount

func (m *Intent_TrainingPhrase) GetTimesAddedCount() int32

func (*Intent_TrainingPhrase) GetType

func (*Intent_TrainingPhrase) ProtoMessage

func (*Intent_TrainingPhrase) ProtoMessage()

func (*Intent_TrainingPhrase) Reset

func (m *Intent_TrainingPhrase) Reset()

func (*Intent_TrainingPhrase) String

func (m *Intent_TrainingPhrase) String() string

func (*Intent_TrainingPhrase) XXX_DiscardUnknown

func (m *Intent_TrainingPhrase) XXX_DiscardUnknown()

func (*Intent_TrainingPhrase) XXX_Marshal

func (m *Intent_TrainingPhrase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_TrainingPhrase) XXX_Merge

func (m *Intent_TrainingPhrase) XXX_Merge(src proto.Message)

func (*Intent_TrainingPhrase) XXX_Size

func (m *Intent_TrainingPhrase) XXX_Size() int

func (*Intent_TrainingPhrase) XXX_Unmarshal

func (m *Intent_TrainingPhrase) XXX_Unmarshal(b []byte) error

type Intent_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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents a part of a training phrase.

func (*Intent_TrainingPhrase_Part) Descriptor

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

func (*Intent_TrainingPhrase_Part) GetAlias

func (m *Intent_TrainingPhrase_Part) GetAlias() string

func (*Intent_TrainingPhrase_Part) GetEntityType

func (m *Intent_TrainingPhrase_Part) GetEntityType() string

func (*Intent_TrainingPhrase_Part) GetText

func (m *Intent_TrainingPhrase_Part) GetText() string

func (*Intent_TrainingPhrase_Part) GetUserDefined

func (m *Intent_TrainingPhrase_Part) GetUserDefined() bool

func (*Intent_TrainingPhrase_Part) ProtoMessage

func (*Intent_TrainingPhrase_Part) ProtoMessage()

func (*Intent_TrainingPhrase_Part) Reset

func (m *Intent_TrainingPhrase_Part) Reset()

func (*Intent_TrainingPhrase_Part) String

func (m *Intent_TrainingPhrase_Part) String() string

func (*Intent_TrainingPhrase_Part) XXX_DiscardUnknown

func (m *Intent_TrainingPhrase_Part) XXX_DiscardUnknown()

func (*Intent_TrainingPhrase_Part) XXX_Marshal

func (m *Intent_TrainingPhrase_Part) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent_TrainingPhrase_Part) XXX_Merge

func (m *Intent_TrainingPhrase_Part) XXX_Merge(src proto.Message)

func (*Intent_TrainingPhrase_Part) XXX_Size

func (m *Intent_TrainingPhrase_Part) XXX_Size() int

func (*Intent_TrainingPhrase_Part) XXX_Unmarshal

func (m *Intent_TrainingPhrase_Part) XXX_Unmarshal(b []byte) error

type Intent_TrainingPhrase_Type

type Intent_TrainingPhrase_Type int32

Represents different types of training phrases.

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.
	Intent_TrainingPhrase_TEMPLATE Intent_TrainingPhrase_Type = 2 // Deprecated: Do not use.
)

func (Intent_TrainingPhrase_Type) EnumDescriptor

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

func (Intent_TrainingPhrase_Type) String

type Intent_WebhookState

type Intent_WebhookState int32

Represents the different states that webhooks can be in.

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

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

func (Intent_WebhookState) String

func (x Intent_WebhookState) String() string

type IntentsClient

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.
	CreateIntent(ctx context.Context, in *CreateIntentRequest, opts ...grpc.CallOption) (*Intent, error)
	// Updates the specified intent.
	UpdateIntent(ctx context.Context, in *UpdateIntentRequest, opts ...grpc.CallOption) (*Intent, error)
	// Deletes the specified intent and its direct or indirect followup intents.
	DeleteIntent(ctx context.Context, in *DeleteIntentRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Updates/Creates multiple intents in the specified agent.
	//
	// Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]>
	BatchUpdateIntents(ctx context.Context, in *BatchUpdateIntentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Deletes intents in the specified agent.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	BatchDeleteIntents(ctx context.Context, in *BatchDeleteIntentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
}

IntentsClient is the client API for Intents service.

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

func NewIntentsClient

func NewIntentsClient(cc grpc.ClientConnInterface) IntentsClient

type IntentsServer

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.
	CreateIntent(context.Context, *CreateIntentRequest) (*Intent, error)
	// Updates the specified intent.
	UpdateIntent(context.Context, *UpdateIntentRequest) (*Intent, error)
	// Deletes the specified intent and its direct or indirect followup intents.
	DeleteIntent(context.Context, *DeleteIntentRequest) (*empty.Empty, error)
	// Updates/Creates multiple intents in the specified agent.
	//
	// Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]>
	BatchUpdateIntents(context.Context, *BatchUpdateIntentsRequest) (*longrunning.Operation, error)
	// Deletes intents in the specified agent.
	//
	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
	BatchDeleteIntents(context.Context, *BatchDeleteIntentsRequest) (*longrunning.Operation, error)
}

IntentsServer is the server API for Intents service.

type ListContextsRequest

type ListContextsRequest struct {
	// Required. The session to list 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"`
	// Optional. The maximum number of items to return in a single page. By
	// default 100 and at most 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The next_page_token value returned from a previous list request.
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].

func (*ListContextsRequest) Descriptor

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

func (*ListContextsRequest) GetPageSize

func (m *ListContextsRequest) GetPageSize() int32

func (*ListContextsRequest) GetPageToken

func (m *ListContextsRequest) GetPageToken() string

func (*ListContextsRequest) GetParent

func (m *ListContextsRequest) GetParent() string

func (*ListContextsRequest) ProtoMessage

func (*ListContextsRequest) ProtoMessage()

func (*ListContextsRequest) Reset

func (m *ListContextsRequest) Reset()

func (*ListContextsRequest) String

func (m *ListContextsRequest) String() string

func (*ListContextsRequest) XXX_DiscardUnknown

func (m *ListContextsRequest) XXX_DiscardUnknown()

func (*ListContextsRequest) XXX_Marshal

func (m *ListContextsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListContextsRequest) XXX_Merge

func (m *ListContextsRequest) XXX_Merge(src proto.Message)

func (*ListContextsRequest) XXX_Size

func (m *ListContextsRequest) XXX_Size() int

func (*ListContextsRequest) XXX_Unmarshal

func (m *ListContextsRequest) XXX_Unmarshal(b []byte) error

type ListContextsResponse

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].

func (*ListContextsResponse) Descriptor

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

func (*ListContextsResponse) GetContexts

func (m *ListContextsResponse) GetContexts() []*Context

func (*ListContextsResponse) GetNextPageToken

func (m *ListContextsResponse) GetNextPageToken() string

func (*ListContextsResponse) ProtoMessage

func (*ListContextsResponse) ProtoMessage()

func (*ListContextsResponse) Reset

func (m *ListContextsResponse) Reset()

func (*ListContextsResponse) String

func (m *ListContextsResponse) String() string

func (*ListContextsResponse) XXX_DiscardUnknown

func (m *ListContextsResponse) XXX_DiscardUnknown()

func (*ListContextsResponse) XXX_Marshal

func (m *ListContextsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListContextsResponse) XXX_Merge

func (m *ListContextsResponse) XXX_Merge(src proto.Message)

func (*ListContextsResponse) XXX_Size

func (m *ListContextsResponse) XXX_Size() int

func (*ListContextsResponse) XXX_Unmarshal

func (m *ListContextsResponse) XXX_Unmarshal(b []byte) error

type ListEntityTypesRequest

type ListEntityTypesRequest struct {
	// Required. The agent to list all entity types from.
	// Format: `projects/<Project ID>/agent`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,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,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Optional. The maximum number of items to return in a single page. By
	// default 100 and at most 1000.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The next_page_token value returned from a previous list request.
	PageToken            string   `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*ListEntityTypesRequest) Descriptor

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

func (*ListEntityTypesRequest) GetLanguageCode

func (m *ListEntityTypesRequest) GetLanguageCode() string

func (*ListEntityTypesRequest) GetPageSize

func (m *ListEntityTypesRequest) GetPageSize() int32

func (*ListEntityTypesRequest) GetPageToken

func (m *ListEntityTypesRequest) GetPageToken() string

func (*ListEntityTypesRequest) GetParent

func (m *ListEntityTypesRequest) GetParent() string

func (*ListEntityTypesRequest) ProtoMessage

func (*ListEntityTypesRequest) ProtoMessage()

func (*ListEntityTypesRequest) Reset

func (m *ListEntityTypesRequest) Reset()

func (*ListEntityTypesRequest) String

func (m *ListEntityTypesRequest) String() string

func (*ListEntityTypesRequest) XXX_DiscardUnknown

func (m *ListEntityTypesRequest) XXX_DiscardUnknown()

func (*ListEntityTypesRequest) XXX_Marshal

func (m *ListEntityTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListEntityTypesRequest) XXX_Merge

func (m *ListEntityTypesRequest) XXX_Merge(src proto.Message)

func (*ListEntityTypesRequest) XXX_Size

func (m *ListEntityTypesRequest) XXX_Size() int

func (*ListEntityTypesRequest) XXX_Unmarshal

func (m *ListEntityTypesRequest) XXX_Unmarshal(b []byte) error

type ListEntityTypesResponse

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*ListEntityTypesResponse) Descriptor

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

func (*ListEntityTypesResponse) GetEntityTypes

func (m *ListEntityTypesResponse) GetEntityTypes() []*EntityType

func (*ListEntityTypesResponse) GetNextPageToken

func (m *ListEntityTypesResponse) GetNextPageToken() string

func (*ListEntityTypesResponse) ProtoMessage

func (*ListEntityTypesResponse) ProtoMessage()

func (*ListEntityTypesResponse) Reset

func (m *ListEntityTypesResponse) Reset()

func (*ListEntityTypesResponse) String

func (m *ListEntityTypesResponse) String() string

func (*ListEntityTypesResponse) XXX_DiscardUnknown

func (m *ListEntityTypesResponse) XXX_DiscardUnknown()

func (*ListEntityTypesResponse) XXX_Marshal

func (m *ListEntityTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListEntityTypesResponse) XXX_Merge

func (m *ListEntityTypesResponse) XXX_Merge(src proto.Message)

func (*ListEntityTypesResponse) XXX_Size

func (m *ListEntityTypesResponse) XXX_Size() int

func (*ListEntityTypesResponse) XXX_Unmarshal

func (m *ListEntityTypesResponse) XXX_Unmarshal(b []byte) error

type ListEnvironmentsRequest

type ListEnvironmentsRequest struct {
	// Required. The agent to list all environments from.
	// Format: `projects/<Project ID>/agent`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of items to return in a single page. By default 100 and
	// at most 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The next_page_token value returned from a previous list request.
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Environments.ListEnvironments][google.cloud.dialogflow.v2.Environments.ListEnvironments].

func (*ListEnvironmentsRequest) Descriptor

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

func (*ListEnvironmentsRequest) GetPageSize

func (m *ListEnvironmentsRequest) GetPageSize() int32

func (*ListEnvironmentsRequest) GetPageToken

func (m *ListEnvironmentsRequest) GetPageToken() string

func (*ListEnvironmentsRequest) GetParent

func (m *ListEnvironmentsRequest) GetParent() string

func (*ListEnvironmentsRequest) ProtoMessage

func (*ListEnvironmentsRequest) ProtoMessage()

func (*ListEnvironmentsRequest) Reset

func (m *ListEnvironmentsRequest) Reset()

func (*ListEnvironmentsRequest) String

func (m *ListEnvironmentsRequest) String() string

func (*ListEnvironmentsRequest) XXX_DiscardUnknown

func (m *ListEnvironmentsRequest) XXX_DiscardUnknown()

func (*ListEnvironmentsRequest) XXX_Marshal

func (m *ListEnvironmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListEnvironmentsRequest) XXX_Merge

func (m *ListEnvironmentsRequest) XXX_Merge(src proto.Message)

func (*ListEnvironmentsRequest) XXX_Size

func (m *ListEnvironmentsRequest) XXX_Size() int

func (*ListEnvironmentsRequest) XXX_Unmarshal

func (m *ListEnvironmentsRequest) XXX_Unmarshal(b []byte) error

type ListEnvironmentsResponse

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message for [Environments.ListEnvironments][google.cloud.dialogflow.v2.Environments.ListEnvironments].

func (*ListEnvironmentsResponse) Descriptor

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

func (*ListEnvironmentsResponse) GetEnvironments

func (m *ListEnvironmentsResponse) GetEnvironments() []*Environment

func (*ListEnvironmentsResponse) GetNextPageToken

func (m *ListEnvironmentsResponse) GetNextPageToken() string

func (*ListEnvironmentsResponse) ProtoMessage

func (*ListEnvironmentsResponse) ProtoMessage()

func (*ListEnvironmentsResponse) Reset

func (m *ListEnvironmentsResponse) Reset()

func (*ListEnvironmentsResponse) String

func (m *ListEnvironmentsResponse) String() string

func (*ListEnvironmentsResponse) XXX_DiscardUnknown

func (m *ListEnvironmentsResponse) XXX_DiscardUnknown()

func (*ListEnvironmentsResponse) XXX_Marshal

func (m *ListEnvironmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListEnvironmentsResponse) XXX_Merge

func (m *ListEnvironmentsResponse) XXX_Merge(src proto.Message)

func (*ListEnvironmentsResponse) XXX_Size

func (m *ListEnvironmentsResponse) XXX_Size() int

func (*ListEnvironmentsResponse) XXX_Unmarshal

func (m *ListEnvironmentsResponse) XXX_Unmarshal(b []byte) error

type ListIntentsRequest

type ListIntentsRequest struct {
	// Required. The agent to list all intents from.
	// Format: `projects/<Project ID>/agent`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,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,2,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 */
	// Optional. The maximum number of items to return in a single page. By
	// default 100 and at most 1000.
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The next_page_token value returned from a previous list request.
	PageToken            string   `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*ListIntentsRequest) Descriptor

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

func (*ListIntentsRequest) GetIntentView

func (m *ListIntentsRequest) GetIntentView() IntentView

func (*ListIntentsRequest) GetLanguageCode

func (m *ListIntentsRequest) GetLanguageCode() string

func (*ListIntentsRequest) GetPageSize

func (m *ListIntentsRequest) GetPageSize() int32

func (*ListIntentsRequest) GetPageToken

func (m *ListIntentsRequest) GetPageToken() string

func (*ListIntentsRequest) GetParent

func (m *ListIntentsRequest) GetParent() string

func (*ListIntentsRequest) ProtoMessage

func (*ListIntentsRequest) ProtoMessage()

func (*ListIntentsRequest) Reset

func (m *ListIntentsRequest) Reset()

func (*ListIntentsRequest) String

func (m *ListIntentsRequest) String() string

func (*ListIntentsRequest) XXX_DiscardUnknown

func (m *ListIntentsRequest) XXX_DiscardUnknown()

func (*ListIntentsRequest) XXX_Marshal

func (m *ListIntentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListIntentsRequest) XXX_Merge

func (m *ListIntentsRequest) XXX_Merge(src proto.Message)

func (*ListIntentsRequest) XXX_Size

func (m *ListIntentsRequest) XXX_Size() int

func (*ListIntentsRequest) XXX_Unmarshal

func (m *ListIntentsRequest) XXX_Unmarshal(b []byte) error

type ListIntentsResponse

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*ListIntentsResponse) Descriptor

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

func (*ListIntentsResponse) GetIntents

func (m *ListIntentsResponse) GetIntents() []*Intent

func (*ListIntentsResponse) GetNextPageToken

func (m *ListIntentsResponse) GetNextPageToken() string

func (*ListIntentsResponse) ProtoMessage

func (*ListIntentsResponse) ProtoMessage()

func (*ListIntentsResponse) Reset

func (m *ListIntentsResponse) Reset()

func (*ListIntentsResponse) String

func (m *ListIntentsResponse) String() string

func (*ListIntentsResponse) XXX_DiscardUnknown

func (m *ListIntentsResponse) XXX_DiscardUnknown()

func (*ListIntentsResponse) XXX_Marshal

func (m *ListIntentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListIntentsResponse) XXX_Merge

func (m *ListIntentsResponse) XXX_Merge(src proto.Message)

func (*ListIntentsResponse) XXX_Size

func (m *ListIntentsResponse) XXX_Size() int

func (*ListIntentsResponse) XXX_Unmarshal

func (m *ListIntentsResponse) XXX_Unmarshal(b []byte) error

type ListSessionEntityTypesRequest

type ListSessionEntityTypesRequest struct {
	// Required. The session to list all session entity types 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"`
	// Optional. The maximum number of items to return in a single page. By
	// default 100 and at most 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The next_page_token value returned from a previous list request.
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].

func (*ListSessionEntityTypesRequest) Descriptor

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

func (*ListSessionEntityTypesRequest) GetPageSize

func (m *ListSessionEntityTypesRequest) GetPageSize() int32

func (*ListSessionEntityTypesRequest) GetPageToken

func (m *ListSessionEntityTypesRequest) GetPageToken() string

func (*ListSessionEntityTypesRequest) GetParent

func (m *ListSessionEntityTypesRequest) GetParent() string

func (*ListSessionEntityTypesRequest) ProtoMessage

func (*ListSessionEntityTypesRequest) ProtoMessage()

func (*ListSessionEntityTypesRequest) Reset

func (m *ListSessionEntityTypesRequest) Reset()

func (*ListSessionEntityTypesRequest) String

func (*ListSessionEntityTypesRequest) XXX_DiscardUnknown

func (m *ListSessionEntityTypesRequest) XXX_DiscardUnknown()

func (*ListSessionEntityTypesRequest) XXX_Marshal

func (m *ListSessionEntityTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSessionEntityTypesRequest) XXX_Merge

func (m *ListSessionEntityTypesRequest) XXX_Merge(src proto.Message)

func (*ListSessionEntityTypesRequest) XXX_Size

func (m *ListSessionEntityTypesRequest) XXX_Size() int

func (*ListSessionEntityTypesRequest) XXX_Unmarshal

func (m *ListSessionEntityTypesRequest) XXX_Unmarshal(b []byte) error

type ListSessionEntityTypesResponse

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].

func (*ListSessionEntityTypesResponse) Descriptor

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

func (*ListSessionEntityTypesResponse) GetNextPageToken

func (m *ListSessionEntityTypesResponse) GetNextPageToken() string

func (*ListSessionEntityTypesResponse) GetSessionEntityTypes

func (m *ListSessionEntityTypesResponse) GetSessionEntityTypes() []*SessionEntityType

func (*ListSessionEntityTypesResponse) ProtoMessage

func (*ListSessionEntityTypesResponse) ProtoMessage()

func (*ListSessionEntityTypesResponse) Reset

func (m *ListSessionEntityTypesResponse) Reset()

func (*ListSessionEntityTypesResponse) String

func (*ListSessionEntityTypesResponse) XXX_DiscardUnknown

func (m *ListSessionEntityTypesResponse) XXX_DiscardUnknown()

func (*ListSessionEntityTypesResponse) XXX_Marshal

func (m *ListSessionEntityTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSessionEntityTypesResponse) XXX_Merge

func (m *ListSessionEntityTypesResponse) XXX_Merge(src proto.Message)

func (*ListSessionEntityTypesResponse) XXX_Size

func (m *ListSessionEntityTypesResponse) XXX_Size() int

func (*ListSessionEntityTypesResponse) XXX_Unmarshal

func (m *ListSessionEntityTypesResponse) XXX_Unmarshal(b []byte) error

type OriginalDetectIntentRequest

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:
	// <pre>{
	//  "telephony": {
	//    "caller_id": "+18558363987"
	//  }
	// }</pre>
	// Note: The caller ID field (`caller_id`) will be redacted for Standard
	// Edition agents and populated with the caller ID in [E.164
	// format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
	Payload              *_struct.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Represents the contents of the original request that was passed to the `[Streaming]DetectIntent` call.

func (*OriginalDetectIntentRequest) Descriptor

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

func (*OriginalDetectIntentRequest) GetPayload

func (m *OriginalDetectIntentRequest) GetPayload() *_struct.Struct

func (*OriginalDetectIntentRequest) GetSource

func (m *OriginalDetectIntentRequest) GetSource() string

func (*OriginalDetectIntentRequest) GetVersion

func (m *OriginalDetectIntentRequest) GetVersion() string

func (*OriginalDetectIntentRequest) ProtoMessage

func (*OriginalDetectIntentRequest) ProtoMessage()

func (*OriginalDetectIntentRequest) Reset

func (m *OriginalDetectIntentRequest) Reset()

func (*OriginalDetectIntentRequest) String

func (m *OriginalDetectIntentRequest) String() string

func (*OriginalDetectIntentRequest) XXX_DiscardUnknown

func (m *OriginalDetectIntentRequest) XXX_DiscardUnknown()

func (*OriginalDetectIntentRequest) XXX_Marshal

func (m *OriginalDetectIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OriginalDetectIntentRequest) XXX_Merge

func (m *OriginalDetectIntentRequest) XXX_Merge(src proto.Message)

func (*OriginalDetectIntentRequest) XXX_Size

func (m *OriginalDetectIntentRequest) XXX_Size() int

func (*OriginalDetectIntentRequest) XXX_Unmarshal

func (m *OriginalDetectIntentRequest) XXX_Unmarshal(b []byte) error

type OutputAudioConfig

type OutputAudioConfig struct {
	// Required. Audio encoding of the synthesized audio content.
	AudioEncoding OutputAudioEncoding `` /* 153-byte string literal not displayed */
	// The synthesis sample rate (in hertz) for this audio. If not
	// provided, then the synthesizer will use the default sample rate based on
	// the audio encoding. If this is different from the voice's natural sample
	// rate, then the synthesizer will honor this request by converting to the
	// desired sample rate (which might result in worse audio quality).
	SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
	// Configuration of how speech should be synthesized.
	SynthesizeSpeechConfig *SynthesizeSpeechConfig `` /* 129-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{}                `json:"-"`
	XXX_unrecognized       []byte                  `json:"-"`
	XXX_sizecache          int32                   `json:"-"`
}

Instructs the speech synthesizer on how to generate the output audio content. If this audio config is supplied in a request, it overrides all existing text-to-speech settings applied to the agent.

func (*OutputAudioConfig) Descriptor

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

func (*OutputAudioConfig) GetAudioEncoding

func (m *OutputAudioConfig) GetAudioEncoding() OutputAudioEncoding

func (*OutputAudioConfig) GetSampleRateHertz

func (m *OutputAudioConfig) GetSampleRateHertz() int32

func (*OutputAudioConfig) GetSynthesizeSpeechConfig

func (m *OutputAudioConfig) GetSynthesizeSpeechConfig() *SynthesizeSpeechConfig

func (*OutputAudioConfig) ProtoMessage

func (*OutputAudioConfig) ProtoMessage()

func (*OutputAudioConfig) Reset

func (m *OutputAudioConfig) Reset()

func (*OutputAudioConfig) String

func (m *OutputAudioConfig) String() string

func (*OutputAudioConfig) XXX_DiscardUnknown

func (m *OutputAudioConfig) XXX_DiscardUnknown()

func (*OutputAudioConfig) XXX_Marshal

func (m *OutputAudioConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutputAudioConfig) XXX_Merge

func (m *OutputAudioConfig) XXX_Merge(src proto.Message)

func (*OutputAudioConfig) XXX_Size

func (m *OutputAudioConfig) XXX_Size() int

func (*OutputAudioConfig) XXX_Unmarshal

func (m *OutputAudioConfig) XXX_Unmarshal(b []byte) error

type OutputAudioEncoding

type OutputAudioEncoding int32

Audio encoding of the output audio format in Text-To-Speech.

const (
	// Not specified.
	OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_UNSPECIFIED OutputAudioEncoding = 0
	// Uncompressed 16-bit signed little-endian samples (Linear PCM).
	// Audio content returned as LINEAR16 also contains a WAV header.
	OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_LINEAR_16 OutputAudioEncoding = 1
	// MP3 audio at 32kbps.
	OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_MP3 OutputAudioEncoding = 2
	// Opus encoded audio wrapped in an ogg container. The result will be a
	// file which can be played natively on Android, and in browsers (at least
	// Chrome and Firefox). The quality of the encoding is considerably higher
	// than MP3 while using approximately the same bitrate.
	OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_OGG_OPUS OutputAudioEncoding = 3
)

func (OutputAudioEncoding) EnumDescriptor

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

func (OutputAudioEncoding) String

func (x OutputAudioEncoding) String() string

type QueryInput

type QueryInput struct {
	// Required. The input specification.
	//
	// Types that are valid to be assigned to Input:
	//	*QueryInput_AudioConfig
	//	*QueryInput_Text
	//	*QueryInput_Event
	Input                isQueryInput_Input `protobuf_oneof:"input"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Represents the query input. It can contain either:

  1. An audio config which instructs the speech recognizer how to process the speech audio.

2. A conversational query in the form of text,.

3. An event that specifies which intent to trigger.

func (*QueryInput) Descriptor

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

func (*QueryInput) GetAudioConfig

func (m *QueryInput) GetAudioConfig() *InputAudioConfig

func (*QueryInput) GetEvent

func (m *QueryInput) GetEvent() *EventInput

func (*QueryInput) GetInput

func (m *QueryInput) GetInput() isQueryInput_Input

func (*QueryInput) GetText

func (m *QueryInput) GetText() *TextInput

func (*QueryInput) ProtoMessage

func (*QueryInput) ProtoMessage()

func (*QueryInput) Reset

func (m *QueryInput) Reset()

func (*QueryInput) String

func (m *QueryInput) String() string

func (*QueryInput) XXX_DiscardUnknown

func (m *QueryInput) XXX_DiscardUnknown()

func (*QueryInput) XXX_Marshal

func (m *QueryInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryInput) XXX_Merge

func (m *QueryInput) XXX_Merge(src proto.Message)

func (*QueryInput) XXX_OneofWrappers

func (*QueryInput) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*QueryInput) XXX_Size

func (m *QueryInput) XXX_Size() int

func (*QueryInput) XXX_Unmarshal

func (m *QueryInput) XXX_Unmarshal(b []byte) error

type QueryInput_AudioConfig

type QueryInput_AudioConfig struct {
	AudioConfig *InputAudioConfig `protobuf:"bytes,1,opt,name=audio_config,json=audioConfig,proto3,oneof"`
}

type QueryInput_Event

type QueryInput_Event struct {
	Event *EventInput `protobuf:"bytes,3,opt,name=event,proto3,oneof"`
}

type QueryInput_Text

type QueryInput_Text struct {
	Text *TextInput `protobuf:"bytes,2,opt,name=text,proto3,oneof"`
}

type QueryParameters

type QueryParameters struct {
	// The time zone of this conversational query from the
	// [time zone database](https://www.iana.org/time-zones), e.g.,
	// America/New_York, Europe/Paris. If not provided, the time zone specified in
	// agent settings is used.
	TimeZone string `protobuf:"bytes,1,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
	// The geo location of this conversational query.
	GeoLocation *latlng.LatLng `protobuf:"bytes,2,opt,name=geo_location,json=geoLocation,proto3" json:"geo_location,omitempty"`
	// The collection of contexts to be activated before this query is
	// executed.
	Contexts []*Context `protobuf:"bytes,3,rep,name=contexts,proto3" json:"contexts,omitempty"`
	// Specifies whether to delete all contexts in the current session
	// before the new ones are activated.
	ResetContexts bool `protobuf:"varint,4,opt,name=reset_contexts,json=resetContexts,proto3" json:"reset_contexts,omitempty"`
	// Additional session entity types to replace or extend developer
	// entity types with. The entity synonyms apply to all languages and persist
	// for the session of this query.
	SessionEntityTypes []*SessionEntityType `protobuf:"bytes,5,rep,name=session_entity_types,json=sessionEntityTypes,proto3" json:"session_entity_types,omitempty"`
	// This field can be used to pass custom data to your webhook.
	// Arbitrary JSON objects are supported.
	// If supplied, the value is used to populate the
	// `WebhookRequest.original_detect_intent_request.payload`
	// field sent to your webhook.
	Payload *_struct.Struct `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"`
	// Configures the type of sentiment analysis to perform. If not
	// provided, sentiment analysis is not performed.
	SentimentAnalysisRequestConfig *SentimentAnalysisRequestConfig `` /* 156-byte string literal not displayed */
	XXX_NoUnkeyedLiteral           struct{}                        `json:"-"`
	XXX_unrecognized               []byte                          `json:"-"`
	XXX_sizecache                  int32                           `json:"-"`
}

Represents the parameters of the conversational query.

func (*QueryParameters) Descriptor

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

func (*QueryParameters) GetContexts

func (m *QueryParameters) GetContexts() []*Context

func (*QueryParameters) GetGeoLocation

func (m *QueryParameters) GetGeoLocation() *latlng.LatLng

func (*QueryParameters) GetPayload

func (m *QueryParameters) GetPayload() *_struct.Struct

func (*QueryParameters) GetResetContexts

func (m *QueryParameters) GetResetContexts() bool

func (*QueryParameters) GetSentimentAnalysisRequestConfig

func (m *QueryParameters) GetSentimentAnalysisRequestConfig() *SentimentAnalysisRequestConfig

func (*QueryParameters) GetSessionEntityTypes

func (m *QueryParameters) GetSessionEntityTypes() []*SessionEntityType

func (*QueryParameters) GetTimeZone

func (m *QueryParameters) GetTimeZone() string

func (*QueryParameters) ProtoMessage

func (*QueryParameters) ProtoMessage()

func (*QueryParameters) Reset

func (m *QueryParameters) Reset()

func (*QueryParameters) String

func (m *QueryParameters) String() string

func (*QueryParameters) XXX_DiscardUnknown

func (m *QueryParameters) XXX_DiscardUnknown()

func (*QueryParameters) XXX_Marshal

func (m *QueryParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParameters) XXX_Merge

func (m *QueryParameters) XXX_Merge(src proto.Message)

func (*QueryParameters) XXX_Size

func (m *QueryParameters) XXX_Size() int

func (*QueryParameters) XXX_Unmarshal

func (m *QueryParameters) XXX_Unmarshal(b []byte) error

type QueryResult

type QueryResult struct {
	// The original conversational query text:
	//
	// - If natural language text was provided as input, `query_text` contains
	//   a copy of the input.
	// - If natural language speech audio was provided as input, `query_text`
	//   contains the speech recognition result. If speech recognizer produced
	//   multiple alternatives, a particular one is picked.
	// - If automatic spell correction is enabled, `query_text` will contain the
	//   corrected user input.
	QueryText string `protobuf:"bytes,1,opt,name=query_text,json=queryText,proto3" json:"query_text,omitempty"`
	// The language that was triggered during intent detection.
	// See [Language
	// Support](https://cloud.google.com/dialogflow/docs/reference/language)
	// for a list of the currently supported language codes.
	LanguageCode string `protobuf:"bytes,15,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// The Speech recognition confidence between 0.0 and 1.0. A higher number
	// indicates an estimated greater likelihood that the recognized words are
	// correct. The default of 0.0 is a sentinel value indicating that confidence
	// was not set.
	//
	// This field is not guaranteed to be accurate or set. In particular this
	// field isn't set for StreamingDetectIntent since the streaming endpoint has
	// separate confidence estimates per portion of the audio in
	// StreamingRecognitionResult.
	SpeechRecognitionConfidence float32 `` /* 146-byte string literal not displayed */
	// The action name from the matched intent.
	Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
	// The collection of extracted parameters.
	//
	// 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: string or number, depending on parameter value type
	// -   MapValue value:
	//     -   If parameter's entity type is a composite entity:
	//         map from composite entity property names to property values
	//     -   Else: parameter value
	Parameters *_struct.Struct `protobuf:"bytes,4,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// This field is set to:
	//
	// - `false` if the matched intent has required parameters and not all of
	//    the required parameter values have been collected.
	// - `true` if all required parameter values have been collected, or if the
	//    matched intent doesn't contain any required parameters.
	AllRequiredParamsPresent bool `` /* 138-byte string literal not displayed */
	// The text to be pronounced to the user or shown on the screen.
	// Note: This is a legacy field, `fulfillment_messages` should be preferred.
	FulfillmentText string `protobuf:"bytes,6,opt,name=fulfillment_text,json=fulfillmentText,proto3" json:"fulfillment_text,omitempty"`
	// The collection of rich messages to present to the user.
	FulfillmentMessages []*Intent_Message `protobuf:"bytes,7,rep,name=fulfillment_messages,json=fulfillmentMessages,proto3" json:"fulfillment_messages,omitempty"`
	// If the query was fulfilled by a webhook call, this field is set to the
	// value of the `source` field returned in the webhook response.
	WebhookSource string `protobuf:"bytes,8,opt,name=webhook_source,json=webhookSource,proto3" json:"webhook_source,omitempty"`
	// If the query was fulfilled by a webhook call, this field is set to the
	// value of the `payload` field returned in the webhook response.
	WebhookPayload *_struct.Struct `protobuf:"bytes,9,opt,name=webhook_payload,json=webhookPayload,proto3" json:"webhook_payload,omitempty"`
	// The collection of output contexts. If applicable,
	// `output_contexts.parameters` contains entries with name
	// `<parameter name>.original` containing the original parameter values
	// before the query.
	OutputContexts []*Context `protobuf:"bytes,10,rep,name=output_contexts,json=outputContexts,proto3" json:"output_contexts,omitempty"`
	// The intent that matched the conversational query. Some, not
	// all fields are filled in this message, including but not limited to:
	// `name`, `display_name`, `end_interaction` and `is_fallback`.
	Intent *Intent `protobuf:"bytes,11,opt,name=intent,proto3" json:"intent,omitempty"`
	// The intent detection confidence. Values range from 0.0
	// (completely uncertain) to 1.0 (completely certain).
	// This value is for informational purpose only and is only used to
	// help match the best intent within the classification threshold.
	// This value may change for the same end-user expression at any time due to a
	// model retraining or change in implementation.
	// If there are `multiple knowledge_answers` messages, this value is set to
	// the greatest `knowledgeAnswers.match_confidence` value in the list.
	IntentDetectionConfidence float32 `` /* 141-byte string literal not displayed */
	// Free-form diagnostic information for the associated detect intent request.
	// The fields of this data can change without notice, so you should not write
	// code that depends on its structure.
	// The data may contain:
	//
	// - webhook call latency
	// - webhook errors
	DiagnosticInfo *_struct.Struct `protobuf:"bytes,14,opt,name=diagnostic_info,json=diagnosticInfo,proto3" json:"diagnostic_info,omitempty"`
	// The sentiment analysis result, which depends on the
	// `sentiment_analysis_request_config` specified in the request.
	SentimentAnalysisResult *SentimentAnalysisResult `` /* 133-byte string literal not displayed */
	XXX_NoUnkeyedLiteral    struct{}                 `json:"-"`
	XXX_unrecognized        []byte                   `json:"-"`
	XXX_sizecache           int32                    `json:"-"`
}

Represents the result of conversational query or event processing.

func (*QueryResult) Descriptor

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

func (*QueryResult) GetAction

func (m *QueryResult) GetAction() string

func (*QueryResult) GetAllRequiredParamsPresent

func (m *QueryResult) GetAllRequiredParamsPresent() bool

func (*QueryResult) GetDiagnosticInfo

func (m *QueryResult) GetDiagnosticInfo() *_struct.Struct

func (*QueryResult) GetFulfillmentMessages

func (m *QueryResult) GetFulfillmentMessages() []*Intent_Message

func (*QueryResult) GetFulfillmentText

func (m *QueryResult) GetFulfillmentText() string

func (*QueryResult) GetIntent

func (m *QueryResult) GetIntent() *Intent

func (*QueryResult) GetIntentDetectionConfidence

func (m *QueryResult) GetIntentDetectionConfidence() float32

func (*QueryResult) GetLanguageCode

func (m *QueryResult) GetLanguageCode() string

func (*QueryResult) GetOutputContexts

func (m *QueryResult) GetOutputContexts() []*Context

func (*QueryResult) GetParameters

func (m *QueryResult) GetParameters() *_struct.Struct

func (*QueryResult) GetQueryText

func (m *QueryResult) GetQueryText() string

func (*QueryResult) GetSentimentAnalysisResult

func (m *QueryResult) GetSentimentAnalysisResult() *SentimentAnalysisResult

func (*QueryResult) GetSpeechRecognitionConfidence

func (m *QueryResult) GetSpeechRecognitionConfidence() float32

func (*QueryResult) GetWebhookPayload

func (m *QueryResult) GetWebhookPayload() *_struct.Struct

func (*QueryResult) GetWebhookSource

func (m *QueryResult) GetWebhookSource() string

func (*QueryResult) ProtoMessage

func (*QueryResult) ProtoMessage()

func (*QueryResult) Reset

func (m *QueryResult) Reset()

func (*QueryResult) String

func (m *QueryResult) String() string

func (*QueryResult) XXX_DiscardUnknown

func (m *QueryResult) XXX_DiscardUnknown()

func (*QueryResult) XXX_Marshal

func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryResult) XXX_Merge

func (m *QueryResult) XXX_Merge(src proto.Message)

func (*QueryResult) XXX_Size

func (m *QueryResult) XXX_Size() int

func (*QueryResult) XXX_Unmarshal

func (m *QueryResult) XXX_Unmarshal(b []byte) error

type RestoreAgentRequest

type RestoreAgentRequest struct {
	// Required. The project that the agent to restore is associated with.
	// Format: `projects/<Project ID>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The agent to restore.
	//
	// Types that are valid to be assigned to Agent:
	//	*RestoreAgentRequest_AgentUri
	//	*RestoreAgentRequest_AgentContent
	Agent                isRestoreAgentRequest_Agent `protobuf_oneof:"agent"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].

func (*RestoreAgentRequest) Descriptor

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

func (*RestoreAgentRequest) GetAgent

func (m *RestoreAgentRequest) GetAgent() isRestoreAgentRequest_Agent

func (*RestoreAgentRequest) GetAgentContent

func (m *RestoreAgentRequest) GetAgentContent() []byte

func (*RestoreAgentRequest) GetAgentUri

func (m *RestoreAgentRequest) GetAgentUri() string

func (*RestoreAgentRequest) GetParent

func (m *RestoreAgentRequest) GetParent() string

func (*RestoreAgentRequest) ProtoMessage

func (*RestoreAgentRequest) ProtoMessage()

func (*RestoreAgentRequest) Reset

func (m *RestoreAgentRequest) Reset()

func (*RestoreAgentRequest) String

func (m *RestoreAgentRequest) String() string

func (*RestoreAgentRequest) XXX_DiscardUnknown

func (m *RestoreAgentRequest) XXX_DiscardUnknown()

func (*RestoreAgentRequest) XXX_Marshal

func (m *RestoreAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreAgentRequest) XXX_Merge

func (m *RestoreAgentRequest) XXX_Merge(src proto.Message)

func (*RestoreAgentRequest) XXX_OneofWrappers

func (*RestoreAgentRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*RestoreAgentRequest) XXX_Size

func (m *RestoreAgentRequest) XXX_Size() int

func (*RestoreAgentRequest) XXX_Unmarshal

func (m *RestoreAgentRequest) XXX_Unmarshal(b []byte) error

type RestoreAgentRequest_AgentContent

type RestoreAgentRequest_AgentContent struct {
	AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"`
}

type RestoreAgentRequest_AgentUri

type RestoreAgentRequest_AgentUri struct {
	AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"`
}

type SearchAgentsRequest

type SearchAgentsRequest struct {
	// Required. The project to list agents from.
	// Format: `projects/<Project ID or '-'>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of items to return in a single page. By
	// default 100 and at most 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous list request.
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].

func (*SearchAgentsRequest) Descriptor

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

func (*SearchAgentsRequest) GetPageSize

func (m *SearchAgentsRequest) GetPageSize() int32

func (*SearchAgentsRequest) GetPageToken

func (m *SearchAgentsRequest) GetPageToken() string

func (*SearchAgentsRequest) GetParent

func (m *SearchAgentsRequest) GetParent() string

func (*SearchAgentsRequest) ProtoMessage

func (*SearchAgentsRequest) ProtoMessage()

func (*SearchAgentsRequest) Reset

func (m *SearchAgentsRequest) Reset()

func (*SearchAgentsRequest) String

func (m *SearchAgentsRequest) String() string

func (*SearchAgentsRequest) XXX_DiscardUnknown

func (m *SearchAgentsRequest) XXX_DiscardUnknown()

func (*SearchAgentsRequest) XXX_Marshal

func (m *SearchAgentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchAgentsRequest) XXX_Merge

func (m *SearchAgentsRequest) XXX_Merge(src proto.Message)

func (*SearchAgentsRequest) XXX_Size

func (m *SearchAgentsRequest) XXX_Size() int

func (*SearchAgentsRequest) XXX_Unmarshal

func (m *SearchAgentsRequest) XXX_Unmarshal(b []byte) error

type SearchAgentsResponse

type SearchAgentsResponse struct {
	// The list of agents. There will be a maximum number of items returned based
	// on the page_size field in the request.
	Agents []*Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].

func (*SearchAgentsResponse) Descriptor

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

func (*SearchAgentsResponse) GetAgents

func (m *SearchAgentsResponse) GetAgents() []*Agent

func (*SearchAgentsResponse) GetNextPageToken

func (m *SearchAgentsResponse) GetNextPageToken() string

func (*SearchAgentsResponse) ProtoMessage

func (*SearchAgentsResponse) ProtoMessage()

func (*SearchAgentsResponse) Reset

func (m *SearchAgentsResponse) Reset()

func (*SearchAgentsResponse) String

func (m *SearchAgentsResponse) String() string

func (*SearchAgentsResponse) XXX_DiscardUnknown

func (m *SearchAgentsResponse) XXX_DiscardUnknown()

func (*SearchAgentsResponse) XXX_Marshal

func (m *SearchAgentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchAgentsResponse) XXX_Merge

func (m *SearchAgentsResponse) XXX_Merge(src proto.Message)

func (*SearchAgentsResponse) XXX_Size

func (m *SearchAgentsResponse) XXX_Size() int

func (*SearchAgentsResponse) XXX_Unmarshal

func (m *SearchAgentsResponse) XXX_Unmarshal(b []byte) error

type Sentiment

type Sentiment struct {
	// Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
	// sentiment).
	Score float32 `protobuf:"fixed32,1,opt,name=score,proto3" json:"score,omitempty"`
	// A non-negative number in the [0, +inf) range, which represents the absolute
	// magnitude of sentiment, regardless of score (positive or negative).
	Magnitude            float32  `protobuf:"fixed32,2,opt,name=magnitude,proto3" json:"magnitude,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.

func (*Sentiment) Descriptor

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

func (*Sentiment) GetMagnitude

func (m *Sentiment) GetMagnitude() float32

func (*Sentiment) GetScore

func (m *Sentiment) GetScore() float32

func (*Sentiment) ProtoMessage

func (*Sentiment) ProtoMessage()

func (*Sentiment) Reset

func (m *Sentiment) Reset()

func (*Sentiment) String

func (m *Sentiment) String() string

func (*Sentiment) XXX_DiscardUnknown

func (m *Sentiment) XXX_DiscardUnknown()

func (*Sentiment) XXX_Marshal

func (m *Sentiment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sentiment) XXX_Merge

func (m *Sentiment) XXX_Merge(src proto.Message)

func (*Sentiment) XXX_Size

func (m *Sentiment) XXX_Size() int

func (*Sentiment) XXX_Unmarshal

func (m *Sentiment) XXX_Unmarshal(b []byte) error

type SentimentAnalysisRequestConfig

type SentimentAnalysisRequestConfig struct {
	// Instructs the service to perform sentiment analysis on
	// `query_text`. If not provided, sentiment analysis is not performed on
	// `query_text`.
	AnalyzeQueryTextSentiment bool     `` /* 141-byte string literal not displayed */
	XXX_NoUnkeyedLiteral      struct{} `json:"-"`
	XXX_unrecognized          []byte   `json:"-"`
	XXX_sizecache             int32    `json:"-"`
}

Configures the types of sentiment analysis to perform.

func (*SentimentAnalysisRequestConfig) Descriptor

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

func (*SentimentAnalysisRequestConfig) GetAnalyzeQueryTextSentiment

func (m *SentimentAnalysisRequestConfig) GetAnalyzeQueryTextSentiment() bool

func (*SentimentAnalysisRequestConfig) ProtoMessage

func (*SentimentAnalysisRequestConfig) ProtoMessage()

func (*SentimentAnalysisRequestConfig) Reset

func (m *SentimentAnalysisRequestConfig) Reset()

func (*SentimentAnalysisRequestConfig) String

func (*SentimentAnalysisRequestConfig) XXX_DiscardUnknown

func (m *SentimentAnalysisRequestConfig) XXX_DiscardUnknown()

func (*SentimentAnalysisRequestConfig) XXX_Marshal

func (m *SentimentAnalysisRequestConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SentimentAnalysisRequestConfig) XXX_Merge

func (m *SentimentAnalysisRequestConfig) XXX_Merge(src proto.Message)

func (*SentimentAnalysisRequestConfig) XXX_Size

func (m *SentimentAnalysisRequestConfig) XXX_Size() int

func (*SentimentAnalysisRequestConfig) XXX_Unmarshal

func (m *SentimentAnalysisRequestConfig) XXX_Unmarshal(b []byte) error

type SentimentAnalysisResult

type SentimentAnalysisResult struct {
	// The sentiment analysis result for `query_text`.
	QueryTextSentiment   *Sentiment `protobuf:"bytes,1,opt,name=query_text_sentiment,json=queryTextSentiment,proto3" json:"query_text_sentiment,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

The result of sentiment analysis as configured by `sentiment_analysis_request_config`.

func (*SentimentAnalysisResult) Descriptor

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

func (*SentimentAnalysisResult) GetQueryTextSentiment

func (m *SentimentAnalysisResult) GetQueryTextSentiment() *Sentiment

func (*SentimentAnalysisResult) ProtoMessage

func (*SentimentAnalysisResult) ProtoMessage()

func (*SentimentAnalysisResult) Reset

func (m *SentimentAnalysisResult) Reset()

func (*SentimentAnalysisResult) String

func (m *SentimentAnalysisResult) String() string

func (*SentimentAnalysisResult) XXX_DiscardUnknown

func (m *SentimentAnalysisResult) XXX_DiscardUnknown()

func (*SentimentAnalysisResult) XXX_Marshal

func (m *SentimentAnalysisResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SentimentAnalysisResult) XXX_Merge

func (m *SentimentAnalysisResult) XXX_Merge(src proto.Message)

func (*SentimentAnalysisResult) XXX_Size

func (m *SentimentAnalysisResult) XXX_Size() int

func (*SentimentAnalysisResult) XXX_Unmarshal

func (m *SentimentAnalysisResult) XXX_Unmarshal(b []byte) error

type SessionEntityType

type SessionEntityType struct {
	// Required. The unique identifier of this session entity type. 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.
	//
	// `<Entity Type Display Name>` must be the display name of an existing entity
	// type in the same agent that will be overridden or supplemented.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. Indicates whether the additional data should override or
	// supplement the custom entity type definition.
	EntityOverrideMode SessionEntityType_EntityOverrideMode `` /* 187-byte string literal not displayed */
	// Required. The collection of entities associated with this session entity
	// type.
	Entities             []*EntityType_Entity `protobuf:"bytes,3,rep,name=entities,proto3" json:"entities,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Represents a session entity type.

Extends or replaces a custom entity type at the user session level (we refer to the entity types defined at the agent level as "custom entity types").

Note: session entity types apply to all queries, regardless of the language.

func (*SessionEntityType) Descriptor

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

func (*SessionEntityType) GetEntities

func (m *SessionEntityType) GetEntities() []*EntityType_Entity

func (*SessionEntityType) GetEntityOverrideMode

func (m *SessionEntityType) GetEntityOverrideMode() SessionEntityType_EntityOverrideMode

func (*SessionEntityType) GetName

func (m *SessionEntityType) GetName() string

func (*SessionEntityType) ProtoMessage

func (*SessionEntityType) ProtoMessage()

func (*SessionEntityType) Reset

func (m *SessionEntityType) Reset()

func (*SessionEntityType) String

func (m *SessionEntityType) String() string

func (*SessionEntityType) XXX_DiscardUnknown

func (m *SessionEntityType) XXX_DiscardUnknown()

func (*SessionEntityType) XXX_Marshal

func (m *SessionEntityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionEntityType) XXX_Merge

func (m *SessionEntityType) XXX_Merge(src proto.Message)

func (*SessionEntityType) XXX_Size

func (m *SessionEntityType) XXX_Size() int

func (*SessionEntityType) XXX_Unmarshal

func (m *SessionEntityType) XXX_Unmarshal(b []byte) error

type SessionEntityType_EntityOverrideMode

type SessionEntityType_EntityOverrideMode int32

The types of modifications for a session entity type.

const (
	// Not specified. This value should be never used.
	SessionEntityType_ENTITY_OVERRIDE_MODE_UNSPECIFIED SessionEntityType_EntityOverrideMode = 0
	// The collection of session entities overrides the collection of entities
	// in the corresponding custom entity type.
	SessionEntityType_ENTITY_OVERRIDE_MODE_OVERRIDE SessionEntityType_EntityOverrideMode = 1
	// The collection of session entities extends the collection of entities in
	// the corresponding custom entity type.
	//
	// Note: Even in this override mode calls to `ListSessionEntityTypes`,
	// `GetSessionEntityType`, `CreateSessionEntityType` and
	// `UpdateSessionEntityType` only return the additional entities added in
	// this session entity type. If you want to get the supplemented list,
	// please call [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType] on the custom entity type
	// and merge.
	SessionEntityType_ENTITY_OVERRIDE_MODE_SUPPLEMENT SessionEntityType_EntityOverrideMode = 2
)

func (SessionEntityType_EntityOverrideMode) EnumDescriptor

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

func (SessionEntityType_EntityOverrideMode) String

type SessionEntityTypesClient

type SessionEntityTypesClient interface {
	// Returns the list of all session entity types in the specified session.
	//
	// This method doesn't work with Google Assistant integration.
	// Contact Dialogflow support if you need to use session entities
	// with Google Assistant integration.
	ListSessionEntityTypes(ctx context.Context, in *ListSessionEntityTypesRequest, opts ...grpc.CallOption) (*ListSessionEntityTypesResponse, error)
	// Retrieves the specified session entity type.
	//
	// This method doesn't work with Google Assistant integration.
	// Contact Dialogflow support if you need to use session entities
	// with Google Assistant integration.
	GetSessionEntityType(ctx context.Context, in *GetSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
	// Creates a session entity type.
	//
	// If the specified session entity type already exists, overrides the session
	// entity type.
	//
	// This method doesn't work with Google Assistant integration.
	// Contact Dialogflow support if you need to use session entities
	// with Google Assistant integration.
	CreateSessionEntityType(ctx context.Context, in *CreateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
	// Updates the specified session entity type.
	//
	// This method doesn't work with Google Assistant integration.
	// Contact Dialogflow support if you need to use session entities
	// with Google Assistant integration.
	UpdateSessionEntityType(ctx context.Context, in *UpdateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
	// Deletes the specified session entity type.
	//
	// This method doesn't work with Google Assistant integration.
	// Contact Dialogflow support if you need to use session entities
	// with Google Assistant integration.
	DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

SessionEntityTypesClient is the client API for SessionEntityTypes service.

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

type SessionEntityTypesServer

type SessionEntityTypesServer interface {
	// Returns the list of all session entity types in the specified session.
	//
	// This method doesn't work with Google Assistant integration.
	// Contact Dialogflow support if you need to use session entities
	// with Google Assistant integration.
	ListSessionEntityTypes(context.Context, *ListSessionEntityTypesRequest) (*ListSessionEntityTypesResponse, error)
	// Retrieves the specified session entity type.
	//
	// This method doesn't work with Google Assistant integration.
	// Contact Dialogflow support if you need to use session entities
	// with Google Assistant integration.
	GetSessionEntityType(context.Context, *GetSessionEntityTypeRequest) (*SessionEntityType, error)
	// Creates a session entity type.
	//
	// If the specified session entity type already exists, overrides the session
	// entity type.
	//
	// This method doesn't work with Google Assistant integration.
	// Contact Dialogflow support if you need to use session entities
	// with Google Assistant integration.
	CreateSessionEntityType(context.Context, *CreateSessionEntityTypeRequest) (*SessionEntityType, error)
	// Updates the specified session entity type.
	//
	// This method doesn't work with Google Assistant integration.
	// Contact Dialogflow support if you need to use session entities
	// with Google Assistant integration.
	UpdateSessionEntityType(context.Context, *UpdateSessionEntityTypeRequest) (*SessionEntityType, error)
	// Deletes the specified session entity type.
	//
	// This method doesn't work with Google Assistant integration.
	// Contact Dialogflow support if you need to use session entities
	// with Google Assistant integration.
	DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*empty.Empty, error)
}

SessionEntityTypesServer is the server API for SessionEntityTypes service.

type SessionsClient

type SessionsClient interface {
	// Processes a natural language query and returns structured, actionable data
	// as a result. This method is not idempotent, because it may cause contexts
	// and session entity types to be updated, which in turn might affect
	// results of future queries.
	DetectIntent(ctx context.Context, in *DetectIntentRequest, opts ...grpc.CallOption) (*DetectIntentResponse, error)
	// Processes a natural language query in audio format in a streaming fashion
	// and returns structured, actionable data as a result. This method is only
	// available via the gRPC API (not REST).
	StreamingDetectIntent(ctx context.Context, opts ...grpc.CallOption) (Sessions_StreamingDetectIntentClient, error)
}

SessionsClient is the client API for Sessions service.

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

func NewSessionsClient

func NewSessionsClient(cc grpc.ClientConnInterface) SessionsClient

type SessionsServer

type SessionsServer interface {
	// Processes a natural language query and returns structured, actionable data
	// as a result. This method is not idempotent, because it may cause contexts
	// and session entity types to be updated, which in turn might affect
	// results of future queries.
	DetectIntent(context.Context, *DetectIntentRequest) (*DetectIntentResponse, error)
	// Processes a natural language query in audio format in a streaming fashion
	// and returns structured, actionable data as a result. This method is only
	// available via the gRPC API (not REST).
	StreamingDetectIntent(Sessions_StreamingDetectIntentServer) error
}

SessionsServer is the server API for Sessions service.

type Sessions_StreamingDetectIntentClient

type Sessions_StreamingDetectIntentClient interface {
	Send(*StreamingDetectIntentRequest) error
	Recv() (*StreamingDetectIntentResponse, error)
	grpc.ClientStream
}

type Sessions_StreamingDetectIntentServer

type Sessions_StreamingDetectIntentServer interface {
	Send(*StreamingDetectIntentResponse) error
	Recv() (*StreamingDetectIntentRequest, error)
	grpc.ServerStream
}

type SetAgentRequest

type SetAgentRequest struct {
	// Required. The agent to update.
	Agent *Agent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
	// Optional. The mask to control which fields get updated.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

The request message for [Agents.SetAgent][google.cloud.dialogflow.v2.Agents.SetAgent].

func (*SetAgentRequest) Descriptor

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

func (*SetAgentRequest) GetAgent

func (m *SetAgentRequest) GetAgent() *Agent

func (*SetAgentRequest) GetUpdateMask

func (m *SetAgentRequest) GetUpdateMask() *field_mask.FieldMask

func (*SetAgentRequest) ProtoMessage

func (*SetAgentRequest) ProtoMessage()

func (*SetAgentRequest) Reset

func (m *SetAgentRequest) Reset()

func (*SetAgentRequest) String

func (m *SetAgentRequest) String() string

func (*SetAgentRequest) XXX_DiscardUnknown

func (m *SetAgentRequest) XXX_DiscardUnknown()

func (*SetAgentRequest) XXX_Marshal

func (m *SetAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetAgentRequest) XXX_Merge

func (m *SetAgentRequest) XXX_Merge(src proto.Message)

func (*SetAgentRequest) XXX_Size

func (m *SetAgentRequest) XXX_Size() int

func (*SetAgentRequest) XXX_Unmarshal

func (m *SetAgentRequest) XXX_Unmarshal(b []byte) error

type SpeechContext

type SpeechContext struct {
	// Optional. A list of strings containing words and phrases that the speech
	// recognizer should recognize with higher likelihood.
	//
	// This list can be used to:
	// * improve accuracy for words and phrases you expect the user to say,
	//   e.g. typical commands for your Dialogflow agent
	// * add additional words to the speech recognizer vocabulary
	// * ...
	//
	// See the [Cloud Speech
	// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
	// limits.
	Phrases []string `protobuf:"bytes,1,rep,name=phrases,proto3" json:"phrases,omitempty"`
	// Optional. Boost for this context compared to other contexts:
	//
	// * If the boost is positive, Dialogflow will increase the probability that
	//   the phrases in this context are recognized over similar sounding phrases.
	// * If the boost is unspecified or non-positive, Dialogflow will not apply
	//   any boost.
	//
	// Dialogflow recommends that you use boosts in the range (0, 20] and that you
	// find a value that fits your use case with binary search.
	Boost                float32  `protobuf:"fixed32,2,opt,name=boost,proto3" json:"boost,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Hints for the speech recognizer to help with recognition in a specific conversation state.

func (*SpeechContext) Descriptor

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

func (*SpeechContext) GetBoost

func (m *SpeechContext) GetBoost() float32

func (*SpeechContext) GetPhrases

func (m *SpeechContext) GetPhrases() []string

func (*SpeechContext) ProtoMessage

func (*SpeechContext) ProtoMessage()

func (*SpeechContext) Reset

func (m *SpeechContext) Reset()

func (*SpeechContext) String

func (m *SpeechContext) String() string

func (*SpeechContext) XXX_DiscardUnknown

func (m *SpeechContext) XXX_DiscardUnknown()

func (*SpeechContext) XXX_Marshal

func (m *SpeechContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SpeechContext) XXX_Merge

func (m *SpeechContext) XXX_Merge(src proto.Message)

func (*SpeechContext) XXX_Size

func (m *SpeechContext) XXX_Size() int

func (*SpeechContext) XXX_Unmarshal

func (m *SpeechContext) XXX_Unmarshal(b []byte) error

type SpeechModelVariant

type SpeechModelVariant int32

Variant of the specified [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.

See the [Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) for which models have different variants. For example, the "phone_call" model has both a standard and an enhanced variant. When you use an enhanced model, you will generally receive higher quality results than for a standard model.

const (
	// No model variant specified. In this case Dialogflow defaults to
	// USE_BEST_AVAILABLE.
	SpeechModelVariant_SPEECH_MODEL_VARIANT_UNSPECIFIED SpeechModelVariant = 0
	// Use the best available variant of the [Speech
	// model][InputAudioConfig.model] that the caller is eligible for.
	//
	// Please see the [Dialogflow
	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for
	// how to make your project eligible for enhanced models.
	SpeechModelVariant_USE_BEST_AVAILABLE SpeechModelVariant = 1
	// Use standard model variant even if an enhanced model is available.  See the
	// [Cloud Speech
	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
	// for details about enhanced models.
	SpeechModelVariant_USE_STANDARD SpeechModelVariant = 2
	// Use an enhanced model variant:
	//
	// * If an enhanced variant does not exist for the given
	//   [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request language, Dialogflow falls
	//   back to the standard variant.
	//
	//   The [Cloud Speech
	//   documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
	//   describes which models have enhanced variants.
	//
	// * If the API caller isn't eligible for enhanced models, Dialogflow returns
	//   an error. Please see the [Dialogflow
	//   docs](https://cloud.google.com/dialogflow/docs/data-logging)
	//   for how to make your project eligible.
	SpeechModelVariant_USE_ENHANCED SpeechModelVariant = 3
)

func (SpeechModelVariant) EnumDescriptor

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

func (SpeechModelVariant) String

func (x SpeechModelVariant) String() string

type SpeechWordInfo

type SpeechWordInfo struct {
	// The word this info is for.
	Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"`
	// Time offset relative to the beginning of the audio that corresponds to the
	// start of the spoken word. This is an experimental feature and the accuracy
	// of the time offset can vary.
	StartOffset *duration.Duration `protobuf:"bytes,1,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"`
	// Time offset relative to the beginning of the audio that corresponds to the
	// end of the spoken word. This is an experimental feature and the accuracy of
	// the time offset can vary.
	EndOffset *duration.Duration `protobuf:"bytes,2,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"`
	// The Speech confidence between 0.0 and 1.0 for this word. A higher number
	// indicates an estimated greater likelihood that the recognized word is
	// correct. The default of 0.0 is a sentinel value indicating that confidence
	// was not set.
	//
	// This field is not guaranteed to be fully stable over time for the same
	// audio input. Users should also not rely on it to always be provided.
	Confidence           float32  `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Information for a word recognized by the speech recognizer.

func (*SpeechWordInfo) Descriptor

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

func (*SpeechWordInfo) GetConfidence

func (m *SpeechWordInfo) GetConfidence() float32

func (*SpeechWordInfo) GetEndOffset

func (m *SpeechWordInfo) GetEndOffset() *duration.Duration

func (*SpeechWordInfo) GetStartOffset

func (m *SpeechWordInfo) GetStartOffset() *duration.Duration

func (*SpeechWordInfo) GetWord

func (m *SpeechWordInfo) GetWord() string

func (*SpeechWordInfo) ProtoMessage

func (*SpeechWordInfo) ProtoMessage()

func (*SpeechWordInfo) Reset

func (m *SpeechWordInfo) Reset()

func (*SpeechWordInfo) String

func (m *SpeechWordInfo) String() string

func (*SpeechWordInfo) XXX_DiscardUnknown

func (m *SpeechWordInfo) XXX_DiscardUnknown()

func (*SpeechWordInfo) XXX_Marshal

func (m *SpeechWordInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SpeechWordInfo) XXX_Merge

func (m *SpeechWordInfo) XXX_Merge(src proto.Message)

func (*SpeechWordInfo) XXX_Size

func (m *SpeechWordInfo) XXX_Size() int

func (*SpeechWordInfo) XXX_Unmarshal

func (m *SpeechWordInfo) XXX_Unmarshal(b []byte) error

type SsmlVoiceGender

type SsmlVoiceGender int32

Gender of the voice as described in [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).

const (
	// An unspecified gender, which means that the client doesn't care which
	// gender the selected voice will have.
	SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED SsmlVoiceGender = 0
	// A male voice.
	SsmlVoiceGender_SSML_VOICE_GENDER_MALE SsmlVoiceGender = 1
	// A female voice.
	SsmlVoiceGender_SSML_VOICE_GENDER_FEMALE SsmlVoiceGender = 2
	// A gender-neutral voice.
	SsmlVoiceGender_SSML_VOICE_GENDER_NEUTRAL SsmlVoiceGender = 3
)

func (SsmlVoiceGender) EnumDescriptor

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

func (SsmlVoiceGender) String

func (x SsmlVoiceGender) String() string

type StreamingDetectIntentRequest

type StreamingDetectIntentRequest struct {
	// Required. The name of the session the query is sent to.
	// Format of the session name:
	// `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.
	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"`
	// Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead.
	// 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.
	// This setting is ignored when `query_input` is a piece of text or an event.
	SingleUtterance bool `protobuf:"varint,4,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"` // Deprecated: Do not use.
	// 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,5,opt,name=output_audio_config,json=outputAudioConfig,proto3" json:"output_audio_config,omitempty"`
	// Mask for [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.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.StreamingDetectIntentRequest.output_audio_config] replaces the agent-level
	// config in its entirety.
	OutputAudioConfigMask *field_mask.FieldMask `` /* 128-byte string literal not displayed */
	// The input audio content to be recognized. Must be sent if
	// `query_input` was set to a streaming input audio config. The complete audio
	// over all streaming messages must not exceed 1 minute.
	InputAudio           []byte   `protobuf:"bytes,6,opt,name=input_audio,json=inputAudio,proto3" json:"input_audio,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The top-level message sent by the client to the [Sessions.StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent] method.

Multiple request messages should be sent in order:

1. The first message must contain [session][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.session],

[query_input][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_input] plus optionally
[query_params][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_params]. If the client
wants to receive an audio response, it should also contain
[output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config].
The message must not contain
[input_audio][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.input_audio].
  1. If [query_input][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_input] was set to [query_input.audio_config][google.cloud.dialogflow.v2.InputAudioConfig], all subsequent messages must contain [input_audio][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.input_audio] to continue with Speech recognition. If you decide to rather detect an intent from text input after you already started Speech recognition, please send a message with [query_input.text][google.cloud.dialogflow.v2.QueryInput.text].

    However, note that:

    * Dialogflow will bill you for the audio duration so far. * Dialogflow discards all Speech recognition results in favor of the input text. * Dialogflow will use the language code from the first message.

After you sent all input, you must half-close or abort the request stream.

func (*StreamingDetectIntentRequest) Descriptor

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

func (*StreamingDetectIntentRequest) GetInputAudio

func (m *StreamingDetectIntentRequest) GetInputAudio() []byte

func (*StreamingDetectIntentRequest) GetOutputAudioConfig

func (m *StreamingDetectIntentRequest) GetOutputAudioConfig() *OutputAudioConfig

func (*StreamingDetectIntentRequest) GetOutputAudioConfigMask

func (m *StreamingDetectIntentRequest) GetOutputAudioConfigMask() *field_mask.FieldMask

func (*StreamingDetectIntentRequest) GetQueryInput

func (m *StreamingDetectIntentRequest) GetQueryInput() *QueryInput

func (*StreamingDetectIntentRequest) GetQueryParams

func (m *StreamingDetectIntentRequest) GetQueryParams() *QueryParameters

func (*StreamingDetectIntentRequest) GetSession

func (m *StreamingDetectIntentRequest) GetSession() string

func (*StreamingDetectIntentRequest) GetSingleUtterance deprecated

func (m *StreamingDetectIntentRequest) GetSingleUtterance() bool

Deprecated: Do not use.

func (*StreamingDetectIntentRequest) ProtoMessage

func (*StreamingDetectIntentRequest) ProtoMessage()

func (*StreamingDetectIntentRequest) Reset

func (m *StreamingDetectIntentRequest) Reset()

func (*StreamingDetectIntentRequest) String

func (*StreamingDetectIntentRequest) XXX_DiscardUnknown

func (m *StreamingDetectIntentRequest) XXX_DiscardUnknown()

func (*StreamingDetectIntentRequest) XXX_Marshal

func (m *StreamingDetectIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamingDetectIntentRequest) XXX_Merge

func (m *StreamingDetectIntentRequest) XXX_Merge(src proto.Message)

func (*StreamingDetectIntentRequest) XXX_Size

func (m *StreamingDetectIntentRequest) XXX_Size() int

func (*StreamingDetectIntentRequest) XXX_Unmarshal

func (m *StreamingDetectIntentRequest) XXX_Unmarshal(b []byte) error

type StreamingDetectIntentResponse

type StreamingDetectIntentResponse 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 result of speech recognition.
	RecognitionResult *StreamingRecognitionResult `protobuf:"bytes,2,opt,name=recognition_result,json=recognitionResult,proto3" json:"recognition_result,omitempty"`
	// The result of the conversational query or event processing.
	QueryResult *QueryResult `protobuf:"bytes,3,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
	// Specifies the status of the webhook request.
	WebhookStatus *status.Status `protobuf:"bytes,4,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.
	OutputAudio []byte `protobuf:"bytes,5,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"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

The top-level message returned from the `StreamingDetectIntent` method.

Multiple response messages can be returned in order:

  1. If the input was set to streaming audio, the first one or more messages contain `recognition_result`. Each `recognition_result` represents a more complete transcript of what the user said. The last `recognition_result` has `is_final` set to `true`.
  1. The next message contains `response_id`, `query_result` and optionally `webhook_status` if a WebHook was called.

func (*StreamingDetectIntentResponse) Descriptor

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

func (*StreamingDetectIntentResponse) GetOutputAudio

func (m *StreamingDetectIntentResponse) GetOutputAudio() []byte

func (*StreamingDetectIntentResponse) GetOutputAudioConfig

func (m *StreamingDetectIntentResponse) GetOutputAudioConfig() *OutputAudioConfig

func (*StreamingDetectIntentResponse) GetQueryResult

func (m *StreamingDetectIntentResponse) GetQueryResult() *QueryResult

func (*StreamingDetectIntentResponse) GetRecognitionResult

func (m *StreamingDetectIntentResponse) GetRecognitionResult() *StreamingRecognitionResult

func (*StreamingDetectIntentResponse) GetResponseId

func (m *StreamingDetectIntentResponse) GetResponseId() string

func (*StreamingDetectIntentResponse) GetWebhookStatus

func (m *StreamingDetectIntentResponse) GetWebhookStatus() *status.Status

func (*StreamingDetectIntentResponse) ProtoMessage

func (*StreamingDetectIntentResponse) ProtoMessage()

func (*StreamingDetectIntentResponse) Reset

func (m *StreamingDetectIntentResponse) Reset()

func (*StreamingDetectIntentResponse) String

func (*StreamingDetectIntentResponse) XXX_DiscardUnknown

func (m *StreamingDetectIntentResponse) XXX_DiscardUnknown()

func (*StreamingDetectIntentResponse) XXX_Marshal

func (m *StreamingDetectIntentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamingDetectIntentResponse) XXX_Merge

func (m *StreamingDetectIntentResponse) XXX_Merge(src proto.Message)

func (*StreamingDetectIntentResponse) XXX_Size

func (m *StreamingDetectIntentResponse) XXX_Size() int

func (*StreamingDetectIntentResponse) XXX_Unmarshal

func (m *StreamingDetectIntentResponse) XXX_Unmarshal(b []byte) error

type StreamingRecognitionResult

type StreamingRecognitionResult struct {
	// Type of the result message.
	MessageType StreamingRecognitionResult_MessageType `` /* 166-byte string literal not displayed */
	// Transcript text representing the words that the user spoke.
	// Populated if and only if `message_type` = `TRANSCRIPT`.
	Transcript string `protobuf:"bytes,2,opt,name=transcript,proto3" json:"transcript,omitempty"`
	// If `false`, the `StreamingRecognitionResult` represents an
	// interim result that may change. If `true`, the recognizer will not return
	// any further hypotheses about this piece of the audio. May only be populated
	// for `message_type` = `TRANSCRIPT`.
	IsFinal bool `protobuf:"varint,3,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
	// The Speech confidence between 0.0 and 1.0 for the current portion of audio.
	// A higher number indicates an estimated greater likelihood that the
	// recognized words are correct. The default of 0.0 is a sentinel value
	// indicating that confidence was not set.
	//
	// This field is typically only provided if `is_final` is true and you should
	// not rely on it being accurate or even set.
	Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
	// Word-specific information for the words recognized by Speech in
	// [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
	// [InputAudioConfig.enable_word_info] is set.
	SpeechWordInfo []*SpeechWordInfo `protobuf:"bytes,7,rep,name=speech_word_info,json=speechWordInfo,proto3" json:"speech_word_info,omitempty"`
	// Time offset of the end of this Speech recognition result relative to the
	// beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
	SpeechEndOffset      *duration.Duration `protobuf:"bytes,8,opt,name=speech_end_offset,json=speechEndOffset,proto3" json:"speech_end_offset,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Contains a speech recognition result corresponding to a portion of the audio that is currently being processed or an indication that this is the end of the single requested utterance.

Example:

1. transcript: "tube"

2. transcript: "to be a"

3. transcript: "to be"

  1. transcript: "to be or not to be" is_final: true

5. transcript: " that's"

6. transcript: " that is"

7. message_type: `END_OF_SINGLE_UTTERANCE`

  1. transcript: " that is the question" is_final: true

Only two of the responses contain final results (#4 and #8 indicated by `is_final: true`). Concatenating these generates the full transcript: "to be or not to be that is the question".

In each response we populate:

* for `TRANSCRIPT`: `transcript` and possibly `is_final`.

* for `END_OF_SINGLE_UTTERANCE`: only `message_type`.

func (*StreamingRecognitionResult) Descriptor

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

func (*StreamingRecognitionResult) GetConfidence

func (m *StreamingRecognitionResult) GetConfidence() float32

func (*StreamingRecognitionResult) GetIsFinal

func (m *StreamingRecognitionResult) GetIsFinal() bool

func (*StreamingRecognitionResult) GetMessageType

func (*StreamingRecognitionResult) GetSpeechEndOffset

func (m *StreamingRecognitionResult) GetSpeechEndOffset() *duration.Duration

func (*StreamingRecognitionResult) GetSpeechWordInfo

func (m *StreamingRecognitionResult) GetSpeechWordInfo() []*SpeechWordInfo

func (*StreamingRecognitionResult) GetTranscript

func (m *StreamingRecognitionResult) GetTranscript() string

func (*StreamingRecognitionResult) ProtoMessage

func (*StreamingRecognitionResult) ProtoMessage()

func (*StreamingRecognitionResult) Reset

func (m *StreamingRecognitionResult) Reset()

func (*StreamingRecognitionResult) String

func (m *StreamingRecognitionResult) String() string

func (*StreamingRecognitionResult) XXX_DiscardUnknown

func (m *StreamingRecognitionResult) XXX_DiscardUnknown()

func (*StreamingRecognitionResult) XXX_Marshal

func (m *StreamingRecognitionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamingRecognitionResult) XXX_Merge

func (m *StreamingRecognitionResult) XXX_Merge(src proto.Message)

func (*StreamingRecognitionResult) XXX_Size

func (m *StreamingRecognitionResult) XXX_Size() int

func (*StreamingRecognitionResult) XXX_Unmarshal

func (m *StreamingRecognitionResult) XXX_Unmarshal(b []byte) error

type StreamingRecognitionResult_MessageType

type StreamingRecognitionResult_MessageType int32

Type of the response message.

const (
	// Not specified. Should never be used.
	StreamingRecognitionResult_MESSAGE_TYPE_UNSPECIFIED StreamingRecognitionResult_MessageType = 0
	// Message contains a (possibly partial) transcript.
	StreamingRecognitionResult_TRANSCRIPT StreamingRecognitionResult_MessageType = 1
	// Event indicates that the server has detected the end of the user's speech
	// utterance and expects no additional inputs.
	// Therefore, the server will not process additional audio (although it may subsequently return additional results). The
	// client should stop sending additional audio data, half-close the gRPC
	// connection, and wait for any additional results until the server closes
	// the gRPC connection. This message is only sent if `single_utterance` was
	// set to `true`, and is not used otherwise.
	StreamingRecognitionResult_END_OF_SINGLE_UTTERANCE StreamingRecognitionResult_MessageType = 2
)

func (StreamingRecognitionResult_MessageType) EnumDescriptor

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

func (StreamingRecognitionResult_MessageType) String

type SynthesizeSpeechConfig

type SynthesizeSpeechConfig struct {
	// Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
	// native speed supported by the specific voice. 2.0 is twice as fast, and
	// 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
	// other values < 0.25 or > 4.0 will return an error.
	SpeakingRate float64 `protobuf:"fixed64,1,opt,name=speaking_rate,json=speakingRate,proto3" json:"speaking_rate,omitempty"`
	// Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
	// semitones from the original pitch. -20 means decrease 20 semitones from the
	// original pitch.
	Pitch float64 `protobuf:"fixed64,2,opt,name=pitch,proto3" json:"pitch,omitempty"`
	// Optional. Volume gain (in dB) of the normal native volume supported by the
	// specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
	// 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
	// will play at approximately half the amplitude of the normal native signal
	// amplitude. A value of +6.0 (dB) will play at approximately twice the
	// amplitude of the normal native signal amplitude. We strongly recommend not
	// to exceed +10 (dB) as there's usually no effective increase in loudness for
	// any value greater than that.
	VolumeGainDb float64 `protobuf:"fixed64,3,opt,name=volume_gain_db,json=volumeGainDb,proto3" json:"volume_gain_db,omitempty"`
	// Optional. An identifier which selects 'audio effects' profiles that are
	// applied on (post synthesized) text to speech. Effects are applied on top of
	// each other in the order they are given.
	EffectsProfileId []string `protobuf:"bytes,5,rep,name=effects_profile_id,json=effectsProfileId,proto3" json:"effects_profile_id,omitempty"`
	// Optional. The desired voice of the synthesized audio.
	Voice                *VoiceSelectionParams `protobuf:"bytes,4,opt,name=voice,proto3" json:"voice,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Configuration of how speech should be synthesized.

func (*SynthesizeSpeechConfig) Descriptor

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

func (*SynthesizeSpeechConfig) GetEffectsProfileId

func (m *SynthesizeSpeechConfig) GetEffectsProfileId() []string

func (*SynthesizeSpeechConfig) GetPitch

func (m *SynthesizeSpeechConfig) GetPitch() float64

func (*SynthesizeSpeechConfig) GetSpeakingRate

func (m *SynthesizeSpeechConfig) GetSpeakingRate() float64

func (*SynthesizeSpeechConfig) GetVoice

func (*SynthesizeSpeechConfig) GetVolumeGainDb

func (m *SynthesizeSpeechConfig) GetVolumeGainDb() float64

func (*SynthesizeSpeechConfig) ProtoMessage

func (*SynthesizeSpeechConfig) ProtoMessage()

func (*SynthesizeSpeechConfig) Reset

func (m *SynthesizeSpeechConfig) Reset()

func (*SynthesizeSpeechConfig) String

func (m *SynthesizeSpeechConfig) String() string

func (*SynthesizeSpeechConfig) XXX_DiscardUnknown

func (m *SynthesizeSpeechConfig) XXX_DiscardUnknown()

func (*SynthesizeSpeechConfig) XXX_Marshal

func (m *SynthesizeSpeechConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SynthesizeSpeechConfig) XXX_Merge

func (m *SynthesizeSpeechConfig) XXX_Merge(src proto.Message)

func (*SynthesizeSpeechConfig) XXX_Size

func (m *SynthesizeSpeechConfig) XXX_Size() int

func (*SynthesizeSpeechConfig) XXX_Unmarshal

func (m *SynthesizeSpeechConfig) XXX_Unmarshal(b []byte) error

type TextInput

type TextInput struct {
	// Required. The UTF-8 encoded natural language text to be processed.
	// Text length must not exceed 256 characters.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// 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. Note that queries in
	// the same session do not necessarily need to specify the same language.
	LanguageCode         string   `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents the natural language text to be processed.

func (*TextInput) Descriptor

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

func (*TextInput) GetLanguageCode

func (m *TextInput) GetLanguageCode() string

func (*TextInput) GetText

func (m *TextInput) GetText() string

func (*TextInput) ProtoMessage

func (*TextInput) ProtoMessage()

func (*TextInput) Reset

func (m *TextInput) Reset()

func (*TextInput) String

func (m *TextInput) String() string

func (*TextInput) XXX_DiscardUnknown

func (m *TextInput) XXX_DiscardUnknown()

func (*TextInput) XXX_Marshal

func (m *TextInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TextInput) XXX_Merge

func (m *TextInput) XXX_Merge(src proto.Message)

func (*TextInput) XXX_Size

func (m *TextInput) XXX_Size() int

func (*TextInput) XXX_Unmarshal

func (m *TextInput) XXX_Unmarshal(b []byte) error

type TrainAgentRequest

type TrainAgentRequest struct {
	// Required. The project that the agent to train is associated with.
	// Format: `projects/<Project ID>`.
	Parent               string   `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].

func (*TrainAgentRequest) Descriptor

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

func (*TrainAgentRequest) GetParent

func (m *TrainAgentRequest) GetParent() string

func (*TrainAgentRequest) ProtoMessage

func (*TrainAgentRequest) ProtoMessage()

func (*TrainAgentRequest) Reset

func (m *TrainAgentRequest) Reset()

func (*TrainAgentRequest) String

func (m *TrainAgentRequest) String() string

func (*TrainAgentRequest) XXX_DiscardUnknown

func (m *TrainAgentRequest) XXX_DiscardUnknown()

func (*TrainAgentRequest) XXX_Marshal

func (m *TrainAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrainAgentRequest) XXX_Merge

func (m *TrainAgentRequest) XXX_Merge(src proto.Message)

func (*TrainAgentRequest) XXX_Size

func (m *TrainAgentRequest) XXX_Size() int

func (*TrainAgentRequest) XXX_Unmarshal

func (m *TrainAgentRequest) XXX_Unmarshal(b []byte) error

type UnimplementedAgentsServer

type UnimplementedAgentsServer struct {
}

UnimplementedAgentsServer can be embedded to have forward compatible implementations.

func (*UnimplementedAgentsServer) DeleteAgent

func (*UnimplementedAgentsServer) ExportAgent

func (*UnimplementedAgentsServer) GetAgent

func (*UnimplementedAgentsServer) GetValidationResult

func (*UnimplementedAgentsServer) ImportAgent

func (*UnimplementedAgentsServer) RestoreAgent

func (*UnimplementedAgentsServer) SearchAgents

func (*UnimplementedAgentsServer) SetAgent

func (*UnimplementedAgentsServer) TrainAgent

type UnimplementedContextsServer

type UnimplementedContextsServer struct {
}

UnimplementedContextsServer can be embedded to have forward compatible implementations.

func (*UnimplementedContextsServer) CreateContext

func (*UnimplementedContextsServer) DeleteAllContexts

func (*UnimplementedContextsServer) DeleteContext

func (*UnimplementedContextsServer) GetContext

func (*UnimplementedContextsServer) ListContexts

func (*UnimplementedContextsServer) UpdateContext

type UnimplementedEntityTypesServer

type UnimplementedEntityTypesServer struct {
}

UnimplementedEntityTypesServer can be embedded to have forward compatible implementations.

func (*UnimplementedEntityTypesServer) BatchCreateEntities

func (*UnimplementedEntityTypesServer) BatchDeleteEntities

func (*UnimplementedEntityTypesServer) BatchDeleteEntityTypes

func (*UnimplementedEntityTypesServer) BatchUpdateEntities

func (*UnimplementedEntityTypesServer) BatchUpdateEntityTypes

func (*UnimplementedEntityTypesServer) CreateEntityType

func (*UnimplementedEntityTypesServer) DeleteEntityType

func (*UnimplementedEntityTypesServer) GetEntityType

func (*UnimplementedEntityTypesServer) ListEntityTypes

func (*UnimplementedEntityTypesServer) UpdateEntityType

type UnimplementedEnvironmentsServer

type UnimplementedEnvironmentsServer struct {
}

UnimplementedEnvironmentsServer can be embedded to have forward compatible implementations.

func (*UnimplementedEnvironmentsServer) ListEnvironments

type UnimplementedIntentsServer

type UnimplementedIntentsServer struct {
}

UnimplementedIntentsServer can be embedded to have forward compatible implementations.

func (*UnimplementedIntentsServer) BatchDeleteIntents

func (*UnimplementedIntentsServer) BatchUpdateIntents

func (*UnimplementedIntentsServer) CreateIntent

func (*UnimplementedIntentsServer) DeleteIntent

func (*UnimplementedIntentsServer) GetIntent

func (*UnimplementedIntentsServer) ListIntents

func (*UnimplementedIntentsServer) UpdateIntent

type UnimplementedSessionEntityTypesServer

type UnimplementedSessionEntityTypesServer struct {
}

UnimplementedSessionEntityTypesServer can be embedded to have forward compatible implementations.

func (*UnimplementedSessionEntityTypesServer) CreateSessionEntityType

func (*UnimplementedSessionEntityTypesServer) DeleteSessionEntityType

func (*UnimplementedSessionEntityTypesServer) GetSessionEntityType

func (*UnimplementedSessionEntityTypesServer) ListSessionEntityTypes

func (*UnimplementedSessionEntityTypesServer) UpdateSessionEntityType

type UnimplementedSessionsServer

type UnimplementedSessionsServer struct {
}

UnimplementedSessionsServer can be embedded to have forward compatible implementations.

func (*UnimplementedSessionsServer) DetectIntent

func (*UnimplementedSessionsServer) StreamingDetectIntent

type UpdateContextRequest

type UpdateContextRequest struct {
	// Required. The context to update.
	Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// Optional. The mask to control which fields get updated.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext].

func (*UpdateContextRequest) Descriptor

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

func (*UpdateContextRequest) GetContext

func (m *UpdateContextRequest) GetContext() *Context

func (*UpdateContextRequest) GetUpdateMask

func (m *UpdateContextRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateContextRequest) ProtoMessage

func (*UpdateContextRequest) ProtoMessage()

func (*UpdateContextRequest) Reset

func (m *UpdateContextRequest) Reset()

func (*UpdateContextRequest) String

func (m *UpdateContextRequest) String() string

func (*UpdateContextRequest) XXX_DiscardUnknown

func (m *UpdateContextRequest) XXX_DiscardUnknown()

func (*UpdateContextRequest) XXX_Marshal

func (m *UpdateContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateContextRequest) XXX_Merge

func (m *UpdateContextRequest) XXX_Merge(src proto.Message)

func (*UpdateContextRequest) XXX_Size

func (m *UpdateContextRequest) XXX_Size() int

func (*UpdateContextRequest) XXX_Unmarshal

func (m *UpdateContextRequest) XXX_Unmarshal(b []byte) error

type UpdateEntityTypeRequest

type UpdateEntityTypeRequest struct {
	// Required. The entity type to update.
	EntityType *EntityType `protobuf:"bytes,1,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,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Optional. The mask to control which fields get updated.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

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

func (*UpdateEntityTypeRequest) Descriptor

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

func (*UpdateEntityTypeRequest) GetEntityType

func (m *UpdateEntityTypeRequest) GetEntityType() *EntityType

func (*UpdateEntityTypeRequest) GetLanguageCode

func (m *UpdateEntityTypeRequest) GetLanguageCode() string

func (*UpdateEntityTypeRequest) GetUpdateMask

func (m *UpdateEntityTypeRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateEntityTypeRequest) ProtoMessage

func (*UpdateEntityTypeRequest) ProtoMessage()

func (*UpdateEntityTypeRequest) Reset

func (m *UpdateEntityTypeRequest) Reset()

func (*UpdateEntityTypeRequest) String

func (m *UpdateEntityTypeRequest) String() string

func (*UpdateEntityTypeRequest) XXX_DiscardUnknown

func (m *UpdateEntityTypeRequest) XXX_DiscardUnknown()

func (*UpdateEntityTypeRequest) XXX_Marshal

func (m *UpdateEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateEntityTypeRequest) XXX_Merge

func (m *UpdateEntityTypeRequest) XXX_Merge(src proto.Message)

func (*UpdateEntityTypeRequest) XXX_Size

func (m *UpdateEntityTypeRequest) XXX_Size() int

func (*UpdateEntityTypeRequest) XXX_Unmarshal

func (m *UpdateEntityTypeRequest) XXX_Unmarshal(b []byte) error

type UpdateIntentRequest

type UpdateIntentRequest struct {
	// Required. The intent to update.
	Intent *Intent `protobuf:"bytes,1,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,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Optional. The mask to control which fields get updated.
	UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,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 */
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

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

func (*UpdateIntentRequest) Descriptor

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

func (*UpdateIntentRequest) GetIntent

func (m *UpdateIntentRequest) GetIntent() *Intent

func (*UpdateIntentRequest) GetIntentView

func (m *UpdateIntentRequest) GetIntentView() IntentView

func (*UpdateIntentRequest) GetLanguageCode

func (m *UpdateIntentRequest) GetLanguageCode() string

func (*UpdateIntentRequest) GetUpdateMask

func (m *UpdateIntentRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateIntentRequest) ProtoMessage

func (*UpdateIntentRequest) ProtoMessage()

func (*UpdateIntentRequest) Reset

func (m *UpdateIntentRequest) Reset()

func (*UpdateIntentRequest) String

func (m *UpdateIntentRequest) String() string

func (*UpdateIntentRequest) XXX_DiscardUnknown

func (m *UpdateIntentRequest) XXX_DiscardUnknown()

func (*UpdateIntentRequest) XXX_Marshal

func (m *UpdateIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateIntentRequest) XXX_Merge

func (m *UpdateIntentRequest) XXX_Merge(src proto.Message)

func (*UpdateIntentRequest) XXX_Size

func (m *UpdateIntentRequest) XXX_Size() int

func (*UpdateIntentRequest) XXX_Unmarshal

func (m *UpdateIntentRequest) XXX_Unmarshal(b []byte) error

type UpdateSessionEntityTypeRequest

type UpdateSessionEntityTypeRequest struct {
	// Required. The session entity type to update.
	SessionEntityType *SessionEntityType `protobuf:"bytes,1,opt,name=session_entity_type,json=sessionEntityType,proto3" json:"session_entity_type,omitempty"`
	// Optional. The mask to control which fields get updated.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType].

func (*UpdateSessionEntityTypeRequest) Descriptor

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

func (*UpdateSessionEntityTypeRequest) GetSessionEntityType

func (m *UpdateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityType

func (*UpdateSessionEntityTypeRequest) GetUpdateMask

func (*UpdateSessionEntityTypeRequest) ProtoMessage

func (*UpdateSessionEntityTypeRequest) ProtoMessage()

func (*UpdateSessionEntityTypeRequest) Reset

func (m *UpdateSessionEntityTypeRequest) Reset()

func (*UpdateSessionEntityTypeRequest) String

func (*UpdateSessionEntityTypeRequest) XXX_DiscardUnknown

func (m *UpdateSessionEntityTypeRequest) XXX_DiscardUnknown()

func (*UpdateSessionEntityTypeRequest) XXX_Marshal

func (m *UpdateSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateSessionEntityTypeRequest) XXX_Merge

func (m *UpdateSessionEntityTypeRequest) XXX_Merge(src proto.Message)

func (*UpdateSessionEntityTypeRequest) XXX_Size

func (m *UpdateSessionEntityTypeRequest) XXX_Size() int

func (*UpdateSessionEntityTypeRequest) XXX_Unmarshal

func (m *UpdateSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error

type ValidationError

type ValidationError struct {
	// The severity of the error.
	Severity ValidationError_Severity `` /* 127-byte string literal not displayed */
	// The names of the entries that the error is associated with.
	// Format:
	//
	// - "projects/<Project ID>/agent", if the error is associated with the entire
	// agent.
	// - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
	// associated with certain intents.
	// - "projects/<Project
	// ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
	// error is associated with certain intent training phrases.
	// - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
	// ID>", if the error is associated with certain intent parameters.
	// - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
	// associated with certain entities.
	Entries []string `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"`
	// The detailed error messsage.
	ErrorMessage         string   `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents a single validation error.

func (*ValidationError) Descriptor

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

func (*ValidationError) GetEntries

func (m *ValidationError) GetEntries() []string

func (*ValidationError) GetErrorMessage

func (m *ValidationError) GetErrorMessage() string

func (*ValidationError) GetSeverity

func (m *ValidationError) GetSeverity() ValidationError_Severity

func (*ValidationError) ProtoMessage

func (*ValidationError) ProtoMessage()

func (*ValidationError) Reset

func (m *ValidationError) Reset()

func (*ValidationError) String

func (m *ValidationError) String() string

func (*ValidationError) XXX_DiscardUnknown

func (m *ValidationError) XXX_DiscardUnknown()

func (*ValidationError) XXX_Marshal

func (m *ValidationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidationError) XXX_Merge

func (m *ValidationError) XXX_Merge(src proto.Message)

func (*ValidationError) XXX_Size

func (m *ValidationError) XXX_Size() int

func (*ValidationError) XXX_Unmarshal

func (m *ValidationError) XXX_Unmarshal(b []byte) error

type ValidationError_Severity

type ValidationError_Severity int32

Represents a level of severity.

const (
	// Not specified. This value should never be used.
	ValidationError_SEVERITY_UNSPECIFIED ValidationError_Severity = 0
	// The agent doesn't follow Dialogflow best practicies.
	ValidationError_INFO ValidationError_Severity = 1
	// The agent may not behave as expected.
	ValidationError_WARNING ValidationError_Severity = 2
	// The agent may experience partial failures.
	ValidationError_ERROR ValidationError_Severity = 3
	// The agent may completely fail.
	ValidationError_CRITICAL ValidationError_Severity = 4
)

func (ValidationError_Severity) EnumDescriptor

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

func (ValidationError_Severity) String

func (x ValidationError_Severity) String() string

type ValidationResult

type ValidationResult struct {
	// Contains all validation errors.
	ValidationErrors     []*ValidationError `protobuf:"bytes,1,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Represents the output of agent validation.

func (*ValidationResult) Descriptor

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

func (*ValidationResult) GetValidationErrors

func (m *ValidationResult) GetValidationErrors() []*ValidationError

func (*ValidationResult) ProtoMessage

func (*ValidationResult) ProtoMessage()

func (*ValidationResult) Reset

func (m *ValidationResult) Reset()

func (*ValidationResult) String

func (m *ValidationResult) String() string

func (*ValidationResult) XXX_DiscardUnknown

func (m *ValidationResult) XXX_DiscardUnknown()

func (*ValidationResult) XXX_Marshal

func (m *ValidationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidationResult) XXX_Merge

func (m *ValidationResult) XXX_Merge(src proto.Message)

func (*ValidationResult) XXX_Size

func (m *ValidationResult) XXX_Size() int

func (*ValidationResult) XXX_Unmarshal

func (m *ValidationResult) XXX_Unmarshal(b []byte) error

type VoiceSelectionParams

type VoiceSelectionParams struct {
	// Optional. The name of the voice. If not set, the service will choose a
	// voice based on the other parameters such as language_code and
	// [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. The preferred gender of the voice. If not set, the service will
	// choose a voice based on the other parameters such as language_code and
	// [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
	// voice of the appropriate gender is not available, the synthesizer should
	// substitute a voice with a different gender rather than failing the request.
	SsmlGender           SsmlVoiceGender `` /* 140-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Description of which voice to use for speech synthesis.

func (*VoiceSelectionParams) Descriptor

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

func (*VoiceSelectionParams) GetName

func (m *VoiceSelectionParams) GetName() string

func (*VoiceSelectionParams) GetSsmlGender

func (m *VoiceSelectionParams) GetSsmlGender() SsmlVoiceGender

func (*VoiceSelectionParams) ProtoMessage

func (*VoiceSelectionParams) ProtoMessage()

func (*VoiceSelectionParams) Reset

func (m *VoiceSelectionParams) Reset()

func (*VoiceSelectionParams) String

func (m *VoiceSelectionParams) String() string

func (*VoiceSelectionParams) XXX_DiscardUnknown

func (m *VoiceSelectionParams) XXX_DiscardUnknown()

func (*VoiceSelectionParams) XXX_Marshal

func (m *VoiceSelectionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VoiceSelectionParams) XXX_Merge

func (m *VoiceSelectionParams) XXX_Merge(src proto.Message)

func (*VoiceSelectionParams) XXX_Size

func (m *VoiceSelectionParams) XXX_Size() int

func (*VoiceSelectionParams) XXX_Unmarshal

func (m *VoiceSelectionParams) XXX_Unmarshal(b []byte) error

type WebhookRequest

type WebhookRequest struct {
	// The unique identifier of detectIntent request session.
	// Can be used to identify end-user inside webhook implementation.
	// Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
	// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
	// ID>/sessions/<Session ID>`.
	Session string `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"`
	// The unique identifier of the response. Contains the same value as
	// `[Streaming]DetectIntentResponse.response_id`.
	ResponseId string `protobuf:"bytes,1,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"`
	// The result of the conversational query or event processing. Contains the
	// same value as `[Streaming]DetectIntentResponse.query_result`.
	QueryResult *QueryResult `protobuf:"bytes,2,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
	// Optional. The contents of the original request that was passed to
	// `[Streaming]DetectIntent` call.
	OriginalDetectIntentRequest *OriginalDetectIntentRequest `` /* 146-byte string literal not displayed */
	XXX_NoUnkeyedLiteral        struct{}                     `json:"-"`
	XXX_unrecognized            []byte                       `json:"-"`
	XXX_sizecache               int32                        `json:"-"`
}

The request message for a webhook call.

func (*WebhookRequest) Descriptor

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

func (*WebhookRequest) GetOriginalDetectIntentRequest

func (m *WebhookRequest) GetOriginalDetectIntentRequest() *OriginalDetectIntentRequest

func (*WebhookRequest) GetQueryResult

func (m *WebhookRequest) GetQueryResult() *QueryResult

func (*WebhookRequest) GetResponseId

func (m *WebhookRequest) GetResponseId() string

func (*WebhookRequest) GetSession

func (m *WebhookRequest) GetSession() string

func (*WebhookRequest) ProtoMessage

func (*WebhookRequest) ProtoMessage()

func (*WebhookRequest) Reset

func (m *WebhookRequest) Reset()

func (*WebhookRequest) String

func (m *WebhookRequest) String() string

func (*WebhookRequest) XXX_DiscardUnknown

func (m *WebhookRequest) XXX_DiscardUnknown()

func (*WebhookRequest) XXX_Marshal

func (m *WebhookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WebhookRequest) XXX_Merge

func (m *WebhookRequest) XXX_Merge(src proto.Message)

func (*WebhookRequest) XXX_Size

func (m *WebhookRequest) XXX_Size() int

func (*WebhookRequest) XXX_Unmarshal

func (m *WebhookRequest) XXX_Unmarshal(b []byte) error

type WebhookResponse

type WebhookResponse struct {
	// Optional. The text response message intended for the end-user.
	// It is recommended to use `fulfillment_messages.text.text[0]` instead.
	// When provided, Dialogflow uses this field to populate
	// [QueryResult.fulfillment_text][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] sent to the integration or API caller.
	FulfillmentText string `protobuf:"bytes,1,opt,name=fulfillment_text,json=fulfillmentText,proto3" json:"fulfillment_text,omitempty"`
	// Optional. The rich response messages intended for the end-user.
	// When provided, Dialogflow uses this field to populate
	// [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
	FulfillmentMessages []*Intent_Message `protobuf:"bytes,2,rep,name=fulfillment_messages,json=fulfillmentMessages,proto3" json:"fulfillment_messages,omitempty"`
	// Optional. A custom field used to identify the webhook source.
	// Arbitrary strings are supported.
	// When provided, Dialogflow uses this field to populate
	// [QueryResult.webhook_source][google.cloud.dialogflow.v2.QueryResult.webhook_source] sent to the integration or API caller.
	Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// Optional. This field can be used to pass custom data from your webhook to the
	// integration or API caller. Arbitrary JSON objects are supported.
	// When provided, Dialogflow uses this field to populate
	// [QueryResult.webhook_payload][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller.
	// This field is also used by the
	// [Google Assistant
	// integration](https://cloud.google.com/dialogflow/docs/integrations/aog)
	// for rich response messages.
	// See the format definition at [Google Assistant Dialogflow webhook
	// format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
	Payload *_struct.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	// Optional. The collection of output contexts that will overwrite currently
	// active contexts for the session and reset their lifespans.
	// When provided, Dialogflow uses this field to populate
	// [QueryResult.output_contexts][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
	OutputContexts []*Context `protobuf:"bytes,5,rep,name=output_contexts,json=outputContexts,proto3" json:"output_contexts,omitempty"`
	// Optional. Invokes the supplied events.
	// When this field is set, Dialogflow ignores the `fulfillment_text`,
	// `fulfillment_messages`, and `payload` fields.
	FollowupEventInput *EventInput `protobuf:"bytes,6,opt,name=followup_event_input,json=followupEventInput,proto3" json:"followup_event_input,omitempty"`
	// Optional. Additional session entity types to replace or extend developer
	// entity types with. The entity synonyms apply to all languages and persist
	// for the session. Setting this data from a webhook overwrites
	// the session entity types that have been set using `detectIntent`,
	// `streamingDetectIntent` or [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] management methods.
	SessionEntityTypes   []*SessionEntityType `protobuf:"bytes,10,rep,name=session_entity_types,json=sessionEntityTypes,proto3" json:"session_entity_types,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

The response message for a webhook call.

This response is validated by the Dialogflow server. If validation fails, an error will be returned in the [QueryResult.diagnostic_info][google.cloud.dialogflow.v2.QueryResult.diagnostic_info] field. Setting JSON fields to an empty value with the wrong type is a common error. To avoid this error:

- Use `""` for empty strings - Use `{}` or `null` for empty objects - Use `[]` or `null` for empty arrays

For more information, see the [Protocol Buffers Language Guide](https://developers.google.com/protocol-buffers/docs/proto3#json).

func (*WebhookResponse) Descriptor

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

func (*WebhookResponse) GetFollowupEventInput

func (m *WebhookResponse) GetFollowupEventInput() *EventInput

func (*WebhookResponse) GetFulfillmentMessages

func (m *WebhookResponse) GetFulfillmentMessages() []*Intent_Message

func (*WebhookResponse) GetFulfillmentText

func (m *WebhookResponse) GetFulfillmentText() string

func (*WebhookResponse) GetOutputContexts

func (m *WebhookResponse) GetOutputContexts() []*Context

func (*WebhookResponse) GetPayload

func (m *WebhookResponse) GetPayload() *_struct.Struct

func (*WebhookResponse) GetSessionEntityTypes

func (m *WebhookResponse) GetSessionEntityTypes() []*SessionEntityType

func (*WebhookResponse) GetSource

func (m *WebhookResponse) GetSource() string

func (*WebhookResponse) ProtoMessage

func (*WebhookResponse) ProtoMessage()

func (*WebhookResponse) Reset

func (m *WebhookResponse) Reset()

func (*WebhookResponse) String

func (m *WebhookResponse) String() string

func (*WebhookResponse) XXX_DiscardUnknown

func (m *WebhookResponse) XXX_DiscardUnknown()

func (*WebhookResponse) XXX_Marshal

func (m *WebhookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WebhookResponse) XXX_Merge

func (m *WebhookResponse) XXX_Merge(src proto.Message)

func (*WebhookResponse) XXX_Size

func (m *WebhookResponse) XXX_Size() int

func (*WebhookResponse) XXX_Unmarshal

func (m *WebhookResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL