| // Copyright 2019 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/v2" |
| // ... |
| // 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/v2" |
| |
| 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" |
| 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 |
| |
| const apiId = "dialogflow:v2" |
| const apiName = "dialogflow" |
| const apiVersion = "v2" |
| 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...) |
| 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.Agent_ = NewProjectsAgentService(s) |
| rs.Locations = NewProjectsLocationsService(s) |
| rs.Operations = NewProjectsOperationsService(s) |
| return rs |
| } |
| |
| type ProjectsService struct { |
| s *Service |
| |
| Agent_ *ProjectsAgentService |
| |
| Locations *ProjectsLocationsService |
| |
| Operations *ProjectsOperationsService |
| } |
| |
| func NewProjectsAgentService(s *Service) *ProjectsAgentService { |
| rs := &ProjectsAgentService{s: s} |
| rs.EntityTypes = NewProjectsAgentEntityTypesService(s) |
| rs.Intents = NewProjectsAgentIntentsService(s) |
| rs.Sessions = NewProjectsAgentSessionsService(s) |
| return rs |
| } |
| |
| type ProjectsAgentService struct { |
| s *Service |
| |
| EntityTypes *ProjectsAgentEntityTypesService |
| |
| Intents *ProjectsAgentIntentsService |
| |
| Sessions *ProjectsAgentSessionsService |
| } |
| |
| func NewProjectsAgentEntityTypesService(s *Service) *ProjectsAgentEntityTypesService { |
| rs := &ProjectsAgentEntityTypesService{s: s} |
| rs.Entities = NewProjectsAgentEntityTypesEntitiesService(s) |
| return rs |
| } |
| |
| type ProjectsAgentEntityTypesService struct { |
| s *Service |
| |
| Entities *ProjectsAgentEntityTypesEntitiesService |
| } |
| |
| func NewProjectsAgentEntityTypesEntitiesService(s *Service) *ProjectsAgentEntityTypesEntitiesService { |
| rs := &ProjectsAgentEntityTypesEntitiesService{s: s} |
| return rs |
| } |
| |
| type ProjectsAgentEntityTypesEntitiesService struct { |
| s *Service |
| } |
| |
| func NewProjectsAgentIntentsService(s *Service) *ProjectsAgentIntentsService { |
| rs := &ProjectsAgentIntentsService{s: s} |
| return rs |
| } |
| |
| type ProjectsAgentIntentsService struct { |
| s *Service |
| } |
| |
| func NewProjectsAgentSessionsService(s *Service) *ProjectsAgentSessionsService { |
| rs := &ProjectsAgentSessionsService{s: s} |
| rs.Contexts = NewProjectsAgentSessionsContextsService(s) |
| rs.EntityTypes = NewProjectsAgentSessionsEntityTypesService(s) |
| return rs |
| } |
| |
| type ProjectsAgentSessionsService struct { |
| s *Service |
| |
| Contexts *ProjectsAgentSessionsContextsService |
| |
| EntityTypes *ProjectsAgentSessionsEntityTypesService |
| } |
| |
| func NewProjectsAgentSessionsContextsService(s *Service) *ProjectsAgentSessionsContextsService { |
| rs := &ProjectsAgentSessionsContextsService{s: s} |
| return rs |
| } |
| |
| type ProjectsAgentSessionsContextsService struct { |
| s *Service |
| } |
| |
| func NewProjectsAgentSessionsEntityTypesService(s *Service) *ProjectsAgentSessionsEntityTypesService { |
| rs := &ProjectsAgentSessionsEntityTypesService{s: s} |
| return rs |
| } |
| |
| type ProjectsAgentSessionsEntityTypesService struct { |
| s *Service |
| } |
| |
| 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 |
| } |
| |
| // GoogleCloudDialogflowV2Agent: Represents a conversational agent. |
| type GoogleCloudDialogflowV2Agent struct { |
| // ApiVersion: Optional. API version displayed in Dialogflow console. If |
| // not specified, |
| // V2 API is assumed. Clients are free to query different service |
| // endpoints |
| // for different API versions. However, bots connectors and webhook |
| // calls will |
| // follow the specified API version. |
| // |
| // Possible values: |
| // "API_VERSION_UNSPECIFIED" - Not specified. |
| // "API_VERSION_V1" - Legacy V1 API. |
| // "API_VERSION_V2" - V2 API. |
| // "API_VERSION_V2_BETA_1" - V2beta1 API. |
| ApiVersion string `json:"apiVersion,omitempty"` |
| |
| // AvatarUri: Optional. The URI of the agent's avatar. |
| // Avatars are used throughout the Dialogflow console and in the |
| // self-hosted |
| // [Web |
| // Demo](https://cloud.google.com/dialogflow/docs/integr |
| // ations/web-demo) |
| // integration. |
| AvatarUri string `json:"avatarUri,omitempty"` |
| |
| // ClassificationThreshold: Optional. To filter out false positive |
| // results and still get variety in |
| // matched natural language inputs for your agent, you can tune the |
| // machine |
| // learning classification threshold. If the returned score value is |
| // less than |
| // the threshold value, then a fallback intent will be triggered or, if |
| // there |
| // are no fallback intents defined, no intent will be triggered. The |
| // score |
| // values range from 0.0 (completely uncertain) to 1.0 (completely |
| // certain). |
| // If set to 0.0, the default of 0.3 is used. |
| ClassificationThreshold float64 `json:"classificationThreshold,omitempty"` |
| |
| // DefaultLanguageCode: Required. The default language of the agent as a |
| // language tag. |
| // See |
| // [Language |
| // Support](https://cloud.google.com/dialogflow/docs/refere |
| // nce/language) |
| // for a list of the currently supported language codes. This field |
| // cannot be |
| // set by the `Update` method. |
| DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"` |
| |
| // Description: Optional. The description of this agent. |
| // The maximum length is 500 characters. If exceeded, the request is |
| // rejected. |
| Description string `json:"description,omitempty"` |
| |
| // DisplayName: Required. The name of this agent. |
| DisplayName string `json:"displayName,omitempty"` |
| |
| // EnableLogging: Optional. Determines whether this agent should log |
| // conversation queries. |
| EnableLogging bool `json:"enableLogging,omitempty"` |
| |
| // MatchMode: Optional. Determines how intents are detected from user |
| // queries. |
| // |
| // Possible values: |
| // "MATCH_MODE_UNSPECIFIED" - Not specified. |
| // "MATCH_MODE_HYBRID" - Best for agents with a small number of |
| // examples in intents and/or wide |
| // use of templates syntax and composite entities. |
| // "MATCH_MODE_ML_ONLY" - Can be used for agents with a large number |
| // of examples in intents, |
| // especially the ones using @sys.any or very large developer entities. |
| MatchMode string `json:"matchMode,omitempty"` |
| |
| // Parent: Required. The project of this agent. |
| // Format: `projects/<Project ID>`. |
| Parent string `json:"parent,omitempty"` |
| |
| // SupportedLanguageCodes: Optional. The list of all languages supported |
| // by this agent (except for the |
| // `default_language_code`). |
| SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"` |
| |
| // Tier: Optional. The agent tier. If not specified, TIER_STANDARD is |
| // assumed. |
| // |
| // Possible values: |
| // "TIER_UNSPECIFIED" - Not specified. This value should never be |
| // used. |
| // "TIER_STANDARD" - Standard tier. |
| // "TIER_ENTERPRISE" - Enterprise tier (Essentials). |
| // "TIER_ENTERPRISE_PLUS" - Enterprise tier (Plus). |
| Tier string `json:"tier,omitempty"` |
| |
| // TimeZone: Required. The time zone of this agent from the |
| // [time zone database](https://www.iana.org/time-zones), |
| // e.g., |
| // America/New_York, Europe/Paris. |
| TimeZone string `json:"timeZone,omitempty"` |
| |
| // ServerResponse contains the HTTP response code and headers from the |
| // server. |
| googleapi.ServerResponse `json:"-"` |
| |
| // ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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 *GoogleCloudDialogflowV2Agent) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2Agent |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| func (s *GoogleCloudDialogflowV2Agent) UnmarshalJSON(data []byte) error { |
| type NoMethod GoogleCloudDialogflowV2Agent |
| var s1 struct { |
| ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"` |
| *NoMethod |
| } |
| s1.NoMethod = (*NoMethod)(s) |
| if err := json.Unmarshal(data, &s1); err != nil { |
| return err |
| } |
| s.ClassificationThreshold = float64(s1.ClassificationThreshold) |
| return nil |
| } |
| |
| // 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: |
| // <pre> |
| // { |
| // "amount": 5, |
| // "currency": "USD" |
| // } |
| // </pre> |
| 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) |
| } |
| |
| // GoogleCloudDialogflowV2BatchCreateEntitiesRequest: The request |
| // message for EntityTypes.BatchCreateEntities. |
| type GoogleCloudDialogflowV2BatchCreateEntitiesRequest struct { |
| // Entities: Required. The entities to create. |
| Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"` |
| |
| // LanguageCode: Optional. The language of entity synonyms defined in |
| // `entities`. If not |
| // specified, the agent's default language is |
| // used. |
| // [Many |
| // languages](https://cloud.google.com/dialogflow/docs/refere |
| // nce/language) |
| // are supported. Note: languages must be enabled in the agent before |
| // they can |
| // be used. |
| LanguageCode string `json:"languageCode,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 *GoogleCloudDialogflowV2BatchCreateEntitiesRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2BatchCreateEntitiesRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoogleCloudDialogflowV2BatchDeleteEntitiesRequest: The request |
| // message for EntityTypes.BatchDeleteEntities. |
| type GoogleCloudDialogflowV2BatchDeleteEntitiesRequest struct { |
| // EntityValues: Required. The canonical `values` of the entities to |
| // delete. Note that |
| // these are not fully-qualified names, i.e. they don't start |
| // with |
| // `projects/<Project ID>`. |
| EntityValues []string `json:"entityValues,omitempty"` |
| |
| // LanguageCode: Optional. The language of entity synonyms defined in |
| // `entities`. If not |
| // specified, the agent's default language is |
| // used. |
| // [Many |
| // languages](https://cloud.google.com/dialogflow/docs/refere |
| // nce/language) |
| // are supported. Note: languages must be enabled in the agent before |
| // they can |
| // be used. |
| LanguageCode string `json:"languageCode,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "EntityValues") 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. "EntityValues") 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 *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2BatchDeleteEntitiesRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest: The request |
| // message for EntityTypes.BatchDeleteEntityTypes. |
| type GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest struct { |
| // EntityTypeNames: Required. The names entity types to delete. All |
| // names must point to the |
| // same agent as `parent`. |
| EntityTypeNames []string `json:"entityTypeNames,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "EntityTypeNames") 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. "EntityTypeNames") 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 *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoogleCloudDialogflowV2BatchDeleteIntentsRequest: The request message |
| // for Intents.BatchDeleteIntents. |
| type GoogleCloudDialogflowV2BatchDeleteIntentsRequest struct { |
| // Intents: Required. The collection of intents to delete. Only intent |
| // `name` must be |
| // filled in. |
| 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 *GoogleCloudDialogflowV2BatchDeleteIntentsRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2BatchDeleteIntentsRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoogleCloudDialogflowV2BatchUpdateEntitiesRequest: The request |
| // message for EntityTypes.BatchUpdateEntities. |
| type GoogleCloudDialogflowV2BatchUpdateEntitiesRequest struct { |
| // Entities: Required. The entities to update or create. |
| Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"` |
| |
| // LanguageCode: Optional. The language of entity synonyms defined in |
| // `entities`. If not |
| // specified, the agent's default language is |
| // used. |
| // [Many |
| // languages](https://cloud.google.com/dialogflow/docs/refere |
| // nce/language) |
| // are supported. Note: languages must be enabled in the agent before |
| // they can |
| // be used. |
| LanguageCode string `json:"languageCode,omitempty"` |
| |
| // UpdateMask: Optional. The mask to control which fields get updated. |
| UpdateMask string `json:"updateMask,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 *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2BatchUpdateEntitiesRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest: The request |
| // message for EntityTypes.BatchUpdateEntityTypes. |
| type GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest struct { |
| // EntityTypeBatchInline: The collection of entity types to update or |
| // create. |
| EntityTypeBatchInline *GoogleCloudDialogflowV2EntityTypeBatch `json:"entityTypeBatchInline,omitempty"` |
| |
| // EntityTypeBatchUri: The URI to a Google Cloud Storage file containing |
| // entity types to update |
| // or create. The file format can either be a serialized proto |
| // (of |
| // EntityBatch type) or a JSON object. Note: The URI must start |
| // with |
| // "gs://". |
| EntityTypeBatchUri string `json:"entityTypeBatchUri,omitempty"` |
| |
| // LanguageCode: Optional. The language of entity synonyms defined in |
| // `entity_types`. If not |
| // specified, the agent's default language is |
| // used. |
| // [Many |
| // languages](https://cloud.google.com/dialogflow/docs/refere |
| // nce/language) |
| // are supported. Note: languages must be enabled in the agent before |
| // they can |
| // be used. |
| LanguageCode string `json:"languageCode,omitempty"` |
| |
| // UpdateMask: Optional. The mask to control which fields get updated. |
| UpdateMask string `json:"updateMask,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. |
| // "EntityTypeBatchInline") 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. "EntityTypeBatchInline") 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 *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest |
| 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) |
| } |
| |
| // GoogleCloudDialogflowV2BatchUpdateIntentsRequest: The request message |
| // for Intents.BatchUpdateIntents. |
| type GoogleCloudDialogflowV2BatchUpdateIntentsRequest struct { |
| // IntentBatchInline: The collection of intents to update or create. |
| IntentBatchInline *GoogleCloudDialogflowV2IntentBatch `json:"intentBatchInline,omitempty"` |
| |
| // IntentBatchUri: The URI to a Google Cloud Storage file containing |
| // intents to update or |
| // create. The file format can either be a serialized proto (of |
| // IntentBatch |
| // type) or JSON object. Note: The URI must start with "gs://". |
| IntentBatchUri string `json:"intentBatchUri,omitempty"` |
| |
| // IntentView: Optional. The resource view to apply to the returned |
| // intent. |
| // |
| // Possible values: |
| // "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated |
| // in the response. |
| // "INTENT_VIEW_FULL" - All fields are populated. |
| IntentView string `json:"intentView,omitempty"` |
| |
| // LanguageCode: Optional. The language of training phrases, parameters |
| // and rich messages |
| // defined in `intents`. If not specified, the agent's default language |
| // is |
| // used. |
| // [Many |
| // languages](https://cloud.google.com/dialogflow/docs/reference/la |
| // nguage) |
| // are supported. Note: languages must be enabled in the agent before |
| // they can |
| // be used. |
| LanguageCode string `json:"languageCode,omitempty"` |
| |
| // UpdateMask: Optional. The mask to control which fields get updated. |
| UpdateMask string `json:"updateMask,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "IntentBatchInline") |
| // 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. "IntentBatchInline") 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 *GoogleCloudDialogflowV2BatchUpdateIntentsRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsRequest |
| 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. If set to `0` (the default) 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/<Project ID>/agent/sessions/<Session ID>/contexts/<Context |
| // ID>`. |
| // |
| // The `Context ID` is always converted to lowercase, may only |
| // contain |
| // characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. |
| Name string `json:"name,omitempty"` |
| |
| // Parameters: Optional. The collection of parameters associated with |
| // this context. |
| // Refer to |
| // [this |
| // doc](https://cloud.google.com/dialogflow/docs/intents-actions-pa |
| // rameters) |
| // for syntax. |
| Parameters googleapi.RawMessage `json:"parameters,omitempty"` |
| |
| // ServerResponse contains the HTTP response code and headers from the |
| // server. |
| googleapi.ServerResponse `json:"-"` |
| |
| // 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/<Project ID>/conversations/<Conversation ID>`. |
| 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) |
| } |
| |
| // GoogleCloudDialogflowV2DetectIntentRequest: The request to detect |
| // user's intent. |
| type GoogleCloudDialogflowV2DetectIntentRequest struct { |
| // InputAudio: Optional. The natural language speech audio to be |
| // processed. This field |
| // should be populated iff `query_input` is set to an input audio |
| // config. |
| // A single request can contain up to 1 minute of speech audio data. |
| InputAudio string `json:"inputAudio,omitempty"` |
| |
| // OutputAudioConfig: Optional. Instructs the speech synthesizer how to |
| // generate the output |
| // audio. If this field is not set and agent-level speech synthesizer is |
| // not |
| // configured, no output audio is generated. |
| OutputAudioConfig *GoogleCloudDialogflowV2OutputAudioConfig `json:"outputAudioConfig,omitempty"` |
| |
| // QueryInput: Required. The input specification. It can be set to: |
| // |
| // 1. an audio config |
| // which instructs the speech recognizer how to process the speech |
| // audio, |
| // |
| // 2. a conversational query in the form of text, or |
| // |
| // 3. an event that specifies which intent to trigger. |
| QueryInput *GoogleCloudDialogflowV2QueryInput `json:"queryInput,omitempty"` |
| |
| // QueryParams: Optional. The parameters of this query. |
| QueryParams *GoogleCloudDialogflowV2QueryParameters `json:"queryParams,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "InputAudio") 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. "InputAudio") 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 *GoogleCloudDialogflowV2DetectIntentRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2DetectIntentRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoogleCloudDialogflowV2DetectIntentResponse: The message returned |
| // from the DetectIntent method. |
| type GoogleCloudDialogflowV2DetectIntentResponse struct { |
| // OutputAudio: The audio data bytes encoded as specified in the |
| // request. |
| // Note: The output audio is generated based on the values of default |
| // platform |
| // text responses found in the `query_result.fulfillment_messages` |
| // field. If |
| // multiple default text responses exist, they will be concatenated |
| // when |
| // generating audio. If no default platform text responses exist, |
| // the |
| // generated audio content will be empty. |
| OutputAudio string `json:"outputAudio,omitempty"` |
| |
| // OutputAudioConfig: The config used by the speech synthesizer to |
| // generate the output audio. |
| OutputAudioConfig *GoogleCloudDialogflowV2OutputAudioConfig `json:"outputAudioConfig,omitempty"` |
| |
| // QueryResult: The selected results of the conversational query or |
| // event processing. |
| // See `alternative_query_results` for additional potential results. |
| QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"` |
| |
| // ResponseId: The unique identifier of the response. It can be used |
| // to |
| // locate a response in the training example set or for reporting |
| // issues. |
| ResponseId string `json:"responseId,omitempty"` |
| |
| // WebhookStatus: Specifies the status of the webhook request. |
| WebhookStatus *GoogleRpcStatus `json:"webhookStatus,omitempty"` |
| |
| // ServerResponse contains the HTTP response code and headers from the |
| // server. |
| googleapi.ServerResponse `json:"-"` |
| |
| // ForceSendFields is a list of field names (e.g. "OutputAudio") to |
| // unconditionally include in API requests. By default, fields with |
| // empty values are omitted from API requests. However, any non-pointer, |
| // non-interface field appearing in ForceSendFields will be sent to the |
| // server regardless of whether the field is empty or not. This may be |
| // used to include empty fields in Patch requests. |
| ForceSendFields []string `json:"-"` |
| |
| // NullFields is a list of field names (e.g. "OutputAudio") to include |
| // in API requests with the JSON null value. By default, fields with |
| // empty values are omitted from API requests. However, any field with |
| // an empty value appearing in NullFields will be sent to the server as |
| // null. It is an error if a field in this list has a non-empty value. |
| // This may be used to include null fields in Patch requests. |
| NullFields []string `json:"-"` |
| } |
| |
| func (s *GoogleCloudDialogflowV2DetectIntentResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2DetectIntentResponse |
| 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 canonical |
| // value. |
| // "KIND_LIST" - List entity types contain a set of entries that do |
| // not map to canonical |
| // values. However, list entity types can contain references to other |
| // entity |
| // types (with or without aliases). |
| // "KIND_REGEXP" - Regexp entity types allow to specify regular |
| // expressions in entries |
| // values. |
| Kind string `json:"kind,omitempty"` |
| |
| // Name: The unique identifier of the entity type. |
| // Required for EntityTypes.UpdateEntityType |
| // and |
| // EntityTypes.BatchUpdateEntityTypes methods. |
| // Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. |
| Name string `json:"name,omitempty"` |
| |
| // ServerResponse contains the HTTP response code and headers from the |
| // server. |
| googleapi.ServerResponse `json:"-"` |
| |
| // ForceSendFields is a list of field names (e.g. "AutoExpansionMode") |
| // to unconditionally include in API requests. By default, fields with |
| // empty values are omitted from API requests. However, any non-pointer, |
| // non-interface field appearing in ForceSendFields will be sent to the |
| // server regardless of whether the field is empty or not. This may be |
| // used to include empty fields in Patch requests. |
| ForceSendFields []string `json:"-"` |
| |
| // NullFields is a list of field names (e.g. "AutoExpansionMode") to |
| // include in API requests with the JSON null value. By default, fields |
| // with empty values are omitted from API requests. However, any field |
| // with an empty value appearing in NullFields will be sent to the |
| // server as null. It is an error if a field in this list has a |
| // non-empty value. This may be used to include null fields in Patch |
| // requests. |
| NullFields []string `json:"-"` |
| } |
| |
| func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2EntityType |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoogleCloudDialogflowV2EntityTypeBatch: This message is a wrapper |
| // around a collection of entity types. |
| type GoogleCloudDialogflowV2EntityTypeBatch struct { |
| // EntityTypes: A collection of 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 *GoogleCloudDialogflowV2EntityTypeBatch) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2EntityTypeBatch |
| 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 canonical value to be used in place of synonyms. |
| // |
| // For `KIND_LIST` entity types: |
| // |
| // * A string that can contain references to other entity types (with |
| // or |
| // without aliases). |
| Value string `json:"value,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "Synonyms") to |
| // unconditionally include in API requests. By default, fields with |
| // empty values are omitted from API requests. However, any non-pointer, |
| // non-interface field appearing in ForceSendFields will be sent to the |
| // server regardless of whether the field is empty or not. This may be |
| // used to include empty fields in Patch requests. |
| ForceSendFields []string `json:"-"` |
| |
| // NullFields is a list of field names (e.g. "Synonyms") to include in |
| // API requests with the JSON null value. By default, fields with empty |
| // values are omitted from API requests. However, any field with an |
| // empty value appearing in NullFields will be sent to the server as |
| // null. It is an error if a field in this list has a non-empty value. |
| // This may be used to include null fields in Patch requests. |
| NullFields []string `json:"-"` |
| } |
| |
| func (s *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 `<event: { name: |
| // "welcome_event", |
| // parameters: { name: "Sam" } }>` can trigger a personalized welcome |
| // response. |
| // The parameter `name` may be used by the agent in the |
| // response: |
| // "Hello #welcome_event.name! What can I do for you today?". |
| 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: Optional. The collection of parameters associated with |
| // the event. |
| 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) |
| } |
| |
| // GoogleCloudDialogflowV2ExportAgentRequest: The request message for |
| // Agents.ExportAgent. |
| type GoogleCloudDialogflowV2ExportAgentRequest struct { |
| // AgentUri: Required. The [Google Cloud |
| // Storage](https://cloud.google.com/storage/docs/) |
| // URI to export the agent to. |
| // The format of this URI must be `gs://<bucket-name>/<object-name>`. |
| // If left unspecified, the serialized agent is returned inline. |
| AgentUri string `json:"agentUri,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "AgentUri") to |
| // unconditionally include in API requests. By default, fields with |
| // empty values are omitted from API requests. However, any non-pointer, |
| // non-interface field appearing in ForceSendFields will be sent to the |
| // server regardless of whether the field is empty or not. This may be |
| // used to include empty fields in Patch requests. |
| ForceSendFields []string `json:"-"` |
| |
| // NullFields is a list of field names (e.g. "AgentUri") to include in |
| // API requests with the JSON null value. By default, fields with empty |
| // values are omitted from API requests. However, any field with an |
| // empty value appearing in NullFields will be sent to the server as |
| // null. It is an error if a field in this list has a non-empty value. |
| // This may be used to include null fields in Patch requests. |
| NullFields []string `json:"-"` |
| } |
| |
| func (s *GoogleCloudDialogflowV2ExportAgentRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2ExportAgentRequest |
| 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) |
| } |
| |
| // GoogleCloudDialogflowV2ImportAgentRequest: The request message for |
| // Agents.ImportAgent. |
| type GoogleCloudDialogflowV2ImportAgentRequest struct { |
| // AgentContent: Zip compressed raw byte content for agent. |
| AgentContent string `json:"agentContent,omitempty"` |
| |
| // AgentUri: The URI to a Google Cloud Storage file containing the agent |
| // to import. |
| // Note: The URI must start with "gs://". |
| 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 *GoogleCloudDialogflowV2ImportAgentRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2ImportAgentRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoogleCloudDialogflowV2InputAudioConfig: Instructs the speech |
| // recognizer how to process the audio content. |
| type GoogleCloudDialogflowV2InputAudioConfig struct { |
| // AudioEncoding: Required. Audio encoding of the audio content to |
| // process. |
| // |
| // Possible values: |
| // "AUDIO_ENCODING_UNSPECIFIED" - Not specified. |
| // "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed |
| // little-endian samples (Linear PCM). |
| // "AUDIO_ENCODING_FLAC" - |
| // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless |
| // Audio |
| // Codec) is the recommended encoding because it is lossless |
| // (therefore |
| // recognition is not compromised) and requires only about half |
| // the |
| // bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit |
| // and |
| // 24-bit samples, however, not all fields in `STREAMINFO` are |
| // supported. |
| // "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio |
| // samples using G.711 PCMU/mu-law. |
| // "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec. |
| // `sample_rate_hertz` must be 8000. |
| // "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec. |
| // `sample_rate_hertz` must be 16000. |
| // "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg |
| // container |
| // ([OggOpus](https://wiki.xiph.org/OggOpus)). |
| // `sample_rate_her |
| // tz` must be 16000. |
| // "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy |
| // encodings is not recommended, if a very low |
| // bitrate encoding is required, `OGG_OPUS` is highly preferred |
| // over |
| // Speex encoding. The [Speex](https://speex.org/) encoding supported |
| // by |
| // Dialogflow API has a header byte in each block, as in MIME |
| // type |
| // `audio/x-speex-with-header-byte`. |
| // It is a variant of the RTP Speex encoding defined in |
| // [RFC 5574](https://tools.ietf.org/html/rfc5574). |
| // The stream is a sequence of blocks, one block per RTP packet. Each |
| // block |
| // starts with a byte containing the length of the block, in bytes, |
| // followed |
| // by one or more frames of Speex data, padded to an integral number |
| // of |
| // bytes (octets) as specified in RFC 5574. In other words, each RTP |
| // header |
| // is replaced with a single byte containing the block length. Only |
| // Speex |
| // wideband is supported. `sample_rate_hertz` must be 16000. |
| AudioEncoding string `json:"audioEncoding,omitempty"` |
| |
| // LanguageCode: Required. The language of the supplied audio. |
| // Dialogflow does not do |
| // translations. See |
| // [Language |
| // Support](https://cloud.google.com/dialogflow/docs/reference/ |
| // language) |
| // for a list of the currently supported language codes. Note that |
| // queries in |
| // the same session do not necessarily need to specify the same |
| // language. |
| LanguageCode string `json:"languageCode,omitempty"` |
| |
| // ModelVariant: Optional. Which variant of the Speech model to use. |
| // |
| // Possible values: |
| // "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In |
| // this case Dialogflow defaults to |
| // USE_BEST_AVAILABLE. |
| // "USE_BEST_AVAILABLE" - Use the best available variant of the |
| // Speech |
| // model that the caller is eligible for. |
| // |
| // Please see the |
| // [Dialogflow |
| // docs](https://cloud.google.com/dialogflow/docs/data-loggin |
| // g) for |
| // how to make your project eligible for enhanced models. |
| // "USE_STANDARD" - Use standard model variant even if an enhanced |
| // model is available. See the |
| // [Cloud |
| // Speech |
| // documentation](https://cloud.google.com/speech-to-text/docs/enh |
| // anced-models) |
| // for details about enhanced models. |
| // "USE_ENHANCED" - Use an enhanced model variant: |
| // |
| // * If an enhanced variant does not exist for the given |
| // model and request language, Dialogflow falls |
| // back to the standard variant. |
| // |
| // The [Cloud Speech |
| // |
| // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m |
| // odels) |
| // describes which models have enhanced variants. |
| // |
| // * If the API caller isn't eligible for enhanced models, Dialogflow |
| // returns |
| // an error. Please see the [Dialogflow |
| // docs](https://cloud.google.com/dialogflow/docs/data-logging) |
| // for how to make your project eligible. |
| ModelVariant string `json:"modelVariant,omitempty"` |
| |
| // PhraseHints: Optional. A list of strings containing words and phrases |
| // that the speech |
| // recognizer should recognize with higher likelihood. |
| // |
| // See [the Cloud |
| // Speech |
| // documentation](https://cloud.google.com/speech-to-text/docs/bas |
| // ics#phrase-hints) |
| // for more details. |
| PhraseHints []string `json:"phraseHints,omitempty"` |
| |
| // SampleRateHertz: Required. Sample rate (in Hertz) of the audio |
| // content sent in the query. |
| // Refer to |
| // [Cloud Speech |
| // API |
| // documentation](https://cloud.google.com/speech-to-text/docs/basics |
| // ) for |
| // more details. |
| SampleRateHertz int64 `json:"sampleRateHertz,omitempty"` |
| |
| // SingleUtterance: Optional. If `false` (default), recognition does not |
| // cease until the |
| // client closes the stream. |
| // If `true`, the recognizer will detect a single spoken utterance in |
| // input |
| // audio. Recognition ceases when it detects the audio's voice |
| // has |
| // stopped or paused. In this case, once a detected intent is received, |
| // the |
| // client should close the stream and start a new request with a new |
| // stream as |
| // needed. |
| // Note: This setting is relevant only for streaming methods. |
| // Note: When specified, InputAudioConfig.single_utterance takes |
| // precedence |
| // over StreamingDetectIntentRequest.single_utterance. |
| SingleUtterance bool `json:"singleUtterance,omitempty"` |
| |
| // ForceSendFields is a list of field names (e.g. "AudioEncoding") to |
| // unconditionally include in API requests. By default, fields with |
| // empty values are omitted from API requests. However, any non-pointer, |
| // non-interface field appearing in ForceSendFields will be sent to the |
| // server regardless of whether the field is empty or not. This may be |
| // used to include empty fields in Patch requests. |
| ForceSendFields []string `json:"-"` |
| |
| // NullFields is a list of field names (e.g. "AudioEncoding") to include |
| // in API requests with the JSON null value. By default, fields with |
| // empty values are omitted from API requests. However, any field with |
| // an empty value appearing in NullFields will be sent to the server as |
| // null. It is an error if a field in this list has a non-empty value. |
| // This may be used to include null fields in Patch requests. |
| NullFields []string `json:"-"` |
| } |
| |
| func (s *GoogleCloudDialogflowV2InputAudioConfig) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2InputAudioConfig |
| 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" - Not specified. |
| // "FACEBOOK" - Facebook. |
| // "SLACK" - Slack. |
| // "TELEGRAM" - Telegram. |
| // "KIK" - Kik. |
| // "SKYPE" - Skype. |
| // "LINE" - Line. |
| // "VIBER" - Viber. |
| // "ACTIONS_ON_GOOGLE" - Actions on Google. |
| // When using Actions on Google, you can choose one of the |
| // specific |
| // Intent.Message types that mention support for Actions on Google, |
| // or you can use the advanced Intent.Message.payload field. |
| // The payload field provides access to AoG features not available in |
| // the |
| // specific message types. |
| // If using the Intent.Message.payload field, it should have a |
| // structure |
| // similar to the JSON message shown here. For more information, |
| // see |
| // [Actions on Google |
| // Webhook |
| // Format](https://developers.google.com/actions/dialogflow/webho |
| // ok) |
| // <pre>{ |
| // "expectUserResponse": true, |
| // "isSsml": false, |
| // "noInputPrompts": [], |
| // "richResponse": { |
| // "items": [ |
| // { |
| // "simpleResponse": { |
| // "displayText": "hi", |
| // "textToSpeech": "hello" |
| // } |
| // } |
| // ], |
| // "suggestions": [ |
| // { |
| // "title": "Say this" |
| // }, |
| // { |
| // "title": "or this" |
| // } |
| // ] |
| // }, |
| // "systemIntent": { |
| // "data": { |
| // "@type": |
| // "type.googleapis.com/google.actions.v2.OptionValueSpec", |
| // "listSelect": { |
| // "items": [ |
| // { |
| // "optionInfo": { |
| // "key": "key1", |
| // "synonyms": [ |
| // "key one" |
| // ] |
| // }, |
| // "title": "must not be empty, but unique" |
| // }, |
| // { |
| // "optionInfo": { |
| // "key": "key2", |
| // "synonyms": [ |
| // "key two" |
| // ] |
| // }, |
| // "title": "must not be empty, but unique" |
| // } |
| // ] |
| // } |
| // }, |
| // "intent": "actions.intent.OPTION" |
| // } |
| // }</pre> |
| // "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. |
| 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/<Project ID>/agent/sessions/-/contexts/<Context |
| // ID>`. |
| 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_diabled` 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: The unique identifier of this intent. |
| // Required for Intents.UpdateIntent and |
| // Intents.BatchUpdateIntents |
| // methods. |
| // Format: `projects/<Project ID>/agent/intents/<Intent ID>`. |
| 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/<Project ID>/agent/sessions/-/contexts/<Context |
| // ID>`. |
| 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/<Project ID>/agent/intents/<Intent ID>`. |
| 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/<Project ID>/agent/intents/<Intent ID>`. |
| 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"` |
| |
| // ServerResponse contains the HTTP response code and headers from the |
| // server. |
| googleapi.ServerResponse `json:"-"` |
| |
| // 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) |
| } |
| |
| // GoogleCloudDialogflowV2IntentBatch: This message is a wrapper around |
| // a collection of intents. |
| type GoogleCloudDialogflowV2IntentBatch struct { |
| // Intents: A collection of 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 *GoogleCloudDialogflowV2IntentBatch) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2IntentBatch |
| 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/<Project ID>/agent/intents/<Intent ID>`. |
| FollowupIntentName string `json:"followupIntentName,omitempty"` |
| |
| // ParentFollowupIntentName: The unique identifier of the followup |
| // intent's parent. |
| // Format: `projects/<Project ID>/agent/intents/<Intent ID>`. |
| 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: Corresponds to the `Response` |
| // field in the Dialogflow console. |
| 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: Returns a response containing a custom, platform-specific |
| // payload. |
| // See the Intent.Message.Platform type for a description of |
| // the |
| // structure that may be required for your platform. |
| 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" - Actions on Google. |
| // When using Actions on Google, you can choose one of the |
| // specific |
| // Intent.Message types that mention support for Actions on Google, |
| // or you can use the advanced Intent.Message.payload field. |
| // The payload field provides access to AoG features not available in |
| // the |
| // specific message types. |
| // If using the Intent.Message.payload field, it should have a |
| // structure |
| // similar to the JSON message shown here. For more information, |
| // see |
| // [Actions on Google |
| // Webhook |
| // Format](https://developers.google.com/actions/dialogflow/webho |
| // ok) |
| // <pre>{ |
| // "expectUserResponse": true, |
| // "isSsml": false, |
| // "noInputPrompts": [], |
| // "richResponse": { |
| // "items": [ |
| // { |
| // "simpleResponse": { |
| // "displayText": "hi", |
| // "textToSpeech": "hello" |
| // } |
| // } |
| // ], |
| // "suggestions": [ |
| // { |
| // "title": "Say this" |
| // }, |
| // { |
| // "title": "or this" |
| // } |
| // ] |
| // }, |
| // "systemIntent": { |
| // "data": { |
| // "@type": |
| // "type.googleapis.com/google.actions.v2.OptionValueSpec", |
| // "listSelect": { |
| // "items": [ |
| // { |
| // "optionInfo": { |
| // "key": "key1", |
| // "synonyms": [ |
| // "key one" |
| // ] |
| // }, |
| // "title": "must not be empty, but unique" |
| // }, |
| // { |
| // "optionInfo": { |
| // "key": "key2", |
| // "synonyms": [ |
| // "key two" |
| // ] |
| // }, |
| // "title": "must not be empty, but unique" |
| // } |
| // ] |
| // } |
| // }, |
| // "intent": "actions.intent.OPTION" |
| // } |
| // }</pre> |
| // "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 <link rel="amphtml">. |
| 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) |
| } |
| |
| // GoogleCloudDialogflowV2ListContextsResponse: The response message for |
| // Contexts.ListContexts. |
| type GoogleCloudDialogflowV2ListContextsResponse struct { |
| // Contexts: The list of contexts. There will be a maximum number of |
| // items |
| // returned based on the page_size field in the request. |
| Contexts []*GoogleCloudDialogflowV2Context `json:"contexts,omitempty"` |
| |
| // NextPageToken: Token to retrieve the next page of results, or empty |
| // if there are no |
| // more results in the list. |
| NextPageToken string `json:"nextPageToken,omitempty"` |
| |
| // ServerResponse contains the HTTP response code and headers from the |
| // server. |
| googleapi.ServerResponse `json:"-"` |
| |
| // ForceSendFields is a list of field names (e.g. "Contexts") 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. "Contexts") 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 *GoogleCloudDialogflowV2ListContextsResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2ListContextsResponse |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoogleCloudDialogflowV2ListEntityTypesResponse: The response message |
| // for EntityTypes.ListEntityTypes. |
| type GoogleCloudDialogflowV2ListEntityTypesResponse struct { |
| // EntityTypes: The list of agent entity types. There will be a maximum |
| // number of items |
| // returned based on the page_size field in the request. |
| EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"` |
| |
| // NextPageToken: Token to retrieve the next page of results, or empty |
| // if there are no |
| // more results in the list. |
| NextPageToken string `json:"nextPageToken,omitempty"` |
| |
| // ServerResponse contains the HTTP response code and headers from the |
| // server. |
| googleapi.ServerResponse `json:"-"` |
| |
| // ForceSendFields is a list of field names (e.g. "EntityTypes") to |
| // unconditionally include in API requests. By default, fields with |
| // empty values are omitted from API requests. However, any non-pointer, |
| // non-interface field appearing in ForceSendFields will be sent to the |
| // server regardless of whether the field is empty or not. This may be |
| // used to include empty fields in Patch requests. |
| ForceSendFields []string `json:"-"` |
| |
| // NullFields is a list of field names (e.g. "EntityTypes") to include |
| // in API requests with the JSON null value. By default, fields with |
| // empty values are omitted from API requests. However, any field with |
| // an empty value appearing in NullFields will be sent to the server as |
| // null. It is an error if a field in this list has a non-empty value. |
| // This may be used to include null fields in Patch requests. |
| NullFields []string `json:"-"` |
| } |
| |
| func (s *GoogleCloudDialogflowV2ListEntityTypesResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2ListEntityTypesResponse |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoogleCloudDialogflowV2ListIntentsResponse: The response message for |
| // Intents.ListIntents. |
| type GoogleCloudDialogflowV2ListIntentsResponse struct { |
| // Intents: The list of agent intents. There will be a maximum number of |
| // items |
| // returned based on the page_size field in the request. |
| Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"` |
| |
| // NextPageToken: Token to retrieve the next page of results, or empty |
| // if there are no |
| // more results in the list. |
| NextPageToken string `json:"nextPageToken,omitempty"` |
| |
| // ServerResponse contains the HTTP response code and headers from the |
| // server. |
| googleapi.ServerResponse `json:"-"` |
| |
| // ForceSendFields is a list of field names (e.g. "Intents") to |
| // unconditionally include in API requests. By default, fields with |
| // empty values are omitted from API requests. However, any non-pointer, |
| // non-interface field appearing in ForceSendFields will be sent to the |
| // server regardless of whether the field is empty or not. This may be |
| // used to include empty fields in Patch requests. |
| ForceSendFields []string `json:"-"` |
| |
| // NullFields is a list of field names (e.g. "Intents") to include in |
| // API requests with the JSON null value. By default, fields with empty |
| // values are omitted from API requests. However, any field with an |
| // empty value appearing in NullFields will be sent to the server as |
| // null. It is an error if a field in this list has a non-empty value. |
| // This may be used to include null fields in Patch requests. |
| NullFields []string `json:"-"` |
| } |
| |
| func (s *GoogleCloudDialogflowV2ListIntentsResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2ListIntentsResponse |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoogleCloudDialogflowV2ListSessionEntityTypesResponse: The response |
| // message for SessionEntityTypes.ListSessionEntityTypes. |
| type GoogleCloudDialogflowV2ListSessionEntityTypesResponse struct { |
| // NextPageToken: Token to retrieve the next page of results, or empty |
| // if there are no |
| // more results in the list. |
| NextPageToken string `json:"nextPageToken,omitempty"` |
| |
| // SessionEntityTypes: The list of session entity types. There will be a |
| // maximum number of items |
| // returned based on the page_size field in the request. |
| SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"` |
| |
| // ServerResponse contains the HTTP response code and headers from the |
| // server. |
| googleapi.ServerResponse `json:"-"` |
| |
| // ForceSendFields is a list of field names (e.g. "NextPageToken") to |
| // unconditionally include in API requests. By default, fields with |
| // empty values are omitted from API requests. However, any non-pointer, |
| // non-interface field appearing in ForceSendFields will be sent to the |
| // server regardless of whether the field is empty or not. This may be |
| // used to include empty fields in Patch requests. |
| ForceSendFields []string `json:"-"` |
| |
| // NullFields is a list of field names (e.g. "NextPageToken") to include |
| // in API requests with the JSON null value. By default, fields with |
| // empty values are omitted from API requests. However, any field with |
| // an empty value appearing in NullFields will be sent to the server as |
| // null. It is an error if a field in this list has a non-empty value. |
| // This may be used to include null fields in Patch requests. |
| NullFields []string `json:"-"` |
| } |
| |
| func (s *GoogleCloudDialogflowV2ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod GoogleCloudDialogflowV2ListSessionEntityTypesResponse |
| 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/<Project |
| // ID>/conversations/<Conversation |
| // ID>/messages/<Message ID>`. |
| 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 Telephony Gateway this field has the |
| // form: |
| // <pre>{ |
| // "telephony": { |
| // "caller_id": "+18558363987" |
| // } |
| // }</pre> |
| // Note: The caller ID field (`caller_id`) will be redacted for |
| // Standard |
| // Edition agents and populated with the caller ID in |
| // [E.164 |
| // format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition |
| // agents. |
| Payload 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) |
| } |
| |
| // GoogleCloudDialogflowV2OutputAudioConfig: Instructs the speech |
| // synthesizer on how to generate the output audio content. |
| type GoogleCloudDialogflowV2OutputAudioConfig struct { |
| // AudioEncoding: Required. Audio encoding of the synthesized audio |
| // content. |
| // |
| // Possible values: |
| // "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified. |
| // "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed |
| // little-endian samples (Linear PCM). |
| // Audio content returned as LINEAR16 also contains a WAV header. |
| // "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps. |
| // "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an |
| // ogg container. The result will be a |
| // file which can be played natively on Android, and in browsers (at |
| // least |
| // Chrome and Firefox). The quality of the encoding is considerably |
| // higher |
| // than MP3 while using approximately the same bitrate. |
| AudioEncoding string `json:"audioEncoding,omitempty"` |
| |
| // SampleRateHertz: Optional. The synthesis sample rate (in hertz) for |
| // this audio. If not |
| // provided, then the synthesizer will use the default sample rate based |
| // on |
| // the audio encoding. If this is different from the voice's natural |
| // sample |
| // rate, then the synthesizer will honor this request by converting to |
| // the |
| // desired sample rate (which might result in worse audio quality). |
| SampleRateHertz int64 `json:"sampleRateHertz,omitempty"` |
| |
| // SynthesizeSpeechConfig: Optional. Configuration of how speech should |
| // be synthesized. |
|