// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.7
// 	protoc        (unknown)
// source: entity/agent-gateway/session/v1/session.proto

package sessionv1

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 SessionStatus int32

const (
	SessionStatus_SESSION_STATUS_UNSPECIFIED SessionStatus = 0
	SessionStatus_SESSION_STATUS_ACTIVE      SessionStatus = 1
	SessionStatus_SESSION_STATUS_EXPIRED     SessionStatus = 2
)

// Enum value maps for SessionStatus.
var (
	SessionStatus_name = map[int32]string{
		0: "SESSION_STATUS_UNSPECIFIED",
		1: "SESSION_STATUS_ACTIVE",
		2: "SESSION_STATUS_EXPIRED",
	}
	SessionStatus_value = map[string]int32{
		"SESSION_STATUS_UNSPECIFIED": 0,
		"SESSION_STATUS_ACTIVE":      1,
		"SESSION_STATUS_EXPIRED":     2,
	}
)

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

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

func (SessionStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_entity_agent_gateway_session_v1_session_proto_enumTypes[0].Descriptor()
}

func (SessionStatus) Type() protoreflect.EnumType {
	return &file_entity_agent_gateway_session_v1_session_proto_enumTypes[0]
}

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

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

type TaskStatus int32

const (
	TaskStatus_TASK_STATUS_UNSPECIFIED TaskStatus = 0
	TaskStatus_TASK_STATUS_RECEIVED    TaskStatus = 1
	TaskStatus_TASK_STATUS_PROCESSING  TaskStatus = 2
	TaskStatus_TASK_STATUS_STEERING    TaskStatus = 3
	TaskStatus_TASK_STATUS_SUCCEEDED   TaskStatus = 4
	TaskStatus_TASK_STATUS_FAILED      TaskStatus = 5
	TaskStatus_TASK_STATUS_TIMEOUT     TaskStatus = 6
	TaskStatus_TASK_STATUS_REJECTED    TaskStatus = 7
)

// Enum value maps for TaskStatus.
var (
	TaskStatus_name = map[int32]string{
		0: "TASK_STATUS_UNSPECIFIED",
		1: "TASK_STATUS_RECEIVED",
		2: "TASK_STATUS_PROCESSING",
		3: "TASK_STATUS_STEERING",
		4: "TASK_STATUS_SUCCEEDED",
		5: "TASK_STATUS_FAILED",
		6: "TASK_STATUS_TIMEOUT",
		7: "TASK_STATUS_REJECTED",
	}
	TaskStatus_value = map[string]int32{
		"TASK_STATUS_UNSPECIFIED": 0,
		"TASK_STATUS_RECEIVED":    1,
		"TASK_STATUS_PROCESSING":  2,
		"TASK_STATUS_STEERING":    3,
		"TASK_STATUS_SUCCEEDED":   4,
		"TASK_STATUS_FAILED":      5,
		"TASK_STATUS_TIMEOUT":     6,
		"TASK_STATUS_REJECTED":    7,
	}
)

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

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

func (TaskStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_entity_agent_gateway_session_v1_session_proto_enumTypes[1].Descriptor()
}

func (TaskStatus) Type() protoreflect.EnumType {
	return &file_entity_agent_gateway_session_v1_session_proto_enumTypes[1]
}

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

// Deprecated: Use TaskStatus.Descriptor instead.
func (TaskStatus) EnumDescriptor() ([]byte, []int) {
	return file_entity_agent_gateway_session_v1_session_proto_rawDescGZIP(), []int{1}
}

type Session struct {
	state          protoimpl.MessageState `protogen:"open.v1"`
	SessionId      string                 `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	AgentId        string                 `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
	AgentSessionId string                 `protobuf:"bytes,3,opt,name=agent_session_id,json=agentSessionId,proto3" json:"agent_session_id,omitempty"`
	ActiveTurnId   string                 `protobuf:"bytes,4,opt,name=active_turn_id,json=activeTurnId,proto3" json:"active_turn_id,omitempty"`
	Source         *SessionSource         `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"`
	Status         SessionStatus          `protobuf:"varint,6,opt,name=status,proto3,enum=aisupport.agent_gateway.entity.session.v1.SessionStatus" json:"status,omitempty"`
	CreatedAt      *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt      *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*Session) ProtoMessage() {}

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

func (x *Session) GetSessionId() string {
	if x != nil {
		return x.SessionId
	}
	return ""
}

func (x *Session) GetAgentId() string {
	if x != nil {
		return x.AgentId
	}
	return ""
}

func (x *Session) GetAgentSessionId() string {
	if x != nil {
		return x.AgentSessionId
	}
	return ""
}

func (x *Session) GetActiveTurnId() string {
	if x != nil {
		return x.ActiveTurnId
	}
	return ""
}

func (x *Session) GetSource() *SessionSource {
	if x != nil {
		return x.Source
	}
	return nil
}

func (x *Session) GetStatus() SessionStatus {
	if x != nil {
		return x.Status
	}
	return SessionStatus_SESSION_STATUS_UNSPECIFIED
}

