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

package mutexv1

import (
	_ "github.com/cludden/protoc-gen-go-temporal/gen/temporal/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 MutexInput struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ResourceId    string                 `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MutexInput) ProtoMessage() {}

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

func (x *MutexInput) GetResourceId() string {
	if x != nil {
		return x.ResourceId
	}
	return ""
}

type AcquireLockInput struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Timeout       *durationpb.Duration   `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AcquireLockInput) ProtoMessage() {}

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

func (x *AcquireLockInput) GetTimeout() *durationpb.Duration {
	if x != nil {
		return x.Timeout
	}
	return nil
}

type AcquireLockOutput struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	LeaseId       string                 `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AcquireLockOutput) ProtoMessage() {}

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

func (x *AcquireLockOutput) GetLeaseId() string {
	if x != nil {
		return x.LeaseId
	}
	return ""
}

type ReleaseLockInput struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	LeaseId       string                 `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ReleaseLockInput) Reset() {
	*x = ReleaseLockInput{}
	mi := &file_example_mutex_v1_mutex_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ReleaseLockInput) ProtoMessage() {}

func (x *ReleaseLockInput) ProtoReflect() protoreflect.Message {
	mi := &file_example_mutex_v1_mutex_proto_msgTypes[3]
	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 ReleaseLockInput.ProtoReflect.Descriptor instead.
func (*ReleaseLockInput) Descriptor() ([]byte, []int) {
	return file_example_mutex_v1_mutex_proto_rawDescGZIP(), []int{3}
}

func (x *ReleaseLockInput) GetLeaseId() string {
	if x != nil {
		return x.LeaseId
	}
	return ""
}

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

func (x *SampleWorkflowWithMutexInput) Reset() {
	*x = SampleWorkflowWithMutexInput{}
	mi := &file_example_mutex_v1_mutex_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*SampleWorkflowWithMutexInput) ProtoMessage() {}

func (x *SampleWorkflowWithMutexInput) ProtoReflect() protoreflect.Message {
	mi := &file_example_mutex_v1_mutex_proto_msgTypes[4]
	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 SampleWorkflowWithMutexInput.ProtoReflect.Descriptor instead.
func (*SampleWorkflowWithMutexInput) Descriptor() ([]byte, []int) {
	return file_example_mutex_v1_mutex_proto_rawDescGZIP(), []int{4}
}

func (x *SampleWorkflowWithMutexInput) GetResourceId() string {
	if x != nil {
		return x.ResourceId
	}
	return ""
}

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

var File_example_mutex_v1_mutex_proto protoreflect.FileDescriptor

const file_example_mutex_v1_mutex_proto_rawDesc = "" +
	"\n" +
	"\x1cexample/mutex/v1/mutex.proto\x12\x10example.mutex.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1atemporal/v1/temporal.proto\"-\n" +
	"\n" +
	"MutexInput\x12\x1f\n" +
	"\vresource_id\x18\x01 \x01(\tR\n" +
	"resourceId\"G\n" +
	"\x10AcquireLockInput\x123\n" +
	"\atimeout\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\atimeout\".\n" +
	"\x11AcquireLockOutput\x12\x19\n" +
	"\blease_id\x18\x01 \x01(\tR\aleaseId\"-\n" +
	"\x10ReleaseLockInput\x12\x19\n" +
	"\blease_id\x18\x01 \x01(\tR\aleaseId\"p\n" +
	"\x1cSampleWorkflowWithMutexInput\x12\x1f\n" +
	"\vresource_id\x18\x01 \x01(\tR\n" +
	"resourceId\x12/\n" +
	"\x05sleep\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x05sleep2\xb2\x04\n" +
	"\aExample\x12r\n" +
	"\vAcquireLock\x12\".example.mutex.v1.AcquireLockInput\x1a#.example.mutex.v1.AcquireLockOutput\"\x1a\xaa\xc4\x03\x16\"\x14mutex.v1.AcquireLock\x12\xaa\x01\n" +
	"\x05Mutex\x12\x1c.example.mutex.v1.MutexInput\x1a\x16.google.protobuf.Empty\"k\x8a\xc4\x03_\x12\r\n" +
	"\vReleaseLock\x1a\x11\n" +
	"\vAcquireLock\x18\x01(\x02*\x16mutex:${! resourceId }J\x13\n" +
	"\x02\b\x01\x11\x00\x00\x00\x00\x00\x00\x00@\x1a\x02\b< \x05r\x0emutex.v1.Mutex\x92\xc4\x03\x04\"\x02\b\n" +
	"\x12e\n" +
	"\vReleaseLock\x12\".example.mutex.v1.ReleaseLockInput\x1a\x16.google.protobuf.Empty\"\x1a\xa2\xc4\x03\x16\n" +
	"\x14mutex.v1.ReleaseLock\x12\x91\x01\n" +
	"\x17SampleWorkflowWithMutex\x12..example.mutex.v1.SampleWorkflowWithMutexInput\x1a\x16.google.protobuf.Empty\".\x8a\xc4\x03**(SampleWorkflow1WithMutex_${! uuid_v4() }\x1a\v\x8a\xc4\x03\a\n" +
	"\x05mutexB\xcc\x01\n" +
	"\x14com.example.mutex.v1B\n" +
	"MutexProtoP\x01ZFgithub.com/cludden/protoc-gen-go-temporal/gen/example/mutex/v1;mutexv1\xa2\x02\x03EMX\xaa\x02\x10Example.Mutex.V1\xca\x02\x10Example\\Mutex\\V1\xe2\x02\x1cExample\\Mutex\\V1\\GPBMetadata\xea\x02\x12Example::Mutex::V1b\x06proto3"

var (
	file_example_mutex_v1_mutex_proto_rawDescOnce sync.Once
	file_example_mutex_v1_mutex_proto_rawDescData []byte
)

func file_example_mutex_v1_mutex_proto_rawDescGZIP() []byte {
	file_example_mutex_v1_mutex_proto_rawDescOnce.Do(func() {
		file_example_mutex_v1_mutex_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_example_mutex_v1_mutex_proto_rawDesc), len(file_example_mutex_v1_mutex_proto_rawDesc)))
	})
	return file_example_mutex_v1_mutex_proto_rawDescData
}

var file_example_mutex_v1_mutex_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_example_mutex_v1_mutex_proto_goTypes = []any{
	(*MutexInput)(nil),                   // 0: example.mutex.v1.MutexInput
	(*AcquireLockInput)(nil),             // 1: example.mutex.v1.AcquireLockInput
	(*AcquireLockOutput)(nil),            // 2: example.mutex.v1.AcquireLockOutput
	(*ReleaseLockInput)(nil),             // 3: example.mutex.v1.ReleaseLockInput
	(*SampleWorkflowWithMutexInput)(nil), // 4: example.mutex.v1.SampleWorkflowWithMutexInput
	(*durationpb.Duration)(nil),          // 5: google.protobuf.Duration
	(*emptypb.Empty)(nil),                // 6: google.protobuf.Empty
}
var file_example_mutex_v1_mutex_proto_depIdxs = []int32{
	5, // 0: example.mutex.v1.AcquireLockInput.timeout:type_name -> google.protobuf.Duration
	5, // 1: example.mutex.v1.SampleWorkflowWithMutexInput.sleep:type_name -> google.protobuf.Duration
	1, // 2: example.mutex.v1.Example.AcquireLock:input_type -> example.mutex.v1.AcquireLockInput
	0, // 3: example.mutex.v1.Example.Mutex:input_type -> example.mutex.v1.MutexInput
	3, // 4: example.mutex.v1.Example.ReleaseLock:input_type -> example.mutex.v1.ReleaseLockInput
	4, // 5: example.mutex.v1.Example.SampleWorkflowWithMutex:input_type -> example.mutex.v1.SampleWorkflowWithMutexInput
	2, // 6: example.mutex.v1.Example.AcquireLock:output_type -> example.mutex.v1.AcquireLockOutput
	6, // 7: example.mutex.v1.Example.Mutex:output_type -> google.protobuf.Empty
	6, // 8: example.mutex.v1.Example.ReleaseLock:output_type -> google.protobuf.Empty
	6, // 9: example.mutex.v1.Example.SampleWorkflowWithMutex:output_type -> google.protobuf.Empty
	6, // [6:10] is the sub-list for method output_type
	2, // [2:6] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_example_mutex_v1_mutex_proto_init() }
func file_example_mutex_v1_mutex_proto_init() {
	if File_example_mutex_v1_mutex_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_example_mutex_v1_mutex_proto_rawDesc), len(file_example_mutex_v1_mutex_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_example_mutex_v1_mutex_proto_goTypes,
		DependencyIndexes: file_example_mutex_v1_mutex_proto_depIdxs,
		MessageInfos:      file_example_mutex_v1_mutex_proto_msgTypes,
	}.Build()
	File_example_mutex_v1_mutex_proto = out.File
	file_example_mutex_v1_mutex_proto_goTypes = nil
	file_example_mutex_v1_mutex_proto_depIdxs = nil
}
