// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.8
// 	protoc        (unknown)
// source: test/xnserr/v1/xnserr.proto

package xnserrv1

import (
	_ "github.com/cludden/protoc-gen-go-temporal/gen/temporal/v1"
	v1 "github.com/cludden/protoc-gen-go-temporal/gen/temporal/xns/v1"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	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 FailureInfo int32

const (
	FailureInfo_FAILURE_INFO_UNSPECIFIED              FailureInfo = 0
	FailureInfo_FAILURE_INFO_APPLICATION_ERROR        FailureInfo = 1
	FailureInfo_FAILURE_INFO_TIMEOUT                  FailureInfo = 2
	FailureInfo_FAILURE_INFO_CANCELED                 FailureInfo = 3
	FailureInfo_FAILURE_INFO_TERMINATED               FailureInfo = 4
	FailureInfo_FAILURE_INFO_ACTIVITY                 FailureInfo = 5
	FailureInfo_FAILURE_INFO_WORKFLOW_EXECUTION       FailureInfo = 6
	FailureInfo_FAILURE_INFO_CHILD_WORKFLOW_EXECUTION FailureInfo = 7
)

// Enum value maps for FailureInfo.
var (
	FailureInfo_name = map[int32]string{
		0: "FAILURE_INFO_UNSPECIFIED",
		1: "FAILURE_INFO_APPLICATION_ERROR",
		2: "FAILURE_INFO_TIMEOUT",
		3: "FAILURE_INFO_CANCELED",
		4: "FAILURE_INFO_TERMINATED",
		5: "FAILURE_INFO_ACTIVITY",
		6: "FAILURE_INFO_WORKFLOW_EXECUTION",
		7: "FAILURE_INFO_CHILD_WORKFLOW_EXECUTION",
	}
	FailureInfo_value = map[string]int32{
		"FAILURE_INFO_UNSPECIFIED":              0,
		"FAILURE_INFO_APPLICATION_ERROR":        1,
		"FAILURE_INFO_TIMEOUT":                  2,
		"FAILURE_INFO_CANCELED":                 3,
		"FAILURE_INFO_TERMINATED":               4,
		"FAILURE_INFO_ACTIVITY":                 5,
		"FAILURE_INFO_WORKFLOW_EXECUTION":       6,
		"FAILURE_INFO_CHILD_WORKFLOW_EXECUTION": 7,
	}
)

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

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

func (FailureInfo) Descriptor() protoreflect.EnumDescriptor {
	return file_test_xnserr_v1_xnserr_proto_enumTypes[0].Descriptor()
}

func (FailureInfo) Type() protoreflect.EnumType {
	return &file_test_xnserr_v1_xnserr_proto_enumTypes[0]
}

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

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

type CallSleepRequest struct {
	state                protoimpl.MessageState   `protogen:"open.v1"`
	Sleep                *durationpb.Duration     `protobuf:"bytes,1,opt,name=sleep,proto3" json:"sleep,omitempty"`
	Failure              *Failure                 `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"`
	StartWorkflowOptions *v1.StartWorkflowOptions `protobuf:"bytes,3,opt,name=start_workflow_options,json=startWorkflowOptions,proto3" json:"start_workflow_options,omitempty"`
	RetryPolicy          *v1.RetryPolicy          `protobuf:"bytes,4,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"`
	unknownFields        protoimpl.UnknownFields
	sizeCache            protoimpl.SizeCache
}

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

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

func (*CallSleepRequest) ProtoMessage() {}

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

func (x *CallSleepRequest) GetSleep() *durationpb.Duration {
	if x != nil {
		return x.Sleep
	}
	return nil
}

func (x *CallSleepRequest) GetFailure() *Failure {
	if x != nil {
		return x.Failure
	}
	return nil
}

func (x *CallSleepRequest) GetStartWorkflowOptions() *v1.StartWorkflowOptions {
	if x != nil {
		return x.StartWorkflowOptions
	}
	return nil
}

func (x *CallSleepRequest) GetRetryPolicy() *v1.RetryPolicy {
	if x != nil {
		return x.RetryPolicy
	}
	return nil
}

type SleepRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Sleep         *durationpb.Duration   `protobuf:"bytes,1,opt,name=sleep,proto3" json:"sleep,omitempty"`
	Failure       *Failure               `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SleepRequest) ProtoMessage() {}

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

func (x *SleepRequest) GetSleep() *durationpb.Duration {
	if x != nil {
		return x.Sleep
	}
	return nil
}

func (x *SleepRequest) GetFailure() *Failure {
	if x != nil {
		return x.Failure
	}
	return nil
}

type Failure struct {
	state                protoimpl.MessageState `protogen:"open.v1"`
	Message              string                 `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	NonRetryable         bool                   `protobuf:"varint,2,opt,name=non_retryable,json=nonRetryable,proto3" json:"non_retryable,omitempty"`
	Info                 FailureInfo            `protobuf:"varint,3,opt,name=info,proto3,enum=test.xnserr.v1.FailureInfo" json:"info,omitempty"`
	ApplicationErrorType string                 `protobuf:"bytes,4,opt,name=application_error_type,json=applicationErrorType,proto3" json:"application_error_type,omitempty"`
	unknownFields        protoimpl.UnknownFields
	sizeCache            protoimpl.SizeCache
}

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

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

