blob: 6ade9bbe1109c87f2d70579782fce578023712cc [file] [edit]
// 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/v1/common.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"
)
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 industry vertical associated with the
// [DataStore][google.cloud.discoveryengine.v1.DataStore].
type IndustryVertical int32
const (
// Value used when unset.
IndustryVertical_INDUSTRY_VERTICAL_UNSPECIFIED IndustryVertical = 0
// The generic vertical for documents that are not specific to any industry
// vertical.
IndustryVertical_GENERIC IndustryVertical = 1
// The media industry vertical.
IndustryVertical_MEDIA IndustryVertical = 2
// The healthcare FHIR vertical.
IndustryVertical_HEALTHCARE_FHIR IndustryVertical = 7
)
// Enum value maps for IndustryVertical.
var (
IndustryVertical_name = map[int32]string{
0: "INDUSTRY_VERTICAL_UNSPECIFIED",
1: "GENERIC",
2: "MEDIA",
7: "HEALTHCARE_FHIR",
}
IndustryVertical_value = map[string]int32{
"INDUSTRY_VERTICAL_UNSPECIFIED": 0,
"GENERIC": 1,
"MEDIA": 2,
"HEALTHCARE_FHIR": 7,
}
)
func (x IndustryVertical) Enum() *IndustryVertical {
p := new(IndustryVertical)
*p = x
return p
}
func (x IndustryVertical) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IndustryVertical) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1_common_proto_enumTypes[0].Descriptor()
}
func (IndustryVertical) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1_common_proto_enumTypes[0]
}
func (x IndustryVertical) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IndustryVertical.Descriptor instead.
func (IndustryVertical) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{0}
}
// The type of solution.
type SolutionType int32
const (
// Default value.
SolutionType_SOLUTION_TYPE_UNSPECIFIED SolutionType = 0
// Used for Recommendations AI.
SolutionType_SOLUTION_TYPE_RECOMMENDATION SolutionType = 1
// Used for Discovery Search.
SolutionType_SOLUTION_TYPE_SEARCH SolutionType = 2
// Used for use cases related to the Generative AI agent.
SolutionType_SOLUTION_TYPE_CHAT SolutionType = 3
// Used for use cases related to the Generative Chat agent.
// It's used for Generative chat engine only, the associated data stores
// must enrolled with `SOLUTION_TYPE_CHAT` solution.
SolutionType_SOLUTION_TYPE_GENERATIVE_CHAT SolutionType = 4
)
// Enum value maps for SolutionType.
var (
SolutionType_name = map[int32]string{
0: "SOLUTION_TYPE_UNSPECIFIED",
1: "SOLUTION_TYPE_RECOMMENDATION",
2: "SOLUTION_TYPE_SEARCH",
3: "SOLUTION_TYPE_CHAT",
4: "SOLUTION_TYPE_GENERATIVE_CHAT",
}
SolutionType_value = map[string]int32{
"SOLUTION_TYPE_UNSPECIFIED": 0,
"SOLUTION_TYPE_RECOMMENDATION": 1,
"SOLUTION_TYPE_SEARCH": 2,
"SOLUTION_TYPE_CHAT": 3,
"SOLUTION_TYPE_GENERATIVE_CHAT": 4,
}
)
func (x SolutionType) Enum() *SolutionType {
p := new(SolutionType)
*p = x
return p
}
func (x SolutionType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SolutionType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1_common_proto_enumTypes[1].Descriptor()
}
func (SolutionType) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1_common_proto_enumTypes[1]
}
func (x SolutionType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SolutionType.Descriptor instead.
func (SolutionType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{1}
}
// Defines a further subdivision of `SolutionType`.
// Specifically applies to
// [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
type SearchUseCase int32
const (
// Value used when unset. Will not occur in CSS.
SearchUseCase_SEARCH_USE_CASE_UNSPECIFIED SearchUseCase = 0
// Search use case. Expects the traffic has a non-empty
// [query][google.cloud.discoveryengine.v1.SearchRequest.query].
SearchUseCase_SEARCH_USE_CASE_SEARCH SearchUseCase = 1
// Browse use case. Expects the traffic has an empty
// [query][google.cloud.discoveryengine.v1.SearchRequest.query].
SearchUseCase_SEARCH_USE_CASE_BROWSE SearchUseCase = 2
)
// Enum value maps for SearchUseCase.
var (
SearchUseCase_name = map[int32]string{
0: "SEARCH_USE_CASE_UNSPECIFIED",
1: "SEARCH_USE_CASE_SEARCH",
2: "SEARCH_USE_CASE_BROWSE",
}
SearchUseCase_value = map[string]int32{
"SEARCH_USE_CASE_UNSPECIFIED": 0,
"SEARCH_USE_CASE_SEARCH": 1,
"SEARCH_USE_CASE_BROWSE": 2,
}
)
func (x SearchUseCase) Enum() *SearchUseCase {
p := new(SearchUseCase)
*p = x
return p
}
func (x SearchUseCase) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SearchUseCase) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1_common_proto_enumTypes[2].Descriptor()
}
func (SearchUseCase) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1_common_proto_enumTypes[2]
}
func (x SearchUseCase) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SearchUseCase.Descriptor instead.
func (SearchUseCase) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{2}
}
// Tiers of search features. Different tiers might have different
// pricing. To learn more, check the pricing documentation.
type SearchTier int32
const (
// Default value when the enum is unspecified. This is invalid to use.
SearchTier_SEARCH_TIER_UNSPECIFIED SearchTier = 0
// Standard tier.
SearchTier_SEARCH_TIER_STANDARD SearchTier = 1
// Enterprise tier.
SearchTier_SEARCH_TIER_ENTERPRISE SearchTier = 2
)
// Enum value maps for SearchTier.
var (
SearchTier_name = map[int32]string{
0: "SEARCH_TIER_UNSPECIFIED",
1: "SEARCH_TIER_STANDARD",
2: "SEARCH_TIER_ENTERPRISE",
}
SearchTier_value = map[string]int32{
"SEARCH_TIER_UNSPECIFIED": 0,
"SEARCH_TIER_STANDARD": 1,
"SEARCH_TIER_ENTERPRISE": 2,
}
)
func (x SearchTier) Enum() *SearchTier {
p := new(SearchTier)
*p = x
return p
}
func (x SearchTier) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SearchTier) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1_common_proto_enumTypes[3].Descriptor()
}
func (SearchTier) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1_common_proto_enumTypes[3]
}
func (x SearchTier) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SearchTier.Descriptor instead.
func (SearchTier) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{3}
}
// Add-on that provides additional functionality for search.
type SearchAddOn int32
const (
// Default value when the enum is unspecified. This is invalid to use.
SearchAddOn_SEARCH_ADD_ON_UNSPECIFIED SearchAddOn = 0
// Large language model add-on.
SearchAddOn_SEARCH_ADD_ON_LLM SearchAddOn = 1
)
// Enum value maps for SearchAddOn.
var (
SearchAddOn_name = map[int32]string{
0: "SEARCH_ADD_ON_UNSPECIFIED",
1: "SEARCH_ADD_ON_LLM",
}
SearchAddOn_value = map[string]int32{
"SEARCH_ADD_ON_UNSPECIFIED": 0,
"SEARCH_ADD_ON_LLM": 1,
}
)
func (x SearchAddOn) Enum() *SearchAddOn {
p := new(SearchAddOn)
*p = x
return p
}
func (x SearchAddOn) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SearchAddOn) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1_common_proto_enumTypes[4].Descriptor()
}
func (SearchAddOn) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1_common_proto_enumTypes[4]
}
func (x SearchAddOn) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SearchAddOn.Descriptor instead.
func (SearchAddOn) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{4}
}
// A floating point interval.
type Interval struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The lower bound of the interval. If neither of the min fields are
// set, then the lower bound is negative infinity.
//
// This field must be not larger than max.
// Otherwise, an `INVALID_ARGUMENT` error is returned.
//
// Types that are valid to be assigned to Min:
//
// *Interval_Minimum
// *Interval_ExclusiveMinimum
Min isInterval_Min `protobuf_oneof:"min"`
// The upper bound of the interval. If neither of the max fields are
// set, then the upper bound is positive infinity.
//
// This field must be not smaller than min.
// Otherwise, an `INVALID_ARGUMENT` error is returned.
//
// Types that are valid to be assigned to Max:
//
// *Interval_Maximum
// *Interval_ExclusiveMaximum
Max isInterval_Max `protobuf_oneof:"max"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Interval) Reset() {
*x = Interval{}
mi := &file_google_cloud_discoveryengine_v1_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Interval) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Interval) ProtoMessage() {}
func (x *Interval) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_common_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 Interval.ProtoReflect.Descriptor instead.
func (*Interval) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{0}
}
func (x *Interval) GetMin() isInterval_Min {
if x != nil {
return x.Min
}
return nil
}
func (x *Interval) GetMinimum() float64 {
if x != nil {
if x, ok := x.Min.(*Interval_Minimum); ok {
return x.Minimum
}
}
return 0
}
func (x *Interval) GetExclusiveMinimum() float64 {
if x != nil {
if x, ok := x.Min.(*Interval_ExclusiveMinimum); ok {
return x.ExclusiveMinimum
}
}
return 0
}
func (x *Interval) GetMax() isInterval_Max {
if x != nil {
return x.Max
}
return nil
}
func (x *Interval) GetMaximum() float64 {
if x != nil {
if x, ok := x.Max.(*Interval_Maximum); ok {
return x.Maximum
}
}
return 0
}
func (x *Interval) GetExclusiveMaximum() float64 {
if x != nil {
if x, ok := x.Max.(*Interval_ExclusiveMaximum); ok {
return x.ExclusiveMaximum
}
}
return 0
}
type isInterval_Min interface {
isInterval_Min()
}
type Interval_Minimum struct {
// Inclusive lower bound.
Minimum float64 `protobuf:"fixed64,1,opt,name=minimum,proto3,oneof"`
}
type Interval_ExclusiveMinimum struct {
// Exclusive lower bound.
ExclusiveMinimum float64 `protobuf:"fixed64,2,opt,name=exclusive_minimum,json=exclusiveMinimum,proto3,oneof"`
}
func (*Interval_Minimum) isInterval_Min() {}
func (*Interval_ExclusiveMinimum) isInterval_Min() {}
type isInterval_Max interface {
isInterval_Max()
}
type Interval_Maximum struct {
// Inclusive upper bound.
Maximum float64 `protobuf:"fixed64,3,opt,name=maximum,proto3,oneof"`
}
type Interval_ExclusiveMaximum struct {
// Exclusive upper bound.
ExclusiveMaximum float64 `protobuf:"fixed64,4,opt,name=exclusive_maximum,json=exclusiveMaximum,proto3,oneof"`
}
func (*Interval_Maximum) isInterval_Max() {}
func (*Interval_ExclusiveMaximum) isInterval_Max() {}
// A custom attribute that is not explicitly modeled in a resource, e.g.
// [UserEvent][google.cloud.discoveryengine.v1.UserEvent].
type CustomAttribute struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The textual values of this custom attribute. For example, `["yellow",
// "green"]` when the key is "color".
//
// Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
// returned.
//
// Exactly one of
// [CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text]
// or
// [CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers]
// should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
Text []string `protobuf:"bytes,1,rep,name=text,proto3" json:"text,omitempty"`
// The numerical values of this custom attribute. For example, `[2.3, 15.4]`
// when the key is "lengths_cm".
//
// Exactly one of
// [CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text]
// or
// [CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers]
// should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
Numbers []float64 `protobuf:"fixed64,2,rep,packed,name=numbers,proto3" json:"numbers,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CustomAttribute) Reset() {
*x = CustomAttribute{}
mi := &file_google_cloud_discoveryengine_v1_common_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CustomAttribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CustomAttribute) ProtoMessage() {}
func (x *CustomAttribute) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_common_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 CustomAttribute.ProtoReflect.Descriptor instead.
func (*CustomAttribute) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{1}
}
func (x *CustomAttribute) GetText() []string {
if x != nil {
return x.Text
}
return nil
}
func (x *CustomAttribute) GetNumbers() []float64 {
if x != nil {
return x.Numbers
}
return nil
}
// Information of an end user.
type UserInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Highly recommended for logged-in users. Unique identifier for logged-in
// user, such as a user name. Don't set for anonymous users.
//
// Always use a hashed value for this ID.
//
// Don't set the field to the same fixed ID for different users. This mixes
// the event history of those users together, which results in degraded
// model quality.
//
// The field must be a UTF-8 encoded string with a length limit of 128
// characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// User agent as included in the HTTP header.
//
// The field must be a UTF-8 encoded string with a length limit of 1,000
// characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
//
// This should not be set when using the client side event reporting with
// GTM or JavaScript tag in
// [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1.UserEventService.CollectUserEvent]
// or if
// [UserEvent.direct_user_request][google.cloud.discoveryengine.v1.UserEvent.direct_user_request]
// is set.
UserAgent string `protobuf:"bytes,2,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
// Optional. IANA time zone, e.g. Europe/Budapest.
TimeZone string `protobuf:"bytes,3,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UserInfo) Reset() {
*x = UserInfo{}
mi := &file_google_cloud_discoveryengine_v1_common_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UserInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserInfo) ProtoMessage() {}
func (x *UserInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_common_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 UserInfo.ProtoReflect.Descriptor instead.
func (*UserInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{2}
}
func (x *UserInfo) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *UserInfo) GetUserAgent() string {
if x != nil {
return x.UserAgent
}
return ""
}
func (x *UserInfo) GetTimeZone() string {
if x != nil {
return x.TimeZone
}
return ""
}
// Double list.
type DoubleList struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Double values.
Values []float64 `protobuf:"fixed64,1,rep,packed,name=values,proto3" json:"values,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DoubleList) Reset() {
*x = DoubleList{}
mi := &file_google_cloud_discoveryengine_v1_common_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DoubleList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DoubleList) ProtoMessage() {}
func (x *DoubleList) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_common_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 DoubleList.ProtoReflect.Descriptor instead.
func (*DoubleList) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{3}
}
func (x *DoubleList) GetValues() []float64 {
if x != nil {
return x.Values
}
return nil
}
// Principal identifier of a user or a group.
type Principal struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Union field principal. Principal can be a user or a group.
//
// Types that are valid to be assigned to Principal:
//
// *Principal_UserId
// *Principal_GroupId
// *Principal_ExternalEntityId
Principal isPrincipal_Principal `protobuf_oneof:"principal"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Principal) Reset() {
*x = Principal{}
mi := &file_google_cloud_discoveryengine_v1_common_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Principal) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Principal) ProtoMessage() {}
func (x *Principal) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_common_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 Principal.ProtoReflect.Descriptor instead.
func (*Principal) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{4}
}
func (x *Principal) GetPrincipal() isPrincipal_Principal {
if x != nil {
return x.Principal
}
return nil
}
func (x *Principal) GetUserId() string {
if x != nil {
if x, ok := x.Principal.(*Principal_UserId); ok {
return x.UserId
}
}
return ""
}
func (x *Principal) GetGroupId() string {
if x != nil {
if x, ok := x.Principal.(*Principal_GroupId); ok {
return x.GroupId
}
}
return ""
}
func (x *Principal) GetExternalEntityId() string {
if x != nil {
if x, ok := x.Principal.(*Principal_ExternalEntityId); ok {
return x.ExternalEntityId
}
}
return ""
}
type isPrincipal_Principal interface {
isPrincipal_Principal()
}
type Principal_UserId struct {
// User identifier.
// For Google Workspace user account, user_id should be the google workspace
// user email.
// For non-google identity provider user account, user_id is the mapped user
// identifier configured during the workforcepool config.
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3,oneof"`
}
type Principal_GroupId struct {
// Group identifier.
// For Google Workspace user account, group_id should be the google
// workspace group email.
// For non-google identity provider user account, group_id is the mapped
// group identifier configured during the workforcepool config.
GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3,oneof"`
}
type Principal_ExternalEntityId struct {
// For 3P application identities which are not present in the customer
// identity provider.
ExternalEntityId string `protobuf:"bytes,3,opt,name=external_entity_id,json=externalEntityId,proto3,oneof"`
}
func (*Principal_UserId) isPrincipal_Principal() {}
func (*Principal_GroupId) isPrincipal_Principal() {}
func (*Principal_ExternalEntityId) isPrincipal_Principal() {}
// Config to data store for `HEALTHCARE_FHIR` vertical.
type HealthcareFhirConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical.
//
// If set to `true`, the predefined healthcare fhir schema can be extended
// for more customized searching and filtering.
EnableConfigurableSchema bool `protobuf:"varint,1,opt,name=enable_configurable_schema,json=enableConfigurableSchema,proto3" json:"enable_configurable_schema,omitempty"`
// Whether to enable static indexing for `HEALTHCARE_FHIR` batch
// ingestion.
//
// If set to `true`, the batch ingestion will be processed in a static
// indexing mode which is slower but more capable of handling larger
// volume.
EnableStaticIndexingForBatchIngestion bool `protobuf:"varint,2,opt,name=enable_static_indexing_for_batch_ingestion,json=enableStaticIndexingForBatchIngestion,proto3" json:"enable_static_indexing_for_batch_ingestion,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HealthcareFhirConfig) Reset() {
*x = HealthcareFhirConfig{}
mi := &file_google_cloud_discoveryengine_v1_common_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HealthcareFhirConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HealthcareFhirConfig) ProtoMessage() {}
func (x *HealthcareFhirConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_common_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 HealthcareFhirConfig.ProtoReflect.Descriptor instead.
func (*HealthcareFhirConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{5}
}
func (x *HealthcareFhirConfig) GetEnableConfigurableSchema() bool {
if x != nil {
return x.EnableConfigurableSchema
}
return false
}
func (x *HealthcareFhirConfig) GetEnableStaticIndexingForBatchIngestion() bool {
if x != nil {
return x.EnableStaticIndexingForBatchIngestion
}
return false
}
// Promotion proto includes uri and other helping information to display the
// promotion.
type SearchLinkPromotion struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. The title of the promotion.
// Maximum length: 160 characters.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// Optional. The URL for the page the user wants to promote. Must be set for
// site search. For other verticals, this is optional.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// Optional. The [Document][google.cloud.discoveryengine.v1.Document] the user
// wants to promote. For site search, leave unset and only populate uri. Can
// be set along with uri.
Document string `protobuf:"bytes,6,opt,name=document,proto3" json:"document,omitempty"`
// Optional. The promotion thumbnail image url.
ImageUri string `protobuf:"bytes,3,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"`
// Optional. The Promotion description.
// Maximum length: 200 characters.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Optional. The enabled promotion will be returned for any serving configs
// associated with the parent of the control this promotion is attached to.
//
// This flag is used for basic site search only.
Enabled bool `protobuf:"varint,5,opt,name=enabled,proto3" json:"enabled,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchLinkPromotion) Reset() {
*x = SearchLinkPromotion{}
mi := &file_google_cloud_discoveryengine_v1_common_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchLinkPromotion) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchLinkPromotion) ProtoMessage() {}
func (x *SearchLinkPromotion) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_common_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 SearchLinkPromotion.ProtoReflect.Descriptor instead.
func (*SearchLinkPromotion) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP(), []int{6}
}
func (x *SearchLinkPromotion) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *SearchLinkPromotion) GetUri() string {
if x != nil {
return x.Uri
}
return ""
}
func (x *SearchLinkPromotion) GetDocument() string {
if x != nil {
return x.Document
}
return ""
}
func (x *SearchLinkPromotion) GetImageUri() string {
if x != nil {
return x.ImageUri
}
return ""
}
func (x *SearchLinkPromotion) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *SearchLinkPromotion) GetEnabled() bool {
if x != nil {
return x.Enabled
}
return false
}
var File_google_cloud_discoveryengine_v1_common_proto protoreflect.FileDescriptor
const file_google_cloud_discoveryengine_v1_common_proto_rawDesc = "" +
"\n" +
",google/cloud/discoveryengine/v1/common.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xae\x01\n" +
"\bInterval\x12\x1a\n" +
"\aminimum\x18\x01 \x01(\x01H\x00R\aminimum\x12-\n" +
"\x11exclusive_minimum\x18\x02 \x01(\x01H\x00R\x10exclusiveMinimum\x12\x1a\n" +
"\amaximum\x18\x03 \x01(\x01H\x01R\amaximum\x12-\n" +
"\x11exclusive_maximum\x18\x04 \x01(\x01H\x01R\x10exclusiveMaximumB\x05\n" +
"\x03minB\x05\n" +
"\x03max\"?\n" +
"\x0fCustomAttribute\x12\x12\n" +
"\x04text\x18\x01 \x03(\tR\x04text\x12\x18\n" +
"\anumbers\x18\x02 \x03(\x01R\anumbers\"d\n" +
"\bUserInfo\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
"\n" +
"user_agent\x18\x02 \x01(\tR\tuserAgent\x12 \n" +
"\ttime_zone\x18\x03 \x01(\tB\x03\xe0A\x01R\btimeZone\"$\n" +
"\n" +
"DoubleList\x12\x16\n" +
"\x06values\x18\x01 \x03(\x01R\x06values\"\x80\x01\n" +
"\tPrincipal\x12\x19\n" +
"\auser_id\x18\x01 \x01(\tH\x00R\x06userId\x12\x1b\n" +
"\bgroup_id\x18\x02 \x01(\tH\x00R\agroupId\x12.\n" +
"\x12external_entity_id\x18\x03 \x01(\tH\x00R\x10externalEntityIdB\v\n" +
"\tprincipal\"\xaf\x01\n" +
"\x14HealthcareFhirConfig\x12<\n" +
"\x1aenable_configurable_schema\x18\x01 \x01(\bR\x18enableConfigurableSchema\x12Y\n" +
"*enable_static_indexing_for_batch_ingestion\x18\x02 \x01(\bR%enableStaticIndexingForBatchIngestion\"\xfc\x01\n" +
"\x13SearchLinkPromotion\x12\x19\n" +
"\x05title\x18\x01 \x01(\tB\x03\xe0A\x02R\x05title\x12\x15\n" +
"\x03uri\x18\x02 \x01(\tB\x03\xe0A\x01R\x03uri\x12K\n" +
"\bdocument\x18\x06 \x01(\tB/\xe0A\x01\xfaA)\n" +
"'discoveryengine.googleapis.com/DocumentR\bdocument\x12 \n" +
"\timage_uri\x18\x03 \x01(\tB\x03\xe0A\x01R\bimageUri\x12%\n" +
"\vdescription\x18\x04 \x01(\tB\x03\xe0A\x01R\vdescription\x12\x1d\n" +
"\aenabled\x18\x05 \x01(\bB\x03\xe0A\x01R\aenabled*b\n" +
"\x10IndustryVertical\x12!\n" +
"\x1dINDUSTRY_VERTICAL_UNSPECIFIED\x10\x00\x12\v\n" +
"\aGENERIC\x10\x01\x12\t\n" +
"\x05MEDIA\x10\x02\x12\x13\n" +
"\x0fHEALTHCARE_FHIR\x10\a*\xa4\x01\n" +
"\fSolutionType\x12\x1d\n" +
"\x19SOLUTION_TYPE_UNSPECIFIED\x10\x00\x12 \n" +
"\x1cSOLUTION_TYPE_RECOMMENDATION\x10\x01\x12\x18\n" +
"\x14SOLUTION_TYPE_SEARCH\x10\x02\x12\x16\n" +
"\x12SOLUTION_TYPE_CHAT\x10\x03\x12!\n" +
"\x1dSOLUTION_TYPE_GENERATIVE_CHAT\x10\x04*h\n" +
"\rSearchUseCase\x12\x1f\n" +
"\x1bSEARCH_USE_CASE_UNSPECIFIED\x10\x00\x12\x1a\n" +
"\x16SEARCH_USE_CASE_SEARCH\x10\x01\x12\x1a\n" +
"\x16SEARCH_USE_CASE_BROWSE\x10\x02*_\n" +
"\n" +
"SearchTier\x12\x1b\n" +
"\x17SEARCH_TIER_UNSPECIFIED\x10\x00\x12\x18\n" +
"\x14SEARCH_TIER_STANDARD\x10\x01\x12\x1a\n" +
"\x16SEARCH_TIER_ENTERPRISE\x10\x02*C\n" +
"\vSearchAddOn\x12\x1d\n" +
"\x19SEARCH_ADD_ON_UNSPECIFIED\x10\x00\x12\x15\n" +
"\x11SEARCH_ADD_ON_LLM\x10\x01B\xda\r\xeaA\xe6\x01\n" +
"%discoveryengine.googleapis.com/Branch\x12Qprojects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}\x12jprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}\xeaAm\n" +
")discoveryengine.googleapis.com/Collection\x12@projects/{project}/locations/{location}/collections/{collection}\xeaAR\n" +
"'discoveryengine.googleapis.com/Location\x12'projects/{project}/locations/{location}\xeaA}\n" +
".discoveryengine.googleapis.com/GroundingConfig\x12Kprojects/{project}/locations/{location}/groundingConfigs/{grounding_config}\xeaAw\n" +
",discoveryengine.googleapis.com/RankingConfig\x12Gprojects/{project}/locations/{location}/rankingConfigs/{ranking_config}\xeaAw\n" +
",discoveryengine.googleapis.com/LicenseConfig\x12Gprojects/{project}/locations/{location}/licenseConfigs/{license_config}\xeaAk\n" +
"(discoveryengine.googleapis.com/UserStore\x12?projects/{project}/locations/{location}/userStores/{user_store}\xeaAy\n" +
"#healthcare.googleapis.com/FhirStore\x12Rprojects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}\xeaA\xa4\x01\n" +
"&healthcare.googleapis.com/FhirResource\x12zprojects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}\xeaAy\n" +
"\"cloudkms.googleapis.com/CryptoKeys\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xeaA\xa7\x01\n" +
")cloudkms.googleapis.com/CryptoKeyVersions\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\n" +
"#com.google.cloud.discoveryengine.v1B\vCommonProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0fDISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\x06proto3"
var (
file_google_cloud_discoveryengine_v1_common_proto_rawDescOnce sync.Once
file_google_cloud_discoveryengine_v1_common_proto_rawDescData []byte
)
func file_google_cloud_discoveryengine_v1_common_proto_rawDescGZIP() []byte {
file_google_cloud_discoveryengine_v1_common_proto_rawDescOnce.Do(func() {
file_google_cloud_discoveryengine_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_discoveryengine_v1_common_proto_rawDesc), len(file_google_cloud_discoveryengine_v1_common_proto_rawDesc)))
})
return file_google_cloud_discoveryengine_v1_common_proto_rawDescData
}
var file_google_cloud_discoveryengine_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
var file_google_cloud_discoveryengine_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_google_cloud_discoveryengine_v1_common_proto_goTypes = []any{
(IndustryVertical)(0), // 0: google.cloud.discoveryengine.v1.IndustryVertical
(SolutionType)(0), // 1: google.cloud.discoveryengine.v1.SolutionType
(SearchUseCase)(0), // 2: google.cloud.discoveryengine.v1.SearchUseCase
(SearchTier)(0), // 3: google.cloud.discoveryengine.v1.SearchTier
(SearchAddOn)(0), // 4: google.cloud.discoveryengine.v1.SearchAddOn
(*Interval)(nil), // 5: google.cloud.discoveryengine.v1.Interval
(*CustomAttribute)(nil), // 6: google.cloud.discoveryengine.v1.CustomAttribute
(*UserInfo)(nil), // 7: google.cloud.discoveryengine.v1.UserInfo
(*DoubleList)(nil), // 8: google.cloud.discoveryengine.v1.DoubleList
(*Principal)(nil), // 9: google.cloud.discoveryengine.v1.Principal
(*HealthcareFhirConfig)(nil), // 10: google.cloud.discoveryengine.v1.HealthcareFhirConfig
(*SearchLinkPromotion)(nil), // 11: google.cloud.discoveryengine.v1.SearchLinkPromotion
}
var file_google_cloud_discoveryengine_v1_common_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_google_cloud_discoveryengine_v1_common_proto_init() }
func file_google_cloud_discoveryengine_v1_common_proto_init() {
if File_google_cloud_discoveryengine_v1_common_proto != nil {
return
}
file_google_cloud_discoveryengine_v1_common_proto_msgTypes[0].OneofWrappers = []any{
(*Interval_Minimum)(nil),
(*Interval_ExclusiveMinimum)(nil),
(*Interval_Maximum)(nil),
(*Interval_ExclusiveMaximum)(nil),
}
file_google_cloud_discoveryengine_v1_common_proto_msgTypes[4].OneofWrappers = []any{
(*Principal_UserId)(nil),
(*Principal_GroupId)(nil),
(*Principal_ExternalEntityId)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_discoveryengine_v1_common_proto_rawDesc), len(file_google_cloud_discoveryengine_v1_common_proto_rawDesc)),
NumEnums: 5,
NumMessages: 7,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_google_cloud_discoveryengine_v1_common_proto_goTypes,
DependencyIndexes: file_google_cloud_discoveryengine_v1_common_proto_depIdxs,
EnumInfos: file_google_cloud_discoveryengine_v1_common_proto_enumTypes,
MessageInfos: file_google_cloud_discoveryengine_v1_common_proto_msgTypes,
}.Build()
File_google_cloud_discoveryengine_v1_common_proto = out.File
file_google_cloud_discoveryengine_v1_common_proto_goTypes = nil
file_google_cloud_discoveryengine_v1_common_proto_depIdxs = nil
}