// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: authzed/api/v0/developer.proto

package v0

import (
	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 LookupShareResponse_LookupStatus int32

const (
	LookupShareResponse_UNKNOWN_REFERENCE  LookupShareResponse_LookupStatus = 0
	LookupShareResponse_FAILED_TO_LOOKUP   LookupShareResponse_LookupStatus = 1
	LookupShareResponse_VALID_REFERENCE    LookupShareResponse_LookupStatus = 2
	LookupShareResponse_UPGRADED_REFERENCE LookupShareResponse_LookupStatus = 3
)

// Enum value maps for LookupShareResponse_LookupStatus.
var (
	LookupShareResponse_LookupStatus_name = map[int32]string{
		0: "UNKNOWN_REFERENCE",
		1: "FAILED_TO_LOOKUP",
		2: "VALID_REFERENCE",
		3: "UPGRADED_REFERENCE",
	}
	LookupShareResponse_LookupStatus_value = map[string]int32{
		"UNKNOWN_REFERENCE":  0,
		"FAILED_TO_LOOKUP":   1,
		"VALID_REFERENCE":    2,
		"UPGRADED_REFERENCE": 3,
	}
)

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

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

func (LookupShareResponse_LookupStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_authzed_api_v0_developer_proto_enumTypes[0].Descriptor()
}

func (LookupShareResponse_LookupStatus) Type() protoreflect.EnumType {
	return &file_authzed_api_v0_developer_proto_enumTypes[0]
}

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

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

type ShareRequest struct {
	state             protoimpl.MessageState `protogen:"open.v1"`
	Schema            string                 `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
	RelationshipsYaml string                 `protobuf:"bytes,2,opt,name=relationships_yaml,json=relationshipsYaml,proto3" json:"relationships_yaml,omitempty"`
	ValidationYaml    string                 `protobuf:"bytes,3,opt,name=validation_yaml,json=validationYaml,proto3" json:"validation_yaml,omitempty"`
	AssertionsYaml    string                 `protobuf:"bytes,4,opt,name=assertions_yaml,json=assertionsYaml,proto3" json:"assertions_yaml,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

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

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

func (*ShareRequest) ProtoMessage() {}

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

func (x *ShareRequest) GetSchema() string {
	if x != nil {
		return x.Schema
	}
	return ""
}

func (x *ShareRequest) GetRelationshipsYaml() string {
	if x != nil {
		return x.RelationshipsYaml
	}
	return ""
}

func (x *ShareRequest) GetValidationYaml() string {
	if x != nil {
		return x.ValidationYaml
	}
	return ""
}

func (x *ShareRequest) GetAssertionsYaml() string {
	if x != nil {
		return x.AssertionsYaml
	}
	return ""
}

type ShareResponse struct {
	state          protoimpl.MessageState `protogen:"open.v1"`
	ShareReference string                 `protobuf:"bytes,1,opt,name=share_reference,json=shareReference,proto3" json:"share_reference,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*ShareResponse) ProtoMessage() {}

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

func (x *ShareResponse) GetShareReference() string {
	if x != nil {
		return x.ShareReference
	}
	return ""
}

type LookupShareRequest struct {
	state          protoimpl.MessageState `protogen:"open.v1"`
	ShareReference string                 `protobuf:"bytes,1,opt,name=share_reference,json=shareReference,proto3" json:"share_reference,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*LookupShareRequest) ProtoMessage() {}

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

func (x *LookupShareRequest) GetShareReference() string {
	if x != nil {
		return x.ShareReference
	}
	return ""
}

type LookupShareResponse struct {
	state             protoimpl.MessageState           `protogen:"open.v1"`
	Status            LookupShareResponse_LookupStatus `protobuf:"varint,1,opt,name=status,proto3,enum=authzed.api.v0.LookupShareResponse_LookupStatus" json:"status,omitempty"`
	Schema            string                           `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
	RelationshipsYaml string                           `protobuf:"bytes,3,opt,name=relationships_yaml,json=relationshipsYaml,proto3" json:"relationships_yaml,omitempty"`
	ValidationYaml    string                           `protobuf:"bytes,4,opt,name=validation_yaml,json=validationYaml,proto3" json:"validation_yaml,omitempty"`
	AssertionsYaml    string                           `protobuf:"bytes,5,opt,name=assertions_yaml,json=assertionsYaml,proto3" json:"assertions_yaml,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

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

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

func (*LookupShareResponse) ProtoMessage() {}

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

func (x *LookupShareResponse) GetStatus() LookupShareResponse_LookupStatus {
	if x != nil {
		return x.Status
	}
	return LookupShareResponse_UNKNOWN_REFERENCE
}

func (x *LookupShareResponse) GetSchema() string {
	if x != nil {
		return x.Schema
	}
	return ""
}

func (x *LookupShareResponse) GetRelationshipsYaml() string {
	if x != nil {
		return x.RelationshipsYaml
	}
	return ""
}

func (x *LookupShareResponse) GetValidationYaml() string {
	if x != nil {
		return x.ValidationYaml
	}
	return ""
}

func (x *LookupShareResponse) GetAssertionsYaml() string {
	if x != nil {
		return x.AssertionsYaml
	}
	return ""
}

var File_authzed_api_v0_developer_proto protoreflect.FileDescriptor

const file_authzed_api_v0_developer_proto_rawDesc = "" +
	"\n" +
	"\x1eauthzed/api/v0/developer.proto\x12\x0eauthzed.api.v0\"\xa7\x01\n" +
	"\fShareRequest\x12\x16\n" +
	"\x06schema\x18\x01 \x01(\tR\x06schema\x12-\n" +
	"\x12relationships_yaml\x18\x02 \x01(\tR\x11relationshipsYaml\x12'\n" +
	"\x0fvalidation_yaml\x18\x03 \x01(\tR\x0evalidationYaml\x12'\n" +
	"\x0fassertions_yaml\x18\x04 \x01(\tR\x0eassertionsYaml\"8\n" +
	"\rShareResponse\x12'\n" +
	"\x0fshare_reference\x18\x01 \x01(\tR\x0eshareReference\"=\n" +
	"\x12LookupShareRequest\x12'\n" +
	"\x0fshare_reference\x18\x01 \x01(\tR\x0eshareReference\"\xe2\x02\n" +
	"\x13LookupShareResponse\x12H\n" +
	"\x06status\x18\x01 \x01(\x0e20.authzed.api.v0.LookupShareResponse.LookupStatusR\x06status\x12\x16\n" +
	"\x06schema\x18\x02 \x01(\tR\x06schema\x12-\n" +
	"\x12relationships_yaml\x18\x03 \x01(\tR\x11relationshipsYaml\x12'\n" +
	"\x0fvalidation_yaml\x18\x04 \x01(\tR\x0evalidationYaml\x12'\n" +
	"\x0fassertions_yaml\x18\x05 \x01(\tR\x0eassertionsYaml\"h\n" +
	"\fLookupStatus\x12\x15\n" +
	"\x11UNKNOWN_REFERENCE\x10\x00\x12\x14\n" +
	"\x10FAILED_TO_LOOKUP\x10\x01\x12\x13\n" +
	"\x0fVALID_REFERENCE\x10\x02\x12\x16\n" +
	"\x12UPGRADED_REFERENCE\x10\x032\xb5\x01\n" +
	"\x10DeveloperService\x12F\n" +
	"\x05Share\x12\x1c.authzed.api.v0.ShareRequest\x1a\x1d.authzed.api.v0.ShareResponse\"\x00\x12Y\n" +
	"\fLookupShared\x12\".authzed.api.v0.LookupShareRequest\x1a#.authzed.api.v0.LookupShareResponse\"\x00BH\n" +
	"\x12com.authzed.api.v0Z2github.com/authzed/authzed-go/proto/authzed/api/v0b\x06proto3"

var (
	file_authzed_api_v0_developer_proto_rawDescOnce sync.Once
	file_authzed_api_v0_developer_proto_rawDescData []byte
)

func file_authzed_api_v0_developer_proto_rawDescGZIP() []byte {
	file_authzed_api_v0_developer_proto_rawDescOnce.Do(func() {
		file_authzed_api_v0_developer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_authzed_api_v0_developer_proto_rawDesc), len(file_authzed_api_v0_developer_proto_rawDesc)))
	})
	return file_authzed_api_v0_developer_proto_rawDescData
}

var file_authzed_api_v0_developer_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_authzed_api_v0_developer_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_authzed_api_v0_developer_proto_goTypes = []any{
	(LookupShareResponse_LookupStatus)(0), // 0: authzed.api.v0.LookupShareResponse.LookupStatus
	(*ShareRequest)(nil),                  // 1: authzed.api.v0.ShareRequest
	(*ShareResponse)(nil),                 // 2: authzed.api.v0.ShareResponse
	(*LookupShareRequest)(nil),            // 3: authzed.api.v0.LookupShareRequest
	(*LookupShareResponse)(nil),           // 4: authzed.api.v0.LookupShareResponse
}
var file_authzed_api_v0_developer_proto_depIdxs = []int32{
	0, // 0: authzed.api.v0.LookupShareResponse.status:type_name -> authzed.api.v0.LookupShareResponse.LookupStatus
	1, // 1: authzed.api.v0.DeveloperService.Share:input_type -> authzed.api.v0.ShareRequest
	3, // 2: authzed.api.v0.DeveloperService.LookupShared:input_type -> authzed.api.v0.LookupShareRequest
	2, // 3: authzed.api.v0.DeveloperService.Share:output_type -> authzed.api.v0.ShareResponse
	4, // 4: authzed.api.v0.DeveloperService.LookupShared:output_type -> authzed.api.v0.LookupShareResponse
	3, // [3:5] is the sub-list for method output_type
	1, // [1:3] 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_authzed_api_v0_developer_proto_init() }
func file_authzed_api_v0_developer_proto_init() {
	if File_authzed_api_v0_developer_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_authzed_api_v0_developer_proto_rawDesc), len(file_authzed_api_v0_developer_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_authzed_api_v0_developer_proto_goTypes,
		DependencyIndexes: file_authzed_api_v0_developer_proto_depIdxs,
		EnumInfos:         file_authzed_api_v0_developer_proto_enumTypes,
		MessageInfos:      file_authzed_api_v0_developer_proto_msgTypes,
	}.Build()
	File_authzed_api_v0_developer_proto = out.File
	file_authzed_api_v0_developer_proto_goTypes = nil
	file_authzed_api_v0_developer_proto_depIdxs = nil
}