func (x *Session) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *Session) GetUpdatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdatedAt
	}
	return nil
}

type Task struct {
	state            protoimpl.MessageState `protogen:"open.v1"`
	TaskId           string                 `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	SessionId        string                 `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	AgentTurnId      string                 `protobuf:"bytes,3,opt,name=agent_turn_id,json=agentTurnId,proto3" json:"agent_turn_id,omitempty"`
	Source           *TaskSource            `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	Status           TaskStatus             `protobuf:"varint,5,opt,name=status,proto3,enum=aisupport.agent_gateway.entity.session.v1.TaskStatus" json:"status,omitempty"`
	Prompt           string                 `protobuf:"bytes,6,opt,name=prompt,proto3" json:"prompt,omitempty"`
	ErrorMessage     string                 `protobuf:"bytes,7,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	CreatedAt        *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt        *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	WorkingDirectory string                 `protobuf:"bytes,10,opt,name=working_directory,json=workingDirectory,proto3" json:"working_directory,omitempty"`
	// Requested model override, not the confirmed runtime model. Empty uses Provider defaults.
	AgentModel    string `protobuf:"bytes,11,opt,name=agent_model,json=agentModel,proto3" json:"agent_model,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Task) ProtoMessage() {}

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

func (x *Task) GetTaskId() string {
	if x != nil {
		return x.TaskId
	}
	return ""
}

func (x *Task) GetSessionId() string {
	if x != nil {
		return x.SessionId
	}
	return ""
}

func (x *Task) GetAgentTurnId() string {
	if x != nil {
		return x.AgentTurnId
	}
	return ""
}

func (x *Task) GetSource() *TaskSource {
	if x != nil {
		return x.Source
	}
	return nil
}

func (x *Task) GetStatus() TaskStatus {
	if x != nil {
		return x.Status
	}
	return TaskStatus_TASK_STATUS_UNSPECIFIED
}

func (x *Task) GetPrompt() string {
	if x != nil {
		return x.Prompt
	}
	return ""
}

func (x *Task) GetErrorMessage() string {
	if x != nil {
		return x.ErrorMessage
	}
	return ""
}

func (x *Task) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *Task) GetUpdatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdatedAt
	}
	return nil
}

func (x *Task) GetWorkingDirectory() string {
	if x != nil {
		return x.WorkingDirectory
	}
	return ""
}

func (x *Task) GetAgentModel() string {
	if x != nil {
		return x.AgentModel
	}
	return ""
}

var File_entity_agent_gateway_session_v1_session_proto protoreflect.FileDescriptor

const file_entity_agent_gateway_session_v1_session_proto_rawDesc = "" +
	"\n" +
	"-entity/agent-gateway/session/v1/session.proto\x12)aisupport.agent_gateway.entity.session.v1\x1a4entity/agent-gateway/session/v1/message_source.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x03\n" +
	"\aSession\x12\x1d\n" +
	"\n" +
	"session_id\x18\x01 \x01(\tR\tsessionId\x12\x19\n" +
	"\bagent_id\x18\x02 \x01(\tR\aagentId\x12(\n" +
	"\x10agent_session_id\x18\x03 \x01(\tR\x0eagentSessionId\x12$\n" +
	"\x0eactive_turn_id\x18\x04 \x01(\tR\factiveTurnId\x12P\n" +
	"\x06source\x18\x05 \x01(\v28.aisupport.agent_gateway.entity.session.v1.SessionSourceR\x06source\x12P\n" +
	"\x06status\x18\x06 \x01(\x0e28.aisupport.agent_gateway.entity.session.v1.SessionStatusR\x06status\x129\n" +
	"\n" +
	"created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"updated_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\x81\x04\n" +
	"\x04Task\x12\x17\n" +
	"\atask_id\x18\x01 \x01(\tR\x06taskId\x12\x1d\n" +
	"\n" +
	"session_id\x18\x02 \x01(\tR\tsessionId\x12\"\n" +
	"\ragent_turn_id\x18\x03 \x01(\tR\vagentTurnId\x12M\n" +
	"\x06source\x18\x04 \x01(\v25.aisupport.agent_gateway.entity.session.v1.TaskSourceR\x06source\x12M\n" +
	"\x06status\x18\x05 \x01(\x0e25.aisupport.agent_gateway.entity.session.v1.TaskStatusR\x06status\x12\x16\n" +
	"\x06prompt\x18\x06 \x01(\tR\x06prompt\x12#\n" +
	"\rerror_message\x18\a \x01(\tR\ferrorMessage\x129\n" +
	"\n" +
	"created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"updated_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12+\n" +
	"\x11working_directory\x18\n" +
	" \x01(\tR\x10workingDirectory\x12\x1f\n" +
	"\vagent_model\x18\v \x01(\tR\n" +
	"agentModel*f\n" +
	"\rSessionStatus\x12\x1e\n" +
	"\x1aSESSION_STATUS_UNSPECIFIED\x10\x00\x12\x19\n" +
	"\x15SESSION_STATUS_ACTIVE\x10\x01\x12\x1a\n" +
	"\x16SESSION_STATUS_EXPIRED\x10\x02*\xdf\x01\n" +
	"\n" +
	"TaskStatus\x12\x1b\n" +
	"\x17TASK_STATUS_UNSPECIFIED\x10\x00\x12\x18\n" +
	"\x14TASK_STATUS_RECEIVED\x10\x01\x12\x1a\n" +
	"\x16TASK_STATUS_PROCESSING\x10\x02\x12\x18\n" +
	"\x14TASK_STATUS_STEERING\x10\x03\x12\x19\n" +
	"\x15TASK_STATUS_SUCCEEDED\x10\x04\x12\x16\n" +
	"\x12TASK_STATUS_FAILED\x10\x05\x12\x17\n" +
	"\x13TASK_STATUS_TIMEOUT\x10\x06\x12\x18\n" +
	"\x14TASK_STATUS_REJECTED\x10\aBdZbgithub.com/tidbcloud/aisupport/packages/sdk-go/contracts/entity/agent-gateway/session/v1;sessionv1b\x06proto3"

var (
	file_entity_agent_gateway_session_v1_session_proto_rawDescOnce sync.Once
	file_entity_agent_gateway_session_v1_session_proto_rawDescData []byte
)

func file_entity_agent_gateway_session_v1_session_proto_rawDescGZIP() []byte {
	file_entity_agent_gateway_session_v1_session_proto_rawDescOnce.Do(func() {
		file_entity_agent_gateway_session_v1_session_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_entity_agent_gateway_session_v1_session_proto_rawDesc), len(file_entity_agent_gateway_session_v1_session_proto_rawDesc)))
	})
	return file_entity_agent_gateway_session_v1_session_proto_rawDescData
}

var file_entity_agent_gateway_session_v1_session_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_entity_agent_gateway_session_v1_session_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_entity_agent_gateway_session_v1_session_proto_goTypes = []any{
	(SessionStatus)(0),            // 0: aisupport.agent_gateway.entity.session.v1.SessionStatus
	(TaskStatus)(0),               // 1: aisupport.agent_gateway.entity.session.v1.TaskStatus
	(*Session)(nil),               // 2: aisupport.agent_gateway.entity.session.v1.Session
	(*Task)(nil),                  // 3: aisupport.agent_gateway.entity.session.v1.Task
	(*SessionSource)(nil),         // 4: aisupport.agent_gateway.entity.session.v1.SessionSource
	(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
	(*TaskSource)(nil),            // 6: aisupport.agent_gateway.entity.session.v1.TaskSource
}
var file_entity_agent_gateway_session_v1_session_proto_depIdxs = []int32{
	4, // 0: aisupport.agent_gateway.entity.session.v1.Session.source:type_name -> aisupport.agent_gateway.entity.session.v1.SessionSource
	0, // 1: aisupport.agent_gateway.entity.session.v1.Session.status:type_name -> aisupport.agent_gateway.entity.session.v1.SessionStatus
	5, // 2: aisupport.agent_gateway.entity.session.v1.Session.created_at:type_name -> google.protobuf.Timestamp
	5, // 3: aisupport.agent_gateway.entity.session.v1.Session.updated_at:type_name -> google.protobuf.Timestamp
	6, // 4: aisupport.agent_gateway.entity.session.v1.Task.source:type_name -> aisupport.agent_gateway.entity.session.v1.TaskSource
	1, // 5: aisupport.agent_gateway.entity.session.v1.Task.status:type_name -> aisupport.agent_gateway.entity.session.v1.TaskStatus
	5, // 6: aisupport.agent_gateway.entity.session.v1.Task.created_at:type_name -> google.protobuf.Timestamp
	5, // 7: aisupport.agent_gateway.entity.session.v1.Task.updated_at:type_name -> google.protobuf.Timestamp
	8, // [8:8] is the sub-list for method output_type
	8, // [8:8] 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_entity_agent_gateway_session_v1_session_proto_init() }
func file_entity_agent_gateway_session_v1_session_proto_init() {
	if File_entity_agent_gateway_session_v1_session_proto != nil {
		return
	}
	file_entity_agent_gateway_session_v1_message_source_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_entity_agent_gateway_session_v1_session_proto_rawDesc), len(file_entity_agent_gateway_session_v1_session_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_entity_agent_gateway_session_v1_session_proto_goTypes,
		DependencyIndexes: file_entity_agent_gateway_session_v1_session_proto_depIdxs,
		EnumInfos:         file_entity_agent_gateway_session_v1_session_proto_enumTypes,
		MessageInfos:      file_entity_agent_gateway_session_v1_session_proto_msgTypes,
	}.Build()
	File_entity_agent_gateway_session_v1_session_proto = out.File
	file_entity_agent_gateway_session_v1_session_proto_goTypes = nil
	file_entity_agent_gateway_session_v1_session_proto_depIdxs = nil
}
