// 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/retail/v2alpha/user_event_service.proto

package retailpb

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	httpbody "google.golang.org/genproto/googleapis/api/httpbody"
	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 scope of user events to be rejoined with the latest product catalog.
// If the rejoining aims at reducing number of unjoined events, set
// `UserEventRejoinScope` to `UNJOINED_EVENTS`.
// If the rejoining aims at correcting product catalog information in joined
// events, set `UserEventRejoinScope` to `JOINED_EVENTS`.
// If all events needs to be rejoined, set `UserEventRejoinScope` to
// `USER_EVENT_REJOIN_SCOPE_UNSPECIFIED`.
type RejoinUserEventsRequest_UserEventRejoinScope int32

const (
	// Rejoin all events with the latest product catalog, including both joined
	// events and unjoined events.
	RejoinUserEventsRequest_USER_EVENT_REJOIN_SCOPE_UNSPECIFIED RejoinUserEventsRequest_UserEventRejoinScope = 0
	// Only rejoin joined events with the latest product catalog.
	RejoinUserEventsRequest_JOINED_EVENTS RejoinUserEventsRequest_UserEventRejoinScope = 1
	// Only rejoin unjoined events with the latest product catalog.
	RejoinUserEventsRequest_UNJOINED_EVENTS RejoinUserEventsRequest_UserEventRejoinScope = 2
)

// Enum value maps for RejoinUserEventsRequest_UserEventRejoinScope.
var (
	RejoinUserEventsRequest_UserEventRejoinScope_name = map[int32]string{
		0: "USER_EVENT_REJOIN_SCOPE_UNSPECIFIED",
		1: "JOINED_EVENTS",
		2: "UNJOINED_EVENTS",
	}
	RejoinUserEventsRequest_UserEventRejoinScope_value = map[string]int32{
		"USER_EVENT_REJOIN_SCOPE_UNSPECIFIED": 0,
		"JOINED_EVENTS":                       1,
		"UNJOINED_EVENTS":                     2,
	}
)

func (x RejoinUserEventsRequest_UserEventRejoinScope) Enum() *RejoinUserEventsRequest_UserEventRejoinScope {
	p := new(RejoinUserEventsRequest_UserEventRejoinScope)
	*p = x
	return p
}

func (x RejoinUserEventsRequest_UserEventRejoinScope) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (RejoinUserEventsRequest_UserEventRejoinScope) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_retail_v2alpha_user_event_service_proto_enumTypes[0].Descriptor()
}

func (RejoinUserEventsRequest_UserEventRejoinScope) Type() protoreflect.EnumType {
	return &file_google_cloud_retail_v2alpha_user_event_service_proto_enumTypes[0]
}

func (x RejoinUserEventsRequest_UserEventRejoinScope) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use RejoinUserEventsRequest_UserEventRejoinScope.Descriptor instead.
func (RejoinUserEventsRequest_UserEventRejoinScope) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescGZIP(), []int{2, 0}
}

