// 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/v3alpha1" // ... // 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/v3alpha1" 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:v3alpha1" const apiName = "dialogflow" const apiVersion = "v3alpha1" const basePath = "https://dialogflow.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)) 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.Operations = NewProjectsLocationsOperationsService(s) return rs } type ProjectsLocationsService struct { s *Service Operations *ProjectsLocationsOperationsService } 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 } // 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) } // 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"` // NextPage: Deprecated. Please use WebhookResponse.target_page // or // WebhookResponse.target_flow instead. // // Optional for WebhookResponse. // The unique identifier of the next page. This field can be set by // the // webhook to immediately transition to a page different from // `current_page`. // Format: `projects//locations//agents//flows//pages/`. NextPage string `json:"nextPage,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 raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1PageInfoFormInfo: Represents form // information. type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo 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 []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"` // State: Always present for WebhookRequest. Ignored for // WebhookResponse. // The current state of the form. // // Possible values: // "FORM_STATE_UNSPECIFIED" - Not specified. This value should be // never used. // "INITIALIZING" - The server is initializing the form. The webhook // can process the form // before parameter collection begins. // "COLLECTING" - The server is collecting form parameters from the // user. The webhook can // modify form parameters that have been collected or are to be // collected. // "FINALIZED" - The server has collected all required form parameters // from the user. // The webhook can modify collected form parameters. If any // required // parameter is invalidated by the webhook, the form will return to // the // parameter collection state; otherwise, parameter collection // will // conclude. State string `json:"state,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 *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo: // Represents parameter information. type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo 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"` // Prompt: Not set for WebhookRequest. Optional for WebhookResponse. // The prompt to send to the user to fill a required form parameter. // This // field can be set by the webhook. If set, this field overrides // the // prompt defined for the form parameter. Prompt []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"prompt,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 *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1ResponseMessage: 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 GoogleCloudDialogflowCxV3beta1ResponseMessage struct { // ConversationSuccess: Indicates that the conversation succeeded. ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"` // HumanAgentHandoff: Hands off conversation to a human agent. HumanAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff `json:"humanAgentHandoff,omitempty"` // Payload: Returns a response containing a custom, platform-specific // payload. Payload googleapi.RawMessage `json:"payload,omitempty"` // Text: Returns a text response. Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `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 *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess: // 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 GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess 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 *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff: // Indicates that the conversation should be handed off to a human // 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 GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff 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 *GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1ResponseMessageText: The text response // message. type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct { // Text: A collection of text responses. Text []string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Text") 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. "Text") 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 *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1SessionInfo: Represents session // information communicated to and from the webhook. type GoogleCloudDialogflowCxV3beta1SessionInfo 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 *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1WebhookRequest: The request message for // a webhook call. type GoogleCloudDialogflowCxV3beta1WebhookRequest 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 *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"` // IntentInfo: Information about the last matched intent. IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `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 []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"` // PageInfo: Information about page status. PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"` // Payload: Custom data set in QueryParameters.payload. Payload googleapi.RawMessage `json:"payload,omitempty"` // SessionInfo: Information about session status. SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `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 *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo: // Represents fulfillment information communicated to the webhook. type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo 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 *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo: Represents // intent information communicated to the webhook. type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo 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]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `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 *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterV // alue: Represents a value for an intent parameter. type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue 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 *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1WebhookResponse: The response message // for a webhook call. type GoogleCloudDialogflowCxV3beta1WebhookResponse 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 *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `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 *GoogleCloudDialogflowCxV3beta1PageInfo `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 *GoogleCloudDialogflowCxV3beta1SessionInfo `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 *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse: // Represents a fulfillment response to the user. type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse 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 []*GoogleCloudDialogflowCxV3beta1ResponseMessage `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 *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a // message possibly annotated with an entity. The part // can be an entity or purely a part of the message between two entities // or // message start/end. type GoogleCloudDialogflowV2AnnotatedMessagePart struct { // EntityType: The [Dialogflow system // entity // type](https://cloud.google.com/dialogflow/docs/reference/system // -entities) // of this message part. If this is empty, Dialogflow could not annotate // the // phrase part with a system entity. EntityType string `json:"entityType,omitempty"` // FormattedValue: The [Dialogflow system entity formatted // value // ](https://cloud.google.com/dialogflow/docs/reference/system-enti // ties) of // this message part. For example for a system entity of // type // `@sys.unit-currency`, this may contain: //
	// {
	//   "amount": 5,
	//   "currency": "USD"
	// }
	// 
