// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: xyz/block/ftl/v1/verb.proto

package ftlv1

import (
	v1 "github.com/block/ftl/common/protos/xyz/block/ftl/schema/v1"
	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 CallRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Metadata      *Metadata              `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Verb          *v1.Ref                `protobuf:"bytes,2,opt,name=verb,proto3" json:"verb,omitempty"`
	Body          []byte                 `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CallRequest) ProtoMessage() {}

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

func (x *CallRequest) GetMetadata() *Metadata {
	if x != nil {
		return x.Metadata
	}
	return nil
}

func (x *CallRequest) GetVerb() *v1.Ref {
	if x != nil {
		return x.Verb
	}
	return nil
}

func (x *CallRequest) GetBody() []byte {
	if x != nil {
		return x.Body
	}
	return nil
}

type CallResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Response:
	//
	//	*CallResponse_Body
	//	*CallResponse_Error_
	Response      isCallResponse_Response `protobuf_oneof:"response"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CallResponse) ProtoMessage() {}

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

func (x *CallResponse) GetResponse() isCallResponse_Response {
	if x != nil {
		return x.Response
	}
	return nil
}

func (x *CallResponse) GetBody() []byte {
	if x != nil {
		if x, ok := x.Response.(*CallResponse_Body); ok {
			return x.Body
		}
	}
	return nil
}

func (x *CallResponse) GetError() *CallResponse_Error {
	if x != nil {
		if x, ok := x.Response.(*CallResponse_Error_); ok {
			return x.Error
		}
	}
	return nil
}

type isCallResponse_Response interface {
	isCallResponse_Response()
}

type CallResponse_Body struct {
	Body []byte `protobuf:"bytes,1,opt,name=body,proto3,oneof"`
}

type CallResponse_Error_ struct {
	Error *CallResponse_Error `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

func (*CallResponse_Body) isCallResponse_Response() {}

func (*CallResponse_Error_) isCallResponse_Response() {}