// Request message for WriteUserEvent method.
type WriteUserEventRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The parent catalog resource name, such as
	// `projects/1234/locations/global/catalogs/default_catalog`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. User event to write.
	UserEvent *UserEvent `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"`
	// If set to true, the user event will be written asynchronously after
	// validation, and the API will respond without waiting for the write.
	// Therefore, silent failures can occur even if the API returns success. In
	// case of silent failures, error messages can be found in Stackdriver logs.
	WriteAsync    bool `protobuf:"varint,3,opt,name=write_async,json=writeAsync,proto3" json:"write_async,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *WriteUserEventRequest) Reset() {
	*x = WriteUserEventRequest{}
	mi := &file_google_cloud_retail_v2alpha_user_event_service_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *WriteUserEventRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*WriteUserEventRequest) ProtoMessage() {}

func (x *WriteUserEventRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2alpha_user_event_service_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 WriteUserEventRequest.ProtoReflect.Descriptor instead.
func (*WriteUserEventRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescGZIP(), []int{0}
}

func (x *WriteUserEventRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *WriteUserEventRequest) GetUserEvent() *UserEvent {
	if x != nil {
		return x.UserEvent
	}
	return nil
}

func (x *WriteUserEventRequest) GetWriteAsync() bool {
	if x != nil {
		return x.WriteAsync
	}
	return false
}

// Request message for CollectUserEvent method.
type CollectUserEventRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The rule that can convert the raw_json to a user event. It is needed
	// only when the raw_json is set.
	//
	// Types that are valid to be assigned to ConversionRule:
	//
	//	*CollectUserEventRequest_PrebuiltRule
	ConversionRule isCollectUserEventRequest_ConversionRule `protobuf_oneof:"conversion_rule"`
	// Required. The parent catalog name, such as
	// `projects/1234/locations/global/catalogs/default_catalog`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. URL encoded UserEvent proto with a length limit of 2,000,000
	// characters.
	UserEvent string `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"`
	// The URL including cgi-parameters but excluding the hash fragment with a
	// length limit of 5,000 characters. This is often more useful than the
	// referer URL, because many browsers only send the domain for 3rd party
	// requests.
	Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	// The event timestamp in milliseconds. This prevents browser caching of
	// otherwise identical get requests. The name is abbreviated to reduce the
	// payload bytes.
	Ets int64 `protobuf:"varint,4,opt,name=ets,proto3" json:"ets,omitempty"`
	// An arbitrary serialized JSON string that contains necessary information
	// that can comprise a user event. When this field is specified, the
	// user_event field will be ignored. Note: line-delimited JSON is not
	// supported, a single JSON only.
	RawJson       string `protobuf:"bytes,5,opt,name=raw_json,json=rawJson,proto3" json:"raw_json,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CollectUserEventRequest) Reset() {
	*x = CollectUserEventRequest{}
	mi := &file_google_cloud_retail_v2alpha_user_event_service_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CollectUserEventRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CollectUserEventRequest) ProtoMessage() {}

func (x *CollectUserEventRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2alpha_user_event_service_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 CollectUserEventRequest.ProtoReflect.Descriptor instead.
func (*CollectUserEventRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescGZIP(), []int{1}
}

func (x *CollectUserEventRequest) GetConversionRule() isCollectUserEventRequest_ConversionRule {
	if x != nil {
		return x.ConversionRule
	}
	return nil
}

func (x *CollectUserEventRequest) GetPrebuiltRule() string {
	if x != nil {
		if x, ok := x.ConversionRule.(*CollectUserEventRequest_PrebuiltRule); ok {
			return x.PrebuiltRule
		}
	}
	return ""
}

func (x *CollectUserEventRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *CollectUserEventRequest) GetUserEvent() string {
	if x != nil {
		return x.UserEvent
	}
	return ""
}

func (x *CollectUserEventRequest) GetUri() string {
	if x != nil {
		return x.Uri
	}
	return ""
}

func (x *CollectUserEventRequest) GetEts() int64 {
	if x != nil {
		return x.Ets
	}
	return 0
}

func (x *CollectUserEventRequest) GetRawJson() string {
	if x != nil {
		return x.RawJson
	}
	return ""
}

type isCollectUserEventRequest_ConversionRule interface {
	isCollectUserEventRequest_ConversionRule()
}

type CollectUserEventRequest_PrebuiltRule struct {
	// The prebuilt rule name that can convert a specific type of raw_json.
	// For example: "ga4_bq" rule for the GA4 user event schema.
	PrebuiltRule string `protobuf:"bytes,6,opt,name=prebuilt_rule,json=prebuiltRule,proto3,oneof"`
}

func (*CollectUserEventRequest_PrebuiltRule) isCollectUserEventRequest_ConversionRule() {}

// Request message for RejoinUserEvents method.
type RejoinUserEventsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The parent catalog resource name, such as
	// `projects/1234/locations/global/catalogs/default_catalog`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The type of the user event rejoin to define the scope and range of the user
	// events to be rejoined with the latest product catalog. Defaults to
	// `USER_EVENT_REJOIN_SCOPE_UNSPECIFIED` if this field is not set, or set to
	// an invalid integer value.
	UserEventRejoinScope RejoinUserEventsRequest_UserEventRejoinScope `protobuf:"varint,2,opt,name=user_event_rejoin_scope,json=userEventRejoinScope,proto3,enum=google.cloud.retail.v2alpha.RejoinUserEventsRequest_UserEventRejoinScope" json:"user_event_rejoin_scope,omitempty"`
	unknownFields        protoimpl.UnknownFields
	sizeCache            protoimpl.SizeCache
}

func (x *RejoinUserEventsRequest) Reset() {
	*x = RejoinUserEventsRequest{}
	mi := &file_google_cloud_retail_v2alpha_user_event_service_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *RejoinUserEventsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*RejoinUserEventsRequest) ProtoMessage() {}

func (x *RejoinUserEventsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2alpha_user_event_service_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 RejoinUserEventsRequest.ProtoReflect.Descriptor instead.
func (*RejoinUserEventsRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescGZIP(), []int{2}
}

func (x *RejoinUserEventsRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *RejoinUserEventsRequest) GetUserEventRejoinScope() RejoinUserEventsRequest_UserEventRejoinScope {
	if x != nil {
		return x.UserEventRejoinScope
	}
	return RejoinUserEventsRequest_USER_EVENT_REJOIN_SCOPE_UNSPECIFIED
}

// Response message for `RejoinUserEvents` method.
type RejoinUserEventsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Number of user events that were joined with latest product catalog.
	RejoinedUserEventsCount int64 `protobuf:"varint,1,opt,name=rejoined_user_events_count,json=rejoinedUserEventsCount,proto3" json:"rejoined_user_events_count,omitempty"`
	unknownFields           protoimpl.UnknownFields
	sizeCache               protoimpl.SizeCache
}

func (x *RejoinUserEventsResponse) Reset() {
	*x = RejoinUserEventsResponse{}
	mi := &file_google_cloud_retail_v2alpha_user_event_service_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *RejoinUserEventsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*RejoinUserEventsResponse) ProtoMessage() {}

func (x *RejoinUserEventsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2alpha_user_event_service_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 RejoinUserEventsResponse.ProtoReflect.Descriptor instead.
func (*RejoinUserEventsResponse) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescGZIP(), []int{3}
}

func (x *RejoinUserEventsResponse) GetRejoinedUserEventsCount() int64 {
	if x != nil {
		return x.RejoinedUserEventsCount
	}
	return 0
}

// Metadata for `RejoinUserEvents` method.
type RejoinUserEventsMetadata struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *RejoinUserEventsMetadata) Reset() {
	*x = RejoinUserEventsMetadata{}
	mi := &file_google_cloud_retail_v2alpha_user_event_service_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *RejoinUserEventsMetadata) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*RejoinUserEventsMetadata) ProtoMessage() {}

func (x *RejoinUserEventsMetadata) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2alpha_user_event_service_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 RejoinUserEventsMetadata.ProtoReflect.Descriptor instead.
func (*RejoinUserEventsMetadata) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescGZIP(), []int{4}
}

var File_google_cloud_retail_v2alpha_user_event_service_proto protoreflect.FileDescriptor

const file_google_cloud_retail_v2alpha_user_event_service_proto_rawDesc = "" +
	"\n" +
	"4google/cloud/retail/v2alpha/user_event_service.proto\x12\x1bgoogle.cloud.retail.v2alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/httpbody.proto\x1a\x19google/api/resource.proto\x1a/google/cloud/retail/v2alpha/export_config.proto\x1a/google/cloud/retail/v2alpha/import_config.proto\x1a.google/cloud/retail/v2alpha/purge_config.proto\x1a,google/cloud/retail/v2alpha/user_event.proto\x1a#google/longrunning/operations.proto\"\xa1\x01\n" +
	"\x15WriteUserEventRequest\x12\x1b\n" +
	"\x06parent\x18\x01 \x01(\tB\x03\xe0A\x02R\x06parent\x12J\n" +
	"\n" +
	"user_event\x18\x02 \x01(\v2&.google.cloud.retail.v2alpha.UserEventB\x03\xe0A\x02R\tuserEvent\x12\x1f\n" +
	"\vwrite_async\x18\x03 \x01(\bR\n" +
	"writeAsync\"\xd3\x01\n" +
	"\x17CollectUserEventRequest\x12%\n" +
	"\rprebuilt_rule\x18\x06 \x01(\tH\x00R\fprebuiltRule\x12\x1b\n" +
	"\x06parent\x18\x01 \x01(\tB\x03\xe0A\x02R\x06parent\x12\"\n" +
	"\n" +
	"user_event\x18\x02 \x01(\tB\x03\xe0A\x02R\tuserEvent\x12\x10\n" +
	"\x03uri\x18\x03 \x01(\tR\x03uri\x12\x10\n" +
	"\x03ets\x18\x04 \x01(\x03R\x03ets\x12\x19\n" +
	"\braw_json\x18\x05 \x01(\tR\arawJsonB\x11\n" +
	"\x0fconversion_rule\"\xa2\x02\n" +
	"\x17RejoinUserEventsRequest\x12\x1b\n" +
	"\x06parent\x18\x01 \x01(\tB\x03\xe0A\x02R\x06parent\x12\x80\x01\n" +
	"\x17user_event_rejoin_scope\x18\x02 \x01(\x0e2I.google.cloud.retail.v2alpha.RejoinUserEventsRequest.UserEventRejoinScopeR\x14userEventRejoinScope\"g\n" +
	"\x14UserEventRejoinScope\x12'\n" +
	"#USER_EVENT_REJOIN_SCOPE_UNSPECIFIED\x10\x00\x12\x11\n" +
	"\rJOINED_EVENTS\x10\x01\x12\x13\n" +
	"\x0fUNJOINED_EVENTS\x10\x02\"W\n" +
	"\x18RejoinUserEventsResponse\x12;\n" +
	"\x1arejoined_user_events_count\x18\x01 \x01(\x03R\x17rejoinedUserEventsCount\"\x1a\n" +
	"\x18RejoinUserEventsMetadata2\xfb\f\n" +
	"\x10UserEventService\x12\xc6\x01\n" +
	"\x0eWriteUserEvent\x122.google.cloud.retail.v2alpha.WriteUserEventRequest\x1a&.google.cloud.retail.v2alpha.UserEvent\"X\x82\xd3\xe4\x93\x02R:\n" +
	"user_event\"D/v2alpha/{parent=projects/*/locations/*/catalogs/*}/userEvents:write\x12\xfd\x01\n" +
	"\x10CollectUserEvent\x124.google.cloud.retail.v2alpha.CollectUserEventRequest\x1a\x14.google.api.HttpBody\"\x9c\x01\x82\xd3\xe4\x93\x02\x95\x01ZK:\x01*\"F/v2alpha/{parent=projects/*/locations/*/catalogs/*}/userEvents:collect\x12F/v2alpha/{parent=projects/*/locations/*/catalogs/*}/userEvents:collect\x12\x9a\x02\n" +
	"\x0fPurgeUserEvents\x123.google.cloud.retail.v2alpha.PurgeUserEventsRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xcaA`\n" +
	"3google.cloud.retail.v2alpha.PurgeUserEventsResponse\x12)google.cloud.retail.v2alpha.PurgeMetadata\x82\xd3\xe4\x93\x02I:\x01*\"D/v2alpha/{parent=projects/*/locations/*/catalogs/*}/userEvents:purge\x12\x9f\x02\n" +
	"\x10ImportUserEvents\x124.google.cloud.retail.v2alpha.ImportUserEventsRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xcaAb\n" +
	"4google.cloud.retail.v2alpha.ImportUserEventsResponse\x12*google.cloud.retail.v2alpha.ImportMetadata\x82\xd3\xe4\x93\x02J:\x01*\"E/v2alpha/{parent=projects/*/locations/*/catalogs/*}/userEvents:import\x12\x9f\x02\n" +
	"\x10ExportUserEvents\x124.google.cloud.retail.v2alpha.ExportUserEventsRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xcaAb\n" +
	"4google.cloud.retail.v2alpha.ExportUserEventsResponse\x12*google.cloud.retail.v2alpha.ExportMetadata\x82\xd3\xe4\x93\x02J:\x01*\"E/v2alpha/{parent=projects/*/locations/*/catalogs/*}/userEvents:export\x12\xf1\x01\n" +
	"\x10RejoinUserEvents\x124.google.cloud.retail.v2alpha.RejoinUserEventsRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xcaA4\n" +
	"\x18RejoinUserEventsResponse\x12\x18RejoinUserEventsMetadata\x82\xd3\xe4\x93\x02J:\x01*\"E/v2alpha/{parent=projects/*/locations/*/catalogs/*}/userEvents:rejoin\x1aI\xcaA\x15retail.googleapis.com\xd2A.https://www.googleapis.com/auth/cloud-platformB\xd9\x01\n" +
	"\x1fcom.google.cloud.retail.v2alphaB\x15UserEventServiceProtoP\x01Z7cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb\xa2\x02\x06RETAIL\xaa\x02\x1bGoogle.Cloud.Retail.V2Alpha\xca\x02\x1bGoogle\\Cloud\\Retail\\V2alpha\xea\x02\x1eGoogle::Cloud::Retail::V2alphab\x06proto3"

