Documentation
¶
Overview ¶
Package ces provides access to the Gemini Enterprise for Customer Experience API.
For product documentation, see: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps
Library status ¶
These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.
Creating a client ¶
Usage example:
import "google.golang.org/api/ces/v1" ... ctx := context.Background() cesService, err := ces.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 google.golang.org/api/option.WithScopes:
cesService, err := ces.NewService(ctx, option.WithScopes(ces.CloudPlatformScope))
To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:
cesService, err := ces.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
cesService, err := ces.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type Action
- type ActionEntityOperation
- type Agent
- type AgentAgentToolset
- type AgentLlmAgent
- type AgentRemoteDialogflowAgent
- type AgentTool
- type AgentTransfer
- type AmbientSoundConfig
- type ApiAuthentication
- type ApiKeyConfig
- type App
- type AppSnapshot
- type AppVariableDeclaration
- type AppVersion
- type AudioProcessingConfig
- type AudioRecordingConfig
- type BargeInConfig
- type BatchDeleteConversationsRequest
- type BearerTokenConfig
- type BigQueryExportSettings
- type Blob
- type Callback
- type CancelOperationRequest
- type Changelog
- type ChannelProfile
- type ChannelProfilePersonaProperty
- type ChannelProfileWebWidgetConfig
- type ChannelProfileWebWidgetConfigSecuritySettings
- type Chunk
- type Citations
- type CitationsCitedChunk
- type ClientCertificateSettings
- type ClientFunction
- type CloudLoggingSettings
- type CodeBlock
- type ConnectorTool
- type ConnectorToolset
- type Conversation
- type ConversationLoggingSettings
- type ConversationTurn
- type DataStore
- type DataStoreConnectorConfig
- type DataStoreSettings
- type DataStoreSettingsEngine
- type DataStoreTool
- type DataStoreToolBoostSpec
- type DataStoreToolBoostSpecConditionBoostSpec
- type DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec
- type DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint
- type DataStoreToolBoostSpecs
- type DataStoreToolDataStoreSource
- type DataStoreToolEngineSource
- type DataStoreToolGroundingConfig
- type DataStoreToolModalityConfig
- type DataStoreToolRewriterConfig
- type DataStoreToolSummarizationConfig
- type Deployment
- type Empty
- type EndSession
- type EndUserAuthConfig
- type EndUserAuthConfigOauth2AuthCodeConfig
- type EndUserAuthConfigOauth2JwtBearerConfig
- type EndpointControlPolicy
- type ErrorHandlingSettings
- type ErrorHandlingSettingsEndSessionConfig
- type ErrorHandlingSettingsFallbackResponseConfig
- type EvaluationMetricsThresholds
- type EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds
- type EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds
- type EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds
- type EvaluationMetricsThresholdsToolMatchingSettings
- type Event
- type Example
- type ExecuteToolRequest
- type ExecuteToolResponse
- type ExperimentConfig
- type ExperimentConfigVersionRelease
- type ExperimentConfigVersionReleaseTrafficAllocation
- type ExportAppRequest
- type ExportAppResponse
- type ExpressionCondition
- type FileSearchTool
- type GenerateChatTokenRequest
- type GenerateChatTokenResponse
- type GoogleSearchSuggestions
- type GoogleSearchTool
- type GoogleSearchToolPromptConfig
- type Guardrail
- type GuardrailCodeCallback
- type GuardrailContentFilter
- type GuardrailLlmPolicy
- type GuardrailLlmPromptSecurity
- type GuardrailLlmPromptSecurityDefaultSecuritySettings
- type GuardrailModelSafety
- type GuardrailModelSafetySafetySetting
- type Image
- type ImportAppRequest
- type ImportAppRequestImportOptions
- type ImportAppResponse
- type InputAudioConfig
- type LanguageSettings
- type ListAgentsResponse
- type ListAppVersionsResponse
- type ListAppsResponse
- type ListChangelogsResponse
- type ListConversationsResponse
- type ListDeploymentsResponse
- type ListExamplesResponse
- type ListGuardrailsResponse
- type ListLocationsResponse
- type ListOperationsResponse
- type ListToolsResponse
- type ListToolsetsResponse
- type Location
- type LoggingSettings
- type McpTool
- type McpToolset
- type Message
- type MetricAnalysisSettings
- type MockConfig
- type MockedToolCall
- type ModelSettings
- type OAuthConfig
- type Omnichannel
- type OmnichannelIntegrationConfig
- type OmnichannelIntegrationConfigCesAppConfig
- type OmnichannelIntegrationConfigChannelConfig
- type OmnichannelIntegrationConfigRoutingConfig
- type OmnichannelIntegrationConfigSubscriberConfig
- type OmnichannelIntegrationConfigWhatsappConfig
- type OmnichannelOperationMetadata
- type OpenApiTool
- type OpenApiToolset
- type Operation
- type OperationMetadata
- type OutputAudioConfig
- type ProjectsLocationsAppsAgentsCreateCall
- func (c *ProjectsLocationsAppsAgentsCreateCall) AgentId(agentId string) *ProjectsLocationsAppsAgentsCreateCall
- func (c *ProjectsLocationsAppsAgentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsAgentsCreateCall
- func (c *ProjectsLocationsAppsAgentsCreateCall) Do(opts ...googleapi.CallOption) (*Agent, error)
- func (c *ProjectsLocationsAppsAgentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsAgentsCreateCall
- func (c *ProjectsLocationsAppsAgentsCreateCall) Header() http.Header
- type ProjectsLocationsAppsAgentsDeleteCall
- func (c *ProjectsLocationsAppsAgentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsAgentsDeleteCall
- func (c *ProjectsLocationsAppsAgentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsAppsAgentsDeleteCall) Etag(etag string) *ProjectsLocationsAppsAgentsDeleteCall
- func (c *ProjectsLocationsAppsAgentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsAgentsDeleteCall
- func (c *ProjectsLocationsAppsAgentsDeleteCall) Force(force bool) *ProjectsLocationsAppsAgentsDeleteCall
- func (c *ProjectsLocationsAppsAgentsDeleteCall) Header() http.Header
- type ProjectsLocationsAppsAgentsGetCall
- func (c *ProjectsLocationsAppsAgentsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsAgentsGetCall
- func (c *ProjectsLocationsAppsAgentsGetCall) Do(opts ...googleapi.CallOption) (*Agent, error)
- func (c *ProjectsLocationsAppsAgentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsAgentsGetCall
- func (c *ProjectsLocationsAppsAgentsGetCall) Header() http.Header
- func (c *ProjectsLocationsAppsAgentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsAgentsGetCall
- type ProjectsLocationsAppsAgentsListCall
- func (c *ProjectsLocationsAppsAgentsListCall) Context(ctx context.Context) *ProjectsLocationsAppsAgentsListCall
- func (c *ProjectsLocationsAppsAgentsListCall) Do(opts ...googleapi.CallOption) (*ListAgentsResponse, error)
- func (c *ProjectsLocationsAppsAgentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsAgentsListCall
- func (c *ProjectsLocationsAppsAgentsListCall) Filter(filter string) *ProjectsLocationsAppsAgentsListCall
- func (c *ProjectsLocationsAppsAgentsListCall) Header() http.Header
- func (c *ProjectsLocationsAppsAgentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsAgentsListCall
- func (c *ProjectsLocationsAppsAgentsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsAgentsListCall
- func (c *ProjectsLocationsAppsAgentsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsAgentsListCall
- func (c *ProjectsLocationsAppsAgentsListCall) PageToken(pageToken string) *ProjectsLocationsAppsAgentsListCall
- func (c *ProjectsLocationsAppsAgentsListCall) Pages(ctx context.Context, f func(*ListAgentsResponse) error) error
- type ProjectsLocationsAppsAgentsPatchCall
- func (c *ProjectsLocationsAppsAgentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsAgentsPatchCall
- func (c *ProjectsLocationsAppsAgentsPatchCall) Do(opts ...googleapi.CallOption) (*Agent, error)
- func (c *ProjectsLocationsAppsAgentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsAgentsPatchCall
- func (c *ProjectsLocationsAppsAgentsPatchCall) Header() http.Header
- func (c *ProjectsLocationsAppsAgentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsAgentsPatchCall
- type ProjectsLocationsAppsAgentsService
- func (r *ProjectsLocationsAppsAgentsService) Create(parent string, agent *Agent) *ProjectsLocationsAppsAgentsCreateCall
- func (r *ProjectsLocationsAppsAgentsService) Delete(name string) *ProjectsLocationsAppsAgentsDeleteCall
- func (r *ProjectsLocationsAppsAgentsService) Get(name string) *ProjectsLocationsAppsAgentsGetCall
- func (r *ProjectsLocationsAppsAgentsService) List(parent string) *ProjectsLocationsAppsAgentsListCall
- func (r *ProjectsLocationsAppsAgentsService) Patch(nameid string, agent *Agent) *ProjectsLocationsAppsAgentsPatchCall
- type ProjectsLocationsAppsChangelogsGetCall
- func (c *ProjectsLocationsAppsChangelogsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsChangelogsGetCall
- func (c *ProjectsLocationsAppsChangelogsGetCall) Do(opts ...googleapi.CallOption) (*Changelog, error)
- func (c *ProjectsLocationsAppsChangelogsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsChangelogsGetCall
- func (c *ProjectsLocationsAppsChangelogsGetCall) Header() http.Header
- func (c *ProjectsLocationsAppsChangelogsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsChangelogsGetCall
- type ProjectsLocationsAppsChangelogsListCall
- func (c *ProjectsLocationsAppsChangelogsListCall) Context(ctx context.Context) *ProjectsLocationsAppsChangelogsListCall
- func (c *ProjectsLocationsAppsChangelogsListCall) Do(opts ...googleapi.CallOption) (*ListChangelogsResponse, error)
- func (c *ProjectsLocationsAppsChangelogsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsChangelogsListCall
- func (c *ProjectsLocationsAppsChangelogsListCall) Filter(filter string) *ProjectsLocationsAppsChangelogsListCall
- func (c *ProjectsLocationsAppsChangelogsListCall) Header() http.Header
- func (c *ProjectsLocationsAppsChangelogsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsChangelogsListCall
- func (c *ProjectsLocationsAppsChangelogsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsChangelogsListCall
- func (c *ProjectsLocationsAppsChangelogsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsChangelogsListCall
- func (c *ProjectsLocationsAppsChangelogsListCall) PageToken(pageToken string) *ProjectsLocationsAppsChangelogsListCall
- func (c *ProjectsLocationsAppsChangelogsListCall) Pages(ctx context.Context, f func(*ListChangelogsResponse) error) error
- type ProjectsLocationsAppsChangelogsService
- type ProjectsLocationsAppsConversationsBatchDeleteCall
- func (c *ProjectsLocationsAppsConversationsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsConversationsBatchDeleteCall
- func (c *ProjectsLocationsAppsConversationsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsAppsConversationsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsConversationsBatchDeleteCall
- func (c *ProjectsLocationsAppsConversationsBatchDeleteCall) Header() http.Header
- type ProjectsLocationsAppsConversationsDeleteCall
- func (c *ProjectsLocationsAppsConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsConversationsDeleteCall
- func (c *ProjectsLocationsAppsConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsAppsConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsConversationsDeleteCall
- func (c *ProjectsLocationsAppsConversationsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsAppsConversationsDeleteCall) Source(source string) *ProjectsLocationsAppsConversationsDeleteCall
- type ProjectsLocationsAppsConversationsGetCall
- func (c *ProjectsLocationsAppsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsConversationsGetCall
- func (c *ProjectsLocationsAppsConversationsGetCall) Do(opts ...googleapi.CallOption) (*Conversation, error)
- func (c *ProjectsLocationsAppsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsConversationsGetCall
- func (c *ProjectsLocationsAppsConversationsGetCall) Header() http.Header
- func (c *ProjectsLocationsAppsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsConversationsGetCall
- func (c *ProjectsLocationsAppsConversationsGetCall) Source(source string) *ProjectsLocationsAppsConversationsGetCall
- type ProjectsLocationsAppsConversationsListCall
- func (c *ProjectsLocationsAppsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsAppsConversationsListCall
- func (c *ProjectsLocationsAppsConversationsListCall) Do(opts ...googleapi.CallOption) (*ListConversationsResponse, error)
- func (c *ProjectsLocationsAppsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsConversationsListCall
- func (c *ProjectsLocationsAppsConversationsListCall) Filter(filter string) *ProjectsLocationsAppsConversationsListCall
- func (c *ProjectsLocationsAppsConversationsListCall) Header() http.Header
- func (c *ProjectsLocationsAppsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsConversationsListCall
- func (c *ProjectsLocationsAppsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsConversationsListCall
- func (c *ProjectsLocationsAppsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsAppsConversationsListCall
- func (c *ProjectsLocationsAppsConversationsListCall) Pages(ctx context.Context, f func(*ListConversationsResponse) error) error
- func (c *ProjectsLocationsAppsConversationsListCall) Source(source string) *ProjectsLocationsAppsConversationsListCall
- func (c *ProjectsLocationsAppsConversationsListCall) Sources(sources ...string) *ProjectsLocationsAppsConversationsListCall
- type ProjectsLocationsAppsConversationsService
- func (r *ProjectsLocationsAppsConversationsService) BatchDelete(parent string, ...) *ProjectsLocationsAppsConversationsBatchDeleteCall
- func (r *ProjectsLocationsAppsConversationsService) Delete(name string) *ProjectsLocationsAppsConversationsDeleteCall
- func (r *ProjectsLocationsAppsConversationsService) Get(name string) *ProjectsLocationsAppsConversationsGetCall
- func (r *ProjectsLocationsAppsConversationsService) List(parent string) *ProjectsLocationsAppsConversationsListCall
- type ProjectsLocationsAppsCreateCall
- func (c *ProjectsLocationsAppsCreateCall) AppId(appId string) *ProjectsLocationsAppsCreateCall
- func (c *ProjectsLocationsAppsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsCreateCall
- func (c *ProjectsLocationsAppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsAppsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsCreateCall
- func (c *ProjectsLocationsAppsCreateCall) Header() http.Header
- type ProjectsLocationsAppsDeleteCall
- func (c *ProjectsLocationsAppsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsDeleteCall
- func (c *ProjectsLocationsAppsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsAppsDeleteCall) Etag(etag string) *ProjectsLocationsAppsDeleteCall
- func (c *ProjectsLocationsAppsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeleteCall
- func (c *ProjectsLocationsAppsDeleteCall) Header() http.Header
- type ProjectsLocationsAppsDeploymentsCreateCall
- func (c *ProjectsLocationsAppsDeploymentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsDeploymentsCreateCall
- func (c *ProjectsLocationsAppsDeploymentsCreateCall) DeploymentId(deploymentId string) *ProjectsLocationsAppsDeploymentsCreateCall
- func (c *ProjectsLocationsAppsDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*Deployment, error)
- func (c *ProjectsLocationsAppsDeploymentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeploymentsCreateCall
- func (c *ProjectsLocationsAppsDeploymentsCreateCall) Header() http.Header
- type ProjectsLocationsAppsDeploymentsDeleteCall
- func (c *ProjectsLocationsAppsDeploymentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsDeploymentsDeleteCall
- func (c *ProjectsLocationsAppsDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsAppsDeploymentsDeleteCall) Etag(etag string) *ProjectsLocationsAppsDeploymentsDeleteCall
- func (c *ProjectsLocationsAppsDeploymentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeploymentsDeleteCall
- func (c *ProjectsLocationsAppsDeploymentsDeleteCall) Header() http.Header
- type ProjectsLocationsAppsDeploymentsGetCall
- func (c *ProjectsLocationsAppsDeploymentsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsDeploymentsGetCall
- func (c *ProjectsLocationsAppsDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*Deployment, error)
- func (c *ProjectsLocationsAppsDeploymentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeploymentsGetCall
- func (c *ProjectsLocationsAppsDeploymentsGetCall) Header() http.Header
- func (c *ProjectsLocationsAppsDeploymentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsDeploymentsGetCall
- type ProjectsLocationsAppsDeploymentsListCall
- func (c *ProjectsLocationsAppsDeploymentsListCall) Context(ctx context.Context) *ProjectsLocationsAppsDeploymentsListCall
- func (c *ProjectsLocationsAppsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*ListDeploymentsResponse, error)
- func (c *ProjectsLocationsAppsDeploymentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeploymentsListCall
- func (c *ProjectsLocationsAppsDeploymentsListCall) Header() http.Header
- func (c *ProjectsLocationsAppsDeploymentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsDeploymentsListCall
- func (c *ProjectsLocationsAppsDeploymentsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsDeploymentsListCall
- func (c *ProjectsLocationsAppsDeploymentsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsDeploymentsListCall
- func (c *ProjectsLocationsAppsDeploymentsListCall) PageToken(pageToken string) *ProjectsLocationsAppsDeploymentsListCall
- func (c *ProjectsLocationsAppsDeploymentsListCall) Pages(ctx context.Context, f func(*ListDeploymentsResponse) error) error
- type ProjectsLocationsAppsDeploymentsPatchCall
- func (c *ProjectsLocationsAppsDeploymentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsDeploymentsPatchCall
- func (c *ProjectsLocationsAppsDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Deployment, error)
- func (c *ProjectsLocationsAppsDeploymentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeploymentsPatchCall
- func (c *ProjectsLocationsAppsDeploymentsPatchCall) Header() http.Header
- func (c *ProjectsLocationsAppsDeploymentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsDeploymentsPatchCall
- type ProjectsLocationsAppsDeploymentsService
- func (r *ProjectsLocationsAppsDeploymentsService) Create(parent string, deployment *Deployment) *ProjectsLocationsAppsDeploymentsCreateCall
- func (r *ProjectsLocationsAppsDeploymentsService) Delete(name string) *ProjectsLocationsAppsDeploymentsDeleteCall
- func (r *ProjectsLocationsAppsDeploymentsService) Get(name string) *ProjectsLocationsAppsDeploymentsGetCall
- func (r *ProjectsLocationsAppsDeploymentsService) List(parent string) *ProjectsLocationsAppsDeploymentsListCall
- func (r *ProjectsLocationsAppsDeploymentsService) Patch(name string, deployment *Deployment) *ProjectsLocationsAppsDeploymentsPatchCall
- type ProjectsLocationsAppsExamplesCreateCall
- func (c *ProjectsLocationsAppsExamplesCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsExamplesCreateCall
- func (c *ProjectsLocationsAppsExamplesCreateCall) Do(opts ...googleapi.CallOption) (*Example, error)
- func (c *ProjectsLocationsAppsExamplesCreateCall) ExampleId(exampleId string) *ProjectsLocationsAppsExamplesCreateCall
- func (c *ProjectsLocationsAppsExamplesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExamplesCreateCall
- func (c *ProjectsLocationsAppsExamplesCreateCall) Header() http.Header
- type ProjectsLocationsAppsExamplesDeleteCall
- func (c *ProjectsLocationsAppsExamplesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsExamplesDeleteCall
- func (c *ProjectsLocationsAppsExamplesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsAppsExamplesDeleteCall) Etag(etag string) *ProjectsLocationsAppsExamplesDeleteCall
- func (c *ProjectsLocationsAppsExamplesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExamplesDeleteCall
- func (c *ProjectsLocationsAppsExamplesDeleteCall) Header() http.Header
- type ProjectsLocationsAppsExamplesGetCall
- func (c *ProjectsLocationsAppsExamplesGetCall) Context(ctx context.Context) *ProjectsLocationsAppsExamplesGetCall
- func (c *ProjectsLocationsAppsExamplesGetCall) Do(opts ...googleapi.CallOption) (*Example, error)
- func (c *ProjectsLocationsAppsExamplesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExamplesGetCall
- func (c *ProjectsLocationsAppsExamplesGetCall) Header() http.Header
- func (c *ProjectsLocationsAppsExamplesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsExamplesGetCall
- type ProjectsLocationsAppsExamplesListCall
- func (c *ProjectsLocationsAppsExamplesListCall) Context(ctx context.Context) *ProjectsLocationsAppsExamplesListCall
- func (c *ProjectsLocationsAppsExamplesListCall) Do(opts ...googleapi.CallOption) (*ListExamplesResponse, error)
- func (c *ProjectsLocationsAppsExamplesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExamplesListCall
- func (c *ProjectsLocationsAppsExamplesListCall) Filter(filter string) *ProjectsLocationsAppsExamplesListCall
- func (c *ProjectsLocationsAppsExamplesListCall) Header() http.Header
- func (c *ProjectsLocationsAppsExamplesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsExamplesListCall
- func (c *ProjectsLocationsAppsExamplesListCall) OrderBy(orderBy string) *ProjectsLocationsAppsExamplesListCall
- func (c *ProjectsLocationsAppsExamplesListCall) PageSize(pageSize int64) *ProjectsLocationsAppsExamplesListCall
- func (c *ProjectsLocationsAppsExamplesListCall) PageToken(pageToken string) *ProjectsLocationsAppsExamplesListCall
- func (c *ProjectsLocationsAppsExamplesListCall) Pages(ctx context.Context, f func(*ListExamplesResponse) error) error
- type ProjectsLocationsAppsExamplesPatchCall
- func (c *ProjectsLocationsAppsExamplesPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsExamplesPatchCall
- func (c *ProjectsLocationsAppsExamplesPatchCall) Do(opts ...googleapi.CallOption) (*Example, error)
- func (c *ProjectsLocationsAppsExamplesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExamplesPatchCall
- func (c *ProjectsLocationsAppsExamplesPatchCall) Header() http.Header
- func (c *ProjectsLocationsAppsExamplesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsExamplesPatchCall
- type ProjectsLocationsAppsExamplesService
- func (r *ProjectsLocationsAppsExamplesService) Create(parent string, example *Example) *ProjectsLocationsAppsExamplesCreateCall
- func (r *ProjectsLocationsAppsExamplesService) Delete(name string) *ProjectsLocationsAppsExamplesDeleteCall
- func (r *ProjectsLocationsAppsExamplesService) Get(name string) *ProjectsLocationsAppsExamplesGetCall
- func (r *ProjectsLocationsAppsExamplesService) List(parent string) *ProjectsLocationsAppsExamplesListCall
- func (r *ProjectsLocationsAppsExamplesService) Patch(nameid string, example *Example) *ProjectsLocationsAppsExamplesPatchCall
- type ProjectsLocationsAppsExecuteToolCall
- func (c *ProjectsLocationsAppsExecuteToolCall) Context(ctx context.Context) *ProjectsLocationsAppsExecuteToolCall
- func (c *ProjectsLocationsAppsExecuteToolCall) Do(opts ...googleapi.CallOption) (*ExecuteToolResponse, error)
- func (c *ProjectsLocationsAppsExecuteToolCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExecuteToolCall
- func (c *ProjectsLocationsAppsExecuteToolCall) Header() http.Header
- type ProjectsLocationsAppsExportAppCall
- func (c *ProjectsLocationsAppsExportAppCall) Context(ctx context.Context) *ProjectsLocationsAppsExportAppCall
- func (c *ProjectsLocationsAppsExportAppCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsAppsExportAppCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExportAppCall
- func (c *ProjectsLocationsAppsExportAppCall) Header() http.Header
- type ProjectsLocationsAppsGetCall
- func (c *ProjectsLocationsAppsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsGetCall
- func (c *ProjectsLocationsAppsGetCall) Do(opts ...googleapi.CallOption) (*App, error)
- func (c *ProjectsLocationsAppsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGetCall
- func (c *ProjectsLocationsAppsGetCall) Header() http.Header
- func (c *ProjectsLocationsAppsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsGetCall
- type ProjectsLocationsAppsGuardrailsCreateCall
- func (c *ProjectsLocationsAppsGuardrailsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsGuardrailsCreateCall
- func (c *ProjectsLocationsAppsGuardrailsCreateCall) Do(opts ...googleapi.CallOption) (*Guardrail, error)
- func (c *ProjectsLocationsAppsGuardrailsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGuardrailsCreateCall
- func (c *ProjectsLocationsAppsGuardrailsCreateCall) GuardrailId(guardrailId string) *ProjectsLocationsAppsGuardrailsCreateCall
- func (c *ProjectsLocationsAppsGuardrailsCreateCall) Header() http.Header
- type ProjectsLocationsAppsGuardrailsDeleteCall
- func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsGuardrailsDeleteCall
- func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Etag(etag string) *ProjectsLocationsAppsGuardrailsDeleteCall
- func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGuardrailsDeleteCall
- func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Force(force bool) *ProjectsLocationsAppsGuardrailsDeleteCall
- func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Header() http.Header
- type ProjectsLocationsAppsGuardrailsGetCall
- func (c *ProjectsLocationsAppsGuardrailsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsGuardrailsGetCall
- func (c *ProjectsLocationsAppsGuardrailsGetCall) Do(opts ...googleapi.CallOption) (*Guardrail, error)
- func (c *ProjectsLocationsAppsGuardrailsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGuardrailsGetCall
- func (c *ProjectsLocationsAppsGuardrailsGetCall) Header() http.Header
- func (c *ProjectsLocationsAppsGuardrailsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsGuardrailsGetCall
- type ProjectsLocationsAppsGuardrailsListCall
- func (c *ProjectsLocationsAppsGuardrailsListCall) Context(ctx context.Context) *ProjectsLocationsAppsGuardrailsListCall
- func (c *ProjectsLocationsAppsGuardrailsListCall) Do(opts ...googleapi.CallOption) (*ListGuardrailsResponse, error)
- func (c *ProjectsLocationsAppsGuardrailsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGuardrailsListCall
- func (c *ProjectsLocationsAppsGuardrailsListCall) Filter(filter string) *ProjectsLocationsAppsGuardrailsListCall
- func (c *ProjectsLocationsAppsGuardrailsListCall) Header() http.Header
- func (c *ProjectsLocationsAppsGuardrailsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsGuardrailsListCall
- func (c *ProjectsLocationsAppsGuardrailsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsGuardrailsListCall
- func (c *ProjectsLocationsAppsGuardrailsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsGuardrailsListCall
- func (c *ProjectsLocationsAppsGuardrailsListCall) PageToken(pageToken string) *ProjectsLocationsAppsGuardrailsListCall
- func (c *ProjectsLocationsAppsGuardrailsListCall) Pages(ctx context.Context, f func(*ListGuardrailsResponse) error) error
- type ProjectsLocationsAppsGuardrailsPatchCall
- func (c *ProjectsLocationsAppsGuardrailsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsGuardrailsPatchCall
- func (c *ProjectsLocationsAppsGuardrailsPatchCall) Do(opts ...googleapi.CallOption) (*Guardrail, error)
- func (c *ProjectsLocationsAppsGuardrailsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGuardrailsPatchCall
- func (c *ProjectsLocationsAppsGuardrailsPatchCall) Header() http.Header
- func (c *ProjectsLocationsAppsGuardrailsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsGuardrailsPatchCall
- type ProjectsLocationsAppsGuardrailsService
- func (r *ProjectsLocationsAppsGuardrailsService) Create(parent string, guardrail *Guardrail) *ProjectsLocationsAppsGuardrailsCreateCall
- func (r *ProjectsLocationsAppsGuardrailsService) Delete(name string) *ProjectsLocationsAppsGuardrailsDeleteCall
- func (r *ProjectsLocationsAppsGuardrailsService) Get(name string) *ProjectsLocationsAppsGuardrailsGetCall
- func (r *ProjectsLocationsAppsGuardrailsService) List(parent string) *ProjectsLocationsAppsGuardrailsListCall
- func (r *ProjectsLocationsAppsGuardrailsService) Patch(nameid string, guardrail *Guardrail) *ProjectsLocationsAppsGuardrailsPatchCall
- type ProjectsLocationsAppsImportAppCall
- func (c *ProjectsLocationsAppsImportAppCall) Context(ctx context.Context) *ProjectsLocationsAppsImportAppCall
- func (c *ProjectsLocationsAppsImportAppCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsAppsImportAppCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsImportAppCall
- func (c *ProjectsLocationsAppsImportAppCall) Header() http.Header
- type ProjectsLocationsAppsListCall
- func (c *ProjectsLocationsAppsListCall) Context(ctx context.Context) *ProjectsLocationsAppsListCall
- func (c *ProjectsLocationsAppsListCall) Do(opts ...googleapi.CallOption) (*ListAppsResponse, error)
- func (c *ProjectsLocationsAppsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsListCall
- func (c *ProjectsLocationsAppsListCall) Filter(filter string) *ProjectsLocationsAppsListCall
- func (c *ProjectsLocationsAppsListCall) Header() http.Header
- func (c *ProjectsLocationsAppsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsListCall
- func (c *ProjectsLocationsAppsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsListCall
- func (c *ProjectsLocationsAppsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsListCall
- func (c *ProjectsLocationsAppsListCall) PageToken(pageToken string) *ProjectsLocationsAppsListCall
- func (c *ProjectsLocationsAppsListCall) Pages(ctx context.Context, f func(*ListAppsResponse) error) error
- type ProjectsLocationsAppsPatchCall
- func (c *ProjectsLocationsAppsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsPatchCall
- func (c *ProjectsLocationsAppsPatchCall) Do(opts ...googleapi.CallOption) (*App, error)
- func (c *ProjectsLocationsAppsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsPatchCall
- func (c *ProjectsLocationsAppsPatchCall) Header() http.Header
- func (c *ProjectsLocationsAppsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsPatchCall
- type ProjectsLocationsAppsRetrieveToolSchemaCall
- func (c *ProjectsLocationsAppsRetrieveToolSchemaCall) Context(ctx context.Context) *ProjectsLocationsAppsRetrieveToolSchemaCall
- func (c *ProjectsLocationsAppsRetrieveToolSchemaCall) Do(opts ...googleapi.CallOption) (*RetrieveToolSchemaResponse, error)
- func (c *ProjectsLocationsAppsRetrieveToolSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsRetrieveToolSchemaCall
- func (c *ProjectsLocationsAppsRetrieveToolSchemaCall) Header() http.Header
- type ProjectsLocationsAppsService
- func (r *ProjectsLocationsAppsService) Create(parent string, app *App) *ProjectsLocationsAppsCreateCall
- func (r *ProjectsLocationsAppsService) Delete(name string) *ProjectsLocationsAppsDeleteCall
- func (r *ProjectsLocationsAppsService) ExecuteTool(parent string, executetoolrequest *ExecuteToolRequest) *ProjectsLocationsAppsExecuteToolCall
- func (r *ProjectsLocationsAppsService) ExportApp(name string, exportapprequest *ExportAppRequest) *ProjectsLocationsAppsExportAppCall
- func (r *ProjectsLocationsAppsService) Get(name string) *ProjectsLocationsAppsGetCall
- func (r *ProjectsLocationsAppsService) ImportApp(parent string, importapprequest *ImportAppRequest) *ProjectsLocationsAppsImportAppCall
- func (r *ProjectsLocationsAppsService) List(parent string) *ProjectsLocationsAppsListCall
- func (r *ProjectsLocationsAppsService) Patch(nameid string, app *App) *ProjectsLocationsAppsPatchCall
- func (r *ProjectsLocationsAppsService) RetrieveToolSchema(parent string, retrievetoolschemarequest *RetrieveToolSchemaRequest) *ProjectsLocationsAppsRetrieveToolSchemaCall
- type ProjectsLocationsAppsSessionsGenerateChatTokenCall
- func (c *ProjectsLocationsAppsSessionsGenerateChatTokenCall) Context(ctx context.Context) *ProjectsLocationsAppsSessionsGenerateChatTokenCall
- func (c *ProjectsLocationsAppsSessionsGenerateChatTokenCall) Do(opts ...googleapi.CallOption) (*GenerateChatTokenResponse, error)
- func (c *ProjectsLocationsAppsSessionsGenerateChatTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsSessionsGenerateChatTokenCall
- func (c *ProjectsLocationsAppsSessionsGenerateChatTokenCall) Header() http.Header
- type ProjectsLocationsAppsSessionsRunSessionCall
- func (c *ProjectsLocationsAppsSessionsRunSessionCall) Context(ctx context.Context) *ProjectsLocationsAppsSessionsRunSessionCall
- func (c *ProjectsLocationsAppsSessionsRunSessionCall) Do(opts ...googleapi.CallOption) (*RunSessionResponse, error)
- func (c *ProjectsLocationsAppsSessionsRunSessionCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsSessionsRunSessionCall
- func (c *ProjectsLocationsAppsSessionsRunSessionCall) Header() http.Header
- type ProjectsLocationsAppsSessionsService
- func (r *ProjectsLocationsAppsSessionsService) GenerateChatToken(name string, generatechattokenrequest *GenerateChatTokenRequest) *ProjectsLocationsAppsSessionsGenerateChatTokenCall
- func (r *ProjectsLocationsAppsSessionsService) RunSession(sessionid string, runsessionrequest *RunSessionRequest) *ProjectsLocationsAppsSessionsRunSessionCall
- func (r *ProjectsLocationsAppsSessionsService) StreamRunSession(sessionid string, runsessionrequest *RunSessionRequest) *ProjectsLocationsAppsSessionsStreamRunSessionCall
- type ProjectsLocationsAppsSessionsStreamRunSessionCall
- func (c *ProjectsLocationsAppsSessionsStreamRunSessionCall) Context(ctx context.Context) *ProjectsLocationsAppsSessionsStreamRunSessionCall
- func (c *ProjectsLocationsAppsSessionsStreamRunSessionCall) Do(opts ...googleapi.CallOption) (*RunSessionResponse, error)
- func (c *ProjectsLocationsAppsSessionsStreamRunSessionCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsSessionsStreamRunSessionCall
- func (c *ProjectsLocationsAppsSessionsStreamRunSessionCall) Header() http.Header
- type ProjectsLocationsAppsToolsCreateCall
- func (c *ProjectsLocationsAppsToolsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsCreateCall
- func (c *ProjectsLocationsAppsToolsCreateCall) Do(opts ...googleapi.CallOption) (*Tool, error)
- func (c *ProjectsLocationsAppsToolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsCreateCall
- func (c *ProjectsLocationsAppsToolsCreateCall) Header() http.Header
- func (c *ProjectsLocationsAppsToolsCreateCall) ToolId(toolId string) *ProjectsLocationsAppsToolsCreateCall
- type ProjectsLocationsAppsToolsDeleteCall
- func (c *ProjectsLocationsAppsToolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsDeleteCall
- func (c *ProjectsLocationsAppsToolsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsAppsToolsDeleteCall) Etag(etag string) *ProjectsLocationsAppsToolsDeleteCall
- func (c *ProjectsLocationsAppsToolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsDeleteCall
- func (c *ProjectsLocationsAppsToolsDeleteCall) Force(force bool) *ProjectsLocationsAppsToolsDeleteCall
- func (c *ProjectsLocationsAppsToolsDeleteCall) Header() http.Header
- type ProjectsLocationsAppsToolsGetCall
- func (c *ProjectsLocationsAppsToolsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsGetCall
- func (c *ProjectsLocationsAppsToolsGetCall) Do(opts ...googleapi.CallOption) (*Tool, error)
- func (c *ProjectsLocationsAppsToolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsGetCall
- func (c *ProjectsLocationsAppsToolsGetCall) Header() http.Header
- func (c *ProjectsLocationsAppsToolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsToolsGetCall
- type ProjectsLocationsAppsToolsListCall
- func (c *ProjectsLocationsAppsToolsListCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsListCall
- func (c *ProjectsLocationsAppsToolsListCall) Do(opts ...googleapi.CallOption) (*ListToolsResponse, error)
- func (c *ProjectsLocationsAppsToolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsListCall
- func (c *ProjectsLocationsAppsToolsListCall) Filter(filter string) *ProjectsLocationsAppsToolsListCall
- func (c *ProjectsLocationsAppsToolsListCall) Header() http.Header
- func (c *ProjectsLocationsAppsToolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsToolsListCall
- func (c *ProjectsLocationsAppsToolsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsToolsListCall
- func (c *ProjectsLocationsAppsToolsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsToolsListCall
- func (c *ProjectsLocationsAppsToolsListCall) PageToken(pageToken string) *ProjectsLocationsAppsToolsListCall
- func (c *ProjectsLocationsAppsToolsListCall) Pages(ctx context.Context, f func(*ListToolsResponse) error) error
- type ProjectsLocationsAppsToolsPatchCall
- func (c *ProjectsLocationsAppsToolsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsPatchCall
- func (c *ProjectsLocationsAppsToolsPatchCall) Do(opts ...googleapi.CallOption) (*Tool, error)
- func (c *ProjectsLocationsAppsToolsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsPatchCall
- func (c *ProjectsLocationsAppsToolsPatchCall) Header() http.Header
- func (c *ProjectsLocationsAppsToolsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsToolsPatchCall
- type ProjectsLocationsAppsToolsService
- func (r *ProjectsLocationsAppsToolsService) Create(parent string, tool *Tool) *ProjectsLocationsAppsToolsCreateCall
- func (r *ProjectsLocationsAppsToolsService) Delete(name string) *ProjectsLocationsAppsToolsDeleteCall
- func (r *ProjectsLocationsAppsToolsService) Get(name string) *ProjectsLocationsAppsToolsGetCall
- func (r *ProjectsLocationsAppsToolsService) List(parent string) *ProjectsLocationsAppsToolsListCall
- func (r *ProjectsLocationsAppsToolsService) Patch(name string, tool *Tool) *ProjectsLocationsAppsToolsPatchCall
- type ProjectsLocationsAppsToolsetsCreateCall
- func (c *ProjectsLocationsAppsToolsetsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsCreateCall
- func (c *ProjectsLocationsAppsToolsetsCreateCall) Do(opts ...googleapi.CallOption) (*Toolset, error)
- func (c *ProjectsLocationsAppsToolsetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsCreateCall
- func (c *ProjectsLocationsAppsToolsetsCreateCall) Header() http.Header
- func (c *ProjectsLocationsAppsToolsetsCreateCall) ToolsetId(toolsetId string) *ProjectsLocationsAppsToolsetsCreateCall
- type ProjectsLocationsAppsToolsetsDeleteCall
- func (c *ProjectsLocationsAppsToolsetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsDeleteCall
- func (c *ProjectsLocationsAppsToolsetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsAppsToolsetsDeleteCall) Etag(etag string) *ProjectsLocationsAppsToolsetsDeleteCall
- func (c *ProjectsLocationsAppsToolsetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsDeleteCall
- func (c *ProjectsLocationsAppsToolsetsDeleteCall) Force(force bool) *ProjectsLocationsAppsToolsetsDeleteCall
- func (c *ProjectsLocationsAppsToolsetsDeleteCall) Header() http.Header
- type ProjectsLocationsAppsToolsetsGetCall
- func (c *ProjectsLocationsAppsToolsetsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsGetCall
- func (c *ProjectsLocationsAppsToolsetsGetCall) Do(opts ...googleapi.CallOption) (*Toolset, error)
- func (c *ProjectsLocationsAppsToolsetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsGetCall
- func (c *ProjectsLocationsAppsToolsetsGetCall) Header() http.Header
- func (c *ProjectsLocationsAppsToolsetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsToolsetsGetCall
- type ProjectsLocationsAppsToolsetsListCall
- func (c *ProjectsLocationsAppsToolsetsListCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsListCall
- func (c *ProjectsLocationsAppsToolsetsListCall) Do(opts ...googleapi.CallOption) (*ListToolsetsResponse, error)
- func (c *ProjectsLocationsAppsToolsetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsListCall
- func (c *ProjectsLocationsAppsToolsetsListCall) Filter(filter string) *ProjectsLocationsAppsToolsetsListCall
- func (c *ProjectsLocationsAppsToolsetsListCall) Header() http.Header
- func (c *ProjectsLocationsAppsToolsetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsToolsetsListCall
- func (c *ProjectsLocationsAppsToolsetsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsToolsetsListCall
- func (c *ProjectsLocationsAppsToolsetsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsToolsetsListCall
- func (c *ProjectsLocationsAppsToolsetsListCall) PageToken(pageToken string) *ProjectsLocationsAppsToolsetsListCall
- func (c *ProjectsLocationsAppsToolsetsListCall) Pages(ctx context.Context, f func(*ListToolsetsResponse) error) error
- type ProjectsLocationsAppsToolsetsPatchCall
- func (c *ProjectsLocationsAppsToolsetsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsPatchCall
- func (c *ProjectsLocationsAppsToolsetsPatchCall) Do(opts ...googleapi.CallOption) (*Toolset, error)
- func (c *ProjectsLocationsAppsToolsetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsPatchCall
- func (c *ProjectsLocationsAppsToolsetsPatchCall) Header() http.Header
- func (c *ProjectsLocationsAppsToolsetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsToolsetsPatchCall
- type ProjectsLocationsAppsToolsetsRetrieveToolsCall
- func (c *ProjectsLocationsAppsToolsetsRetrieveToolsCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsRetrieveToolsCall
- func (c *ProjectsLocationsAppsToolsetsRetrieveToolsCall) Do(opts ...googleapi.CallOption) (*RetrieveToolsResponse, error)
- func (c *ProjectsLocationsAppsToolsetsRetrieveToolsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsRetrieveToolsCall
- func (c *ProjectsLocationsAppsToolsetsRetrieveToolsCall) Header() http.Header
- type ProjectsLocationsAppsToolsetsService
- func (r *ProjectsLocationsAppsToolsetsService) Create(parent string, toolset *Toolset) *ProjectsLocationsAppsToolsetsCreateCall
- func (r *ProjectsLocationsAppsToolsetsService) Delete(name string) *ProjectsLocationsAppsToolsetsDeleteCall
- func (r *ProjectsLocationsAppsToolsetsService) Get(name string) *ProjectsLocationsAppsToolsetsGetCall
- func (r *ProjectsLocationsAppsToolsetsService) List(parent string) *ProjectsLocationsAppsToolsetsListCall
- func (r *ProjectsLocationsAppsToolsetsService) Patch(nameid string, toolset *Toolset) *ProjectsLocationsAppsToolsetsPatchCall
- func (r *ProjectsLocationsAppsToolsetsService) RetrieveTools(toolset string, retrievetoolsrequest *RetrieveToolsRequest) *ProjectsLocationsAppsToolsetsRetrieveToolsCall
- type ProjectsLocationsAppsVersionsCreateCall
- func (c *ProjectsLocationsAppsVersionsCreateCall) AppVersionId(appVersionId string) *ProjectsLocationsAppsVersionsCreateCall
- func (c *ProjectsLocationsAppsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsVersionsCreateCall
- func (c *ProjectsLocationsAppsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*AppVersion, error)
- func (c *ProjectsLocationsAppsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsVersionsCreateCall
- func (c *ProjectsLocationsAppsVersionsCreateCall) Header() http.Header
- type ProjectsLocationsAppsVersionsDeleteCall
- func (c *ProjectsLocationsAppsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsVersionsDeleteCall
- func (c *ProjectsLocationsAppsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsAppsVersionsDeleteCall) Etag(etag string) *ProjectsLocationsAppsVersionsDeleteCall
- func (c *ProjectsLocationsAppsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsVersionsDeleteCall
- func (c *ProjectsLocationsAppsVersionsDeleteCall) Header() http.Header
- type ProjectsLocationsAppsVersionsGetCall
- func (c *ProjectsLocationsAppsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsVersionsGetCall
- func (c *ProjectsLocationsAppsVersionsGetCall) Do(opts ...googleapi.CallOption) (*AppVersion, error)
- func (c *ProjectsLocationsAppsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsVersionsGetCall
- func (c *ProjectsLocationsAppsVersionsGetCall) Header() http.Header
- func (c *ProjectsLocationsAppsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsVersionsGetCall
- type ProjectsLocationsAppsVersionsListCall
- func (c *ProjectsLocationsAppsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAppsVersionsListCall
- func (c *ProjectsLocationsAppsVersionsListCall) Do(opts ...googleapi.CallOption) (*ListAppVersionsResponse, error)
- func (c *ProjectsLocationsAppsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsVersionsListCall
- func (c *ProjectsLocationsAppsVersionsListCall) Filter(filter string) *ProjectsLocationsAppsVersionsListCall
- func (c *ProjectsLocationsAppsVersionsListCall) Header() http.Header
- func (c *ProjectsLocationsAppsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsVersionsListCall
- func (c *ProjectsLocationsAppsVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsVersionsListCall
- func (c *ProjectsLocationsAppsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsVersionsListCall
- func (c *ProjectsLocationsAppsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAppsVersionsListCall
- func (c *ProjectsLocationsAppsVersionsListCall) Pages(ctx context.Context, f func(*ListAppVersionsResponse) error) error
- type ProjectsLocationsAppsVersionsRestoreCall
- func (c *ProjectsLocationsAppsVersionsRestoreCall) Context(ctx context.Context) *ProjectsLocationsAppsVersionsRestoreCall
- func (c *ProjectsLocationsAppsVersionsRestoreCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsAppsVersionsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsVersionsRestoreCall
- func (c *ProjectsLocationsAppsVersionsRestoreCall) Header() http.Header
- type ProjectsLocationsAppsVersionsService
- func (r *ProjectsLocationsAppsVersionsService) Create(parent string, appversion *AppVersion) *ProjectsLocationsAppsVersionsCreateCall
- func (r *ProjectsLocationsAppsVersionsService) Delete(name string) *ProjectsLocationsAppsVersionsDeleteCall
- func (r *ProjectsLocationsAppsVersionsService) Get(name string) *ProjectsLocationsAppsVersionsGetCall
- func (r *ProjectsLocationsAppsVersionsService) List(parent string) *ProjectsLocationsAppsVersionsListCall
- func (r *ProjectsLocationsAppsVersionsService) Restore(name string, restoreappversionrequest *RestoreAppVersionRequest) *ProjectsLocationsAppsVersionsRestoreCall
- type ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
- func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Header() http.Header
- func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Header() http.Header
- func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsService
- type ProjectsService
- type PythonCodeCondition
- type PythonFunction
- type RedactionConfig
- type RestoreAppVersionRequest
- type RetrieveToolSchemaRequest
- type RetrieveToolSchemaResponse
- type RetrieveToolsRequest
- type RetrieveToolsResponse
- type RunSessionRequest
- type RunSessionResponse
- type Schema
- type SecuritySettings
- type Service
- type ServiceAccountAuthConfig
- type ServiceAgentIdTokenAuthConfig
- type ServiceDirectoryConfig
- type SessionConfig
- type SessionConfigRemoteDialogflowQueryParameters
- type SessionInput
- type SessionOutput
- type SessionOutputDiagnosticInfo
- type Span
- type Status
- type SynthesizeSpeechConfig
- type SystemTool
- type TimeZoneSettings
- type TlsConfig
- type TlsConfigCaCert
- type Tool
- type ToolCall
- type ToolCalls
- type ToolFakeConfig
- type ToolResponse
- type ToolResponses
- type Toolset
- type ToolsetTool
- type TransferRule
- type TransferRuleDeterministicTransfer
- type TransferRuleDisablePlannerTransfer
- type TriggerAction
- type TriggerActionGenerativeAnswer
- type TriggerActionRespondImmediately
- type TriggerActionResponse
- type TriggerActionTransferAgent
- type WebSearchQuery
- type WidgetTool
- type WidgetToolDataMapping
- type WidgetToolTextResponseConfig
Constants ¶
const ( // Create, update, delete, and manage your Next Gen Agents CesScope = "https://www.googleapis.com/auth/ces" // See, edit, configure, and delete your Google Cloud data and see the email // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
// ConnectionActionId: ID of a Connection action for the tool to use.
ConnectionActionId string `json:"connectionActionId,omitempty"`
// EntityOperation: Entity operation configuration for the tool to use.
EntityOperation *ActionEntityOperation `json:"entityOperation,omitempty"`
// InputFields: Optional. Entity fields to use as inputs for the operation. If
// no fields are specified, all fields of the Entity will be used.
InputFields []string `json:"inputFields,omitempty"`
// OutputFields: Optional. Entity fields to return from the operation. If no
// fields are specified, all fields of the Entity will be returned.
OutputFields []string `json:"outputFields,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConnectionActionId") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ConnectionActionId") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Action: Configuration of an Action for the tool to use. Note: This can be either an Action or an Operation. See https://cloud.google.com/integration-connectors/docs/entities-operation-action for details.
func (Action) MarshalJSON ¶
type ActionEntityOperation ¶
type ActionEntityOperation struct {
// EntityId: Required. ID of the entity.
EntityId string `json:"entityId,omitempty"`
// Operation: Required. Operation to perform on the entity.
//
// Possible values:
// "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified. Invalid,
// ConnectorTool create/update will fail.
// "LIST" - List operation.
// "GET" - Get operation.
// "CREATE" - Create operation.
// "UPDATE" - Update operation.
// "DELETE" - Delete operation.
Operation string `json:"operation,omitempty"`
// ForceSendFields is a list of field names (e.g. "EntityId") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EntityId") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ActionEntityOperation: Entity CRUD operation specification.
func (ActionEntityOperation) MarshalJSON ¶
func (s ActionEntityOperation) MarshalJSON() ([]byte, error)
type Agent ¶
type Agent struct {
// AfterAgentCallbacks: Optional. The callbacks to execute after the agent is
// called. The provided callbacks are executed sequentially in the exact order
// they are given in the list. If a callback returns an overridden response,
// execution stops and any remaining callbacks are skipped.
AfterAgentCallbacks []*Callback `json:"afterAgentCallbacks,omitempty"`
// AfterModelCallbacks: Optional. The callbacks to execute after the model is
// called. If there are multiple calls to the model, the callback will be
// executed multiple times. The provided callbacks are executed sequentially in
// the exact order they are given in the list. If a callback returns an
// overridden response, execution stops and any remaining callbacks are
// skipped.
AfterModelCallbacks []*Callback `json:"afterModelCallbacks,omitempty"`
// AfterToolCallbacks: Optional. The callbacks to execute after the tool is
// invoked. If there are multiple tool invocations, the callback will be
// executed multiple times. The provided callbacks are executed sequentially in
// the exact order they are given in the list. If a callback returns an
// overridden response, execution stops and any remaining callbacks are
// skipped.
AfterToolCallbacks []*Callback `json:"afterToolCallbacks,omitempty"`
// BeforeAgentCallbacks: Optional. The callbacks to execute before the agent is
// called. The provided callbacks are executed sequentially in the exact order
// they are given in the list. If a callback returns an overridden response,
// execution stops and any remaining callbacks are skipped.
BeforeAgentCallbacks []*Callback `json:"beforeAgentCallbacks,omitempty"`
// BeforeModelCallbacks: Optional. The callbacks to execute before the model is
// called. If there are multiple calls to the model, the callback will be
// executed multiple times. The provided callbacks are executed sequentially in
// the exact order they are given in the list. If a callback returns an
// overridden response, execution stops and any remaining callbacks are
// skipped.
BeforeModelCallbacks []*Callback `json:"beforeModelCallbacks,omitempty"`
// BeforeToolCallbacks: Optional. The callbacks to execute before the tool is
// invoked. If there are multiple tool invocations, the callback will be
// executed multiple times. The provided callbacks are executed sequentially in
// the exact order they are given in the list. If a callback returns an
// overridden response, execution stops and any remaining callbacks are
// skipped.
BeforeToolCallbacks []*Callback `json:"beforeToolCallbacks,omitempty"`
// ChildAgents: Optional. List of child agents in the agent tree. Format:
// `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
ChildAgents []string `json:"childAgents,omitempty"`
// CreateTime: Output only. Timestamp when the agent was created.
CreateTime string `json:"createTime,omitempty"`
// Description: Optional. Human-readable description of the agent.
Description string `json:"description,omitempty"`
// DisplayName: Required. Display name of the agent.
DisplayName string `json:"displayName,omitempty"`
// Etag: Etag used to ensure the object hasn't changed during a
// read-modify-write operation. If the etag is empty, the update will overwrite
// any concurrent changes.
Etag string `json:"etag,omitempty"`
// GeneratedSummary: Output only. If the agent is generated by the LLM
// assistant, this field contains a descriptive summary of the generation.
GeneratedSummary string `json:"generatedSummary,omitempty"`
// Guardrails: Optional. List of guardrails for the agent. Format:
// `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
Guardrails []string `json:"guardrails,omitempty"`
// Instruction: Optional. Instructions for the LLM model to guide the agent's
// behavior.
Instruction string `json:"instruction,omitempty"`
// LlmAgent: Optional. The default agent type.
LlmAgent *AgentLlmAgent `json:"llmAgent,omitempty"`
// ModelSettings: Optional. Configurations for the LLM model.
ModelSettings *ModelSettings `json:"modelSettings,omitempty"`
// Name: Identifier. The unique identifier of the agent. Format:
// `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
Name string `json:"name,omitempty"`
// RemoteDialogflowAgent: Optional. The remote Dialogflow
// (https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
// agent to be used for the agent execution. If this field is set, all other
// agent level properties will be ignored. Note: If the Dialogflow agent is in
// a different project from the app, you should grant `roles/dialogflow.client`
// to the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
RemoteDialogflowAgent *AgentRemoteDialogflowAgent `json:"remoteDialogflowAgent,omitempty"`
// Tools: Optional. List of available tools for the agent. Format:
// `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
Tools []string `json:"tools,omitempty"`
// Toolsets: Optional. List of toolsets for the agent.
Toolsets []*AgentAgentToolset `json:"toolsets,omitempty"`
// TransferRules: Optional. Agent transfer rules. If multiple rules match, the
// first one in the list will be used.
TransferRules []*TransferRule `json:"transferRules,omitempty"`
// UpdateTime: Output only. Timestamp when the agent was last updated.
UpdateTime string `json:"updateTime,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AfterAgentCallbacks") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AfterAgentCallbacks") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Agent: An agent acts as the fundamental building block that provides instructions to the Large Language Model (LLM) for executing specific tasks.
func (Agent) MarshalJSON ¶
type AgentAgentToolset ¶
type AgentAgentToolset struct {
// ToolIds: Optional. The tools IDs to filter the toolset.
ToolIds []string `json:"toolIds,omitempty"`
// Toolset: Required. The resource name of the toolset. Format:
// `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
Toolset string `json:"toolset,omitempty"`
// ForceSendFields is a list of field names (e.g. "ToolIds") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ToolIds") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AgentAgentToolset: A toolset with a selection of its tools.
func (AgentAgentToolset) MarshalJSON ¶
func (s AgentAgentToolset) MarshalJSON() ([]byte, error)
type AgentLlmAgent ¶
type AgentLlmAgent struct {
}
AgentLlmAgent: Default agent type. The agent uses instructions and callbacks specified in the agent to perform the task using a large language model.
type AgentRemoteDialogflowAgent ¶
type AgentRemoteDialogflowAgent struct {
// Agent: Required. The Dialogflow
// (https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent
// resource name. Format:
// `projects/{project}/locations/{location}/agents/{agent}`
Agent string `json:"agent,omitempty"`
// EnvironmentId: Optional. The environment ID of the Dialogflow agent to be
// used for the agent execution. If not specified, the draft environment will
// be used.
EnvironmentId string `json:"environmentId,omitempty"`
// FlowId: Optional. The flow ID of the flow in the Dialogflow agent.
FlowId string `json:"flowId,omitempty"`
// InputVariableMapping: Optional. The mapping of the app variables names to
// the Dialogflow session parameters names to be sent to the Dialogflow agent
// as input.
InputVariableMapping map[string]string `json:"inputVariableMapping,omitempty"`
// OutputVariableMapping: Optional. The mapping of the Dialogflow session
// parameters names to the app variables names to be sent back to the CES agent
// after the Dialogflow agent execution ends.
OutputVariableMapping map[string]string `json:"outputVariableMapping,omitempty"`
// RespectResponseInterruptionSettings: Optional. Indicates whether to respect
// the message-level interruption settings configured in the Dialogflow agent.
// * If false: all response messages from the Dialogflow agent follow the
// app-level barge-in settings. * If true: only response messages with
// `allow_playback_interruption`
// (https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text)
// set to true will be interruptable, all other messages follow the app-level
// barge-in settings.
RespectResponseInterruptionSettings bool `json:"respectResponseInterruptionSettings,omitempty"`
// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Agent") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AgentRemoteDialogflowAgent: The agent which will transfer execution to a remote Dialogflow CX (https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. The Dialogflow agent will process subsequent user queries until the session ends or flow ends, and the control is transferred back to the parent CES agent.
func (AgentRemoteDialogflowAgent) MarshalJSON ¶
func (s AgentRemoteDialogflowAgent) MarshalJSON() ([]byte, error)
type AgentTool ¶ added in v0.272.0
type AgentTool struct {
// Agent: Optional. The resource name of the agent that is the entry point of
// the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
Agent string `json:"agent,omitempty"`
// Description: Optional. Description of the tool's purpose.
Description string `json:"description,omitempty"`
// Name: Required. The name of the agent tool.
Name string `json:"name,omitempty"`
// RootAgent: Optional. Deprecated: Use `agent` instead. The resource name of
// the root agent that is the entry point of the tool. Format:
// `projects/{project}/locations/{location}/agents/{agent}`
RootAgent string `json:"rootAgent,omitempty"`
// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Agent") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AgentTool: Represents a tool that allows the agent to call another agent.
func (AgentTool) MarshalJSON ¶ added in v0.272.0
type AgentTransfer ¶
type AgentTransfer struct {
// DisplayName: Output only. Display name of the agent.
DisplayName string `json:"displayName,omitempty"`
// TargetAgent: Required. The agent to which the conversation is being
// transferred. The agent will handle the conversation from this point forward.
// Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
TargetAgent string `json:"targetAgent,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AgentTransfer: Represents an event indicating the transfer of a conversation to a different agent.
func (AgentTransfer) MarshalJSON ¶
func (s AgentTransfer) MarshalJSON() ([]byte, error)
type AmbientSoundConfig ¶
type AmbientSoundConfig struct {
// GcsUri: Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
// Cloud Storage (https://cloud.google.com/storage). Note: Please make sure the
// CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com` has
// `storage.objects.get` permission to the Cloud Storage object.
GcsUri string `json:"gcsUri,omitempty"`
// PrebuiltAmbientNoise: Optional. Deprecated: `prebuilt_ambient_noise` is
// deprecated in favor of `prebuilt_ambient_sound`.
//
// Possible values:
// "PREBUILT_AMBIENT_NOISE_UNSPECIFIED" - Not specified.
// "RETAIL_STORE" - Ambient noise of a retail store.
// "CONVENTION_HALL" - Ambient noise of a convention hall.
// "OUTDOOR" - Ambient noise of a street.
PrebuiltAmbientNoise string `json:"prebuiltAmbientNoise,omitempty"`
// PrebuiltAmbientSound: Optional. Name of the prebuilt ambient sound. Valid
// values are: - "coffee_shop" - "keyboard" - "keypad" - "hum" - "office_1" -
// "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - "room_4" -
// "room_5" - "air_conditioner"
PrebuiltAmbientSound string `json:"prebuiltAmbientSound,omitempty"`
// VolumeGainDb: Optional. Volume gain (in dB) of the normal native volume
// supported by ambient noise, in the range [-96.0, 16.0]. If unset, or set to
// a value of 0.0 (dB), will play at normal native signal amplitude. A value of
// -6.0 (dB) will play at approximately half the amplitude of the normal native
// signal amplitude. A value of +6.0 (dB) will play at approximately twice the
// amplitude of the normal native signal amplitude. We strongly recommend not
// to exceed +10 (dB) as there's usually no effective increase in loudness for
// any value greater than that.
VolumeGainDb float64 `json:"volumeGainDb,omitempty"`
// ForceSendFields is a list of field names (e.g. "GcsUri") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GcsUri") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AmbientSoundConfig: Configuration for the ambient sound to be played with the synthesized agent response, to enhance the naturalness of the conversation.
func (AmbientSoundConfig) MarshalJSON ¶
func (s AmbientSoundConfig) MarshalJSON() ([]byte, error)
func (*AmbientSoundConfig) UnmarshalJSON ¶
func (s *AmbientSoundConfig) UnmarshalJSON(data []byte) error
type ApiAuthentication ¶
type ApiAuthentication struct {
// ApiKeyConfig: Optional. Config for API key auth.
ApiKeyConfig *ApiKeyConfig `json:"apiKeyConfig,omitempty"`
// BearerTokenConfig: Optional. Config for bearer token auth.
BearerTokenConfig *BearerTokenConfig `json:"bearerTokenConfig,omitempty"`
// OauthConfig: Optional. Config for OAuth.
OauthConfig *OAuthConfig `json:"oauthConfig,omitempty"`
// ServiceAccountAuthConfig: Optional. Config for service account
// authentication.
ServiceAccountAuthConfig *ServiceAccountAuthConfig `json:"serviceAccountAuthConfig,omitempty"`
// ServiceAgentIdTokenAuthConfig: Optional. Config for ID token auth generated
// from CES service agent.
ServiceAgentIdTokenAuthConfig *ServiceAgentIdTokenAuthConfig `json:"serviceAgentIdTokenAuthConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApiKeyConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ApiKeyConfig") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ApiAuthentication: Authentication information required for API calls.
func (ApiAuthentication) MarshalJSON ¶
func (s ApiAuthentication) MarshalJSON() ([]byte, error)
type ApiKeyConfig ¶
type ApiKeyConfig struct {
// ApiKeySecretVersion: Required. The name of the SecretManager secret version
// resource storing the API key. Format:
// `projects/{project}/secrets/{secret}/versions/{version}` Note: You should
// grant `roles/secretmanager.secretAccessor` role to the CES service agent
// `service-@gcp-sa-ces.iam.gserviceaccount.com`.
ApiKeySecretVersion string `json:"apiKeySecretVersion,omitempty"`
// KeyName: Required. The parameter name or the header name of the API key.
// E.g., If the API request is "https://example.com/act?X-Api-Key=",
// "X-Api-Key" would be the parameter name.
KeyName string `json:"keyName,omitempty"`
// RequestLocation: Required. Key location in the request.
//
// Possible values:
// "REQUEST_LOCATION_UNSPECIFIED" - Unspecified. This value should not be
// used.
// "HEADER" - Represents the key in http header.
// "QUERY_STRING" - Represents the key in query string.
RequestLocation string `json:"requestLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApiKeySecretVersion") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ApiKeySecretVersion") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ApiKeyConfig: Configurations for authentication with API key.
func (ApiKeyConfig) MarshalJSON ¶
func (s ApiKeyConfig) MarshalJSON() ([]byte, error)
type App ¶
type App struct {
// AudioProcessingConfig: Optional. Audio processing configuration of the app.
AudioProcessingConfig *AudioProcessingConfig `json:"audioProcessingConfig,omitempty"`
// ClientCertificateSettings: Optional. The default client certificate settings
// for the app.
ClientCertificateSettings *ClientCertificateSettings `json:"clientCertificateSettings,omitempty"`
// CreateTime: Output only. Timestamp when the app was created.
CreateTime string `json:"createTime,omitempty"`
// DataStoreSettings: Optional. The data store settings for the app.
DataStoreSettings *DataStoreSettings `json:"dataStoreSettings,omitempty"`
// DefaultChannelProfile: Optional. The default channel profile used by the
// app.
DefaultChannelProfile *ChannelProfile `json:"defaultChannelProfile,omitempty"`
// DeploymentCount: Output only. Number of deployments in the app.
DeploymentCount int64 `json:"deploymentCount,omitempty"`
// Description: Optional. Human-readable description of the app.
Description string `json:"description,omitempty"`
// DisplayName: Required. Display name of the app.
DisplayName string `json:"displayName,omitempty"`
// ErrorHandlingSettings: Optional. Error handling settings of the app.
ErrorHandlingSettings *ErrorHandlingSettings `json:"errorHandlingSettings,omitempty"`
// Etag: Output only. Etag used to ensure the object hasn't changed during a
// read-modify-write operation. If the etag is empty, the update will overwrite
// any concurrent changes.
Etag string `json:"etag,omitempty"`
// EvaluationMetricsThresholds: Optional. The evaluation thresholds for the
// app.
EvaluationMetricsThresholds *EvaluationMetricsThresholds `json:"evaluationMetricsThresholds,omitempty"`
// GlobalInstruction: Optional. Instructions for all the agents in the app. You
// can use this instruction to set up a stable identity or personality across
// all the agents.
GlobalInstruction string `json:"globalInstruction,omitempty"`
// Guardrails: Optional. List of guardrails for the app. Format:
// `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
Guardrails []string `json:"guardrails,omitempty"`
// LanguageSettings: Optional. Language settings of the app.
LanguageSettings *LanguageSettings `json:"languageSettings,omitempty"`
// Locked: Optional. Indicates whether the app is locked for changes. If the
// app is locked, modifications to the app resources will be rejected.
Locked bool `json:"locked,omitempty"`
// LoggingSettings: Optional. Logging settings of the app.
LoggingSettings *LoggingSettings `json:"loggingSettings,omitempty"`
// Metadata: Optional. Metadata about the app. This field can be used to store
// additional information relevant to the app's details or intended usages.
Metadata map[string]string `json:"metadata,omitempty"`
// ModelSettings: Optional. The default LLM model settings for the app.
// Individual resources (e.g. agents, guardrails) can override these
// configurations as needed.
ModelSettings *ModelSettings `json:"modelSettings,omitempty"`
// Name: Identifier. The unique identifier of the app. Format:
// `projects/{project}/locations/{location}/apps/{app}`
Name string `json:"name,omitempty"`
// Pinned: Optional. Whether the app is pinned in the app list.
Pinned bool `json:"pinned,omitempty"`
// PredefinedVariableDeclarations: Output only. The declarations of predefined
// variables for the app.
PredefinedVariableDeclarations []*AppVariableDeclaration `json:"predefinedVariableDeclarations,omitempty"`
// RootAgent: Optional. The root agent is the entry point of the app. Format:
// `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
RootAgent string `json:"rootAgent,omitempty"`
// TimeZoneSettings: Optional. TimeZone settings of the app.
TimeZoneSettings *TimeZoneSettings `json:"timeZoneSettings,omitempty"`
// ToolExecutionMode: Optional. The tool execution mode for the app. If not
// provided, will default to PARALLEL.
//
// Possible values:
// "TOOL_EXECUTION_MODE_UNSPECIFIED" - Unspecified tool execution mode.
// Default to PARALLEL.
// "PARALLEL" - If there are multiple tools being selected, they will be
// executed in parallel, with the same
// [ToolContext](https://google.github.io/adk-docs/context/#the-different-types-
// of-context).
// "SEQUENTIAL" - If there are multiple tools being selected, they will be
// executed sequentially. The next tool will only be executed after the
// previous tool completes and it can see updated
// [ToolContext](https://google.github.io/adk-docs/context/#the-different-types-
// of-context) from the previous tool.
ToolExecutionMode string `json:"toolExecutionMode,omitempty"`
// UpdateTime: Output only. Timestamp when the app was last updated.
UpdateTime string `json:"updateTime,omitempty"`
// VariableDeclarations: Optional. The declarations of the variables.
VariableDeclarations []*AppVariableDeclaration `json:"variableDeclarations,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AudioProcessingConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AudioProcessingConfig") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
App: An app serves as a top-level container for a group of agents, including the root agent and its sub-agents, along with their associated configurations. These agents work together to achieve specific goals within the app's context.
func (App) MarshalJSON ¶
type AppSnapshot ¶
type AppSnapshot struct {
// Agents: Optional. List of agents in the app.
Agents []*Agent `json:"agents,omitempty"`
// App: Optional. The basic settings for the app.
App *App `json:"app,omitempty"`
// Examples: Optional. List of examples in the app.
Examples []*Example `json:"examples,omitempty"`
// Guardrails: Optional. List of guardrails in the app.
Guardrails []*Guardrail `json:"guardrails,omitempty"`
// Tools: Optional. List of tools in the app.
Tools []*Tool `json:"tools,omitempty"`
// Toolsets: Optional. List of toolsets in the app.
Toolsets []*Toolset `json:"toolsets,omitempty"`
// ForceSendFields is a list of field names (e.g. "Agents") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Agents") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AppSnapshot: A snapshot of the app.
func (AppSnapshot) MarshalJSON ¶
func (s AppSnapshot) MarshalJSON() ([]byte, error)
type AppVariableDeclaration ¶
type AppVariableDeclaration struct {
// Description: Required. The description of the variable.
Description string `json:"description,omitempty"`
// Name: Required. The name of the variable. The name must start with a letter
// or underscore and contain only letters, numbers, or underscores.
Name string `json:"name,omitempty"`
// Schema: Required. The schema of the variable.
Schema *Schema `json:"schema,omitempty"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AppVariableDeclaration: Defines the structure and metadata for a variable.
func (AppVariableDeclaration) MarshalJSON ¶
func (s AppVariableDeclaration) MarshalJSON() ([]byte, error)
type AppVersion ¶
type AppVersion struct {
// CreateTime: Output only. Timestamp when the app version was created.
CreateTime string `json:"createTime,omitempty"`
// Creator: Output only. Email of the user who created the app version.
Creator string `json:"creator,omitempty"`
// Description: Optional. The description of the app version.
Description string `json:"description,omitempty"`
// DisplayName: Optional. The display name of the app version.
DisplayName string `json:"displayName,omitempty"`
// Etag: Output only. Etag used to ensure the object hasn't changed during a
// read-modify-write operation. If the etag is empty, the update will overwrite
// any concurrent changes.
Etag string `json:"etag,omitempty"`
// Name: Identifier. The unique identifier of the app version. Format:
// `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
Name string `json:"name,omitempty"`
// Snapshot: Output only. The snapshot of the app when the version is created.
Snapshot *AppSnapshot `json:"snapshot,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AppVersion: In Customer Engagement Suite (CES), an app version is a snapshot of the app at a specific point in time. It is immutable and cannot be modified once created.
func (AppVersion) MarshalJSON ¶
func (s AppVersion) MarshalJSON() ([]byte, error)
type AudioProcessingConfig ¶
type AudioProcessingConfig struct {
// AmbientSoundConfig: Optional. Configuration for the ambient sound to be
// played with the synthesized agent response, to enhance the naturalness of
// the conversation.
AmbientSoundConfig *AmbientSoundConfig `json:"ambientSoundConfig,omitempty"`
// BargeInConfig: Optional. Configures the agent behavior for the user barge-in
// activities.
BargeInConfig *BargeInConfig `json:"bargeInConfig,omitempty"`
// InactivityTimeout: Optional. The duration of user inactivity (no speech or
// interaction) before the agent prompts the user for reengagement. If not set,
// the agent will not prompt the user for reengagement.
InactivityTimeout string `json:"inactivityTimeout,omitempty"`
// SynthesizeSpeechConfigs: Optional. Configuration of how the agent response
// should be synthesized, mapping from the language code to
// SynthesizeSpeechConfig. If the configuration for the specified language code
// is not found, the configuration for the root language code will be used. For
// example, if the map contains "en-us" and "en", and the specified language
// code is "en-gb", then "en" configuration will be used. Note: Language code
// is case-insensitive.
SynthesizeSpeechConfigs map[string]SynthesizeSpeechConfig `json:"synthesizeSpeechConfigs,omitempty"`
// ForceSendFields is a list of field names (e.g. "AmbientSoundConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AmbientSoundConfig") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AudioProcessingConfig: Configuration for how the input and output audio should be processed and delivered.
func (AudioProcessingConfig) MarshalJSON ¶
func (s AudioProcessingConfig) MarshalJSON() ([]byte, error)
type AudioRecordingConfig ¶
type AudioRecordingConfig struct {
// GcsBucket: Optional. The Cloud Storage (https://cloud.google.com/storage)
// bucket to store the session audio recordings. The URI must start with
// "gs://". Please choose a bucket location that meets your data residency
// requirements. Note: If the Cloud Storage bucket is in a different project
// from the app, you should grant `storage.objects.create` permission to the
// CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
GcsBucket string `json:"gcsBucket,omitempty"`
// GcsPathPrefix: Optional. The Cloud Storage path prefix for audio recordings.
// This prefix can include the following placeholders, which will be
// dynamically substituted at serving time: - $project: project ID - $location:
// app location - $app: app ID - $date: session date in YYYY-MM-DD format -
// $session: session ID If the path prefix is not specified, the default prefix
// `$project/$location/$app/$date/$session/` will be used.
GcsPathPrefix string `json:"gcsPathPrefix,omitempty"`
// ForceSendFields is a list of field names (e.g. "GcsBucket") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GcsBucket") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
AudioRecordingConfig: Configuration for how the audio interactions should be recorded.
func (AudioRecordingConfig) MarshalJSON ¶
func (s AudioRecordingConfig) MarshalJSON() ([]byte, error)
type BargeInConfig ¶
type BargeInConfig struct {
// BargeInAwareness: Optional. If enabled, the agent will adapt its next
// response based on the assumption that the user hasn't heard the full
// preceding agent message. This should not be used in scenarios where agent
// responses are displayed visually.
BargeInAwareness bool `json:"bargeInAwareness,omitempty"`
// DisableBargeIn: Optional. Disables user barge-in while the agent is
// speaking. If true, user input during agent response playback will be
// ignored. Deprecated: `disable_barge_in` is deprecated in favor of
// `disable_barge_in_control` in ChannelProfile.
DisableBargeIn bool `json:"disableBargeIn,omitempty"`
// ForceSendFields is a list of field names (e.g. "BargeInAwareness") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BargeInAwareness") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
BargeInConfig: Configuration for how the user barge-in activities should be handled.
func (BargeInConfig) MarshalJSON ¶
func (s BargeInConfig) MarshalJSON() ([]byte, error)
type BatchDeleteConversationsRequest ¶
type BatchDeleteConversationsRequest struct {
// Conversations: Required. The resource names of the conversations to delete.
Conversations []string `json:"conversations,omitempty"`
// ForceSendFields is a list of field names (e.g. "Conversations") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Conversations") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
BatchDeleteConversationsRequest: Request message for AgentService.BatchDeleteConversations.
func (BatchDeleteConversationsRequest) MarshalJSON ¶
func (s BatchDeleteConversationsRequest) MarshalJSON() ([]byte, error)
type BearerTokenConfig ¶
type BearerTokenConfig struct {
// Token: Required. The bearer token. Must be in the format
// `$context.variables.`.
Token string `json:"token,omitempty"`
// ForceSendFields is a list of field names (e.g. "Token") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Token") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
BearerTokenConfig: Configurations for authentication with a bearer token.
func (BearerTokenConfig) MarshalJSON ¶
func (s BearerTokenConfig) MarshalJSON() ([]byte, error)
type BigQueryExportSettings ¶
type BigQueryExportSettings struct {
// Dataset: Optional. The BigQuery **dataset ID** to export the data to.
Dataset string `json:"dataset,omitempty"`
// Enabled: Optional. Indicates whether the BigQuery export is enabled.
Enabled bool `json:"enabled,omitempty"`
// Project: Optional. The **project ID** of the BigQuery dataset to export the
// data to. Note: If the BigQuery dataset is in a different project from the
// app, you should grant `roles/bigquery.admin` role to the CES service agent
// `service-@gcp-sa-ces.iam.gserviceaccount.com`.
Project string `json:"project,omitempty"`
// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Dataset") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
BigQueryExportSettings: Settings to describe the BigQuery export behaviors for the app.
func (BigQueryExportSettings) MarshalJSON ¶
func (s BigQueryExportSettings) MarshalJSON() ([]byte, error)
type Blob ¶
type Blob struct {
// Data: Required. Raw bytes of the blob.
Data string `json:"data,omitempty"`
// MimeType: Required. The IANA standard MIME type of the source data.
MimeType string `json:"mimeType,omitempty"`
// ForceSendFields is a list of field names (e.g. "Data") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Data") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Blob: Represents a blob input or output in the conversation.
func (Blob) MarshalJSON ¶
type Callback ¶
type Callback struct {
// Description: Optional. Human-readable description of the callback.
Description string `json:"description,omitempty"`
// Disabled: Optional. Whether the callback is disabled. Disabled callbacks are
// ignored by the agent.
Disabled bool `json:"disabled,omitempty"`
// ProactiveExecutionEnabled: Optional. If enabled, the callback will also be
// executed on intermediate model outputs. This setting only affects after
// model callback. **ENABLE WITH CAUTION**. Typically after model callback only
// needs to be executed after receiving all model responses. Enabling proactive
// execution may have negative implication on the execution cost and latency,
// and should only be enabled in rare situations.
ProactiveExecutionEnabled bool `json:"proactiveExecutionEnabled,omitempty"`
// PythonCode: Required. The python code to execute for the callback.
PythonCode string `json:"pythonCode,omitempty"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Callback: A callback defines the custom logic to be executed at various stages of agent interaction.
func (Callback) MarshalJSON ¶
type CancelOperationRequest ¶
type CancelOperationRequest struct {
}
CancelOperationRequest: The request message for Operations.CancelOperation.
type Changelog ¶
type Changelog struct {
// Action: Output only. The action that was performed on the resource.
Action string `json:"action,omitempty"`
// Author: Output only. Email address of the change author.
Author string `json:"author,omitempty"`
// CreateTime: Output only. The time when the change was made.
CreateTime string `json:"createTime,omitempty"`
// DependentResources: Output only. The dependent resources that were changed.
DependentResources []googleapi.RawMessage `json:"dependentResources,omitempty"`
// Description: Output only. Description of the change. which typically
// captures the changed fields in the resource.
Description string `json:"description,omitempty"`
// DisplayName: Output only. Display name of the change. It typically should be
// the display name of the resource that was changed.
DisplayName string `json:"displayName,omitempty"`
// Name: Identifier. The unique identifier of the changelog. Format:
// `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}`
Name string `json:"name,omitempty"`
// NewResource: Output only. The new resource after the change.
NewResource googleapi.RawMessage `json:"newResource,omitempty"`
// OriginalResource: Output only. The original resource before the change.
OriginalResource googleapi.RawMessage `json:"originalResource,omitempty"`
// Resource: Output only. The resource that was changed.
Resource string `json:"resource,omitempty"`
// ResourceType: Output only. The type of the resource that was changed.
ResourceType string `json:"resourceType,omitempty"`
// SequenceNumber: Output only. The monotonically increasing sequence number of
// the changelog.
SequenceNumber int64 `json:"sequenceNumber,omitempty,string"`
// 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 or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Changelog: Changelogs represent a change made to the app or to an resource within the app.
func (Changelog) MarshalJSON ¶
type ChannelProfile ¶
type ChannelProfile struct {
// ChannelType: Optional. The type of the channel profile.
//
// Possible values:
// "UNKNOWN" - Unknown channel type.
// "WEB_UI" - Web UI channel.
// "API" - API channel.
// "TWILIO" - Twilio channel.
// "GOOGLE_TELEPHONY_PLATFORM" - Google Telephony Platform channel.
// "CONTACT_CENTER_AS_A_SERVICE" - Contact Center as a Service (CCaaS)
// channel.
// "FIVE9" - Five9 channel.
// "CONTACT_CENTER_INTEGRATION" - Third party contact center integration
// channel.
ChannelType string `json:"channelType,omitempty"`
// DisableBargeInControl: Optional. Whether to disable user barge-in control in
// the conversation. - **true**: User interruptions are disabled while the
// agent is speaking. - **false**: The agent retains automatic control over
// when the user can interrupt.
DisableBargeInControl bool `json:"disableBargeInControl,omitempty"`
// DisableDtmf: Optional. Whether to disable DTMF (dual-tone multi-frequency).
DisableDtmf bool `json:"disableDtmf,omitempty"`
// NoiseSuppressionLevel: Optional. The noise suppression level of the channel
// profile. Available values are "low", "moderate", "high", "very_high".
NoiseSuppressionLevel string `json:"noiseSuppressionLevel,omitempty"`
// PersonaProperty: Optional. The persona property of the channel profile.
PersonaProperty *ChannelProfilePersonaProperty `json:"personaProperty,omitempty"`
// ProfileId: Optional. The unique identifier of the channel profile.
ProfileId string `json:"profileId,omitempty"`
// WebWidgetConfig: Optional. The configuration for the web widget.
WebWidgetConfig *ChannelProfileWebWidgetConfig `json:"webWidgetConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChannelType") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChannelType") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ChannelProfile: A ChannelProfile configures the agent's behavior for a specific communication channel, such as web UI or telephony.
func (ChannelProfile) MarshalJSON ¶
func (s ChannelProfile) MarshalJSON() ([]byte, error)
type ChannelProfilePersonaProperty ¶
type ChannelProfilePersonaProperty struct {
// Persona: Optional. The persona of the channel.
//
// Possible values:
// "UNKNOWN" - UNKNOWN persona.
// "CONCISE" - The agent keeps the responses concise and to the point
// "CHATTY" - The agent provides additional context, explanations, and
// details
Persona string `json:"persona,omitempty"`
// ForceSendFields is a list of field names (e.g. "Persona") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Persona") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ChannelProfilePersonaProperty: Represents the persona property of a channel.
func (ChannelProfilePersonaProperty) MarshalJSON ¶
func (s ChannelProfilePersonaProperty) MarshalJSON() ([]byte, error)
type ChannelProfileWebWidgetConfig ¶
type ChannelProfileWebWidgetConfig struct {
// Modality: Optional. The modality of the web widget.
//
// Possible values:
// "MODALITY_UNSPECIFIED" - Unknown modality.
// "CHAT_AND_VOICE" - Widget supports both chat and voice input.
// "VOICE_ONLY" - Widget supports only voice input.
// "CHAT_ONLY" - Widget supports only chat input.
// "CHAT_VOICE_AND_VIDEO" - Widget supports chat, voice, and video input.
Modality string `json:"modality,omitempty"`
// SecuritySettings: Optional. The security settings of the web widget.
SecuritySettings *ChannelProfileWebWidgetConfigSecuritySettings `json:"securitySettings,omitempty"`
// Theme: Optional. The theme of the web widget.
//
// Possible values:
// "THEME_UNSPECIFIED" - Unknown theme.
// "LIGHT" - Light theme.
// "DARK" - Dark theme.
Theme string `json:"theme,omitempty"`
// WebWidgetTitle: Optional. The title of the web widget.
WebWidgetTitle string `json:"webWidgetTitle,omitempty"`
// ForceSendFields is a list of field names (e.g. "Modality") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Modality") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ChannelProfileWebWidgetConfig: Message for configuration for the web widget.
func (ChannelProfileWebWidgetConfig) MarshalJSON ¶
func (s ChannelProfileWebWidgetConfig) MarshalJSON() ([]byte, error)
type ChannelProfileWebWidgetConfigSecuritySettings ¶
type ChannelProfileWebWidgetConfigSecuritySettings struct {
// AllowedOrigins: Optional. The origins that are allowed to host the web
// widget. An origin is defined by RFC 6454. If empty, all origins are allowed.
// A maximum of 100 origins is allowed. Example: "https://example.com"
AllowedOrigins []string `json:"allowedOrigins,omitempty"`
// EnableOriginCheck: Optional. Indicates whether origin check for the web
// widget is enabled. If `true`, the web widget will check the origin of the
// website that loads the web widget and only allow it to be loaded in the same
// origin or any of the allowed origins.
EnableOriginCheck bool `json:"enableOriginCheck,omitempty"`
// EnablePublicAccess: Optional. Indicates whether public access to the web
// widget is enabled. If `true`, the web widget will be publicly accessible. If
// `false`, the web widget must be integrated with your own authentication and
// authorization system to return valid credentials for accessing the CES
// agent.
EnablePublicAccess bool `json:"enablePublicAccess,omitempty"`
// EnableRecaptcha: Optional. Indicates whether reCAPTCHA verification for the
// web widget is enabled.
EnableRecaptcha bool `json:"enableRecaptcha,omitempty"`
// ForceSendFields is a list of field names (e.g. "AllowedOrigins") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AllowedOrigins") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ChannelProfileWebWidgetConfigSecuritySettings: Security settings for the web widget.
func (ChannelProfileWebWidgetConfigSecuritySettings) MarshalJSON ¶
func (s ChannelProfileWebWidgetConfigSecuritySettings) MarshalJSON() ([]byte, error)
type Chunk ¶
type Chunk struct {
// AgentTransfer: Optional. Agent transfer event.
AgentTransfer *AgentTransfer `json:"agentTransfer,omitempty"`
// Blob: Optional. Blob data.
Blob *Blob `json:"blob,omitempty"`
// DefaultVariables: A struct represents default variables at the start of the
// conversation, keyed by variable names.
DefaultVariables googleapi.RawMessage `json:"defaultVariables,omitempty"`
// Image: Optional. Image data.
Image *Image `json:"image,omitempty"`
// Payload: Optional. Custom payload data.
Payload googleapi.RawMessage `json:"payload,omitempty"`
// Text: Optional. Text data.
Text string `json:"text,omitempty"`
// ToolCall: Optional. Tool execution request.
ToolCall *ToolCall `json:"toolCall,omitempty"`
// ToolResponse: Optional. Tool execution response.
ToolResponse *ToolResponse `json:"toolResponse,omitempty"`
// Transcript: Optional. Transcript associated with the audio.
Transcript string `json:"transcript,omitempty"`
// UpdatedVariables: A struct represents variables that were updated in the
// conversation, keyed by variable names.
UpdatedVariables googleapi.RawMessage `json:"updatedVariables,omitempty"`
// ForceSendFields is a list of field names (e.g. "AgentTransfer") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AgentTransfer") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Chunk: A chunk of content within a message.
func (Chunk) MarshalJSON ¶
type Citations ¶
type Citations struct {
// CitedChunks: List of cited pieces of information.
CitedChunks []*CitationsCitedChunk `json:"citedChunks,omitempty"`
// ForceSendFields is a list of field names (e.g. "CitedChunks") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CitedChunks") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Citations: Citations associated with the agent response.
func (Citations) MarshalJSON ¶
type CitationsCitedChunk ¶
type CitationsCitedChunk struct {
// Text: Text used for citation.
Text string `json:"text,omitempty"`
// Title: Title of the cited document.
Title string `json:"title,omitempty"`
// Uri: URI used for citation.
Uri string `json:"uri,omitempty"`
// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
CitationsCitedChunk: Piece of cited information.
func (CitationsCitedChunk) MarshalJSON ¶
func (s CitationsCitedChunk) MarshalJSON() ([]byte, error)
type ClientCertificateSettings ¶
type ClientCertificateSettings struct {
// Passphrase: Optional. The name of the SecretManager secret version resource
// storing the passphrase to decrypt the private key. Should be left unset if
// the private key is not encrypted. Format:
// `projects/{project}/secrets/{secret}/versions/{version}`
Passphrase string `json:"passphrase,omitempty"`
// PrivateKey: Required. The name of the SecretManager secret version resource
// storing the private key encoded in PEM format. Format:
// `projects/{project}/secrets/{secret}/versions/{version}`
PrivateKey string `json:"privateKey,omitempty"`
// TlsCertificate: Required. The TLS certificate encoded in PEM format. This
// string must include the begin header and end footer lines.
TlsCertificate string `json:"tlsCertificate,omitempty"`
// ForceSendFields is a list of field names (e.g. "Passphrase") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Passphrase") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ClientCertificateSettings: Settings for custom client certificates.
func (ClientCertificateSettings) MarshalJSON ¶
func (s ClientCertificateSettings) MarshalJSON() ([]byte, error)
type ClientFunction ¶
type ClientFunction struct {
// Description: Optional. The function description.
Description string `json:"description,omitempty"`
// Name: Required. The function name.
Name string `json:"name,omitempty"`
// Parameters: Optional. The schema of the function parameters.
Parameters *Schema `json:"parameters,omitempty"`
// Response: Optional. The schema of the function response.
Response *Schema `json:"response,omitempty"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ClientFunction: Represents a client-side function that the agent can invoke. When the tool is chosen by the agent, control is handed off to the client. The client is responsible for executing the function and returning the result as a ToolResponse to continue the interaction with the agent.
func (ClientFunction) MarshalJSON ¶
func (s ClientFunction) MarshalJSON() ([]byte, error)
type CloudLoggingSettings ¶
type CloudLoggingSettings struct {
// EnableCloudLogging: Optional. Whether to enable Cloud Logging for the
// sessions.
EnableCloudLogging bool `json:"enableCloudLogging,omitempty"`
// ForceSendFields is a list of field names (e.g. "EnableCloudLogging") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EnableCloudLogging") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
CloudLoggingSettings: Settings to describe the Cloud Logging behaviors for the app.
func (CloudLoggingSettings) MarshalJSON ¶
func (s CloudLoggingSettings) MarshalJSON() ([]byte, error)
type CodeBlock ¶
type CodeBlock struct {
// PythonCode: Required. Python code which will be invoked in tool fake mode.
// Expected Python function signature - To catch all tool calls: def
// fake_tool_call(tool: Tool, input: dict[str, Any], callback_context:
// CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call:
// def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context:
// CallbackContext) -> Optional[dict[str, Any]]: If the function returns None,
// the real tool will be invoked instead.
PythonCode string `json:"pythonCode,omitempty"`
// ForceSendFields is a list of field names (e.g. "PythonCode") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "PythonCode") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
CodeBlock: A code block to be executed instead of a real tool call.
func (CodeBlock) MarshalJSON ¶
type ConnectorTool ¶
type ConnectorTool struct {
// Action: Required. Action for the tool to use.
Action *Action `json:"action,omitempty"`
// AuthConfig: Optional. Configures how authentication is handled in
// Integration Connectors. By default, an admin authentication is passed in the
// Integration Connectors API requests. You can override it with a different
// end-user authentication config. **Note**: The Connection must have
// authentication override enabled in order to specify an EUC configuration
// here - otherwise, the ConnectorTool creation will fail. See
// https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
// for details.
AuthConfig *EndUserAuthConfig `json:"authConfig,omitempty"`
// Connection: Required. The full resource name of the referenced Integration
// Connectors Connection. Format:
// `projects/{project}/locations/{location}/connections/{connection}`
Connection string `json:"connection,omitempty"`
// Description: Optional. The description of the tool that can be used by the
// Agent to decide whether to call this ConnectorTool.
Description string `json:"description,omitempty"`
// Name: Optional. The name of the tool that can be used by the Agent to decide
// whether to call this ConnectorTool.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ConnectorTool: A ConnectorTool allows connections to different integrations. See: https://cloud.google.com/integration-connectors/docs/overview.
func (ConnectorTool) MarshalJSON ¶
func (s ConnectorTool) MarshalJSON() ([]byte, error)
type ConnectorToolset ¶
type ConnectorToolset struct {
// AuthConfig: Optional. Configures how authentication is handled in
// Integration Connectors. By default, an admin authentication is passed in the
// Integration Connectors API requests. You can override it with a different
// end-user authentication config. **Note**: The Connection must have
// authentication override enabled in order to specify an EUC configuration
// here - otherwise, the Toolset creation will fail. See:
// https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
AuthConfig *EndUserAuthConfig `json:"authConfig,omitempty"`
// Connection: Required. The full resource name of the referenced Integration
// Connectors Connection. Format:
// `projects/{project}/locations/{location}/connections/{connection}`
Connection string `json:"connection,omitempty"`
// ConnectorActions: Required. The list of connector actions/entity operations
// to generate tools for.
ConnectorActions []*Action `json:"connectorActions,omitempty"`
// ForceSendFields is a list of field names (e.g. "AuthConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AuthConfig") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ConnectorToolset: A toolset that generates tools from an Integration Connectors Connection.
func (ConnectorToolset) MarshalJSON ¶
func (s ConnectorToolset) MarshalJSON() ([]byte, error)
type Conversation ¶
type Conversation struct {
// AppVersion: Output only. The version of the app used for processing the
// conversation. Format:
// `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
AppVersion string `json:"appVersion,omitempty"`
// ChannelType: DEPRECATED. Please use input_types instead.
//
// Possible values:
// "CHANNEL_TYPE_UNSPECIFIED" - Unspecified channel type.
// "TEXT" - The conversation only contains text messages between the end user
// and the agent.
// "AUDIO" - The conversation contains audio messages between the end user
// and the agent.
// "MULTIMODAL" - The conversation multi-modal messages (e.g. image) between
// the end user and the agent.
ChannelType string `json:"channelType,omitempty"`
// Deployment: Output only. The deployment of the app used for processing the
// conversation. Format:
// `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
Deployment string `json:"deployment,omitempty"`
// EndTime: Output only. Timestamp when the conversation was completed.
EndTime string `json:"endTime,omitempty"`
// EntryAgent: Output only. The agent that initially handles the conversation.
// If not specified, the conversation is handled by the root agent. Format:
// `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
EntryAgent string `json:"entryAgent,omitempty"`
// InputTypes: Output only. The input types of the conversation.
//
// Possible values:
// "INPUT_TYPE_UNSPECIFIED" - Unspecified input type.
// "INPUT_TYPE_TEXT" - Text input.
// "INPUT_TYPE_EVENT" - Event input.
// "INPUT_TYPE_AUDIO" - Audio input.
// "INPUT_TYPE_IMAGE" - Image input.
// "INPUT_TYPE_BLOB" - Blob input.
// "INPUT_TYPE_TOOL_RESPONSE" - Client function tool response input.
// "INPUT_TYPE_VARIABLES" - Variables input.
InputTypes []string `json:"inputTypes,omitempty"`
// LanguageCode: Output only. The language code of the conversation.
LanguageCode string `json:"languageCode,omitempty"`
// Messages: Deprecated. Use turns instead.
Messages []*Message `json:"messages,omitempty"`
// Name: Identifier. The unique identifier of the conversation. Format:
// `projects/{project}/locations/{location}/apps/{app}/conversations/{conversati
// on}`
Name string `json:"name,omitempty"`
// Source: Output only. Indicate the source of the conversation.
//
// Possible values:
// "SOURCE_UNSPECIFIED" - Unspecified source.
// "LIVE" - The conversation is from the live end user.
// "SIMULATOR" - The conversation is from the simulator.
// "EVAL" - The conversation is from the evaluation.
// "AGENT_TOOL" - The conversation is from an agent tool. Agent tool runs the
// agent in a separate session, which is persisted for testing and debugging
// purposes.
Source string `json:"source,omitempty"`
// StartTime: Output only. Timestamp when the conversation was created.
StartTime string `json:"startTime,omitempty"`
// TurnCount: Output only. The number of turns in the conversation.
TurnCount int64 `json:"turnCount,omitempty"`
// Turns: Required. The turns in the conversation.
Turns []*ConversationTurn `json:"turns,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AppVersion") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AppVersion") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Conversation: A conversation represents an interaction between an end user and the CES app.
func (Conversation) MarshalJSON ¶
func (s Conversation) MarshalJSON() ([]byte, error)
type ConversationLoggingSettings ¶
type ConversationLoggingSettings struct {
// DisableConversationLogging: Optional. Whether to disable conversation
// logging for the sessions.
DisableConversationLogging bool `json:"disableConversationLogging,omitempty"`
// RetentionWindow: Optional. Controls the retention window for the
// conversation. If not set, the conversation will be retained for 365 days.
RetentionWindow string `json:"retentionWindow,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisableConversationLogging")
// to unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisableConversationLogging") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ConversationLoggingSettings: Settings to describe the conversation logging behaviors for the app.
func (ConversationLoggingSettings) MarshalJSON ¶
func (s ConversationLoggingSettings) MarshalJSON() ([]byte, error)
type ConversationTurn ¶
type ConversationTurn struct {
// Messages: Optional. List of messages in the conversation turn, including
// user input, agent responses and intermediate events during the processing.
Messages []*Message `json:"messages,omitempty"`
// RootSpan: Optional. The root span of the action processing.
RootSpan *Span `json:"rootSpan,omitempty"`
// ForceSendFields is a list of field names (e.g. "Messages") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Messages") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ConversationTurn: All information about a single turn in the conversation.
func (ConversationTurn) MarshalJSON ¶
func (s ConversationTurn) MarshalJSON() ([]byte, error)
type DataStore ¶
type DataStore struct {
// ConnectorConfig: Output only. The connector config for the data store
// connection.
ConnectorConfig *DataStoreConnectorConfig `json:"connectorConfig,omitempty"`
// CreateTime: Output only. Timestamp when the data store was created.
CreateTime string `json:"createTime,omitempty"`
// DisplayName: Output only. The display name of the data store.
DisplayName string `json:"displayName,omitempty"`
// DocumentProcessingMode: Output only. The document processing mode for the
// data store connection. Only set for PUBLIC_WEB and UNSTRUCTURED data stores.
//
// Possible values:
// "DOCUMENT_PROCESSING_MODE_UNSPECIFIED" - Not specified.
// "DOCUMENTS" - Documents are processed as documents.
// "CHUNKS" - Documents are converted to chunks.
DocumentProcessingMode string `json:"documentProcessingMode,omitempty"`
// Name: Required. Full resource name of the DataStore. Format:
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
// {dataStore}`
Name string `json:"name,omitempty"`
// Type: Output only. The type of the data store. This field is readonly and
// populated by the server.
//
// Possible values:
// "DATA_STORE_TYPE_UNSPECIFIED" - Not specified. This value indicates that
// the data store type is not specified, so it will not be used during search.
// "PUBLIC_WEB" - A data store that contains public web content.
// "UNSTRUCTURED" - A data store that contains unstructured private data.
// "FAQ" - A data store that contains structured data used as FAQ.
// "CONNECTOR" - A data store that is a connector to a first-party or a
// third-party service.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConnectorConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ConnectorConfig") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStore: A DataStore resource in Vertex AI Search.
func (DataStore) MarshalJSON ¶
type DataStoreConnectorConfig ¶
type DataStoreConnectorConfig struct {
// Collection: Resource name of the collection the data store belongs to.
Collection string `json:"collection,omitempty"`
// CollectionDisplayName: Display name of the collection the data store belongs
// to.
CollectionDisplayName string `json:"collectionDisplayName,omitempty"`
// DataSource: The name of the data source. Example: `salesforce`, `jira`,
// `confluence`, `bigquery`.
DataSource string `json:"dataSource,omitempty"`
// ForceSendFields is a list of field names (e.g. "Collection") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Collection") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreConnectorConfig: The connector config for the data store connection.
func (DataStoreConnectorConfig) MarshalJSON ¶
func (s DataStoreConnectorConfig) MarshalJSON() ([]byte, error)
type DataStoreSettings ¶
type DataStoreSettings struct {
// Engines: Output only. The engines for the app.
Engines []*DataStoreSettingsEngine `json:"engines,omitempty"`
// ForceSendFields is a list of field names (e.g. "Engines") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Engines") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreSettings: Data store related settings for the app.
func (DataStoreSettings) MarshalJSON ¶
func (s DataStoreSettings) MarshalJSON() ([]byte, error)
type DataStoreSettingsEngine ¶
type DataStoreSettingsEngine struct {
// Name: Output only. The resource name of the engine. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{en
// gine}`
Name string `json:"name,omitempty"`
// Type: Output only. The type of the engine.
//
// Possible values:
// "TYPE_UNSPECIFIED" - Unspecified engine type.
// "ENGINE_TYPE_SEARCH" - The SOLUTION_TYPE_SEARCH engine for the app. All
// connector data stores added to the app will be added to this engine.
// "ENGINE_TYPE_CHAT" - Chat engine type. The SOLUTION_TYPE_CHAT engine for
// the app. All connector data stores added to the app will be added to this
// engine.
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 or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreSettingsEngine: An engine to which the data stores are connected. See Vertex AI Search: https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction.
func (DataStoreSettingsEngine) MarshalJSON ¶
func (s DataStoreSettingsEngine) MarshalJSON() ([]byte, error)
type DataStoreTool ¶
type DataStoreTool struct {
// BoostSpecs: Optional. Boost specification to boost certain documents.
BoostSpecs []*DataStoreToolBoostSpecs `json:"boostSpecs,omitempty"`
// DataStoreSource: Optional. Search within a single specific DataStore.
DataStoreSource *DataStoreToolDataStoreSource `json:"dataStoreSource,omitempty"`
// Description: Optional. The tool description.
Description string `json:"description,omitempty"`
// EngineSource: Optional. Search within an Engine (potentially across multiple
// DataStores).
EngineSource *DataStoreToolEngineSource `json:"engineSource,omitempty"`
// FilterParameterBehavior: Optional. The filter parameter behavior.
//
// Possible values:
// "FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED" - Default filter behavior. Include
// filter parameter for connector datastores. For the rest of the datastore
// types, the filter input parameter is omitted.
// "ALWAYS_INCLUDE" - Always include filter parameter for all datastore
// types.
// "NEVER_INCLUDE" - The filter parameter is never included in the list of
// tool parameters, regardless of the datastore type.
FilterParameterBehavior string `json:"filterParameterBehavior,omitempty"`
// ModalityConfigs: Optional. The modality configs for the data store.
ModalityConfigs []*DataStoreToolModalityConfig `json:"modalityConfigs,omitempty"`
// Name: Required. The data store tool name.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "BoostSpecs") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BoostSpecs") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreTool: Tool to retrieve from Vertex AI Search datastore or engine for grounding. Accepts either a datastore or an engine, but not both. See Vertex AI Search: https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction.
func (DataStoreTool) MarshalJSON ¶
func (s DataStoreTool) MarshalJSON() ([]byte, error)
type DataStoreToolBoostSpec ¶
type DataStoreToolBoostSpec struct {
// ConditionBoostSpecs: Required. A list of boosting specifications.
ConditionBoostSpecs []*DataStoreToolBoostSpecConditionBoostSpec `json:"conditionBoostSpecs,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConditionBoostSpecs") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ConditionBoostSpecs") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreToolBoostSpec: Boost specification to boost certain documents.
func (DataStoreToolBoostSpec) MarshalJSON ¶
func (s DataStoreToolBoostSpec) MarshalJSON() ([]byte, error)
type DataStoreToolBoostSpecConditionBoostSpec ¶
type DataStoreToolBoostSpecConditionBoostSpec struct {
// Boost: Optional. Strength of the boost, which should be in [-1, 1]. Negative
// boost means demotion. Default is 0.0. Setting to 1.0 gives the suggestions a
// big promotion. However, it does not necessarily mean that the top result
// will be a boosted suggestion. Setting to -1.0 gives the suggestions a big
// demotion. However, other suggestions that are relevant might still be shown.
// Setting to 0.0 means no boost applied. The boosting condition is ignored.
Boost float64 `json:"boost,omitempty"`
// BoostControlSpec: Optional. Complex specification for custom ranking based
// on customer defined attribute value.
BoostControlSpec *DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec `json:"boostControlSpec,omitempty"`
// Condition: Required. An expression which specifies a boost condition. The
// syntax is the same as filter expression syntax. Currently, the only
// supported condition is a list of BCP-47 lang codes. Example: To boost
// suggestions in languages en or fr: (lang_code: ANY("en", "fr"))
Condition string `json:"condition,omitempty"`
// ForceSendFields is a list of field names (e.g. "Boost") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Boost") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreToolBoostSpecConditionBoostSpec: Boost specification for a condition.
func (DataStoreToolBoostSpecConditionBoostSpec) MarshalJSON ¶
func (s DataStoreToolBoostSpecConditionBoostSpec) MarshalJSON() ([]byte, error)
func (*DataStoreToolBoostSpecConditionBoostSpec) UnmarshalJSON ¶
func (s *DataStoreToolBoostSpecConditionBoostSpec) UnmarshalJSON(data []byte) error
type DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec ¶
type DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec struct {
// AttributeType: Optional. The attribute type to be used to determine the
// boost amount. The attribute value can be derived from the field value of the
// specified field_name. In the case of numerical it is straightforward i.e.
// attribute_value = numerical_field_value. In the case of freshness however,
// attribute_value = (time.now() - datetime_field_value).
//
// Possible values:
// "ATTRIBUTE_TYPE_UNSPECIFIED" - Unspecified AttributeType.
// "NUMERICAL" - The value of the numerical field will be used to dynamically
// update the boost amount. In this case, the attribute_value (the x value) of
// the control point will be the actual value of the numerical field for which
// the boost_amount is specified.
// "FRESHNESS" - For the freshness use case the attribute value will be the
// duration between the current time and the date in the datetime field
// specified. The value must be formatted as an XSD `dayTimeDuration` value (a
// restricted subset of an ISO 8601 duration value). The pattern for this is:
// `nDnM]`. E.g. `5D`, `3DT12H30M`, `T24H`.
AttributeType string `json:"attributeType,omitempty"`
// ControlPoints: Optional. The control points used to define the curve. The
// monotonic function (defined through the interpolation_type above) passes
// through the control points listed here.
ControlPoints []*DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint `json:"controlPoints,omitempty"`
// FieldName: Optional. The name of the field whose value will be used to
// determine the boost amount.
FieldName string `json:"fieldName,omitempty"`
// InterpolationType: Optional. The interpolation type to be applied to connect
// the control points listed below.
//
// Possible values:
// "INTERPOLATION_TYPE_UNSPECIFIED" - Interpolation type is unspecified. In
// this case, it defaults to Linear.
// "LINEAR" - Piecewise linear interpolation will be applied.
InterpolationType string `json:"interpolationType,omitempty"`
// ForceSendFields is a list of field names (e.g. "AttributeType") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AttributeType") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec: Specification for custom ranking based on customer specified attribute value. It provides more controls for customized ranking than the simple (condition, boost) combination above.
func (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec) MarshalJSON ¶
func (s DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec) MarshalJSON() ([]byte, error)
type DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint ¶
type DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint struct {
// AttributeValue: Optional. Can be one of: 1. The numerical field value. 2.
// The duration spec for freshness: The value must be formatted as an XSD
// `dayTimeDuration` value (a restricted subset of an ISO 8601 duration value).
// The pattern for this is: `nDnM]`.
AttributeValue string `json:"attributeValue,omitempty"`
// BoostAmount: Optional. The value between -1 to 1 by which to boost the score
// if the attribute_value evaluates to the value specified above.
BoostAmount float64 `json:"boostAmount,omitempty"`
// ForceSendFields is a list of field names (e.g. "AttributeValue") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AttributeValue") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint: The control points used to define the curve. The curve defined through these control points can only be monotonically increasing or decreasing(constant values are acceptable).
func (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint) MarshalJSON ¶
func (s DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint) MarshalJSON() ([]byte, error)
func (*DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint) UnmarshalJSON ¶
func (s *DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint) UnmarshalJSON(data []byte) error
type DataStoreToolBoostSpecs ¶
type DataStoreToolBoostSpecs struct {
// DataStores: Required. The Data Store where the boosting configuration is
// applied. Full resource name of DataStore, such as
// projects/{project}/locations/{location}/collections/{collection}/dataStores/{
// dataStore}.
DataStores []string `json:"dataStores,omitempty"`
// Spec: Required. A list of boosting specifications.
Spec []*DataStoreToolBoostSpec `json:"spec,omitempty"`
// ForceSendFields is a list of field names (e.g. "DataStores") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataStores") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreToolBoostSpecs: Boost specifications to boost certain documents. For more information, please refer to https://cloud.google.com/generative-ai-app-builder/docs/boosting.
func (DataStoreToolBoostSpecs) MarshalJSON ¶
func (s DataStoreToolBoostSpecs) MarshalJSON() ([]byte, error)
type DataStoreToolDataStoreSource ¶
type DataStoreToolDataStoreSource struct {
// DataStore: Optional. The data store.
DataStore *DataStore `json:"dataStore,omitempty"`
// Filter: Optional. Filter specification for the DataStore. See:
// https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
Filter string `json:"filter,omitempty"`
// ForceSendFields is a list of field names (e.g. "DataStore") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataStore") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreToolDataStoreSource: Configuration for searching within a specific DataStore.
func (DataStoreToolDataStoreSource) MarshalJSON ¶
func (s DataStoreToolDataStoreSource) MarshalJSON() ([]byte, error)
type DataStoreToolEngineSource ¶
type DataStoreToolEngineSource struct {
// DataStoreSources: Optional. Use to target specific DataStores within the
// Engine. If empty, the search applies to all DataStores associated with the
// Engine.
DataStoreSources []*DataStoreToolDataStoreSource `json:"dataStoreSources,omitempty"`
// Engine: Required. Full resource name of the Engine. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{en
// gine}`
Engine string `json:"engine,omitempty"`
// Filter: Optional. A filter applied to the search across the Engine. Not
// relevant and not used if 'data_store_sources' is provided. See:
// https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
Filter string `json:"filter,omitempty"`
// ForceSendFields is a list of field names (e.g. "DataStoreSources") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataStoreSources") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreToolEngineSource: Configuration for searching within an Engine, potentially targeting specific DataStores.
func (DataStoreToolEngineSource) MarshalJSON ¶
func (s DataStoreToolEngineSource) MarshalJSON() ([]byte, error)
type DataStoreToolGroundingConfig ¶
type DataStoreToolGroundingConfig struct {
// Disabled: Optional. Whether grounding is disabled.
Disabled bool `json:"disabled,omitempty"`
// GroundingLevel: Optional. The groundedness threshold of the answer based on
// the retrieved sources. The value has a configurable range of [1, 5]. The
// level is used to threshold the groundedness of the answer, meaning that all
// responses with a groundedness score below the threshold will fall back to
// returning relevant snippets only. For example, a level of 3 means that the
// groundedness score must be 3 or higher for the response to be returned.
GroundingLevel float64 `json:"groundingLevel,omitempty"`
// ForceSendFields is a list of field names (e.g. "Disabled") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Disabled") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreToolGroundingConfig: Grounding configuration.
func (DataStoreToolGroundingConfig) MarshalJSON ¶
func (s DataStoreToolGroundingConfig) MarshalJSON() ([]byte, error)
func (*DataStoreToolGroundingConfig) UnmarshalJSON ¶
func (s *DataStoreToolGroundingConfig) UnmarshalJSON(data []byte) error
type DataStoreToolModalityConfig ¶
type DataStoreToolModalityConfig struct {
// GroundingConfig: Optional. The grounding configuration.
GroundingConfig *DataStoreToolGroundingConfig `json:"groundingConfig,omitempty"`
// ModalityType: Required. The modality type.
//
// Possible values:
// "MODALITY_TYPE_UNSPECIFIED" - Unspecified modality type.
// "TEXT" - Text modality.
// "AUDIO" - Audio modality.
ModalityType string `json:"modalityType,omitempty"`
// RewriterConfig: Optional. The rewriter config.
RewriterConfig *DataStoreToolRewriterConfig `json:"rewriterConfig,omitempty"`
// SummarizationConfig: Optional. The summarization config.
SummarizationConfig *DataStoreToolSummarizationConfig `json:"summarizationConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "GroundingConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GroundingConfig") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreToolModalityConfig: If specified, will apply the given configuration for the specified modality.
func (DataStoreToolModalityConfig) MarshalJSON ¶
func (s DataStoreToolModalityConfig) MarshalJSON() ([]byte, error)
type DataStoreToolRewriterConfig ¶
type DataStoreToolRewriterConfig struct {
// Disabled: Optional. Whether the rewriter is disabled.
Disabled bool `json:"disabled,omitempty"`
// ModelSettings: Required. Configurations for the LLM model.
ModelSettings *ModelSettings `json:"modelSettings,omitempty"`
// Prompt: Optional. The prompt definition. If not set, default prompt will be
// used.
Prompt string `json:"prompt,omitempty"`
// ForceSendFields is a list of field names (e.g. "Disabled") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Disabled") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreToolRewriterConfig: Rewriter configuration.
func (DataStoreToolRewriterConfig) MarshalJSON ¶
func (s DataStoreToolRewriterConfig) MarshalJSON() ([]byte, error)
type DataStoreToolSummarizationConfig ¶
type DataStoreToolSummarizationConfig struct {
// Disabled: Optional. Whether summarization is disabled.
Disabled bool `json:"disabled,omitempty"`
// ModelSettings: Optional. Configurations for the LLM model.
ModelSettings *ModelSettings `json:"modelSettings,omitempty"`
// Prompt: Optional. The prompt definition. If not set, default prompt will be
// used.
Prompt string `json:"prompt,omitempty"`
// ForceSendFields is a list of field names (e.g. "Disabled") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Disabled") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
DataStoreToolSummarizationConfig: Summarization configuration.
func (DataStoreToolSummarizationConfig) MarshalJSON ¶
func (s DataStoreToolSummarizationConfig) MarshalJSON() ([]byte, error)
type Deployment ¶
type Deployment struct {
// AppVersion: Optional. The resource name of the app version to deploy.
// Format:
// `projects/{project}/locations/{location}/apps/{app}/versions/{version}` Use
// `projects/{project}/locations/{location}/apps/{app}/versions/-` to use the
// draft app.
AppVersion string `json:"appVersion,omitempty"`
// ChannelProfile: Required. The channel profile used in the deployment.
ChannelProfile *ChannelProfile `json:"channelProfile,omitempty"`
// CreateTime: Output only. Timestamp when this deployment was created.
CreateTime string `json:"createTime,omitempty"`
// DisplayName: Required. Display name of the deployment.
DisplayName string `json:"displayName,omitempty"`
// Etag: Output only. Etag used to ensure the object hasn't changed during a
// read-modify-write operation. If the etag is empty, the update will overwrite
// any concurrent changes.
Etag string `json:"etag,omitempty"`
// ExperimentConfig: Optional. Experiment configuration for the deployment.
ExperimentConfig *ExperimentConfig `json:"experimentConfig,omitempty"`
// Name: Identifier. The resource name of the deployment. Format:
// `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
Name string `json:"name,omitempty"`
// UpdateTime: Output only. Timestamp when this deployment was last updated.
UpdateTime string `json:"updateTime,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AppVersion") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AppVersion") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Deployment: A deployment represents an immutable, queryable version of the app. It is used to deploy an app version with a specific channel profile.
func (Deployment) MarshalJSON ¶
func (s Deployment) MarshalJSON() ([]byte, error)
type Empty ¶
type Empty struct {
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
}
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
type EndSession ¶
type EndSession struct {
// Metadata: Optional. Provides additional information about the end session
// signal, such as the reason for ending the session.
Metadata googleapi.RawMessage `json:"metadata,omitempty"`
// ForceSendFields is a list of field names (e.g. "Metadata") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Metadata") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
EndSession: Indicates the session has terminated, due to either successful completion (e.g. user says "Good bye!" ) or an agent escalation. The agent will not process any further inputs after session is terminated and the client should half-close and disconnect after receiving all remaining responses from the agent.
func (EndSession) MarshalJSON ¶
func (s EndSession) MarshalJSON() ([]byte, error)
type EndUserAuthConfig ¶
type EndUserAuthConfig struct {
// Oauth2AuthCodeConfig: Oauth 2.0 Authorization Code authentication.
Oauth2AuthCodeConfig *EndUserAuthConfigOauth2AuthCodeConfig `json:"oauth2AuthCodeConfig,omitempty"`
// Oauth2JwtBearerConfig: JWT Profile Oauth 2.0 Authorization Grant
// authentication.
Oauth2JwtBearerConfig *EndUserAuthConfigOauth2JwtBearerConfig `json:"oauth2JwtBearerConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "Oauth2AuthCodeConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Oauth2AuthCodeConfig") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
EndUserAuthConfig: End-user authentication configuration used for Connection calls. The field values must be the names of context variables in the format `$context.variables.`.
func (EndUserAuthConfig) MarshalJSON ¶
func (s EndUserAuthConfig) MarshalJSON() ([]byte, error)
type EndUserAuthConfigOauth2AuthCodeConfig ¶
type EndUserAuthConfigOauth2AuthCodeConfig struct {
// OauthToken: Required. Oauth token parameter name to pass through. Must be in
// the format `$context.variables.`.
OauthToken string `json:"oauthToken,omitempty"`
// ForceSendFields is a list of field names (e.g. "OauthToken") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "OauthToken") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
EndUserAuthConfigOauth2AuthCodeConfig: Oauth 2.0 Authorization Code authentication configuration.
func (EndUserAuthConfigOauth2AuthCodeConfig) MarshalJSON ¶
func (s EndUserAuthConfigOauth2AuthCodeConfig) MarshalJSON() ([]byte, error)
type EndUserAuthConfigOauth2JwtBearerConfig ¶
type EndUserAuthConfigOauth2JwtBearerConfig struct {
// ClientKey: Required. Client parameter name to pass through. Must be in the
// format `$context.variables.`.
ClientKey string `json:"clientKey,omitempty"`
// Issuer: Required. Issuer parameter name to pass through. Must be in the
// format `$context.variables.`.
Issuer string `json:"issuer,omitempty"`
// Subject: Required. Subject parameter name to pass through. Must be in the
// format `$context.variables.`.
Subject string `json:"subject,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClientKey") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ClientKey") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
EndUserAuthConfigOauth2JwtBearerConfig: JWT Profile Oauth 2.0 Authorization Grant authentication configuration.
func (EndUserAuthConfigOauth2JwtBearerConfig) MarshalJSON ¶
func (s EndUserAuthConfigOauth2JwtBearerConfig) MarshalJSON() ([]byte, error)
type EndpointControlPolicy ¶ added in v0.270.0
type EndpointControlPolicy struct {
// AllowedOrigins: Optional. The allowed HTTP(s) origins that tools in the App
// are able to directly call. The enforcement depends on the value of
// enforcement_scope and the VPC-SC status of the project. If a port number is
// not provided, all ports will be allowed. Otherwise, the port number must
// match exactly. For example, "https://example.com" will match
// "https://example.com:443" and any other port. "https://example.com:443" will
// only match "https://example.com:443".
AllowedOrigins []string `json:"allowedOrigins,omitempty"`
// EnforcementScope: Optional. The scope in which this policy's allowed_origins
// list is enforced.
//
// Possible values:
// "ENFORCEMENT_SCOPE_UNSPECIFIED" - Unspecified. This policy will be treated
// as VPCSC_ONLY.
// "VPCSC_ONLY" - This policy applies only when VPC-SC is active.
// "ALWAYS" - This policy ALWAYS applies, regardless of VPC-SC status.
EnforcementScope string `json:"enforcementScope,omitempty"`
// ForceSendFields is a list of field names (e.g. "AllowedOrigins") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AllowedOrigins") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
EndpointControlPolicy: Defines project/location level endpoint control policy.
func (EndpointControlPolicy) MarshalJSON ¶ added in v0.270.0
func (s EndpointControlPolicy) MarshalJSON() ([]byte, error)
type ErrorHandlingSettings ¶ added in v0.270.0
type ErrorHandlingSettings struct {
// EndSessionConfig: Optional. Configuration for ending the session in case of
// system errors (e.g. LLM errors).
EndSessionConfig *ErrorHandlingSettingsEndSessionConfig `json:"endSessionConfig,omitempty"`
// ErrorHandlingStrategy: Optional. The strategy to use for error handling.
//
// Possible values:
// "ERROR_HANDLING_STRATEGY_UNSPECIFIED" - Unspecified error handling
// strategy.
// "NONE" - No specific handling is enabled.
// "FALLBACK_RESPONSE" - A fallback message will be returned to the user in
// case of system errors (e.g. LLM errors).
// "END_SESSION" - An EndSession signal will be emitted in case of system
// errors (e.g. LLM errors).
ErrorHandlingStrategy string `json:"errorHandlingStrategy,omitempty"`
// FallbackResponseConfig: Optional. Configuration for handling fallback
// responses.
FallbackResponseConfig *ErrorHandlingSettingsFallbackResponseConfig `json:"fallbackResponseConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndSessionConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndSessionConfig") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ErrorHandlingSettings: Settings to describe how errors should be handled in the app.
func (ErrorHandlingSettings) MarshalJSON ¶ added in v0.270.0
func (s ErrorHandlingSettings) MarshalJSON() ([]byte, error)
type ErrorHandlingSettingsEndSessionConfig ¶ added in v0.276.0
type ErrorHandlingSettingsEndSessionConfig struct {
// EscalateSession: Optional. Whether to escalate the session in EndSession. If
// session is escalated, metadata in EndSession will contain `session_escalated
// = true`. See
// https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
// for details.
EscalateSession bool `json:"escalateSession,omitempty"`
// ForceSendFields is a list of field names (e.g. "EscalateSession") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EscalateSession") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ErrorHandlingSettingsEndSessionConfig: Configuration for ending the session in case of system errors (e.g. LLM errors).
func (ErrorHandlingSettingsEndSessionConfig) MarshalJSON ¶ added in v0.276.0
func (s ErrorHandlingSettingsEndSessionConfig) MarshalJSON() ([]byte, error)
type ErrorHandlingSettingsFallbackResponseConfig ¶ added in v0.276.0
type ErrorHandlingSettingsFallbackResponseConfig struct {
// CustomFallbackMessages: Optional. The fallback messages in case of system
// errors (e.g. LLM errors), mapped by supported language code
// (https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
CustomFallbackMessages map[string]string `json:"customFallbackMessages,omitempty"`
// MaxFallbackAttempts: Optional. The maximum number of fallback attempts to
// make before the agent emitting EndSession Signal.
MaxFallbackAttempts int64 `json:"maxFallbackAttempts,omitempty"`
// ForceSendFields is a list of field names (e.g. "CustomFallbackMessages") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CustomFallbackMessages") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ErrorHandlingSettingsFallbackResponseConfig: Configuration for handling fallback responses.
func (ErrorHandlingSettingsFallbackResponseConfig) MarshalJSON ¶ added in v0.276.0
func (s ErrorHandlingSettingsFallbackResponseConfig) MarshalJSON() ([]byte, error)
type EvaluationMetricsThresholds ¶
type EvaluationMetricsThresholds struct {
// GoldenEvaluationMetricsThresholds: Optional. The golden evaluation metrics
// thresholds.
GoldenEvaluationMetricsThresholds *EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds `json:"goldenEvaluationMetricsThresholds,omitempty"`
// GoldenHallucinationMetricBehavior: Optional. The hallucination metric
// behavior for golden evaluations.
//
// Possible values:
// "HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED" - Unspecified hallucination
// metric behavior.
// "DISABLED" - Disable hallucination metric.
// "ENABLED" - Enable hallucination metric.
GoldenHallucinationMetricBehavior string `json:"goldenHallucinationMetricBehavior,omitempty"`
// HallucinationMetricBehavior: Optional. Deprecated: Use
// `golden_hallucination_metric_behavior` instead. The hallucination metric
// behavior is currently used for golden evaluations.
//
// Possible values:
// "HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED" - Unspecified hallucination
// metric behavior.
// "DISABLED" - Disable hallucination metric.
// "ENABLED" - Enable hallucination metric.
HallucinationMetricBehavior string `json:"hallucinationMetricBehavior,omitempty"`
// ScenarioHallucinationMetricBehavior: Optional. The hallucination metric
// behavior for scenario evaluations.
//
// Possible values:
// "HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED" - Unspecified hallucination
// metric behavior.
// "DISABLED" - Disable hallucination metric.
// "ENABLED" - Enable hallucination metric.
ScenarioHallucinationMetricBehavior string `json:"scenarioHallucinationMetricBehavior,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "GoldenEvaluationMetricsThresholds") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted from
// API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "GoldenEvaluationMetricsThresholds") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted from API
// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
// more details.
NullFields []string `json:"-"`
}
EvaluationMetricsThresholds: Threshold settings for metrics in an Evaluation.
func (EvaluationMetricsThresholds) MarshalJSON ¶
func (s EvaluationMetricsThresholds) MarshalJSON() ([]byte, error)
type EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds ¶
type EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds struct {
// ExpectationLevelMetricsThresholds: Optional. The expectation level metrics
// thresholds.
ExpectationLevelMetricsThresholds *EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds `json:"expectationLevelMetricsThresholds,omitempty"`
// ToolMatchingSettings: Optional. The tool matching settings. An extra tool
// call is a tool call that is present in the execution but does not match any
// tool call in the golden expectation.
ToolMatchingSettings *EvaluationMetricsThresholdsToolMatchingSettings `json:"toolMatchingSettings,omitempty"`
// TurnLevelMetricsThresholds: Optional. The turn level metrics thresholds.
TurnLevelMetricsThresholds *EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds `json:"turnLevelMetricsThresholds,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ExpectationLevelMetricsThresholds") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted from
// API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ExpectationLevelMetricsThresholds") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted from API
// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
// more details.
NullFields []string `json:"-"`
}
EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds: Settings for golden evaluations.
func (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds) MarshalJSON ¶
func (s EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds) MarshalJSON() ([]byte, error)
type EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds ¶
type EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds struct {
// ToolInvocationParameterCorrectnessThreshold: Optional. The success threshold
// for individual tool invocation parameter correctness. Must be a float
// between 0 and 1. Default is 1.0.
ToolInvocationParameterCorrectnessThreshold float64 `json:"toolInvocationParameterCorrectnessThreshold,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ToolInvocationParameterCorrectnessThreshold") to unconditionally include in
// API requests. By default, fields with empty or default values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ToolInvocationParameterCorrectnessThreshold") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelM etricsThresholds: Expectation level metrics thresholds.
func (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds) MarshalJSON ¶
func (s EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds) MarshalJSON() ([]byte, error)
func (*EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds) UnmarshalJSON ¶
func (s *EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds) UnmarshalJSON(data []byte) error
type EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds ¶
type EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds struct {
// OverallToolInvocationCorrectnessThreshold: Optional. The success threshold
// for overall tool invocation correctness. Must be a float between 0 and 1.
// Default is 1.0.
OverallToolInvocationCorrectnessThreshold float64 `json:"overallToolInvocationCorrectnessThreshold,omitempty"`
// SemanticSimilarityChannel: Optional. The semantic similarity channel to use
// for evaluation.
//
// Possible values:
// "SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED" - Metric unspecified. Defaults
// to TEXT.
// "TEXT" - Use text semantic similarity.
// "AUDIO" - Use audio semantic similarity.
SemanticSimilarityChannel string `json:"semanticSimilarityChannel,omitempty"`
// SemanticSimilaritySuccessThreshold: Optional. The success threshold for
// semantic similarity. Must be an integer between 0 and 4. Default is >= 3.
SemanticSimilaritySuccessThreshold int64 `json:"semanticSimilaritySuccessThreshold,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "OverallToolInvocationCorrectnessThreshold") to unconditionally include in
// API requests. By default, fields with empty or default values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "OverallToolInvocationCorrectnessThreshold") to include in API requests with
// the JSON null value. By default, fields with empty values are omitted from
// API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields
// for more details.
NullFields []string `json:"-"`
}
EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsT hresholds: Turn level metrics thresholds.
func (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds) MarshalJSON ¶
func (s EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds) MarshalJSON() ([]byte, error)
func (*EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds) UnmarshalJSON ¶
func (s *EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds) UnmarshalJSON(data []byte) error
type EvaluationMetricsThresholdsToolMatchingSettings ¶ added in v0.270.0
type EvaluationMetricsThresholdsToolMatchingSettings struct {
// ExtraToolCallBehavior: Optional. Behavior for extra tool calls. Defaults to
// FAIL.
//
// Possible values:
// "EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED" - Unspecified behavior. Defaults to
// FAIL.
// "FAIL" - Fail the evaluation if an extra tool call is encountered.
// "ALLOW" - Allow the extra tool call.
ExtraToolCallBehavior string `json:"extraToolCallBehavior,omitempty"`
// ForceSendFields is a list of field names (e.g. "ExtraToolCallBehavior") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ExtraToolCallBehavior") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
EvaluationMetricsThresholdsToolMatchingSettings: Settings for matching tool calls.
func (EvaluationMetricsThresholdsToolMatchingSettings) MarshalJSON ¶ added in v0.270.0
func (s EvaluationMetricsThresholdsToolMatchingSettings) MarshalJSON() ([]byte, error)
type Event ¶
type Event struct {
// Event: Required. The name of the event.
Event string `json:"event,omitempty"`
// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Event") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Event: Event input.
func (Event) MarshalJSON ¶
type Example ¶
type Example struct {
// CreateTime: Output only. Timestamp when the example was created.
CreateTime string `json:"createTime,omitempty"`
// Description: Optional. Human-readable description of the example.
Description string `json:"description,omitempty"`
// DisplayName: Required. Display name of the example.
DisplayName string `json:"displayName,omitempty"`
// EntryAgent: Optional. The agent that initially handles the conversation. If
// not specified, the example represents a conversation that is handled by the
// root agent. Format:
// `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
EntryAgent string `json:"entryAgent,omitempty"`
// Etag: Etag used to ensure the object hasn't changed during a
// read-modify-write operation. If the etag is empty, the update will overwrite
// any concurrent changes.
Etag string `json:"etag,omitempty"`
// Invalid: Output only. The example may become invalid if referencing
// resources are deleted. Invalid examples will not be used as few-shot
// examples.
Invalid bool `json:"invalid,omitempty"`
// Messages: Optional. The collection of messages that make up the
// conversation.
Messages []*Message `json:"messages,omitempty"`
// Name: Identifier. The unique identifier of the example. Format:
// `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
Name string `json:"name,omitempty"`
// UpdateTime: Output only. Timestamp when the example was last updated.
UpdateTime string `json:"updateTime,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Example: An example represents a sample conversation between the user and the agent(s).
func (Example) MarshalJSON ¶
type ExecuteToolRequest ¶
type ExecuteToolRequest struct {
// Args: Optional. The input parameters and values for the tool in JSON object
// format.
Args googleapi.RawMessage `json:"args,omitempty"`
// Context: Optional. The ToolCallContext
// (https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
// for details) to be passed to the Python tool.
Context googleapi.RawMessage `json:"context,omitempty"`
// MockConfig: Optional. Mock configuration for the tool execution. If this
// field is set, tools that call other tools will be mocked based on the
// provided patterns and responses.
MockConfig *MockConfig `json:"mockConfig,omitempty"`
// Tool: Optional. The name of the tool to execute. Format:
// projects/{project}/locations/{location}/apps/{app}/tools/{tool}
Tool string `json:"tool,omitempty"`
// ToolsetTool: Optional. The toolset tool to execute. Only one tool should
// match the predicate from the toolset. Otherwise, an error will be returned.
ToolsetTool *ToolsetTool `json:"toolsetTool,omitempty"`
// Variables: Optional. The variables that are available for the tool
// execution.
Variables googleapi.RawMessage `json:"variables,omitempty"`
// ForceSendFields is a list of field names (e.g. "Args") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Args") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ExecuteToolRequest: Request message for ToolService.ExecuteTool.
func (ExecuteToolRequest) MarshalJSON ¶
func (s ExecuteToolRequest) MarshalJSON() ([]byte, error)
type ExecuteToolResponse ¶
type ExecuteToolResponse struct {
// Response: The tool execution result in JSON object format. Use "output" key
// to specify tool response and "error" key to specify error details (if any).
// If "output" and "error" keys are not specified, then whole "response" is
// treated as tool execution result.
Response googleapi.RawMessage `json:"response,omitempty"`
// Tool: The name of the tool that got executed. Format:
// `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
Tool string `json:"tool,omitempty"`
// ToolsetTool: The toolset tool that got executed.
ToolsetTool *ToolsetTool `json:"toolsetTool,omitempty"`
// Variables: The variable values at the end of the tool execution.
Variables googleapi.RawMessage `json:"variables,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Response") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Response") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ExecuteToolResponse: Response message for ToolService.ExecuteTool.
func (ExecuteToolResponse) MarshalJSON ¶
func (s ExecuteToolResponse) MarshalJSON() ([]byte, error)
type ExperimentConfig ¶ added in v0.277.0
type ExperimentConfig struct {
// VersionRelease: Optional. Version release for the experiment.
VersionRelease *ExperimentConfigVersionRelease `json:"versionRelease,omitempty"`
// ForceSendFields is a list of field names (e.g. "VersionRelease") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "VersionRelease") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ExperimentConfig: Experiment for the deployment.
func (ExperimentConfig) MarshalJSON ¶ added in v0.277.0
func (s ExperimentConfig) MarshalJSON() ([]byte, error)
type ExperimentConfigVersionRelease ¶ added in v0.277.0
type ExperimentConfigVersionRelease struct {
// State: Optional. State of the version release.
//
// Possible values:
// "STATE_UNSPECIFIED" - Unspecified state.
// "PENDING" - Pending state. Experiment is pending and not valid.
// "RUNNING" - Running state. Experiment is running and valid.
// "DONE" - Done state. Experiment is done and no longer valid.
// "EXPIRED" - Expired state. Experiment is expired and no longer valid.
State string `json:"state,omitempty"`
// TrafficAllocations: Optional. Traffic allocations for the version release.
TrafficAllocations []*ExperimentConfigVersionReleaseTrafficAllocation `json:"trafficAllocations,omitempty"`
// ForceSendFields is a list of field names (e.g. "State") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "State") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ExperimentConfigVersionRelease: Version release for the experiment.
func (ExperimentConfigVersionRelease) MarshalJSON ¶ added in v0.277.0
func (s ExperimentConfigVersionRelease) MarshalJSON() ([]byte, error)
type ExperimentConfigVersionReleaseTrafficAllocation ¶ added in v0.277.0
type ExperimentConfigVersionReleaseTrafficAllocation struct {
// AppVersion: Optional. App version of the traffic allocation. Format:
// `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
AppVersion string `json:"appVersion,omitempty"`
// Id: Optional. Id of the traffic allocation. Free format string, up to 128
// characters.
Id string `json:"id,omitempty"`
// TrafficPercentage: Optional. Traffic percentage of the traffic allocation.
// Must be between 0 and 100.
TrafficPercentage int64 `json:"trafficPercentage,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppVersion") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AppVersion") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ExperimentConfigVersionReleaseTrafficAllocation: Traffic allocation for the version release.
func (ExperimentConfigVersionReleaseTrafficAllocation) MarshalJSON ¶ added in v0.277.0
func (s ExperimentConfigVersionReleaseTrafficAllocation) MarshalJSON() ([]byte, error)
type ExportAppRequest ¶
type ExportAppRequest struct {
// AppVersion: Optional. The resource name of the app version to export.
// Format:
// `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
AppVersion string `json:"appVersion,omitempty"`
// ExportFormat: Required. The format to export the app in.
//
// Possible values:
// "EXPORT_FORMAT_UNSPECIFIED" - The export format is unspecified.
// "JSON" - The export format is JSON.
// "YAML" - The export format is YAML.
ExportFormat string `json:"exportFormat,omitempty"`
// GcsUri: Optional. The Google Cloud Storage
// (https://cloud.google.com/storage/docs/) URI to which to export the app. The
// format of this URI must be `gs:///`. The exported app archive will be
// written directly to the specified GCS object.
GcsUri string `json:"gcsUri,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppVersion") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AppVersion") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ExportAppRequest: Request message for AgentService.ExportApp.
func (ExportAppRequest) MarshalJSON ¶
func (s ExportAppRequest) MarshalJSON() ([]byte, error)
type ExportAppResponse ¶
type ExportAppResponse struct {
// AppContent: App folder compressed as a zip file.
AppContent string `json:"appContent,omitempty"`
// AppUri: The Google Cloud Storage (https://cloud.google.com/storage/docs/)
// URI to which the app was exported.
AppUri string `json:"appUri,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppContent") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AppContent") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ExportAppResponse: Response message for AgentService.ExportApp.
func (ExportAppResponse) MarshalJSON ¶
func (s ExportAppResponse) MarshalJSON() ([]byte, error)
type ExpressionCondition ¶
type ExpressionCondition struct {
// Expression: Required. The string representation of cloud.api.Expression
// condition.
Expression string `json:"expression,omitempty"`
// ForceSendFields is a list of field names (e.g. "Expression") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Expression") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ExpressionCondition: Expression condition based on session state.
func (ExpressionCondition) MarshalJSON ¶
func (s ExpressionCondition) MarshalJSON() ([]byte, error)
type FileSearchTool ¶
type FileSearchTool struct {
// CorpusType: Optional. The type of the corpus. Default is FULLY_MANAGED.
//
// Possible values:
// "CORPUS_TYPE_UNSPECIFIED" - Unspecified corpus type.
// "USER_OWNED" - The corpus is created and owned by the user.
// "FULLY_MANAGED" - The corpus is created by the agent.
CorpusType string `json:"corpusType,omitempty"`
// Description: Optional. The tool description.
Description string `json:"description,omitempty"`
// FileCorpus: Optional. The corpus where files are stored. Format:
// projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
FileCorpus string `json:"fileCorpus,omitempty"`
// Name: Required. The tool name.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "CorpusType") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CorpusType") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
FileSearchTool: The file search tool allows the agent to search across the files uploaded by the app/agent developer. It has presets to give relatively good quality search over the uploaded files and summarization of the retrieved results.
func (FileSearchTool) MarshalJSON ¶
func (s FileSearchTool) MarshalJSON() ([]byte, error)
type GenerateChatTokenRequest ¶
type GenerateChatTokenRequest struct {
// Deployment: Required. The deployment of the app to use for the session.
// Format:
// projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
Deployment string `json:"deployment,omitempty"`
// LiveHandoffEnabled: Optional. Indicates if live handoff is enabled for the
// session.
LiveHandoffEnabled bool `json:"liveHandoffEnabled,omitempty"`
// RecaptchaToken: Optional. The reCAPTCHA token generated by the client-side
// chat widget.
RecaptchaToken string `json:"recaptchaToken,omitempty"`
// ForceSendFields is a list of field names (e.g. "Deployment") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Deployment") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GenerateChatTokenRequest: Request message for WidgetService.GenerateChatToken.
func (GenerateChatTokenRequest) MarshalJSON ¶
func (s GenerateChatTokenRequest) MarshalJSON() ([]byte, error)
type GenerateChatTokenResponse ¶
type GenerateChatTokenResponse struct {
// ChatToken: The session scoped token for chat widget to authenticate with
// Session APIs.
ChatToken string `json:"chatToken,omitempty"`
// ExpireTime: The time at which the chat token expires.
ExpireTime string `json:"expireTime,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ChatToken") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChatToken") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GenerateChatTokenResponse: Response message for WidgetService.GenerateChatToken.
func (GenerateChatTokenResponse) MarshalJSON ¶
func (s GenerateChatTokenResponse) MarshalJSON() ([]byte, error)
type GoogleSearchSuggestions ¶
type GoogleSearchSuggestions struct {
// Htmls: Compliant HTML and CSS styling for search suggestions. The provided
// HTML and CSS automatically adapts to your device settings, displaying in
// either light or dark mode indicated by `@media(prefers-color-scheme)`.
Htmls []string `json:"htmls,omitempty"`
// WebSearchQueries: List of queries used to perform the google search along
// with the search result URIs forming the search suggestions.
WebSearchQueries []*WebSearchQuery `json:"webSearchQueries,omitempty"`
// ForceSendFields is a list of field names (e.g. "Htmls") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Htmls") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleSearchSuggestions: Search suggestions from Google Search Tool.
func (GoogleSearchSuggestions) MarshalJSON ¶
func (s GoogleSearchSuggestions) MarshalJSON() ([]byte, error)
type GoogleSearchTool ¶
type GoogleSearchTool struct {
// ContextUrls: Optional. Content will be fetched directly from these URLs for
// context and grounding. Example: "https://example.com/path.html". A maximum
// of 20 URLs are allowed.
ContextUrls []string `json:"contextUrls,omitempty"`
// Description: Optional. Description of the tool's purpose.
Description string `json:"description,omitempty"`
// ExcludeDomains: Optional. List of domains to be excluded from the search
// results. Example: "example.com". A maximum of 2000 domains can be excluded.
ExcludeDomains []string `json:"excludeDomains,omitempty"`
// Name: Required. The name of the tool.
Name string `json:"name,omitempty"`
// PreferredDomains: Optional. Specifies domains to restrict search results to.
// Example: "example.com", "another.site". A maximum of 20 domains can be
// specified.
PreferredDomains []string `json:"preferredDomains,omitempty"`
// PromptConfig: Optional. Prompt instructions passed to planner on how the
// search results should be processed for text and voice.
PromptConfig *GoogleSearchToolPromptConfig `json:"promptConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "ContextUrls") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ContextUrls") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleSearchTool: Represents a tool to perform Google web searches for grounding. See https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool#google-search.
func (GoogleSearchTool) MarshalJSON ¶
func (s GoogleSearchTool) MarshalJSON() ([]byte, error)
type GoogleSearchToolPromptConfig ¶ added in v0.267.0
type GoogleSearchToolPromptConfig struct {
// TextPrompt: Optional. Defines the prompt used for the system instructions
// when interacting with the agent in chat conversations. If not set, default
// prompt will be used.
TextPrompt string `json:"textPrompt,omitempty"`
// VoicePrompt: Optional. Defines the prompt used for the system instructions
// when interacting with the agent in voice conversations. If not set, default
// prompt will be used.
VoicePrompt string `json:"voicePrompt,omitempty"`
// ForceSendFields is a list of field names (e.g. "TextPrompt") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TextPrompt") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleSearchToolPromptConfig: Prompt settings used by the model when processing or summarizing the google search results.
func (GoogleSearchToolPromptConfig) MarshalJSON ¶ added in v0.267.0
func (s GoogleSearchToolPromptConfig) MarshalJSON() ([]byte, error)
type Guardrail ¶
type Guardrail struct {
// Action: Optional. Action to take when the guardrail is triggered.
Action *TriggerAction `json:"action,omitempty"`
// CodeCallback: Optional. Guardrail that potentially blocks the conversation
// based on the result of the callback execution.
CodeCallback *GuardrailCodeCallback `json:"codeCallback,omitempty"`
// ContentFilter: Optional. Guardrail that bans certain content from being used
// in the conversation.
ContentFilter *GuardrailContentFilter `json:"contentFilter,omitempty"`
// CreateTime: Output only. Timestamp when the guardrail was created.
CreateTime string `json:"createTime,omitempty"`
// Description: Optional. Description of the guardrail.
Description string `json:"description,omitempty"`
// DisplayName: Required. Display name of the guardrail.
DisplayName string `json:"displayName,omitempty"`
// Enabled: Optional. Whether the guardrail is enabled.
Enabled bool `json:"enabled,omitempty"`
// Etag: Etag used to ensure the object hasn't changed during a
// read-modify-write operation. If the etag is empty, the update will overwrite
// any concurrent changes.
Etag string `json:"etag,omitempty"`
// LlmPolicy: Optional. Guardrail that blocks the conversation if the LLM
// response is considered violating the policy based on the LLM classification.
LlmPolicy *GuardrailLlmPolicy `json:"llmPolicy,omitempty"`
// LlmPromptSecurity: Optional. Guardrail that blocks the conversation if the
// prompt is considered unsafe based on the LLM classification.
LlmPromptSecurity *GuardrailLlmPromptSecurity `json:"llmPromptSecurity,omitempty"`
// ModelSafety: Optional. Guardrail that blocks the conversation if the LLM
// response is considered unsafe based on the model safety settings.
ModelSafety *GuardrailModelSafety `json:"modelSafety,omitempty"`
// Name: Identifier. The unique identifier of the guardrail. Format:
// `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
Name string `json:"name,omitempty"`
// UpdateTime: Output only. Timestamp when the guardrail was last updated.
UpdateTime string `json:"updateTime,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 or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Guardrail: Guardrail contains a list of checks and balances to keep the agents safe and secure.
func (Guardrail) MarshalJSON ¶
type GuardrailCodeCallback ¶
type GuardrailCodeCallback struct {
// AfterAgentCallback: Optional. The callback to execute after the agent is
// called. Each callback function is expected to return a structure (e.g., a
// dict or object) containing at least: - 'decision': Either 'OK' or 'TRIGGER'.
// - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt
// further processing.
AfterAgentCallback *Callback `json:"afterAgentCallback,omitempty"`
// AfterModelCallback: Optional. The callback to execute after the model is
// called. If there are multiple calls to the model, the callback will be
// executed multiple times. Each callback function is expected to return a
// structure (e.g., a dict or object) containing at least: - 'decision': Either
// 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER'
// decision may halt further processing.
AfterModelCallback *Callback `json:"afterModelCallback,omitempty"`
// BeforeAgentCallback: Optional. The callback to execute before the agent is
// called. Each callback function is expected to return a structure (e.g., a
// dict or object) containing at least: - 'decision': Either 'OK' or 'TRIGGER'.
// - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt
// further processing.
BeforeAgentCallback *Callback `json:"beforeAgentCallback,omitempty"`
// BeforeModelCallback: Optional. The callback to execute before the model is
// called. If there are multiple calls to the model, the callback will be
// executed multiple times. Each callback function is expected to return a
// structure (e.g., a dict or object) containing at least: - 'decision': Either
// 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER'
// decision may halt further processing.
BeforeModelCallback *Callback `json:"beforeModelCallback,omitempty"`
// ForceSendFields is a list of field names (e.g. "AfterAgentCallback") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AfterAgentCallback") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GuardrailCodeCallback: Guardrail that blocks the conversation based on the code callbacks provided.
func (GuardrailCodeCallback) MarshalJSON ¶
func (s GuardrailCodeCallback) MarshalJSON() ([]byte, error)
type GuardrailContentFilter ¶
type GuardrailContentFilter struct {
// BannedContents: Optional. List of banned phrases. Applies to both user
// inputs and agent responses.
BannedContents []string `json:"bannedContents,omitempty"`
// BannedContentsInAgentResponse: Optional. List of banned phrases. Applies
// only to agent responses.
BannedContentsInAgentResponse []string `json:"bannedContentsInAgentResponse,omitempty"`
// BannedContentsInUserInput: Optional. List of banned phrases. Applies only to
// user inputs.
BannedContentsInUserInput []string `json:"bannedContentsInUserInput,omitempty"`
// DisregardDiacritics: Optional. If true, diacritics are ignored during
// matching.
DisregardDiacritics bool `json:"disregardDiacritics,omitempty"`
// MatchType: Required. Match type for the content filter.
//
// Possible values:
// "MATCH_TYPE_UNSPECIFIED" - Match type is not specified.
// "SIMPLE_STRING_MATCH" - Content is matched for substrings character by
// character.
// "WORD_BOUNDARY_STRING_MATCH" - Content only matches if the pattern found
// in the text is surrounded by word delimiters. Banned phrases can also
// contain word delimiters.
// "REGEXP_MATCH" - Content is matched using regular expression syntax.
MatchType string `json:"matchType,omitempty"`
// ForceSendFields is a list of field names (e.g. "BannedContents") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BannedContents") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GuardrailContentFilter: Guardrail that bans certain content from being used in the conversation.
func (GuardrailContentFilter) MarshalJSON ¶
func (s GuardrailContentFilter) MarshalJSON() ([]byte, error)
type GuardrailLlmPolicy ¶
type GuardrailLlmPolicy struct {
// AllowShortUtterance: Optional. By default, the LLM policy check is bypassed
// for short utterances. Enabling this setting applies the policy check to all
// utterances, including those that would normally be skipped.
AllowShortUtterance bool `json:"allowShortUtterance,omitempty"`
// FailOpen: Optional. If an error occurs during the policy check, fail open
// and do not trigger the guardrail.
FailOpen bool `json:"failOpen,omitempty"`
// MaxConversationMessages: Optional. When checking this policy, consider the
// last 'n' messages in the conversation. When not set a default value of 10
// will be used.
MaxConversationMessages int64 `json:"maxConversationMessages,omitempty"`
// ModelSettings: Optional. Model settings.
ModelSettings *ModelSettings `json:"modelSettings,omitempty"`
// PolicyScope: Required. Defines when to apply the policy check during the
// conversation. If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be
// applied to the user input. When applying the policy to the agent response,
// additional latency will be introduced before the agent can respond.
//
// Possible values:
// "POLICY_SCOPE_UNSPECIFIED" - Policy scope is not specified.
// "USER_QUERY" - Policy check is triggered on user input.
// "AGENT_RESPONSE" - Policy check is triggered on agent response. Applying
// this policy scope will introduce additional latency before the agent can
// respond.
// "USER_QUERY_AND_AGENT_RESPONSE" - Policy check is triggered on both user
// input and agent response. Applying this policy scope will introduce
// additional latency before the agent can respond.
PolicyScope string `json:"policyScope,omitempty"`
// Prompt: Required. Policy prompt.
Prompt string `json:"prompt,omitempty"`
// ForceSendFields is a list of field names (e.g. "AllowShortUtterance") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AllowShortUtterance") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GuardrailLlmPolicy: Guardrail that blocks the conversation if the LLM response is considered violating the policy based on the LLM classification.
func (GuardrailLlmPolicy) MarshalJSON ¶
func (s GuardrailLlmPolicy) MarshalJSON() ([]byte, error)
type GuardrailLlmPromptSecurity ¶
type GuardrailLlmPromptSecurity struct {
// CustomPolicy: Optional. Use a user-defined LlmPolicy to configure the
// security guardrail.
CustomPolicy *GuardrailLlmPolicy `json:"customPolicy,omitempty"`
// DefaultSettings: Optional. Use the system's predefined default security
// settings. To select this mode, include an empty 'default_settings' message
// in the request. The 'default_prompt_template' field within will be populated
// by the server in the response.
DefaultSettings *GuardrailLlmPromptSecurityDefaultSecuritySettings `json:"defaultSettings,omitempty"`
// FailOpen: Optional. Determines the behavior when the guardrail encounters an
// LLM error. - If true: the guardrail is bypassed. - If false (default): the
// guardrail triggers/blocks. Note: If a custom policy is provided, this field
// is ignored in favor of the policy's 'fail_open' configuration.
FailOpen bool `json:"failOpen,omitempty"`
// ForceSendFields is a list of field names (e.g. "CustomPolicy") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CustomPolicy") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GuardrailLlmPromptSecurity: Guardrail that blocks the conversation if the input is considered unsafe based on the LLM classification.
func (GuardrailLlmPromptSecurity) MarshalJSON ¶
func (s GuardrailLlmPromptSecurity) MarshalJSON() ([]byte, error)
type GuardrailLlmPromptSecurityDefaultSecuritySettings ¶
type GuardrailLlmPromptSecurityDefaultSecuritySettings struct {
// DefaultPromptTemplate: Output only. The default prompt template used by the
// system. This field is for display purposes to show the user what prompt the
// system uses by default. It is OUTPUT_ONLY.
DefaultPromptTemplate string `json:"defaultPromptTemplate,omitempty"`
// ForceSendFields is a list of field names (e.g. "DefaultPromptTemplate") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DefaultPromptTemplate") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GuardrailLlmPromptSecurityDefaultSecuritySettings: Configuration for default system security settings.
func (GuardrailLlmPromptSecurityDefaultSecuritySettings) MarshalJSON ¶
func (s GuardrailLlmPromptSecurityDefaultSecuritySettings) MarshalJSON() ([]byte, error)
type GuardrailModelSafety ¶
type GuardrailModelSafety struct {
// SafetySettings: Required. List of safety settings.
SafetySettings []*GuardrailModelSafetySafetySetting `json:"safetySettings,omitempty"`
// ForceSendFields is a list of field names (e.g. "SafetySettings") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SafetySettings") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GuardrailModelSafety: Model safety settings overrides. When this is set, it will override the default settings and trigger the guardrail if the response is considered unsafe.
func (GuardrailModelSafety) MarshalJSON ¶
func (s GuardrailModelSafety) MarshalJSON() ([]byte, error)
type GuardrailModelSafetySafetySetting ¶
type GuardrailModelSafetySafetySetting struct {
// Category: Required. The harm category.
//
// Possible values:
// "HARM_CATEGORY_UNSPECIFIED" - The harm category is unspecified.
// "HARM_CATEGORY_HATE_SPEECH" - The harm category is hate speech.
// "HARM_CATEGORY_DANGEROUS_CONTENT" - The harm category is dangerous
// content.
// "HARM_CATEGORY_HARASSMENT" - The harm category is harassment.
// "HARM_CATEGORY_SEXUALLY_EXPLICIT" - The harm category is sexually explicit
// content.
Category string `json:"category,omitempty"`
// Threshold: Required. The harm block threshold.
//
// Possible values:
// "HARM_BLOCK_THRESHOLD_UNSPECIFIED" - Unspecified harm block threshold.
// "BLOCK_LOW_AND_ABOVE" - Block low threshold and above (i.e. block more).
// "BLOCK_MEDIUM_AND_ABOVE" - Block medium threshold and above.
// "BLOCK_ONLY_HIGH" - Block only high threshold (i.e. block less).
// "BLOCK_NONE" - Block none.
// "OFF" - Turn off the safety filter.
Threshold string `json:"threshold,omitempty"`
// ForceSendFields is a list of field names (e.g. "Category") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Category") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GuardrailModelSafetySafetySetting: Safety setting.
func (GuardrailModelSafetySafetySetting) MarshalJSON ¶
func (s GuardrailModelSafetySafetySetting) MarshalJSON() ([]byte, error)
type Image ¶
type Image struct {
// Data: Required. Raw bytes of the image.
Data string `json:"data,omitempty"`
// MimeType: Required. The IANA standard MIME type of the source data.
// Supported image types includes: * image/png * image/jpeg * image/webp
MimeType string `json:"mimeType,omitempty"`
// ForceSendFields is a list of field names (e.g. "Data") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Data") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Image: Represents an image input or output in the conversation.
func (Image) MarshalJSON ¶
type ImportAppRequest ¶
type ImportAppRequest struct {
// AppContent: Raw bytes representing the compressed zip file with the app
// folder structure.
AppContent string `json:"appContent,omitempty"`
// AppId: Optional. The ID to use for the imported app. * If not specified, a
// unique ID will be automatically assigned for the app. * Otherwise, the
// imported app will use this ID as the final component of its resource name.
// If an app with the same ID already exists at the specified location in the
// project, the content of the existing app will be replaced.
AppId string `json:"appId,omitempty"`
// DisplayName: Optional. The display name of the app to import. * If the app
// is created on import, and the display name is specified, the imported app
// will use this display name. If a conflict is detected with an existing app,
// a timestamp will be appended to the display name to make it unique. * If the
// app is a reimport, this field should not be set. Providing a display name
// during reimport will result in an INVALID_ARGUMENT error.
DisplayName string `json:"displayName,omitempty"`
// GcsUri: The Google Cloud Storage (https://cloud.google.com/storage/docs/)
// URI from which to import app. The format of this URI must be `gs:///`.
GcsUri string `json:"gcsUri,omitempty"`
// IgnoreAppLock: Optional. Flag for overriding the app lock during import. If
// set to true, the import process will ignore the app lock.
IgnoreAppLock bool `json:"ignoreAppLock,omitempty"`
// ImportOptions: Optional. Options governing the import process for the app.
ImportOptions *ImportAppRequestImportOptions `json:"importOptions,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppContent") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AppContent") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ImportAppRequest: Request message for AgentService.ImportApp.
func (ImportAppRequest) MarshalJSON ¶
func (s ImportAppRequest) MarshalJSON() ([]byte, error)
type ImportAppRequestImportOptions ¶
type ImportAppRequestImportOptions struct {
// ConflictResolutionStrategy: Optional. The strategy to use when resolving
// conflicts during import.
//
// Possible values:
// "CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED" - The conflict resolution
// strategy is unspecified.
// "REPLACE" - Replace existing data with imported data. If an app with the
// same `app_id` already exists, its content will be updated based on the
// imported app. - Resources (App, Agents, Tools, Examples, Guardrails,
// Toolsets) in the imported app that have the same display name as existing
// resources will overwrite the existing ones. - Imported resources with new
// display names will be created. - Existing resources that do not have a
// matching display name in the imported app will remain untouched.
// "OVERWRITE" - Overwrite existing data with imported data. If an app with
// the same `app_id` already exists, its content will be overwritten with the
// imported app. - Existing resources (Agents, Tools, Examples, Guardrails,
// Toolsets) in the app will be deleted. - Imported resources will be created
// as new resources.
ConflictResolutionStrategy string `json:"conflictResolutionStrategy,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConflictResolutionStrategy")
// to unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ConflictResolutionStrategy") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ImportAppRequestImportOptions: Configuration options for the app import process. These options control how the import behaves, particularly when conflicts arise with existing app data.
func (ImportAppRequestImportOptions) MarshalJSON ¶
func (s ImportAppRequestImportOptions) MarshalJSON() ([]byte, error)
type ImportAppResponse ¶
type ImportAppResponse struct {
// Name: The resource name of the app that was imported.
Name string `json:"name,omitempty"`
// Warnings: Warning messages generated during the import process. If errors
// occur for specific resources, they will not be included in the imported app
// and the error will be mentioned here.
Warnings []string `json:"warnings,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ImportAppResponse: Response message for AgentService.ImportApp.
func (ImportAppResponse) MarshalJSON ¶
func (s ImportAppResponse) MarshalJSON() ([]byte, error)
type InputAudioConfig ¶
type InputAudioConfig struct {
// AudioEncoding: Required. The encoding of the input audio data.
//
// Possible values:
// "AUDIO_ENCODING_UNSPECIFIED" - Unspecified audio encoding.
// "LINEAR16" - 16-bit linear PCM audio encoding.
// "MULAW" - 8-bit samples that compand 14-bit audio samples using G.711
// PCMU/mu-law.
// "ALAW" - 8-bit samples that compand 14-bit audio samples using G.711
// PCMU/A-law.
AudioEncoding string `json:"audioEncoding,omitempty"`
// NoiseSuppressionLevel: Optional. Whether to enable noise suppression on the
// input audio. Available values are "low", "moderate", "high", "very_high".
NoiseSuppressionLevel string `json:"noiseSuppressionLevel,omitempty"`
// SampleRateHertz: Required. The sample rate (in Hertz) of the input audio
// data.
SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
InputAudioConfig: InputAudioConfig configures how the CES agent should interpret the incoming audio data.
func (InputAudioConfig) MarshalJSON ¶
func (s InputAudioConfig) MarshalJSON() ([]byte, error)
type LanguageSettings ¶
type LanguageSettings struct {
// DefaultLanguageCode: Optional. The default language code of the app.
DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
// EnableMultilingualSupport: Optional. Enables multilingual support. If true,
// agents in the app will use pre-built instructions to improve handling of
// multilingual input.
EnableMultilingualSupport bool `json:"enableMultilingualSupport,omitempty"`
// FallbackAction: Optional. Deprecated: This feature is no longer supported.
// Use `enable_multilingual_support` instead to improve handling of
// multilingual input. The action to perform when an agent receives input in an
// unsupported language. This can be a predefined action or a custom tool call.
// Valid values are: - A tool's full resource name, which triggers a specific
// tool execution. - A predefined system action, such as "escalate" or "exit",
// which triggers an EndSession signal with corresponding metadata to terminate
// the conversation.
FallbackAction string `json:"fallbackAction,omitempty"`
// SupportedLanguageCodes: Optional. List of languages codes supported by the
// app, in addition to the `default_language_code`.
SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"`
// ForceSendFields is a list of field names (e.g. "DefaultLanguageCode") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DefaultLanguageCode") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
LanguageSettings: Language settings of the app.
func (LanguageSettings) MarshalJSON ¶
func (s LanguageSettings) MarshalJSON() ([]byte, error)
type ListAgentsResponse ¶
type ListAgentsResponse struct {
// Agents: The list of agents.
Agents []*Agent `json:"agents,omitempty"`
// NextPageToken: A token that can be sent as ListAgentsRequest.page_token to
// retrieve the next page. Absence of this field indicates there are no
// subsequent pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Agents") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Agents") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListAgentsResponse: Response message for AgentService.ListAgents.
func (ListAgentsResponse) MarshalJSON ¶
func (s ListAgentsResponse) MarshalJSON() ([]byte, error)
type ListAppVersionsResponse ¶
type ListAppVersionsResponse struct {
// AppVersions: The list of app versions.
AppVersions []*AppVersion `json:"appVersions,omitempty"`
// NextPageToken: A token that can be sent as ListAppVersionsRequest.page_token
// to retrieve the next page. Absence of this field indicates there are no
// subsequent pages.
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. "AppVersions") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AppVersions") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListAppVersionsResponse: Response message for AgentService.ListAppVersions.
func (ListAppVersionsResponse) MarshalJSON ¶
func (s ListAppVersionsResponse) MarshalJSON() ([]byte, error)
type ListAppsResponse ¶
type ListAppsResponse struct {
// Apps: The list of apps.
Apps []*App `json:"apps,omitempty"`
// NextPageToken: A token that can be sent as ListAppsRequest.page_token to
// retrieve the next page. Absence of this field indicates there are no
// subsequent pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// Unreachable: Unordered list. Locations that could not be reached.
Unreachable []string `json:"unreachable,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Apps") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Apps") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListAppsResponse: Response message for AgentService.ListApps.
func (ListAppsResponse) MarshalJSON ¶
func (s ListAppsResponse) MarshalJSON() ([]byte, error)
type ListChangelogsResponse ¶
type ListChangelogsResponse struct {
// Changelogs: The list of changelogs.
Changelogs []*Changelog `json:"changelogs,omitempty"`
// NextPageToken: A token that can be sent as ListChangelogsRequest.page_token
// to retrieve the next page. Absence of this field indicates there are no
// subsequent pages.
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. "Changelogs") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Changelogs") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListChangelogsResponse: Response message for AgentService.ListChangelogs.
func (ListChangelogsResponse) MarshalJSON ¶
func (s ListChangelogsResponse) MarshalJSON() ([]byte, error)
type ListConversationsResponse ¶
type ListConversationsResponse struct {
// Conversations: The list of conversations.
Conversations []*Conversation `json:"conversations,omitempty"`
// NextPageToken: A token that can be sent as
// ListConversationsRequest.page_token to retrieve the next page. Absence of
// this field indicates there are no subsequent pages.
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. "Conversations") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Conversations") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListConversationsResponse: Response message for AgentService.ListConversations.
func (ListConversationsResponse) MarshalJSON ¶
func (s ListConversationsResponse) MarshalJSON() ([]byte, error)
type ListDeploymentsResponse ¶
type ListDeploymentsResponse struct {
// Deployments: The list of deployments.
Deployments []*Deployment `json:"deployments,omitempty"`
// NextPageToken: A token, which can be sent as `page_token` to retrieve the
// next page. If this field is omitted, there are no subsequent pages.
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. "Deployments") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Deployments") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListDeploymentsResponse: Response message for AgentService.ListDeployments.
func (ListDeploymentsResponse) MarshalJSON ¶
func (s ListDeploymentsResponse) MarshalJSON() ([]byte, error)
type ListExamplesResponse ¶
type ListExamplesResponse struct {
// Examples: The list of examples.
Examples []*Example `json:"examples,omitempty"`
// NextPageToken: A token that can be sent as ListExamplesRequest.page_token to
// retrieve the next page. Absence of this field indicates there are no
// subsequent pages.
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. "Examples") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Examples") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListExamplesResponse: Response message for AgentService.ListExamples.
func (ListExamplesResponse) MarshalJSON ¶
func (s ListExamplesResponse) MarshalJSON() ([]byte, error)
type ListGuardrailsResponse ¶
type ListGuardrailsResponse struct {
// Guardrails: The list of guardrails.
Guardrails []*Guardrail `json:"guardrails,omitempty"`
// NextPageToken: A token that can be sent as ListGuardrailsRequest.page_token
// to retrieve the next page. Absence of this field indicates there are no
// subsequent pages.
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. "Guardrails") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Guardrails") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListGuardrailsResponse: Response message for AgentService.ListGuardrails.
func (ListGuardrailsResponse) MarshalJSON ¶
func (s ListGuardrailsResponse) MarshalJSON() ([]byte, error)
type ListLocationsResponse ¶
type ListLocationsResponse struct {
// Locations: A list of locations that matches the specified filter in the
// request.
Locations []*Location `json:"locations,omitempty"`
// NextPageToken: The standard List next-page token.
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. "Locations") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Locations") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListLocationsResponse: The response message for Locations.ListLocations.
func (ListLocationsResponse) MarshalJSON ¶
func (s ListLocationsResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct {
// NextPageToken: The standard List next-page token.
NextPageToken string `json:"nextPageToken,omitempty"`
// Operations: A list of operations that matches the specified filter in the
// request.
Operations []*Operation `json:"operations,omitempty"`
// Unreachable: Unordered list. Unreachable resources. Populated when the
// request sets `ListOperationsRequest.return_partial_success` and reads across
// collections. For example, when attempting to list all resources across all
// supported locations.
Unreachable []string `json:"unreachable,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 or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListOperationsResponse: The response message for Operations.ListOperations.
func (ListOperationsResponse) MarshalJSON ¶
func (s ListOperationsResponse) MarshalJSON() ([]byte, error)
type ListToolsResponse ¶
type ListToolsResponse struct {
// NextPageToken: A token that can be sent as ListToolsRequest.page_token to
// retrieve the next page. Absence of this field indicates there are no
// subsequent pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// Tools: The list of tools.
Tools []*Tool `json:"tools,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 or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListToolsResponse: Response message for AgentService.ListTools.
func (ListToolsResponse) MarshalJSON ¶
func (s ListToolsResponse) MarshalJSON() ([]byte, error)
type ListToolsetsResponse ¶
type ListToolsetsResponse struct {
// NextPageToken: A token that can be sent as ListToolsetsRequest.page_token to
// retrieve the next page. Absence of this field indicates there are no
// subsequent pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// Toolsets: The list of toolsets.
Toolsets []*Toolset `json:"toolsets,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 or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ListToolsetsResponse: Response message for AgentService.ListToolsets.
func (ListToolsetsResponse) MarshalJSON ¶
func (s ListToolsetsResponse) MarshalJSON() ([]byte, error)
type Location ¶
type Location struct {
// DisplayName: The friendly name for this location, typically a nearby city
// name. For example, "Tokyo".
DisplayName string `json:"displayName,omitempty"`
// Labels: Cross-service attributes for the location. For example
// {"cloud.googleapis.com/region": "us-east1"}
Labels map[string]string `json:"labels,omitempty"`
// LocationId: The canonical id for this location. For example: "us-east1".
LocationId string `json:"locationId,omitempty"`
// Metadata: Service-specific metadata. For example the available capacity at
// the given location.
Metadata googleapi.RawMessage `json:"metadata,omitempty"`
// Name: Resource name for the location, which may vary between
// implementations. For example:
// "projects/example-project/locations/us-east1"
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. "DisplayName") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Location: A resource that represents a Google Cloud location.
func (Location) MarshalJSON ¶
type LoggingSettings ¶
type LoggingSettings struct {
// AudioRecordingConfig: Optional. Configuration for how audio interactions
// should be recorded.
AudioRecordingConfig *AudioRecordingConfig `json:"audioRecordingConfig,omitempty"`
// BigqueryExportSettings: Optional. Settings to describe the BigQuery export
// behaviors for the app. The conversation data will be exported to BigQuery
// tables if it is enabled.
BigqueryExportSettings *BigQueryExportSettings `json:"bigqueryExportSettings,omitempty"`
// CloudLoggingSettings: Optional. Settings to describe the Cloud Logging
// behaviors for the app.
CloudLoggingSettings *CloudLoggingSettings `json:"cloudLoggingSettings,omitempty"`
// ConversationLoggingSettings: Optional. Settings to describe the conversation
// logging behaviors for the app.
ConversationLoggingSettings *ConversationLoggingSettings `json:"conversationLoggingSettings,omitempty"`
// EvaluationAudioRecordingConfig: Optional. Configuration for how audio
// interactions should be recorded for the evaluation. By default, audio
// recording is not enabled for evaluation sessions.
EvaluationAudioRecordingConfig *AudioRecordingConfig `json:"evaluationAudioRecordingConfig,omitempty"`
// MetricAnalysisSettings: Optional. Settings to describe the conversation data
// collection behaviors for the LLM analysis pipeline for the app.
MetricAnalysisSettings *MetricAnalysisSettings `json:"metricAnalysisSettings,omitempty"`
// RedactionConfig: Optional. Configuration for how sensitive data should be
// redacted.
RedactionConfig *RedactionConfig `json:"redactionConfig,omitempty"`
// UnredactedAudioRecordingConfig: Optional. Configures recording of unredacted
// audio. Use this to maintain a raw backup with restricted access when audio
// redaction is enabled, typically for auditing or monitoring purposes.
UnredactedAudioRecordingConfig *AudioRecordingConfig `json:"unredactedAudioRecordingConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "AudioRecordingConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AudioRecordingConfig") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
LoggingSettings: Settings to describe the logging behaviors for the app.
func (LoggingSettings) MarshalJSON ¶
func (s LoggingSettings) MarshalJSON() ([]byte, error)
type McpTool ¶
type McpTool struct {
// ApiAuthentication: Optional. Authentication information required to execute
// the tool against the MCP server. For bearer token authentication, the token
// applies only to tool execution, not to listing tools. This requires that
// tools can be listed without authentication.
ApiAuthentication *ApiAuthentication `json:"apiAuthentication,omitempty"`
// CustomHeaders: Optional. The custom headers to send in the request to the
// MCP server. The values must be in the format `$context.variables.` and can
// be set in the session variables. See
// https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
// for more details.
CustomHeaders map[string]string `json:"customHeaders,omitempty"`
// Description: Optional. The description of the MCP tool.
Description string `json:"description,omitempty"`
// InputSchema: Optional. The schema of the input arguments of the MCP tool.
InputSchema *Schema `json:"inputSchema,omitempty"`
// Name: Required. The name of the MCP tool.
Name string `json:"name,omitempty"`
// OutputSchema: Optional. The schema of the output arguments of the MCP tool.
OutputSchema *Schema `json:"outputSchema,omitempty"`
// ServerAddress: Required. The server address of the MCP server, e.g.,
// "https://example.com/mcp/". If the server is built with the MCP SDK, the url
// should be suffixed with "/mcp/". Only Streamable HTTP transport based
// servers are supported. This is the same as the server_address in the
// McpToolset. See
// https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
// for more details.
ServerAddress string `json:"serverAddress,omitempty"`
// ServiceDirectoryConfig: Optional. Service Directory configuration for
// VPC-SC, used to resolve service names within a perimeter.
ServiceDirectoryConfig *ServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"`
// TlsConfig: Optional. The TLS configuration. Includes the custom server
// certificates that the client should trust.
TlsConfig *TlsConfig `json:"tlsConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApiAuthentication") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ApiAuthentication") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
McpTool: An MCP tool. See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for more details.
func (McpTool) MarshalJSON ¶
type McpToolset ¶
type McpToolset struct {
// ApiAuthentication: Optional. Authentication information required to access
// tools and execute a tool against the MCP server. For bearer token
// authentication, the token applies only to tool execution, not to listing
// tools. This requires that tools can be listed without authentication.
ApiAuthentication *ApiAuthentication `json:"apiAuthentication,omitempty"`
// CustomHeaders: Optional. The custom headers to send in the request to the
// MCP server. The values must be in the format `$context.variables.` and can
// be set in the session variables. See
// https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
// for more details.
CustomHeaders map[string]string `json:"customHeaders,omitempty"`
// ServerAddress: Required. The address of the MCP server, for example,
// "https://example.com/mcp/". If the server is built with the MCP SDK, the url
// should be suffixed with "/mcp/". Only Streamable HTTP transport based
// servers are supported. See
// https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
// for more details.
ServerAddress string `json:"serverAddress,omitempty"`
// ServiceDirectoryConfig: Optional. Service Directory configuration for
// VPC-SC, used to resolve service names within a perimeter.
ServiceDirectoryConfig *ServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"`
// TlsConfig: Optional. The TLS configuration. Includes the custom server
// certificates that the client should trust.
TlsConfig *TlsConfig `json:"tlsConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApiAuthentication") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ApiAuthentication") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
McpToolset: A toolset that contains a list of tools that are offered by the MCP server.
func (McpToolset) MarshalJSON ¶
func (s McpToolset) MarshalJSON() ([]byte, error)
type Message ¶
type Message struct {
// Chunks: Optional. Content of the message as a series of chunks.
Chunks []*Chunk `json:"chunks,omitempty"`
// EventTime: Optional. Timestamp when the message was sent or received. Should
// not be used if the message is part of an example.
EventTime string `json:"eventTime,omitempty"`
// Role: Optional. The role within the conversation, e.g., user, agent.
Role string `json:"role,omitempty"`
// ForceSendFields is a list of field names (e.g. "Chunks") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Chunks") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Message: A message within a conversation.
func (Message) MarshalJSON ¶
type MetricAnalysisSettings ¶
type MetricAnalysisSettings struct {
// LlmMetricsOptedOut: Optional. Whether to collect conversation data for llm
// analysis metrics. If true, conversation data will not be collected for llm
// analysis metrics; otherwise, conversation data will be collected.
LlmMetricsOptedOut bool `json:"llmMetricsOptedOut,omitempty"`
// ForceSendFields is a list of field names (e.g. "LlmMetricsOptedOut") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "LlmMetricsOptedOut") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
MetricAnalysisSettings: Settings to describe the conversation data collection behaviors for LLM analysis metrics pipeline.
func (MetricAnalysisSettings) MarshalJSON ¶
func (s MetricAnalysisSettings) MarshalJSON() ([]byte, error)
type MockConfig ¶ added in v0.276.0
type MockConfig struct {
// MockedToolCalls: Optional. All tool calls to mock for the duration of the
// session.
MockedToolCalls []*MockedToolCall `json:"mockedToolCalls,omitempty"`
// UnmatchedToolCallBehavior: Required. Beavhior for tool calls that don't
// match any args patterns in mocked_tool_calls.
//
// Possible values:
// "UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED" - Default value. This value is
// unused.
// "FAIL" - Throw an error for any tool calls that don't match a mock
// expected input pattern.
// "PASS_THROUGH" - For unmatched tool calls, pass the tool call through to
// real tool.
UnmatchedToolCallBehavior string `json:"unmatchedToolCallBehavior,omitempty"`
// ForceSendFields is a list of field names (e.g. "MockedToolCalls") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MockedToolCalls") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
MockConfig: Mock tool calls configuration for the session.
func (MockConfig) MarshalJSON ¶ added in v0.276.0
func (s MockConfig) MarshalJSON() ([]byte, error)
type MockedToolCall ¶ added in v0.276.0
type MockedToolCall struct {
// ExpectedArgsPattern: Required. A pattern to match against the args / inputs
// of all dispatched tool calls. If the tool call inputs match this pattern,
// then mock output will be returned.
ExpectedArgsPattern googleapi.RawMessage `json:"expectedArgsPattern,omitempty"`
// MockResponse: Optional. The mock response / output to return if the tool
// call args / inputs match the pattern.
MockResponse googleapi.RawMessage `json:"mockResponse,omitempty"`
// Tool: Optional. Deprecated. Use tool_identifier instead.
Tool string `json:"tool,omitempty"`
// ToolId: Optional. The name of the tool to mock. Format:
// `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
ToolId string `json:"toolId,omitempty"`
// Toolset: Optional. The toolset to mock.
Toolset *ToolsetTool `json:"toolset,omitempty"`
// ForceSendFields is a list of field names (e.g. "ExpectedArgsPattern") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ExpectedArgsPattern") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
MockedToolCall: A mocked tool call. Expresses the target tool + a pattern to match against that tool's args / inputs. If the pattern matches, then the mock response will be returned.
func (MockedToolCall) MarshalJSON ¶ added in v0.276.0
func (s MockedToolCall) MarshalJSON() ([]byte, error)
type ModelSettings ¶
type ModelSettings struct {
// Model: Optional. The LLM model that the agent should use. If not set, the
// agent will inherit the model from its parent agent.
Model string `json:"model,omitempty"`
// Temperature: Optional. If set, this temperature will be used for the LLM
// model. Temperature controls the randomness of the model's responses. Lower
// temperatures produce responses that are more predictable. Higher
// temperatures produce responses that are more creative.
Temperature float64 `json:"temperature,omitempty"`
// ForceSendFields is a list of field names (e.g. "Model") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Model") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ModelSettings: Model settings contains various configurations for the LLM model.
func (ModelSettings) MarshalJSON ¶
func (s ModelSettings) MarshalJSON() ([]byte, error)
func (*ModelSettings) UnmarshalJSON ¶
func (s *ModelSettings) UnmarshalJSON(data []byte) error
type OAuthConfig ¶
type OAuthConfig struct {
// ClientId: Required. The client ID from the OAuth provider.
ClientId string `json:"clientId,omitempty"`
// ClientSecretVersion: Required. The name of the SecretManager secret version
// resource storing the client secret. Format:
// `projects/{project}/secrets/{secret}/versions/{version}` Note: You should
// grant `roles/secretmanager.secretAccessor` role to the CES service agent
// `service-@gcp-sa-ces.iam.gserviceaccount.com`.
ClientSecretVersion string `json:"clientSecretVersion,omitempty"`
// OauthGrantType: Required. OAuth grant types.
//
// Possible values:
// "OAUTH_GRANT_TYPE_UNSPECIFIED" - Unspecified. Defaults to
// CLIENT_CREDENTIAL.
// "CLIENT_CREDENTIAL" - Represents the [client credential
// flow](https://oauth.net/2/grant-types/client-credentials).
OauthGrantType string `json:"oauthGrantType,omitempty"`
// Scopes: Optional. The OAuth scopes to grant.
Scopes []string `json:"scopes,omitempty"`
// TokenEndpoint: Required. The token endpoint in the OAuth provider to
// exchange for an access token.
TokenEndpoint string `json:"tokenEndpoint,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClientId") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ClientId") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OAuthConfig: Configurations for authentication with OAuth.
func (OAuthConfig) MarshalJSON ¶
func (s OAuthConfig) MarshalJSON() ([]byte, error)
type Omnichannel ¶
type Omnichannel struct {
// CreateTime: Output only. Timestamp when the omnichannel resource was
// created.
CreateTime string `json:"createTime,omitempty"`
// Description: Optional. Human-readable description of the omnichannel
// resource.
Description string `json:"description,omitempty"`
// DisplayName: Required. Display name of the omnichannel resource.
DisplayName string `json:"displayName,omitempty"`
// Etag: Output only. Etag used to ensure the object hasn't changed during a
// read-modify-write operation.
Etag string `json:"etag,omitempty"`
// IntegrationConfig: Optional. The integration config for the omnichannel
// resource.
IntegrationConfig *OmnichannelIntegrationConfig `json:"integrationConfig,omitempty"`
// Name: Identifier. The unique identifier of the omnichannel resource. Format:
// `projects/{project}/locations/{location}/omnichannels/{omnichannel}`
Name string `json:"name,omitempty"`
// UpdateTime: Output only. Timestamp when the omnichannel resource was last
// updated.
UpdateTime string `json:"updateTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Omnichannel: Represents an Omnichannel resource.
func (Omnichannel) MarshalJSON ¶
func (s Omnichannel) MarshalJSON() ([]byte, error)
type OmnichannelIntegrationConfig ¶
type OmnichannelIntegrationConfig struct {
// ChannelConfigs: Optional. Various of configuration for handling App events.
ChannelConfigs map[string]OmnichannelIntegrationConfigChannelConfig `json:"channelConfigs,omitempty"`
// RoutingConfigs: Optional. The key of routing_configs is a key of
// `app_configs`, value is a `RoutingConfig`, which contains subscriber's key.
RoutingConfigs map[string]OmnichannelIntegrationConfigRoutingConfig `json:"routingConfigs,omitempty"`
// SubscriberConfigs: Optional. Various of subscribers configs.
SubscriberConfigs map[string]OmnichannelIntegrationConfigSubscriberConfig `json:"subscriberConfigs,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChannelConfigs") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChannelConfigs") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OmnichannelIntegrationConfig: OmnichannelIntegrationConfig contains all App integration configs.
func (OmnichannelIntegrationConfig) MarshalJSON ¶
func (s OmnichannelIntegrationConfig) MarshalJSON() ([]byte, error)
type OmnichannelIntegrationConfigCesAppConfig ¶
type OmnichannelIntegrationConfigCesAppConfig struct {
// App: The unique identifier of the CES app. Format:
// `projects/{project}/locations/{location}/apps/{app}`
App string `json:"app,omitempty"`
// ForceSendFields is a list of field names (e.g. "App") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "App") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OmnichannelIntegrationConfigCesAppConfig: Configs for CES app.
func (OmnichannelIntegrationConfigCesAppConfig) MarshalJSON ¶
func (s OmnichannelIntegrationConfigCesAppConfig) MarshalJSON() ([]byte, error)
type OmnichannelIntegrationConfigChannelConfig ¶
type OmnichannelIntegrationConfigChannelConfig struct {
// WhatsappConfig: WhatsApp config.
WhatsappConfig *OmnichannelIntegrationConfigWhatsappConfig `json:"whatsappConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "WhatsappConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "WhatsappConfig") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OmnichannelIntegrationConfigChannelConfig: ChannelConfig contains config for various of app integration.
func (OmnichannelIntegrationConfigChannelConfig) MarshalJSON ¶
func (s OmnichannelIntegrationConfigChannelConfig) MarshalJSON() ([]byte, error)
type OmnichannelIntegrationConfigRoutingConfig ¶
type OmnichannelIntegrationConfigRoutingConfig struct {
// SubscriberKey: The key of the subscriber.
SubscriberKey string `json:"subscriberKey,omitempty"`
// ForceSendFields is a list of field names (e.g. "SubscriberKey") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SubscriberKey") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OmnichannelIntegrationConfigRoutingConfig: Routing config specify how/who to route app events to a subscriber.
func (OmnichannelIntegrationConfigRoutingConfig) MarshalJSON ¶
func (s OmnichannelIntegrationConfigRoutingConfig) MarshalJSON() ([]byte, error)
type OmnichannelIntegrationConfigSubscriberConfig ¶
type OmnichannelIntegrationConfigSubscriberConfig struct {
// CesAppConfig: Ces app config.
CesAppConfig *OmnichannelIntegrationConfigCesAppConfig `json:"cesAppConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "CesAppConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CesAppConfig") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OmnichannelIntegrationConfigSubscriberConfig: Configs of subscribers.
func (OmnichannelIntegrationConfigSubscriberConfig) MarshalJSON ¶
func (s OmnichannelIntegrationConfigSubscriberConfig) MarshalJSON() ([]byte, error)
type OmnichannelIntegrationConfigWhatsappConfig ¶
type OmnichannelIntegrationConfigWhatsappConfig struct {
// MetaBusinessPortfolioId: The Meta Business Portfolio (MBP) ID.
// https://www.facebook.com/business/help/1710077379203657
MetaBusinessPortfolioId string `json:"metaBusinessPortfolioId,omitempty"`
// PhoneNumber: The phone number used for sending/receiving messages.
PhoneNumber string `json:"phoneNumber,omitempty"`
// PhoneNumberId: The Phone Number ID associated with the WhatsApp Business
// Account.
PhoneNumberId string `json:"phoneNumberId,omitempty"`
// WebhookVerifyToken: The verify token configured in the Meta App Dashboard
// for webhook verification.
WebhookVerifyToken string `json:"webhookVerifyToken,omitempty"`
// WhatsappBusinessAccountId: The customer's WhatsApp Business Account (WABA)
// ID.
WhatsappBusinessAccountId string `json:"whatsappBusinessAccountId,omitempty"`
// WhatsappBusinessToken: The access token for authenticating API calls to the
// WhatsApp Cloud API.
// https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens
WhatsappBusinessToken string `json:"whatsappBusinessToken,omitempty"`
// ForceSendFields is a list of field names (e.g. "MetaBusinessPortfolioId") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MetaBusinessPortfolioId") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OmnichannelIntegrationConfigWhatsappConfig: How Omnichannel should receive/reply events from WhatsApp.
func (OmnichannelIntegrationConfigWhatsappConfig) MarshalJSON ¶
func (s OmnichannelIntegrationConfigWhatsappConfig) MarshalJSON() ([]byte, error)
type OmnichannelOperationMetadata ¶
type OmnichannelOperationMetadata struct {
// CreateTime: Output only. The time the operation was created.
CreateTime string `json:"createTime,omitempty"`
// EndTime: Output only. The time the operation finished running.
EndTime string `json:"endTime,omitempty"`
// RequestedCancellation: Output only. Identifies whether the user has
// requested cancellation of the operation.
RequestedCancellation bool `json:"requestedCancellation,omitempty"`
// StatusMessage: Output only. Human-readable status of the operation, if any.
StatusMessage string `json:"statusMessage,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OmnichannelOperationMetadata: Represents the metadata of the long-running operation.
func (OmnichannelOperationMetadata) MarshalJSON ¶
func (s OmnichannelOperationMetadata) MarshalJSON() ([]byte, error)
type OpenApiTool ¶
type OpenApiTool struct {
// ApiAuthentication: Optional. Authentication information required by the API.
ApiAuthentication *ApiAuthentication `json:"apiAuthentication,omitempty"`
// Description: Optional. The description of the tool. If not provided, the
// description of the tool will be derived from the OpenAPI schema, from
// `operation.description` or `operation.summary`.
Description string `json:"description,omitempty"`
// IgnoreUnknownFields: Optional. If true, the agent will ignore unknown fields
// in the API response.
IgnoreUnknownFields bool `json:"ignoreUnknownFields,omitempty"`
// Name: Optional. The name of the tool. If not provided, the name of the tool
// will be derived from the OpenAPI schema, from `operation.operationId`.
Name string `json:"name,omitempty"`
// OpenApiSchema: Required. The OpenAPI schema in JSON or YAML format.
OpenApiSchema string `json:"openApiSchema,omitempty"`
// ServiceDirectoryConfig: Optional. Service Directory configuration.
ServiceDirectoryConfig *ServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"`
// TlsConfig: Optional. The TLS configuration. Includes the custom server
// certificates that the client will trust.
TlsConfig *TlsConfig `json:"tlsConfig,omitempty"`
// Url: Optional. The server URL of the Open API schema. This field is only set
// in tools in the environment dependencies during the export process if the
// schema contains a server url. During the import process, if this url is
// present in the environment dependencies and the schema has the $env_var
// placeholder, it will replace the placeholder in the schema.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApiAuthentication") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ApiAuthentication") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OpenApiTool: A remote API tool defined by an OpenAPI schema.
func (OpenApiTool) MarshalJSON ¶
func (s OpenApiTool) MarshalJSON() ([]byte, error)
type OpenApiToolset ¶
type OpenApiToolset struct {
// ApiAuthentication: Optional. Authentication information required by the API.
ApiAuthentication *ApiAuthentication `json:"apiAuthentication,omitempty"`
// IgnoreUnknownFields: Optional. If true, the agent will ignore unknown fields
// in the API response for all operations defined in the OpenAPI schema.
IgnoreUnknownFields bool `json:"ignoreUnknownFields,omitempty"`
// OpenApiSchema: Required. The OpenAPI schema of the toolset.
OpenApiSchema string `json:"openApiSchema,omitempty"`
// ServiceDirectoryConfig: Optional. Service Directory configuration.
ServiceDirectoryConfig *ServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"`
// TlsConfig: Optional. The TLS configuration. Includes the custom server
// certificates
TlsConfig *TlsConfig `json:"tlsConfig,omitempty"`
// Url: Optional. The server URL of the Open API schema. This field is only set
// in toolsets in the environment dependencies during the export process if the
// schema contains a server url. During the import process, if this url is
// present in the environment dependencies and the schema has the $env_var
// placeholder, it will replace the placeholder in the schema.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApiAuthentication") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ApiAuthentication") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OpenApiToolset: A toolset that contains a list of tools that are defined by an OpenAPI schema.
func (OpenApiToolset) MarshalJSON ¶
func (s OpenApiToolset) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct {
// Done: If the value is `false`, it means the operation is still in progress.
// If `true`, the operation is completed, and either `error` or `response` is
// available.
Done bool `json:"done,omitempty"`
// Error: The error result of the operation in case of failure or cancellation.
Error *Status `json:"error,omitempty"`
// Metadata: Service-specific metadata associated with the operation. It
// typically contains progress information and common metadata such as create
// time. Some services might not provide such metadata. Any method that returns
// a long-running operation should document the metadata type, if any.
Metadata googleapi.RawMessage `json:"metadata,omitempty"`
// Name: The server-assigned name, which is only unique within the same service
// that originally returns it. If you use the default HTTP mapping, the `name`
// should be a resource name ending with `operations/{unique_id}`.
Name string `json:"name,omitempty"`
// Response: The normal, successful response of the operation. If the original
// method returns no data on success, such as `Delete`, the response is
// `google.protobuf.Empty`. If the original method is standard
// `Get`/`Create`/`Update`, the response should be the resource. For other
// methods, the response should have the type `XxxResponse`, where `Xxx` is the
// original method name. For example, if the original method name is
// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
Response googleapi.RawMessage `json:"response,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Done") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Operation: This resource represents a long-running operation that is the result of a network API call.
func (Operation) MarshalJSON ¶
type OperationMetadata ¶
type OperationMetadata struct {
// CreateTime: Output only. The time the operation was created.
CreateTime string `json:"createTime,omitempty"`
// EndTime: Output only. The time the operation finished running.
EndTime string `json:"endTime,omitempty"`
// RequestedCancellation: Output only. Identifies whether the user has
// requested cancellation of the operation. Operations that have been cancelled
// successfully have google.longrunning.Operation.error value with a
// google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
RequestedCancellation bool `json:"requestedCancellation,omitempty"`
// StatusMessage: Output only. Human-readable status of the operation, if any.
StatusMessage string `json:"statusMessage,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OperationMetadata: Represents the metadata of the long-running operation.
func (OperationMetadata) MarshalJSON ¶
func (s OperationMetadata) MarshalJSON() ([]byte, error)
type OutputAudioConfig ¶
type OutputAudioConfig struct {
// AudioEncoding: Required. The encoding of the output audio data.
//
// Possible values:
// "AUDIO_ENCODING_UNSPECIFIED" - Unspecified audio encoding.
// "LINEAR16" - 16-bit linear PCM audio encoding.
// "MULAW" - 8-bit samples that compand 14-bit audio samples using G.711
// PCMU/mu-law.
// "ALAW" - 8-bit samples that compand 14-bit audio samples using G.711
// PCMU/A-law.
AudioEncoding string `json:"audioEncoding,omitempty"`
// SampleRateHertz: Required. The sample rate (in Hertz) of the output audio
// data.
SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
OutputAudioConfig: OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses.
func (OutputAudioConfig) MarshalJSON ¶
func (s OutputAudioConfig) MarshalJSON() ([]byte, error)
type ProjectsLocationsAppsAgentsCreateCall ¶
type ProjectsLocationsAppsAgentsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsAgentsCreateCall) AgentId ¶
func (c *ProjectsLocationsAppsAgentsCreateCall) AgentId(agentId string) *ProjectsLocationsAppsAgentsCreateCall
AgentId sets the optional parameter "agentId": The ID to use for the agent, which will become the final component of the agent's resource name. If not provided, a unique ID will be automatically assigned for the agent.
func (*ProjectsLocationsAppsAgentsCreateCall) Context ¶
func (c *ProjectsLocationsAppsAgentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsAgentsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsAgentsCreateCall) Do ¶
func (c *ProjectsLocationsAppsAgentsCreateCall) Do(opts ...googleapi.CallOption) (*Agent, error)
Do executes the "ces.projects.locations.apps.agents.create" call. Any non-2xx status code is an error. Response headers are in either *Agent.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsAgentsCreateCall) Fields ¶
func (c *ProjectsLocationsAppsAgentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsAgentsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsAgentsCreateCall) Header ¶
func (c *ProjectsLocationsAppsAgentsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsAgentsDeleteCall ¶
type ProjectsLocationsAppsAgentsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsAgentsDeleteCall) Context ¶
func (c *ProjectsLocationsAppsAgentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsAgentsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsAgentsDeleteCall) Do ¶
func (c *ProjectsLocationsAppsAgentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "ces.projects.locations.apps.agents.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsAgentsDeleteCall) Etag ¶
func (c *ProjectsLocationsAppsAgentsDeleteCall) Etag(etag string) *ProjectsLocationsAppsAgentsDeleteCall
Etag sets the optional parameter "etag": The current etag of the agent. If an etag is not provided, the deletion will overwrite any concurrent changes. If an etag is provided and does not match the current etag of the agent, deletion will be blocked and an ABORTED error will be returned.
func (*ProjectsLocationsAppsAgentsDeleteCall) Fields ¶
func (c *ProjectsLocationsAppsAgentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsAgentsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsAgentsDeleteCall) Force ¶
func (c *ProjectsLocationsAppsAgentsDeleteCall) Force(force bool) *ProjectsLocationsAppsAgentsDeleteCall
Force sets the optional parameter "force": Indicates whether to forcefully delete the agent, even if it is still referenced by other app/agents/examples. * If `force = false`, the deletion fails if other agents/examples reference it. * If `force = true`, delete the agent and remove it from all referencing apps/agents/examples.
func (*ProjectsLocationsAppsAgentsDeleteCall) Header ¶
func (c *ProjectsLocationsAppsAgentsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsAgentsGetCall ¶
type ProjectsLocationsAppsAgentsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsAgentsGetCall) Context ¶
func (c *ProjectsLocationsAppsAgentsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsAgentsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsAgentsGetCall) Do ¶
func (c *ProjectsLocationsAppsAgentsGetCall) Do(opts ...googleapi.CallOption) (*Agent, error)
Do executes the "ces.projects.locations.apps.agents.get" call. Any non-2xx status code is an error. Response headers are in either *Agent.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsAgentsGetCall) Fields ¶
func (c *ProjectsLocationsAppsAgentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsAgentsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsAgentsGetCall) Header ¶
func (c *ProjectsLocationsAppsAgentsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsAgentsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsAgentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsAgentsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsAppsAgentsListCall ¶
type ProjectsLocationsAppsAgentsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsAgentsListCall) Context ¶
func (c *ProjectsLocationsAppsAgentsListCall) Context(ctx context.Context) *ProjectsLocationsAppsAgentsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsAgentsListCall) Do ¶
func (c *ProjectsLocationsAppsAgentsListCall) Do(opts ...googleapi.CallOption) (*ListAgentsResponse, error)
Do executes the "ces.projects.locations.apps.agents.list" call. Any non-2xx status code is an error. Response headers are in either *ListAgentsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsAgentsListCall) Fields ¶
func (c *ProjectsLocationsAppsAgentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsAgentsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsAgentsListCall) Filter ¶
func (c *ProjectsLocationsAppsAgentsListCall) Filter(filter string) *ProjectsLocationsAppsAgentsListCall
Filter sets the optional parameter "filter": Filter to be applied when listing the agents. See https://google.aip.dev/160 for more details.
func (*ProjectsLocationsAppsAgentsListCall) Header ¶
func (c *ProjectsLocationsAppsAgentsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsAgentsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsAgentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsAgentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsAppsAgentsListCall) OrderBy ¶
func (c *ProjectsLocationsAppsAgentsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsAgentsListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. Only "name" and "create_time" is supported. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsAppsAgentsListCall) PageSize ¶
func (c *ProjectsLocationsAppsAgentsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsAgentsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsAppsAgentsListCall) PageToken ¶
func (c *ProjectsLocationsAppsAgentsListCall) PageToken(pageToken string) *ProjectsLocationsAppsAgentsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list AgentService.ListAgents call.
func (*ProjectsLocationsAppsAgentsListCall) Pages ¶
func (c *ProjectsLocationsAppsAgentsListCall) Pages(ctx context.Context, f func(*ListAgentsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsAppsAgentsPatchCall ¶
type ProjectsLocationsAppsAgentsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsAgentsPatchCall) Context ¶
func (c *ProjectsLocationsAppsAgentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsAgentsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsAgentsPatchCall) Do ¶
func (c *ProjectsLocationsAppsAgentsPatchCall) Do(opts ...googleapi.CallOption) (*Agent, error)
Do executes the "ces.projects.locations.apps.agents.patch" call. Any non-2xx status code is an error. Response headers are in either *Agent.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsAgentsPatchCall) Fields ¶
func (c *ProjectsLocationsAppsAgentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsAgentsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsAgentsPatchCall) Header ¶
func (c *ProjectsLocationsAppsAgentsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsAgentsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsAppsAgentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsAgentsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated.
type ProjectsLocationsAppsAgentsService ¶
type ProjectsLocationsAppsAgentsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAppsAgentsService ¶
func NewProjectsLocationsAppsAgentsService(s *Service) *ProjectsLocationsAppsAgentsService
func (*ProjectsLocationsAppsAgentsService) Create ¶
func (r *ProjectsLocationsAppsAgentsService) Create(parent string, agent *Agent) *ProjectsLocationsAppsAgentsCreateCall
Create: Creates a new agent in the given app.
- parent: The resource name of the app to create an agent in.
func (*ProjectsLocationsAppsAgentsService) Delete ¶
func (r *ProjectsLocationsAppsAgentsService) Delete(name string) *ProjectsLocationsAppsAgentsDeleteCall
Delete: Deletes the specified agent.
- name: The resource name of the agent to delete.
func (*ProjectsLocationsAppsAgentsService) Get ¶
func (r *ProjectsLocationsAppsAgentsService) Get(name string) *ProjectsLocationsAppsAgentsGetCall
Get: Gets details of the specified agent.
- name: The resource name of the agent to retrieve.
func (*ProjectsLocationsAppsAgentsService) List ¶
func (r *ProjectsLocationsAppsAgentsService) List(parent string) *ProjectsLocationsAppsAgentsListCall
List: Lists agents in the given app.
- parent: The resource name of the app to list agents from.
func (*ProjectsLocationsAppsAgentsService) Patch ¶
func (r *ProjectsLocationsAppsAgentsService) Patch(nameid string, agent *Agent) *ProjectsLocationsAppsAgentsPatchCall
Patch: Updates the specified agent.
- name: Identifier. The unique identifier of the agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`.
type ProjectsLocationsAppsChangelogsGetCall ¶
type ProjectsLocationsAppsChangelogsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsChangelogsGetCall) Context ¶
func (c *ProjectsLocationsAppsChangelogsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsChangelogsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsChangelogsGetCall) Do ¶
func (c *ProjectsLocationsAppsChangelogsGetCall) Do(opts ...googleapi.CallOption) (*Changelog, error)
Do executes the "ces.projects.locations.apps.changelogs.get" call. Any non-2xx status code is an error. Response headers are in either *Changelog.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsChangelogsGetCall) Fields ¶
func (c *ProjectsLocationsAppsChangelogsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsChangelogsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsChangelogsGetCall) Header ¶
func (c *ProjectsLocationsAppsChangelogsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsChangelogsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsChangelogsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsChangelogsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsAppsChangelogsListCall ¶
type ProjectsLocationsAppsChangelogsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsChangelogsListCall) Context ¶
func (c *ProjectsLocationsAppsChangelogsListCall) Context(ctx context.Context) *ProjectsLocationsAppsChangelogsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsChangelogsListCall) Do ¶
func (c *ProjectsLocationsAppsChangelogsListCall) Do(opts ...googleapi.CallOption) (*ListChangelogsResponse, error)
Do executes the "ces.projects.locations.apps.changelogs.list" call. Any non-2xx status code is an error. Response headers are in either *ListChangelogsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsChangelogsListCall) Fields ¶
func (c *ProjectsLocationsAppsChangelogsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsChangelogsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsChangelogsListCall) Filter ¶
func (c *ProjectsLocationsAppsChangelogsListCall) Filter(filter string) *ProjectsLocationsAppsChangelogsListCall
Filter sets the optional parameter "filter": Filter to be applied when listing the changelogs. See https://google.aip.dev/160 for more details. The filter string can be used to filter by `action`, `resource_type`, `resource_name`, `author`, and `create_time`. The `:` comparator can be used for case-insensitive partial matching on string fields, while `=` performs an exact case-sensitive match. Examples: * `action:update` (case-insensitive partial match) * `action=/proxy/https/pkg.go.dev/google.golang.org/api@v0.278.0/ces/"Create" (case-sensitive exact match) * `resource_type:agent` * `resource_name:my-agent` * `author:me@example.com` * `create_time > "2025-01-01T00:00:00Z" * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool`
func (*ProjectsLocationsAppsChangelogsListCall) Header ¶
func (c *ProjectsLocationsAppsChangelogsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsChangelogsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsChangelogsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsChangelogsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsAppsChangelogsListCall) OrderBy ¶
func (c *ProjectsLocationsAppsChangelogsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsChangelogsListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. Only "name" and "create_time" is supported. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsAppsChangelogsListCall) PageSize ¶
func (c *ProjectsLocationsAppsChangelogsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsChangelogsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsAppsChangelogsListCall) PageToken ¶
func (c *ProjectsLocationsAppsChangelogsListCall) PageToken(pageToken string) *ProjectsLocationsAppsChangelogsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list AgentService.ListChangelogs call.
func (*ProjectsLocationsAppsChangelogsListCall) Pages ¶
func (c *ProjectsLocationsAppsChangelogsListCall) Pages(ctx context.Context, f func(*ListChangelogsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsAppsChangelogsService ¶
type ProjectsLocationsAppsChangelogsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAppsChangelogsService ¶
func NewProjectsLocationsAppsChangelogsService(s *Service) *ProjectsLocationsAppsChangelogsService
func (*ProjectsLocationsAppsChangelogsService) Get ¶
func (r *ProjectsLocationsAppsChangelogsService) Get(name string) *ProjectsLocationsAppsChangelogsGetCall
Get: Gets the specified changelog.
- name: The resource name of the changelog to retrieve.
func (*ProjectsLocationsAppsChangelogsService) List ¶
func (r *ProjectsLocationsAppsChangelogsService) List(parent string) *ProjectsLocationsAppsChangelogsListCall
List: Lists the changelogs of the specified app.
- parent: The resource name of the app to list changelogs from.
type ProjectsLocationsAppsConversationsBatchDeleteCall ¶
type ProjectsLocationsAppsConversationsBatchDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsConversationsBatchDeleteCall) Context ¶
func (c *ProjectsLocationsAppsConversationsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsConversationsBatchDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsConversationsBatchDeleteCall) Do ¶
func (c *ProjectsLocationsAppsConversationsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "ces.projects.locations.apps.conversations.batchDelete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsConversationsBatchDeleteCall) Fields ¶
func (c *ProjectsLocationsAppsConversationsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsConversationsBatchDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsConversationsBatchDeleteCall) Header ¶
func (c *ProjectsLocationsAppsConversationsBatchDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsConversationsDeleteCall ¶
type ProjectsLocationsAppsConversationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsConversationsDeleteCall) Context ¶
func (c *ProjectsLocationsAppsConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsConversationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsConversationsDeleteCall) Do ¶
func (c *ProjectsLocationsAppsConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "ces.projects.locations.apps.conversations.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsConversationsDeleteCall) Fields ¶
func (c *ProjectsLocationsAppsConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsConversationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsConversationsDeleteCall) Header ¶
func (c *ProjectsLocationsAppsConversationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsConversationsDeleteCall) Source ¶
func (c *ProjectsLocationsAppsConversationsDeleteCall) Source(source string) *ProjectsLocationsAppsConversationsDeleteCall
Source sets the optional parameter "source": Indicate the source of the conversation. If not set, Source.Live will be applied by default.
Possible values:
"SOURCE_UNSPECIFIED" - Unspecified source. "LIVE" - The conversation is from the live end user. "SIMULATOR" - The conversation is from the simulator. "EVAL" - The conversation is from the evaluation. "AGENT_TOOL" - The conversation is from an agent tool. Agent tool runs the
agent in a separate session, which is persisted for testing and debugging purposes.
type ProjectsLocationsAppsConversationsGetCall ¶
type ProjectsLocationsAppsConversationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsConversationsGetCall) Context ¶
func (c *ProjectsLocationsAppsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsConversationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsConversationsGetCall) Do ¶
func (c *ProjectsLocationsAppsConversationsGetCall) Do(opts ...googleapi.CallOption) (*Conversation, error)
Do executes the "ces.projects.locations.apps.conversations.get" call. Any non-2xx status code is an error. Response headers are in either *Conversation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsConversationsGetCall) Fields ¶
func (c *ProjectsLocationsAppsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsConversationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsConversationsGetCall) Header ¶
func (c *ProjectsLocationsAppsConversationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsConversationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsConversationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsAppsConversationsGetCall) Source ¶
func (c *ProjectsLocationsAppsConversationsGetCall) Source(source string) *ProjectsLocationsAppsConversationsGetCall
Source sets the optional parameter "source": Indicate the source of the conversation. If not set, all source will be searched.
Possible values:
"SOURCE_UNSPECIFIED" - Unspecified source. "LIVE" - The conversation is from the live end user. "SIMULATOR" - The conversation is from the simulator. "EVAL" - The conversation is from the evaluation. "AGENT_TOOL" - The conversation is from an agent tool. Agent tool runs the
agent in a separate session, which is persisted for testing and debugging purposes.
type ProjectsLocationsAppsConversationsListCall ¶
type ProjectsLocationsAppsConversationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsConversationsListCall) Context ¶
func (c *ProjectsLocationsAppsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsAppsConversationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsConversationsListCall) Do ¶
func (c *ProjectsLocationsAppsConversationsListCall) Do(opts ...googleapi.CallOption) (*ListConversationsResponse, error)
Do executes the "ces.projects.locations.apps.conversations.list" call. Any non-2xx status code is an error. Response headers are in either *ListConversationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsConversationsListCall) Fields ¶
func (c *ProjectsLocationsAppsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsConversationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsConversationsListCall) Filter ¶
func (c *ProjectsLocationsAppsConversationsListCall) Filter(filter string) *ProjectsLocationsAppsConversationsListCall
Filter sets the optional parameter "filter": Filter to be applied when listing the conversations. See https://google.aip.dev/160 for more details.
func (*ProjectsLocationsAppsConversationsListCall) Header ¶
func (c *ProjectsLocationsAppsConversationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsConversationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsConversationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsAppsConversationsListCall) PageSize ¶
func (c *ProjectsLocationsAppsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsConversationsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsAppsConversationsListCall) PageToken ¶
func (c *ProjectsLocationsAppsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsAppsConversationsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list AgentService.ListConversations call.
func (*ProjectsLocationsAppsConversationsListCall) Pages ¶
func (c *ProjectsLocationsAppsConversationsListCall) Pages(ctx context.Context, f func(*ListConversationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*ProjectsLocationsAppsConversationsListCall) Source ¶
func (c *ProjectsLocationsAppsConversationsListCall) Source(source string) *ProjectsLocationsAppsConversationsListCall
Source sets the optional parameter "source": Indicate the source of the conversation. If not set, Source.Live will be applied by default. Will be deprecated in favor of `sources` field.
Possible values:
"SOURCE_UNSPECIFIED" - Unspecified source. "LIVE" - The conversation is from the live end user. "SIMULATOR" - The conversation is from the simulator. "EVAL" - The conversation is from the evaluation. "AGENT_TOOL" - The conversation is from an agent tool. Agent tool runs the
agent in a separate session, which is persisted for testing and debugging purposes.
func (*ProjectsLocationsAppsConversationsListCall) Sources ¶ added in v0.267.0
func (c *ProjectsLocationsAppsConversationsListCall) Sources(sources ...string) *ProjectsLocationsAppsConversationsListCall
Sources sets the optional parameter "sources": Indicate the sources of the conversations. If not set, all available sources will be applied by default.
Possible values:
"SOURCE_UNSPECIFIED" - Unspecified source. "LIVE" - The conversation is from the live end user. "SIMULATOR" - The conversation is from the simulator. "EVAL" - The conversation is from the evaluation. "AGENT_TOOL" - The conversation is from an agent tool. Agent tool runs the
agent in a separate session, which is persisted for testing and debugging purposes.
type ProjectsLocationsAppsConversationsService ¶
type ProjectsLocationsAppsConversationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAppsConversationsService ¶
func NewProjectsLocationsAppsConversationsService(s *Service) *ProjectsLocationsAppsConversationsService
func (*ProjectsLocationsAppsConversationsService) BatchDelete ¶
func (r *ProjectsLocationsAppsConversationsService) BatchDelete(parent string, batchdeleteconversationsrequest *BatchDeleteConversationsRequest) *ProjectsLocationsAppsConversationsBatchDeleteCall
BatchDelete: Batch deletes the specified conversations.
- parent: The resource name of the app to delete conversations from. Format: `projects/{project}/locations/{location}/apps/{app}`.
func (*ProjectsLocationsAppsConversationsService) Delete ¶
func (r *ProjectsLocationsAppsConversationsService) Delete(name string) *ProjectsLocationsAppsConversationsDeleteCall
Delete: Deletes the specified conversation.
- name: The resource name of the conversation to delete.
func (*ProjectsLocationsAppsConversationsService) Get ¶
func (r *ProjectsLocationsAppsConversationsService) Get(name string) *ProjectsLocationsAppsConversationsGetCall
Get: Gets details of the specified conversation.
- name: The resource name of the conversation to retrieve.
func (*ProjectsLocationsAppsConversationsService) List ¶
func (r *ProjectsLocationsAppsConversationsService) List(parent string) *ProjectsLocationsAppsConversationsListCall
List: Lists conversations in the given app.
- parent: The resource name of the app to list conversations from.
type ProjectsLocationsAppsCreateCall ¶
type ProjectsLocationsAppsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsCreateCall) AppId ¶
func (c *ProjectsLocationsAppsCreateCall) AppId(appId string) *ProjectsLocationsAppsCreateCall
AppId sets the optional parameter "appId": The ID to use for the app, which will become the final component of the app's resource name. If not provided, a unique ID will be automatically assigned for the app.
func (*ProjectsLocationsAppsCreateCall) Context ¶
func (c *ProjectsLocationsAppsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsCreateCall) Do ¶
func (c *ProjectsLocationsAppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "ces.projects.locations.apps.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsCreateCall) Fields ¶
func (c *ProjectsLocationsAppsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsCreateCall) Header ¶
func (c *ProjectsLocationsAppsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsDeleteCall ¶
type ProjectsLocationsAppsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsDeleteCall) Context ¶
func (c *ProjectsLocationsAppsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsDeleteCall) Do ¶
func (c *ProjectsLocationsAppsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "ces.projects.locations.apps.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsDeleteCall) Etag ¶
func (c *ProjectsLocationsAppsDeleteCall) Etag(etag string) *ProjectsLocationsAppsDeleteCall
Etag sets the optional parameter "etag": The current etag of the app. If an etag is not provided, the deletion will overwrite any concurrent changes. If an etag is provided and does not match the current etag of the app, deletion will be blocked and an ABORTED error will be returned.
func (*ProjectsLocationsAppsDeleteCall) Fields ¶
func (c *ProjectsLocationsAppsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsDeleteCall) Header ¶
func (c *ProjectsLocationsAppsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsDeploymentsCreateCall ¶
type ProjectsLocationsAppsDeploymentsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsDeploymentsCreateCall) Context ¶
func (c *ProjectsLocationsAppsDeploymentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsDeploymentsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsDeploymentsCreateCall) DeploymentId ¶
func (c *ProjectsLocationsAppsDeploymentsCreateCall) DeploymentId(deploymentId string) *ProjectsLocationsAppsDeploymentsCreateCall
DeploymentId sets the optional parameter "deploymentId": The ID to use for the deployment, which will become the final component of the deployment's resource name. If not provided, a unique ID will be automatically assigned for the deployment.
func (*ProjectsLocationsAppsDeploymentsCreateCall) Do ¶
func (c *ProjectsLocationsAppsDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*Deployment, error)
Do executes the "ces.projects.locations.apps.deployments.create" call. Any non-2xx status code is an error. Response headers are in either *Deployment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsDeploymentsCreateCall) Fields ¶
func (c *ProjectsLocationsAppsDeploymentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeploymentsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsDeploymentsCreateCall) Header ¶
func (c *ProjectsLocationsAppsDeploymentsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsDeploymentsDeleteCall ¶
type ProjectsLocationsAppsDeploymentsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsDeploymentsDeleteCall) Context ¶
func (c *ProjectsLocationsAppsDeploymentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsDeploymentsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsDeploymentsDeleteCall) Do ¶
func (c *ProjectsLocationsAppsDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "ces.projects.locations.apps.deployments.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsDeploymentsDeleteCall) Etag ¶
func (c *ProjectsLocationsAppsDeploymentsDeleteCall) Etag(etag string) *ProjectsLocationsAppsDeploymentsDeleteCall
Etag sets the optional parameter "etag": The etag of the deployment. If an etag is provided and does not match the current etag of the deployment, deletion will be blocked and an ABORTED error will be returned.
func (*ProjectsLocationsAppsDeploymentsDeleteCall) Fields ¶
func (c *ProjectsLocationsAppsDeploymentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeploymentsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsDeploymentsDeleteCall) Header ¶
func (c *ProjectsLocationsAppsDeploymentsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsDeploymentsGetCall ¶
type ProjectsLocationsAppsDeploymentsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsDeploymentsGetCall) Context ¶
func (c *ProjectsLocationsAppsDeploymentsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsDeploymentsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsDeploymentsGetCall) Do ¶
func (c *ProjectsLocationsAppsDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*Deployment, error)
Do executes the "ces.projects.locations.apps.deployments.get" call. Any non-2xx status code is an error. Response headers are in either *Deployment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsDeploymentsGetCall) Fields ¶
func (c *ProjectsLocationsAppsDeploymentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeploymentsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsDeploymentsGetCall) Header ¶
func (c *ProjectsLocationsAppsDeploymentsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsDeploymentsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsDeploymentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsDeploymentsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsAppsDeploymentsListCall ¶
type ProjectsLocationsAppsDeploymentsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsDeploymentsListCall) Context ¶
func (c *ProjectsLocationsAppsDeploymentsListCall) Context(ctx context.Context) *ProjectsLocationsAppsDeploymentsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsDeploymentsListCall) Do ¶
func (c *ProjectsLocationsAppsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*ListDeploymentsResponse, error)
Do executes the "ces.projects.locations.apps.deployments.list" call. Any non-2xx status code is an error. Response headers are in either *ListDeploymentsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsDeploymentsListCall) Fields ¶
func (c *ProjectsLocationsAppsDeploymentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeploymentsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsDeploymentsListCall) Header ¶
func (c *ProjectsLocationsAppsDeploymentsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsDeploymentsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsDeploymentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsDeploymentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsAppsDeploymentsListCall) OrderBy ¶
func (c *ProjectsLocationsAppsDeploymentsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsDeploymentsListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. Only "name" and "create_time" is supported. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsAppsDeploymentsListCall) PageSize ¶
func (c *ProjectsLocationsAppsDeploymentsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsDeploymentsListCall
PageSize sets the optional parameter "pageSize": The maximum number of deployments to return. The service may return fewer than this value. If unspecified, at most 50 deployments will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
func (*ProjectsLocationsAppsDeploymentsListCall) PageToken ¶
func (c *ProjectsLocationsAppsDeploymentsListCall) PageToken(pageToken string) *ProjectsLocationsAppsDeploymentsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListDeployments` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDeployments` must match the call that provided the page token.
func (*ProjectsLocationsAppsDeploymentsListCall) Pages ¶
func (c *ProjectsLocationsAppsDeploymentsListCall) Pages(ctx context.Context, f func(*ListDeploymentsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsAppsDeploymentsPatchCall ¶
type ProjectsLocationsAppsDeploymentsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsDeploymentsPatchCall) Context ¶
func (c *ProjectsLocationsAppsDeploymentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsDeploymentsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsDeploymentsPatchCall) Do ¶
func (c *ProjectsLocationsAppsDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Deployment, error)
Do executes the "ces.projects.locations.apps.deployments.patch" call. Any non-2xx status code is an error. Response headers are in either *Deployment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsDeploymentsPatchCall) Fields ¶
func (c *ProjectsLocationsAppsDeploymentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsDeploymentsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsDeploymentsPatchCall) Header ¶
func (c *ProjectsLocationsAppsDeploymentsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsDeploymentsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsAppsDeploymentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsDeploymentsPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to update.
type ProjectsLocationsAppsDeploymentsService ¶
type ProjectsLocationsAppsDeploymentsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAppsDeploymentsService ¶
func NewProjectsLocationsAppsDeploymentsService(s *Service) *ProjectsLocationsAppsDeploymentsService
func (*ProjectsLocationsAppsDeploymentsService) Create ¶
func (r *ProjectsLocationsAppsDeploymentsService) Create(parent string, deployment *Deployment) *ProjectsLocationsAppsDeploymentsCreateCall
Create: Creates a new deployment in the given app.
- parent: The parent app. Format: `projects/{project}/locations/{location}/apps/{app}`.
func (*ProjectsLocationsAppsDeploymentsService) Delete ¶
func (r *ProjectsLocationsAppsDeploymentsService) Delete(name string) *ProjectsLocationsAppsDeploymentsDeleteCall
Delete: Deletes the specified deployment.
- name: The name of the deployment to delete. Format: `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment }`.
func (*ProjectsLocationsAppsDeploymentsService) Get ¶
func (r *ProjectsLocationsAppsDeploymentsService) Get(name string) *ProjectsLocationsAppsDeploymentsGetCall
Get: Gets details of the specified deployment.
- name: The name of the deployment. Format: `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment }`.
func (*ProjectsLocationsAppsDeploymentsService) List ¶
func (r *ProjectsLocationsAppsDeploymentsService) List(parent string) *ProjectsLocationsAppsDeploymentsListCall
List: Lists deployments in the given app.
- parent: The parent app. Format: `projects/{project}/locations/{location}/apps/{app}`.
func (*ProjectsLocationsAppsDeploymentsService) Patch ¶
func (r *ProjectsLocationsAppsDeploymentsService) Patch(name string, deployment *Deployment) *ProjectsLocationsAppsDeploymentsPatchCall
Patch: Updates the specified deployment.
- name: Identifier. The resource name of the deployment. Format: `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment }`.
type ProjectsLocationsAppsExamplesCreateCall ¶
type ProjectsLocationsAppsExamplesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsExamplesCreateCall) Context ¶
func (c *ProjectsLocationsAppsExamplesCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsExamplesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsExamplesCreateCall) Do ¶
func (c *ProjectsLocationsAppsExamplesCreateCall) Do(opts ...googleapi.CallOption) (*Example, error)
Do executes the "ces.projects.locations.apps.examples.create" call. Any non-2xx status code is an error. Response headers are in either *Example.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsExamplesCreateCall) ExampleId ¶
func (c *ProjectsLocationsAppsExamplesCreateCall) ExampleId(exampleId string) *ProjectsLocationsAppsExamplesCreateCall
ExampleId sets the optional parameter "exampleId": The ID to use for the example, which will become the final component of the example's resource name. If not provided, a unique ID will be automatically assigned for the example.
func (*ProjectsLocationsAppsExamplesCreateCall) Fields ¶
func (c *ProjectsLocationsAppsExamplesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExamplesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsExamplesCreateCall) Header ¶
func (c *ProjectsLocationsAppsExamplesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsExamplesDeleteCall ¶
type ProjectsLocationsAppsExamplesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsExamplesDeleteCall) Context ¶
func (c *ProjectsLocationsAppsExamplesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsExamplesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsExamplesDeleteCall) Do ¶
func (c *ProjectsLocationsAppsExamplesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "ces.projects.locations.apps.examples.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsExamplesDeleteCall) Etag ¶
func (c *ProjectsLocationsAppsExamplesDeleteCall) Etag(etag string) *ProjectsLocationsAppsExamplesDeleteCall
Etag sets the optional parameter "etag": The current etag of the example. If an etag is not provided, the deletion will overwrite any concurrent changes. If an etag is provided and does not match the current etag of the example, deletion will be blocked and an ABORTED error will be returned.
func (*ProjectsLocationsAppsExamplesDeleteCall) Fields ¶
func (c *ProjectsLocationsAppsExamplesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExamplesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsExamplesDeleteCall) Header ¶
func (c *ProjectsLocationsAppsExamplesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsExamplesGetCall ¶
type ProjectsLocationsAppsExamplesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsExamplesGetCall) Context ¶
func (c *ProjectsLocationsAppsExamplesGetCall) Context(ctx context.Context) *ProjectsLocationsAppsExamplesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsExamplesGetCall) Do ¶
func (c *ProjectsLocationsAppsExamplesGetCall) Do(opts ...googleapi.CallOption) (*Example, error)
Do executes the "ces.projects.locations.apps.examples.get" call. Any non-2xx status code is an error. Response headers are in either *Example.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsExamplesGetCall) Fields ¶
func (c *ProjectsLocationsAppsExamplesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExamplesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsExamplesGetCall) Header ¶
func (c *ProjectsLocationsAppsExamplesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsExamplesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsExamplesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsExamplesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsAppsExamplesListCall ¶
type ProjectsLocationsAppsExamplesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsExamplesListCall) Context ¶
func (c *ProjectsLocationsAppsExamplesListCall) Context(ctx context.Context) *ProjectsLocationsAppsExamplesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsExamplesListCall) Do ¶
func (c *ProjectsLocationsAppsExamplesListCall) Do(opts ...googleapi.CallOption) (*ListExamplesResponse, error)
Do executes the "ces.projects.locations.apps.examples.list" call. Any non-2xx status code is an error. Response headers are in either *ListExamplesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsExamplesListCall) Fields ¶
func (c *ProjectsLocationsAppsExamplesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExamplesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsExamplesListCall) Filter ¶
func (c *ProjectsLocationsAppsExamplesListCall) Filter(filter string) *ProjectsLocationsAppsExamplesListCall
Filter sets the optional parameter "filter": Filter to be applied when listing the examples. See https://google.aip.dev/160 for more details.
func (*ProjectsLocationsAppsExamplesListCall) Header ¶
func (c *ProjectsLocationsAppsExamplesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsExamplesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsExamplesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsExamplesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsAppsExamplesListCall) OrderBy ¶
func (c *ProjectsLocationsAppsExamplesListCall) OrderBy(orderBy string) *ProjectsLocationsAppsExamplesListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. Only "name" and "create_time" is supported. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsAppsExamplesListCall) PageSize ¶
func (c *ProjectsLocationsAppsExamplesListCall) PageSize(pageSize int64) *ProjectsLocationsAppsExamplesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsAppsExamplesListCall) PageToken ¶
func (c *ProjectsLocationsAppsExamplesListCall) PageToken(pageToken string) *ProjectsLocationsAppsExamplesListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list AgentService.ListExamples call.
func (*ProjectsLocationsAppsExamplesListCall) Pages ¶
func (c *ProjectsLocationsAppsExamplesListCall) Pages(ctx context.Context, f func(*ListExamplesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsAppsExamplesPatchCall ¶
type ProjectsLocationsAppsExamplesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsExamplesPatchCall) Context ¶
func (c *ProjectsLocationsAppsExamplesPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsExamplesPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsExamplesPatchCall) Do ¶
func (c *ProjectsLocationsAppsExamplesPatchCall) Do(opts ...googleapi.CallOption) (*Example, error)
Do executes the "ces.projects.locations.apps.examples.patch" call. Any non-2xx status code is an error. Response headers are in either *Example.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsExamplesPatchCall) Fields ¶
func (c *ProjectsLocationsAppsExamplesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExamplesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsExamplesPatchCall) Header ¶
func (c *ProjectsLocationsAppsExamplesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsExamplesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsAppsExamplesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsExamplesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated.
type ProjectsLocationsAppsExamplesService ¶
type ProjectsLocationsAppsExamplesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAppsExamplesService ¶
func NewProjectsLocationsAppsExamplesService(s *Service) *ProjectsLocationsAppsExamplesService
func (*ProjectsLocationsAppsExamplesService) Create ¶
func (r *ProjectsLocationsAppsExamplesService) Create(parent string, example *Example) *ProjectsLocationsAppsExamplesCreateCall
Create: Creates a new example in the given app.
- parent: The resource name of the app to create an example in.
func (*ProjectsLocationsAppsExamplesService) Delete ¶
func (r *ProjectsLocationsAppsExamplesService) Delete(name string) *ProjectsLocationsAppsExamplesDeleteCall
Delete: Deletes the specified example.
- name: The resource name of the example to delete.
func (*ProjectsLocationsAppsExamplesService) Get ¶
func (r *ProjectsLocationsAppsExamplesService) Get(name string) *ProjectsLocationsAppsExamplesGetCall
Get: Gets details of the specified example.
- name: The resource name of the example to retrieve.
func (*ProjectsLocationsAppsExamplesService) List ¶
func (r *ProjectsLocationsAppsExamplesService) List(parent string) *ProjectsLocationsAppsExamplesListCall
List: Lists examples in the given app.
- parent: The resource name of the app to list examples from.
func (*ProjectsLocationsAppsExamplesService) Patch ¶
func (r *ProjectsLocationsAppsExamplesService) Patch(nameid string, example *Example) *ProjectsLocationsAppsExamplesPatchCall
Patch: Updates the specified example.
- name: Identifier. The unique identifier of the example. Format: `projects/{project}/locations/{location}/apps/{app}/examples/{example}`.
type ProjectsLocationsAppsExecuteToolCall ¶
type ProjectsLocationsAppsExecuteToolCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsExecuteToolCall) Context ¶
func (c *ProjectsLocationsAppsExecuteToolCall) Context(ctx context.Context) *ProjectsLocationsAppsExecuteToolCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsExecuteToolCall) Do ¶
func (c *ProjectsLocationsAppsExecuteToolCall) Do(opts ...googleapi.CallOption) (*ExecuteToolResponse, error)
Do executes the "ces.projects.locations.apps.executeTool" call. Any non-2xx status code is an error. Response headers are in either *ExecuteToolResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsExecuteToolCall) Fields ¶
func (c *ProjectsLocationsAppsExecuteToolCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExecuteToolCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsExecuteToolCall) Header ¶
func (c *ProjectsLocationsAppsExecuteToolCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsExportAppCall ¶
type ProjectsLocationsAppsExportAppCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsExportAppCall) Context ¶
func (c *ProjectsLocationsAppsExportAppCall) Context(ctx context.Context) *ProjectsLocationsAppsExportAppCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsExportAppCall) Do ¶
func (c *ProjectsLocationsAppsExportAppCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "ces.projects.locations.apps.exportApp" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsExportAppCall) Fields ¶
func (c *ProjectsLocationsAppsExportAppCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsExportAppCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsExportAppCall) Header ¶
func (c *ProjectsLocationsAppsExportAppCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsGetCall ¶
type ProjectsLocationsAppsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsGetCall) Context ¶
func (c *ProjectsLocationsAppsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsGetCall) Do ¶
func (c *ProjectsLocationsAppsGetCall) Do(opts ...googleapi.CallOption) (*App, error)
Do executes the "ces.projects.locations.apps.get" call. Any non-2xx status code is an error. Response headers are in either *App.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsGetCall) Fields ¶
func (c *ProjectsLocationsAppsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsGetCall) Header ¶
func (c *ProjectsLocationsAppsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsAppsGuardrailsCreateCall ¶
type ProjectsLocationsAppsGuardrailsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsGuardrailsCreateCall) Context ¶
func (c *ProjectsLocationsAppsGuardrailsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsGuardrailsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsGuardrailsCreateCall) Do ¶
func (c *ProjectsLocationsAppsGuardrailsCreateCall) Do(opts ...googleapi.CallOption) (*Guardrail, error)
Do executes the "ces.projects.locations.apps.guardrails.create" call. Any non-2xx status code is an error. Response headers are in either *Guardrail.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsGuardrailsCreateCall) Fields ¶
func (c *ProjectsLocationsAppsGuardrailsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGuardrailsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsGuardrailsCreateCall) GuardrailId ¶
func (c *ProjectsLocationsAppsGuardrailsCreateCall) GuardrailId(guardrailId string) *ProjectsLocationsAppsGuardrailsCreateCall
GuardrailId sets the optional parameter "guardrailId": The ID to use for the guardrail, which will become the final component of the guardrail's resource name. If not provided, a unique ID will be automatically assigned for the guardrail.
func (*ProjectsLocationsAppsGuardrailsCreateCall) Header ¶
func (c *ProjectsLocationsAppsGuardrailsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsGuardrailsDeleteCall ¶
type ProjectsLocationsAppsGuardrailsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsGuardrailsDeleteCall) Context ¶
func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsGuardrailsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsGuardrailsDeleteCall) Do ¶
func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "ces.projects.locations.apps.guardrails.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsGuardrailsDeleteCall) Etag ¶
func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Etag(etag string) *ProjectsLocationsAppsGuardrailsDeleteCall
Etag sets the optional parameter "etag": The current etag of the guardrail. If an etag is not provided, the deletion will overwrite any concurrent changes. If an etag is provided and does not match the current etag of the guardrail, deletion will be blocked and an ABORTED error will be returned.
func (*ProjectsLocationsAppsGuardrailsDeleteCall) Fields ¶
func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGuardrailsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsGuardrailsDeleteCall) Force ¶
func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Force(force bool) *ProjectsLocationsAppsGuardrailsDeleteCall
Force sets the optional parameter "force": Indicates whether to forcefully delete the guardrail, even if it is still referenced by app/agents. * If `force = false`, the deletion fails if any apps/agents still reference the guardrail. * If `force = true`, all existing references from apps/agents will be removed and the guardrail will be deleted.
func (*ProjectsLocationsAppsGuardrailsDeleteCall) Header ¶
func (c *ProjectsLocationsAppsGuardrailsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsGuardrailsGetCall ¶
type ProjectsLocationsAppsGuardrailsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsGuardrailsGetCall) Context ¶
func (c *ProjectsLocationsAppsGuardrailsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsGuardrailsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsGuardrailsGetCall) Do ¶
func (c *ProjectsLocationsAppsGuardrailsGetCall) Do(opts ...googleapi.CallOption) (*Guardrail, error)
Do executes the "ces.projects.locations.apps.guardrails.get" call. Any non-2xx status code is an error. Response headers are in either *Guardrail.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsGuardrailsGetCall) Fields ¶
func (c *ProjectsLocationsAppsGuardrailsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGuardrailsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsGuardrailsGetCall) Header ¶
func (c *ProjectsLocationsAppsGuardrailsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsGuardrailsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsGuardrailsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsGuardrailsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsAppsGuardrailsListCall ¶
type ProjectsLocationsAppsGuardrailsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsGuardrailsListCall) Context ¶
func (c *ProjectsLocationsAppsGuardrailsListCall) Context(ctx context.Context) *ProjectsLocationsAppsGuardrailsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsGuardrailsListCall) Do ¶
func (c *ProjectsLocationsAppsGuardrailsListCall) Do(opts ...googleapi.CallOption) (*ListGuardrailsResponse, error)
Do executes the "ces.projects.locations.apps.guardrails.list" call. Any non-2xx status code is an error. Response headers are in either *ListGuardrailsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsGuardrailsListCall) Fields ¶
func (c *ProjectsLocationsAppsGuardrailsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGuardrailsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsGuardrailsListCall) Filter ¶
func (c *ProjectsLocationsAppsGuardrailsListCall) Filter(filter string) *ProjectsLocationsAppsGuardrailsListCall
Filter sets the optional parameter "filter": Filter to be applied when listing the guardrails. See https://google.aip.dev/160 for more details.
func (*ProjectsLocationsAppsGuardrailsListCall) Header ¶
func (c *ProjectsLocationsAppsGuardrailsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsGuardrailsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsGuardrailsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsGuardrailsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsAppsGuardrailsListCall) OrderBy ¶
func (c *ProjectsLocationsAppsGuardrailsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsGuardrailsListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. Only "name" and "create_time" is supported. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsAppsGuardrailsListCall) PageSize ¶
func (c *ProjectsLocationsAppsGuardrailsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsGuardrailsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsAppsGuardrailsListCall) PageToken ¶
func (c *ProjectsLocationsAppsGuardrailsListCall) PageToken(pageToken string) *ProjectsLocationsAppsGuardrailsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list AgentService.ListGuardrails call.
func (*ProjectsLocationsAppsGuardrailsListCall) Pages ¶
func (c *ProjectsLocationsAppsGuardrailsListCall) Pages(ctx context.Context, f func(*ListGuardrailsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsAppsGuardrailsPatchCall ¶
type ProjectsLocationsAppsGuardrailsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsGuardrailsPatchCall) Context ¶
func (c *ProjectsLocationsAppsGuardrailsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsGuardrailsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsGuardrailsPatchCall) Do ¶
func (c *ProjectsLocationsAppsGuardrailsPatchCall) Do(opts ...googleapi.CallOption) (*Guardrail, error)
Do executes the "ces.projects.locations.apps.guardrails.patch" call. Any non-2xx status code is an error. Response headers are in either *Guardrail.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsGuardrailsPatchCall) Fields ¶
func (c *ProjectsLocationsAppsGuardrailsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGuardrailsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsGuardrailsPatchCall) Header ¶
func (c *ProjectsLocationsAppsGuardrailsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsGuardrailsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsAppsGuardrailsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsGuardrailsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated.
type ProjectsLocationsAppsGuardrailsService ¶
type ProjectsLocationsAppsGuardrailsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAppsGuardrailsService ¶
func NewProjectsLocationsAppsGuardrailsService(s *Service) *ProjectsLocationsAppsGuardrailsService
func (*ProjectsLocationsAppsGuardrailsService) Create ¶
func (r *ProjectsLocationsAppsGuardrailsService) Create(parent string, guardrail *Guardrail) *ProjectsLocationsAppsGuardrailsCreateCall
Create: Creates a new guardrail in the given app.
- parent: The resource name of the app to create a guardrail in.
func (*ProjectsLocationsAppsGuardrailsService) Delete ¶
func (r *ProjectsLocationsAppsGuardrailsService) Delete(name string) *ProjectsLocationsAppsGuardrailsDeleteCall
Delete: Deletes the specified guardrail.
- name: The resource name of the guardrail to delete.
func (*ProjectsLocationsAppsGuardrailsService) Get ¶
func (r *ProjectsLocationsAppsGuardrailsService) Get(name string) *ProjectsLocationsAppsGuardrailsGetCall
Get: Gets details of the specified guardrail.
- name: The resource name of the guardrail to retrieve.
func (*ProjectsLocationsAppsGuardrailsService) List ¶
func (r *ProjectsLocationsAppsGuardrailsService) List(parent string) *ProjectsLocationsAppsGuardrailsListCall
List: Lists guardrails in the given app.
- parent: The resource name of the app to list guardrails from.
func (*ProjectsLocationsAppsGuardrailsService) Patch ¶
func (r *ProjectsLocationsAppsGuardrailsService) Patch(nameid string, guardrail *Guardrail) *ProjectsLocationsAppsGuardrailsPatchCall
Patch: Updates the specified guardrail.
- name: Identifier. The unique identifier of the guardrail. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`.
type ProjectsLocationsAppsImportAppCall ¶
type ProjectsLocationsAppsImportAppCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsImportAppCall) Context ¶
func (c *ProjectsLocationsAppsImportAppCall) Context(ctx context.Context) *ProjectsLocationsAppsImportAppCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsImportAppCall) Do ¶
func (c *ProjectsLocationsAppsImportAppCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "ces.projects.locations.apps.importApp" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsImportAppCall) Fields ¶
func (c *ProjectsLocationsAppsImportAppCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsImportAppCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsImportAppCall) Header ¶
func (c *ProjectsLocationsAppsImportAppCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsListCall ¶
type ProjectsLocationsAppsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsListCall) Context ¶
func (c *ProjectsLocationsAppsListCall) Context(ctx context.Context) *ProjectsLocationsAppsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsListCall) Do ¶
func (c *ProjectsLocationsAppsListCall) Do(opts ...googleapi.CallOption) (*ListAppsResponse, error)
Do executes the "ces.projects.locations.apps.list" call. Any non-2xx status code is an error. Response headers are in either *ListAppsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsListCall) Fields ¶
func (c *ProjectsLocationsAppsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsListCall) Filter ¶
func (c *ProjectsLocationsAppsListCall) Filter(filter string) *ProjectsLocationsAppsListCall
Filter sets the optional parameter "filter": Filter to be applied when listing the apps. See https://google.aip.dev/160 for more details.
func (*ProjectsLocationsAppsListCall) Header ¶
func (c *ProjectsLocationsAppsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsAppsListCall) OrderBy ¶
func (c *ProjectsLocationsAppsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. Only "name" and "create_time" is supported. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsAppsListCall) PageSize ¶
func (c *ProjectsLocationsAppsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsAppsListCall) PageToken ¶
func (c *ProjectsLocationsAppsListCall) PageToken(pageToken string) *ProjectsLocationsAppsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list AgentService.ListApps call.
func (*ProjectsLocationsAppsListCall) Pages ¶
func (c *ProjectsLocationsAppsListCall) Pages(ctx context.Context, f func(*ListAppsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsAppsPatchCall ¶
type ProjectsLocationsAppsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsPatchCall) Context ¶
func (c *ProjectsLocationsAppsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsPatchCall) Do ¶
func (c *ProjectsLocationsAppsPatchCall) Do(opts ...googleapi.CallOption) (*App, error)
Do executes the "ces.projects.locations.apps.patch" call. Any non-2xx status code is an error. Response headers are in either *App.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsPatchCall) Fields ¶
func (c *ProjectsLocationsAppsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsPatchCall) Header ¶
func (c *ProjectsLocationsAppsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsAppsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated.
type ProjectsLocationsAppsRetrieveToolSchemaCall ¶
type ProjectsLocationsAppsRetrieveToolSchemaCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsRetrieveToolSchemaCall) Context ¶
func (c *ProjectsLocationsAppsRetrieveToolSchemaCall) Context(ctx context.Context) *ProjectsLocationsAppsRetrieveToolSchemaCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsRetrieveToolSchemaCall) Do ¶
func (c *ProjectsLocationsAppsRetrieveToolSchemaCall) Do(opts ...googleapi.CallOption) (*RetrieveToolSchemaResponse, error)
Do executes the "ces.projects.locations.apps.retrieveToolSchema" call. Any non-2xx status code is an error. Response headers are in either *RetrieveToolSchemaResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsRetrieveToolSchemaCall) Fields ¶
func (c *ProjectsLocationsAppsRetrieveToolSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsRetrieveToolSchemaCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsRetrieveToolSchemaCall) Header ¶
func (c *ProjectsLocationsAppsRetrieveToolSchemaCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsService ¶
type ProjectsLocationsAppsService struct {
Agents *ProjectsLocationsAppsAgentsService
Changelogs *ProjectsLocationsAppsChangelogsService
Conversations *ProjectsLocationsAppsConversationsService
Deployments *ProjectsLocationsAppsDeploymentsService
Examples *ProjectsLocationsAppsExamplesService
Guardrails *ProjectsLocationsAppsGuardrailsService
Sessions *ProjectsLocationsAppsSessionsService
Tools *ProjectsLocationsAppsToolsService
Toolsets *ProjectsLocationsAppsToolsetsService
Versions *ProjectsLocationsAppsVersionsService
// contains filtered or unexported fields
}
func NewProjectsLocationsAppsService ¶
func NewProjectsLocationsAppsService(s *Service) *ProjectsLocationsAppsService
func (*ProjectsLocationsAppsService) Create ¶
func (r *ProjectsLocationsAppsService) Create(parent string, app *App) *ProjectsLocationsAppsCreateCall
Create: Creates a new app in the given project and location.
- parent: The resource name of the location to create an app in.
func (*ProjectsLocationsAppsService) Delete ¶
func (r *ProjectsLocationsAppsService) Delete(name string) *ProjectsLocationsAppsDeleteCall
Delete: Deletes the specified app.
- name: The resource name of the app to delete.
func (*ProjectsLocationsAppsService) ExecuteTool ¶
func (r *ProjectsLocationsAppsService) ExecuteTool(parent string, executetoolrequest *ExecuteToolRequest) *ProjectsLocationsAppsExecuteToolCall
ExecuteTool: Executes the given tool with the given arguments.
- parent: The resource name of the app which the tool/toolset belongs to. Format: `projects/{project}/locations/{location}/apps/{app}`.
func (*ProjectsLocationsAppsService) ExportApp ¶
func (r *ProjectsLocationsAppsService) ExportApp(name string, exportapprequest *ExportAppRequest) *ProjectsLocationsAppsExportAppCall
ExportApp: Exports the specified app.
- name: The resource name of the app to export.
func (*ProjectsLocationsAppsService) Get ¶
func (r *ProjectsLocationsAppsService) Get(name string) *ProjectsLocationsAppsGetCall
Get: Gets details of the specified app.
- name: The resource name of the app to retrieve.
func (*ProjectsLocationsAppsService) ImportApp ¶
func (r *ProjectsLocationsAppsService) ImportApp(parent string, importapprequest *ImportAppRequest) *ProjectsLocationsAppsImportAppCall
ImportApp: Imports the specified app.
- parent: The parent resource name with the location of the app to import.
func (*ProjectsLocationsAppsService) List ¶
func (r *ProjectsLocationsAppsService) List(parent string) *ProjectsLocationsAppsListCall
List: Lists apps in the given project and location.
- parent: The resource name of the location to list apps from.
func (*ProjectsLocationsAppsService) Patch ¶
func (r *ProjectsLocationsAppsService) Patch(nameid string, app *App) *ProjectsLocationsAppsPatchCall
Patch: Updates the specified app.
- name: Identifier. The unique identifier of the app. Format: `projects/{project}/locations/{location}/apps/{app}`.
func (*ProjectsLocationsAppsService) RetrieveToolSchema ¶
func (r *ProjectsLocationsAppsService) RetrieveToolSchema(parent string, retrievetoolschemarequest *RetrieveToolSchemaRequest) *ProjectsLocationsAppsRetrieveToolSchemaCall
RetrieveToolSchema: Retrieve the schema of the given tool. The schema is computed on the fly for the given instance of the tool.
- parent: The resource name of the app which the tool/toolset belongs to. Format: `projects/{project}/locations/{location}/apps/{app}`.
type ProjectsLocationsAppsSessionsGenerateChatTokenCall ¶
type ProjectsLocationsAppsSessionsGenerateChatTokenCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsSessionsGenerateChatTokenCall) Context ¶
func (c *ProjectsLocationsAppsSessionsGenerateChatTokenCall) Context(ctx context.Context) *ProjectsLocationsAppsSessionsGenerateChatTokenCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsSessionsGenerateChatTokenCall) Do ¶
func (c *ProjectsLocationsAppsSessionsGenerateChatTokenCall) Do(opts ...googleapi.CallOption) (*GenerateChatTokenResponse, error)
Do executes the "ces.projects.locations.apps.sessions.generateChatToken" call. Any non-2xx status code is an error. Response headers are in either *GenerateChatTokenResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsSessionsGenerateChatTokenCall) Fields ¶
func (c *ProjectsLocationsAppsSessionsGenerateChatTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsSessionsGenerateChatTokenCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsSessionsGenerateChatTokenCall) Header ¶
func (c *ProjectsLocationsAppsSessionsGenerateChatTokenCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsSessionsRunSessionCall ¶
type ProjectsLocationsAppsSessionsRunSessionCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsSessionsRunSessionCall) Context ¶
func (c *ProjectsLocationsAppsSessionsRunSessionCall) Context(ctx context.Context) *ProjectsLocationsAppsSessionsRunSessionCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsSessionsRunSessionCall) Do ¶
func (c *ProjectsLocationsAppsSessionsRunSessionCall) Do(opts ...googleapi.CallOption) (*RunSessionResponse, error)
Do executes the "ces.projects.locations.apps.sessions.runSession" call. Any non-2xx status code is an error. Response headers are in either *RunSessionResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsSessionsRunSessionCall) Fields ¶
func (c *ProjectsLocationsAppsSessionsRunSessionCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsSessionsRunSessionCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsSessionsRunSessionCall) Header ¶
func (c *ProjectsLocationsAppsSessionsRunSessionCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsSessionsService ¶
type ProjectsLocationsAppsSessionsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAppsSessionsService ¶
func NewProjectsLocationsAppsSessionsService(s *Service) *ProjectsLocationsAppsSessionsService
func (*ProjectsLocationsAppsSessionsService) GenerateChatToken ¶
func (r *ProjectsLocationsAppsSessionsService) GenerateChatToken(name string, generatechattokenrequest *GenerateChatTokenRequest) *ProjectsLocationsAppsSessionsGenerateChatTokenCall
GenerateChatToken: Generates a session scoped token for chat widget to authenticate with Session APIs.
- name: The session name to generate the chat token for. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}.
func (*ProjectsLocationsAppsSessionsService) RunSession ¶
func (r *ProjectsLocationsAppsSessionsService) RunSession(sessionid string, runsessionrequest *RunSessionRequest) *ProjectsLocationsAppsSessionsRunSessionCall
RunSession: Initiates a single-turn interaction with the CES agent within a session.
- session: The unique identifier of the session. Format: `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`.
func (*ProjectsLocationsAppsSessionsService) StreamRunSession ¶ added in v0.274.0
func (r *ProjectsLocationsAppsSessionsService) StreamRunSession(sessionid string, runsessionrequest *RunSessionRequest) *ProjectsLocationsAppsSessionsStreamRunSessionCall
StreamRunSession: Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver incremental results and partial responses as they are generated. By default, complete responses (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they are available. To enable streaming individual text chunks directly from the model, set enable_text_streaming to true.
- session: The unique identifier of the session. Format: `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`.
type ProjectsLocationsAppsSessionsStreamRunSessionCall ¶ added in v0.274.0
type ProjectsLocationsAppsSessionsStreamRunSessionCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsSessionsStreamRunSessionCall) Context ¶ added in v0.274.0
func (c *ProjectsLocationsAppsSessionsStreamRunSessionCall) Context(ctx context.Context) *ProjectsLocationsAppsSessionsStreamRunSessionCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsSessionsStreamRunSessionCall) Do ¶ added in v0.274.0
func (c *ProjectsLocationsAppsSessionsStreamRunSessionCall) Do(opts ...googleapi.CallOption) (*RunSessionResponse, error)
Do executes the "ces.projects.locations.apps.sessions.streamRunSession" call. Any non-2xx status code is an error. Response headers are in either *RunSessionResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsSessionsStreamRunSessionCall) Fields ¶ added in v0.274.0
func (c *ProjectsLocationsAppsSessionsStreamRunSessionCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsSessionsStreamRunSessionCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsSessionsStreamRunSessionCall) Header ¶ added in v0.274.0
func (c *ProjectsLocationsAppsSessionsStreamRunSessionCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsToolsCreateCall ¶
type ProjectsLocationsAppsToolsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsToolsCreateCall) Context ¶
func (c *ProjectsLocationsAppsToolsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsToolsCreateCall) Do ¶
func (c *ProjectsLocationsAppsToolsCreateCall) Do(opts ...googleapi.CallOption) (*Tool, error)
Do executes the "ces.projects.locations.apps.tools.create" call. Any non-2xx status code is an error. Response headers are in either *Tool.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsToolsCreateCall) Fields ¶
func (c *ProjectsLocationsAppsToolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsToolsCreateCall) Header ¶
func (c *ProjectsLocationsAppsToolsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsToolsCreateCall) ToolId ¶
func (c *ProjectsLocationsAppsToolsCreateCall) ToolId(toolId string) *ProjectsLocationsAppsToolsCreateCall
ToolId sets the optional parameter "toolId": The ID to use for the tool, which will become the final component of the tool's resource name. If not provided, a unique ID will be automatically assigned for the tool.
type ProjectsLocationsAppsToolsDeleteCall ¶
type ProjectsLocationsAppsToolsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsToolsDeleteCall) Context ¶
func (c *ProjectsLocationsAppsToolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsToolsDeleteCall) Do ¶
func (c *ProjectsLocationsAppsToolsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "ces.projects.locations.apps.tools.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsToolsDeleteCall) Etag ¶
func (c *ProjectsLocationsAppsToolsDeleteCall) Etag(etag string) *ProjectsLocationsAppsToolsDeleteCall
Etag sets the optional parameter "etag": The current etag of the tool. If an etag is not provided, the deletion will overwrite any concurrent changes. If an etag is provided and does not match the current etag of the tool, deletion will be blocked and an ABORTED error will be returned.
func (*ProjectsLocationsAppsToolsDeleteCall) Fields ¶
func (c *ProjectsLocationsAppsToolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsToolsDeleteCall) Force ¶
func (c *ProjectsLocationsAppsToolsDeleteCall) Force(force bool) *ProjectsLocationsAppsToolsDeleteCall
Force sets the optional parameter "force": Indicates whether to forcefully delete the tool, even if it is still referenced by agents/examples. * If `force = false`, the deletion will fail if any agents still reference the tool. * If `force = true`, all existing references from agents will be removed and the tool will be deleted.
func (*ProjectsLocationsAppsToolsDeleteCall) Header ¶
func (c *ProjectsLocationsAppsToolsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsToolsGetCall ¶
type ProjectsLocationsAppsToolsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsToolsGetCall) Context ¶
func (c *ProjectsLocationsAppsToolsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsToolsGetCall) Do ¶
func (c *ProjectsLocationsAppsToolsGetCall) Do(opts ...googleapi.CallOption) (*Tool, error)
Do executes the "ces.projects.locations.apps.tools.get" call. Any non-2xx status code is an error. Response headers are in either *Tool.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsToolsGetCall) Fields ¶
func (c *ProjectsLocationsAppsToolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsToolsGetCall) Header ¶
func (c *ProjectsLocationsAppsToolsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsToolsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsToolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsToolsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsAppsToolsListCall ¶
type ProjectsLocationsAppsToolsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsToolsListCall) Context ¶
func (c *ProjectsLocationsAppsToolsListCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsToolsListCall) Do ¶
func (c *ProjectsLocationsAppsToolsListCall) Do(opts ...googleapi.CallOption) (*ListToolsResponse, error)
Do executes the "ces.projects.locations.apps.tools.list" call. Any non-2xx status code is an error. Response headers are in either *ListToolsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsToolsListCall) Fields ¶
func (c *ProjectsLocationsAppsToolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsToolsListCall) Filter ¶
func (c *ProjectsLocationsAppsToolsListCall) Filter(filter string) *ProjectsLocationsAppsToolsListCall
Filter sets the optional parameter "filter": Filter to be applied when listing the tools. Use "include_system_tools=true" to include system tools in the response. See https://google.aip.dev/160 for more details.
func (*ProjectsLocationsAppsToolsListCall) Header ¶
func (c *ProjectsLocationsAppsToolsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsToolsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsToolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsToolsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsAppsToolsListCall) OrderBy ¶
func (c *ProjectsLocationsAppsToolsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsToolsListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. Only "name" and "create_time" is supported. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsAppsToolsListCall) PageSize ¶
func (c *ProjectsLocationsAppsToolsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsToolsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsAppsToolsListCall) PageToken ¶
func (c *ProjectsLocationsAppsToolsListCall) PageToken(pageToken string) *ProjectsLocationsAppsToolsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list AgentService.ListTools call.
func (*ProjectsLocationsAppsToolsListCall) Pages ¶
func (c *ProjectsLocationsAppsToolsListCall) Pages(ctx context.Context, f func(*ListToolsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsAppsToolsPatchCall ¶
type ProjectsLocationsAppsToolsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsToolsPatchCall) Context ¶
func (c *ProjectsLocationsAppsToolsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsToolsPatchCall) Do ¶
func (c *ProjectsLocationsAppsToolsPatchCall) Do(opts ...googleapi.CallOption) (*Tool, error)
Do executes the "ces.projects.locations.apps.tools.patch" call. Any non-2xx status code is an error. Response headers are in either *Tool.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsToolsPatchCall) Fields ¶
func (c *ProjectsLocationsAppsToolsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsToolsPatchCall) Header ¶
func (c *ProjectsLocationsAppsToolsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsToolsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsAppsToolsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsToolsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated.
type ProjectsLocationsAppsToolsService ¶
type ProjectsLocationsAppsToolsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAppsToolsService ¶
func NewProjectsLocationsAppsToolsService(s *Service) *ProjectsLocationsAppsToolsService
func (*ProjectsLocationsAppsToolsService) Create ¶
func (r *ProjectsLocationsAppsToolsService) Create(parent string, tool *Tool) *ProjectsLocationsAppsToolsCreateCall
Create: Creates a new tool in the given app.
- parent: The resource name of the app to create a tool in.
func (*ProjectsLocationsAppsToolsService) Delete ¶
func (r *ProjectsLocationsAppsToolsService) Delete(name string) *ProjectsLocationsAppsToolsDeleteCall
Delete: Deletes the specified tool.
- name: The resource name of the tool to delete.
func (*ProjectsLocationsAppsToolsService) Get ¶
func (r *ProjectsLocationsAppsToolsService) Get(name string) *ProjectsLocationsAppsToolsGetCall
Get: Gets details of the specified tool.
- name: The resource name of the tool to retrieve.
func (*ProjectsLocationsAppsToolsService) List ¶
func (r *ProjectsLocationsAppsToolsService) List(parent string) *ProjectsLocationsAppsToolsListCall
List: Lists tools in the given app.
- parent: The resource name of the app to list tools from.
func (*ProjectsLocationsAppsToolsService) Patch ¶
func (r *ProjectsLocationsAppsToolsService) Patch(name string, tool *Tool) *ProjectsLocationsAppsToolsPatchCall
Patch: Updates the specified tool.
- name: Identifier. The resource name of the tool. Format: * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for standalone tools. * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tool s/{tool}` for tools retrieved from a toolset. These tools are dynamic and output-only; they cannot be referenced directly where a tool is expected.
type ProjectsLocationsAppsToolsetsCreateCall ¶
type ProjectsLocationsAppsToolsetsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsToolsetsCreateCall) Context ¶
func (c *ProjectsLocationsAppsToolsetsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsToolsetsCreateCall) Do ¶
func (c *ProjectsLocationsAppsToolsetsCreateCall) Do(opts ...googleapi.CallOption) (*Toolset, error)
Do executes the "ces.projects.locations.apps.toolsets.create" call. Any non-2xx status code is an error. Response headers are in either *Toolset.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsToolsetsCreateCall) Fields ¶
func (c *ProjectsLocationsAppsToolsetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsToolsetsCreateCall) Header ¶
func (c *ProjectsLocationsAppsToolsetsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsToolsetsCreateCall) ToolsetId ¶
func (c *ProjectsLocationsAppsToolsetsCreateCall) ToolsetId(toolsetId string) *ProjectsLocationsAppsToolsetsCreateCall
ToolsetId sets the optional parameter "toolsetId": The ID to use for the toolset, which will become the final component of the toolset's resource name. If not provided, a unique ID will be automatically assigned for the toolset.
type ProjectsLocationsAppsToolsetsDeleteCall ¶
type ProjectsLocationsAppsToolsetsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsToolsetsDeleteCall) Context ¶
func (c *ProjectsLocationsAppsToolsetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsToolsetsDeleteCall) Do ¶
func (c *ProjectsLocationsAppsToolsetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "ces.projects.locations.apps.toolsets.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsToolsetsDeleteCall) Etag ¶
func (c *ProjectsLocationsAppsToolsetsDeleteCall) Etag(etag string) *ProjectsLocationsAppsToolsetsDeleteCall
Etag sets the optional parameter "etag": The current etag of the toolset. If an etag is not provided, the deletion will overwrite any concurrent changes. If an etag is provided and does not match the current etag of the toolset, deletion will be blocked and an ABORTED error will be returned.
func (*ProjectsLocationsAppsToolsetsDeleteCall) Fields ¶
func (c *ProjectsLocationsAppsToolsetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsToolsetsDeleteCall) Force ¶
func (c *ProjectsLocationsAppsToolsetsDeleteCall) Force(force bool) *ProjectsLocationsAppsToolsetsDeleteCall
Force sets the optional parameter "force": Indicates whether to forcefully delete the toolset, even if it is still referenced by app/agents. * If `force = false`, the deletion fails if any agents still reference the toolset. * If `force = true`, all existing references from agents will be removed and the toolset will be deleted.
func (*ProjectsLocationsAppsToolsetsDeleteCall) Header ¶
func (c *ProjectsLocationsAppsToolsetsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsToolsetsGetCall ¶
type ProjectsLocationsAppsToolsetsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsToolsetsGetCall) Context ¶
func (c *ProjectsLocationsAppsToolsetsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsToolsetsGetCall) Do ¶
func (c *ProjectsLocationsAppsToolsetsGetCall) Do(opts ...googleapi.CallOption) (*Toolset, error)
Do executes the "ces.projects.locations.apps.toolsets.get" call. Any non-2xx status code is an error. Response headers are in either *Toolset.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsToolsetsGetCall) Fields ¶
func (c *ProjectsLocationsAppsToolsetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsToolsetsGetCall) Header ¶
func (c *ProjectsLocationsAppsToolsetsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsToolsetsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsToolsetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsToolsetsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsAppsToolsetsListCall ¶
type ProjectsLocationsAppsToolsetsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsToolsetsListCall) Context ¶
func (c *ProjectsLocationsAppsToolsetsListCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsToolsetsListCall) Do ¶
func (c *ProjectsLocationsAppsToolsetsListCall) Do(opts ...googleapi.CallOption) (*ListToolsetsResponse, error)
Do executes the "ces.projects.locations.apps.toolsets.list" call. Any non-2xx status code is an error. Response headers are in either *ListToolsetsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsToolsetsListCall) Fields ¶
func (c *ProjectsLocationsAppsToolsetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsToolsetsListCall) Filter ¶
func (c *ProjectsLocationsAppsToolsetsListCall) Filter(filter string) *ProjectsLocationsAppsToolsetsListCall
Filter sets the optional parameter "filter": Filter to be applied when listing the toolsets. See https://google.aip.dev/160 for more details.
func (*ProjectsLocationsAppsToolsetsListCall) Header ¶
func (c *ProjectsLocationsAppsToolsetsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsToolsetsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsToolsetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsToolsetsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsAppsToolsetsListCall) OrderBy ¶
func (c *ProjectsLocationsAppsToolsetsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsToolsetsListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. Only "name" and "create_time" is supported. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsAppsToolsetsListCall) PageSize ¶
func (c *ProjectsLocationsAppsToolsetsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsToolsetsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsAppsToolsetsListCall) PageToken ¶
func (c *ProjectsLocationsAppsToolsetsListCall) PageToken(pageToken string) *ProjectsLocationsAppsToolsetsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list AgentService.ListToolsets call.
func (*ProjectsLocationsAppsToolsetsListCall) Pages ¶
func (c *ProjectsLocationsAppsToolsetsListCall) Pages(ctx context.Context, f func(*ListToolsetsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsAppsToolsetsPatchCall ¶
type ProjectsLocationsAppsToolsetsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsToolsetsPatchCall) Context ¶
func (c *ProjectsLocationsAppsToolsetsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsToolsetsPatchCall) Do ¶
func (c *ProjectsLocationsAppsToolsetsPatchCall) Do(opts ...googleapi.CallOption) (*Toolset, error)
Do executes the "ces.projects.locations.apps.toolsets.patch" call. Any non-2xx status code is an error. Response headers are in either *Toolset.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsToolsetsPatchCall) Fields ¶
func (c *ProjectsLocationsAppsToolsetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsToolsetsPatchCall) Header ¶
func (c *ProjectsLocationsAppsToolsetsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsToolsetsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsAppsToolsetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppsToolsetsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated.
type ProjectsLocationsAppsToolsetsRetrieveToolsCall ¶
type ProjectsLocationsAppsToolsetsRetrieveToolsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsToolsetsRetrieveToolsCall) Context ¶
func (c *ProjectsLocationsAppsToolsetsRetrieveToolsCall) Context(ctx context.Context) *ProjectsLocationsAppsToolsetsRetrieveToolsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsToolsetsRetrieveToolsCall) Do ¶
func (c *ProjectsLocationsAppsToolsetsRetrieveToolsCall) Do(opts ...googleapi.CallOption) (*RetrieveToolsResponse, error)
Do executes the "ces.projects.locations.apps.toolsets.retrieveTools" call. Any non-2xx status code is an error. Response headers are in either *RetrieveToolsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsToolsetsRetrieveToolsCall) Fields ¶
func (c *ProjectsLocationsAppsToolsetsRetrieveToolsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsToolsetsRetrieveToolsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsToolsetsRetrieveToolsCall) Header ¶
func (c *ProjectsLocationsAppsToolsetsRetrieveToolsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsToolsetsService ¶
type ProjectsLocationsAppsToolsetsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAppsToolsetsService ¶
func NewProjectsLocationsAppsToolsetsService(s *Service) *ProjectsLocationsAppsToolsetsService
func (*ProjectsLocationsAppsToolsetsService) Create ¶
func (r *ProjectsLocationsAppsToolsetsService) Create(parent string, toolset *Toolset) *ProjectsLocationsAppsToolsetsCreateCall
Create: Creates a new toolset in the given app.
- parent: The resource name of the app to create a toolset in.
func (*ProjectsLocationsAppsToolsetsService) Delete ¶
func (r *ProjectsLocationsAppsToolsetsService) Delete(name string) *ProjectsLocationsAppsToolsetsDeleteCall
Delete: Deletes the specified toolset.
- name: The resource name of the toolset to delete.
func (*ProjectsLocationsAppsToolsetsService) Get ¶
func (r *ProjectsLocationsAppsToolsetsService) Get(name string) *ProjectsLocationsAppsToolsetsGetCall
Get: Gets details of the specified toolset.
- name: The resource name of the toolset to retrieve.
func (*ProjectsLocationsAppsToolsetsService) List ¶
func (r *ProjectsLocationsAppsToolsetsService) List(parent string) *ProjectsLocationsAppsToolsetsListCall
List: Lists toolsets in the given app.
- parent: The resource name of the app to list toolsets from.
func (*ProjectsLocationsAppsToolsetsService) Patch ¶
func (r *ProjectsLocationsAppsToolsetsService) Patch(nameid string, toolset *Toolset) *ProjectsLocationsAppsToolsetsPatchCall
Patch: Updates the specified toolset.
- name: Identifier. The unique identifier of the toolset. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`.
func (*ProjectsLocationsAppsToolsetsService) RetrieveTools ¶
func (r *ProjectsLocationsAppsToolsetsService) RetrieveTools(toolset string, retrievetoolsrequest *RetrieveToolsRequest) *ProjectsLocationsAppsToolsetsRetrieveToolsCall
RetrieveTools: Retrieve the list of tools included in the specified toolset.
- toolset: The name of the toolset to retrieve the tools for. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`.
type ProjectsLocationsAppsVersionsCreateCall ¶
type ProjectsLocationsAppsVersionsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsVersionsCreateCall) AppVersionId ¶
func (c *ProjectsLocationsAppsVersionsCreateCall) AppVersionId(appVersionId string) *ProjectsLocationsAppsVersionsCreateCall
AppVersionId sets the optional parameter "appVersionId": The ID to use for the app version, which will become the final component of the app version's resource name. If not provided, a unique ID will be automatically assigned for the app version.
func (*ProjectsLocationsAppsVersionsCreateCall) Context ¶
func (c *ProjectsLocationsAppsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsVersionsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsVersionsCreateCall) Do ¶
func (c *ProjectsLocationsAppsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*AppVersion, error)
Do executes the "ces.projects.locations.apps.versions.create" call. Any non-2xx status code is an error. Response headers are in either *AppVersion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsVersionsCreateCall) Fields ¶
func (c *ProjectsLocationsAppsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsVersionsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsVersionsCreateCall) Header ¶
func (c *ProjectsLocationsAppsVersionsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsVersionsDeleteCall ¶
type ProjectsLocationsAppsVersionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsVersionsDeleteCall) Context ¶
func (c *ProjectsLocationsAppsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsVersionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsVersionsDeleteCall) Do ¶
func (c *ProjectsLocationsAppsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "ces.projects.locations.apps.versions.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsVersionsDeleteCall) Etag ¶
func (c *ProjectsLocationsAppsVersionsDeleteCall) Etag(etag string) *ProjectsLocationsAppsVersionsDeleteCall
Etag sets the optional parameter "etag": The current etag of the app version. If an etag is not provided, the deletion will overwrite any concurrent changes. If an etag is provided and does not match the current etag of the app version, deletion will be blocked and an ABORTED error will be returned.
func (*ProjectsLocationsAppsVersionsDeleteCall) Fields ¶
func (c *ProjectsLocationsAppsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsVersionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsVersionsDeleteCall) Header ¶
func (c *ProjectsLocationsAppsVersionsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsVersionsGetCall ¶
type ProjectsLocationsAppsVersionsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsVersionsGetCall) Context ¶
func (c *ProjectsLocationsAppsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsVersionsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsVersionsGetCall) Do ¶
func (c *ProjectsLocationsAppsVersionsGetCall) Do(opts ...googleapi.CallOption) (*AppVersion, error)
Do executes the "ces.projects.locations.apps.versions.get" call. Any non-2xx status code is an error. Response headers are in either *AppVersion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsVersionsGetCall) Fields ¶
func (c *ProjectsLocationsAppsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsVersionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsVersionsGetCall) Header ¶
func (c *ProjectsLocationsAppsVersionsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsVersionsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsVersionsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsAppsVersionsListCall ¶
type ProjectsLocationsAppsVersionsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsVersionsListCall) Context ¶
func (c *ProjectsLocationsAppsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAppsVersionsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsVersionsListCall) Do ¶
func (c *ProjectsLocationsAppsVersionsListCall) Do(opts ...googleapi.CallOption) (*ListAppVersionsResponse, error)
Do executes the "ces.projects.locations.apps.versions.list" call. Any non-2xx status code is an error. Response headers are in either *ListAppVersionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsVersionsListCall) Fields ¶
func (c *ProjectsLocationsAppsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsVersionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsVersionsListCall) Filter ¶
func (c *ProjectsLocationsAppsVersionsListCall) Filter(filter string) *ProjectsLocationsAppsVersionsListCall
Filter sets the optional parameter "filter": Filter to be applied when listing the app versions. See https://google.aip.dev/160 for more details.
func (*ProjectsLocationsAppsVersionsListCall) Header ¶
func (c *ProjectsLocationsAppsVersionsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsAppsVersionsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAppsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsVersionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsAppsVersionsListCall) OrderBy ¶
func (c *ProjectsLocationsAppsVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsAppsVersionsListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. Only "name" and "create_time" is supported. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsAppsVersionsListCall) PageSize ¶
func (c *ProjectsLocationsAppsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsVersionsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsAppsVersionsListCall) PageToken ¶
func (c *ProjectsLocationsAppsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAppsVersionsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list AgentService.ListAppVersions call.
func (*ProjectsLocationsAppsVersionsListCall) Pages ¶
func (c *ProjectsLocationsAppsVersionsListCall) Pages(ctx context.Context, f func(*ListAppVersionsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsAppsVersionsRestoreCall ¶
type ProjectsLocationsAppsVersionsRestoreCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAppsVersionsRestoreCall) Context ¶
func (c *ProjectsLocationsAppsVersionsRestoreCall) Context(ctx context.Context) *ProjectsLocationsAppsVersionsRestoreCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAppsVersionsRestoreCall) Do ¶
func (c *ProjectsLocationsAppsVersionsRestoreCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "ces.projects.locations.apps.versions.restore" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAppsVersionsRestoreCall) Fields ¶
func (c *ProjectsLocationsAppsVersionsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsVersionsRestoreCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsAppsVersionsRestoreCall) Header ¶
func (c *ProjectsLocationsAppsVersionsRestoreCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsAppsVersionsService ¶
type ProjectsLocationsAppsVersionsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAppsVersionsService ¶
func NewProjectsLocationsAppsVersionsService(s *Service) *ProjectsLocationsAppsVersionsService
func (*ProjectsLocationsAppsVersionsService) Create ¶
func (r *ProjectsLocationsAppsVersionsService) Create(parent string, appversion *AppVersion) *ProjectsLocationsAppsVersionsCreateCall
Create: Creates a new app version in the given app.
- parent: The resource name of the app to create an app version in.
func (*ProjectsLocationsAppsVersionsService) Delete ¶
func (r *ProjectsLocationsAppsVersionsService) Delete(name string) *ProjectsLocationsAppsVersionsDeleteCall
Delete: Deletes the specified app version.
- name: The resource name of the app version to delete.
func (*ProjectsLocationsAppsVersionsService) Get ¶
func (r *ProjectsLocationsAppsVersionsService) Get(name string) *ProjectsLocationsAppsVersionsGetCall
Get: Gets details of the specified app version.
- name: The resource name of the app version to retrieve.
func (*ProjectsLocationsAppsVersionsService) List ¶
func (r *ProjectsLocationsAppsVersionsService) List(parent string) *ProjectsLocationsAppsVersionsListCall
List: Lists all app versions in the given app.
- parent: The resource name of the app to list app versions from.
func (*ProjectsLocationsAppsVersionsService) Restore ¶
func (r *ProjectsLocationsAppsVersionsService) Restore(name string, restoreappversionrequest *RestoreAppVersionRequest) *ProjectsLocationsAppsVersionsRestoreCall
Restore: Restores the specified app version. This will create a new app version from the current draft app and overwrite the current draft with the specified app version.
- name: The resource name of the app version to restore.
type ProjectsLocationsGetCall ¶
type ProjectsLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGetCall) Context ¶
func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGetCall) Do ¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
Do executes the "ces.projects.locations.get" call. Any non-2xx status code is an error. Response headers are in either *Location.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsGetCall) Fields ¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsGetCall) Header ¶
func (c *ProjectsLocationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsListCall ¶
type ProjectsLocationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsListCall) Context ¶
func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsListCall) Do ¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
Do executes the "ces.projects.locations.list" call. Any non-2xx status code is an error. Response headers are in either *ListLocationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsListCall) ExtraLocationTypes ¶
func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
func (*ProjectsLocationsListCall) Fields ¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsListCall) Filter ¶
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160 (https://google.aip.dev/160).
func (*ProjectsLocationsListCall) Header ¶
func (c *ProjectsLocationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsListCall) PageSize ¶
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall) PageToken ¶
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
func (*ProjectsLocationsListCall) Pages ¶
func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsCancelCall ¶
type ProjectsLocationsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsCancelCall) Context ¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsCancelCall) Do ¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "ces.projects.locations.operations.cancel" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsCancelCall) Fields ¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsCancelCall) Header ¶
func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsOperationsDeleteCall ¶
type ProjectsLocationsOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsDeleteCall) Context ¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsDeleteCall) Do ¶
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "ces.projects.locations.operations.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsDeleteCall) Fields ¶
func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsDeleteCall) Header ¶
func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsOperationsGetCall ¶
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsGetCall) Do ¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "ces.projects.locations.operations.get" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall) Fields ¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsGetCall) Header ¶
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsOperationsListCall ¶
type ProjectsLocationsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsListCall) Context ¶
func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsListCall) Do ¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
Do executes the "ces.projects.locations.operations.list" call. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsListCall) Fields ¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsListCall) Filter ¶
func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall) Header ¶
func (c *ProjectsLocationsOperationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsOperationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsOperationsListCall) PageSize ¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsLocationsOperationsListCall) PageToken ¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsLocationsOperationsListCall) Pages ¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*ProjectsLocationsOperationsListCall) ReturnPartialSuccess ¶
func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to "projects/example/locations/-". This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
type ProjectsLocationsOperationsService ¶
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Cancel ¶
func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
- name: The name of the operation resource to be cancelled.
func (*ProjectsLocationsOperationsService) Delete ¶
func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
- name: The name of the operation resource to be deleted.
func (*ProjectsLocationsOperationsService) Get ¶
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
- name: The name of the operation resource.
func (*ProjectsLocationsOperationsService) List ¶
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
- name: The name of the operation's parent resource.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct {
Apps *ProjectsLocationsAppsService
Operations *ProjectsLocationsOperationsService
// contains filtered or unexported fields
}
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService) Get ¶
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService) List ¶
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
- name: The resource that owns the locations collection, if applicable.
type ProjectsService ¶
type ProjectsService struct {
Locations *ProjectsLocationsService
// contains filtered or unexported fields
}
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type PythonCodeCondition ¶
type PythonCodeCondition struct {
// PythonCode: Required. The python code to execute.
PythonCode string `json:"pythonCode,omitempty"`
// ForceSendFields is a list of field names (e.g. "PythonCode") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "PythonCode") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
PythonCodeCondition: Python code block to evaluate the condition.
func (PythonCodeCondition) MarshalJSON ¶
func (s PythonCodeCondition) MarshalJSON() ([]byte, error)
type PythonFunction ¶
type PythonFunction struct {
// Description: Output only. The description of the Python function, parsed
// from the python code's docstring.
Description string `json:"description,omitempty"`
// Name: Optional. The name of the Python function to execute. Must match a
// Python function name defined in the python code. Case sensitive. If the name
// is not provided, the first function defined in the python code will be used.
Name string `json:"name,omitempty"`
// PythonCode: Optional. The Python code to execute for the tool.
PythonCode string `json:"pythonCode,omitempty"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
PythonFunction: A Python function tool.
func (PythonFunction) MarshalJSON ¶
func (s PythonFunction) MarshalJSON() ([]byte, error)
type RedactionConfig ¶
type RedactionConfig struct {
// DeidentifyTemplate: Optional. DLP (https://cloud.google.com/dlp/docs)
// deidentify template name to instruct on how to de-identify content. Format:
// `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_temp
// late}`
DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"`
// EnableRedaction: Optional. If true, redaction will be applied in various
// logging scenarios, including conversation history, Cloud Logging and audio
// recording.
EnableRedaction bool `json:"enableRedaction,omitempty"`
// InspectTemplate: Optional. DLP (https://cloud.google.com/dlp/docs) inspect
// template name to configure detection of sensitive data types. Format:
// `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
InspectTemplate string `json:"inspectTemplate,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DeidentifyTemplate") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RedactionConfig: Configuration to instruct how sensitive data should be handled.
func (RedactionConfig) MarshalJSON ¶
func (s RedactionConfig) MarshalJSON() ([]byte, error)
type RestoreAppVersionRequest ¶
type RestoreAppVersionRequest struct {
}
RestoreAppVersionRequest: Request message for AgentService.RestoreAppVersion
type RetrieveToolSchemaRequest ¶
type RetrieveToolSchemaRequest struct {
// Tool: Optional. The name of the tool to retrieve the schema for. Format:
// projects/{project}/locations/{location}/apps/{app}/tools/{tool}
Tool string `json:"tool,omitempty"`
// ToolsetTool: Optional. The toolset tool to retrieve the schema for. Only one
// tool should match the predicate from the toolset. Otherwise, an error will
// be returned.
ToolsetTool *ToolsetTool `json:"toolsetTool,omitempty"`
// ForceSendFields is a list of field names (e.g. "Tool") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Tool") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RetrieveToolSchemaRequest: Request message for ToolService.RetrieveToolSchema.
func (RetrieveToolSchemaRequest) MarshalJSON ¶
func (s RetrieveToolSchemaRequest) MarshalJSON() ([]byte, error)
type RetrieveToolSchemaResponse ¶
type RetrieveToolSchemaResponse struct {
// InputSchema: The schema of the tool input parameters.
InputSchema *Schema `json:"inputSchema,omitempty"`
// OutputSchema: The schema of the tool output parameters.
OutputSchema *Schema `json:"outputSchema,omitempty"`
// Tool: The name of the tool that the schema is for. Format:
// `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
Tool string `json:"tool,omitempty"`
// ToolsetTool: The toolset tool that the schema is for.
ToolsetTool *ToolsetTool `json:"toolsetTool,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "InputSchema") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "InputSchema") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RetrieveToolSchemaResponse: Response message for ToolService.RetrieveToolSchema.
func (RetrieveToolSchemaResponse) MarshalJSON ¶
func (s RetrieveToolSchemaResponse) MarshalJSON() ([]byte, error)
type RetrieveToolsRequest ¶
type RetrieveToolsRequest struct {
// ToolIds: Optional. The identifiers of the tools to retrieve from the
// toolset. If empty, all tools in the toolset will be returned.
ToolIds []string `json:"toolIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "ToolIds") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ToolIds") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RetrieveToolsRequest: Request message for ToolService.RetrieveTools.
func (RetrieveToolsRequest) MarshalJSON ¶
func (s RetrieveToolsRequest) MarshalJSON() ([]byte, error)
type RetrieveToolsResponse ¶
type RetrieveToolsResponse struct {
// Tools: The list of tools that are included in the specified toolset.
Tools []*Tool `json:"tools,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Tools") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Tools") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RetrieveToolsResponse: Response message for ToolService.RetrieveTools.
func (RetrieveToolsResponse) MarshalJSON ¶
func (s RetrieveToolsResponse) MarshalJSON() ([]byte, error)
type RunSessionRequest ¶
type RunSessionRequest struct {
// Config: Required. The configuration for the session.
Config *SessionConfig `json:"config,omitempty"`
// Inputs: Required. Inputs for the session.
Inputs []*SessionInput `json:"inputs,omitempty"`
// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Config") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RunSessionRequest: Request message for SessionService.RunSession.
func (RunSessionRequest) MarshalJSON ¶
func (s RunSessionRequest) MarshalJSON() ([]byte, error)
type RunSessionResponse ¶
type RunSessionResponse struct {
// Outputs: Outputs for the session.
Outputs []*SessionOutput `json:"outputs,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Outputs") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Outputs") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
RunSessionResponse: Response message for SessionService.RunSession.
func (RunSessionResponse) MarshalJSON ¶
func (s RunSessionResponse) MarshalJSON() ([]byte, error)
type Schema ¶
type Schema struct {
// AdditionalProperties: Optional. Can either be a boolean or an object,
// controls the presence of additional properties.
AdditionalProperties *Schema `json:"additionalProperties,omitempty"`
// AnyOf: Optional. The value should be validated against any (one or more) of
// the subschemas in the list.
AnyOf []*Schema `json:"anyOf,omitempty"`
// Default: Optional. Default value of the data.
Default interface{} `json:"default,omitempty"`
// Defs: Optional. A map of definitions for use by `ref`. Only allowed at the
// root of the schema.
Defs map[string]Schema `json:"defs,omitempty"`
// Description: Optional. The description of the data.
Description string `json:"description,omitempty"`
// Enum: Optional. Possible values of the element of primitive type with enum
// format. Examples: 1. We can define direction as : {type:STRING, format:enum,
// enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as
// : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
Enum []string `json:"enum,omitempty"`
// Items: Optional. Schema of the elements of Type.ARRAY.
Items *Schema `json:"items,omitempty"`
// MaxItems: Optional. Maximum number of the elements for Type.ARRAY.
MaxItems int64 `json:"maxItems,omitempty,string"`
// Maximum: Optional. Maximum value for Type.INTEGER and Type.NUMBER.
Maximum float64 `json:"maximum,omitempty"`
// MinItems: Optional. Minimum number of the elements for Type.ARRAY.
MinItems int64 `json:"minItems,omitempty,string"`
// Minimum: Optional. Minimum value for Type.INTEGER and Type.NUMBER.
Minimum float64 `json:"minimum,omitempty"`
// Nullable: Optional. Indicates if the value may be null.
Nullable bool `json:"nullable,omitempty"`
// PrefixItems: Optional. Schemas of initial elements of Type.ARRAY.
PrefixItems []*Schema `json:"prefixItems,omitempty"`
// Properties: Optional. Properties of Type.OBJECT.
Properties map[string]Schema `json:"properties,omitempty"`
// Ref: Optional. Allows indirect references between schema nodes. The value
// should be a valid reference to a child of the root `defs`. For example, the
// following schema defines a reference to a schema node named "Pet": “` type:
// object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties:
// name: type: string “` The value of the "pet" property is a reference to the
// schema node named "Pet". See details in
// https://json-schema.org/understanding-json-schema/structuring.
Ref string `json:"ref,omitempty"`
// Required: Optional. Required properties of Type.OBJECT.
Required []string `json:"required,omitempty"`
// Title: Optional. The title of the schema.
Title string `json:"title,omitempty"`
// Type: Required. The type of the data.
//
// Possible values:
// "TYPE_UNSPECIFIED" - Type unspecified.
// "STRING" - String type.
// "INTEGER" - Integer type.
// "NUMBER" - Number type.
// "BOOLEAN" - Boolean type.
// "OBJECT" - Object type.
// "ARRAY" - Array type.
Type string `json:"type,omitempty"`
// UniqueItems: Optional. Indicate the items in the array must be unique. Only
// applies to TYPE.ARRAY.
UniqueItems bool `json:"uniqueItems,omitempty"`
// ForceSendFields is a list of field names (e.g. "AdditionalProperties") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AdditionalProperties") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Schema: Represents a select subset of an OpenAPI 3.0 schema object.
func (Schema) MarshalJSON ¶
func (*Schema) UnmarshalJSON ¶
type SecuritySettings ¶ added in v0.270.0
type SecuritySettings struct {
// CreateTime: Output only. Create time of the security settings.
CreateTime string `json:"createTime,omitempty"`
// EndpointControlPolicy: Optional. Endpoint control related settings.
EndpointControlPolicy *EndpointControlPolicy `json:"endpointControlPolicy,omitempty"`
// Etag: Output only. Etag of the security settings.
Etag string `json:"etag,omitempty"`
// Name: Identifier. The unique identifier of the security settings. Format:
// `projects/{project}/locations/{location}/securitySettings`
Name string `json:"name,omitempty"`
// UpdateTime: Output only. Last update time of the security settings.
UpdateTime string `json:"updateTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SecuritySettings: Project/Location level security settings for CES.
func (SecuritySettings) MarshalJSON ¶ added in v0.270.0
func (s SecuritySettings) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct {
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Projects *ProjectsService
// contains filtered or unexported fields
}
func New
deprecated
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 NewService ¶
NewService creates a new Service.
type ServiceAccountAuthConfig ¶
type ServiceAccountAuthConfig struct {
// Scopes: Optional. The OAuth scopes to grant. If not specified, the default
// scope `https://www.googleapis.com/auth/cloud-platform` is used.
Scopes []string `json:"scopes,omitempty"`
// ServiceAccount: Required. The email address of the service account used for
// authentication. CES uses this service account to exchange an access token
// and the access token is then sent in the `Authorization` header of the
// request. The service account must have the
// `roles/iam.serviceAccountTokenCreator` role granted to the CES service agent
// `service-@gcp-sa-ces.iam.gserviceaccount.com`.
ServiceAccount string `json:"serviceAccount,omitempty"`
// ForceSendFields is a list of field names (e.g. "Scopes") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Scopes") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ServiceAccountAuthConfig: Configurations for authentication using a custom service account.
func (ServiceAccountAuthConfig) MarshalJSON ¶
func (s ServiceAccountAuthConfig) MarshalJSON() ([]byte, error)
type ServiceAgentIdTokenAuthConfig ¶
type ServiceAgentIdTokenAuthConfig struct {
}
ServiceAgentIdTokenAuthConfig: Configurations for authentication with ID token (https://cloud.google.com/docs/authentication/token-types#id) generated from service agent.
type ServiceDirectoryConfig ¶
type ServiceDirectoryConfig struct {
// Service: Required. The name of Service Directory
// (https://cloud.google.com/service-directory) service. Format:
// `projects/{project}/locations/{location}/namespaces/{namespace}/services/{ser
// vice}`. Location of the service directory must be the same as the location
// of the app.
Service string `json:"service,omitempty"`
// ForceSendFields is a list of field names (e.g. "Service") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Service") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ServiceDirectoryConfig: Configuration for tools using Service Directory.
func (ServiceDirectoryConfig) MarshalJSON ¶
func (s ServiceDirectoryConfig) MarshalJSON() ([]byte, error)
type SessionConfig ¶
type SessionConfig struct {
// Deployment: Optional. The deployment of the app to use for the session.
// Format:
// `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
Deployment string `json:"deployment,omitempty"`
// EnableTextStreaming: Optional. Whether to enable streaming text outputs from
// the model. By default, text outputs from the model are collected before
// sending to the client. NOTE: This is only supported for text (non-voice)
// sessions via StreamRunSession or BidiRunSession.
EnableTextStreaming bool `json:"enableTextStreaming,omitempty"`
// EntryAgent: Optional. The entry agent to handle the session. If not
// specified, the session will be handled by the root agent of the app. Format:
// `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
EntryAgent string `json:"entryAgent,omitempty"`
// HistoricalContexts: Optional. The historical context of the session,
// including user inputs, agent responses, and other messages. Typically, CES
// agent would manage session automatically so client doesn't need to
// explicitly populate this field. However, client can optionally override the
// historical contexts to force the session start from certain state.
HistoricalContexts []*Message `json:"historicalContexts,omitempty"`
// InputAudioConfig: Optional. Configuration for processing the input audio.
InputAudioConfig *InputAudioConfig `json:"inputAudioConfig,omitempty"`
// OutputAudioConfig: Optional. Configuration for generating the output audio.
OutputAudioConfig *OutputAudioConfig `json:"outputAudioConfig,omitempty"`
// RemoteDialogflowQueryParameters: Optional. QueryParameters
// (https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
// to send to the remote Dialogflow
// (https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
// agent when the session control is transferred to the remote agent.
RemoteDialogflowQueryParameters *SessionConfigRemoteDialogflowQueryParameters `json:"remoteDialogflowQueryParameters,omitempty"`
// TimeZone: Optional. The time zone of the user. If provided, the agent will
// use the time zone for date and time related variables. Otherwise, the agent
// will use the time zone specified in the App.time_zone_settings. The format
// is the IANA Time Zone Database time zone, e.g. "America/Los_Angeles".
TimeZone string `json:"timeZone,omitempty"`
// UseToolFakes: Optional. Whether to use tool fakes for the session. If this
// field is set, the agent will attempt use tool fakes instead of calling the
// real tools.
UseToolFakes bool `json:"useToolFakes,omitempty"`
// ForceSendFields is a list of field names (e.g. "Deployment") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Deployment") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SessionConfig: The configuration for the session.
func (SessionConfig) MarshalJSON ¶
func (s SessionConfig) MarshalJSON() ([]byte, error)
type SessionConfigRemoteDialogflowQueryParameters ¶
type SessionConfigRemoteDialogflowQueryParameters struct {
// EndUserMetadata: Optional. The end user metadata to be sent in
// QueryParameters
// (https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
EndUserMetadata googleapi.RawMessage `json:"endUserMetadata,omitempty"`
// Payload: Optional. The payload to be sent in QueryParameters
// (https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
Payload googleapi.RawMessage `json:"payload,omitempty"`
// WebhookHeaders: Optional. The HTTP headers to be sent as webhook_headers in
// QueryParameters
// (https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndUserMetadata") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndUserMetadata") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SessionConfigRemoteDialogflowQueryParameters: QueryParameters (https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters) to send to the remote Dialogflow (https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) agent when the session control is transferred to the remote agent.
func (SessionConfigRemoteDialogflowQueryParameters) MarshalJSON ¶
func (s SessionConfigRemoteDialogflowQueryParameters) MarshalJSON() ([]byte, error)
type SessionInput ¶
type SessionInput struct {
// Audio: Optional. Audio data from the end user.
Audio string `json:"audio,omitempty"`
// Blob: Optional. Blob data from the end user.
Blob *Blob `json:"blob,omitempty"`
// Dtmf: Optional. DTMF digits from the end user.
Dtmf string `json:"dtmf,omitempty"`
// Event: Optional. Event input.
Event *Event `json:"event,omitempty"`
// Image: Optional. Image data from the end user.
Image *Image `json:"image,omitempty"`
// Text: Optional. Text data from the end user.
Text string `json:"text,omitempty"`
// ToolResponses: Optional. Execution results for the tool calls from the
// client.
ToolResponses *ToolResponses `json:"toolResponses,omitempty"`
// Variables: Optional. Contextual variables for the session, keyed by name.
// Only variables declared in the app will be used by the CES agent.
// Unrecognized variables will still be sent to the Dialogflow agent as
// additional session parameters.
Variables googleapi.RawMessage `json:"variables,omitempty"`
// WillContinue: Optional. A flag to indicate if the current message is a
// fragment of a larger input in the bidi streaming session. When set to
// `true`, the agent defers processing until it receives a subsequent message
// where `will_continue` is `false`, or until the system detects an endpoint in
// the audio input. NOTE: This field does not apply to audio and DTMF inputs,
// as they are always processed automatically based on the endpointing signal.
WillContinue bool `json:"willContinue,omitempty"`
// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Audio") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SessionInput: Input for the session.
func (SessionInput) MarshalJSON ¶
func (s SessionInput) MarshalJSON() ([]byte, error)
type SessionOutput ¶
type SessionOutput struct {
// Audio: Output audio from the CES agent.
Audio string `json:"audio,omitempty"`
// Citations: Citations that provide the source information for the agent's
// generated text.
Citations *Citations `json:"citations,omitempty"`
// DiagnosticInfo: Optional. Diagnostic information contains execution details
// during the processing of the input. Only populated in the last SessionOutput
// (with `turn_completed=true`) for each turn.
DiagnosticInfo *SessionOutputDiagnosticInfo `json:"diagnosticInfo,omitempty"`
// EndSession: Indicates the session has ended.
EndSession *EndSession `json:"endSession,omitempty"`
// GoogleSearchSuggestions: The suggestions returned from Google Search as a
// result of invoking the GoogleSearchTool.
GoogleSearchSuggestions *GoogleSearchSuggestions `json:"googleSearchSuggestions,omitempty"`
// Payload: Custom payload with structured output from the CES agent.
Payload googleapi.RawMessage `json:"payload,omitempty"`
// Text: Output text from the CES agent.
Text string `json:"text,omitempty"`
// ToolCalls: Request for the client to execute the tools.
ToolCalls *ToolCalls `json:"toolCalls,omitempty"`
// TurnCompleted: If true, the CES agent has detected the end of the current
// conversation turn and will provide no further output for this turn.
TurnCompleted bool `json:"turnCompleted,omitempty"`
// TurnIndex: Indicates the sequential order of conversation turn to which this
// output belongs to, starting from 1.
TurnIndex int64 `json:"turnIndex,omitempty"`
// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Audio") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SessionOutput: Output for the session.
func (SessionOutput) MarshalJSON ¶
func (s SessionOutput) MarshalJSON() ([]byte, error)
type SessionOutputDiagnosticInfo ¶
type SessionOutputDiagnosticInfo struct {
// Messages: List of the messages that happened during the processing.
Messages []*Message `json:"messages,omitempty"`
// RootSpan: A trace of the entire request processing, represented as a root
// span. This span can contain nested child spans for specific operations.
RootSpan *Span `json:"rootSpan,omitempty"`
// ForceSendFields is a list of field names (e.g. "Messages") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Messages") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SessionOutputDiagnosticInfo: Contains execution details during the processing.
func (SessionOutputDiagnosticInfo) MarshalJSON ¶
func (s SessionOutputDiagnosticInfo) MarshalJSON() ([]byte, error)
type Span ¶
type Span struct {
// Attributes: Output only. Key-value attributes associated with the span.
Attributes googleapi.RawMessage `json:"attributes,omitempty"`
// ChildSpans: Output only. The child spans that are nested under this span.
ChildSpans []*Span `json:"childSpans,omitempty"`
// Duration: Output only. The duration of the span.
Duration string `json:"duration,omitempty"`
// EndTime: Output only. The end time of the span.
EndTime string `json:"endTime,omitempty"`
// Name: Output only. The name of the span.
Name string `json:"name,omitempty"`
// StartTime: Output only. The start time of the span.
StartTime string `json:"startTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attributes") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Attributes") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Span: A span is a unit of work or a single operation during the request processing.
func (Span) MarshalJSON ¶
type Status ¶
type Status struct {
// Code: The status code, which should be an enum value of google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There is a common
// set of message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in English. Any
// user-facing error message should be localized and sent in the
// google.rpc.Status.details field, or localized by the client.
Message string `json:"message,omitempty"`
// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Code") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (Status) MarshalJSON ¶
type SynthesizeSpeechConfig ¶
type SynthesizeSpeechConfig struct {
// SpeakingRate: Optional. The speaking rate/speed in the range [0.25, 2.0].
// 1.0 is the normal native speed supported by the specific voice. 2.0 is twice
// as fast, and 0.5 is half as fast. Values outside of the range [0.25, 2.0]
// will return an error.
SpeakingRate float64 `json:"speakingRate,omitempty"`
// Voice: Optional. The name of the voice. If not set, the service will choose
// a voice based on the other parameters such as language_code. For the list of
// available voices, please refer to Supported voices and languages
// (https://cloud.google.com/text-to-speech/docs/voices) from Cloud
// Text-to-Speech.
Voice string `json:"voice,omitempty"`
// ForceSendFields is a list of field names (e.g. "SpeakingRate") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SpeakingRate") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SynthesizeSpeechConfig: Configuration for how the agent response should be synthesized.
func (SynthesizeSpeechConfig) MarshalJSON ¶
func (s SynthesizeSpeechConfig) MarshalJSON() ([]byte, error)
func (*SynthesizeSpeechConfig) UnmarshalJSON ¶
func (s *SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error
type SystemTool ¶
type SystemTool struct {
// Description: Output only. The description of the system tool.
Description string `json:"description,omitempty"`
// Name: Required. The name of the system tool.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
SystemTool: Pre-defined system tool.
func (SystemTool) MarshalJSON ¶
func (s SystemTool) MarshalJSON() ([]byte, error)
type TimeZoneSettings ¶
type TimeZoneSettings struct {
// TimeZone: Optional. The time zone of the app from the time zone database
// (https://www.iana.org/time-zones), e.g., America/Los_Angeles, Europe/Paris.
TimeZone string `json:"timeZone,omitempty"`
// ForceSendFields is a list of field names (e.g. "TimeZone") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TimeZone") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TimeZoneSettings: TimeZone settings of the app.
func (TimeZoneSettings) MarshalJSON ¶
func (s TimeZoneSettings) MarshalJSON() ([]byte, error)
type TlsConfig ¶
type TlsConfig struct {
// CaCerts: Required. Specifies a list of allowed custom CA certificates for
// HTTPS verification.
CaCerts []*TlsConfigCaCert `json:"caCerts,omitempty"`
// ForceSendFields is a list of field names (e.g. "CaCerts") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CaCerts") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TlsConfig: The TLS configuration.
func (TlsConfig) MarshalJSON ¶
type TlsConfigCaCert ¶
type TlsConfigCaCert struct {
// Cert: Required. The allowed custom CA certificates (in DER format) for HTTPS
// verification. This overrides the default SSL trust store. If this is empty
// or unspecified, CES will use Google's default trust store to verify
// certificates. N.B. Make sure the HTTPS server certificates are signed with
// "subject alt name". For instance a certificate can be self-signed using the
// following command: “` openssl x509 -req -days 200 -in example.com.csr \
// -signkey example.com.key \ -out example.com.crt \ -extfile <(printf
// "\nsubjectAltName='DNS:www.example.com'") “`
Cert string `json:"cert,omitempty"`
// DisplayName: Required. The name of the allowed custom CA certificates. This
// can be used to disambiguate the custom CA certificates.
DisplayName string `json:"displayName,omitempty"`
// ForceSendFields is a list of field names (e.g. "Cert") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Cert") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TlsConfigCaCert: The CA certificate.
func (TlsConfigCaCert) MarshalJSON ¶
func (s TlsConfigCaCert) MarshalJSON() ([]byte, error)
type Tool ¶
type Tool struct {
// AgentTool: Optional. The agent tool.
AgentTool *AgentTool `json:"agentTool,omitempty"`
// ClientFunction: Optional. The client function.
ClientFunction *ClientFunction `json:"clientFunction,omitempty"`
// ConnectorTool: Optional. The Integration Connector tool.
ConnectorTool *ConnectorTool `json:"connectorTool,omitempty"`
// CreateTime: Output only. Timestamp when the tool was created.
CreateTime string `json:"createTime,omitempty"`
// DataStoreTool: Optional. The data store tool.
DataStoreTool *DataStoreTool `json:"dataStoreTool,omitempty"`
// DisplayName: Output only. The display name of the tool, derived based on the
// tool's type. For example, display name of a ClientFunction is derived from
// its `name` property.
DisplayName string `json:"displayName,omitempty"`
// Etag: Etag used to ensure the object hasn't changed during a
// read-modify-write operation. If the etag is empty, the update will overwrite
// any concurrent changes.
Etag string `json:"etag,omitempty"`
// ExecutionType: Optional. The execution type of the tool.
//
// Possible values:
// "EXECUTION_TYPE_UNSPECIFIED" - The execution type is unspecified. Defaults
// to `SYNCHRONOUS` if unspecified.
// "SYNCHRONOUS" - The tool is executed synchronously. The session is blocked
// until the tool returns.
// "ASYNCHRONOUS" - The tool is executed asynchronously. The session will
// continue while the tool is executing.
ExecutionType string `json:"executionType,omitempty"`
// FileSearchTool: Optional. The file search tool.
FileSearchTool *FileSearchTool `json:"fileSearchTool,omitempty"`
// GeneratedSummary: Output only. If the tool is generated by the LLM
// assistant, this field contains a descriptive summary of the generation.
GeneratedSummary string `json:"generatedSummary,omitempty"`
// GoogleSearchTool: Optional. The google search tool.
GoogleSearchTool *GoogleSearchTool `json:"googleSearchTool,omitempty"`
// McpTool: Optional. The MCP tool. An MCP tool cannot be created or updated
// directly and is managed by the MCP toolset.
McpTool *McpTool `json:"mcpTool,omitempty"`
// Name: Identifier. The resource name of the tool. Format: *
// `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
// standalone tools. *
// `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/
// {tool}` for tools retrieved from a toolset. These tools are dynamic and
// output-only; they cannot be referenced directly where a tool is expected.
Name string `json:"name,omitempty"`
// OpenApiTool: Optional. The open API tool.
OpenApiTool *OpenApiTool `json:"openApiTool,omitempty"`
// PythonFunction: Optional. The python function tool.
PythonFunction *PythonFunction `json:"pythonFunction,omitempty"`
// SystemTool: Optional. The system tool.
SystemTool *SystemTool `json:"systemTool,omitempty"`
// ToolFakeConfig: Optional. Configuration for tool behavior in fake mode.
ToolFakeConfig *ToolFakeConfig `json:"toolFakeConfig,omitempty"`
// UpdateTime: Output only. Timestamp when the tool was last updated.
UpdateTime string `json:"updateTime,omitempty"`
// WidgetTool: Optional. The widget tool.
WidgetTool *WidgetTool `json:"widgetTool,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AgentTool") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AgentTool") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Tool: A tool represents an action that the CES agent can take to achieve certain goals.
func (Tool) MarshalJSON ¶
type ToolCall ¶
type ToolCall struct {
// Args: Optional. The input parameters and values for the tool in JSON object
// format.
Args googleapi.RawMessage `json:"args,omitempty"`
// DisplayName: Output only. Display name of the tool.
DisplayName string `json:"displayName,omitempty"`
// Id: Optional. The unique identifier of the tool call. If populated, the
// client should return the execution result with the matching ID in
// ToolResponse.
Id string `json:"id,omitempty"`
// Tool: Optional. The name of the tool to execute. Format:
// `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
Tool string `json:"tool,omitempty"`
// ToolsetTool: Optional. The toolset tool to execute.
ToolsetTool *ToolsetTool `json:"toolsetTool,omitempty"`
// ForceSendFields is a list of field names (e.g. "Args") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Args") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ToolCall: Request for the client or the agent to execute the specified tool.
func (ToolCall) MarshalJSON ¶
type ToolCalls ¶
type ToolCalls struct {
// ToolCalls: Optional. The list of tool calls to execute.
ToolCalls []*ToolCall `json:"toolCalls,omitempty"`
// ForceSendFields is a list of field names (e.g. "ToolCalls") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ToolCalls") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ToolCalls: Request for the client to execute the tools and return the execution results before continuing the session.
func (ToolCalls) MarshalJSON ¶
type ToolFakeConfig ¶
type ToolFakeConfig struct {
// CodeBlock: Optional. Code block which will be executed instead of a real
// tool call.
CodeBlock *CodeBlock `json:"codeBlock,omitempty"`
// EnableFakeMode: Optional. Whether the tool is using fake mode.
EnableFakeMode bool `json:"enableFakeMode,omitempty"`
// ForceSendFields is a list of field names (e.g. "CodeBlock") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CodeBlock") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ToolFakeConfig: Configuration for tool behavior in fake mode.
func (ToolFakeConfig) MarshalJSON ¶
func (s ToolFakeConfig) MarshalJSON() ([]byte, error)
type ToolResponse ¶
type ToolResponse struct {
// DisplayName: Output only. Display name of the tool.
DisplayName string `json:"displayName,omitempty"`
// Id: Optional. The matching ID of the tool call the response is for.
Id string `json:"id,omitempty"`
// Response: Required. The tool execution result in JSON object format. Use
// "output" key to specify tool response and "error" key to specify error
// details (if any). If "output" and "error" keys are not specified, then whole
// "response" is treated as tool execution result.
Response googleapi.RawMessage `json:"response,omitempty"`
// Tool: Optional. The name of the tool to execute. Format:
// `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
Tool string `json:"tool,omitempty"`
// ToolsetTool: Optional. The toolset tool that got executed.
ToolsetTool *ToolsetTool `json:"toolsetTool,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ToolResponse: The execution result of a specific tool from the client or the agent.
func (ToolResponse) MarshalJSON ¶
func (s ToolResponse) MarshalJSON() ([]byte, error)
type ToolResponses ¶
type ToolResponses struct {
// ToolResponses: Optional. The list of tool execution results.
ToolResponses []*ToolResponse `json:"toolResponses,omitempty"`
// ForceSendFields is a list of field names (e.g. "ToolResponses") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ToolResponses") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ToolResponses: Execution results for the requested tool calls from the client.
func (ToolResponses) MarshalJSON ¶
func (s ToolResponses) MarshalJSON() ([]byte, error)
type Toolset ¶
type Toolset struct {
// ConnectorToolset: Optional. A toolset that generates tools from an
// Integration Connectors Connection.
ConnectorToolset *ConnectorToolset `json:"connectorToolset,omitempty"`
// CreateTime: Output only. Timestamp when the toolset was created.
CreateTime string `json:"createTime,omitempty"`
// Description: Optional. The description of the toolset.
Description string `json:"description,omitempty"`
// DisplayName: Optional. The display name of the toolset. Must be unique
// within the same app.
DisplayName string `json:"displayName,omitempty"`
// Etag: ETag used to ensure the object hasn't changed during a
// read-modify-write operation. If the etag is empty, the update will overwrite
// any concurrent changes.
Etag string `json:"etag,omitempty"`
// ExecutionType: Optional. The execution type of the tools in the toolset.
//
// Possible values:
// "EXECUTION_TYPE_UNSPECIFIED" - The execution type is unspecified. Defaults
// to `SYNCHRONOUS` if unspecified.
// "SYNCHRONOUS" - The tool is executed synchronously. The session is blocked
// until the tool returns.
// "ASYNCHRONOUS" - The tool is executed asynchronously. The session will
// continue while the tool is executing.
ExecutionType string `json:"executionType,omitempty"`
// McpToolset: Optional. A toolset that contains a list of tools that are
// offered by the MCP server.
McpToolset *McpToolset `json:"mcpToolset,omitempty"`
// Name: Identifier. The unique identifier of the toolset. Format:
// `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
Name string `json:"name,omitempty"`
// OpenApiToolset: Optional. A toolset that contains a list of tools that are
// defined by an OpenAPI schema.
OpenApiToolset *OpenApiToolset `json:"openApiToolset,omitempty"`
// ToolFakeConfig: Optional. Configuration for tools behavior in fake mode.
ToolFakeConfig *ToolFakeConfig `json:"toolFakeConfig,omitempty"`
// UpdateTime: Output only. Timestamp when the toolset was last updated.
UpdateTime string `json:"updateTime,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ConnectorToolset") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ConnectorToolset") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
Toolset: A toolset represents a group of dynamically managed tools that can be used by the agent.
func (Toolset) MarshalJSON ¶
type ToolsetTool ¶
type ToolsetTool struct {
// ToolId: Optional. The tool ID to filter the tools to retrieve the schema
// for.
ToolId string `json:"toolId,omitempty"`
// Toolset: Required. The resource name of the Toolset from which this tool is
// derived. Format:
// `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
Toolset string `json:"toolset,omitempty"`
// ForceSendFields is a list of field names (e.g. "ToolId") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ToolId") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
ToolsetTool: A tool that is created from a toolset.
func (ToolsetTool) MarshalJSON ¶
func (s ToolsetTool) MarshalJSON() ([]byte, error)
type TransferRule ¶
type TransferRule struct {
// ChildAgent: Required. The resource name of the child agent the rule applies
// to. Format:
// `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
ChildAgent string `json:"childAgent,omitempty"`
// DeterministicTransfer: Optional. A rule that immediately transfers to the
// target agent when the condition is met.
DeterministicTransfer *TransferRuleDeterministicTransfer `json:"deterministicTransfer,omitempty"`
// Direction: Required. The direction of the transfer.
//
// Possible values:
// "DIRECTION_UNSPECIFIED" - Unspecified direction.
// "PARENT_TO_CHILD" - Transfer from the parent agent to the child agent.
// "CHILD_TO_PARENT" - Transfer from the child agent to the parent agent.
Direction string `json:"direction,omitempty"`
// DisablePlannerTransfer: Optional. Rule that prevents the planner from
// transferring to the target agent.
DisablePlannerTransfer *TransferRuleDisablePlannerTransfer `json:"disablePlannerTransfer,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChildAgent") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChildAgent") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TransferRule: Rule for transferring to a specific agent.
func (TransferRule) MarshalJSON ¶
func (s TransferRule) MarshalJSON() ([]byte, error)
type TransferRuleDeterministicTransfer ¶
type TransferRuleDeterministicTransfer struct {
// ExpressionCondition: Optional. A rule that evaluates a session state
// condition. If the condition evaluates to true, the transfer occurs.
ExpressionCondition *ExpressionCondition `json:"expressionCondition,omitempty"`
// PythonCodeCondition: Optional. A rule that uses Python code block to
// evaluate the conditions. If the condition evaluates to true, the transfer
// occurs.
PythonCodeCondition *PythonCodeCondition `json:"pythonCodeCondition,omitempty"`
// ForceSendFields is a list of field names (e.g. "ExpressionCondition") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ExpressionCondition") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TransferRuleDeterministicTransfer: Deterministic transfer rule. When the condition evaluates to true, the transfer occurs.
func (TransferRuleDeterministicTransfer) MarshalJSON ¶
func (s TransferRuleDeterministicTransfer) MarshalJSON() ([]byte, error)
type TransferRuleDisablePlannerTransfer ¶
type TransferRuleDisablePlannerTransfer struct {
// ExpressionCondition: Required. If the condition evaluates to true, planner
// will not be allowed to transfer to the target agent.
ExpressionCondition *ExpressionCondition `json:"expressionCondition,omitempty"`
// ForceSendFields is a list of field names (e.g. "ExpressionCondition") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ExpressionCondition") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TransferRuleDisablePlannerTransfer: A rule that prevents the planner from transferring to the target agent.
func (TransferRuleDisablePlannerTransfer) MarshalJSON ¶
func (s TransferRuleDisablePlannerTransfer) MarshalJSON() ([]byte, error)
type TriggerAction ¶
type TriggerAction struct {
// GenerativeAnswer: Optional. Respond with a generative answer.
GenerativeAnswer *TriggerActionGenerativeAnswer `json:"generativeAnswer,omitempty"`
// RespondImmediately: Optional. Immediately respond with a preconfigured
// response.
RespondImmediately *TriggerActionRespondImmediately `json:"respondImmediately,omitempty"`
// TransferAgent: Optional. Transfer the conversation to a different agent.
TransferAgent *TriggerActionTransferAgent `json:"transferAgent,omitempty"`
// ForceSendFields is a list of field names (e.g. "GenerativeAnswer") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GenerativeAnswer") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TriggerAction: Action that is taken when a certain precondition is met.
func (TriggerAction) MarshalJSON ¶
func (s TriggerAction) MarshalJSON() ([]byte, error)
type TriggerActionGenerativeAnswer ¶
type TriggerActionGenerativeAnswer struct {
// Prompt: Required. The prompt to use for the generative answer.
Prompt string `json:"prompt,omitempty"`
// ForceSendFields is a list of field names (e.g. "Prompt") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Prompt") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TriggerActionGenerativeAnswer: The agent will immediately respond with a generative answer.
func (TriggerActionGenerativeAnswer) MarshalJSON ¶
func (s TriggerActionGenerativeAnswer) MarshalJSON() ([]byte, error)
type TriggerActionRespondImmediately ¶
type TriggerActionRespondImmediately struct {
// Responses: Required. The canned responses for the agent to choose from. The
// response is chosen randomly.
Responses []*TriggerActionResponse `json:"responses,omitempty"`
// ForceSendFields is a list of field names (e.g. "Responses") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Responses") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TriggerActionRespondImmediately: The agent will immediately respond with a preconfigured response.
func (TriggerActionRespondImmediately) MarshalJSON ¶
func (s TriggerActionRespondImmediately) MarshalJSON() ([]byte, error)
type TriggerActionResponse ¶
type TriggerActionResponse struct {
// Disabled: Optional. Whether the response is disabled. Disabled responses are
// not used by the agent.
Disabled bool `json:"disabled,omitempty"`
// Text: Required. Text for the agent to respond with.
Text string `json:"text,omitempty"`
// ForceSendFields is a list of field names (e.g. "Disabled") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Disabled") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TriggerActionResponse: Represents a response from the agent.
func (TriggerActionResponse) MarshalJSON ¶
func (s TriggerActionResponse) MarshalJSON() ([]byte, error)
type TriggerActionTransferAgent ¶
type TriggerActionTransferAgent struct {
// Agent: Required. The name of the agent to transfer the conversation to. The
// agent must be in the same app as the current agent. Format:
// `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
Agent string `json:"agent,omitempty"`
// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Agent") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
TriggerActionTransferAgent: The agent will transfer the conversation to a different agent.
func (TriggerActionTransferAgent) MarshalJSON ¶
func (s TriggerActionTransferAgent) MarshalJSON() ([]byte, error)
type WebSearchQuery ¶
type WebSearchQuery struct {
// Query: The search query text.
Query string `json:"query,omitempty"`
// Uri: The URI to the Google Search results page for the query.
Uri string `json:"uri,omitempty"`
// ForceSendFields is a list of field names (e.g. "Query") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Query") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
WebSearchQuery: Represents a single web search query and its associated search uri.
func (WebSearchQuery) MarshalJSON ¶
func (s WebSearchQuery) MarshalJSON() ([]byte, error)
type WidgetTool ¶
type WidgetTool struct {
// DataMapping: Optional. The mapping that defines how data from a source tool
// is mapped to the widget's input parameters.
DataMapping *WidgetToolDataMapping `json:"dataMapping,omitempty"`
// Description: Optional. The description of the widget tool.
Description string `json:"description,omitempty"`
// Name: Required. The display name of the widget tool.
Name string `json:"name,omitempty"`
// Parameters: Optional. The input parameters of the widget tool.
Parameters *Schema `json:"parameters,omitempty"`
// TextResponseConfig: Optional. Configuration for always-included text
// responses.
TextResponseConfig *WidgetToolTextResponseConfig `json:"textResponseConfig,omitempty"`
// UiConfig: Optional. Configuration for rendering the widget.
UiConfig googleapi.RawMessage `json:"uiConfig,omitempty"`
// WidgetType: Optional. The type of the widget tool. If not specified, the
// default type will be CUSTOMIZED.
//
// Possible values:
// "WIDGET_TYPE_UNSPECIFIED" - Unspecified widget type.
// "CUSTOM" - Custom widget type.
// "PRODUCT_CAROUSEL" - Product carousel widget.
// "PRODUCT_DETAILS" - Product details widget.
// "QUICK_ACTIONS" - Quick actions widget.
// "PRODUCT_COMPARISON" - Product comparison widget.
// "ADVANCED_PRODUCT_DETAILS" - Advanced product details widget.
// "SHORT_FORM" - Short form widget.
// "OVERALL_SATISFACTION" - Overall satisfaction widget.
// "ORDER_SUMMARY" - Order summary widget.
// "APPOINTMENT_DETAILS" - Appointment details widget.
// "APPOINTMENT_SCHEDULER" - Appointment scheduler widget.
// "CONTACT_FORM" - Contact form widget.
WidgetType string `json:"widgetType,omitempty"`
// ForceSendFields is a list of field names (e.g. "DataMapping") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataMapping") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
WidgetTool: Represents a widget tool that the agent can invoke. When the tool is chosen by the agent, agent will return the widget to the client. The client is responsible for processing the widget and generating the next user query to continue the interaction with the agent.
func (WidgetTool) MarshalJSON ¶
func (s WidgetTool) MarshalJSON() ([]byte, error)
type WidgetToolDataMapping ¶ added in v0.272.0
type WidgetToolDataMapping struct {
// FieldMappings: Optional. A map of widget input parameter fields to the
// corresponding output fields of the source tool.
FieldMappings map[string]string `json:"fieldMappings,omitempty"`
// Mode: Optional. The mode of the data mapping.
//
// Possible values:
// "MODE_UNSPECIFIED" - Unspecified mode.
// "FIELD_MAPPING" - Use the `field_mappings` map for data transformation.
// "PYTHON_SCRIPT" - Use the `python_script` for data transformation.
Mode string `json:"mode,omitempty"`
// PythonFunction: Optional. Configuration for a Python function used to
// transform the source tool's output into the widget's input format.
PythonFunction *PythonFunction `json:"pythonFunction,omitempty"`
// PythonScript: Deprecated: Use `python_function` instead.
PythonScript string `json:"pythonScript,omitempty"`
// SourceToolName: Optional. The resource name of the tool that provides the
// data for the widget (e.g., a search tool or a custom function). Format:
// `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
SourceToolName string `json:"sourceToolName,omitempty"`
// ForceSendFields is a list of field names (e.g. "FieldMappings") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FieldMappings") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
WidgetToolDataMapping: Configuration for mapping data from a source tool to the widget's input parameters.
func (WidgetToolDataMapping) MarshalJSON ¶ added in v0.272.0
func (s WidgetToolDataMapping) MarshalJSON() ([]byte, error)
type WidgetToolTextResponseConfig ¶ added in v0.277.0
type WidgetToolTextResponseConfig struct {
// StaticText: Optional. The static text response to return when type is
// STATIC.
StaticText string `json:"staticText,omitempty"`
// TextResponseInstruction: Optional. Instruction for the LLM on how to
// generate the text response. Used as the description for the text response
// parameter if type is LLM_GENERATED.
TextResponseInstruction string `json:"textResponseInstruction,omitempty"`
// Type: Optional. The strategy for providing the text response.
//
// Possible values:
// "TYPE_UNSPECIFIED" - Unspecified type.
// "NONE" - The LLM dynamically decides whether to generate a text response
// alongside the widget based on the conversation context.
// "LLM_GENERATED" - The LLM is explicitly required to generate a text
// response.
// "STATIC" - A pre-defined static text response is always used.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "StaticText") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "StaticText") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
WidgetToolTextResponseConfig: Configuration for the text response returned with the widget.
func (WidgetToolTextResponseConfig) MarshalJSON ¶ added in v0.277.0
func (s WidgetToolTextResponseConfig) MarshalJSON() ([]byte, error)