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

package commonv1

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

const (
	Example_EXAMPLE_UNSPECIFIED Example = 0
	Example_EXAMPLE_FOO         Example = 1
)

// Enum value maps for Example.
var (
	Example_name = map[int32]string{
		0: "EXAMPLE_UNSPECIFIED",
		1: "EXAMPLE_FOO",
	}
	Example_value = map[string]int32{
		"EXAMPLE_UNSPECIFIED": 0,
		"EXAMPLE_FOO":         1,
	}
)

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

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

func (Example) Descriptor() protoreflect.EnumDescriptor {
	return file_test_simple_common_v1_common_proto_enumTypes[0].Descriptor()
}

func (Example) Type() protoreflect.EnumType {
	return &file_test_simple_common_v1_common_proto_enumTypes[0]
}

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

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

type PaginatedRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Limit         uint32                 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Cursor        []byte                 `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PaginatedRequest) ProtoMessage() {}

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

func (x *PaginatedRequest) GetLimit() uint32 {
	if x != nil {
		return x.Limit
	}
	return 0
}

func (x *PaginatedRequest) GetCursor() []byte {
	if x != nil {
		return x.Cursor
	}
	return nil
}

type PaginatedResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Items         []*anypb.Any           `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	NextCursor    []byte                 `protobuf:"bytes,2,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PaginatedResponse) ProtoMessage() {}

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

func (x *PaginatedResponse) GetItems() []*anypb.Any {
	if x != nil {
		return x.Items
	}
	return nil
}

func (x *PaginatedResponse) GetNextCursor() []byte {
	if x != nil {
		return x.NextCursor
	}
	return nil
}

var File_test_simple_common_v1_common_proto protoreflect.FileDescriptor

const file_test_simple_common_v1_common_proto_rawDesc = "" +
	"\n" +
	"\"test/simple/common/v1/common.proto\x12\x1amycompany.simple.common.v1\x1a\x19google/protobuf/any.proto\"@\n" +
	"\x10PaginatedRequest\x12\x14\n" +
	"\x05limit\x18\x01 \x01(\rR\x05limit\x12\x16\n" +
	"\x06cursor\x18\x02 \x01(\fR\x06cursor\"`\n" +
	"\x11PaginatedResponse\x12*\n" +
	"\x05items\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\x05items\x12\x1f\n" +
	"\vnext_cursor\x18\x02 \x01(\fR\n" +
	"nextCursor*3\n" +
	"\aExample\x12\x17\n" +
	"\x13EXAMPLE_UNSPECIFIED\x10\x00\x12\x0f\n" +
	"\vEXAMPLE_FOO\x10\x01B\x86\x02\n" +
	"\x1ecom.mycompany.simple.common.v1B\vCommonProtoP\x01ZLgithub.com/cludden/protoc-gen-go-temporal/gen/test/simple/common/v1;commonv1\xa2\x02\x03MSC\xaa\x02\x1aMycompany.Simple.Common.V1\xca\x02\x1aMycompany\\Simple\\Common\\V1\xe2\x02&Mycompany\\Simple\\Common\\V1\\GPBMetadata\xea\x02\x1dMycompany::Simple::Common::V1b\x06proto3"

var (
	file_test_simple_common_v1_common_proto_rawDescOnce sync.Once
	file_test_simple_common_v1_common_proto_rawDescData []byte
)

func file_test_simple_common_v1_common_proto_rawDescGZIP() []byte {
	file_test_simple_common_v1_common_proto_rawDescOnce.Do(func() {
		file_test_simple_common_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_test_simple_common_v1_common_proto_rawDesc), len(file_test_simple_common_v1_common_proto_rawDesc)))
	})
	return file_test_simple_common_v1_common_proto_rawDescData
}

var file_test_simple_common_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_test_simple_common_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_test_simple_common_v1_common_proto_goTypes = []any{
	(Example)(0),              // 0: mycompany.simple.common.v1.Example
	(*PaginatedRequest)(nil),  // 1: mycompany.simple.common.v1.PaginatedRequest
	(*PaginatedResponse)(nil), // 2: mycompany.simple.common.v1.PaginatedResponse
	(*anypb.Any)(nil),         // 3: google.protobuf.Any
}
var file_test_simple_common_v1_common_proto_depIdxs = []int32{
	3, // 0: mycompany.simple.common.v1.PaginatedResponse.items:type_name -> google.protobuf.Any
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_test_simple_common_v1_common_proto_init() }
func file_test_simple_common_v1_common_proto_init() {
	if File_test_simple_common_v1_common_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_test_simple_common_v1_common_proto_rawDesc), len(file_test_simple_common_v1_common_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_test_simple_common_v1_common_proto_goTypes,
		DependencyIndexes: file_test_simple_common_v1_common_proto_depIdxs,
		EnumInfos:         file_test_simple_common_v1_common_proto_enumTypes,
		MessageInfos:      file_test_simple_common_v1_common_proto_msgTypes,
	}.Build()
	File_test_simple_common_v1_common_proto = out.File
	file_test_simple_common_v1_common_proto_goTypes = nil
	file_test_simple_common_v1_common_proto_depIdxs = nil
}