type CallResponse_Error struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Message       string                 `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Stack         *string                `protobuf:"bytes,2,opt,name=stack,proto3,oneof" json:"stack,omitempty"` // TODO: Richer error type.
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CallResponse_Error) ProtoMessage() {}

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

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

func (x *CallResponse_Error) GetStack() string {
	if x != nil && x.Stack != nil {
		return *x.Stack
	}
	return ""
}

var File_xyz_block_ftl_v1_verb_proto protoreflect.FileDescriptor

const file_xyz_block_ftl_v1_verb_proto_rawDesc = "" +
	"\n" +
	"\x1bxyz/block/ftl/v1/verb.proto\x12\x10xyz.block.ftl.v1\x1a$xyz/block/ftl/schema/v1/schema.proto\x1a\x1axyz/block/ftl/v1/ftl.proto\"\x8b\x01\n" +
	"\vCallRequest\x126\n" +
	"\bmetadata\x18\x01 \x01(\v2\x1a.xyz.block.ftl.v1.MetadataR\bmetadata\x120\n" +
	"\x04verb\x18\x02 \x01(\v2\x1c.xyz.block.ftl.schema.v1.RefR\x04verb\x12\x12\n" +
	"\x04body\x18\x03 \x01(\fR\x04body\"\xb6\x01\n" +
	"\fCallResponse\x12\x14\n" +
	"\x04body\x18\x01 \x01(\fH\x00R\x04body\x12<\n" +
	"\x05error\x18\x02 \x01(\v2$.xyz.block.ftl.v1.CallResponse.ErrorH\x00R\x05error\x1aF\n" +
	"\x05Error\x12\x18\n" +
	"\amessage\x18\x01 \x01(\tR\amessage\x12\x19\n" +
	"\x05stack\x18\x02 \x01(\tH\x00R\x05stack\x88\x01\x01B\b\n" +
	"\x06_stackB\n" +
	"\n" +
	"\bresponse2\xa0\x01\n" +
	"\vVerbService\x12J\n" +
	"\x04Ping\x12\x1d.xyz.block.ftl.v1.PingRequest\x1a\x1e.xyz.block.ftl.v1.PingResponse\"\x03\x90\x02\x01\x12E\n" +
	"\x04Call\x12\x1d.xyz.block.ftl.v1.CallRequest\x1a\x1e.xyz.block.ftl.v1.CallResponseB>P\x01Z:github.com/block/ftl/backend/protos/xyz/block/ftl/v1;ftlv1b\x06proto3"

var (
	file_xyz_block_ftl_v1_verb_proto_rawDescOnce sync.Once
	file_xyz_block_ftl_v1_verb_proto_rawDescData []byte
)

func file_xyz_block_ftl_v1_verb_proto_rawDescGZIP() []byte {
	file_xyz_block_ftl_v1_verb_proto_rawDescOnce.Do(func() {
		file_xyz_block_ftl_v1_verb_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xyz_block_ftl_v1_verb_proto_rawDesc), len(file_xyz_block_ftl_v1_verb_proto_rawDesc)))
	})
	return file_xyz_block_ftl_v1_verb_proto_rawDescData
}

var file_xyz_block_ftl_v1_verb_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_xyz_block_ftl_v1_verb_proto_goTypes = []any{
	(*CallRequest)(nil),        // 0: xyz.block.ftl.v1.CallRequest
	(*CallResponse)(nil),       // 1: xyz.block.ftl.v1.CallResponse
	(*CallResponse_Error)(nil), // 2: xyz.block.ftl.v1.CallResponse.Error
	(*Metadata)(nil),           // 3: xyz.block.ftl.v1.Metadata
	(*v1.Ref)(nil),             // 4: xyz.block.ftl.schema.v1.Ref
	(*PingRequest)(nil),        // 5: xyz.block.ftl.v1.PingRequest
	(*PingResponse)(nil),       // 6: xyz.block.ftl.v1.PingResponse
}
var file_xyz_block_ftl_v1_verb_proto_depIdxs = []int32{
	3, // 0: xyz.block.ftl.v1.CallRequest.metadata:type_name -> xyz.block.ftl.v1.Metadata
	4, // 1: xyz.block.ftl.v1.CallRequest.verb:type_name -> xyz.block.ftl.schema.v1.Ref
	2, // 2: xyz.block.ftl.v1.CallResponse.error:type_name -> xyz.block.ftl.v1.CallResponse.Error
	5, // 3: xyz.block.ftl.v1.VerbService.Ping:input_type -> xyz.block.ftl.v1.PingRequest
	0, // 4: xyz.block.ftl.v1.VerbService.Call:input_type -> xyz.block.ftl.v1.CallRequest
	6, // 5: xyz.block.ftl.v1.VerbService.Ping:output_type -> xyz.block.ftl.v1.PingResponse
	1, // 6: xyz.block.ftl.v1.VerbService.Call:output_type -> xyz.block.ftl.v1.CallResponse
	5, // [5:7] is the sub-list for method output_type
	3, // [3:5] 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_xyz_block_ftl_v1_verb_proto_init() }
func file_xyz_block_ftl_v1_verb_proto_init() {
	if File_xyz_block_ftl_v1_verb_proto != nil {
		return
	}
	file_xyz_block_ftl_v1_ftl_proto_init()
	file_xyz_block_ftl_v1_verb_proto_msgTypes[1].OneofWrappers = []any{
		(*CallResponse_Body)(nil),
		(*CallResponse_Error_)(nil),
	}
	file_xyz_block_ftl_v1_verb_proto_msgTypes[2].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_xyz_block_ftl_v1_verb_proto_rawDesc), len(file_xyz_block_ftl_v1_verb_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_xyz_block_ftl_v1_verb_proto_goTypes,
		DependencyIndexes: file_xyz_block_ftl_v1_verb_proto_depIdxs,
		MessageInfos:      file_xyz_block_ftl_v1_verb_proto_msgTypes,
	}.Build()
	File_xyz_block_ftl_v1_verb_proto = out.File
	file_xyz_block_ftl_v1_verb_proto_goTypes = nil
	file_xyz_block_ftl_v1_verb_proto_depIdxs = nil
}