var (
	file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescOnce sync.Once
	file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescData []byte
)

func file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescGZIP() []byte {
	file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescOnce.Do(func() {
		file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_retail_v2alpha_user_event_service_proto_rawDesc), len(file_google_cloud_retail_v2alpha_user_event_service_proto_rawDesc)))
	})
	return file_google_cloud_retail_v2alpha_user_event_service_proto_rawDescData
}

var file_google_cloud_retail_v2alpha_user_event_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_google_cloud_retail_v2alpha_user_event_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_google_cloud_retail_v2alpha_user_event_service_proto_goTypes = []any{
	(RejoinUserEventsRequest_UserEventRejoinScope)(0), // 0: google.cloud.retail.v2alpha.RejoinUserEventsRequest.UserEventRejoinScope
	(*WriteUserEventRequest)(nil),                     // 1: google.cloud.retail.v2alpha.WriteUserEventRequest
	(*CollectUserEventRequest)(nil),                   // 2: google.cloud.retail.v2alpha.CollectUserEventRequest
	(*RejoinUserEventsRequest)(nil),                   // 3: google.cloud.retail.v2alpha.RejoinUserEventsRequest
	(*RejoinUserEventsResponse)(nil),                  // 4: google.cloud.retail.v2alpha.RejoinUserEventsResponse
	(*RejoinUserEventsMetadata)(nil),                  // 5: google.cloud.retail.v2alpha.RejoinUserEventsMetadata
	(*UserEvent)(nil),                                 // 6: google.cloud.retail.v2alpha.UserEvent
	(*PurgeUserEventsRequest)(nil),                    // 7: google.cloud.retail.v2alpha.PurgeUserEventsRequest
	(*ImportUserEventsRequest)(nil),                   // 8: google.cloud.retail.v2alpha.ImportUserEventsRequest
	(*ExportUserEventsRequest)(nil),                   // 9: google.cloud.retail.v2alpha.ExportUserEventsRequest
	(*httpbody.HttpBody)(nil),                         // 10: google.api.HttpBody
	(*longrunningpb.Operation)(nil),                   // 11: google.longrunning.Operation
}
var file_google_cloud_retail_v2alpha_user_event_service_proto_depIdxs = []int32{
	6,  // 0: google.cloud.retail.v2alpha.WriteUserEventRequest.user_event:type_name -> google.cloud.retail.v2alpha.UserEvent
	0,  // 1: google.cloud.retail.v2alpha.RejoinUserEventsRequest.user_event_rejoin_scope:type_name -> google.cloud.retail.v2alpha.RejoinUserEventsRequest.UserEventRejoinScope
	1,  // 2: google.cloud.retail.v2alpha.UserEventService.WriteUserEvent:input_type -> google.cloud.retail.v2alpha.WriteUserEventRequest
	2,  // 3: google.cloud.retail.v2alpha.UserEventService.CollectUserEvent:input_type -> google.cloud.retail.v2alpha.CollectUserEventRequest
	7,  // 4: google.cloud.retail.v2alpha.UserEventService.PurgeUserEvents:input_type -> google.cloud.retail.v2alpha.PurgeUserEventsRequest
	8,  // 5: google.cloud.retail.v2alpha.UserEventService.ImportUserEvents:input_type -> google.cloud.retail.v2alpha.ImportUserEventsRequest
	9,  // 6: google.cloud.retail.v2alpha.UserEventService.ExportUserEvents:input_type -> google.cloud.retail.v2alpha.ExportUserEventsRequest
	3,  // 7: google.cloud.retail.v2alpha.UserEventService.RejoinUserEvents:input_type -> google.cloud.retail.v2alpha.RejoinUserEventsRequest
	6,  // 8: google.cloud.retail.v2alpha.UserEventService.WriteUserEvent:output_type -> google.cloud.retail.v2alpha.UserEvent
	10, // 9: google.cloud.retail.v2alpha.UserEventService.CollectUserEvent:output_type -> google.api.HttpBody
	11, // 10: google.cloud.retail.v2alpha.UserEventService.PurgeUserEvents:output_type -> google.longrunning.Operation
	11, // 11: google.cloud.retail.v2alpha.UserEventService.ImportUserEvents:output_type -> google.longrunning.Operation
	11, // 12: google.cloud.retail.v2alpha.UserEventService.ExportUserEvents:output_type -> google.longrunning.Operation
	11, // 13: google.cloud.retail.v2alpha.UserEventService.RejoinUserEvents:output_type -> google.longrunning.Operation
	8,  // [8:14] is the sub-list for method output_type
	2,  // [2:8] is the sub-list for method input_type
	2,  // [2:2] is the sub-list for extension type_name
	2,  // [2:2] is the sub-list for extension extendee
	0,  // [0:2] is the sub-list for field type_name
}