func (*Failure) ProtoMessage() {}

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

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

func (x *Failure) GetNonRetryable() bool {
	if x != nil {
		return x.NonRetryable
	}
	return false
}

func (x *Failure) GetInfo() FailureInfo {
	if x != nil {
		return x.Info
	}
	return FailureInfo_FAILURE_INFO_UNSPECIFIED
}

func (x *Failure) GetApplicationErrorType() string {
	if x != nil {
		return x.ApplicationErrorType
	}
	return ""
}

var File_test_xnserr_v1_xnserr_proto protoreflect.FileDescriptor

const file_test_xnserr_v1_xnserr_proto_rawDesc = "" +
	"\n" +
	"\x1btest/xnserr/v1/xnserr.proto\x12\x0etest.xnserr.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1atemporal/v1/temporal.proto\x1a\x19temporal/xns/v1/xns.proto\"\x94\x02\n" +
	"\x10CallSleepRequest\x12/\n" +
	"\x05sleep\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\x05sleep\x121\n" +
	"\afailure\x18\x02 \x01(\v2\x17.test.xnserr.v1.FailureR\afailure\x12[\n" +
	"\x16start_workflow_options\x18\x03 \x01(\v2%.temporal.xns.v1.StartWorkflowOptionsR\x14startWorkflowOptions\x12?\n" +
	"\fretry_policy\x18\x04 \x01(\v2\x1c.temporal.xns.v1.RetryPolicyR\vretryPolicy\"r\n" +
	"\fSleepRequest\x12/\n" +
	"\x05sleep\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\x05sleep\x121\n" +
	"\afailure\x18\x02 \x01(\v2\x17.test.xnserr.v1.FailureR\afailure\"\xaf\x01\n" +
	"\aFailure\x12\x18\n" +
	"\amessage\x18\x01 \x01(\tR\amessage\x12#\n" +
	"\rnon_retryable\x18\x02 \x01(\bR\fnonRetryable\x12/\n" +
	"\x04info\x18\x03 \x01(\x0e2\x1b.test.xnserr.v1.FailureInfoR\x04info\x124\n" +
	"\x16application_error_type\x18\x04 \x01(\tR\x14applicationErrorType*\x8c\x02\n" +
	"\vFailureInfo\x12\x1c\n" +
	"\x18FAILURE_INFO_UNSPECIFIED\x10\x00\x12\"\n" +
	"\x1eFAILURE_INFO_APPLICATION_ERROR\x10\x01\x12\x18\n" +
	"\x14FAILURE_INFO_TIMEOUT\x10\x02\x12\x19\n" +
	"\x15FAILURE_INFO_CANCELED\x10\x03\x12\x1b\n" +
	"\x17FAILURE_INFO_TERMINATED\x10\x04\x12\x19\n" +
	"\x15FAILURE_INFO_ACTIVITY\x10\x05\x12#\n" +
	"\x1fFAILURE_INFO_WORKFLOW_EXECUTION\x10\x06\x12)\n" +
	"%FAILURE_INFO_CHILD_WORKFLOW_EXECUTION\x10\a2t\n" +
	"\x06Server\x12R\n" +
	"\x05Sleep\x12\x1c.test.xnserr.v1.SleepRequest\x1a\x16.google.protobuf.Empty\"\x13\x8a\xc4\x03\x0f0\x03@\x03\x82\x01\b*\x02\b\x1eB\x02\b\n" +
	"\x1a\x16\x8a\xc4\x03\x12\n" +
	"\x10xnserr-server-v12m\n" +
	"\x06Client\x12K\n" +
	"\tCallSleep\x12 .test.xnserr.v1.CallSleepRequest\x1a\x16.google.protobuf.Empty\"\x04\x8a\xc4\x03\x00\x1a\x16\x8a\xc4\x03\x12\n" +
	"\x10xnserr-client-v1B\xc2\x01\n" +
	"\x12com.test.xnserr.v1B\vXnserrProtoP\x01ZEgithub.com/cludden/protoc-gen-go-temporal/gen/test/xnserr/v1;xnserrv1\xa2\x02\x03TXX\xaa\x02\x0eTest.Xnserr.V1\xca\x02\x0eTest\\Xnserr\\V1\xe2\x02\x1aTest\\Xnserr\\V1\\GPBMetadata\xea\x02\x10Test::Xnserr::V1b\x06proto3"

