Raw descriptor bytes in .pb.go files were corrupted by the sed-based module path rename (string length changed, breaking protobuf binary encoding). Regenerated with protoc to fix. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
553 lines
17 KiB
Go
553 lines
17 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.32.1
|
|
// source: proto/metacrypt/v1/policy.proto
|
|
|
|
package metacryptv1
|
|
|
|
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 PolicyRule struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Priority int32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
|
|
Effect string `protobuf:"bytes,3,opt,name=effect,proto3" json:"effect,omitempty"`
|
|
Usernames []string `protobuf:"bytes,4,rep,name=usernames,proto3" json:"usernames,omitempty"`
|
|
Roles []string `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"`
|
|
Resources []string `protobuf:"bytes,6,rep,name=resources,proto3" json:"resources,omitempty"`
|
|
Actions []string `protobuf:"bytes,7,rep,name=actions,proto3" json:"actions,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PolicyRule) Reset() {
|
|
*x = PolicyRule{}
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PolicyRule) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PolicyRule) ProtoMessage() {}
|
|
|
|
func (x *PolicyRule) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_policy_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 PolicyRule.ProtoReflect.Descriptor instead.
|
|
func (*PolicyRule) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *PolicyRule) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PolicyRule) GetPriority() int32 {
|
|
if x != nil {
|
|
return x.Priority
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PolicyRule) GetEffect() string {
|
|
if x != nil {
|
|
return x.Effect
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PolicyRule) GetUsernames() []string {
|
|
if x != nil {
|
|
return x.Usernames
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PolicyRule) GetRoles() []string {
|
|
if x != nil {
|
|
return x.Roles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PolicyRule) GetResources() []string {
|
|
if x != nil {
|
|
return x.Resources
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PolicyRule) GetActions() []string {
|
|
if x != nil {
|
|
return x.Actions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreatePolicyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Rule *PolicyRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreatePolicyRequest) Reset() {
|
|
*x = CreatePolicyRequest{}
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreatePolicyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreatePolicyRequest) ProtoMessage() {}
|
|
|
|
func (x *CreatePolicyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_policy_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 CreatePolicyRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreatePolicyRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreatePolicyRequest) GetRule() *PolicyRule {
|
|
if x != nil {
|
|
return x.Rule
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreatePolicyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Rule *PolicyRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreatePolicyResponse) Reset() {
|
|
*x = CreatePolicyResponse{}
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreatePolicyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreatePolicyResponse) ProtoMessage() {}
|
|
|
|
func (x *CreatePolicyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_policy_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 CreatePolicyResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreatePolicyResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CreatePolicyResponse) GetRule() *PolicyRule {
|
|
if x != nil {
|
|
return x.Rule
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetPolicyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Rule *PolicyRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPolicyResponse) Reset() {
|
|
*x = GetPolicyResponse{}
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPolicyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPolicyResponse) ProtoMessage() {}
|
|
|
|
func (x *GetPolicyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_policy_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 GetPolicyResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetPolicyResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetPolicyResponse) GetRule() *PolicyRule {
|
|
if x != nil {
|
|
return x.Rule
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListPoliciesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPoliciesRequest) Reset() {
|
|
*x = ListPoliciesRequest{}
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPoliciesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPoliciesRequest) ProtoMessage() {}
|
|
|
|
func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_policy_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 ListPoliciesRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListPoliciesRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type ListPoliciesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Rules []*PolicyRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPoliciesResponse) Reset() {
|
|
*x = ListPoliciesResponse{}
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPoliciesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPoliciesResponse) ProtoMessage() {}
|
|
|
|
func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[5]
|
|
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 ListPoliciesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListPoliciesResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ListPoliciesResponse) GetRules() []*PolicyRule {
|
|
if x != nil {
|
|
return x.Rules
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetPolicyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPolicyRequest) Reset() {
|
|
*x = GetPolicyRequest{}
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPolicyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPolicyRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPolicyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[6]
|
|
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 GetPolicyRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPolicyRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *GetPolicyRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeletePolicyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeletePolicyRequest) Reset() {
|
|
*x = DeletePolicyRequest{}
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeletePolicyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeletePolicyRequest) ProtoMessage() {}
|
|
|
|
func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[7]
|
|
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 DeletePolicyRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeletePolicyRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *DeletePolicyRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeletePolicyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeletePolicyResponse) Reset() {
|
|
*x = DeletePolicyResponse{}
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeletePolicyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeletePolicyResponse) ProtoMessage() {}
|
|
|
|
func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[8]
|
|
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 DeletePolicyResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeletePolicyResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
var File_proto_metacrypt_v1_policy_proto protoreflect.FileDescriptor
|
|
|
|
const file_proto_metacrypt_v1_policy_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1fproto/metacrypt/v1/policy.proto\x12\fmetacrypt.v1\"\xbc\x01\n" +
|
|
"\n" +
|
|
"PolicyRule\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" +
|
|
"\bpriority\x18\x02 \x01(\x05R\bpriority\x12\x16\n" +
|
|
"\x06effect\x18\x03 \x01(\tR\x06effect\x12\x1c\n" +
|
|
"\tusernames\x18\x04 \x03(\tR\tusernames\x12\x14\n" +
|
|
"\x05roles\x18\x05 \x03(\tR\x05roles\x12\x1c\n" +
|
|
"\tresources\x18\x06 \x03(\tR\tresources\x12\x18\n" +
|
|
"\aactions\x18\a \x03(\tR\aactions\"C\n" +
|
|
"\x13CreatePolicyRequest\x12,\n" +
|
|
"\x04rule\x18\x01 \x01(\v2\x18.metacrypt.v1.PolicyRuleR\x04rule\"D\n" +
|
|
"\x14CreatePolicyResponse\x12,\n" +
|
|
"\x04rule\x18\x01 \x01(\v2\x18.metacrypt.v1.PolicyRuleR\x04rule\"A\n" +
|
|
"\x11GetPolicyResponse\x12,\n" +
|
|
"\x04rule\x18\x01 \x01(\v2\x18.metacrypt.v1.PolicyRuleR\x04rule\"\x15\n" +
|
|
"\x13ListPoliciesRequest\"F\n" +
|
|
"\x14ListPoliciesResponse\x12.\n" +
|
|
"\x05rules\x18\x01 \x03(\v2\x18.metacrypt.v1.PolicyRuleR\x05rules\"\"\n" +
|
|
"\x10GetPolicyRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"%\n" +
|
|
"\x13DeletePolicyRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"\x16\n" +
|
|
"\x14DeletePolicyResponse2\xe2\x02\n" +
|
|
"\rPolicyService\x12U\n" +
|
|
"\fCreatePolicy\x12!.metacrypt.v1.CreatePolicyRequest\x1a\".metacrypt.v1.CreatePolicyResponse\x12U\n" +
|
|
"\fListPolicies\x12!.metacrypt.v1.ListPoliciesRequest\x1a\".metacrypt.v1.ListPoliciesResponse\x12L\n" +
|
|
"\tGetPolicy\x12\x1e.metacrypt.v1.GetPolicyRequest\x1a\x1f.metacrypt.v1.GetPolicyResponse\x12U\n" +
|
|
"\fDeletePolicy\x12!.metacrypt.v1.DeletePolicyRequest\x1a\".metacrypt.v1.DeletePolicyResponseB<Z:git.wntrmute.dev/mc/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
|
|
|
var (
|
|
file_proto_metacrypt_v1_policy_proto_rawDescOnce sync.Once
|
|
file_proto_metacrypt_v1_policy_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_proto_metacrypt_v1_policy_proto_rawDescGZIP() []byte {
|
|
file_proto_metacrypt_v1_policy_proto_rawDescOnce.Do(func() {
|
|
file_proto_metacrypt_v1_policy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_policy_proto_rawDesc), len(file_proto_metacrypt_v1_policy_proto_rawDesc)))
|
|
})
|
|
return file_proto_metacrypt_v1_policy_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_metacrypt_v1_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
var file_proto_metacrypt_v1_policy_proto_goTypes = []any{
|
|
(*PolicyRule)(nil), // 0: metacrypt.v1.PolicyRule
|
|
(*CreatePolicyRequest)(nil), // 1: metacrypt.v1.CreatePolicyRequest
|
|
(*CreatePolicyResponse)(nil), // 2: metacrypt.v1.CreatePolicyResponse
|
|
(*GetPolicyResponse)(nil), // 3: metacrypt.v1.GetPolicyResponse
|
|
(*ListPoliciesRequest)(nil), // 4: metacrypt.v1.ListPoliciesRequest
|
|
(*ListPoliciesResponse)(nil), // 5: metacrypt.v1.ListPoliciesResponse
|
|
(*GetPolicyRequest)(nil), // 6: metacrypt.v1.GetPolicyRequest
|
|
(*DeletePolicyRequest)(nil), // 7: metacrypt.v1.DeletePolicyRequest
|
|
(*DeletePolicyResponse)(nil), // 8: metacrypt.v1.DeletePolicyResponse
|
|
}
|
|
var file_proto_metacrypt_v1_policy_proto_depIdxs = []int32{
|
|
0, // 0: metacrypt.v1.CreatePolicyRequest.rule:type_name -> metacrypt.v1.PolicyRule
|
|
0, // 1: metacrypt.v1.CreatePolicyResponse.rule:type_name -> metacrypt.v1.PolicyRule
|
|
0, // 2: metacrypt.v1.GetPolicyResponse.rule:type_name -> metacrypt.v1.PolicyRule
|
|
0, // 3: metacrypt.v1.ListPoliciesResponse.rules:type_name -> metacrypt.v1.PolicyRule
|
|
1, // 4: metacrypt.v1.PolicyService.CreatePolicy:input_type -> metacrypt.v1.CreatePolicyRequest
|
|
4, // 5: metacrypt.v1.PolicyService.ListPolicies:input_type -> metacrypt.v1.ListPoliciesRequest
|
|
6, // 6: metacrypt.v1.PolicyService.GetPolicy:input_type -> metacrypt.v1.GetPolicyRequest
|
|
7, // 7: metacrypt.v1.PolicyService.DeletePolicy:input_type -> metacrypt.v1.DeletePolicyRequest
|
|
2, // 8: metacrypt.v1.PolicyService.CreatePolicy:output_type -> metacrypt.v1.CreatePolicyResponse
|
|
5, // 9: metacrypt.v1.PolicyService.ListPolicies:output_type -> metacrypt.v1.ListPoliciesResponse
|
|
3, // 10: metacrypt.v1.PolicyService.GetPolicy:output_type -> metacrypt.v1.GetPolicyResponse
|
|
8, // 11: metacrypt.v1.PolicyService.DeletePolicy:output_type -> metacrypt.v1.DeletePolicyResponse
|
|
8, // [8:12] is the sub-list for method output_type
|
|
4, // [4:8] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_metacrypt_v1_policy_proto_init() }
|
|
func file_proto_metacrypt_v1_policy_proto_init() {
|
|
if File_proto_metacrypt_v1_policy_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_policy_proto_rawDesc), len(file_proto_metacrypt_v1_policy_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 9,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_proto_metacrypt_v1_policy_proto_goTypes,
|
|
DependencyIndexes: file_proto_metacrypt_v1_policy_proto_depIdxs,
|
|
MessageInfos: file_proto_metacrypt_v1_policy_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_metacrypt_v1_policy_proto = out.File
|
|
file_proto_metacrypt_v1_policy_proto_goTypes = nil
|
|
file_proto_metacrypt_v1_policy_proto_depIdxs = nil
|
|
}
|