//
//Сервис реализует функционал получения реквизитов для авторизации в омничате

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.30.0
// 	protoc        v4.23.1
// source: keyapis/omnichat/v1/keyapis_omnichat_credentials_v1.proto

package keyapis_omnichat_v1

import (
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	_ "google.golang.org/protobuf/types/descriptorpb"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
	reflect "reflect"
	sync "sync"
)

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)
)

// Метаданные клиента
type ClientMetadata struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Версия приложения.
	// # Диапазон: 1..128
	AppVersion *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
	// Версия операционной системы.
	// # Диапазон: 1..128
	OsVersion *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
	// Модель устройства.
	// # Диапазон: 1..128
	DeviceModel *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=device_model,json=deviceModel,proto3" json:"device_model,omitempty"`
	// Название приложения.
	// Для разных приложений мы можем использовать разные tenantId и channel_id, сопоставление хранится в конфиге сервиса
	AppName string `protobuf:"bytes,4,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
}

func (x *ClientMetadata) Reset() {
	*x = ClientMetadata{}
	if protoimpl.UnsafeEnabled {
		mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*ClientMetadata) ProtoMessage() {}

func (x *ClientMetadata) ProtoReflect() protoreflect.Message {
	mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ClientMetadata.ProtoReflect.Descriptor instead.
func (*ClientMetadata) Descriptor() ([]byte, []int) {
	return file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescGZIP(), []int{0}
}

func (x *ClientMetadata) GetAppVersion() *wrapperspb.StringValue {
	if x != nil {
		return x.AppVersion
	}
	return nil
}

func (x *ClientMetadata) GetOsVersion() *wrapperspb.StringValue {
	if x != nil {
		return x.OsVersion
	}
	return nil
}

func (x *ClientMetadata) GetDeviceModel() *wrapperspb.StringValue {
	if x != nil {
		return x.DeviceModel
	}
	return nil
}

func (x *ClientMetadata) GetAppName() string {
	if x != nil {
		return x.AppName
	}
	return ""
}

// Реквезиты для авторизации в omnichat
type Credentials struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Закодированные в base64 клиентские данные.
	// Состав: appVersion, os, deviceModel, tenantId, login, phone, email, group_id, address, лицевые счета
	Payload string `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// HMAC-подпись от payload (клиентских данных)
	Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// Идентификатор канала в omnichat.
	// Определяется исходя из типа приложения
	ChannelId int32 `protobuf:"varint,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
}

func (x *Credentials) Reset() {
	*x = Credentials{}
	if protoimpl.UnsafeEnabled {
		mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*Credentials) ProtoMessage() {}

func (x *Credentials) ProtoReflect() protoreflect.Message {
	mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Credentials.ProtoReflect.Descriptor instead.
func (*Credentials) Descriptor() ([]byte, []int) {
	return file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescGZIP(), []int{1}
}

func (x *Credentials) GetPayload() string {
	if x != nil {
		return x.Payload
	}
	return ""
}

func (x *Credentials) GetHash() string {
	if x != nil {
		return x.Hash
	}
	return ""
}

func (x *Credentials) GetChannelId() int32 {
	if x != nil {
		return x.ChannelId
	}
	return 0
}

// Запрос реквезитов для авторизации в Omnichat
type PostCredentialsRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Метаданные клиента
	ClientMetadata *ClientMetadata `protobuf:"bytes,1,opt,name=client_metadata,json=clientMetadata,proto3" json:"client_metadata,omitempty"`
}

func (x *PostCredentialsRequest) Reset() {
	*x = PostCredentialsRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*PostCredentialsRequest) ProtoMessage() {}

func (x *PostCredentialsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[2]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use PostCredentialsRequest.ProtoReflect.Descriptor instead.
func (*PostCredentialsRequest) Descriptor() ([]byte, []int) {
	return file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescGZIP(), []int{2}
}

func (x *PostCredentialsRequest) GetClientMetadata() *ClientMetadata {
	if x != nil {
		return x.ClientMetadata
	}
	return nil
}

// Ответ на запрос реквезитов для авторизации в Omnichat
type PostCredentialsResponse struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Тип результата
	//
	// Types that are assignable to Type:
	//
	//	*PostCredentialsResponse_Data
	//	*PostCredentialsResponse_Error_
	Type isPostCredentialsResponse_Type `protobuf_oneof:"type"`
}

func (x *PostCredentialsResponse) Reset() {
	*x = PostCredentialsResponse{}
	if protoimpl.UnsafeEnabled {
		mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[3]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*PostCredentialsResponse) ProtoMessage() {}

func (x *PostCredentialsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[3]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use PostCredentialsResponse.ProtoReflect.Descriptor instead.
func (*PostCredentialsResponse) Descriptor() ([]byte, []int) {
	return file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescGZIP(), []int{3}
}

func (m *PostCredentialsResponse) GetType() isPostCredentialsResponse_Type {
	if m != nil {
		return m.Type
	}
	return nil
}

func (x *PostCredentialsResponse) GetData() *Credentials {
	if x, ok := x.GetType().(*PostCredentialsResponse_Data); ok {
		return x.Data
	}
	return nil
}

func (x *PostCredentialsResponse) GetError() *PostCredentialsResponse_Error {
	if x, ok := x.GetType().(*PostCredentialsResponse_Error_); ok {
		return x.Error
	}
	return nil
}

type isPostCredentialsResponse_Type interface {
	isPostCredentialsResponse_Type()
}

type PostCredentialsResponse_Data struct {
	// Реквизиты
	Data *Credentials `protobuf:"bytes,1,opt,name=data,proto3,oneof"`
}

type PostCredentialsResponse_Error_ struct {
	// Ошибка
	Error *PostCredentialsResponse_Error `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