var (
	file_test_xnserr_v1_xnserr_proto_rawDescOnce sync.Once
	file_test_xnserr_v1_xnserr_proto_rawDescData []byte
)

func file_test_xnserr_v1_xnserr_proto_rawDescGZIP() []byte {
	file_test_xnserr_v1_xnserr_proto_rawDescOnce.Do(func() {
		file_test_xnserr_v1_xnserr_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_test_xnserr_v1_xnserr_proto_rawDesc), len(file_test_xnserr_v1_xnserr_proto_rawDesc)))
	})
	return file_test_xnserr_v1_xnserr_proto_rawDescData
}

var file_test_xnserr_v1_xnserr_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_test_xnserr_v1_xnserr_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_test_xnserr_v1_xnserr_proto_goTypes = []any{
	(FailureInfo)(0),                // 0: test.xnserr.v1.FailureInfo
	(*CallSleepRequest)(nil),        // 1: test.xnserr.v1.CallSleepRequest
	(*SleepRequest)(nil),            // 2: test.xnserr.v1.SleepRequest
	(*Failure)(nil),                 // 3: test.xnserr.v1.Failure
	(*durationpb.Duration)(nil),     // 4: google.protobuf.Duration
	(*v1.StartWorkflowOptions)(nil), // 5: temporal.xns.v1.StartWorkflowOptions
	(*v1.RetryPolicy)(nil),          // 6: temporal.xns.v1.RetryPolicy
	(*emptypb.Empty)(nil),           // 7: google.protobuf.Empty
}
var file_test_xnserr_v1_xnserr_proto_depIdxs = []int32{
	4, // 0: test.xnserr.v1.CallSleepRequest.sleep:type_name -> google.protobuf.Duration
	3, // 1: test.xnserr.v1.CallSleepRequest.failure:type_name -> test.xnserr.v1.Failure
	5, // 2: test.xnserr.v1.CallSleepRequest.start_workflow_options:type_name -> temporal.xns.v1.StartWorkflowOptions
	6, // 3: test.xnserr.v1.CallSleepRequest.retry_policy:type_name -> temporal.xns.v1.RetryPolicy
	4, // 4: test.xnserr.v1.SleepRequest.sleep:type_name -> google.protobuf.Duration
	3, // 5: test.xnserr.v1.SleepRequest.failure:type_name -> test.xnserr.v1.Failure
	0, // 6: test.xnserr.v1.Failure.info:type_name -> test.xnserr.v1.FailureInfo
	2, // 7: test.xnserr.v1.Server.Sleep:input_type -> test.xnserr.v1.SleepRequest
	1, // 8: test.xnserr.v1.Client.CallSleep:input_type -> test.xnserr.v1.CallSleepRequest
	7, // 9: test.xnserr.v1.Server.Sleep:output_type -> google.protobuf.Empty
	7, // 10: test.xnserr.v1.Client.CallSleep:output_type -> google.protobuf.Empty
	9, // [9:11] is the sub-list for method output_type
	7, // [7:9] is the sub-list for method input_type
	7, // [7:7] is the sub-list for extension type_name
	7, // [7:7] is the sub-list for extension extendee
	0, // [0:7] is the sub-list for field type_name
}

func init() { file_test_xnserr_v1_xnserr_proto_init() }
func file_test_xnserr_v1_xnserr_proto_init() {
	if File_test_xnserr_v1_xnserr_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_test_xnserr_v1_xnserr_proto_rawDesc), len(file_test_xnserr_v1_xnserr_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   2,
		},
		GoTypes:           file_test_xnserr_v1_xnserr_proto_goTypes,
		DependencyIndexes: file_test_xnserr_v1_xnserr_proto_depIdxs,
		EnumInfos:         file_test_xnserr_v1_xnserr_proto_enumTypes,
		MessageInfos:      file_test_xnserr_v1_xnserr_proto_msgTypes,
	}.Build()
	File_test_xnserr_v1_xnserr_proto = out.File
	file_test_xnserr_v1_xnserr_proto_goTypes = nil
	file_test_xnserr_v1_xnserr_proto_depIdxs = nil
}
