| // Copyright 2025 Google LLC |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.36.11 |
| // protoc v6.33.2 |
| // source: google/cloud/discoveryengine/v1alpha/engine.proto |
| |
| package discoveryenginepb |
| |
| import ( |
| reflect "reflect" |
| sync "sync" |
| unsafe "unsafe" |
| |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // The training state of the engine. |
| type Engine_MediaRecommendationEngineConfig_TrainingState int32 |
| |
| const ( |
| // Unspecified training state. |
| Engine_MediaRecommendationEngineConfig_TRAINING_STATE_UNSPECIFIED Engine_MediaRecommendationEngineConfig_TrainingState = 0 |
| // The engine training is paused. |
| Engine_MediaRecommendationEngineConfig_PAUSED Engine_MediaRecommendationEngineConfig_TrainingState = 1 |
| // The engine is training. |
| Engine_MediaRecommendationEngineConfig_TRAINING Engine_MediaRecommendationEngineConfig_TrainingState = 2 |
| ) |
| |
| // Enum value maps for Engine_MediaRecommendationEngineConfig_TrainingState. |
| var ( |
| Engine_MediaRecommendationEngineConfig_TrainingState_name = map[int32]string{ |
| 0: "TRAINING_STATE_UNSPECIFIED", |
| 1: "PAUSED", |
| 2: "TRAINING", |
| } |
| Engine_MediaRecommendationEngineConfig_TrainingState_value = map[string]int32{ |
| "TRAINING_STATE_UNSPECIFIED": 0, |
| "PAUSED": 1, |
| "TRAINING": 2, |
| } |
| ) |
| |
| func (x Engine_MediaRecommendationEngineConfig_TrainingState) Enum() *Engine_MediaRecommendationEngineConfig_TrainingState { |
| p := new(Engine_MediaRecommendationEngineConfig_TrainingState) |
| *p = x |
| return p |
| } |
| |
| func (x Engine_MediaRecommendationEngineConfig_TrainingState) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (Engine_MediaRecommendationEngineConfig_TrainingState) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (Engine_MediaRecommendationEngineConfig_TrainingState) Type() protoreflect.EnumType { |
| return &file_google_cloud_discoveryengine_v1alpha_engine_proto_enumTypes[0] |
| } |
| |
| func (x Engine_MediaRecommendationEngineConfig_TrainingState) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use Engine_MediaRecommendationEngineConfig_TrainingState.Descriptor instead. |
| func (Engine_MediaRecommendationEngineConfig_TrainingState) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 2, 0} |
| } |
| |
| // The serving state of the recommendation engine. |
| type Engine_RecommendationMetadata_ServingState int32 |
| |
| const ( |
| // Unspecified serving state. |
| Engine_RecommendationMetadata_SERVING_STATE_UNSPECIFIED Engine_RecommendationMetadata_ServingState = 0 |
| // The engine is not serving. |
| Engine_RecommendationMetadata_INACTIVE Engine_RecommendationMetadata_ServingState = 1 |
| // The engine is serving and can be queried. |
| Engine_RecommendationMetadata_ACTIVE Engine_RecommendationMetadata_ServingState = 2 |
| // The engine is trained on tuned hyperparameters and can be |
| // queried. |
| Engine_RecommendationMetadata_TUNED Engine_RecommendationMetadata_ServingState = 3 |
| ) |
| |
| // Enum value maps for Engine_RecommendationMetadata_ServingState. |
| var ( |
| Engine_RecommendationMetadata_ServingState_name = map[int32]string{ |
| 0: "SERVING_STATE_UNSPECIFIED", |
| 1: "INACTIVE", |
| 2: "ACTIVE", |
| 3: "TUNED", |
| } |
| Engine_RecommendationMetadata_ServingState_value = map[string]int32{ |
| "SERVING_STATE_UNSPECIFIED": 0, |
| "INACTIVE": 1, |
| "ACTIVE": 2, |
| "TUNED": 3, |
| } |
| ) |
| |
| func (x Engine_RecommendationMetadata_ServingState) Enum() *Engine_RecommendationMetadata_ServingState { |
| p := new(Engine_RecommendationMetadata_ServingState) |
| *p = x |
| return p |
| } |
| |
| func (x Engine_RecommendationMetadata_ServingState) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (Engine_RecommendationMetadata_ServingState) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_enumTypes[1].Descriptor() |
| } |
| |
| func (Engine_RecommendationMetadata_ServingState) Type() protoreflect.EnumType { |
| return &file_google_cloud_discoveryengine_v1alpha_engine_proto_enumTypes[1] |
| } |
| |
| func (x Engine_RecommendationMetadata_ServingState) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use Engine_RecommendationMetadata_ServingState.Descriptor instead. |
| func (Engine_RecommendationMetadata_ServingState) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 5, 0} |
| } |
| |
| // Describes whether this engine have sufficient training data |
| // to be continuously trained. |
| type Engine_RecommendationMetadata_DataState int32 |
| |
| const ( |
| // Unspecified default value, should never be explicitly set. |
| Engine_RecommendationMetadata_DATA_STATE_UNSPECIFIED Engine_RecommendationMetadata_DataState = 0 |
| // The engine has sufficient training data. |
| Engine_RecommendationMetadata_DATA_OK Engine_RecommendationMetadata_DataState = 1 |
| // The engine does not have sufficient training data. Error |
| // messages can be queried via Stackdriver. |
| Engine_RecommendationMetadata_DATA_ERROR Engine_RecommendationMetadata_DataState = 2 |
| ) |
| |
| // Enum value maps for Engine_RecommendationMetadata_DataState. |
| var ( |
| Engine_RecommendationMetadata_DataState_name = map[int32]string{ |
| 0: "DATA_STATE_UNSPECIFIED", |
| 1: "DATA_OK", |
| 2: "DATA_ERROR", |
| } |
| Engine_RecommendationMetadata_DataState_value = map[string]int32{ |
| "DATA_STATE_UNSPECIFIED": 0, |
| "DATA_OK": 1, |
| "DATA_ERROR": 2, |
| } |
| ) |
| |
| func (x Engine_RecommendationMetadata_DataState) Enum() *Engine_RecommendationMetadata_DataState { |
| p := new(Engine_RecommendationMetadata_DataState) |
| *p = x |
| return p |
| } |
| |
| func (x Engine_RecommendationMetadata_DataState) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (Engine_RecommendationMetadata_DataState) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_enumTypes[2].Descriptor() |
| } |
| |
| func (Engine_RecommendationMetadata_DataState) Type() protoreflect.EnumType { |
| return &file_google_cloud_discoveryengine_v1alpha_engine_proto_enumTypes[2] |
| } |
| |
| func (x Engine_RecommendationMetadata_DataState) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use Engine_RecommendationMetadata_DataState.Descriptor instead. |
| func (Engine_RecommendationMetadata_DataState) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 5, 1} |
| } |
| |
| // Metadata that describes the training and serving parameters of an |
| // [Engine][google.cloud.discoveryengine.v1alpha.Engine]. |
| type Engine struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Additional config specs that defines the behavior of the engine. |
| // |
| // Types that are valid to be assigned to EngineConfig: |
| // |
| // *Engine_SimilarDocumentsConfig |
| // *Engine_ChatEngineConfig_ |
| // *Engine_SearchEngineConfig_ |
| // *Engine_MediaRecommendationEngineConfig_ |
| EngineConfig isEngine_EngineConfig `protobuf_oneof:"engine_config"` |
| // Engine metadata to monitor the status of the engine. |
| // |
| // Types that are valid to be assigned to EngineMetadata: |
| // |
| // *Engine_RecommendationMetadata_ |
| // *Engine_ChatEngineMetadata_ |
| EngineMetadata isEngine_EngineMetadata `protobuf_oneof:"engine_metadata"` |
| // Immutable. The fully qualified resource name of the engine. |
| // |
| // This field must be a UTF-8 encoded string with a length limit of 1024 |
| // characters. |
| // |
| // Format: |
| // `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` |
| // engine should be 1-63 characters, and valid characters are |
| // /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Required. The display name of the engine. Should be human readable. UTF-8 |
| // encoded string with limit of 1024 characters. |
| DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| // Output only. Timestamp the Recommendation Engine was created at. |
| CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| // Output only. Timestamp the Recommendation Engine was last updated. |
| UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` |
| // The data stores associated with this engine. |
| // |
| // For |
| // [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH] |
| // and |
| // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION] |
| // type of engines, they can only associate with at most one data store. |
| // |
| // If |
| // [solution_type][google.cloud.discoveryengine.v1alpha.Engine.solution_type] |
| // is |
| // [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_CHAT], |
| // multiple [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s in |
| // the same [Collection][google.cloud.discoveryengine.v1alpha.Collection] can |
| // be associated here. |
| // |
| // Note that when used in |
| // [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], |
| // one DataStore id must be provided as the system will use it for necessary |
| // initializations. |
| DataStoreIds []string `protobuf:"bytes,5,rep,name=data_store_ids,json=dataStoreIds,proto3" json:"data_store_ids,omitempty"` |
| // Required. The solutions of the engine. |
| SolutionType SolutionType `protobuf:"varint,6,opt,name=solution_type,json=solutionType,proto3,enum=google.cloud.discoveryengine.v1alpha.SolutionType" json:"solution_type,omitempty"` |
| // The industry vertical that the engine registers. |
| // The restriction of the Engine industry vertical is based on |
| // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]: If |
| // unspecified, default to `GENERIC`. Vertical on Engine has to match vertical |
| // of the DataStore linked to the engine. |
| IndustryVertical IndustryVertical `protobuf:"varint,16,opt,name=industry_vertical,json=industryVertical,proto3,enum=google.cloud.discoveryengine.v1alpha.IndustryVertical" json:"industry_vertical,omitempty"` |
| // Common config spec that specifies the metadata of the engine. |
| CommonConfig *Engine_CommonConfig `protobuf:"bytes,15,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Engine) Reset() { |
| *x = Engine{} |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Engine) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Engine) ProtoMessage() {} |
| |
| func (x *Engine) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[0] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Engine.ProtoReflect.Descriptor instead. |
| func (*Engine) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *Engine) GetEngineConfig() isEngine_EngineConfig { |
| if x != nil { |
| return x.EngineConfig |
| } |
| return nil |
| } |
| |
| func (x *Engine) GetSimilarDocumentsConfig() *Engine_SimilarDocumentsEngineConfig { |
| if x != nil { |
| if x, ok := x.EngineConfig.(*Engine_SimilarDocumentsConfig); ok { |
| return x.SimilarDocumentsConfig |
| } |
| } |
| return nil |
| } |
| |
| func (x *Engine) GetChatEngineConfig() *Engine_ChatEngineConfig { |
| if x != nil { |
| if x, ok := x.EngineConfig.(*Engine_ChatEngineConfig_); ok { |
| return x.ChatEngineConfig |
| } |
| } |
| return nil |
| } |
| |
| func (x *Engine) GetSearchEngineConfig() *Engine_SearchEngineConfig { |
| if x != nil { |
| if x, ok := x.EngineConfig.(*Engine_SearchEngineConfig_); ok { |
| return x.SearchEngineConfig |
| } |
| } |
| return nil |
| } |
| |
| func (x *Engine) GetMediaRecommendationEngineConfig() *Engine_MediaRecommendationEngineConfig { |
| if x != nil { |
| if x, ok := x.EngineConfig.(*Engine_MediaRecommendationEngineConfig_); ok { |
| return x.MediaRecommendationEngineConfig |
| } |
| } |
| return nil |
| } |
| |
| func (x *Engine) GetEngineMetadata() isEngine_EngineMetadata { |
| if x != nil { |
| return x.EngineMetadata |
| } |
| return nil |
| } |
| |
| func (x *Engine) GetRecommendationMetadata() *Engine_RecommendationMetadata { |
| if x != nil { |
| if x, ok := x.EngineMetadata.(*Engine_RecommendationMetadata_); ok { |
| return x.RecommendationMetadata |
| } |
| } |
| return nil |
| } |
| |
| func (x *Engine) GetChatEngineMetadata() *Engine_ChatEngineMetadata { |
| if x != nil { |
| if x, ok := x.EngineMetadata.(*Engine_ChatEngineMetadata_); ok { |
| return x.ChatEngineMetadata |
| } |
| } |
| return nil |
| } |
| |
| func (x *Engine) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *Engine) GetDisplayName() string { |
| if x != nil { |
| return x.DisplayName |
| } |
| return "" |
| } |
| |
| func (x *Engine) GetCreateTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.CreateTime |
| } |
| return nil |
| } |
| |
| func (x *Engine) GetUpdateTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.UpdateTime |
| } |
| return nil |
| } |
| |
| func (x *Engine) GetDataStoreIds() []string { |
| if x != nil { |
| return x.DataStoreIds |
| } |
| return nil |
| } |
| |
| func (x *Engine) GetSolutionType() SolutionType { |
| if x != nil { |
| return x.SolutionType |
| } |
| return SolutionType_SOLUTION_TYPE_UNSPECIFIED |
| } |
| |
| func (x *Engine) GetIndustryVertical() IndustryVertical { |
| if x != nil { |
| return x.IndustryVertical |
| } |
| return IndustryVertical_INDUSTRY_VERTICAL_UNSPECIFIED |
| } |
| |
| func (x *Engine) GetCommonConfig() *Engine_CommonConfig { |
| if x != nil { |
| return x.CommonConfig |
| } |
| return nil |
| } |
| |
| type isEngine_EngineConfig interface { |
| isEngine_EngineConfig() |
| } |
| |
| type Engine_SimilarDocumentsConfig struct { |
| // Additional config specs for a `similar-items` engine. |
| SimilarDocumentsConfig *Engine_SimilarDocumentsEngineConfig `protobuf:"bytes,9,opt,name=similar_documents_config,json=similarDocumentsConfig,proto3,oneof"` |
| } |
| |
| type Engine_ChatEngineConfig_ struct { |
| // Configurations for the Chat Engine. Only applicable if |
| // [solution_type][google.cloud.discoveryengine.v1alpha.Engine.solution_type] |
| // is |
| // [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_CHAT]. |
| ChatEngineConfig *Engine_ChatEngineConfig `protobuf:"bytes,11,opt,name=chat_engine_config,json=chatEngineConfig,proto3,oneof"` |
| } |
| |
| type Engine_SearchEngineConfig_ struct { |
| // Configurations for the Search Engine. Only applicable if |
| // [solution_type][google.cloud.discoveryengine.v1alpha.Engine.solution_type] |
| // is |
| // [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH]. |
| SearchEngineConfig *Engine_SearchEngineConfig `protobuf:"bytes,13,opt,name=search_engine_config,json=searchEngineConfig,proto3,oneof"` |
| } |
| |
| type Engine_MediaRecommendationEngineConfig_ struct { |
| // Configurations for the Media Engine. Only applicable on the data |
| // stores with |
| // [solution_type][google.cloud.discoveryengine.v1alpha.Engine.solution_type] |
| // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION] |
| // and |
| // [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1alpha.IndustryVertical.MEDIA] |
| // vertical. |
| MediaRecommendationEngineConfig *Engine_MediaRecommendationEngineConfig `protobuf:"bytes,14,opt,name=media_recommendation_engine_config,json=mediaRecommendationEngineConfig,proto3,oneof"` |
| } |
| |
| func (*Engine_SimilarDocumentsConfig) isEngine_EngineConfig() {} |
| |
| func (*Engine_ChatEngineConfig_) isEngine_EngineConfig() {} |
| |
| func (*Engine_SearchEngineConfig_) isEngine_EngineConfig() {} |
| |
| func (*Engine_MediaRecommendationEngineConfig_) isEngine_EngineConfig() {} |
| |
| type isEngine_EngineMetadata interface { |
| isEngine_EngineMetadata() |
| } |
| |
| type Engine_RecommendationMetadata_ struct { |
| // Output only. Additional information of a recommendation engine. Only |
| // applicable if |
| // [solution_type][google.cloud.discoveryengine.v1alpha.Engine.solution_type] |
| // is |
| // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. |
| RecommendationMetadata *Engine_RecommendationMetadata `protobuf:"bytes,10,opt,name=recommendation_metadata,json=recommendationMetadata,proto3,oneof"` |
| } |
| |
| type Engine_ChatEngineMetadata_ struct { |
| // Output only. Additional information of the Chat Engine. Only applicable |
| // if |
| // [solution_type][google.cloud.discoveryengine.v1alpha.Engine.solution_type] |
| // is |
| // [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_CHAT]. |
| ChatEngineMetadata *Engine_ChatEngineMetadata `protobuf:"bytes,12,opt,name=chat_engine_metadata,json=chatEngineMetadata,proto3,oneof"` |
| } |
| |
| func (*Engine_RecommendationMetadata_) isEngine_EngineMetadata() {} |
| |
| func (*Engine_ChatEngineMetadata_) isEngine_EngineMetadata() {} |
| |
| // Configurations for a Search Engine. |
| type Engine_SearchEngineConfig struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The search feature tier of this engine. |
| // |
| // Different tiers might have different |
| // pricing. To learn more, check the pricing documentation. |
| // |
| // Defaults to |
| // [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1alpha.SearchTier.SEARCH_TIER_STANDARD] |
| // if not specified. |
| SearchTier SearchTier `protobuf:"varint,1,opt,name=search_tier,json=searchTier,proto3,enum=google.cloud.discoveryengine.v1alpha.SearchTier" json:"search_tier,omitempty"` |
| // The add-on that this search engine enables. |
| SearchAddOns []SearchAddOn `protobuf:"varint,2,rep,packed,name=search_add_ons,json=searchAddOns,proto3,enum=google.cloud.discoveryengine.v1alpha.SearchAddOn" json:"search_add_ons,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Engine_SearchEngineConfig) Reset() { |
| *x = Engine_SearchEngineConfig{} |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Engine_SearchEngineConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Engine_SearchEngineConfig) ProtoMessage() {} |
| |
| func (x *Engine_SearchEngineConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[1] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Engine_SearchEngineConfig.ProtoReflect.Descriptor instead. |
| func (*Engine_SearchEngineConfig) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| func (x *Engine_SearchEngineConfig) GetSearchTier() SearchTier { |
| if x != nil { |
| return x.SearchTier |
| } |
| return SearchTier_SEARCH_TIER_UNSPECIFIED |
| } |
| |
| func (x *Engine_SearchEngineConfig) GetSearchAddOns() []SearchAddOn { |
| if x != nil { |
| return x.SearchAddOns |
| } |
| return nil |
| } |
| |
| // Additional config specs for a `similar-items` engine. |
| type Engine_SimilarDocumentsEngineConfig struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Engine_SimilarDocumentsEngineConfig) Reset() { |
| *x = Engine_SimilarDocumentsEngineConfig{} |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Engine_SimilarDocumentsEngineConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Engine_SimilarDocumentsEngineConfig) ProtoMessage() {} |
| |
| func (x *Engine_SimilarDocumentsEngineConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[2] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Engine_SimilarDocumentsEngineConfig.ProtoReflect.Descriptor instead. |
| func (*Engine_SimilarDocumentsEngineConfig) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 1} |
| } |
| |
| // Additional config specs for a Media Recommendation engine. |
| type Engine_MediaRecommendationEngineConfig struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Required. The type of engine. e.g., `recommended-for-you`. |
| // |
| // This field together with |
| // [optimization_objective][Engine.optimization_objective] describe engine |
| // metadata to use to control engine training and serving. |
| // |
| // Currently supported values: `recommended-for-you`, `others-you-may-like`, |
| // `more-like-this`, `most-popular-items`. |
| Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` |
| // The optimization objective. e.g., `cvr`. |
| // |
| // This field together with |
| // [optimization_objective][google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.type] |
| // describe engine metadata to use to control engine training and serving. |
| // |
| // Currently supported |
| // values: `ctr`, `cvr`. |
| // |
| // If not specified, we choose default based on engine type. |
| // |
| // Default depends on type of recommendation: |
| // |
| // `recommended-for-you` => `ctr` |
| // |
| // `others-you-may-like` => `ctr` |
| OptimizationObjective string `protobuf:"bytes,2,opt,name=optimization_objective,json=optimizationObjective,proto3" json:"optimization_objective,omitempty"` |
| // Name and value of the custom threshold for cvr optimization_objective. |
| // For target_field `watch-time`, target_field_value must be an integer |
| // value indicating the media progress time in seconds between (0, 86400] |
| // (excludes 0, includes 86400) (e.g., 90). |
| // For target_field `watch-percentage`, the target_field_value must be a |
| // valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., |
| // 0.5). |
| OptimizationObjectiveConfig *Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig `protobuf:"bytes,3,opt,name=optimization_objective_config,json=optimizationObjectiveConfig,proto3" json:"optimization_objective_config,omitempty"` |
| // The training state that the engine is in (e.g. |
| // `TRAINING` or `PAUSED`). |
| // |
| // Since part of the cost of running the service |
| // is frequency of training - this can be used to determine when to train |
| // engine in order to control cost. If not specified: the default value for |
| // `CreateEngine` method is `TRAINING`. The default value for |
| // `UpdateEngine` method is to keep the state the same as before. |
| TrainingState Engine_MediaRecommendationEngineConfig_TrainingState `protobuf:"varint,4,opt,name=training_state,json=trainingState,proto3,enum=google.cloud.discoveryengine.v1alpha.Engine_MediaRecommendationEngineConfig_TrainingState" json:"training_state,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Engine_MediaRecommendationEngineConfig) Reset() { |
| *x = Engine_MediaRecommendationEngineConfig{} |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Engine_MediaRecommendationEngineConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Engine_MediaRecommendationEngineConfig) ProtoMessage() {} |
| |
| func (x *Engine_MediaRecommendationEngineConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[3] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Engine_MediaRecommendationEngineConfig.ProtoReflect.Descriptor instead. |
| func (*Engine_MediaRecommendationEngineConfig) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 2} |
| } |
| |
| func (x *Engine_MediaRecommendationEngineConfig) GetType() string { |
| if x != nil { |
| return x.Type |
| } |
| return "" |
| } |
| |
| func (x *Engine_MediaRecommendationEngineConfig) GetOptimizationObjective() string { |
| if x != nil { |
| return x.OptimizationObjective |
| } |
| return "" |
| } |
| |
| func (x *Engine_MediaRecommendationEngineConfig) GetOptimizationObjectiveConfig() *Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig { |
| if x != nil { |
| return x.OptimizationObjectiveConfig |
| } |
| return nil |
| } |
| |
| func (x *Engine_MediaRecommendationEngineConfig) GetTrainingState() Engine_MediaRecommendationEngineConfig_TrainingState { |
| if x != nil { |
| return x.TrainingState |
| } |
| return Engine_MediaRecommendationEngineConfig_TRAINING_STATE_UNSPECIFIED |
| } |
| |
| // Configurations for a Chat Engine. |
| type Engine_ChatEngineConfig struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The configurationt generate the Dialogflow agent that is associated to |
| // this Engine. |
| // |
| // Note that these configurations are one-time consumed by |
| // and passed to Dialogflow service. It means they cannot be retrieved using |
| // [EngineService.GetEngine][google.cloud.discoveryengine.v1alpha.EngineService.GetEngine] |
| // or |
| // [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] |
| // API after engine creation. |
| AgentCreationConfig *Engine_ChatEngineConfig_AgentCreationConfig `protobuf:"bytes,1,opt,name=agent_creation_config,json=agentCreationConfig,proto3" json:"agent_creation_config,omitempty"` |
| // The resource name of an exist Dialogflow agent to link to this Chat |
| // Engine. Customers can either provide `agent_creation_config` to create |
| // agent or provide an agent name that links the agent with the Chat engine. |
| // |
| // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent |
| // ID>`. |
| // |
| // Note that the `dialogflow_agent_to_link` are one-time consumed by and |
| // passed to Dialogflow service. It means they cannot be retrieved using |
| // [EngineService.GetEngine][google.cloud.discoveryengine.v1alpha.EngineService.GetEngine] |
| // or |
| // [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] |
| // API after engine creation. Use |
| // [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata.dialogflow_agent] |
| // for actual agent association after Engine is created. |
| DialogflowAgentToLink string `protobuf:"bytes,2,opt,name=dialogflow_agent_to_link,json=dialogflowAgentToLink,proto3" json:"dialogflow_agent_to_link,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Engine_ChatEngineConfig) Reset() { |
| *x = Engine_ChatEngineConfig{} |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Engine_ChatEngineConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Engine_ChatEngineConfig) ProtoMessage() {} |
| |
| func (x *Engine_ChatEngineConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[4] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Engine_ChatEngineConfig.ProtoReflect.Descriptor instead. |
| func (*Engine_ChatEngineConfig) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 3} |
| } |
| |
| func (x *Engine_ChatEngineConfig) GetAgentCreationConfig() *Engine_ChatEngineConfig_AgentCreationConfig { |
| if x != nil { |
| return x.AgentCreationConfig |
| } |
| return nil |
| } |
| |
| func (x *Engine_ChatEngineConfig) GetDialogflowAgentToLink() string { |
| if x != nil { |
| return x.DialogflowAgentToLink |
| } |
| return "" |
| } |
| |
| // Common configurations for an Engine. |
| type Engine_CommonConfig struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The name of the company, business or entity that is associated with the |
| // engine. Setting this may help improve LLM related features. |
| CompanyName string `protobuf:"bytes,1,opt,name=company_name,json=companyName,proto3" json:"company_name,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Engine_CommonConfig) Reset() { |
| *x = Engine_CommonConfig{} |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Engine_CommonConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Engine_CommonConfig) ProtoMessage() {} |
| |
| func (x *Engine_CommonConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[5] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Engine_CommonConfig.ProtoReflect.Descriptor instead. |
| func (*Engine_CommonConfig) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 4} |
| } |
| |
| func (x *Engine_CommonConfig) GetCompanyName() string { |
| if x != nil { |
| return x.CompanyName |
| } |
| return "" |
| } |
| |
| // Additional information of a recommendation engine. |
| type Engine_RecommendationMetadata struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Output only. The serving state of the engine: `ACTIVE`, `NOT_ACTIVE`. |
| ServingState Engine_RecommendationMetadata_ServingState `protobuf:"varint,1,opt,name=serving_state,json=servingState,proto3,enum=google.cloud.discoveryengine.v1alpha.Engine_RecommendationMetadata_ServingState" json:"serving_state,omitempty"` |
| // Output only. The state of data requirements for this engine: `DATA_OK` |
| // and `DATA_ERROR`. |
| // |
| // Engine cannot be trained if the data is in |
| // `DATA_ERROR` state. Engine can have `DATA_ERROR` state even |
| // if serving state is `ACTIVE`: engines were trained successfully before, |
| // but cannot be refreshed because the underlying engine no longer has |
| // sufficient data for training. |
| DataState Engine_RecommendationMetadata_DataState `protobuf:"varint,2,opt,name=data_state,json=dataState,proto3,enum=google.cloud.discoveryengine.v1alpha.Engine_RecommendationMetadata_DataState" json:"data_state,omitempty"` |
| // Output only. The timestamp when the latest successful tune finished. Only |
| // applicable on Media Recommendation engines. |
| LastTuneTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_tune_time,json=lastTuneTime,proto3" json:"last_tune_time,omitempty"` |
| // Output only. The latest tune operation id associated with the engine. |
| // Only applicable on Media Recommendation engines. |
| // |
| // If present, this operation id can be used to determine if there is an |
| // ongoing tune for this engine. To check the operation status, send the |
| // GetOperation request with this operation id in the engine resource |
| // format. If no tuning has happened for this engine, the string is empty. |
| TuningOperation string `protobuf:"bytes,4,opt,name=tuning_operation,json=tuningOperation,proto3" json:"tuning_operation,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Engine_RecommendationMetadata) Reset() { |
| *x = Engine_RecommendationMetadata{} |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[6] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Engine_RecommendationMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Engine_RecommendationMetadata) ProtoMessage() {} |
| |
| func (x *Engine_RecommendationMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[6] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Engine_RecommendationMetadata.ProtoReflect.Descriptor instead. |
| func (*Engine_RecommendationMetadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 5} |
| } |
| |
| func (x *Engine_RecommendationMetadata) GetServingState() Engine_RecommendationMetadata_ServingState { |
| if x != nil { |
| return x.ServingState |
| } |
| return Engine_RecommendationMetadata_SERVING_STATE_UNSPECIFIED |
| } |
| |
| func (x *Engine_RecommendationMetadata) GetDataState() Engine_RecommendationMetadata_DataState { |
| if x != nil { |
| return x.DataState |
| } |
| return Engine_RecommendationMetadata_DATA_STATE_UNSPECIFIED |
| } |
| |
| func (x *Engine_RecommendationMetadata) GetLastTuneTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.LastTuneTime |
| } |
| return nil |
| } |
| |
| func (x *Engine_RecommendationMetadata) GetTuningOperation() string { |
| if x != nil { |
| return x.TuningOperation |
| } |
| return "" |
| } |
| |
| // Additional information of a Chat Engine. |
| // Fields in this message are output only. |
| type Engine_ChatEngineMetadata struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The resource name of a Dialogflow agent, that this Chat Engine refers |
| // to. |
| // |
| // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent |
| // ID>`. |
| DialogflowAgent string `protobuf:"bytes,1,opt,name=dialogflow_agent,json=dialogflowAgent,proto3" json:"dialogflow_agent,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Engine_ChatEngineMetadata) Reset() { |
| *x = Engine_ChatEngineMetadata{} |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[7] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Engine_ChatEngineMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Engine_ChatEngineMetadata) ProtoMessage() {} |
| |
| func (x *Engine_ChatEngineMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[7] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Engine_ChatEngineMetadata.ProtoReflect.Descriptor instead. |
| func (*Engine_ChatEngineMetadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 6} |
| } |
| |
| func (x *Engine_ChatEngineMetadata) GetDialogflowAgent() string { |
| if x != nil { |
| return x.DialogflowAgent |
| } |
| return "" |
| } |
| |
| // Custom threshold for `cvr` optimization_objective. |
| type Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Required. The name of the field to target. Currently supported |
| // values: `watch-percentage`, `watch-time`. |
| TargetField string `protobuf:"bytes,1,opt,name=target_field,json=targetField,proto3" json:"target_field,omitempty"` |
| // Required. The threshold to be applied to the target (e.g., 0.5). |
| TargetFieldValueFloat float32 `protobuf:"fixed32,2,opt,name=target_field_value_float,json=targetFieldValueFloat,proto3" json:"target_field_value_float,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig) Reset() { |
| *x = Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig{} |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[8] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig) ProtoMessage() {} |
| |
| func (x *Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[8] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig.ProtoReflect.Descriptor instead. |
| func (*Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 2, 0} |
| } |
| |
| func (x *Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig) GetTargetField() string { |
| if x != nil { |
| return x.TargetField |
| } |
| return "" |
| } |
| |
| func (x *Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig) GetTargetFieldValueFloat() float32 { |
| if x != nil { |
| return x.TargetFieldValueFloat |
| } |
| return 0 |
| } |
| |
| // Configurations for generating a Dialogflow agent. |
| // |
| // Note that these configurations are one-time consumed by |
| // and passed to Dialogflow service. It means they cannot be retrieved using |
| // [EngineService.GetEngine][google.cloud.discoveryengine.v1alpha.EngineService.GetEngine] |
| // or |
| // [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] |
| // API after engine creation. |
| type Engine_ChatEngineConfig_AgentCreationConfig struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Name of the company, organization or other entity that the agent |
| // represents. Used for knowledge connector LLM prompt and for knowledge |
| // search. |
| Business string `protobuf:"bytes,1,opt,name=business,proto3" json:"business,omitempty"` |
| // Required. The default language of the agent as a language tag. |
| // See [Language |
| // Support](https://cloud.google.com/dialogflow/docs/reference/language) |
| // for a list of the currently supported language codes. |
| DefaultLanguageCode string `protobuf:"bytes,2,opt,name=default_language_code,json=defaultLanguageCode,proto3" json:"default_language_code,omitempty"` |
| // Required. The time zone of the agent from the [time zone |
| // database](https://www.iana.org/time-zones), e.g., America/New_York, |
| // Europe/Paris. |
| TimeZone string `protobuf:"bytes,3,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` |
| // Agent location for Agent creation, supported values: global/us/eu. |
| // If not provided, us Engine will create Agent using us-central-1 by |
| // default; eu Engine will create Agent using eu-west-1 by default. |
| Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Engine_ChatEngineConfig_AgentCreationConfig) Reset() { |
| *x = Engine_ChatEngineConfig_AgentCreationConfig{} |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[9] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Engine_ChatEngineConfig_AgentCreationConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Engine_ChatEngineConfig_AgentCreationConfig) ProtoMessage() {} |
| |
| func (x *Engine_ChatEngineConfig_AgentCreationConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[9] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Engine_ChatEngineConfig_AgentCreationConfig.ProtoReflect.Descriptor instead. |
| func (*Engine_ChatEngineConfig_AgentCreationConfig) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP(), []int{0, 3, 0} |
| } |
| |
| func (x *Engine_ChatEngineConfig_AgentCreationConfig) GetBusiness() string { |
| if x != nil { |
| return x.Business |
| } |
| return "" |
| } |
| |
| func (x *Engine_ChatEngineConfig_AgentCreationConfig) GetDefaultLanguageCode() string { |
| if x != nil { |
| return x.DefaultLanguageCode |
| } |
| return "" |
| } |
| |
| func (x *Engine_ChatEngineConfig_AgentCreationConfig) GetTimeZone() string { |
| if x != nil { |
| return x.TimeZone |
| } |
| return "" |
| } |
| |
| func (x *Engine_ChatEngineConfig_AgentCreationConfig) GetLocation() string { |
| if x != nil { |
| return x.Location |
| } |
| return "" |
| } |
| |
| var File_google_cloud_discoveryengine_v1alpha_engine_proto protoreflect.FileDescriptor |
| |
| const file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDesc = "" + |
| "\n" + |
| "1google/cloud/discoveryengine/v1alpha/engine.proto\x12$google.cloud.discoveryengine.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a1google/cloud/discoveryengine/v1alpha/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x1a\n" + |
| "\x06Engine\x12\x85\x01\n" + |
| "\x18similar_documents_config\x18\t \x01(\v2I.google.cloud.discoveryengine.v1alpha.Engine.SimilarDocumentsEngineConfigH\x00R\x16similarDocumentsConfig\x12m\n" + |
| "\x12chat_engine_config\x18\v \x01(\v2=.google.cloud.discoveryengine.v1alpha.Engine.ChatEngineConfigH\x00R\x10chatEngineConfig\x12s\n" + |
| "\x14search_engine_config\x18\r \x01(\v2?.google.cloud.discoveryengine.v1alpha.Engine.SearchEngineConfigH\x00R\x12searchEngineConfig\x12\x9b\x01\n" + |
| "\"media_recommendation_engine_config\x18\x0e \x01(\v2L.google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfigH\x00R\x1fmediaRecommendationEngineConfig\x12\x83\x01\n" + |
| "\x17recommendation_metadata\x18\n" + |
| " \x01(\v2C.google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadataB\x03\xe0A\x03H\x01R\x16recommendationMetadata\x12x\n" + |
| "\x14chat_engine_metadata\x18\f \x01(\v2?.google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadataB\x03\xe0A\x03H\x01R\x12chatEngineMetadata\x12\x17\n" + |
| "\x04name\x18\x01 \x01(\tB\x03\xe0A\x05R\x04name\x12&\n" + |
| "\fdisplay_name\x18\x02 \x01(\tB\x03\xe0A\x02R\vdisplayName\x12@\n" + |
| "\vcreate_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" + |
| "createTime\x12@\n" + |
| "\vupdate_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" + |
| "updateTime\x12$\n" + |
| "\x0edata_store_ids\x18\x05 \x03(\tR\fdataStoreIds\x12\\\n" + |
| "\rsolution_type\x18\x06 \x01(\x0e22.google.cloud.discoveryengine.v1alpha.SolutionTypeB\x03\xe0A\x02R\fsolutionType\x12c\n" + |
| "\x11industry_vertical\x18\x10 \x01(\x0e26.google.cloud.discoveryengine.v1alpha.IndustryVerticalR\x10industryVertical\x12^\n" + |
| "\rcommon_config\x18\x0f \x01(\v29.google.cloud.discoveryengine.v1alpha.Engine.CommonConfigR\fcommonConfig\x1a\xc0\x01\n" + |
| "\x12SearchEngineConfig\x12Q\n" + |
| "\vsearch_tier\x18\x01 \x01(\x0e20.google.cloud.discoveryengine.v1alpha.SearchTierR\n" + |
| "searchTier\x12W\n" + |
| "\x0esearch_add_ons\x18\x02 \x03(\x0e21.google.cloud.discoveryengine.v1alpha.SearchAddOnR\fsearchAddOns\x1a\x1e\n" + |
| "\x1cSimilarDocumentsEngineConfig\x1a\xf5\x04\n" + |
| "\x1fMediaRecommendationEngineConfig\x12\x17\n" + |
| "\x04type\x18\x01 \x01(\tB\x03\xe0A\x02R\x04type\x125\n" + |
| "\x16optimization_objective\x18\x02 \x01(\tR\x15optimizationObjective\x12\xac\x01\n" + |
| "\x1doptimization_objective_config\x18\x03 \x01(\v2h.google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfigR\x1boptimizationObjectiveConfig\x12\x81\x01\n" + |
| "\x0etraining_state\x18\x04 \x01(\x0e2Z.google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.TrainingStateR\rtrainingState\x1a\x83\x01\n" + |
| "\x1bOptimizationObjectiveConfig\x12&\n" + |
| "\ftarget_field\x18\x01 \x01(\tB\x03\xe0A\x02R\vtargetField\x12<\n" + |
| "\x18target_field_value_float\x18\x02 \x01(\x02B\x03\xe0A\x02R\x15targetFieldValueFloat\"I\n" + |
| "\rTrainingState\x12\x1e\n" + |
| "\x1aTRAINING_STATE_UNSPECIFIED\x10\x00\x12\n" + |
| "\n" + |
| "\x06PAUSED\x10\x01\x12\f\n" + |
| "\bTRAINING\x10\x02\x1a\xf9\x02\n" + |
| "\x10ChatEngineConfig\x12\x85\x01\n" + |
| "\x15agent_creation_config\x18\x01 \x01(\v2Q.google.cloud.discoveryengine.v1alpha.Engine.ChatEngineConfig.AgentCreationConfigR\x13agentCreationConfig\x127\n" + |
| "\x18dialogflow_agent_to_link\x18\x02 \x01(\tR\x15dialogflowAgentToLink\x1a\xa3\x01\n" + |
| "\x13AgentCreationConfig\x12\x1a\n" + |
| "\bbusiness\x18\x01 \x01(\tR\bbusiness\x122\n" + |
| "\x15default_language_code\x18\x02 \x01(\tR\x13defaultLanguageCode\x12 \n" + |
| "\ttime_zone\x18\x03 \x01(\tB\x03\xe0A\x02R\btimeZone\x12\x1a\n" + |
| "\blocation\x18\x04 \x01(\tR\blocation\x1a1\n" + |
| "\fCommonConfig\x12!\n" + |
| "\fcompany_name\x18\x01 \x01(\tR\vcompanyName\x1a\x98\x04\n" + |
| "\x16RecommendationMetadata\x12z\n" + |
| "\rserving_state\x18\x01 \x01(\x0e2P.google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadata.ServingStateB\x03\xe0A\x03R\fservingState\x12q\n" + |
| "\n" + |
| "data_state\x18\x02 \x01(\x0e2M.google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadata.DataStateB\x03\xe0A\x03R\tdataState\x12E\n" + |
| "\x0elast_tune_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\flastTuneTime\x12.\n" + |
| "\x10tuning_operation\x18\x04 \x01(\tB\x03\xe0A\x03R\x0ftuningOperation\"R\n" + |
| "\fServingState\x12\x1d\n" + |
| "\x19SERVING_STATE_UNSPECIFIED\x10\x00\x12\f\n" + |
| "\bINACTIVE\x10\x01\x12\n" + |
| "\n" + |
| "\x06ACTIVE\x10\x02\x12\t\n" + |
| "\x05TUNED\x10\x03\"D\n" + |
| "\tDataState\x12\x1a\n" + |
| "\x16DATA_STATE_UNSPECIFIED\x10\x00\x12\v\n" + |
| "\aDATA_OK\x10\x01\x12\x0e\n" + |
| "\n" + |
| "DATA_ERROR\x10\x02\x1a?\n" + |
| "\x12ChatEngineMetadata\x12)\n" + |
| "\x10dialogflow_agent\x18\x01 \x01(\tR\x0fdialogflowAgent:}\xeaAz\n" + |
| "%discoveryengine.googleapis.com/Engine\x12Qprojects/{project}/locations/{location}/collections/{collection}/engines/{engine}B\x0f\n" + |
| "\rengine_configB\x11\n" + |
| "\x0fengine_metadataB\x97\x02\n" + |
| "(com.google.cloud.discoveryengine.v1alphaB\vEngineProtoP\x01ZRcloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb\xa2\x02\x0fDISCOVERYENGINE\xaa\x02$Google.Cloud.DiscoveryEngine.V1Alpha\xca\x02$Google\\Cloud\\DiscoveryEngine\\V1alpha\xea\x02'Google::Cloud::DiscoveryEngine::V1alphab\x06proto3" |
| |
| var ( |
| file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescOnce sync.Once |
| file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescData []byte |
| ) |
| |
| func file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescGZIP() []byte { |
| file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescOnce.Do(func() { |
| file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDesc), len(file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDesc))) |
| }) |
| return file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDescData |
| } |
| |
| var file_google_cloud_discoveryengine_v1alpha_engine_proto_enumTypes = make([]protoimpl.EnumInfo, 3) |
| var file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes = make([]protoimpl.MessageInfo, 10) |
| var file_google_cloud_discoveryengine_v1alpha_engine_proto_goTypes = []any{ |
| (Engine_MediaRecommendationEngineConfig_TrainingState)(0), // 0: google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.TrainingState |
| (Engine_RecommendationMetadata_ServingState)(0), // 1: google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadata.ServingState |
| (Engine_RecommendationMetadata_DataState)(0), // 2: google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadata.DataState |
| (*Engine)(nil), // 3: google.cloud.discoveryengine.v1alpha.Engine |
| (*Engine_SearchEngineConfig)(nil), // 4: google.cloud.discoveryengine.v1alpha.Engine.SearchEngineConfig |
| (*Engine_SimilarDocumentsEngineConfig)(nil), // 5: google.cloud.discoveryengine.v1alpha.Engine.SimilarDocumentsEngineConfig |
| (*Engine_MediaRecommendationEngineConfig)(nil), // 6: google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig |
| (*Engine_ChatEngineConfig)(nil), // 7: google.cloud.discoveryengine.v1alpha.Engine.ChatEngineConfig |
| (*Engine_CommonConfig)(nil), // 8: google.cloud.discoveryengine.v1alpha.Engine.CommonConfig |
| (*Engine_RecommendationMetadata)(nil), // 9: google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadata |
| (*Engine_ChatEngineMetadata)(nil), // 10: google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata |
| (*Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig)(nil), // 11: google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig |
| (*Engine_ChatEngineConfig_AgentCreationConfig)(nil), // 12: google.cloud.discoveryengine.v1alpha.Engine.ChatEngineConfig.AgentCreationConfig |
| (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp |
| (SolutionType)(0), // 14: google.cloud.discoveryengine.v1alpha.SolutionType |
| (IndustryVertical)(0), // 15: google.cloud.discoveryengine.v1alpha.IndustryVertical |
| (SearchTier)(0), // 16: google.cloud.discoveryengine.v1alpha.SearchTier |
| (SearchAddOn)(0), // 17: google.cloud.discoveryengine.v1alpha.SearchAddOn |
| } |
| var file_google_cloud_discoveryengine_v1alpha_engine_proto_depIdxs = []int32{ |
| 5, // 0: google.cloud.discoveryengine.v1alpha.Engine.similar_documents_config:type_name -> google.cloud.discoveryengine.v1alpha.Engine.SimilarDocumentsEngineConfig |
| 7, // 1: google.cloud.discoveryengine.v1alpha.Engine.chat_engine_config:type_name -> google.cloud.discoveryengine.v1alpha.Engine.ChatEngineConfig |
| 4, // 2: google.cloud.discoveryengine.v1alpha.Engine.search_engine_config:type_name -> google.cloud.discoveryengine.v1alpha.Engine.SearchEngineConfig |
| 6, // 3: google.cloud.discoveryengine.v1alpha.Engine.media_recommendation_engine_config:type_name -> google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig |
| 9, // 4: google.cloud.discoveryengine.v1alpha.Engine.recommendation_metadata:type_name -> google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadata |
| 10, // 5: google.cloud.discoveryengine.v1alpha.Engine.chat_engine_metadata:type_name -> google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata |
| 13, // 6: google.cloud.discoveryengine.v1alpha.Engine.create_time:type_name -> google.protobuf.Timestamp |
| 13, // 7: google.cloud.discoveryengine.v1alpha.Engine.update_time:type_name -> google.protobuf.Timestamp |
| 14, // 8: google.cloud.discoveryengine.v1alpha.Engine.solution_type:type_name -> google.cloud.discoveryengine.v1alpha.SolutionType |
| 15, // 9: google.cloud.discoveryengine.v1alpha.Engine.industry_vertical:type_name -> google.cloud.discoveryengine.v1alpha.IndustryVertical |
| 8, // 10: google.cloud.discoveryengine.v1alpha.Engine.common_config:type_name -> google.cloud.discoveryengine.v1alpha.Engine.CommonConfig |
| 16, // 11: google.cloud.discoveryengine.v1alpha.Engine.SearchEngineConfig.search_tier:type_name -> google.cloud.discoveryengine.v1alpha.SearchTier |
| 17, // 12: google.cloud.discoveryengine.v1alpha.Engine.SearchEngineConfig.search_add_ons:type_name -> google.cloud.discoveryengine.v1alpha.SearchAddOn |
| 11, // 13: google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.optimization_objective_config:type_name -> google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig |
| 0, // 14: google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.training_state:type_name -> google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.TrainingState |
| 12, // 15: google.cloud.discoveryengine.v1alpha.Engine.ChatEngineConfig.agent_creation_config:type_name -> google.cloud.discoveryengine.v1alpha.Engine.ChatEngineConfig.AgentCreationConfig |
| 1, // 16: google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadata.serving_state:type_name -> google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadata.ServingState |
| 2, // 17: google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadata.data_state:type_name -> google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadata.DataState |
| 13, // 18: google.cloud.discoveryengine.v1alpha.Engine.RecommendationMetadata.last_tune_time:type_name -> google.protobuf.Timestamp |
| 19, // [19:19] is the sub-list for method output_type |
| 19, // [19:19] is the sub-list for method input_type |
| 19, // [19:19] is the sub-list for extension type_name |
| 19, // [19:19] is the sub-list for extension extendee |
| 0, // [0:19] is the sub-list for field type_name |
| } |
| |
| func init() { file_google_cloud_discoveryengine_v1alpha_engine_proto_init() } |
| func file_google_cloud_discoveryengine_v1alpha_engine_proto_init() { |
| if File_google_cloud_discoveryengine_v1alpha_engine_proto != nil { |
| return |
| } |
| file_google_cloud_discoveryengine_v1alpha_common_proto_init() |
| file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes[0].OneofWrappers = []any{ |
| (*Engine_SimilarDocumentsConfig)(nil), |
| (*Engine_ChatEngineConfig_)(nil), |
| (*Engine_SearchEngineConfig_)(nil), |
| (*Engine_MediaRecommendationEngineConfig_)(nil), |
| (*Engine_RecommendationMetadata_)(nil), |
| (*Engine_ChatEngineMetadata_)(nil), |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDesc), len(file_google_cloud_discoveryengine_v1alpha_engine_proto_rawDesc)), |
| NumEnums: 3, |
| NumMessages: 10, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_google_cloud_discoveryengine_v1alpha_engine_proto_goTypes, |
| DependencyIndexes: file_google_cloud_discoveryengine_v1alpha_engine_proto_depIdxs, |
| EnumInfos: file_google_cloud_discoveryengine_v1alpha_engine_proto_enumTypes, |
| MessageInfos: file_google_cloud_discoveryengine_v1alpha_engine_proto_msgTypes, |
| }.Build() |
| File_google_cloud_discoveryengine_v1alpha_engine_proto = out.File |
| file_google_cloud_discoveryengine_v1alpha_engine_proto_goTypes = nil |
| file_google_cloud_discoveryengine_v1alpha_engine_proto_depIdxs = nil |
| } |