func (*PostCredentialsResponse_Data) isPostCredentialsResponse_Type() {}

func (*PostCredentialsResponse_Error_) isPostCredentialsResponse_Type() {}

// Ошибки валидации.
// Эти проверки выполняются до обращения в базу данных
type ValidationError struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Путь к полю в формате наименования прото
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// Валидационное сообщение
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

func (x *ValidationError) Reset() {
	*x = ValidationError{}
	if protoimpl.UnsafeEnabled {
		mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[4]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*ValidationError) ProtoMessage() {}

func (x *ValidationError) ProtoReflect() protoreflect.Message {
	mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[4]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ValidationError.ProtoReflect.Descriptor instead.
func (*ValidationError) Descriptor() ([]byte, []int) {
	return file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescGZIP(), []int{4}
}

func (x *ValidationError) GetPath() string {
	if x != nil {
		return x.Path
	}
	return ""
}

func (x *ValidationError) GetMessage() string {
	if x != nil {
		return x.Message
	}
	return ""
}

// Ошибка запроса получения хешированной информации о пользователе
type PostCredentialsResponse_Error struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Types that are assignable to Reason:
	//
	//	*PostCredentialsResponse_Error_Validation
	//	*PostCredentialsResponse_Error_AppNameUnsupported_
	Reason isPostCredentialsResponse_Error_Reason `protobuf_oneof:"reason"`
}

func (x *PostCredentialsResponse_Error) Reset() {
	*x = PostCredentialsResponse_Error{}
	if protoimpl.UnsafeEnabled {
		mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[5]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*PostCredentialsResponse_Error) ProtoMessage() {}

func (x *PostCredentialsResponse_Error) ProtoReflect() protoreflect.Message {
	mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[5]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use PostCredentialsResponse_Error.ProtoReflect.Descriptor instead.
func (*PostCredentialsResponse_Error) Descriptor() ([]byte, []int) {
	return file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescGZIP(), []int{3, 0}
}

func (m *PostCredentialsResponse_Error) GetReason() isPostCredentialsResponse_Error_Reason {
	if m != nil {
		return m.Reason
	}
	return nil
}

func (x *PostCredentialsResponse_Error) GetValidation() *ValidationError {
	if x, ok := x.GetReason().(*PostCredentialsResponse_Error_Validation); ok {
		return x.Validation
	}
	return nil
}

func (x *PostCredentialsResponse_Error) GetAppNameUnsupported() *PostCredentialsResponse_Error_AppNameUnsupported {
	if x, ok := x.GetReason().(*PostCredentialsResponse_Error_AppNameUnsupported_); ok {
		return x.AppNameUnsupported
	}
	return nil
}

type isPostCredentialsResponse_Error_Reason interface {
	isPostCredentialsResponse_Error_Reason()
}

type PostCredentialsResponse_Error_Validation struct {
	// Ошибка валидации
	Validation *ValidationError `protobuf:"bytes,1,opt,name=validation,proto3,oneof"`
}

type PostCredentialsResponse_Error_AppNameUnsupported_ struct {
	// Переданное название приложения не поддерживается
	AppNameUnsupported *PostCredentialsResponse_Error_AppNameUnsupported `protobuf:"bytes,2,opt,name=app_name_unsupported,json=appNameUnsupported,proto3,oneof"`
}

func (*PostCredentialsResponse_Error_Validation) isPostCredentialsResponse_Error_Reason() {}

func (*PostCredentialsResponse_Error_AppNameUnsupported_) isPostCredentialsResponse_Error_Reason() {}

// Переданное название приложения не поддерживается
type PostCredentialsResponse_Error_AppNameUnsupported struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
}

func (x *PostCredentialsResponse_Error_AppNameUnsupported) Reset() {
	*x = PostCredentialsResponse_Error_AppNameUnsupported{}
	if protoimpl.UnsafeEnabled {
		mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[6]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*PostCredentialsResponse_Error_AppNameUnsupported) ProtoMessage() {}

func (x *PostCredentialsResponse_Error_AppNameUnsupported) ProtoReflect() protoreflect.Message {
	mi := &file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[6]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use PostCredentialsResponse_Error_AppNameUnsupported.ProtoReflect.Descriptor instead.
func (*PostCredentialsResponse_Error_AppNameUnsupported) Descriptor() ([]byte, []int) {
	return file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescGZIP(), []int{3, 0, 0}
}

var File_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto protoreflect.FileDescriptor

var file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDesc = []byte{
	0x0a, 0x39, 0x6b, 0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6f, 0x6d, 0x6e, 0x69, 0x63, 0x68,
	0x61, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x5f, 0x6f, 0x6d,
	0x6e, 0x69, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
	0x6c, 0x73, 0x5f, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x6b, 0x65, 0x79,
	0x61, 0x70, 0x69, 0x73, 0x2e, 0x6f, 0x6d, 0x6e, 0x69, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x76, 0x31,
	0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
	0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f,
	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64,
	0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
	0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
	0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
	0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
	0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
	0x6f, 0x22, 0xed, 0x01, 0x0a, 0x0e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61,
	0x64, 0x61, 0x74, 0x61, 0x12, 0x3d, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73,
	0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69,
	0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73,
	0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0a, 0x6f, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
	0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
	0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x6f, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
	0x12, 0x3f, 0x0a, 0x0c, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
	0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56,
	0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65,
	0x6c, 0x12, 0x1e, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20,
	0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d,
	0x65, 0x22, 0x69, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73,
	0x12, 0x1d, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
	0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12,
	0x17, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
	0x41, 0x02, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x22, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e,
	0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41,
	0x02, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x22, 0x6b, 0x0a, 0x16,
	0x50, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52,
	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x0f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
	0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
	0x23, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6f, 0x6d, 0x6e, 0x69, 0x63, 0x68,
	0x61, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61,
	0x64, 0x61, 0x74, 0x61, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x63, 0x6c, 0x69, 0x65, 0x6e,
	0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x92, 0x03, 0x0a, 0x17, 0x50, 0x6f,
	0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73,
	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20,
	0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6f, 0x6d,
	0x6e, 0x69, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e,
	0x74, 0x69, 0x61, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4a, 0x0a,
	0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6b,
	0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6f, 0x6d, 0x6e, 0x69, 0x63, 0x68, 0x61, 0x74, 0x2e,
	0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
	0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72,
	0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0xea, 0x01, 0x0a, 0x05, 0x45, 0x72,
	0x72, 0x6f, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f,
	0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x70, 0x69,
	0x73, 0x2e, 0x6f, 0x6d, 0x6e, 0x69, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61,
	0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52,
	0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x79, 0x0a, 0x14, 0x61,
	0x70, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x75, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72,
	0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x6b, 0x65, 0x79, 0x61,
	0x70, 0x69, 0x73, 0x2e, 0x6f, 0x6d, 0x6e, 0x69, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x76, 0x31, 0x2e,
	0x50, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52,
	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x41, 0x70,
	0x70, 0x4e, 0x61, 0x6d, 0x65, 0x55, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64,
	0x48, 0x00, 0x52, 0x12, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x55, 0x6e, 0x73, 0x75, 0x70,
	0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x1a, 0x14, 0x0a, 0x12, 0x41, 0x70, 0x70, 0x4e, 0x61, 0x6d,
	0x65, 0x55, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x42, 0x08, 0x0a, 0x06,
	0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x49,
	0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f,
	0x72, 0x12, 0x17, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
	0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1d, 0x0a, 0x07, 0x6d, 0x65,
	0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
	0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0xac, 0x01, 0x0a, 0x12, 0x43, 0x72,
	0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
	0x12, 0x95, 0x01, 0x0a, 0x0f, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
	0x69, 0x61, 0x6c, 0x73, 0x12, 0x2b, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6f,
	0x6d, 0x6e, 0x69, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x43,
	0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
	0x74, 0x1a, 0x2c, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6f, 0x6d, 0x6e, 0x69,
	0x63, 0x68, 0x61, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64,
	0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
	0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, 0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x6f, 0x6d, 0x6e,
	0x69, 0x63, 0x68, 0x61, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x65,
	0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x42, 0xa8, 0x01, 0x0a, 0x16, 0x72, 0x75, 0x2e,
	0x6b, 0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6f, 0x6d, 0x6e, 0x69, 0x63, 0x68, 0x61, 0x74,
	0x2e, 0x76, 0x31, 0x42, 0x16, 0x4b, 0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x4f, 0x6d, 0x6e, 0x69,
	0x63, 0x68, 0x61, 0x74, 0x56, 0x31, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x03, 0x50, 0x00, 0x5a,
	0x14, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x5f, 0x6f, 0x6d, 0x6e, 0x69, 0x63, 0x68,
	0x61, 0x74, 0x5f, 0x76, 0x31, 0xd8, 0x01, 0x01, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x11, 0x4b, 0x45,
	0x59, 0x41, 0x50, 0x49, 0x53, 0x4f, 0x4d, 0x4e, 0x49, 0x43, 0x48, 0x41, 0x54, 0x56, 0x31, 0xaa,
	0x02, 0x13, 0x4b, 0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x4f, 0x6d, 0x6e, 0x69, 0x63, 0x68,
	0x61, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x4b, 0x65, 0x79, 0x61, 0x70, 0x69, 0x73, 0x5c,
	0x4f, 0x6d, 0x6e, 0x69, 0x63, 0x68, 0x61, 0x74, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x15, 0x4b, 0x65,
	0x79, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x4f, 0x6d, 0x6e, 0x69, 0x63, 0x68, 0x61, 0x74, 0x3a,
	0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescOnce sync.Once
	file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescData = file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDesc
)

func file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescGZIP() []byte {
	file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescOnce.Do(func() {
		file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescData = protoimpl.X.CompressGZIP(file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescData)
	})
	return file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDescData
}

var file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_goTypes = []interface{}{
	(*ClientMetadata)(nil),                                   // 0: keyapis.omnichat.v1.ClientMetadata
	(*Credentials)(nil),                                      // 1: keyapis.omnichat.v1.Credentials
	(*PostCredentialsRequest)(nil),                           // 2: keyapis.omnichat.v1.PostCredentialsRequest
	(*PostCredentialsResponse)(nil),                          // 3: keyapis.omnichat.v1.PostCredentialsResponse
	(*ValidationError)(nil),                                  // 4: keyapis.omnichat.v1.ValidationError
	(*PostCredentialsResponse_Error)(nil),                    // 5: keyapis.omnichat.v1.PostCredentialsResponse.Error
	(*PostCredentialsResponse_Error_AppNameUnsupported)(nil), // 6: keyapis.omnichat.v1.PostCredentialsResponse.Error.AppNameUnsupported
	(*wrapperspb.StringValue)(nil),                           // 7: google.protobuf.StringValue
}
var file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_depIdxs = []int32{
	7, // 0: keyapis.omnichat.v1.ClientMetadata.app_version:type_name -> google.protobuf.StringValue
	7, // 1: keyapis.omnichat.v1.ClientMetadata.os_version:type_name -> google.protobuf.StringValue
	7, // 2: keyapis.omnichat.v1.ClientMetadata.device_model:type_name -> google.protobuf.StringValue
	0, // 3: keyapis.omnichat.v1.PostCredentialsRequest.client_metadata:type_name -> keyapis.omnichat.v1.ClientMetadata
	1, // 4: keyapis.omnichat.v1.PostCredentialsResponse.data:type_name -> keyapis.omnichat.v1.Credentials
	5, // 5: keyapis.omnichat.v1.PostCredentialsResponse.error:type_name -> keyapis.omnichat.v1.PostCredentialsResponse.Error
	4, // 6: keyapis.omnichat.v1.PostCredentialsResponse.Error.validation:type_name -> keyapis.omnichat.v1.ValidationError
	6, // 7: keyapis.omnichat.v1.PostCredentialsResponse.Error.app_name_unsupported:type_name -> keyapis.omnichat.v1.PostCredentialsResponse.Error.AppNameUnsupported
	2, // 8: keyapis.omnichat.v1.CredentialsService.PostCredentials:input_type -> keyapis.omnichat.v1.PostCredentialsRequest
	3, // 9: keyapis.omnichat.v1.CredentialsService.PostCredentials:output_type -> keyapis.omnichat.v1.PostCredentialsResponse
	9, // [9:10] is the sub-list for method output_type
	8, // [8:9] is the sub-list for method input_type
	8, // [8:8] is the sub-list for extension type_name
	8, // [8:8] is the sub-list for extension extendee
	0, // [0:8] is the sub-list for field type_name
}

func init() { file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_init() }
func file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_init() {
	if File_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*ClientMetadata); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*Credentials); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*PostCredentialsRequest); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*PostCredentialsResponse); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*ValidationError); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*PostCredentialsResponse_Error); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*PostCredentialsResponse_Error_AppNameUnsupported); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[3].OneofWrappers = []interface{}{
		(*PostCredentialsResponse_Data)(nil),
		(*PostCredentialsResponse_Error_)(nil),
	}
	file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes[5].OneofWrappers = []interface{}{
		(*PostCredentialsResponse_Error_Validation)(nil),
		(*PostCredentialsResponse_Error_AppNameUnsupported_)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   7,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_goTypes,
		DependencyIndexes: file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_depIdxs,
		MessageInfos:      file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_msgTypes,
	}.Build()
	File_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto = out.File
	file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_rawDesc = nil
	file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_goTypes = nil
	file_keyapis_omnichat_v1_keyapis_omnichat_credentials_v1_proto_depIdxs = nil
}