FormattedValue interface{} `json:"formattedValue,omitempty"` // Text: A part of a message possibly annotated with an entity. Text string `json:"text,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 *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse: The response // message for EntityTypes.BatchUpdateEntityTypes. type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct { // EntityTypes: The collection of updated or created entity types. EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"` // 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 *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2BatchUpdateIntentsResponse: The response // message for Intents.BatchUpdateIntents. type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct { // Intents: The collection of updated or created intents. Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"` // 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 *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2Context: Represents a context. type GoogleCloudDialogflowV2Context struct { // LifespanCount: Optional. The number of conversational query requests // after which the // context expires. The default is `0`. If set to `0`, the context // expires // immediately. Contexts expire automatically after 20 minutes if // there // are no matching queries. LifespanCount int64 `json:"lifespanCount,omitempty"` // Name: Required. The unique identifier of the context. // Format: // `projects//agent/sessions//contexts/`, // or `projects//agent/environments//users//sessions//contexts/`. // // The `Context ID` is always converted to lowercase, may only // contain // characters in a-zA-Z0-9_-% and may be at most 250 bytes long. // // If `Environment ID` is not specified, we assume default // 'draft' // environment. If `User ID` is not specified, we assume default '-' // user. // // The following context names are reserved for internal use by // Dialogflow. // You should not use these contexts or create contexts with these // names: // // * `__system_counters__` // * `*_id_dialog_context` // * `*_dialog_params_size` Name string `json:"name,omitempty"` // Parameters: Optional. The collection of parameters associated with // this context. // // Depending on your protocol or client library language, this is a // map, associative array, symbol table, dictionary, or JSON // object // composed of a collection of (MapKey, MapValue) pairs: // // - MapKey type: string // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map // - Else: string or number, depending on parameter value type // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values // - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "LifespanCount") 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. "LifespanCount") 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 *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2Context raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2ConversationEvent: Represents a notification // sent to Cloud Pub/Sub subscribers for conversation // lifecycle events. type GoogleCloudDialogflowV2ConversationEvent struct { // Conversation: The unique identifier of the conversation this // notification // refers to. // Format: `projects//conversations/`. Conversation string `json:"conversation,omitempty"` // ErrorStatus: More detailed information about an error. Only set for // type // UNRECOVERABLE_ERROR_IN_PHONE_CALL. ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"` // NewMessagePayload: Payload of NEW_MESSAGE event. NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"` // Type: The type of the event that this notification refers to. // // Possible values: // "TYPE_UNSPECIFIED" - Type not set. // "CONVERSATION_STARTED" - A new conversation has been opened. This // is fired when a telephone call // is answered, or a conversation is created via the API. // "CONVERSATION_FINISHED" - An existing conversation has closed. This // is fired when a telephone call // is terminated, or a conversation is closed via the API. // "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received // notification from Dialogflow that // human intervention is required. // "NEW_MESSAGE" - An existing conversation has received a new // message, either from API or // telephony. It is configured // in // ConversationProfile.new_message_event_notification_config // "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone // call. // // In general non-recoverable errors only occur if something // was // misconfigured in the ConversationProfile corresponding to the call. // After // a non-recoverable error, Dialogflow may stop responding. // // We don't fire this event: // * in an API call because we can directly return the error, or, // * when we can recover from an error. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Conversation") 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. "Conversation") 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 *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2ConversationEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2EntityType: Represents an entity type. // Entity types serve as a tool for extracting parameter values from // natural // language queries. type GoogleCloudDialogflowV2EntityType struct { // AutoExpansionMode: Optional. 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 name of the entity type. DisplayName string `json:"displayName,omitempty"` // EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction // during classification. EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"` // Entities: Optional. The collection of entity entries associated with // the entity type. Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,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 reference // value. // "KIND_LIST" - List entity types contain a set of entries that do // not map to reference // values. However, list entity types can contain references to other // entity // types (with or without aliases). // "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 // and // EntityTypes.BatchUpdateEntityTypes methods. // Format: `projects//agent/entityTypes/`. Name string `json:"name,omitempty"` // 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 *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2EntityType raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2EntityTypeEntity: An **entity entry** for an // associated entity type. type GoogleCloudDialogflowV2EntityTypeEntity 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 reference value to be used in place of synonyms. // // For `KIND_LIST` entity types: // // * A string that can contain references to other entity types (with // or // without aliases). Value string `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 *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2EntityTypeEntity raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2EventInput: Events allow for matching intents // by event name instead of the natural // language input. For instance, input `` can trigger a personalized welcome // response. // The parameter `name` may be used by the agent in the // response: // "Hello #welcome_event.name! What can I do for you today?". type GoogleCloudDialogflowV2EventInput struct { // LanguageCode: Required. The language of this query. See // [Language // Support](https://cloud.google.com/dialogflow/docs/reference/ // language) // for a list of the currently supported language codes. Note that // queries in // the same session do not necessarily need to specify the same // language. LanguageCode string `json:"languageCode,omitempty"` // Name: Required. The unique identifier of the event. Name string `json:"name,omitempty"` // Parameters: The collection of parameters associated with the // event. // // Depending on your protocol or client library language, this is a // map, associative array, symbol table, dictionary, or JSON // object // composed of a collection of (MapKey, MapValue) pairs: // // - MapKey type: string // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map // - Else: string or number, depending on parameter value type // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values // - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "LanguageCode") 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. "LanguageCode") 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 *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2EventInput raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2ExportAgentResponse: The response message for // Agents.ExportAgent. type GoogleCloudDialogflowV2ExportAgentResponse struct { // AgentContent: Zip compressed 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 *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2ExportAgentResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2Intent: Represents an intent. // Intents convert a number of user expressions or patterns into an // action. An // action is an extraction of a user command or sentence semantics. type GoogleCloudDialogflowV2Intent struct { // Action: Optional. The name of the action associated with the // intent. // Note: The action name must not contain whitespaces. Action string `json:"action,omitempty"` // DefaultResponsePlatforms: Optional. The list of platforms for which // the first responses will be // copied from the messages in PLATFORM_UNSPECIFIED (i.e. default // platform). // // Possible values: // "PLATFORM_UNSPECIFIED" - Default platform. // "FACEBOOK" - Facebook. // "SLACK" - Slack. // "TELEGRAM" - Telegram. // "KIK" - Kik. // "SKYPE" - Skype. // "LINE" - Line. // "VIBER" - Viber. // "ACTIONS_ON_GOOGLE" - Google Assistant // See [Dialogflow // webhook // format](https://developers.google.com/assistant/actions/build/ // json/dialogflow-webhook-json) // "GOOGLE_HANGOUTS" - Google Hangouts. DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"` // DisplayName: Required. The name of this intent. DisplayName string `json:"displayName,omitempty"` // Events: Optional. The collection of event names that trigger the // intent. // If the collection of input contexts is not empty, all of the contexts // must // be present in the active user session for an event to trigger this // intent. // Event names are limited to 150 characters. Events []string `json:"events,omitempty"` // FollowupIntentInfo: Read-only. Information about all followup intents // that have this intent as // a direct or indirect parent. We populate this field only in the // output. FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"` // InputContextNames: Optional. The list of context names required for // this intent to be // triggered. // Format: `projects//agent/sessions/-/contexts/`. InputContextNames []string `json:"inputContextNames,omitempty"` // IsFallback: Optional. Indicates whether this is a fallback intent. IsFallback bool `json:"isFallback,omitempty"` // Messages: Optional. The collection of rich messages corresponding to // the // `Response` field in the Dialogflow console. Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"` // MlDisabled: Optional. Indicates whether Machine Learning is disabled // for the intent. // Note: If `ml_disabled` setting is set to true, then this intent is // not // taken into account during inference in `ML ONLY` match mode. // Also, // auto-markup in the UI is turned off. MlDisabled bool `json:"mlDisabled,omitempty"` // Name: Optional. The unique identifier of this intent. // Required for Intents.UpdateIntent and // Intents.BatchUpdateIntents // methods. // Format: `projects//agent/intents/`. Name string `json:"name,omitempty"` // OutputContexts: Optional. The collection of contexts that are // activated when the intent // is matched. Context messages in this collection should not set // the // parameters field. Setting the `lifespan_count` to 0 will reset the // context // when the intent is matched. // Format: `projects//agent/sessions/-/contexts/`. OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"` // Parameters: Optional. The collection of parameters associated with // the intent. Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"` // ParentFollowupIntentName: Read-only after creation. The unique // identifier of the parent intent in the // chain of followup intents. You can set this field when creating an // intent, // for example with CreateIntent or // BatchUpdateIntents, in order to make this // intent a followup intent. // // It identifies the parent followup intent. // Format: `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` // Priority: Optional. The priority of this intent. Higher numbers // represent higher // priorities. // // - If the supplied value is unspecified or 0, the service // translates the value to 500,000, which corresponds to the // `Normal` priority in the console. // - If the supplied value is negative, the intent is ignored // in runtime detect intent requests. Priority int64 `json:"priority,omitempty"` // ResetContexts: Optional. Indicates whether to delete all contexts in // the current // session when this intent is matched. ResetContexts bool `json:"resetContexts,omitempty"` // RootFollowupIntentName: Read-only. The unique identifier of the root // intent in the chain of // followup intents. It identifies the correct followup intents chain // for // this intent. We populate this field only in the output. // // Format: `projects//agent/intents/`. RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"` // TrainingPhrases: Optional. The collection of examples that the agent // is // trained on. TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"` // WebhookState: Optional. Indicates whether webhooks are enabled for // the intent. // // Possible values: // "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and // in the intent. // "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in // the intent. // "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in // the agent and in the intent. Also, each slot // filling prompt is forwarded to the webhook. WebhookState string `json:"webhookState,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2Intent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentFollowupIntentInfo: Represents a single // followup intent in the chain. type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct { // FollowupIntentName: The unique identifier of the followup // intent. // Format: `projects//agent/intents/`. FollowupIntentName string `json:"followupIntentName,omitempty"` // ParentFollowupIntentName: The unique identifier of the followup // intent's parent. // Format: `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` // ForceSendFields is a list of field names (e.g. "FollowupIntentName") // 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. "FollowupIntentName") 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 *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessage: A rich response // message. // Corresponds to the intent `Response` field in the Dialogflow // console. // For more information, see // [Rich // response // messages](https://cloud.google.com/dialogflow/docs/intents-ri // ch-messages). type GoogleCloudDialogflowV2IntentMessage struct { // BasicCard: The basic card response for Actions on Google. BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"` // BrowseCarouselCard: Browse carousel card for Actions on Google. BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"` // Card: The card response. Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"` // CarouselSelect: The carousel card response for Actions on Google. CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"` // Image: The image response. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // LinkOutSuggestion: The link out suggestion chip for Actions on // Google. LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"` // ListSelect: The list card response for Actions on Google. ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"` // MediaContent: The media content card for Actions on Google. MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"` // Payload: A custom platform-specific response. Payload googleapi.RawMessage `json:"payload,omitempty"` // Platform: Optional. The platform that this message is intended for. // // Possible values: // "PLATFORM_UNSPECIFIED" - Default platform. // "FACEBOOK" - Facebook. // "SLACK" - Slack. // "TELEGRAM" - Telegram. // "KIK" - Kik. // "SKYPE" - Skype. // "LINE" - Line. // "VIBER" - Viber. // "ACTIONS_ON_GOOGLE" - Google Assistant // See [Dialogflow // webhook // format](https://developers.google.com/assistant/actions/build/ // json/dialogflow-webhook-json) // "GOOGLE_HANGOUTS" - Google Hangouts. Platform string `json:"platform,omitempty"` // QuickReplies: The quick replies response. QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"` // SimpleResponses: The voice and text-only responses for Actions on // Google. SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"` // Suggestions: The suggestion chips for Actions on Google. Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"` // TableCard: Table card for Actions on Google. TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"` // Text: The text response. Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "BasicCard") 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. "BasicCard") 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 *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessage raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageBasicCard: The basic card // message. Useful for displaying information. type GoogleCloudDialogflowV2IntentMessageBasicCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"` // FormattedText: Required, unless image is present. The body text of // the card. FormattedText string `json:"formattedText,omitempty"` // Image: Optional. The image for the card. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") 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. "Buttons") 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 *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageBasicCardButton: The button // object that appears at the bottom of a card. type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct { // OpenUriAction: Required. Action to take when a user taps on the // button. OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"` // Title: Required. The title of the button. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "OpenUriAction") 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. "OpenUriAction") 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 *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction: // Opens the given URI. type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct { // Uri: Required. The HTTP or HTTPS scheme URI. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "Uri") 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. "Uri") 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 *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard: Browse // Carousel Card for Actions on // Google. // https://developers.google.com/actions/assistant/responses#brow // sing_carousel type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct { // ImageDisplayOptions: Optional. Settings for displaying the image. // Applies to every image in // items. // // Possible values: // "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the // image and the image container with gray // bars. // "GRAY" - Fill the gaps between the image and the image container // with gray // bars. // "WHITE" - Fill the gaps between the image and the image container // with white // bars. // "CROPPED" - Image is scaled such that the image width and height // match or exceed // the container dimensions. This may crop the top and bottom of // the // image if the scaled image height is greater than the // container // height, or crop the left and right of the image if the scaled // image // width is greater than the container width. This is similar to // "Zoom // Mode" on a widescreen TV when playing a 4:3 video. // "BLURRED_BACKGROUND" - Pad the gaps between image and image frame // with a blurred copy of the // same image. ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"` // Items: Required. List of items in the Browse Carousel Card. Minimum // of two // items, maximum of ten. Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") // 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. "ImageDisplayOptions") 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 *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa // rdItem: Browsing carousel tile type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct { // Description: Optional. Description of the carousel item. Maximum of // four lines of // text. Description string `json:"description,omitempty"` // Footer: Optional. Text that appears at the bottom of the Browse // Carousel // Card. Maximum of one line of text. Footer string `json:"footer,omitempty"` // Image: Optional. Hero image for the carousel item. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // OpenUriAction: Required. Action to present to the user. OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"` // Title: Required. Title of the carousel item. Maximum of two lines of // text. Title string `json:"title,omitempty"` // 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 *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa // rdItemOpenUrlAction: Actions on Google action to open a given url. type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct { // Url: Required. URL Url string `json:"url,omitempty"` // UrlTypeHint: Optional. Specifies the type of viewer that is used when // opening // the URL. Defaults to opening via web browser. // // Possible values: // "URL_TYPE_HINT_UNSPECIFIED" - Unspecified // "AMP_ACTION" - Url would be an amp action // "AMP_CONTENT" - URL that points directly to AMP content, or to a // canonical URL // which refers to AMP content via . UrlTypeHint string `json:"urlTypeHint,omitempty"` // ForceSendFields is a list of field names (e.g. "Url") 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. "Url") 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 *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageCard: The card response message. type GoogleCloudDialogflowV2IntentMessageCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"` // ImageUri: Optional. The public URI to an image file for the card. ImageUri string `json:"imageUri,omitempty"` // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") 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. "Buttons") 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 *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageCardButton: Contains information // about a button. type GoogleCloudDialogflowV2IntentMessageCardButton struct { // Postback: Optional. The text to send back to the Dialogflow API or a // URI to // open. Postback string `json:"postback,omitempty"` // Text: Optional. The text to show on the button. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Postback") 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. "Postback") 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 *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageCarouselSelect: The card for // presenting a carousel of options to select from. type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct { // Items: Required. Carousel items. Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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 *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageCarouselSelectItem: An item in // the carousel. type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct { // Description: Optional. The body text of the card. Description string `json:"description,omitempty"` // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // Info: Required. Additional info about the option item. Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"` // Title: Required. Title of the carousel item. Title string `json:"title,omitempty"` // 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 *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageColumnProperties: Column // properties for TableCard. type GoogleCloudDialogflowV2IntentMessageColumnProperties struct { // Header: Required. Column heading. Header string `json:"header,omitempty"` // HorizontalAlignment: Optional. Defines text alignment for all cells // in this column. // // Possible values: // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading // edge of the column. // "LEADING" - Text is aligned to the leading edge of the column. // "CENTER" - Text is centered in the column. // "TRAILING" - Text is aligned to the trailing edge of the column. HorizontalAlignment string `json:"horizontalAlignment,omitempty"` // ForceSendFields is a list of field names (e.g. "Header") 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. "Header") 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 *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageImage: The image response // message. type GoogleCloudDialogflowV2IntentMessageImage struct { // AccessibilityText: Optional. A text description of the image to be // used for accessibility, // e.g., screen readers. AccessibilityText string `json:"accessibilityText,omitempty"` // ImageUri: Optional. The public URI to an image file. ImageUri string `json:"imageUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessibilityText") // 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. "AccessibilityText") 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 *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageImage raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion: The suggestion // chip message that allows the user to jump out to the app // or website associated with this agent. type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct { // DestinationName: Required. The name of the app or site this chip is // linking to. DestinationName string `json:"destinationName,omitempty"` // Uri: Required. The URI of the app or site to open when the user taps // the // suggestion chip. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationName") 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. "DestinationName") 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 *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageListSelect: The card for // presenting a list of options to select from. type GoogleCloudDialogflowV2IntentMessageListSelect struct { // Items: Required. List items. Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"` // Subtitle: Optional. Subtitle of the list. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The overall title of the list. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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 *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageListSelectItem: An item in the // list. type GoogleCloudDialogflowV2IntentMessageListSelectItem struct { // Description: Optional. The main text describing the item. Description string `json:"description,omitempty"` // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // Info: Required. Additional information about this option. Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"` // Title: Required. The title of the list item. Title string `json:"title,omitempty"` // 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 *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageMediaContent: The media content // card for Actions on Google. type GoogleCloudDialogflowV2IntentMessageMediaContent struct { // MediaObjects: Required. List of media objects. MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"` // MediaType: Optional. What type of media is the content (ie "audio"). // // Possible values: // "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified. // "AUDIO" - Response media type is audio. MediaType string `json:"mediaType,omitempty"` // ForceSendFields is a list of field names (e.g. "MediaObjects") 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. "MediaObjects") 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 *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject: // Response media object for media content card. type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct { // ContentUrl: Required. Url where the media is stored. ContentUrl string `json:"contentUrl,omitempty"` // Description: Optional. Description of media card. Description string `json:"description,omitempty"` // Icon: Optional. Icon to display above media content. Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"` // LargeImage: Optional. Image to display above media content. LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"` // Name: Required. Name of media card. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "ContentUrl") 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. "ContentUrl") 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 *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageQuickReplies: The quick replies // response message. type GoogleCloudDialogflowV2IntentMessageQuickReplies struct { // QuickReplies: Optional. The collection of quick replies. QuickReplies []string `json:"quickReplies,omitempty"` // Title: Optional. The title of the collection of quick replies. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "QuickReplies") 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. "QuickReplies") 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 *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageSelectItemInfo: Additional info // about the select item for when it is triggered in a // dialog. type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct { // Key: Required. A unique key that will be sent back to the agent if // this // response is given. Key string `json:"key,omitempty"` // Synonyms: Optional. A list of synonyms that can also be used to // trigger this // item in dialog. Synonyms []string `json:"synonyms,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageSimpleResponse: The simple // response message containing speech or text. type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct { // DisplayText: Optional. The text to display. DisplayText string `json:"displayText,omitempty"` // Ssml: One of text_to_speech or ssml must be provided. Structured // spoken // response to the user in the SSML format. Mutually exclusive // with // text_to_speech. Ssml string `json:"ssml,omitempty"` // TextToSpeech: One of text_to_speech or ssml must be provided. The // plain text of the // speech output. Mutually exclusive with ssml. TextToSpeech string `json:"textToSpeech,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayText") 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. "DisplayText") 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 *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageSimpleResponses: The collection // of simple response candidates. // This message in `QueryResult.fulfillment_messages` // and // `WebhookResponse.fulfillment_messages` should contain only // one // `SimpleResponse`. type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct { // SimpleResponses: Required. The list of simple responses. SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"` // ForceSendFields is a list of field names (e.g. "SimpleResponses") 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. "SimpleResponses") 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 *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageSuggestion: The suggestion chip // message that the user can tap to quickly post a reply // to the conversation. type GoogleCloudDialogflowV2IntentMessageSuggestion struct { // Title: Required. The text shown the in the suggestion chip. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Title") 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. "Title") 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 *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageSuggestions: The collection of // suggestions. type GoogleCloudDialogflowV2IntentMessageSuggestions struct { // Suggestions: Required. The list of suggested replies. Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"` // ForceSendFields is a list of field names (e.g. "Suggestions") 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. "Suggestions") 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 *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageTableCard: Table card for Actions // on Google. type GoogleCloudDialogflowV2IntentMessageTableCard struct { // Buttons: Optional. List of buttons for the card. Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"` // ColumnProperties: Optional. Display properties for the columns in // this table. ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"` // Image: Optional. Image which should be displayed on the card. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // Rows: Optional. Rows in this table of data. Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"` // Subtitle: Optional. Subtitle to the title. Subtitle string `json:"subtitle,omitempty"` // Title: Required. Title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") 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. "Buttons") 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 *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageTableCardCell: Cell of // TableCardRow. type GoogleCloudDialogflowV2IntentMessageTableCardCell struct { // Text: Required. Text in this cell. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Text") 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. "Text") 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 *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageTableCardRow: Row of TableCard. type GoogleCloudDialogflowV2IntentMessageTableCardRow struct { // Cells: Optional. List of cells that make up this row. Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"` // DividerAfter: Optional. Whether to add a visual divider after this // row. DividerAfter bool `json:"dividerAfter,omitempty"` // ForceSendFields is a list of field names (e.g. "Cells") 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. "Cells") 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 *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageText: The text response message. type GoogleCloudDialogflowV2IntentMessageText struct { // Text: Optional. The collection of the agent's responses. Text []string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Text") 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. "Text") 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 *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageText raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentParameter: Represents intent parameters. type GoogleCloudDialogflowV2IntentParameter struct { // DefaultValue: Optional. The default value to use when the `value` // yields an empty // result. // Default values can be extracted from contexts by using the // following // syntax: `#context_name.parameter_name`. DefaultValue string `json:"defaultValue,omitempty"` // DisplayName: Required. The name of the parameter. DisplayName string `json:"displayName,omitempty"` // EntityTypeDisplayName: Optional. The name of the entity type, // prefixed with `@`, that // describes values of the parameter. If the parameter is // required, this must be provided. EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"` // IsList: Optional. Indicates whether the parameter represents a list // of values. IsList bool `json:"isList,omitempty"` // Mandatory: Optional. Indicates whether the parameter is required. // That is, // whether the intent cannot be completed without collecting the // parameter // value. Mandatory bool `json:"mandatory,omitempty"` // Name: The unique identifier of this parameter. Name string `json:"name,omitempty"` // Prompts: Optional. The collection of prompts that the agent can // present to the // user in order to collect a value for the parameter. Prompts []string `json:"prompts,omitempty"` // Value: Optional. The definition of the parameter value. It can be: // // - a constant string, // - a parameter value defined as `$parameter_name`, // - an original parameter value defined as // `$parameter_name.original`, // - a parameter value from some context defined as // `#context_name.parameter_name`. Value string `json:"value,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 *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentParameter raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentTrainingPhrase: Represents an example // that the agent is trained on. type GoogleCloudDialogflowV2IntentTrainingPhrase struct { // Name: Output only. The unique identifier of this training phrase. Name string `json:"name,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 `entity_type`, `alias`, and `user_defined` fields are // all // set. Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"` // TimesAddedCount: Optional. Indicates how many times this example was // added to // the intent. Each time a developer adds an existing sample by editing // an // intent or training, this counter is increased. TimesAddedCount int64 `json:"timesAddedCount,omitempty"` // Type: Required. The type of the training phrase. // // Possible values: // "TYPE_UNSPECIFIED" - Not specified. This value should never be // used. // "EXAMPLE" - Examples do not contain @-prefixed entity type names, // but example parts // can be annotated with entity types. // "TEMPLATE" - Templates are not annotated with entity types, but // they can contain // @-prefixed entity type names as substrings. // Template mode has been deprecated. Example mode is the only // supported // way to create new training phrases. If you have existing // training // phrases that you've created in template mode, those will continue // to // work. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentTrainingPhrasePart: Represents a part of // a training phrase. type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct { // Alias: Optional. The parameter name for the value extracted from // the // annotated part of the example. // This field is required for annotated parts of the training phrase. Alias string `json:"alias,omitempty"` // EntityType: Optional. The entity type name prefixed with `@`. // This field is required for annotated parts of the training phrase. EntityType string `json:"entityType,omitempty"` // Text: Required. The text for this part. Text string `json:"text,omitempty"` // UserDefined: Optional. Indicates whether the text was manually // annotated. // This field is set to true when the Dialogflow Console is used // to // manually annotate the part. When creating an annotated part with // the // API, you must set this to true. UserDefined bool `json:"userDefined,omitempty"` // ForceSendFields is a list of field names (e.g. "Alias") 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. "Alias") 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 *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2Message: Represents a message posted into a // conversation. type GoogleCloudDialogflowV2Message struct { // Content: Required. The message content. Content string `json:"content,omitempty"` // CreateTime: Output only. The time when the message was created. CreateTime string `json:"createTime,omitempty"` // LanguageCode: Optional. The message language. // This should be a // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) // language tag. Example: "en-US". LanguageCode string `json:"languageCode,omitempty"` // MessageAnnotation: Output only. The annotation for the message. MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"` // Name: The unique identifier of the message. // Format: `projects//conversations//messages/`. Name string `json:"name,omitempty"` // Participant: Output only. The participant that sends this message. Participant string `json:"participant,omitempty"` // ParticipantRole: Output only. The role of the participant. // // Possible values: // "ROLE_UNSPECIFIED" - Participant role not set. // "HUMAN_AGENT" - Participant is a human agent. // "AUTOMATED_AGENT" - Participant is an automated agent, such as a // Dialogflow agent. // "END_USER" - Participant is an end user that has called or chatted // with // Dialogflow services. ParticipantRole string `json:"participantRole,omitempty"` // ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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 *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2Message raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2MessageAnnotation: Represents the result of // annotation for the message. type GoogleCloudDialogflowV2MessageAnnotation struct { // ContainEntities: Indicates whether the text message contains // entities. ContainEntities bool `json:"containEntities,omitempty"` // Parts: The collection of annotated message parts ordered by // their // position in the message. You can recover the annotated message // by // concatenating [AnnotatedMessagePart.text]. Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"` // ForceSendFields is a list of field names (e.g. "ContainEntities") 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. "ContainEntities") 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 *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2MessageAnnotation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2OriginalDetectIntentRequest: Represents the // contents of the original request that was passed to // the `[Streaming]DetectIntent` call. type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct { // Payload: Optional. This field is set to the value of the // `QueryParameters.payload` // field passed in the request. Some integrations that query a // Dialogflow // agent may provide additional information in the payload. // // In particular, for the Dialogflow Phone Gateway integration, this // field has // the form: //
{
	//  "telephony": {
	//    "caller_id": "+18558363987"
	//  }
	// }
// Note: The caller ID field (`caller_id`) will be redacted for // Standard // Edition agents and populated with the caller ID in // [E.164 // format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition // agents. Payload googleapi.RawMessage `json:"payload,omitempty"` // Source: The source of this request, e.g., `google`, `facebook`, // `slack`. It is set // by Dialogflow-owned servers. Source string `json:"source,omitempty"` // Version: Optional. The version of the protocol used for this // request. // This field is AoG-specific. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Payload") 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. "Payload") 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 *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2QueryResult: Represents the result of // conversational query or event processing. type GoogleCloudDialogflowV2QueryResult struct { // Action: The action name from the matched intent. Action string `json:"action,omitempty"` // AllRequiredParamsPresent: This field is set to: // // - `false` if the matched intent has required parameters and not all // of // the required parameter values have been collected. // - `true` if all required parameter values have been collected, or if // the // matched intent doesn't contain any required parameters. AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"` // DiagnosticInfo: Free-form diagnostic information for the associated // detect intent request. // The fields of this data can change without notice, so you should not // write // code that depends on its structure. // The data may contain: // // - webhook call latency // - webhook errors DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"` // FulfillmentMessages: The collection of rich messages to present to // the user. FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"` // FulfillmentText: The text to be pronounced to the user or shown on // the screen. // Note: This is a legacy field, `fulfillment_messages` should be // preferred. FulfillmentText string `json:"fulfillmentText,omitempty"` // Intent: The intent that matched the conversational query. Some, // not // all fields are filled in this message, including but not limited // to: // `name`, `display_name`, `end_interaction` and `is_fallback`. Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"` // IntentDetectionConfidence: The intent detection confidence. Values // range from 0.0 // (completely uncertain) to 1.0 (completely certain). // This value is for informational purpose only and is only used to // help match the best intent within the classification threshold. // This value may change for the same end-user expression at any time // due to a // model retraining or change in implementation. // If there are `multiple knowledge_answers` messages, this value is set // to // the greatest `knowledgeAnswers.match_confidence` value in the list. IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"` // LanguageCode: The language that was triggered during intent // detection. // See // [Language // Support](https://cloud.google.com/dialogflow/docs/reference/ // language) // for a list of the currently supported language codes. LanguageCode string `json:"languageCode,omitempty"` // OutputContexts: The collection of output contexts. If // applicable, // `output_contexts.parameters` contains entries with name // `.original` containing the original parameter // values // before the query. OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"` // Parameters: The collection of extracted parameters. // // Depending on your protocol or client library language, this is a // map, associative array, symbol table, dictionary, or JSON // object // composed of a collection of (MapKey, MapValue) pairs: // // - MapKey type: string // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map // - Else: string or number, depending on parameter value type // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values // - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // QueryText: The original conversational query text: // // - If natural language text was provided as input, `query_text` // contains // a copy of the input. // - If natural language speech audio was provided as input, // `query_text` // contains the speech recognition result. If speech recognizer // produced // multiple alternatives, a particular one is picked. // - If automatic spell correction is enabled, `query_text` will contain // the // corrected user input. QueryText string `json:"queryText,omitempty"` // SentimentAnalysisResult: The sentiment analysis result, which depends // on the // `sentiment_analysis_request_config` specified in the request. SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"` // SpeechRecognitionConfidence: The Speech recognition confidence // between 0.0 and 1.0. A higher number // indicates an estimated greater likelihood that the recognized words // are // correct. The default of 0.0 is a sentinel value indicating that // confidence // was not set. // // This field is not guaranteed to be accurate or set. In particular // this // field isn't set for StreamingDetectIntent since the streaming // endpoint has // separate confidence estimates per portion of the audio // in // StreamingRecognitionResult. SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"` // WebhookPayload: If the query was fulfilled by a webhook call, this // field is set to the // value of the `payload` field returned in the webhook response. WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"` // WebhookSource: If the query was fulfilled by a webhook call, this // field is set to the // value of the `source` field returned in the webhook response. WebhookSource string `json:"webhookSource,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2QueryResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error { type NoMethod GoogleCloudDialogflowV2QueryResult var s1 struct { IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"` SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence) s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence) return nil } // GoogleCloudDialogflowV2Sentiment: The sentiment, such as // positive/negative feeling or association, for a unit // of analysis, such as the query text. type GoogleCloudDialogflowV2Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute // magnitude of sentiment, regardless of score (positive or negative). Magnitude float64 `json:"magnitude,omitempty"` // Score: Sentiment score between -1.0 (negative sentiment) and 1.0 // (positive // sentiment). Score float64 `json:"score,omitempty"` // ForceSendFields is a list of field names (e.g. "Magnitude") 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. "Magnitude") 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 *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2Sentiment raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error { type NoMethod GoogleCloudDialogflowV2Sentiment var s1 struct { Magnitude gensupport.JSONFloat64 `json:"magnitude"` Score gensupport.JSONFloat64 `json:"score"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } s.Magnitude = float64(s1.Magnitude) s.Score = float64(s1.Score) return nil } // GoogleCloudDialogflowV2SentimentAnalysisResult: The result of // sentiment analysis as configured // by // `sentiment_analysis_request_config`. type GoogleCloudDialogflowV2SentimentAnalysisResult struct { // QueryTextSentiment: The sentiment analysis result for `query_text`. QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"` // ForceSendFields is a list of field names (e.g. "QueryTextSentiment") // 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. "QueryTextSentiment") 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 *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2SessionEntityType: Represents a session entity // type. // // Extends or replaces a custom entity type at the user session level // (we // refer to the entity types defined at the agent level as "custom // entity // types"). // // Note: session entity types apply to all queries, regardless of the // language. type GoogleCloudDialogflowV2SessionEntityType struct { // Entities: Required. The collection of entities associated with this // session entity // type. Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"` // EntityOverrideMode: Required. Indicates whether the additional data // should override or // supplement the custom entity type definition. // // Possible values: // "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value // should be never used. // "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session // entities overrides the collection of entities // in the corresponding custom entity type. // "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session // entities extends the collection of entities in // the corresponding custom entity type. // // Note: Even in this override mode calls to // `ListSessionEntityTypes`, // `GetSessionEntityType`, `CreateSessionEntityType` // and // `UpdateSessionEntityType` only return the additional entities added // in // this session entity type. If you want to get the supplemented // list, // please call EntityTypes.GetEntityType on the custom entity type // and merge. EntityOverrideMode string `json:"entityOverrideMode,omitempty"` // Name: Required. The unique identifier of this session entity type. // Format: // `projects//agent/sessions//entityTypes/`, or `projects//agent/environments//users//sessions//entityTypes/`. // If `Environment ID` is not specified, we assume default // 'draft' // environment. If `User ID` is not specified, we assume default '-' // user. // // `` must be the display name of an existing // entity // type in the same agent that will be overridden or supplemented. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Entities") 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. "Entities") 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 *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2SessionEntityType raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2WebhookRequest: The request message for a // webhook call. type GoogleCloudDialogflowV2WebhookRequest struct { // OriginalDetectIntentRequest: Optional. The contents of the original // request that was passed to // `[Streaming]DetectIntent` call. OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"` // QueryResult: The result of the conversational query or event // processing. Contains the // same value as `[Streaming]DetectIntentResponse.query_result`. QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"` // ResponseId: The unique identifier of the response. Contains the same // value as // `[Streaming]DetectIntentResponse.response_id`. ResponseId string `json:"responseId,omitempty"` // Session: The unique identifier of detectIntent request session. // Can be used to identify end-user inside webhook // implementation. // Format: `projects//agent/sessions/`, // or // `projects//agent/environments//users//sessions/`. Session string `json:"session,omitempty"` // ForceSendFields is a list of field names (e.g. // "OriginalDetectIntentRequest") 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. // "OriginalDetectIntentRequest") 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 *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2WebhookRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2WebhookResponse: The response message for a // webhook call. // // This response is validated by the Dialogflow server. If validation // fails, // an error will be returned in the QueryResult.diagnostic_info // field. // Setting JSON fields to an empty value with the wrong type is a common // error. // To avoid this error: // // - Use "" for empty strings // - Use `{}` or `null` for empty objects // - Use `[]` or `null` for empty arrays // // For more information, see the // [Protocol Buffers // Language // Guide](https://developers.google.com/protocol-buffers/docs/pr // oto3#json). type GoogleCloudDialogflowV2WebhookResponse struct { // FollowupEventInput: Optional. Invokes the supplied events. // When this field is set, Dialogflow ignores the // `fulfillment_text`, // `fulfillment_messages`, and `payload` fields. FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"` // FulfillmentMessages: Optional. The rich response messages intended // for the end-user. // When provided, Dialogflow uses this field to // populate // QueryResult.fulfillment_messages sent to the integration or API // caller. FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"` // FulfillmentText: Optional. The text response message intended for the // end-user. // It is recommended to use `fulfillment_messages.text.text[0]` // instead. // When provided, Dialogflow uses this field to // populate // QueryResult.fulfillment_text sent to the integration or API caller. FulfillmentText string `json:"fulfillmentText,omitempty"` // OutputContexts: Optional. The collection of output contexts that will // overwrite currently // active contexts for the session and reset their lifespans. // When provided, Dialogflow uses this field to // populate // QueryResult.output_contexts sent to the integration or API caller. OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"` // Payload: Optional. This field can be used to pass custom data from // your webhook to the // integration or API caller. Arbitrary JSON objects are supported. // When provided, Dialogflow uses this field to // populate // QueryResult.webhook_payload sent to the integration or API // caller. // This field is also used by the // [Google // Assistant // integration](https://cloud.google.com/dialogflow/docs/integr // ations/aog) // for rich response messages. // See the format definition at [Google Assistant Dialogflow // webhook // format](https://developers.google.com/assistant/actions/build/ // json/dialogflow-webhook-json) Payload googleapi.RawMessage `json:"payload,omitempty"` // SessionEntityTypes: Optional. Additional session entity types to // replace or extend developer // entity types with. The entity synonyms apply to all languages and // persist // for the session. Setting this data from a webhook overwrites // the session entity types that have been set using // `detectIntent`, // `streamingDetectIntent` or SessionEntityType management methods. SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"` // Source: Optional. A custom field used to identify the webhook // source. // Arbitrary strings are supported. // When provided, Dialogflow uses this field to // populate // QueryResult.webhook_source sent to the integration or API caller. Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "FollowupEventInput") // 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. "FollowupEventInput") 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 *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2WebhookResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1AnnotatedConversationDataset: Represents // an annotated conversation dataset. // ConversationDataset can have multiple AnnotatedConversationDataset, // each of // them represents one result from one annotation // task. // AnnotatedConversationDataset can only be generated from annotation // task, // which will be triggered by LabelConversation. type GoogleCloudDialogflowV2beta1AnnotatedConversationDataset struct { // CompletedExampleCount: Output only. Number of examples that have // annotations in the annotated // conversation dataset. CompletedExampleCount int64 `json:"completedExampleCount,omitempty,string"` // CreateTime: Output only. Creation time of this annotated conversation // dataset. CreateTime string `json:"createTime,omitempty"` // Description: Optional. The description of the annotated conversation // dataset. // Maximum of 10000 bytes. Description string `json:"description,omitempty"` // DisplayName: Required. The display name of the annotated conversation // dataset. // It's specified when user starts an annotation task. Maximum of 64 // bytes. DisplayName string `json:"displayName,omitempty"` // ExampleCount: Output only. Number of examples in the annotated // conversation dataset. ExampleCount int64 `json:"exampleCount,omitempty,string"` // Name: Output only. AnnotatedConversationDataset resource name. // Format: // `projects//conversationDatasets//annotatedConversationDatasets/` Name string `json:"name,omitempty"` // QuestionTypeName: Output only. Question type name that identifies a // labeling task. // A question is a single task that a worker answers. A question type is // set // of related questions. Each question belongs to a particular question // type. // It can be used in CrowdCompute UI to filter and manage labeling // tasks. QuestionTypeName string `json:"questionTypeName,omitempty"` // ForceSendFields is a list of field names (e.g. // "CompletedExampleCount") 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. "CompletedExampleCount") 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 *GoogleCloudDialogflowV2beta1AnnotatedConversationDataset) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1AnnotatedConversationDataset raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse: The // response message for EntityTypes.BatchUpdateEntityTypes. type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct { // EntityTypes: The collection of updated or created entity types. EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"` // 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 *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse: The response // message for Intents.BatchUpdateIntents. type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct { // Intents: The collection of updated or created intents. Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"` // 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 *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1Context: Represents a context. type GoogleCloudDialogflowV2beta1Context struct { // LifespanCount: Optional. The number of conversational query requests // after which the // context expires. The default is `0`. If set to `0`, the context // expires // immediately. Contexts expire automatically after 20 minutes if // there // are no matching queries. LifespanCount int64 `json:"lifespanCount,omitempty"` // Name: Required. The unique identifier of the context. // Format: // `projects//agent/sessions//contexts/`, // or `projects//agent/environments//users//sessions//contexts/`. // // The `Context ID` is always converted to lowercase, may only // contain // characters in a-zA-Z0-9_-% and may be at most 250 bytes long. // // If `Environment ID` is not specified, we assume default // 'draft' // environment. If `User ID` is not specified, we assume default '-' // user. // // The following context names are reserved for internal use by // Dialogflow. // You should not use these contexts or create contexts with these // names: // // * `__system_counters__` // * `*_id_dialog_context` // * `*_dialog_params_size` Name string `json:"name,omitempty"` // Parameters: Optional. The collection of parameters associated with // this context. // // Depending on your protocol or client library language, this is a // map, associative array, symbol table, dictionary, or JSON // object // composed of a collection of (MapKey, MapValue) pairs: // // - MapKey type: string // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map // - Else: string or number, depending on parameter value type // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values // - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "LifespanCount") 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. "LifespanCount") 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 *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1Context raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1EntityType: Represents an entity // type. // Entity types serve as a tool for extracting parameter values from // natural // language queries. type GoogleCloudDialogflowV2beta1EntityType struct { // AutoExpansionMode: Optional. 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 name of the entity type. DisplayName string `json:"displayName,omitempty"` // EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction // during classification. EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"` // Entities: Optional. The collection of entity entries associated with // the entity type. Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,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 reference // value. // "KIND_LIST" - List entity types contain a set of entries that do // not map to reference // values. However, list entity types can contain references to other // entity // types (with or without aliases). // "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 // and // EntityTypes.BatchUpdateEntityTypes methods. // Format: `projects//agent/entityTypes/`. Name string `json:"name,omitempty"` // 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 *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1EntityType raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1EntityTypeEntity: An **entity entry** for // an associated entity type. type GoogleCloudDialogflowV2beta1EntityTypeEntity 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 reference value to be used in place of synonyms. // // For `KIND_LIST` entity types: // // * A string that can contain references to other entity types (with // or // without aliases). Value string `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 *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1EventInput: Events allow for matching // intents by event name instead of the natural // language input. For instance, input `` can trigger a personalized welcome // response. // The parameter `name` may be used by the agent in the // response: // "Hello #welcome_event.name! What can I do for you today?". type GoogleCloudDialogflowV2beta1EventInput struct { // LanguageCode: Required. The language of this query. See // [Language // Support](https://cloud.google.com/dialogflow/docs/reference/ // language) // for a list of the currently supported language codes. Note that // queries in // the same session do not necessarily need to specify the same // language. LanguageCode string `json:"languageCode,omitempty"` // Name: Required. The unique identifier of the event. Name string `json:"name,omitempty"` // Parameters: The collection of parameters associated with the // event. // // Depending on your protocol or client library language, this is a // map, associative array, symbol table, dictionary, or JSON // object // composed of a collection of (MapKey, MapValue) pairs: // // - MapKey type: string // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map // - Else: string or number, depending on parameter value type // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values // - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "LanguageCode") 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. "LanguageCode") 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 *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1EventInput raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1ExportAgentResponse: The response message // for Agents.ExportAgent. type GoogleCloudDialogflowV2beta1ExportAgentResponse struct { // AgentContent: Zip compressed 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 *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1Intent: Represents an intent. // Intents convert a number of user expressions or patterns into an // action. An // action is an extraction of a user command or sentence semantics. type GoogleCloudDialogflowV2beta1Intent struct { // Action: Optional. The name of the action associated with the // intent. // Note: The action name must not contain whitespaces. Action string `json:"action,omitempty"` // DefaultResponsePlatforms: Optional. The list of platforms for which // the first responses will be // copied from the messages in PLATFORM_UNSPECIFIED (i.e. default // platform). // // Possible values: // "PLATFORM_UNSPECIFIED" - Not specified. // "FACEBOOK" - Facebook. // "SLACK" - Slack. // "TELEGRAM" - Telegram. // "KIK" - Kik. // "SKYPE" - Skype. // "LINE" - Line. // "VIBER" - Viber. // "ACTIONS_ON_GOOGLE" - Google Assistant // See [Dialogflow // webhook // format](https://developers.google.com/assistant/actions/build/ // json/dialogflow-webhook-json) // "TELEPHONY" - Telephony Gateway. // "GOOGLE_HANGOUTS" - Google Hangouts. DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"` // DisplayName: Required. The name of this intent. DisplayName string `json:"displayName,omitempty"` // EndInteraction: Optional. Indicates that this intent ends an // interaction. Some integrations // (e.g., Actions on Google or Dialogflow phone gateway) use this // information // to close interaction with an end user. Default is false. EndInteraction bool `json:"endInteraction,omitempty"` // Events: Optional. The collection of event names that trigger the // intent. // If the collection of input contexts is not empty, all of the contexts // must // be present in the active user session for an event to trigger this // intent. // Event names are limited to 150 characters. Events []string `json:"events,omitempty"` // FollowupIntentInfo: Output only. Information about all followup // intents that have this intent as // a direct or indirect parent. We populate this field only in the // output. FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"` // InputContextNames: Optional. The list of context names required for // this intent to be // triggered. // Format: `projects//agent/sessions/-/contexts/`. InputContextNames []string `json:"inputContextNames,omitempty"` // IsFallback: Optional. Indicates whether this is a fallback intent. IsFallback bool `json:"isFallback,omitempty"` // Messages: Optional. The collection of rich messages corresponding to // the // `Response` field in the Dialogflow console. Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"` // MlDisabled: Optional. Indicates whether Machine Learning is disabled // for the intent. // Note: If `ml_disabled` setting is set to true, then this intent is // not // taken into account during inference in `ML ONLY` match mode. // Also, // auto-markup in the UI is turned off. MlDisabled bool `json:"mlDisabled,omitempty"` // MlEnabled: Optional. Indicates whether Machine Learning is enabled // for the intent. // Note: If `ml_enabled` setting is set to false, then this intent is // not // taken into account during inference in `ML ONLY` match mode. // Also, // auto-markup in the UI is turned off. // DEPRECATED! Please use `ml_disabled` field instead. // NOTE: If both `ml_enabled` and `ml_disabled` are either not set or // false, // then the default value is determined as follows: // - Before April 15th, 2018 the default is: // ml_enabled = false / ml_disabled = true. // - After April 15th, 2018 the default is: // ml_enabled = true / ml_disabled = false. MlEnabled bool `json:"mlEnabled,omitempty"` // Name: Optional. The unique identifier of this intent. // Required for Intents.UpdateIntent and // Intents.BatchUpdateIntents // methods. // Format: `projects//agent/intents/`. Name string `json:"name,omitempty"` // OutputContexts: Optional. The collection of contexts that are // activated when the intent // is matched. Context messages in this collection should not set // the // parameters field. Setting the `lifespan_count` to 0 will reset the // context // when the intent is matched. // Format: `projects//agent/sessions/-/contexts/`. OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"` // Parameters: Optional. The collection of parameters associated with // the intent. Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"` // ParentFollowupIntentName: Optional. The unique identifier of the // parent intent in the // chain of followup intents. You can set this field when creating an // intent, // for example with CreateIntent or // BatchUpdateIntents, in order to make this // intent a followup intent. // // It identifies the parent followup intent. // Format: `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` // Priority: Optional. The priority of this intent. Higher numbers // represent higher // priorities. // // - If the supplied value is unspecified or 0, the service // translates the value to 500,000, which corresponds to the // `Normal` priority in the console. // - If the supplied value is negative, the intent is ignored // in runtime detect intent requests. Priority int64 `json:"priority,omitempty"` // ResetContexts: Optional. Indicates whether to delete all contexts in // the current // session when this intent is matched. ResetContexts bool `json:"resetContexts,omitempty"` // RootFollowupIntentName: Output only. The unique identifier of the // root intent in the chain of // followup intents. It identifies the correct followup intents chain // for // this intent. // // Format: `projects//agent/intents/`. RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"` // TrainingPhrases: Optional. The collection of examples that the agent // is // trained on. TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"` // WebhookState: Optional. Indicates whether webhooks are enabled for // the intent. // // Possible values: // "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and // in the intent. // "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in // the intent. // "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in // the agent and in the intent. Also, each slot // filling prompt is forwarded to the webhook. WebhookState string `json:"webhookState,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1Intent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo: Represents a // single followup intent in the chain. type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct { // FollowupIntentName: The unique identifier of the followup // intent. // Format: `projects//agent/intents/`. FollowupIntentName string `json:"followupIntentName,omitempty"` // ParentFollowupIntentName: The unique identifier of the followup // intent's parent. // Format: `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` // ForceSendFields is a list of field names (e.g. "FollowupIntentName") // 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. "FollowupIntentName") 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 *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessage: Corresponds to the // `Response` field in the Dialogflow console. type GoogleCloudDialogflowV2beta1IntentMessage struct { // BasicCard: Displays a basic card for Actions on Google. BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"` // BrowseCarouselCard: Browse carousel card for Actions on Google. BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"` // Card: Displays a card. Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"` // CarouselSelect: Displays a carousel card for Actions on Google. CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"` // Image: Displays an image. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // LinkOutSuggestion: Displays a link out suggestion chip for Actions on // Google. LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"` // ListSelect: Displays a list card for Actions on Google. ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"` // MediaContent: The media content card for Actions on Google. MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"` // Payload: A custom platform-specific response. Payload googleapi.RawMessage `json:"payload,omitempty"` // Platform: Optional. The platform that this message is intended for. // // Possible values: // "PLATFORM_UNSPECIFIED" - Not specified. // "FACEBOOK" - Facebook. // "SLACK" - Slack. // "TELEGRAM" - Telegram. // "KIK" - Kik. // "SKYPE" - Skype. // "LINE" - Line. // "VIBER" - Viber. // "ACTIONS_ON_GOOGLE" - Google Assistant // See [Dialogflow // webhook // format](https://developers.google.com/assistant/actions/build/ // json/dialogflow-webhook-json) // "TELEPHONY" - Telephony Gateway. // "GOOGLE_HANGOUTS" - Google Hangouts. Platform string `json:"platform,omitempty"` // QuickReplies: Displays quick replies. QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"` // RbmCarouselRichCard: Rich Business Messaging (RBM) carousel rich card // response. RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"` // RbmStandaloneRichCard: Standalone Rich Business Messaging (RBM) rich // card response. RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"` // RbmText: Rich Business Messaging (RBM) text response. // // RBM allows businesses to send enriched and branded versions of SMS. // See // https://jibe.google.com/business-messaging. RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"` // SimpleResponses: Returns a voice or text-only response for Actions on // Google. SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"` // Suggestions: Displays suggestion chips for Actions on Google. Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"` // TableCard: Table card for Actions on Google. TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"` // TelephonyPlayAudio: Plays audio from a file in Telephony Gateway. TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"` // TelephonySynthesizeSpeech: Synthesizes speech in Telephony Gateway. TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"` // TelephonyTransferCall: Transfers the call in Telephony Gateway. TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"` // Text: Returns a text response. Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "BasicCard") 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. "BasicCard") 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 *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessage raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageBasicCard: The basic card // message. Useful for displaying information. type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"` // FormattedText: Required, unless image is present. The body text of // the card. FormattedText string `json:"formattedText,omitempty"` // Image: Optional. The image for the card. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") 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. "Buttons") 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 *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton: The button // object that appears at the bottom of a card. type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct { // OpenUriAction: Required. Action to take when a user taps on the // button. OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"` // Title: Required. The title of the button. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "OpenUriAction") 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. "OpenUriAction") 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 *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction: // Opens the given URI. type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct { // Uri: Required. The HTTP or HTTPS scheme URI. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "Uri") 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. "Uri") 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 *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard: Browse // Carousel Card for Actions on // Google. // https://developers.google.com/actions/assistant/responses#brow // sing_carousel type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct { // ImageDisplayOptions: Optional. Settings for displaying the image. // Applies to every image in // items. // // Possible values: // "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the // image and the image container with gray // bars. // "GRAY" - Fill the gaps between the image and the image container // with gray // bars. // "WHITE" - Fill the gaps between the image and the image container // with white // bars. // "CROPPED" - Image is scaled such that the image width and height // match or exceed // the container dimensions. This may crop the top and bottom of // the // image if the scaled image height is greater than the // container // height, or crop the left and right of the image if the scaled // image // width is greater than the container width. This is similar to // "Zoom // Mode" on a widescreen TV when playing a 4:3 video. // "BLURRED_BACKGROUND" - Pad the gaps between image and image frame // with a blurred copy of the // same image. ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"` // Items: Required. List of items in the Browse Carousel Card. Minimum // of two // items, maximum of ten. Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") // 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. "ImageDisplayOptions") 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 *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou // selCardItem: Browsing carousel tile type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct { // Description: Optional. Description of the carousel item. Maximum of // four lines of // text. Description string `json:"description,omitempty"` // Footer: Optional. Text that appears at the bottom of the Browse // Carousel // Card. Maximum of one line of text. Footer string `json:"footer,omitempty"` // Image: Optional. Hero image for the carousel item. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // OpenUriAction: Required. Action to present to the user. OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"` // Title: Required. Title of the carousel item. Maximum of two lines of // text. Title string `json:"title,omitempty"` // 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 *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou // selCardItemOpenUrlAction: Actions on Google action to open a given // url. type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct { // Url: Required. URL Url string `json:"url,omitempty"` // UrlTypeHint: Optional. Specifies the type of viewer that is used when // opening // the URL. Defaults to opening via web browser. // // Possible values: // "URL_TYPE_HINT_UNSPECIFIED" - Unspecified // "AMP_ACTION" - Url would be an amp action // "AMP_CONTENT" - URL that points directly to AMP content, or to a // canonical URL // which refers to AMP content via . UrlTypeHint string `json:"urlTypeHint,omitempty"` // ForceSendFields is a list of field names (e.g. "Url") 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. "Url") 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 *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageCard: The card response // message. type GoogleCloudDialogflowV2beta1IntentMessageCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"` // ImageUri: Optional. The public URI to an image file for the card. ImageUri string `json:"imageUri,omitempty"` // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") 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. "Buttons") 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 *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageCardButton: Optional. // Contains information about a button. type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct { // Postback: Optional. The text to send back to the Dialogflow API or a // URI to // open. Postback string `json:"postback,omitempty"` // Text: Optional. The text to show on the button. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Postback") 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. "Postback") 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 *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect: The card for // presenting a carousel of options to select from. type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct { // Items: Required. Carousel items. Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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 *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem: An item // in the carousel. type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct { // Description: Optional. The body text of the card. Description string `json:"description,omitempty"` // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // Info: Required. Additional info about the option item. Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"` // Title: Required. Title of the carousel item. Title string `json:"title,omitempty"` // 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 *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageColumnProperties: Column // properties for TableCard. type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct { // Header: Required. Column heading. Header string `json:"header,omitempty"` // HorizontalAlignment: Optional. Defines text alignment for all cells // in this column. // // Possible values: // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading // edge of the column. // "LEADING" - Text is aligned to the leading edge of the column. // "CENTER" - Text is centered in the column. // "TRAILING" - Text is aligned to the trailing edge of the column. HorizontalAlignment string `json:"horizontalAlignment,omitempty"` // ForceSendFields is a list of field names (e.g. "Header") 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. "Header") 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 *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageImage: The image response // message. type GoogleCloudDialogflowV2beta1IntentMessageImage struct { // AccessibilityText: A text description of the image to be used for // accessibility, // e.g., screen readers. Required if image_uri is set for // CarouselSelect. AccessibilityText string `json:"accessibilityText,omitempty"` // ImageUri: Optional. The public URI to an image file. ImageUri string `json:"imageUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessibilityText") // 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. "AccessibilityText") 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 *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion: The // suggestion chip message that allows the user to jump out to the // app // or website associated with this agent. type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct { // DestinationName: Required. The name of the app or site this chip is // linking to. DestinationName string `json:"destinationName,omitempty"` // Uri: Required. The URI of the app or site to open when the user taps // the // suggestion chip. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationName") 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. "DestinationName") 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 *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageListSelect: The card for // presenting a list of options to select from. type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct { // Items: Required. List items. Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"` // Subtitle: Optional. Subtitle of the list. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The overall title of the list. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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 *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageListSelectItem: An item in // the list. type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct { // Description: Optional. The main text describing the item. Description string `json:"description,omitempty"` // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // Info: Required. Additional information about this option. Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"` // Title: Required. The title of the list item. Title string `json:"title,omitempty"` // 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 *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageMediaContent: The media // content card for Actions on Google. type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct { // MediaObjects: Required. List of media objects. MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"` // MediaType: Optional. What type of media is the content (ie "audio"). // // Possible values: // "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified. // "AUDIO" - Response media type is audio. MediaType string `json:"mediaType,omitempty"` // ForceSendFields is a list of field names (e.g. "MediaObjects") 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. "MediaObjects") 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 *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObje // ct: Response media object for media content card. type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct { // ContentUrl: Required. Url where the media is stored. ContentUrl string `json:"contentUrl,omitempty"` // Description: Optional. Description of media card. Description string `json:"description,omitempty"` // Icon: Optional. Icon to display above media content. Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"` // LargeImage: Optional. Image to display above media content. LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"` // Name: Required. Name of media card. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "ContentUrl") 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. "ContentUrl") 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 *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageQuickReplies: The quick // replies response message. type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct { // QuickReplies: Optional. The collection of quick replies. QuickReplies []string `json:"quickReplies,omitempty"` // Title: Optional. The title of the collection of quick replies. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "QuickReplies") 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. "QuickReplies") 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 *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent: Rich // Business Messaging (RBM) Card content type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct { // Description: Optional. Description of the card (at most 2000 // bytes). // // At least one of the title, description or media must be set. Description string `json:"description,omitempty"` // Media: Optional. However at least one of the title, description or // media must // be set. Media (image, GIF or a video) to include in the card. Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"` // Suggestions: Optional. List of suggestions to include in the card. Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"` // Title: Optional. Title of the card (at most 200 bytes). // // At least one of the title, description or media must be set. Title string `json:"title,omitempty"` // 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 *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia: Rich // Business Messaging (RBM) Media displayed in Cards // The following media-types are currently supported: // // Image Types // // * image/jpeg // * image/jpg' // * image/gif // * image/png // // Video Types // // * video/h263 // * video/m4v // * video/mp4 // * video/mpeg // * video/mpeg4 // * video/webm type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct { // FileUri: Required. Publicly reachable URI of the file. The RBM // platform // determines the MIME type of the file from the content-type field // in // the HTTP headers when the platform fetches the file. The // content-type // field must be present and accurate in the HTTP response from the URL. FileUri string `json:"fileUri,omitempty"` // Height: Required for cards with vertical orientation. The height of // the media // within a rich card with a vertical layout. // (https://goo.gl/NeFCjz). // For a standalone card with horizontal layout, height is // not // customizable, and this field is ignored. // // Possible values: // "HEIGHT_UNSPECIFIED" - Not specified. // "SHORT" - 112 DP. // "MEDIUM" - 168 DP. // "TALL" - 264 DP. Not available for rich card carousels when the // card width // is set to small. Height string `json:"height,omitempty"` // ThumbnailUri: Optional. Publicly reachable URI of the thumbnail.If // you don't // provide a thumbnail URI, the RBM platform displays a // blank // placeholder thumbnail until the user's device downloads the // file. // Depending on the user's setting, the file may not // download // automatically and may require the user to tap a download button. ThumbnailUri string `json:"thumbnailUri,omitempty"` // ForceSendFields is a list of field names (e.g. "FileUri") 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. "FileUri") 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 *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard: Carousel // Rich Business Messaging (RBM) rich card. // // Rich cards allow you to respond to users with more vivid content, // e.g. // with media and suggestions. // // For more details about RBM rich cards, please // see: // https://developers.google.com/business-communications/rcs-busines // s-messaging/guides/build/messages/send#rich-cards // If you want to show a single card with more control over the // layout, // please use RbmStandaloneCard instead. type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct { // CardContents: Required. The cards in the carousel. A carousel must // have at least // 2 cards and at most 10. CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"` // CardWidth: Required. The width of the cards in the carousel. // // Possible values: // "CARD_WIDTH_UNSPECIFIED" - Not specified. // "SMALL" - 120 DP. Note that tall media cannot be used. // "MEDIUM" - 232 DP. CardWidth string `json:"cardWidth,omitempty"` // ForceSendFields is a list of field names (e.g. "CardContents") 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. "CardContents") 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 *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard: // Standalone Rich Business Messaging (RBM) rich card. // // Rich cards allow you to respond to users with more vivid content, // e.g. // with media and suggestions. // // For more details about RBM rich cards, please // see: // https://developers.google.com/business-communications/rcs-busines // s-messaging/guides/build/messages/send#rich-cards // You can group multiple rich cards into one using RbmCarouselCard // but // carousel cards will give you less control over the card layout. type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct { // CardContent: Required. Card content. CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"` // CardOrientation: Required. Orientation of the card. // // Possible values: // "CARD_ORIENTATION_UNSPECIFIED" - Not specified. // "HORIZONTAL" - Horizontal layout. // "VERTICAL" - Vertical layout. CardOrientation string `json:"cardOrientation,omitempty"` // ThumbnailImageAlignment: Required if orientation is horizontal. // Image preview alignment for standalone cards with horizontal layout. // // Possible values: // "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED" - Not specified. // "LEFT" - Thumbnail preview is left-aligned. // "RIGHT" - Thumbnail preview is right-aligned. ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"` // ForceSendFields is a list of field names (e.g. "CardContent") 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. "CardContent") 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 *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction: Rich // Business Messaging (RBM) suggested client-side action that the // user // can choose from the card. type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct { // Dial: Suggested client side action: Dial a phone number Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"` // OpenUrl: Suggested client side action: Open a URI on device OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"` // PostbackData: Opaque payload that the Dialogflow receives in a user // event // when the user taps the suggested action. This data will be // also // forwarded to webhook to allow performing custom business logic. PostbackData string `json:"postbackData,omitempty"` // ShareLocation: Suggested client side action: Share user location ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"` // Text: Text to display alongside the action. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Dial") 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. "Dial") 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 *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste // dActionDial: Opens the user's default dialer app with the specified // phone number // but does not dial automatically (https://goo.gl/ergbB2). type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct { // PhoneNumber: Required. The phone number to fill in the default dialer // app. // This field should be in // [E.164](https://en.wikipedia.org/wiki/E.164) // format. An example of a correctly formatted phone // number: // +15556767888. PhoneNumber string `json:"phoneNumber,omitempty"` // ForceSendFields is a list of field names (e.g. "PhoneNumber") 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. "PhoneNumber") 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 *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste // dActionOpenUri: Opens the user's default web browser app to the // specified uri // (https://goo.gl/6GLJD2). If the user has an app installed that // is // registered as the default handler for the URL, then this app will // be // opened instead, and its icon will be used in the suggested action UI. type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct { // Uri: Required. The uri to open on the user device Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "Uri") 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. "Uri") 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 *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste // dActionShareLocation: Opens the device's location chooser so the user // can pick a location // to send back to the agent (https://goo.gl/GXotJW). type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct { } // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply: Rich // Business Messaging (RBM) suggested reply that the user can // click // instead of typing in their own response. type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct { // PostbackData: Opaque payload that the Dialogflow receives in a user // event // when the user taps the suggested reply. This data will be // also // forwarded to webhook to allow performing custom business logic. PostbackData string `json:"postbackData,omitempty"` // Text: Suggested reply text. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "PostbackData") 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. "PostbackData") 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 *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion: Rich Business // Messaging (RBM) suggestion. Suggestions allow user to // easily select/click a predefined response or perform an action // (like // opening a web uri). type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct { // Action: Predefined client side actions that user can choose Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"` // Reply: Predefined replies for user to select instead of typing Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmText: Rich Business // Messaging (RBM) text response with suggestions. type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct { // RbmSuggestion: Optional. One or more suggestions to show to the user. RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"` // Text: Required. Text sent and displayed to the user. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "RbmSuggestion") 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. "RbmSuggestion") 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 *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo: Additional // info about the select item for when it is triggered in a // dialog. type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct { // Key: Required. A unique key that will be sent back to the agent if // this // response is given. Key string `json:"key,omitempty"` // Synonyms: Optional. A list of synonyms that can also be used to // trigger this // item in dialog. Synonyms []string `json:"synonyms,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse: The simple // response message containing speech or text. type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct { // DisplayText: Optional. The text to display. DisplayText string `json:"displayText,omitempty"` // Ssml: One of text_to_speech or ssml must be provided. Structured // spoken // response to the user in the SSML format. Mutually exclusive // with // text_to_speech. Ssml string `json:"ssml,omitempty"` // TextToSpeech: One of text_to_speech or ssml must be provided. The // plain text of the // speech output. Mutually exclusive with ssml. TextToSpeech string `json:"textToSpeech,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayText") 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. "DisplayText") 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 *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses: The // collection of simple response candidates. // This message in `QueryResult.fulfillment_messages` // and // `WebhookResponse.fulfillment_messages` should contain only // one // `SimpleResponse`. type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct { // SimpleResponses: Required. The list of simple responses. SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"` // ForceSendFields is a list of field names (e.g. "SimpleResponses") 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. "SimpleResponses") 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 *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageSuggestion: The suggestion // chip message that the user can tap to quickly post a reply // to the conversation. type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct { // Title: Required. The text shown the in the suggestion chip. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Title") 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. "Title") 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 *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageSuggestions: The collection // of suggestions. type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct { // Suggestions: Required. The list of suggested replies. Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"` // ForceSendFields is a list of field names (e.g. "Suggestions") 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. "Suggestions") 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 *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageTableCard: Table card for // Actions on Google. type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct { // Buttons: Optional. List of buttons for the card. Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"` // ColumnProperties: Optional. Display properties for the columns in // this table. ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"` // Image: Optional. Image which should be displayed on the card. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // Rows: Optional. Rows in this table of data. Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"` // Subtitle: Optional. Subtitle to the title. Subtitle string `json:"subtitle,omitempty"` // Title: Required. Title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") 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. "Buttons") 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 *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageTableCardCell: Cell of // TableCardRow. type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct { // Text: Required. Text in this cell. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Text") 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. "Text") 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 *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageTableCardRow: Row of // TableCard. type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct { // Cells: Optional. List of cells that make up this row. Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"` // DividerAfter: Optional. Whether to add a visual divider after this // row. DividerAfter bool `json:"dividerAfter,omitempty"` // ForceSendFields is a list of field names (e.g. "Cells") 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. "Cells") 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 *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio: Plays // audio from a file in Telephony Gateway. type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct { // AudioUri: Required. URI to a Google Cloud Storage object containing // the audio to // play, e.g., "gs://bucket/object". The object must contain a // single // channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. // // This object must be readable by the // `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service // account // where is the number of the Telephony Gateway // project // (usually the same as the Dialogflow agent project). If the Google // Cloud // Storage bucket is in the Telephony Gateway project, this permission // is // added by default when enabling the Dialogflow V2 API. // // For audio from other sources, consider using // the // `TelephonySynthesizeSpeech` message with SSML. AudioUri string `json:"audioUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AudioUri") 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. "AudioUri") 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 *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech: // Synthesizes speech and plays back the synthesized audio to the caller // in // Telephony Gateway. // // Telephony Gateway takes the synthesizer settings // from // `DetectIntentResponse.output_audio_config` which can either be set // at request-level or can come from the agent-level synthesizer config. type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct { // Ssml: The SSML to be synthesized. For more information, // see // [SSML](https://developers.google.com/actions/reference/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. "Ssml") 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. "Ssml") 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 *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall: // Transfers the call in Telephony Gateway. type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct { // PhoneNumber: Required. The phone number to transfer the call to // in [E.164 format](https://en.wikipedia.org/wiki/E.164). // // We currently only allow transferring to US numbers (+1xxxyyyzzzz). PhoneNumber string `json:"phoneNumber,omitempty"` // ForceSendFields is a list of field names (e.g. "PhoneNumber") 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. "PhoneNumber") 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 *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageText: The text response // message. type GoogleCloudDialogflowV2beta1IntentMessageText struct { // Text: Optional. The collection of the agent's responses. Text []string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Text") 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. "Text") 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 *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentParameter: Represents intent // parameters. type GoogleCloudDialogflowV2beta1IntentParameter struct { // DefaultValue: Optional. The default value to use when the `value` // yields an empty // result. // Default values can be extracted from contexts by using the // following // syntax: `#context_name.parameter_name`. DefaultValue string `json:"defaultValue,omitempty"` // DisplayName: Required. The name of the parameter. DisplayName string `json:"displayName,omitempty"` // EntityTypeDisplayName: Optional. The name of the entity type, // prefixed with `@`, that // describes values of the parameter. If the parameter is // required, this must be provided. EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"` // IsList: Optional. Indicates whether the parameter represents a list // of values. IsList bool `json:"isList,omitempty"` // Mandatory: Optional. Indicates whether the parameter is required. // That is, // whether the intent cannot be completed without collecting the // parameter // value. Mandatory bool `json:"mandatory,omitempty"` // Name: The unique identifier of this parameter. Name string `json:"name,omitempty"` // Prompts: Optional. The collection of prompts that the agent can // present to the // user in order to collect a value for the parameter. Prompts []string `json:"prompts,omitempty"` // Value: Optional. The definition of the parameter value. It can be: // // - a constant string, // - a parameter value defined as `$parameter_name`, // - an original parameter value defined as // `$parameter_name.original`, // - a parameter value from some context defined as // `#context_name.parameter_name`. Value string `json:"value,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 *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentParameter raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentTrainingPhrase: Represents an // example that the agent is trained on. type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct { // Name: Output only. The unique identifier of this training phrase. Name string `json:"name,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 `entity_type`, `alias`, and `user_defined` fields are // all // set. Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"` // TimesAddedCount: Optional. Indicates how many times this example was // added to // the intent. Each time a developer adds an existing sample by editing // an // intent or training, this counter is increased. TimesAddedCount int64 `json:"timesAddedCount,omitempty"` // Type: Required. The type of the training phrase. // // Possible values: // "TYPE_UNSPECIFIED" - Not specified. This value should never be // used. // "EXAMPLE" - Examples do not contain @-prefixed entity type names, // but example parts // can be annotated with entity types. // "TEMPLATE" - Templates are not annotated with entity types, but // they can contain // @-prefixed entity type names as substrings. // Template mode has been deprecated. Example mode is the only // supported // way to create new training phrases. If you have existing // training // phrases that you've created in template mode, those will continue // to // work. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart: Represents a // part of a training phrase. type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct { // Alias: Optional. The parameter name for the value extracted from // the // annotated part of the example. // This field is required for annotated parts of the training phrase. Alias string `json:"alias,omitempty"` // EntityType: Optional. The entity type name prefixed with `@`. // This field is required for annotated parts of the training phrase. EntityType string `json:"entityType,omitempty"` // Text: Required. The text for this part. Text string `json:"text,omitempty"` // UserDefined: Optional. Indicates whether the text was manually // annotated. // This field is set to true when the Dialogflow Console is used // to // manually annotate the part. When creating an annotated part with // the // API, you must set this to true. UserDefined bool `json:"userDefined,omitempty"` // ForceSendFields is a list of field names (e.g. "Alias") 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. "Alias") 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 *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1KnowledgeAnswers: Represents the result // of querying a Knowledge base. type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct { // Answers: A list of answers from Knowledge Connector. Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"` // ForceSendFields is a list of field names (e.g. "Answers") 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. "Answers") 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 *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer: An answer from // Knowledge Connector. type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct { // Answer: The piece of text from the `source` knowledge base document // that answers // this conversational query. Answer string `json:"answer,omitempty"` // FaqQuestion: The corresponding FAQ question if the answer was // extracted from a FAQ // Document, empty otherwise. FaqQuestion string `json:"faqQuestion,omitempty"` // MatchConfidence: The system's confidence score that this Knowledge // answer is a good match // for this conversational query. // The range is from 0.0 (completely uncertain) to 1.0 (completely // certain). // Note: The confidence score is likely to vary somewhat (possibly even // for // identical requests), as the underlying model is under // constant // improvement. It may be deprecated in the future. We recommend // using // `match_confidence_level` which should be generally more stable. MatchConfidence float64 `json:"matchConfidence,omitempty"` // MatchConfidenceLevel: The system's confidence level that this // knowledge answer is a good match // for this conversational query. // NOTE: The confidence level for a given `` pair may // change // without notice, as it depends on models that are constantly // being // improved. However, it will change less frequently than the // confidence // score below, and should be preferred for referencing the quality of // an // answer. // // Possible values: // "MATCH_CONFIDENCE_LEVEL_UNSPECIFIED" - Not specified. // "LOW" - Indicates that the confidence is low. // "MEDIUM" - Indicates our confidence is medium. // "HIGH" - Indicates our confidence is high. MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"` // Source: Indicates which Knowledge Document this answer was extracted // from. // Format: `projects//knowledgeBases//documents/`. Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "Answer") 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. "Answer") 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 *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error { type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer var s1 struct { MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } s.MatchConfidence = float64(s1.MatchConfidence) return nil } // GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata: Metadata in // google::longrunning::Operation for Knowledge operations. type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct { // State: Required. Output only. The current state of this operation. // // Possible values: // "STATE_UNSPECIFIED" - State unspecified. // "PENDING" - The operation has been created. // "RUNNING" - The operation is currently running. // "DONE" - The operation is done, either cancelled or completed. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "State") 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. "State") 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 *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1LabelConversationResponse: The response // for // ConversationDatasets.LabelConversation. type GoogleCloudDialogflowV2beta1LabelConversationResponse struct { // AnnotatedConversationDataset: New annotated conversation dataset // created by the labeling task. AnnotatedConversationDataset *GoogleCloudDialogflowV2beta1AnnotatedConversationDataset `json:"annotatedConversationDataset,omitempty"` // ForceSendFields is a list of field names (e.g. // "AnnotatedConversationDataset") 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. // "AnnotatedConversationDataset") 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 *GoogleCloudDialogflowV2beta1LabelConversationResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1LabelConversationResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest: Represents // the contents of the original request that was passed to // the `[Streaming]DetectIntent` call. type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct { // Payload: Optional. This field is set to the value of the // `QueryParameters.payload` // field passed in the request. Some integrations that query a // Dialogflow // agent may provide additional information in the payload. // // In particular, for the Dialogflow Phone Gateway integration, this // field has // the form: //
{
	//  "telephony": {
	//    "caller_id": "+18558363987"
	//  }
	// }
// Note: The caller ID field (`caller_id`) will be redacted for // Standard // Edition agents and populated with the caller ID in // [E.164 // format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition // agents. Payload googleapi.RawMessage `json:"payload,omitempty"` // Source: The source of this request, e.g., `google`, `facebook`, // `slack`. It is set // by Dialogflow-owned servers. Source string `json:"source,omitempty"` // Version: Optional. The version of the protocol used for this // request. // This field is AoG-specific. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Payload") 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. "Payload") 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 *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1QueryResult: Represents the result of // conversational query or event processing. type GoogleCloudDialogflowV2beta1QueryResult struct { // Action: The action name from the matched intent. Action string `json:"action,omitempty"` // AllRequiredParamsPresent: This field is set to: // // - `false` if the matched intent has required parameters and not all // of // the required parameter values have been collected. // - `true` if all required parameter values have been collected, or if // the // matched intent doesn't contain any required parameters. AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"` // DiagnosticInfo: Free-form diagnostic information for the associated // detect intent request. // The fields of this data can change without notice, so you should not // write // code that depends on its structure. // The data may contain: // // - webhook call latency // - webhook errors DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"` // FulfillmentMessages: The collection of rich messages to present to // the user. FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"` // FulfillmentText: The text to be pronounced to the user or shown on // the screen. // Note: This is a legacy field, `fulfillment_messages` should be // preferred. FulfillmentText string `json:"fulfillmentText,omitempty"` // Intent: The intent that matched the conversational query. Some, // not // all fields are filled in this message, including but not limited // to: // `name`, `display_name`, `end_interaction` and `is_fallback`. Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"` // IntentDetectionConfidence: The intent detection confidence. Values // range from 0.0 // (completely uncertain) to 1.0 (completely certain). // This value is for informational purpose only and is only used to // help match the best intent within the classification threshold. // This value may change for the same end-user expression at any time // due to a // model retraining or change in implementation. // If there are `multiple knowledge_answers` messages, this value is set // to // the greatest `knowledgeAnswers.match_confidence` value in the list. IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"` // KnowledgeAnswers: The result from Knowledge Connector (if any), // ordered by decreasing // `KnowledgeAnswers.match_confidence`. KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"` // LanguageCode: The language that was triggered during intent // detection. // See // [Language // Support](https://cloud.google.com/dialogflow/docs/reference/ // language) // for a list of the currently supported language codes. LanguageCode string `json:"languageCode,omitempty"` // OutputContexts: The collection of output contexts. If // applicable, // `output_contexts.parameters` contains entries with name // `.original` containing the original parameter // values // before the query. OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"` // Parameters: The collection of extracted parameters. // // Depending on your protocol or client library language, this is a // map, associative array, symbol table, dictionary, or JSON // object // composed of a collection of (MapKey, MapValue) pairs: // // - MapKey type: string // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map // - Else: string or number, depending on parameter value type // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values // - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // QueryText: The original conversational query text: // // - If natural language text was provided as input, `query_text` // contains // a copy of the input. // - If natural language speech audio was provided as input, // `query_text` // contains the speech recognition result. If speech recognizer // produced // multiple alternatives, a particular one is picked. // - If automatic spell correction is enabled, `query_text` will contain // the // corrected user input. QueryText string `json:"queryText,omitempty"` // SentimentAnalysisResult: The sentiment analysis result, which depends // on the // `sentiment_analysis_request_config` specified in the request. SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"` // SpeechRecognitionConfidence: The Speech recognition confidence // between 0.0 and 1.0. A higher number // indicates an estimated greater likelihood that the recognized words // are // correct. The default of 0.0 is a sentinel value indicating that // confidence // was not set. // // This field is not guaranteed to be accurate or set. In particular // this // field isn't set for StreamingDetectIntent since the streaming // endpoint has // separate confidence estimates per portion of the audio // in // StreamingRecognitionResult. SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"` // WebhookPayload: If the query was fulfilled by a webhook call, this // field is set to the // value of the `payload` field returned in the webhook response. WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"` // WebhookSource: If the query was fulfilled by a webhook call, this // field is set to the // value of the `source` field returned in the webhook response. WebhookSource string `json:"webhookSource,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1QueryResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error { type NoMethod GoogleCloudDialogflowV2beta1QueryResult var s1 struct { IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"` SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence) s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence) return nil } // GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as // positive/negative feeling or association, for a unit // of analysis, such as the query text. type GoogleCloudDialogflowV2beta1Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute // magnitude of sentiment, regardless of score (positive or negative). Magnitude float64 `json:"magnitude,omitempty"` // Score: Sentiment score between -1.0 (negative sentiment) and 1.0 // (positive // sentiment). Score float64 `json:"score,omitempty"` // ForceSendFields is a list of field names (e.g. "Magnitude") 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. "Magnitude") 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 *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1Sentiment raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error { type NoMethod GoogleCloudDialogflowV2beta1Sentiment var s1 struct { Magnitude gensupport.JSONFloat64 `json:"magnitude"` Score gensupport.JSONFloat64 `json:"score"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } s.Magnitude = float64(s1.Magnitude) s.Score = float64(s1.Score) return nil } // GoogleCloudDialogflowV2beta1SentimentAnalysisResult: The result of // sentiment analysis as configured // by // `sentiment_analysis_request_config`. type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct { // QueryTextSentiment: The sentiment analysis result for `query_text`. QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"` // ForceSendFields is a list of field names (e.g. "QueryTextSentiment") // 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. "QueryTextSentiment") 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 *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1SessionEntityType: Represents a session // entity type. // // Extends or replaces a custom entity type at the user session level // (we // refer to the entity types defined at the agent level as "custom // entity // types"). // // Note: session entity types apply to all queries, regardless of the // language. type GoogleCloudDialogflowV2beta1SessionEntityType struct { // Entities: Required. The collection of entities associated with this // session entity // type. Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"` // EntityOverrideMode: Required. Indicates whether the additional data // should override or // supplement the custom entity type definition. // // Possible values: // "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value // should be never used. // "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session // entities overrides the collection of entities // in the corresponding custom entity type. // "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session // entities extends the collection of entities in // the corresponding custom entity type. // // Note: Even in this override mode calls to // `ListSessionEntityTypes`, // `GetSessionEntityType`, `CreateSessionEntityType` // and // `UpdateSessionEntityType` only return the additional entities added // in // this session entity type. If you want to get the supplemented // list, // please call EntityTypes.GetEntityType on the custom entity type // and merge. EntityOverrideMode string `json:"entityOverrideMode,omitempty"` // Name: Required. The unique identifier of this session entity type. // Format: // `projects//agent/sessions//entityTypes/`, or // `projects//agent/environments//users//sessions//entityTypes/`. // If `Environment ID` is not specified, we assume default // 'draft' // environment. If `User ID` is not specified, we assume default '-' // user. // // `` must be the display name of an existing // entity // type in the same agent that will be overridden or supplemented. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Entities") 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. "Entities") 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 *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1WebhookRequest: The request message for a // webhook call. type GoogleCloudDialogflowV2beta1WebhookRequest struct { // AlternativeQueryResults: Alternative query results from // KnowledgeService. AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"` // OriginalDetectIntentRequest: Optional. The contents of the original // request that was passed to // `[Streaming]DetectIntent` call. OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"` // QueryResult: The result of the conversational query or event // processing. Contains the // same value as `[Streaming]DetectIntentResponse.query_result`. QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"` // ResponseId: The unique identifier of the response. Contains the same // value as // `[Streaming]DetectIntentResponse.response_id`. ResponseId string `json:"responseId,omitempty"` // Session: The unique identifier of detectIntent request session. // Can be used to identify end-user inside webhook // implementation. // Format: `projects//agent/sessions/`, // or // `projects//agent/environments//users//sessions/`. Session string `json:"session,omitempty"` // ForceSendFields is a list of field names (e.g. // "AlternativeQueryResults") 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. "AlternativeQueryResults") // 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 *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1WebhookResponse: The response message for // a webhook call. // // This response is validated by the Dialogflow server. If validation // fails, // an error will be returned in the QueryResult.diagnostic_info // field. // Setting JSON fields to an empty value with the wrong type is a common // error. // To avoid this error: // // - Use "" for empty strings // - Use `{}` or `null` for empty objects // - Use `[]` or `null` for empty arrays // // For more information, see the // [Protocol Buffers // Language // Guide](https://developers.google.com/protocol-buffers/docs/pr // oto3#json). type GoogleCloudDialogflowV2beta1WebhookResponse struct { // EndInteraction: Optional. Indicates that this intent ends an // interaction. Some integrations // (e.g., Actions on Google or Dialogflow phone gateway) use this // information // to close interaction with an end user. Default is false. EndInteraction bool `json:"endInteraction,omitempty"` // FollowupEventInput: Optional. Invokes the supplied events. // When this field is set, Dialogflow ignores the // `fulfillment_text`, // `fulfillment_messages`, and `payload` fields. FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"` // FulfillmentMessages: Optional. The rich response messages intended // for the end-user. // When provided, Dialogflow uses this field to // populate // QueryResult.fulfillment_messages sent to the integration or API // caller. FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"` // FulfillmentText: Optional. The text response message intended for the // end-user. // It is recommended to use `fulfillment_messages.text.text[0]` // instead. // When provided, Dialogflow uses this field to // populate // QueryResult.fulfillment_text sent to the integration or API caller. FulfillmentText string `json:"fulfillmentText,omitempty"` // OutputContexts: Optional. The collection of output contexts that will // overwrite currently // active contexts for the session and reset their lifespans. // When provided, Dialogflow uses this field to // populate // QueryResult.output_contexts sent to the integration or API caller. OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"` // Payload: Optional. This field can be used to pass custom data from // your webhook to the // integration or API caller. Arbitrary JSON objects are supported. // When provided, Dialogflow uses this field to // populate // QueryResult.webhook_payload sent to the integration or API // caller. // This field is also used by the // [Google // Assistant // integration](https://cloud.google.com/dialogflow/docs/integr // ations/aog) // for rich response messages. // See the format definition at [Google Assistant Dialogflow // webhook // format](https://developers.google.com/assistant/actions/build/ // json/dialogflow-webhook-json) Payload googleapi.RawMessage `json:"payload,omitempty"` // SessionEntityTypes: Optional. Additional session entity types to // replace or extend developer // entity types with. The entity synonyms apply to all languages and // persist // for the session. Setting this data from a webhook overwrites // the session entity types that have been set using // `detectIntent`, // `streamingDetectIntent` or SessionEntityType management methods. SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"` // Source: Optional. A custom field used to identify the webhook // source. // Arbitrary strings are supported. // When provided, Dialogflow uses this field to // populate // QueryResult.webhook_source sent to the integration or API caller. Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "EndInteraction") 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. "EndInteraction") 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 *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV3alpha1ExportAgentResponse: The response // message for Agents.ExportAgent. type GoogleCloudDialogflowV3alpha1ExportAgentResponse 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 *GoogleCloudDialogflowV3alpha1ExportAgentResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV3alpha1ExportAgentResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleLongrunningListOperationsResponse: The response message for // Operations.ListOperations. type GoogleLongrunningListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // Operations: A list of operations that matches the specified filter in // the request. Operations []*GoogleLongrunningOperation `json:"operations,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 *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningListOperationsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleLongrunningOperation: This resource represents a long-running // operation that is the result of a // network API call. type GoogleLongrunningOperation struct { // Done: If the value is `false`, it means the operation is still in // progress. // If `true`, the operation is completed, and either `error` or // `response` is // available. Done bool `json:"done,omitempty"` // Error: The error result of the operation in case of failure or // cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` // Metadata: Service-specific metadata associated with the operation. // It typically // contains progress information and common metadata such as create // time. // Some services might not provide such metadata. Any method that // returns a // long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same // service that // originally returns it. If you use the default HTTP mapping, // the // `name` should be a resource name ending with // `operations/{unique_id}`. Name string `json:"name,omitempty"` // Response: The normal response of the operation in case of success. // If the original // method returns no data on success, such as `Delete`, the response // is // `google.protobuf.Empty`. If the original method is // standard // `Get`/`Create`/`Update`, the response should be the resource. For // other // methods, the response should have the type `XxxResponse`, where // `Xxx` // is the original method name. For example, if the original method // name // is `TakeSnapshot()`, the inferred response type // is // `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") 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. "Done") 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 *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningOperation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // GoogleProtobufEmpty: A generic empty message that you can re-use to // avoid defining duplicated // empty messages in your APIs. A typical example is to use it as the // request // or the response type of an API method. For instance: // // service Foo { // rpc Bar(google.protobuf.Empty) returns // (google.protobuf.Empty); // } // // The JSON representation for `Empty` is empty JSON object `{}`. type GoogleProtobufEmpty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` } // GoogleRpcStatus: The `Status` type defines a logical error model that // is suitable for // different programming environments, including REST APIs and RPC APIs. // It is // used by [gRPC](https://github.com/grpc). Each `Status` message // contains // three pieces of data: error code, error message, and error // details. // // You can find out more about this error model and how to work with it // in the // [API Design Guide](https://cloud.google.com/apis/design/errors). type GoogleRpcStatus struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a // common set of // message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any // user-facing error message should be localized and sent in // the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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 *GoogleRpcStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleRpcStatus raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // method id "dialogflow.projects.locations.operations.cancel": type ProjectsLocationsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } // Cancel: Starts asynchronous cancellation on a long-running operation. // The server // makes a best effort to cancel the operation, but success is // not // guaranteed. If the server doesn't support this method, it // returns // `google.rpc.Code.UNIMPLEMENTED`. Clients can // use // Operations.GetOperation or // other methods to check whether the cancellation succeeded or whether // the // operation completed despite cancellation. On successful // cancellation, // the operation is not deleted; instead, it becomes an operation // with // an Operation.error value with a google.rpc.Status.code of // 1, // corresponding to `Code.CANCELLED`. func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall { c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v3alpha1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "dialogflow.projects.locations.operations.cancel" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := gensupport.DecodeResponse(target, res); err != nil { return nil, err } return ret, nil // { // "description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", // "flatPath": "v3alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", // "id": "dialogflow.projects.locations.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v3alpha1/{+name}:cancel", // "response": { // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/dialogflow" // ] // } } // method id "dialogflow.projects.locations.operations.get": type ProjectsLocationsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } // Get: Gets the latest state of a long-running operation. Clients can // use this // method to poll the operation result at intervals as recommended by // the API // service. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // IfNoneMatch sets the optional parameter which makes the operation // fail if the object's ETag matches the given value. This is useful for // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v3alpha1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "dialogflow.projects.locations.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := gensupport.DecodeResponse(target, res); err != nil { return nil, err } return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", // "flatPath": "v3alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", // "httpMethod": "GET", // "id": "dialogflow.projects.locations.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { // "description": "The name of the operation resource.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v3alpha1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/dialogflow" // ] // } } // method id "dialogflow.projects.locations.operations.list": type ProjectsLocationsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } // List: Lists operations that match the specified filter in the // request. If the // server doesn't support this method, it returns // `UNIMPLEMENTED`. // // NOTE: the `name` binding allows API services to override the // binding // to use different resource name schemes, such as `users/*/operations`. // To // override the binding, API services can add a binding such // as // "/v1/{name=users/*}/operations" to their service configuration. // For backwards compatibility, the default name includes the // operations // collection id, however overriding users must ensure the name // binding // is the parent resource, without the operations collection id. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // IfNoneMatch sets the optional parameter which makes the operation // fail if the object's ETag matches the given value. This is useful for // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v3alpha1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "dialogflow.projects.locations.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := gensupport.DecodeResponse(target, res); err != nil { return nil, err } return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", // "flatPath": "v3alpha1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "dialogflow.projects.locations.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { // "filter": { // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, // "pageSize": { // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { // "description": "The standard list page token.", // "location": "query", // "type": "string" // } // }, // "path": "v3alpha1/{+name}/operations", // "response": { // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/dialogflow" // ] // } } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { x, err := c.Do() if err != nil { return err } if err := f(x); err != nil { return err } if x.NextPageToken == "" { return nil } c.PageToken(x.NextPageToken) } } // method id "dialogflow.projects.operations.cancel": type ProjectsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } // Cancel: Starts asynchronous cancellation on a long-running operation. // The server // makes a best effort to cancel the operation, but success is // not // guaranteed. If the server doesn't support this method, it // returns // `google.rpc.Code.UNIMPLEMENTED`. Clients can // use // Operations.GetOperation or // other methods to check whether the cancellation succeeded or whether // the // operation completed despite cancellation. On successful // cancellation, // the operation is not deleted; instead, it becomes an operation // with // an Operation.error value with a google.rpc.Status.code of // 1, // corresponding to `Code.CANCELLED`. func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall { c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *ProjectsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v3alpha1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "dialogflow.projects.operations.cancel" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := gensupport.DecodeResponse(target, res); err != nil { return nil, err } return ret, nil // { // "description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", // "flatPath": "v3alpha1/projects/{projectsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", // "id": "dialogflow.projects.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", // "pattern": "^projects/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v3alpha1/{+name}:cancel", // "response": { // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/dialogflow" // ] // } } // method id "dialogflow.projects.operations.get": type ProjectsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } // Get: Gets the latest state of a long-running operation. Clients can // use this // method to poll the operation result at intervals as recommended by // the API // service. func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall { c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // IfNoneMatch sets the optional parameter which makes the operation // fail if the object's ETag matches the given value. This is useful for // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *ProjectsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v3alpha1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "dialogflow.projects.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := gensupport.DecodeResponse(target, res); err != nil { return nil, err } return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", // "flatPath": "v3alpha1/projects/{projectsId}/operations/{operationsId}", // "httpMethod": "GET", // "id": "dialogflow.projects.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { // "description": "The name of the operation resource.", // "location": "path", // "pattern": "^projects/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v3alpha1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/dialogflow" // ] // } } // method id "dialogflow.projects.operations.list": type ProjectsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } // List: Lists operations that match the specified filter in the // request. If the // server doesn't support this method, it returns // `UNIMPLEMENTED`. // // NOTE: the `name` binding allows API services to override the // binding // to use different resource name schemes, such as `users/*/operations`. // To // override the binding, API services can add a binding such // as // "/v1/{name=users/*}/operations" to their service configuration. // For backwards compatibility, the default name includes the // operations // collection id, however overriding users must ensure the name // binding // is the parent resource, without the operations collection id. func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall { c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // IfNoneMatch sets the optional parameter which makes the operation // fail if the object's ETag matches the given value. This is useful for // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *ProjectsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v3alpha1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "dialogflow.projects.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := gensupport.DecodeResponse(target, res); err != nil { return nil, err } return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", // "flatPath": "v3alpha1/projects/{projectsId}/operations", // "httpMethod": "GET", // "id": "dialogflow.projects.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { // "filter": { // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, // "type": "string" // }, // "pageSize": { // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { // "description": "The standard list page token.", // "location": "query", // "type": "string" // } // }, // "path": "v3alpha1/{+name}/operations", // "response": { // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/dialogflow" // ] // } } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { x, err := c.Do() if err != nil { return err } if err := f(x); err != nil { return err } if x.NextPageToken == "" { return nil } c.PageToken(x.NextPageToken) } }