func init() { file_google_cloud_retail_v2alpha_user_event_service_proto_init() }
func file_google_cloud_retail_v2alpha_user_event_service_proto_init() {
	if File_google_cloud_retail_v2alpha_user_event_service_proto != nil {
		return
	}
	file_google_cloud_retail_v2alpha_export_config_proto_init()
	file_google_cloud_retail_v2alpha_import_config_proto_init()
	file_google_cloud_retail_v2alpha_purge_config_proto_init()
	file_google_cloud_retail_v2alpha_user_event_proto_init()
	file_google_cloud_retail_v2alpha_user_event_service_proto_msgTypes[1].OneofWrappers = []any{
		(*CollectUserEventRequest_PrebuiltRule)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_retail_v2alpha_user_event_service_proto_rawDesc), len(file_google_cloud_retail_v2alpha_user_event_service_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_google_cloud_retail_v2alpha_user_event_service_proto_goTypes,
		DependencyIndexes: file_google_cloud_retail_v2alpha_user_event_service_proto_depIdxs,
		EnumInfos:         file_google_cloud_retail_v2alpha_user_event_service_proto_enumTypes,
		MessageInfos:      file_google_cloud_retail_v2alpha_user_event_service_proto_msgTypes,
	}.Build()
	File_google_cloud_retail_v2alpha_user_event_service_proto = out.File
	file_google_cloud_retail_v2alpha_user_event_service_proto_goTypes = nil
	file_google_cloud_retail_v2alpha_user_event_service_proto_depIdxs = nil
}
