// Copyright 2025 LiveKit, Inc.
//
// 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        v4.23.4
// source: livekit_connector_twilio.proto

package livekit

import (
	_ "github.com/livekit/protocol/livekit/logger"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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 ConnectTwilioCallRequest_TwilioCallDirection int32

const (
	// Call is inbound to LiveKit from Twilio
	ConnectTwilioCallRequest_TWILIO_CALL_DIRECTION_INBOUND ConnectTwilioCallRequest_TwilioCallDirection = 0
	// Call is outbound from LiveKit to Twilio
	ConnectTwilioCallRequest_TWILIO_CALL_DIRECTION_OUTBOUND ConnectTwilioCallRequest_TwilioCallDirection = 1
)

// Enum value maps for ConnectTwilioCallRequest_TwilioCallDirection.
var (
	ConnectTwilioCallRequest_TwilioCallDirection_name = map[int32]string{
		0: "TWILIO_CALL_DIRECTION_INBOUND",
		1: "TWILIO_CALL_DIRECTION_OUTBOUND",
	}
	ConnectTwilioCallRequest_TwilioCallDirection_value = map[string]int32{
		"TWILIO_CALL_DIRECTION_INBOUND":  0,
		"TWILIO_CALL_DIRECTION_OUTBOUND": 1,
	}
)

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

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

func (ConnectTwilioCallRequest_TwilioCallDirection) Descriptor() protoreflect.EnumDescriptor {
	return file_livekit_connector_twilio_proto_enumTypes[0].Descriptor()
}

func (ConnectTwilioCallRequest_TwilioCallDirection) Type() protoreflect.EnumType {
	return &file_livekit_connector_twilio_proto_enumTypes[0]
}

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

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

type ConnectTwilioCallRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The Direction of the call
	TwilioCallDirection ConnectTwilioCallRequest_TwilioCallDirection `protobuf:"varint,1,opt,name=twilio_call_direction,json=twilioCallDirection,proto3,enum=livekit.ConnectTwilioCallRequest_TwilioCallDirection" json:"twilio_call_direction,omitempty"`
	// What LiveKit room should this call be connected to
	RoomName string `protobuf:"bytes,2,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"`
	// Optional agents to dispatch the call to
	Agents []*RoomAgentDispatch `protobuf:"bytes,3,rep,name=agents,proto3" json:"agents,omitempty"`
	// Optional identity of the participant in LiveKit room
	// This is used for logging purposes, so it is advised to not put PII in this field.
	ParticipantIdentity string `protobuf:"bytes,4,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"`
	// Optional name of the participant in LiveKit room
	ParticipantName string `protobuf:"bytes,5,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"`
	// Optional user-defined metadata. Will be attached to a created Participant in the room.
	ParticipantMetadata string `protobuf:"bytes,6,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"`
	// Optional user-defined attributes. Will be attached to a created Participant in the room.
	ParticipantAttributes map[string]string `protobuf:"bytes,7,rep,name=participant_attributes,json=participantAttributes,proto3" json:"participant_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls.
	DestinationCountry string `protobuf:"bytes,8,opt,name=destination_country,json=destinationCountry,proto3" json:"destination_country,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*ConnectTwilioCallRequest) ProtoMessage() {}

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

func (x *ConnectTwilioCallRequest) GetTwilioCallDirection() ConnectTwilioCallRequest_TwilioCallDirection {
	if x != nil {
		return x.TwilioCallDirection
	}
	return ConnectTwilioCallRequest_TWILIO_CALL_DIRECTION_INBOUND
}

func (x *ConnectTwilioCallRequest) GetRoomName() string {
	if x != nil {
		return x.RoomName
	}
	return ""
}

func (x *ConnectTwilioCallRequest) GetAgents() []*RoomAgentDispatch {
	if x != nil {
		return x.Agents
	}
	return nil
}

func (x *ConnectTwilioCallRequest) GetParticipantIdentity() string {
	if x != nil {
		return x.ParticipantIdentity
	}
	return ""
}

func (x *ConnectTwilioCallRequest) GetParticipantName() string {
	if x != nil {
		return x.ParticipantName
	}
	return ""
}

func (x *ConnectTwilioCallRequest) GetParticipantMetadata() string {
	if x != nil {
		return x.ParticipantMetadata
	}
	return ""
}

func (x *ConnectTwilioCallRequest) GetParticipantAttributes() map[string]string {
	if x != nil {
		return x.ParticipantAttributes
	}
	return nil
}

func (x *ConnectTwilioCallRequest) GetDestinationCountry() string {
	if x != nil {
		return x.DestinationCountry
	}
	return ""
}

type ConnectTwilioCallResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The websocket URL which twilio media stream will connect to
	ConnectUrl    string `protobuf:"bytes,1,opt,name=connect_url,json=connectUrl,proto3" json:"connect_url,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ConnectTwilioCallResponse) ProtoMessage() {}

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

func (x *ConnectTwilioCallResponse) GetConnectUrl() string {
	if x != nil {
		return x.ConnectUrl
	}
	return ""
}

var File_livekit_connector_twilio_proto protoreflect.FileDescriptor

const file_livekit_connector_twilio_proto_rawDesc = "" +
	"\n" +
	"\x1elivekit_connector_twilio.proto\x12\alivekit\x1a\x1clivekit_agent_dispatch.proto\x1a\x14logger/options.proto\"\xae\x06\n" +
	"\x18ConnectTwilioCallRequest\x12i\n" +
	"\x15twilio_call_direction\x18\x01 \x01(\x0e25.livekit.ConnectTwilioCallRequest.TwilioCallDirectionR\x13twilioCallDirection\x12\x1b\n" +
	"\troom_name\x18\x02 \x01(\tR\broomName\x122\n" +
	"\x06agents\x18\x03 \x03(\v2\x1a.livekit.RoomAgentDispatchR\x06agents\x121\n" +
	"\x14participant_identity\x18\x04 \x01(\tR\x13participantIdentity\x12Q\n" +
	"\x10participant_name\x18\x05 \x01(\tB&\x88\xec,\x01\x92\xec,\x1e<redacted ({{ .Size }} bytes)>R\x0fparticipantName\x12Y\n" +
	"\x14participant_metadata\x18\x06 \x01(\tB&\x88\xec,\x01\x92\xec,\x1e<redacted ({{ .Size }} bytes)>R\x13participantMetadata\x12\x9b\x01\n" +
	"\x16participant_attributes\x18\a \x03(\v2<.livekit.ConnectTwilioCallRequest.ParticipantAttributesEntryB&\x88\xec,\x01\x92\xec,\x1e<redacted ({{ .Size }} bytes)>R\x15participantAttributes\x12/\n" +
	"\x13destination_country\x18\b \x01(\tR\x12destinationCountry\x1aH\n" +
	"\x1aParticipantAttributesEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\\\n" +
	"\x13TwilioCallDirection\x12!\n" +
	"\x1dTWILIO_CALL_DIRECTION_INBOUND\x10\x00\x12\"\n" +
	"\x1eTWILIO_CALL_DIRECTION_OUTBOUND\x10\x01\"<\n" +
	"\x19ConnectTwilioCallResponse\x12\x1f\n" +
	"\vconnect_url\x18\x01 \x01(\tR\n" +
	"connectUrlBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3"

var (
	file_livekit_connector_twilio_proto_rawDescOnce sync.Once
	file_livekit_connector_twilio_proto_rawDescData []byte
)

func file_livekit_connector_twilio_proto_rawDescGZIP() []byte {
	file_livekit_connector_twilio_proto_rawDescOnce.Do(func() {
		file_livekit_connector_twilio_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_livekit_connector_twilio_proto_rawDesc), len(file_livekit_connector_twilio_proto_rawDesc)))
	})
	return file_livekit_connector_twilio_proto_rawDescData
}

var file_livekit_connector_twilio_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_livekit_connector_twilio_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_livekit_connector_twilio_proto_goTypes = []any{
	(ConnectTwilioCallRequest_TwilioCallDirection)(0), // 0: livekit.ConnectTwilioCallRequest.TwilioCallDirection
	(*ConnectTwilioCallRequest)(nil),                  // 1: livekit.ConnectTwilioCallRequest
	(*ConnectTwilioCallResponse)(nil),                 // 2: livekit.ConnectTwilioCallResponse
	nil,                                               // 3: livekit.ConnectTwilioCallRequest.ParticipantAttributesEntry
	(*RoomAgentDispatch)(nil),                         // 4: livekit.RoomAgentDispatch
}
var file_livekit_connector_twilio_proto_depIdxs = []int32{
	0, // 0: livekit.ConnectTwilioCallRequest.twilio_call_direction:type_name -> livekit.ConnectTwilioCallRequest.TwilioCallDirection
	4, // 1: livekit.ConnectTwilioCallRequest.agents:type_name -> livekit.RoomAgentDispatch
	3, // 2: livekit.ConnectTwilioCallRequest.participant_attributes:type_name -> livekit.ConnectTwilioCallRequest.ParticipantAttributesEntry
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_livekit_connector_twilio_proto_init() }
func file_livekit_connector_twilio_proto_init() {
	if File_livekit_connector_twilio_proto != nil {
		return
	}
	file_livekit_agent_dispatch_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_livekit_connector_twilio_proto_rawDesc), len(file_livekit_connector_twilio_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_livekit_connector_twilio_proto_goTypes,
		DependencyIndexes: file_livekit_connector_twilio_proto_depIdxs,
		EnumInfos:         file_livekit_connector_twilio_proto_enumTypes,
		MessageInfos:      file_livekit_connector_twilio_proto_msgTypes,
	}.Build()
	File_livekit_connector_twilio_proto = out.File
	file_livekit_connector_twilio_proto_goTypes = nil
	file_livekit_connector_twilio_proto_depIdxs = nil
}
