blob: 738a34d8a17d9ec73eeec755a880b808abb1d810 [file] [log] [blame]
// Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package dialogflow provides access to the Dialogflow API.
//
// This package is DEPRECATED. Use package cloud.google.com/go/dialogflow/apiv2 instead.
//
// For product documentation, see: https://cloud.google.com/dialogflow/
//
// Creating a client
//
// Usage example:
//
// import "google.golang.org/api/dialogflow/v3beta1"
// ...
// ctx := context.Background()
// dialogflowService, err := dialogflow.NewService(ctx)
//
// In this example, Google Application Default Credentials are used for authentication.
//
// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
//
// Other authentication options
//
// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
//
// dialogflowService, err := dialogflow.NewService(ctx, option.WithScopes(dialogflow.DialogflowScope))
//
// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
//
// dialogflowService, err := dialogflow.NewService(ctx, option.WithAPIKey("AIza..."))
//
// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
//
// config := &oauth2.Config{...}
// // ...
// token, err := config.Exchange(ctx, ...)
// dialogflowService, err := dialogflow.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See https://godoc.org/google.golang.org/api/option/ for details on options.
package dialogflow // import "google.golang.org/api/dialogflow/v3beta1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
googleapi "google.golang.org/api/googleapi"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
internaloption "google.golang.org/api/option/internaloption"
htransport "google.golang.org/api/transport/http"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = internaloption.WithDefaultEndpoint
const apiId = "dialogflow:v3beta1"
const apiName = "dialogflow"
const apiVersion = "v3beta1"
const basePath = "https://dialogflow.googleapis.com/"
const mtlsBasePath = "https://dialogflow.mtls.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
// View, manage and query your Dialogflow agents
DialogflowScope = "https://www.googleapis.com/auth/dialogflow"
)
// NewService creates a new Service.
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
scopesOption := option.WithScopes(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow",
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
}
s, err := New(client)
if err != nil {
return nil, err
}
if endpoint != "" {
s.BasePath = endpoint
}
return s, nil
}
// New creates a new Service. It uses the provided http.Client for requests.
//
// Deprecated: please use NewService instead.
// To provide a custom HTTP client, use option.WithHTTPClient.
// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Projects = NewProjectsService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Projects *ProjectsService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewProjectsService(s *Service) *ProjectsService {
rs := &ProjectsService{s: s}
rs.Locations = NewProjectsLocationsService(s)
rs.Operations = NewProjectsOperationsService(s)
return rs
}
type ProjectsService struct {
s *Service
Locations *ProjectsLocationsService
Operations *ProjectsOperationsService
}
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
rs := &ProjectsLocationsService{s: s}
rs.Agents = NewProjectsLocationsAgentsService(s)
rs.Operations = NewProjectsLocationsOperationsService(s)
return rs
}
type ProjectsLocationsService struct {
s *Service
Agents *ProjectsLocationsAgentsService
Operations *ProjectsLocationsOperationsService
}
func NewProjectsLocationsAgentsService(s *Service) *ProjectsLocationsAgentsService {
rs := &ProjectsLocationsAgentsService{s: s}
rs.EntityTypes = NewProjectsLocationsAgentsEntityTypesService(s)
rs.Environments = NewProjectsLocationsAgentsEnvironmentsService(s)
rs.Flows = NewProjectsLocationsAgentsFlowsService(s)
rs.Intents = NewProjectsLocationsAgentsIntentsService(s)
rs.Sessions = NewProjectsLocationsAgentsSessionsService(s)
rs.Webhooks = NewProjectsLocationsAgentsWebhooksService(s)
return rs
}
type ProjectsLocationsAgentsService struct {
s *Service
EntityTypes *ProjectsLocationsAgentsEntityTypesService
Environments *ProjectsLocationsAgentsEnvironmentsService
Flows *ProjectsLocationsAgentsFlowsService
Intents *ProjectsLocationsAgentsIntentsService
Sessions *ProjectsLocationsAgentsSessionsService
Webhooks *ProjectsLocationsAgentsWebhooksService
}
func NewProjectsLocationsAgentsEntityTypesService(s *Service) *ProjectsLocationsAgentsEntityTypesService {
rs := &ProjectsLocationsAgentsEntityTypesService{s: s}
return rs
}
type ProjectsLocationsAgentsEntityTypesService struct {
s *Service
}
func NewProjectsLocationsAgentsEnvironmentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsService {
rs := &ProjectsLocationsAgentsEnvironmentsService{s: s}
rs.Sessions = NewProjectsLocationsAgentsEnvironmentsSessionsService(s)
return rs
}
type ProjectsLocationsAgentsEnvironmentsService struct {
s *Service
Sessions *ProjectsLocationsAgentsEnvironmentsSessionsService
}
func NewProjectsLocationsAgentsEnvironmentsSessionsService(s *Service) *ProjectsLocationsAgentsEnvironmentsSessionsService {
rs := &ProjectsLocationsAgentsEnvironmentsSessionsService{s: s}
rs.EntityTypes = NewProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService(s)
return rs
}
type ProjectsLocationsAgentsEnvironmentsSessionsService struct {
s *Service
EntityTypes *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService
}
func NewProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService {
rs := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService{s: s}
return rs
}
type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService struct {
s *Service
}
func NewProjectsLocationsAgentsFlowsService(s *Service) *ProjectsLocationsAgentsFlowsService {
rs := &ProjectsLocationsAgentsFlowsService{s: s}
rs.Pages = NewProjectsLocationsAgentsFlowsPagesService(s)
rs.TransitionRouteGroups = NewProjectsLocationsAgentsFlowsTransitionRouteGroupsService(s)
rs.Versions = NewProjectsLocationsAgentsFlowsVersionsService(s)
return rs
}
type ProjectsLocationsAgentsFlowsService struct {
s *Service
Pages *ProjectsLocationsAgentsFlowsPagesService
TransitionRouteGroups *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService
Versions *ProjectsLocationsAgentsFlowsVersionsService
}
func NewProjectsLocationsAgentsFlowsPagesService(s *Service) *ProjectsLocationsAgentsFlowsPagesService {
rs := &ProjectsLocationsAgentsFlowsPagesService{s: s}
return rs
}
type ProjectsLocationsAgentsFlowsPagesService struct {
s *Service
}
func NewProjectsLocationsAgentsFlowsTransitionRouteGroupsService(s *Service) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService {
rs := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsService{s: s}
return rs
}
type ProjectsLocationsAgentsFlowsTransitionRouteGroupsService struct {
s *Service
}
func NewProjectsLocationsAgentsFlowsVersionsService(s *Service) *ProjectsLocationsAgentsFlowsVersionsService {
rs := &ProjectsLocationsAgentsFlowsVersionsService{s: s}
return rs
}
type ProjectsLocationsAgentsFlowsVersionsService struct {
s *Service
}
func NewProjectsLocationsAgentsIntentsService(s *Service) *ProjectsLocationsAgentsIntentsService {
rs := &ProjectsLocationsAgentsIntentsService{s: s}
return rs
}
type ProjectsLocationsAgentsIntentsService struct {
s *Service
}
func NewProjectsLocationsAgentsSessionsService(s *Service) *ProjectsLocationsAgentsSessionsService {
rs := &ProjectsLocationsAgentsSessionsService{s: s}
rs.EntityTypes = NewProjectsLocationsAgentsSessionsEntityTypesService(s)
return rs
}
type ProjectsLocationsAgentsSessionsService struct {
s *Service
EntityTypes *ProjectsLocationsAgentsSessionsEntityTypesService
}
func NewProjectsLocationsAgentsSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentsSessionsEntityTypesService {
rs := &ProjectsLocationsAgentsSessionsEntityTypesService{s: s}
return rs
}
type ProjectsLocationsAgentsSessionsEntityTypesService struct {
s *Service
}
func NewProjectsLocationsAgentsWebhooksService(s *Service) *ProjectsLocationsAgentsWebhooksService {
rs := &ProjectsLocationsAgentsWebhooksService{s: s}
return rs
}
type ProjectsLocationsAgentsWebhooksService struct {
s *Service
}
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
rs := &ProjectsLocationsOperationsService{s: s}
return rs
}
type ProjectsLocationsOperationsService struct {
s *Service
}
func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
rs := &ProjectsOperationsService{s: s}
return rs
}
type ProjectsOperationsService struct {
s *Service
}
// GoogleCloudDialogflowCxV3PageInfo: Represents page information
// communicated to and from the webhook.
type GoogleCloudDialogflowCxV3PageInfo struct {
// CurrentPage: Always present for WebhookRequest. Ignored for
// WebhookResponse. The unique identifier of the current page. Format:
// `projects//locations//agents//flows//pages/`.
CurrentPage string `json:"currentPage,omitempty"`
// FormInfo: Optional for both WebhookRequest and WebhookResponse.
// Information about the form.
FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "CurrentPage") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CurrentPage") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3PageInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3PageInfoFormInfo: Represents form
// information.
type GoogleCloudDialogflowCxV3PageInfoFormInfo struct {
// ParameterInfo: Optional for both WebhookRequest and WebhookResponse.
// The parameters contained in the form. Note that the webhook cannot
// add or remove any form parameter.
ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ParameterInfo") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo: Represents
// parameter information.
type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct {
// DisplayName: Always present for WebhookRequest. Required for
// WebhookResponse. The human-readable name of the parameter, unique
// within the form. This field cannot be modified by the webhook.
DisplayName string `json:"displayName,omitempty"`
// JustCollected: Optional for WebhookRequest. Ignored for
// WebhookResponse. Indicates if the parameter value was just collected
// on the last conversation turn.
JustCollected bool `json:"justCollected,omitempty"`
// Required: Optional for both WebhookRequest and WebhookResponse.
// Indicates whether the parameter is required. Optional parameters will
// not trigger prompts; however, they are filled if the user specifies
// them. Required parameters must be filled before form filling
// concludes.
Required bool `json:"required,omitempty"`
// State: Always present for WebhookRequest. Required for
// WebhookResponse. The state of the parameter. This field can be set to
// INVALID by the webhook to invalidate the parameter; other values set
// by the webhook will be ignored.
//
// Possible values:
// "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be
// never used.
// "EMPTY" - Indicates that the parameter does not have a value.
// "INVALID" - Indicates that the parameter value is invalid. This
// field can be used by the webhook to invalidate the parameter and ask
// the server to collect it from the user again.
// "FILLED" - Indicates that the parameter has a value.
State string `json:"state,omitempty"`
// Value: Optional for both WebhookRequest and WebhookResponse. The
// value of the parameter. This field can be set by the webhook to
// change the parameter value.
Value interface{} `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3ResponseMessage: Represents a response
// message that can be returned by a conversational agent. Response
// messages are also used for output audio synthesis. The approach is as
// follows: * If at least one OutputAudioText response is present, then
// all OutputAudioText responses are linearly concatenated, and the
// result is used for output audio synthesis. * If the OutputAudioText
// responses are a mixture of text and SSML, then the concatenated
// result is treated as SSML; otherwise, the result is treated as either
// text or SSML as appropriate. The agent designer should ideally use
// either text or SSML consistently throughout the bot design. *
// Otherwise, all Text responses are linearly concatenated, and the
// result is used for output audio synthesis. This approach allows for
// more sophisticated user experience scenarios, where the text
// displayed to the user may differ from what is heard.
type GoogleCloudDialogflowCxV3ResponseMessage struct {
// ConversationSuccess: Indicates that the conversation succeeded.
ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
// EndInteraction: Output only. A signal that indicates the interaction
// with the Dialogflow agent has ended. This message is generated by
// Dialogflow only when the conversation reaches `END_SESSION` or
// `END_PAGE` page. It is not supposed to be defined by the user. It's
// guaranteed that there is at most one such message in each response.
EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
// LiveAgentHandoff: Hands off conversation to a human agent.
LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
// MixedAudio: Output only. An audio response message composed of both
// the synthesized Dialogflow agent responses and responses defined via
// play_audio. This message is generated by Dialogflow only and not
// supposed to be defined by the user.
MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
// OutputAudioText: A text or ssml response that is preferentially used
// for TTS output audio synthesis, as described in the comment on the
// ResponseMessage message.
OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
// Payload: Returns a response containing a custom, platform-specific
// payload.
Payload googleapi.RawMessage `json:"payload,omitempty"`
// PlayAudio: Signal that the client should play an audio clip hosted at
// a client-specific URI. Dialogflow uses this to construct mixed_audio.
// However, Dialogflow itself does not try to read or process the URI in
// any way.
PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"`
// Text: Returns a text response.
Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConversationSuccess")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ConversationSuccess") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3ResponseMessage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess:
// Indicates that the conversation succeeded, i.e., the bot handled the
// issue that the customer talked to it about. Dialogflow only uses this
// to determine which conversations should be counted as successful and
// doesn't process the metadata in this message in any way. Note that
// Dialogflow also considers conversations that get to the conversation
// end page as successful even if they don't return ConversationSuccess.
// You may set this, for example: * In the entry_fulfillment of a Page
// if entering the page indicates that the conversation succeeded. * In
// a webhook response when you determine that you handled the customer
// issue.
type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {
// Metadata: Custom metadata. Dialogflow doesn't impose any structure on
// this.
Metadata googleapi.RawMessage `json:"metadata,omitempty"`
// ForceSendFields is a list of field names (e.g. "Metadata") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Metadata") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3ResponseMessageEndInteraction: Indicates
// that interaction with the Dialogflow agent has ended. This message is
// generated by Dialogflow only and not supposed to be defined by the
// user.
type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {
}
// GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff: Indicates
// that the conversation should be handed off to a live agent.
// Dialogflow only uses this to determine which conversations were
// handed off to a human agent for measurement purposes. What else to do
// with this signal is up to you and your handoff procedures. You may
// set this, for example: * In the entry_fulfillment of a Page if
// entering the page indicates something went extremely wrong in the
// conversation. * In a webhook response when you determine that the
// customer issue can only be handled by a human.
type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {
// Metadata: Custom metadata for your handoff procedure. Dialogflow
// doesn't impose any structure on this.
Metadata googleapi.RawMessage `json:"metadata,omitempty"`
// ForceSendFields is a list of field names (e.g. "Metadata") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Metadata") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3ResponseMessageMixedAudio: Represents an
// audio message that is composed of both segments synthesized from the
// Dialogflow agent prompts and ones hosted externally at the specified
// URIs. The external URIs are specified via play_audio. This message is
// generated by Dialogflow only and not supposed to be defined by the
// user.
type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct {
// Segments: Segments this audio response is composed of.
Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
// ForceSendFields is a list of field names (e.g. "Segments") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Segments") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment: Represents
// one segment of audio.
type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct {
// AllowPlaybackInterruption: Output only. Whether the playback of this
// segment can be interrupted by the end user's speech and the client
// should then start the next Dialogflow request.
AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
// Audio: Raw audio synthesized from the Dialogflow agent's response
// using the output config specified in the request.
Audio string `json:"audio,omitempty"`
// Uri: Client-specific URI that points to an audio clip accessible to
// the client. Dialogflow does not impose any validation on it.
Uri string `json:"uri,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AllowPlaybackInterruption") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "AllowPlaybackInterruption") to include in API requests with the JSON
// null value. By default, fields with empty values are omitted from API
// requests. However, any field with an empty value appearing in
// NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText: A text or
// ssml response that is preferentially used for TTS output audio
// synthesis, as described in the comment on the ResponseMessage
// message.
type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct {
// AllowPlaybackInterruption: Output only. Whether the playback of this
// message can be interrupted by the end user's speech and the client
// can then starts the next Dialogflow request.
AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
// Ssml: The SSML text to be synthesized. For more information, see
// [SSML](/speech/text-to-speech/docs/ssml).
Ssml string `json:"ssml,omitempty"`
// Text: The raw text to be synthesized.
Text string `json:"text,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AllowPlaybackInterruption") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "AllowPlaybackInterruption") to include in API requests with the JSON
// null value. By default, fields with empty values are omitted from API
// requests. However, any field with an empty value appearing in
// NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3ResponseMessagePlayAudio: Specifies an audio
// clip to be played by the client as part of the response.
type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct {
// AllowPlaybackInterruption: Output only. Whether the playback of this
// message can be interrupted by the end user's speech and the client
// can then starts the next Dialogflow request.
AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
// AudioUri: Required. URI of the audio clip. Dialogflow does not impose
// any validation on this value. It is specific to the client that reads
// it.
AudioUri string `json:"audioUri,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AllowPlaybackInterruption") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "AllowPlaybackInterruption") to include in API requests with the JSON
// null value. By default, fields with empty values are omitted from API
// requests. However, any field with an empty value appearing in
// NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3ResponseMessageText: The text response
// message.
type GoogleCloudDialogflowCxV3ResponseMessageText struct {
// AllowPlaybackInterruption: Output only. Whether the playback of this
// message can be interrupted by the end user's speech and the client
// can then starts the next Dialogflow request.
AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
// Text: Required. A collection of text responses.
Text []string `json:"text,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AllowPlaybackInterruption") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "AllowPlaybackInterruption") to include in API requests with the JSON
// null value. By default, fields with empty values are omitted from API
// requests. However, any field with an empty value appearing in
// NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3ResponseMessageText
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3SessionInfo: Represents session information
// communicated to and from the webhook.
type GoogleCloudDialogflowCxV3SessionInfo struct {
// Parameters: Optional for WebhookRequest. Optional for
// WebhookResponse. All parameters collected from forms and intents
// during the session. Parameters can be created, updated, or removed by
// the webhook. To remove a parameter from the session, the webhook
// should explicitly set the parameter value to null in WebhookResponse.
// The map is keyed by parameters' display names.
Parameters googleapi.RawMessage `json:"parameters,omitempty"`
// Session: Always present for WebhookRequest. Ignored for
// WebhookResponse. The unique identifier of the session. This field can
// be used by the webhook to identify a user. Format:
// `projects//locations//agents//sessions/`.
Session string `json:"session,omitempty"`
// ForceSendFields is a list of field names (e.g. "Parameters") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Parameters") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3SessionInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3WebhookRequest: The request message for a
// webhook call.
type GoogleCloudDialogflowCxV3WebhookRequest struct {
// DetectIntentResponseId: Always present. The unique identifier of the
// DetectIntentResponse that will be returned to the API caller.
DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
// FulfillmentInfo: Always present. Information about the fulfillment
// that triggered this webhook call.
FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
// IntentInfo: Information about the last matched intent.
IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
// Messages: The list of rich message responses to present to the user.
// Webhook can choose to append or replace this list in
// WebhookResponse.fulfillment_response;
Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
// PageInfo: Information about page status.
PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
// Payload: Custom data set in QueryParameters.payload.
Payload googleapi.RawMessage `json:"payload,omitempty"`
// SessionInfo: Information about session status.
SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "DetectIntentResponseId") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DetectIntentResponseId")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3WebhookRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo: Represents
// fulfillment information communicated to the webhook.
type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {
// Tag: Always present. The tag used to identify which fulfillment is
// being called.
Tag string `json:"tag,omitempty"`
// ForceSendFields is a list of field names (e.g. "Tag") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Tag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3WebhookRequestIntentInfo: Represents intent
// information communicated to the webhook.
type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {
// LastMatchedIntent: Always present. The unique identifier of the last
// matched intent. Format: `projects//locations//agents//intents/`.
LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
// Parameters: Parameters identified as a result of intent matching.
// This is a map of the name of the identified parameter to the value of
// the parameter identified from the user's utterance. All parameters
// defined in the matched intent that are identified will be surfaced
// here.
Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
// ForceSendFields is a list of field names (e.g. "LastMatchedIntent")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "LastMatchedIntent") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue:
// Represents a value for an intent parameter.
type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {
// OriginalValue: Always present. Original text value extracted from
// user utterance.
OriginalValue string `json:"originalValue,omitempty"`
// ResolvedValue: Always present. Structured value for the parameter
// extracted from user utterance.
ResolvedValue interface{} `json:"resolvedValue,omitempty"`
// ForceSendFields is a list of field names (e.g. "OriginalValue") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "OriginalValue") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3WebhookResponse: The response message for a
// webhook call.
type GoogleCloudDialogflowCxV3WebhookResponse struct {
// FulfillmentResponse: The fulfillment response to send to the user.
// This field can be omitted by the webhook if it does not intend to
// send any response to the user.
FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
// PageInfo: Information about page status. This field can be omitted by
// the webhook if it does not intend to modify page status.
PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
// Payload: Value to append directly to QueryResult.webhook_payloads.
Payload googleapi.RawMessage `json:"payload,omitempty"`
// SessionInfo: Information about session status. This field can be
// omitted by the webhook if it does not intend to modify session
// status.
SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
// TargetFlow: The target flow to transition to. Format:
// `projects//locations//agents//flows/`.
TargetFlow string `json:"targetFlow,omitempty"`
// TargetPage: The target page to transition to. Format:
// `projects//locations//agents//flows//pages/`.
TargetPage string `json:"targetPage,omitempty"`
// ForceSendFields is a list of field names (e.g. "FulfillmentResponse")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FulfillmentResponse") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3WebhookResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse:
// Represents a fulfillment response to the user.
type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct {
// MergeBehavior: Merge behavior for `messages`.
//
// Possible values:
// "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be
// used.
// "APPEND" - `messages` will be appended to the list of messages
// waiting to be sent to the user.
// "REPLACE" - `messages` will replace the list of messages waiting to
// be sent to the user.
MergeBehavior string `json:"mergeBehavior,omitempty"`
// Messages: The list of rich message responses to present to the user.
Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MergeBehavior") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1Agent: Agents are best described as
// Natural Language Understanding (NLU) modules that transform user
// requests into actionable data. You can include agents in your app,
// product, or service to determine user intent and respond to the user
// in a natural way. After you create an agent, you can add Intents,
// Entity Types, Flows, Fulfillments, Webhooks, and so on to manage the
// conversation flows..
type GoogleCloudDialogflowCxV3beta1Agent struct {
// AvatarUri: 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 `json:"avatarUri,omitempty"`
// DefaultLanguageCode: Immutable. 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 Agents.UpdateAgent method.
DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
// Description: The description of the agent. The maximum length is 500
// characters. If exceeded, the request is rejected.
Description string `json:"description,omitempty"`
// DisplayName: Required. The human-readable name of the agent, unique
// within the location.
DisplayName string `json:"displayName,omitempty"`
// EnableSpellCorrection: Indicates if automatic spell correction is
// enabled in detect intent requests.
EnableSpellCorrection bool `json:"enableSpellCorrection,omitempty"`
// EnableStackdriverLogging: Indicates if stackdriver logging is enabled
// for the agent.
EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
// Name: The unique identifier of the agent. Required for the
// Agents.UpdateAgent method. Agents.CreateAgent populates the name
// automatically. Format: `projects//locations//agents/`.
Name string `json:"name,omitempty"`
// SpeechToTextSettings: Speech recognition related settings.
SpeechToTextSettings *GoogleCloudDialogflowCxV3beta1SpeechToTextSettings `json:"speechToTextSettings,omitempty"`
// StartFlow: Immutable. Name of the start flow in this agent. A start
// flow will be automatically created when the agent is created, and can
// only be deleted by deleting the agent. Format:
// `projects//locations//agents//flows/`.
StartFlow string `json:"startFlow,omitempty"`
// TimeZone: Required. The time zone of the agent from the [time zone
// database](https://www.iana.org/time-zones), e.g., America/New_York,
// Europe/Paris.
TimeZone string `json:"timeZone,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AvatarUri") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AvatarUri") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1Agent) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1Agent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1AudioInput: Represents the natural
// speech audio to be processed.
type GoogleCloudDialogflowCxV3beta1AudioInput struct {
// Audio: The natural language speech audio to be processed. A single
// request can contain up to 1 minute of speech audio data. The
// transcribed text cannot contain more than 256 bytes. For
// non-streaming audio detect intent, both `config` and `audio` must be
// provided. For streaming audio detect intent, `config` must be
// provided in the first request and `audio` must be provided in all
// following requests.
Audio string `json:"audio,omitempty"`
// Config: Required. Instructs the speech recognizer how to process the
// speech audio.
Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`
// ForceSendFields is a list of field names (e.g. "Audio") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Audio") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1AudioInput
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata:
// Metadata associated with the long running operation for
// Versions.CreateVersion.
type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {
// Version: Name of the created version. Format:
// `projects//locations//agents//flows//versions/`.
Version string `json:"version,omitempty"`
// ForceSendFields is a list of field names (e.g. "Version") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Version") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1DetectIntentRequest: The request to
// detect user's intent.
type GoogleCloudDialogflowCxV3beta1DetectIntentRequest struct {
// OutputAudioConfig: Instructs the speech synthesizer how to generate
// the output audio.
OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
// QueryInput: Required. The input specification.
QueryInput *GoogleCloudDialogflowCxV3beta1QueryInput `json:"queryInput,omitempty"`
// QueryParams: The parameters of this query.
QueryParams *GoogleCloudDialogflowCxV3beta1QueryParameters `json:"queryParams,omitempty"`
// ForceSendFields is a list of field names (e.g. "OutputAudioConfig")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "OutputAudioConfig") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1DetectIntentRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1DetectIntentResponse: The message
// returned from the DetectIntent method.
type GoogleCloudDialogflowCxV3beta1DetectIntentResponse struct {
// OutputAudio: 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.response_messages` field. If multiple default text
// responses exist, they will be concatenated when generating audio. If
// no default platform text responses exist, the generated audio content
// will be empty. In some scenarios, multiple output audio fields may be
// present in the response structure. In these cases, only the
// top-most-level audio output has content.
OutputAudio string `json:"outputAudio,omitempty"`
// OutputAudioConfig: The config used by the speech synthesizer to
// generate the output audio.
OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
// QueryResult: The result of the conversational query.
QueryResult *GoogleCloudDialogflowCxV3beta1QueryResult `json:"queryResult,omitempty"`
// ResponseId: Output only. 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 `json:"responseId,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "OutputAudio") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "OutputAudio") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1DetectIntentResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1DetectIntentResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1DtmfInput: Represents the input for
// dtmf event.
type GoogleCloudDialogflowCxV3beta1DtmfInput struct {
// Digits: The dtmf digits.
Digits string `json:"digits,omitempty"`
// FinishDigit: The finish digit (if any).
FinishDigit string `json:"finishDigit,omitempty"`
// ForceSendFields is a list of field names (e.g. "Digits") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Digits") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1DtmfInput) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1DtmfInput
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1EntityType: Entities are extracted from
// user input and represent parameters that are meaningful to your
// application. For example, a date range, a proper name such as a
// geographic location or landmark, and so on. Entities represent
// actionable data for your application. When you define an entity, you
// can also include synonyms that all map to that entity. For example,
// "soft drink", "soda", "pop", and so on. There are three types of
// entities: * **System** - entities that are defined by the Dialogflow
// API for common data types such as date, time, currency, and so on. A
// system entity is represented by the `EntityType` type. * **Custom** -
// entities that are defined by you that represent actionable data that
// is meaningful to your application. For example, you could define a
// `pizza.sauce` entity for red or white pizza sauce, a `pizza.cheese`
// entity for the different types of cheese on a pizza, a
// `pizza.topping` entity for different toppings, and so on. A custom
// entity is represented by the `EntityType` type. * **User** - entities
// that are built for an individual user such as favorites, preferences,
// playlists, and so on. A user entity is represented by the
// SessionEntityType type. For more information about entity types, see
// the [Dialogflow
// documentation](https://cloud.google.com/dialogflow/docs/entities-overv
// iew).
type GoogleCloudDialogflowCxV3beta1EntityType struct {
// AutoExpansionMode: Indicates whether the entity type can be
// automatically expanded.
//
// Possible values:
// "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
// entity.
// "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values
// that have not been explicitly listed in the entity.
AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
// DisplayName: Required. The human-readable name of the entity type,
// unique within the agent.
DisplayName string `json:"displayName,omitempty"`
// EnableFuzzyExtraction: Enables fuzzy entity extraction during
// classification.
EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
// Entities: The collection of entity entries associated with the entity
// type.
Entities []*GoogleCloudDialogflowCxV3beta1EntityTypeEntity `json:"entities,omitempty"`
// ExcludedPhrases: Collection of exceptional words and phrases that
// shouldn't be matched. For example, if you have a size entity type
// with entry `giant`(an adjective), you might consider adding
// `giants`(a noun) as an exclusion. If the kind of entity type is
// `KIND_MAP`, then the phrases specified by entities and excluded
// phrases should be mutually exclusive.
ExcludedPhrases []*GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase `json:"excludedPhrases,omitempty"`
// Kind: Required. Indicates the kind of entity type.
//
// Possible values:
// "KIND_UNSPECIFIED" - Not specified. This value should be never
// used.
// "KIND_MAP" - Map entity types allow mapping of a group of synonyms
// to a canonical value.
// "KIND_LIST" - List entity types contain a set of entries that do
// not map to canonical values. However, list entity types can contain
// references to other entity types (with or without aliases).
// "KIND_REGEXP" - Regexp entity types allow to specify regular
// expressions in entries values.
Kind string `json:"kind,omitempty"`
// Name: The unique identifier of the entity type. Required for
// EntityTypes.UpdateEntityType. Format:
// `projects//locations//agents//entityTypes/`.
Name string `json:"name,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AutoExpansionMode")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AutoExpansionMode") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1EntityType) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1EntityType
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1EntityTypeEntity: An **entity entry**
// for an associated entity type. Next Id = 8
type GoogleCloudDialogflowCxV3beta1EntityTypeEntity struct {
// Synonyms: 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 `json:"synonyms,omitempty"`
// Value: 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 canonical 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 `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "Synonyms") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Synonyms") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1EntityTypeEntity
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase: An excluded
// entity phrase that should not be matched.
type GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase struct {
// Value: Required. The word or phrase to be excluded.
Value string `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "Value") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Value") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1Environment: Represents an environment
// for an agent. You can create multiple versions of your agent and
// publish them to separate environments. When you edit an agent, you
// are editing the draft agent. At any point, you can save the draft
// agent as an agent version, which is an immutable snapshot of your
// agent. When you save the draft agent, it is published to the default
// environment. When you create agent versions, you can publish them to
// custom environments. You can create a variety of custom environments
// for testing, development, production, etc.
type GoogleCloudDialogflowCxV3beta1Environment struct {
// Description: The human-readable description of the environment. The
// maximum length is 500 characters. If exceeded, the request is
// rejected.
Description string `json:"description,omitempty"`
// DisplayName: Required. The human-readable name of the environment
// (unique in an agent). Limit of 64 characters.
DisplayName string `json:"displayName,omitempty"`
// Name: The name of the environment. Format:
// `projects//locations//agents//environments/`.
Name string `json:"name,omitempty"`
// UpdateTime: Output only. Update time of this environment.
UpdateTime string `json:"updateTime,omitempty"`
// VersionConfigs: Required. A list of configurations for flow versions.
// You should include version configs for all flows that are reachable
// from `Start Flow` in the agent. Otherwise, an error will be returned.
VersionConfigs []*GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Description") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1Environment) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1Environment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig: Configuration
// for the version.
type GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig struct {
// Version: Required. Format:
// projects//locations//agents//flows//versions/.
Version string `json:"version,omitempty"`
// ForceSendFields is a list of field names (e.g. "Version") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Version") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1EventHandler: An event handler
// specifies an event that can be handled during a session. When the
// specified event happens, the following actions are taken in order: *
// If there is a `trigger_fulfillment` associated with the event, it
// will be called. * If there is a `target_page` associated with the
// event, the session will transition into the specified page. * If
// there is a `target_flow` associated with the event, the session will
// transition into the specified flow.
type GoogleCloudDialogflowCxV3beta1EventHandler struct {
// Event: Required. The name of the event to handle.
Event string `json:"event,omitempty"`
// Name: Output only. The unique identifier of this event handler.
Name string `json:"name,omitempty"`
// TargetFlow: The target flow to transition to. Format:
// `projects//locations//agents//flows/`.
TargetFlow string `json:"targetFlow,omitempty"`
// TargetPage: The target page to transition to. Format:
// `projects//locations//agents//flows//pages/`.
TargetPage string `json:"targetPage,omitempty"`
// TriggerFulfillment: The fulfillment to call when the event occurs.
// Handling webhook errors with a fulfillment enabled with webhook could
// cause infinite loop. It is invalid to specify such fulfillment for a
// handler handling webhooks.
TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
// ForceSendFields is a list of field names (e.g. "Event") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Event") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1EventHandler) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1EventHandler
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1EventInput: Represents the event to
// trigger.
type GoogleCloudDialogflowCxV3beta1EventInput struct {
// Event: Name of the event.
Event string `json:"event,omitempty"`
// ForceSendFields is a list of field names (e.g. "Event") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Event") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1EventInput) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1EventInput
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ExportAgentRequest: The request message
// for Agents.ExportAgent.
type GoogleCloudDialogflowCxV3beta1ExportAgentRequest struct {
// AgentUri: Optional. The [Google Cloud
// Storage](https://cloud.google.com/storage/docs/) URI to export the
// agent to. The format of this URI must be `gs:///`. If left
// unspecified, the serialized agent is returned inline.
AgentUri string `json:"agentUri,omitempty"`
// ForceSendFields is a list of field names (e.g. "AgentUri") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AgentUri") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ExportAgentRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ExportAgentResponse: The response
// message for Agents.ExportAgent.
type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {
// AgentContent: Uncompressed raw byte content for agent.
AgentContent string `json:"agentContent,omitempty"`
// AgentUri: The URI to a file containing the exported agent. This field
// is populated only if `agent_uri` is specified in ExportAgentRequest.
AgentUri string `json:"agentUri,omitempty"`
// ForceSendFields is a list of field names (e.g. "AgentContent") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AgentContent") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1Flow: Flows represents the conversation
// flows when you build your chatbot agent. A flow consists of many
// pages connected by the transition routes. Conversations always start
// with the built-in Start Flow (with an all-0 ID). Transition routes
// can direct the conversation session from the current flow (parent
// flow) to another flow (sub flow). When the sub flow is finished,
// Dialogflow will bring the session back to the parent flow, where the
// sub flow is started. Usually, when a transition route is followed by
// a matched intent, the intent will be "consumed". This means the
// intent won't activate more transition routes. However, when the
// followed transition route moves the conversation session into a
// different flow, the matched intent can be carried over and to be
// consumed in the target flow.
type GoogleCloudDialogflowCxV3beta1Flow struct {
// Description: The description of the flow. The maximum length is 500
// characters. If exceeded, the request is rejected.
Description string `json:"description,omitempty"`
// DisplayName: Required. The human-readable name of the flow.
DisplayName string `json:"displayName,omitempty"`
// EventHandlers: A flow's event handlers serve two purposes: * They are
// responsible for handling events (e.g. no match, webhook errors) in
// the flow. * They are inherited by every page's event handlers, which
// can be used to handle common events regardless of the current page.
// Event handlers defined in the page have higher priority than those
// defined in the flow. Unlike transition_routes, these handlers are
// evaluated on a first-match basis. The first one that matches the
// event get executed, with the rest being ignored.
EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
// Name: The unique identifier of the flow. Format:
// `projects//locations//agents//flows/`.
Name string `json:"name,omitempty"`
// NluSettings: NLU related settings of the flow.
NluSettings *GoogleCloudDialogflowCxV3beta1NluSettings `json:"nluSettings,omitempty"`
// TransitionRoutes: A flow's transition routes serve two purposes: *
// They are responsible for matching the user's first utterances in the
// flow. * They are inherited by every page's transition routes and can
// support use cases such as the user saying "help" or "can I talk to a
// human?", which can be handled in a common way regardless of the
// current page. Transition routes defined in the page have higher
// priority than those defined in the flow. TransitionRoutes are
// evalauted in the following order: * TransitionRoutes with intent
// specified.. * TransitionRoutes with only condition specified.
// TransitionRoutes with intent specified are inherited by pages in the
// flow.
TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Description") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1Flow) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1Flow
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1Form: A form is a data model that
// groups related parameters that can be collected from the user. The
// process in which the agent prompts the user and collects parameter
// values from the user is called form filling. A form can be added to a
// page. When form filling is done, the filled parameters will be
// written to the session.
type GoogleCloudDialogflowCxV3beta1Form struct {
// Parameters: Parameters to collect from the user.
Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`
// ForceSendFields is a list of field names (e.g. "Parameters") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Parameters") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1Form) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1Form
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1FormParameter: Represents a form
// parameter.
type GoogleCloudDialogflowCxV3beta1FormParameter struct {
// DefaultValue: The default value of an optional parameter. If the
// parameter is required, the default value will be ignored.
DefaultValue interface{} `json:"defaultValue,omitempty"`
// DisplayName: Required. The human-readable name of the parameter,
// unique within the form.
DisplayName string `json:"displayName,omitempty"`
// EntityType: Required. The entity type of the parameter. Format:
// `projects/-/locations/-/agents/-/entityTypes/` for system entity
// types (for example,
// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
// `projects//locations//agents//entityTypes/` for developer entity
// types.
EntityType string `json:"entityType,omitempty"`
// FillBehavior: Required. Defines fill behavior for the parameter.
FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`
// IsList: Indicates whether the parameter represents a list of values.
IsList bool `json:"isList,omitempty"`
// Redact: Indicates whether the parameter content is logged in text and
// audio. If it is set to true, the parameter content will be replaced
// to parameter name in both request and response. The default value is
// false.
Redact bool `json:"redact,omitempty"`
// Required: Indicates whether the parameter is required. Optional
// parameters will not trigger prompts; however, they are filled if the
// user specifies them. Required parameters must be filled before form
// filling concludes.
Required bool `json:"required,omitempty"`
// ForceSendFields is a list of field names (e.g. "DefaultValue") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DefaultValue") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1FormParameter) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1FormParameter
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior:
// Configuration for how the filling of a parameter should be handled.
type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {
// InitialPromptFulfillment: Required. The fulfillment to provide the
// initial prompt that the agent can present to the user in order to
// fill the parameter.
InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`
// RepromptEventHandlers: The handlers for parameter-level events, used
// to provide reprompt for the parameter or transition to a different
// page/flow. The supported events are: * `sys.no-match-`, where N can
// be from 1 to 6 * `sys.no-match-default` * `sys.no-input-`, where N
// can be from 1 to 6 * `sys.no-input-default` * `sys.invalid-parameter`
// `initial_prompt_fulfillment` provides the first prompt for the
// parameter. If the user's response does not fill the parameter, a
// no-match/no-input event will be triggered, and the fulfillment
// associated with the `sys.no-match-1`/`sys.no-input-1` handler (if
// defined) will be called to provide a prompt. The
// `sys.no-match-2`/`sys.no-input-2` handler (if defined) will respond
// to the next no-match/no-input event, and so on. A
// `sys.no-match-default` or `sys.no-input-default` handler will be used
// to handle all following no-match/no-input events after all numbered
// no-match/no-input handlers for the parameter are consumed. A
// `sys.invalid-parameter` handler can be defined to handle the case
// where the parameter values have been `invalidated` by webhook. For
// example, if the user's response fill the parameter, however the
// parameter was invalidated by webhook, the fulfillment associated with
// the `sys.invalid-parameter` handler (if defined) will be called to
// provide a prompt. If the event handler for the corresponding event
// can't be found on the parameter, `initial_prompt_fulfillment` will be
// re-prompted.
RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "InitialPromptFulfillment") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "InitialPromptFulfillment")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1FulfillIntentRequest: Request of
// FulfillIntent
type GoogleCloudDialogflowCxV3beta1FulfillIntentRequest struct {
// Match: The matched intent/event to fulfill.
Match *GoogleCloudDialogflowCxV3beta1Match `json:"match,omitempty"`
// MatchIntentRequest: Must be same as the corresponding MatchIntent
// request, otherwise the behavior is undefined.
MatchIntentRequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest `json:"matchIntentRequest,omitempty"`
// OutputAudioConfig: Instructs the speech synthesizer how to generate
// output audio.
OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "Match") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Match") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1FulfillIntentRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1FulfillIntentResponse: Response of
// FulfillIntent
type GoogleCloudDialogflowCxV3beta1FulfillIntentResponse struct {
// OutputAudio: 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.response_messages` field. If multiple default text
// responses exist, they will be concatenated when generating audio. If
// no default platform text responses exist, the generated audio content
// will be empty. In some scenarios, multiple output audio fields may be
// present in the response structure. In these cases, only the
// top-most-level audio output has content.
OutputAudio string `json:"outputAudio,omitempty"`
// OutputAudioConfig: The config used by the speech synthesizer to
// generate the output audio.
OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
// QueryResult: The result of the conversational query.
QueryResult *GoogleCloudDialogflowCxV3beta1QueryResult `json:"queryResult,omitempty"`
// ResponseId: Output only. 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 `json:"responseId,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "OutputAudio") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "OutputAudio") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1FulfillIntentResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1FulfillIntentResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1Fulfillment: A fulfillment can do one
// or more of the following actions at the same time: * Generate rich
// message responses. * Set parameter values. * Call the webhook.
// Fulfillments can be called at various stages in the Page or Form
// lifecycle. For example, when a DetectIntentRequest drives a session
// to enter a new page, the page's entry fulfillment can add a static
// response to the QueryResult in the returning DetectIntentResponse,
// call the webhook (for example, to load user data from a database), or
// both.
type GoogleCloudDialogflowCxV3beta1Fulfillment struct {
// ConditionalCases: Conditional cases for this fulfillment.
ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
// Messages: The list of rich message responses to present to the user.
Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
// SetParameterActions: Set parameter values before executing the
// webhook.
SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
// Tag: The tag used by the webhook to identify which fulfillment is
// being called. This field is required if `webhook` is specified.
Tag string `json:"tag,omitempty"`
// Webhook: The webhook to call. Format:
// `projects//locations//agents//webhooks/`.
Webhook string `json:"webhook,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConditionalCases") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ConditionalCases") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1Fulfillment) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1Fulfillment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases: A list of
// cascading if-else conditions. Cases are mutually exclusive. The first
// one with a matching condition is selected, all the rest ignored.
type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {
// Cases: A list of cascading if-else conditions.
Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`
// ForceSendFields is a list of field names (e.g. "Cases") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Cases") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase: Each
// case has a Boolean condition. When it is evaluated to be True, the
// corresponding messages will be selected and evaluated recursively.
type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {
// CaseContent: A list of case content.
CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
// Condition: The condition to activate and select this case. Empty
// means the condition is always true. The condition is evaluated
// against form parameters or session parameters. See the [conditions
// reference](https://cloud.google.com/dialogflow/cx/docs/reference/condi
// tion).
Condition string `json:"condition,omitempty"`
// ForceSendFields is a list of field names (e.g. "CaseContent") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CaseContent") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseConte
// nt: The list of messages or conditional cases to activate for this
// case.
type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {
// AdditionalCases: Additional cases to be evaluated.
AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`
// Message: Returned message.
Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`
// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AdditionalCases") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction: Setting
// a parameter value.
type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {
// Parameter: Display name of the parameter.
Parameter string `json:"parameter,omitempty"`
// Value: The new value of the parameter. A null value clears the
// parameter.
Value interface{} `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "Parameter") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Parameter") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1InputAudioConfig: Instructs the speech
// recognizer on how to process the audio content.
type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct {
// AudioEncoding: Required. Audio encoding of the audio content to
// process.
//
// Possible values:
// "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
// "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
// little-endian samples (Linear PCM).
// "AUDIO_ENCODING_FLAC" -
// [`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.
// "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
// samples using G.711 PCMU/mu-law.
// "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
// `sample_rate_hertz` must be 8000.
// "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
// `sample_rate_hertz` must be 16000.
// "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg
// container ([OggOpus](https://wiki.xiph.org/OggOpus)).
// `sample_rate_hertz` must be 16000.
// "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - 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 string `json:"audioEncoding,omitempty"`
// EnableWordInfo: Optional. If `true`, Dialogflow returns
// SpeechWordInfo in 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 `json:"enableWordInfo,omitempty"`
// Model: Optional. 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#sel
// ect-model) for more details.
Model string `json:"model,omitempty"`
// ModelVariant: Optional. Which variant of the Speech model to use.
//
// Possible values:
// "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In
// this case Dialogflow defaults to USE_BEST_AVAILABLE.
// "USE_BEST_AVAILABLE" - Use the best available variant of the Speech
// 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.
// "USE_STANDARD" - 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-m
// odels) for details about enhanced models.
// "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced
// variant does not exist for the given model and request language,
// Dialogflow falls back to the standard variant. The [Cloud Speech
// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
// odels) 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.
ModelVariant string `json:"modelVariant,omitempty"`
// PhraseHints: Optional. 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#phr
// ase-hints) for more details.
PhraseHints []string `json:"phraseHints,omitempty"`
// SampleRateHertz: 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 int64 `json:"sampleRateHertz,omitempty"`
// SingleUtterance: Optional. 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.
SingleUtterance bool `json:"singleUtterance,omitempty"`
// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AudioEncoding") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1InputAudioConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1Intent: An intent represents a user's
// intent to interact with a conversational agent. You can provide
// information for the Dialogflow API to use to match user input to an
// intent by adding training phrases (i.e., examples of user input) to
// your intent.
type GoogleCloudDialogflowCxV3beta1Intent struct {
// DisplayName: Required. The human-readable name of the intent, unique
// within the agent.
DisplayName string `json:"displayName,omitempty"`
// IsFallback: Indicates whether this is a fallback intent. Currently
// only default fallback intent is allowed in the agent, which is added
// upon agent creation. Adding training phrases to fallback intent is
// useful in the case of requests that are mistakenly matched, since
// training phrases assigned to fallback intents act as negative
// examples that triggers no-match event.
IsFallback bool `json:"isFallback,omitempty"`
// Name: The unique identifier of the intent. Required for the
// Intents.UpdateIntent method. Intents.CreateIntent populates the name
// automatically. Format: `projects//locations//agents//intents/`.
Name string `json:"name,omitempty"`
// Parameters: The collection of parameters associated with the intent.
Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`
// Priority: 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 int64 `json:"priority,omitempty"`
// TrainingPhrases: The collection of training phrases the agent is
// trained on to identify the intent.
TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1Intent) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1Intent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1IntentInput: Represents the intent to
// trigger programmatically rather than as a result of natural language
// processing.
type GoogleCloudDialogflowCxV3beta1IntentInput struct {
// Intent: Required. The unique identifier of the intent. Format:
// `projects//locations//agents//intents/`.
Intent string `json:"intent,omitempty"`
// ForceSendFields is a list of field names (e.g. "Intent") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Intent") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1IntentInput) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1IntentInput
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1IntentParameter: Represents an intent
// parameter.
type GoogleCloudDialogflowCxV3beta1IntentParameter struct {
// EntityType: Required. The entity type of the parameter. Format:
// `projects/-/locations/-/agents/-/entityTypes/` for system entity
// types (for example,
// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
// `projects//locations//agents//entityTypes/` for developer entity
// types.
EntityType string `json:"entityType,omitempty"`
// Id: Required. The unique identifier of the parameter. This field is
// used by training phrases to annotate their parts.
Id string `json:"id,omitempty"`
// IsList: Indicates whether the parameter represents a list of values.
IsList bool `json:"isList,omitempty"`
// Redact: Indicates whether the parameter content is logged in text and
// audio. If it is set to true, the parameter content will be replaced
// to parameter id in both request and response. The default value is
// false.
Redact bool `json:"redact,omitempty"`
// ForceSendFields is a list of field names (e.g. "EntityType") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EntityType") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1IntentParameter) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1IntentParameter
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase: Represents an
// example that the agent is trained on to identify the intent.
type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {
// Id: Output only. The unique identifier of the training phrase.
Id string `json:"id,omitempty"`
// Parts: 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 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 `parameter_id` field is
// set.
Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
// RepeatCount: Indicates how many times this example was added to the
// intent.
RepeatCount int64 `json:"repeatCount,omitempty"`
// ForceSendFields is a list of field names (e.g. "Id") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Id") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart: Represents a
// part of a training phrase.
type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {
// ParameterId: The parameter used to annotate this part of the training
// phrase. This field is required for annotated parts of the training
// phrase.
ParameterId string `json:"parameterId,omitempty"`
// Text: Required. The text for this part.
Text string `json:"text,omitempty"`
// ForceSendFields is a list of field names (e.g. "ParameterId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ParameterId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ListAgentsResponse: The response
// message for Agents.ListAgents.
type GoogleCloudDialogflowCxV3beta1ListAgentsResponse struct {
// Agents: The list of agents. There will be a maximum number of items
// returned based on the page_size field in the request.
Agents []*GoogleCloudDialogflowCxV3beta1Agent `json:"agents,omitempty"`
// NextPageToken: Token to retrieve the next page of results, or empty
// if there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Agents") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Agents") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ListAgentsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ListAgentsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse: The response
// message for EntityTypes.ListEntityTypes.
type GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse struct {
// EntityTypes: The list of entity types. There will be a maximum number
// of items returned based on the page_size field in the request.
EntityTypes []*GoogleCloudDialogflowCxV3beta1EntityType `json:"entityTypes,omitempty"`
// NextPageToken: Token to retrieve the next page of results, or empty
// if there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "EntityTypes") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EntityTypes") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse: The response
// message for Environments.ListEnvironments.
type GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse struct {
// Environments: The list of environments. There will be a maximum
// number of items returned based on the page_size field in the request.
// The list may in some cases be empty or contain fewer entries than
// page_size even if this isn't the last page.
Environments []*GoogleCloudDialogflowCxV3beta1Environment `json:"environments,omitempty"`
// NextPageToken: Token to retrieve the next page of results, or empty
// if there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Environments") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Environments") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ListFlowsResponse: The response message
// for Flows.ListFlows.
type GoogleCloudDialogflowCxV3beta1ListFlowsResponse struct {
// Flows: The list of flows. There will be a maximum number of items
// returned based on the page_size field in the request.
Flows []*GoogleCloudDialogflowCxV3beta1Flow `json:"flows,omitempty"`
// NextPageToken: Token to retrieve the next page of results, or empty
// if there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Flows") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Flows") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ListFlowsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ListFlowsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ListIntentsResponse: The response
// message for Intents.ListIntents.
type GoogleCloudDialogflowCxV3beta1ListIntentsResponse struct {
// Intents: The list of intents. There will be a maximum number of items
// returned based on the page_size field in the request.
Intents []*GoogleCloudDialogflowCxV3beta1Intent `json:"intents,omitempty"`
// NextPageToken: Token to retrieve the next page of results, or empty
// if there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Intents") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Intents") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ListIntentsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ListIntentsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ListPagesResponse: The response message
// for Pages.ListPages.
type GoogleCloudDialogflowCxV3beta1ListPagesResponse struct {
// NextPageToken: Token to retrieve the next page of results, or empty
// if there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// Pages: The list of pages. There will be a maximum number of items
// returned based on the page_size field in the request.
Pages []*GoogleCloudDialogflowCxV3beta1Page `json:"pages,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ListPagesResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ListPagesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse: The
// response message for SessionEntityTypes.ListSessionEntityTypes.
type GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse struct {
// NextPageToken: Token to retrieve the next page of results, or empty
// if there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// SessionEntityTypes: 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 []*GoogleCloudDialogflowCxV3beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse: The
// response message for TransitionRouteGroups.ListTransitionRouteGroups.
type GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse struct {
// NextPageToken: Token to retrieve the next page of results, or empty
// if there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// TransitionRouteGroups: The list of transition route groups. There
// will be a maximum number of items returned based on the page_size
// field in the request. The list may in some cases be empty or contain
// fewer entries than page_size even if this isn't the last page.
TransitionRouteGroups []*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup `json:"transitionRouteGroups,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ListVersionsResponse: The response
// message for Versions.ListVersions.
type GoogleCloudDialogflowCxV3beta1ListVersionsResponse struct {
// NextPageToken: Token to retrieve the next page of results, or empty
// if there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// Versions: A list of versions. There will be a maximum number of items
// returned based on the page_size field in the request. The list may in
// some cases be empty or contain fewer entries than page_size even if
// this isn't the last page.
Versions []*GoogleCloudDialogflowCxV3beta1Version `json:"versions,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ListVersionsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ListVersionsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1ListWebhooksResponse: The response
// message for Webhooks.ListWebhooks.
type GoogleCloudDialogflowCxV3beta1ListWebhooksResponse struct {
// NextPageToken: Token to retrieve the next page of results, or empty
// if there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// Webhooks: The list of webhooks. There will be a maximum number of
// items returned based on the page_size field in the request.
Webhooks []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhooks,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1ListWebhooksResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1ListWebhooksResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1LoadVersionRequest: The request message
// for Versions.LoadVersion.
type GoogleCloudDialogflowCxV3beta1LoadVersionRequest struct {
// AllowOverrideAgentResources: This field is used to prevent accidental
// overwrite of other agent resources in the draft version, which can
// potentially impact other flow's behavior. If
// `allow_override_agent_resources` is false, conflicted agent-level
// resources will not be overridden (i.e. intents, entities, webhooks).
AllowOverrideAgentResources bool `json:"allowOverrideAgentResources,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AllowOverrideAgentResources") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "AllowOverrideAgentResources") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1LoadVersionRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1LoadVersionRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse: The
// response message for Environments.LookupEnvironmentHistory.
type GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse struct {
// Environments: Represents a list of snapshots for an environment. Time
// of the snapshots is stored in `update_time`.
Environments []*GoogleCloudDialogflowCxV3beta1Environment `json:"environments,omitempty"`
// NextPageToken: Token to retrieve the next page of results, or empty
// if there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Environments") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Environments") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1Match: Represents one match result of
// MatchIntent.
type GoogleCloudDialogflowCxV3beta1Match struct {
// Confidence: The confidence of this match. 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.
Confidence float64 `json:"confidence,omitempty"`
// Intent: The Intent that matched the query. Some, not all fields are
// filled in this message, including but not limited to: `name` and
// `display_name`. Only filled for `INTENT` match type.
Intent *GoogleCloudDialogflowCxV3beta1Intent `json:"intent,omitempty"`
// MatchType: Type of this Match.
//
// Possible values:
// "MATCH_TYPE_UNSPECIFIED" - Not specified. Should never be used.
// "INTENT" - The query was matched to an intent.
// "DIRECT_INTENT" - The query directly triggered an intent.
// "PARAMETER_FILLING" - The query was used for parameter filling.
// "NO_MATCH" - No match was found for the query.
// "NO_INPUT" - Indicates an empty query.
MatchType string `json:"matchType,omitempty"`
// Parameters: The collection of parameters extracted from the query.
// 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 googleapi.RawMessage `json:"parameters,omitempty"`
// ResolvedInput: Final text input which was matched during MatchIntent.
// This value can be different from original input sent in request
// because of spelling correction or other processing.
ResolvedInput string `json:"resolvedInput,omitempty"`
// ForceSendFields is a list of field names (e.g. "Confidence") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Confidence") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1Match) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1Match
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *GoogleCloudDialogflowCxV3beta1Match) UnmarshalJSON(data []byte) error {
type NoMethod GoogleCloudDialogflowCxV3beta1Match
var s1 struct {
Confidence gensupport.JSONFloat64 `json:"confidence"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Confidence = float64(s1.Confidence)
return nil
}
// GoogleCloudDialogflowCxV3beta1MatchIntentRequest: Request of
// MatchIntent.
type GoogleCloudDialogflowCxV3beta1MatchIntentRequest struct {
// QueryInput: Required. The input specification.
QueryInput *GoogleCloudDialogflowCxV3beta1QueryInput `json:"queryInput,omitempty"`
// QueryParams: The parameters of this query.
QueryParams *GoogleCloudDialogflowCxV3beta1QueryParameters `json:"queryParams,omitempty"`
// ForceSendFields is a list of field names (e.g. "QueryInput") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "QueryInput") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1MatchIntentRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1MatchIntentRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1MatchIntentResponse: Response of
// MatchIntent.
type GoogleCloudDialogflowCxV3beta1MatchIntentResponse struct {
// CurrentPage: The current Page. Some, not all fields are filled in
// this message, including but not limited to `name` and `display_name`.
CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
// Matches: Match results, if more than one, ordered descendingly by the
// confidence we have that the particular intent matches the query.
Matches []*GoogleCloudDialogflowCxV3beta1Match `json:"matches,omitempty"`
// Text: If natural language text was provided as input, this field will
// contain a copy of the text.
Text string `json:"text,omitempty"`
// Transcript: If natural language speech audio was provided as input,
// this field will contain the trascript for the audio.
Transcript string `json:"transcript,omitempty"`
// TriggerEvent: If an event was provided as input, this field will
// contain a copy of the event name.
TriggerEvent string `json:"triggerEvent,omitempty"`
// TriggerIntent: If an intent was provided as input, this field will
// contain a copy of the intent identifier.
TriggerIntent string `json:"triggerIntent,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CurrentPage") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CurrentPage") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1MatchIntentResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1MatchIntentResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1NluSettings: Settings related to NLU.
type GoogleCloudDialogflowCxV3beta1NluSettings struct {
// ClassificationThreshold: 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
// no-match event 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 float64 `json:"classificationThreshold,omitempty"`
// ModelTrainingMode: Indicates NLU model training mode.
//
// Possible values:
// "MODEL_TRAINING_MODE_UNSPECIFIED" - Not specified.
// `MODEL_TRAINING_MODE_AUTOMATIC` will be used.
// "MODEL_TRAINING_MODE_AUTOMATIC" - NLU model training is
// automatically triggered when a flow gets modified. User can also
// manually trigger model training in this mode.
// "MODEL_TRAINING_MODE_MANUAL" - User needs to manually trigger NLU
// model training. Best for large flows whose models take long time to
// train.
ModelTrainingMode string `json:"modelTrainingMode,omitempty"`
// ModelType: Indicates the type of NLU model.
//
// Possible values:
// "MODEL_TYPE_UNSPECIFIED" - Not specified. `MODEL_TYPE_STANDARD`
// will be used.
// "MODEL_TYPE_STANDARD" - Use standard NLU model.
// "MODEL_TYPE_ADVANCED" - Use advanced NLU model.
ModelType string `json:"modelType,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ClassificationThreshold") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ClassificationThreshold")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1NluSettings) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1NluSettings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *GoogleCloudDialogflowCxV3beta1NluSettings) UnmarshalJSON(data []byte) error {
type NoMethod GoogleCloudDialogflowCxV3beta1NluSettings
var s1 struct {
ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.ClassificationThreshold = float64(s1.ClassificationThreshold)
return nil
}
// GoogleCloudDialogflowCxV3beta1OutputAudioConfig: Instructs the speech
// synthesizer how to generate the output audio content.
type GoogleCloudDialogflowCxV3beta1OutputAudioConfig struct {
// AudioEncoding: Required. Audio encoding of the synthesized audio
// content.
//
// Possible values:
// "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified.
// "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
// little-endian samples (Linear PCM). Audio content returned as
// LINEAR16 also contains a WAV header.
// "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps.
// "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" - MP3 audio at 64kbps.
// "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - 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.
// "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit
// audio samples using G.711 PCMU/mu-law.
AudioEncoding string `json:"audioEncoding,omitempty"`
// SampleRateHertz: Optional. 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 int64 `json:"sampleRateHertz,omitempty"`
// SynthesizeSpeechConfig: Optional. Configuration of how speech should
// be synthesized.
SynthesizeSpeechConfig *GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AudioEncoding") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1OutputAudioConfig) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1OutputAudioConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1Page: A Dialogflow CX conversation
// (session) can be described and visualized as a state machine. The
// states of a CX session are represented by pages. For each flow, you
// define many pages, where your combined pages can handle a complete
// conversation on the topics the flow is designed for. At any given
// moment, exactly one page is the current page, the current page is
// considered active, and the flow associated with that page is
// considered active. Every flow has a special start page. When a flow
// initially becomes active, the start page page becomes the current
// page. For each conversational turn, the current page will either stay
// the same or transition to another page. You configure each page to
// collect information from the end-user that is relevant for the
// conversational state represented by the page. For more information,
// see the [Page
// guide](https://cloud.google.com/dialogflow/cx/docs/concept/page).
type GoogleCloudDialogflowCxV3beta1Page struct {
// DisplayName: Required. The human-readable name of the page, unique
// within the agent.
DisplayName string `json:"displayName,omitempty"`
// EntryFulfillment: The fulfillment to call when the session is
// entering the page.
EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`
// EventHandlers: Handlers associated with the page to handle events
// such as webhook errors, no match or no input.
EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
// Form: The form associated with the page, used for collecting
// parameters relevant to the page.
Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`
// Name: The unique identifier of the page. Required for the
// Pages.UpdatePage method. Pages.CreatePage populates the name
// automatically. Format: `projects//locations//agents//flows//pages/`.
Name string `json:"name,omitempty"`
// TransitionRouteGroups: Ordered list of `TransitionRouteGroups`
// associated with the page. Transition route groups must be unique
// within a page. * If multiple transition routes within a page scope
// refer to the same intent, then the precedence order is: page's
// transition route -> page's transition route group -> flow's
// transition routes. * If multiple transition route groups within a
// page contain the same intent, then the first group in the ordered
// list takes precedence.
// Format:`projects//locations//agents//flows//transitionRouteGroups/`.
TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
// TransitionRoutes: A list of transitions for the transition rules of
// this page. They route the conversation to another page in the same
// flow, or another flow. When we are in a certain page, the
// TransitionRoutes are evalauted in the following order: *
// TransitionRoutes defined in the page with intent specified. *
// TransitionRoutes defined in the transition route groups. *
// TransitionRoutes defined in flow with intent specified. *
// TransitionRoutes defined in the page with only condition specified.
TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1Page) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1Page
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudDialogflowCxV3beta1PageInfo: Represents page information
// communicated to and from the webhook.
type GoogleCloudDialogflowCxV3beta1PageInfo struct {
// CurrentPage: Always present for WebhookRequest. Ignored for
// WebhookResponse. The unique identifier of the current page. Format:
// `projects//locations//agents//flows//pages/`.
CurrentPage string `json:"currentPage,omitempty"`
// FormInfo: Optional for both WebhookRequest and WebhookResponse.
// Information about the form.
FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "CurrentPage") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CurrentPage") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo