github.com/infraboard/keyauth@v0.8.1/apps/endpoint/resource.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.19.1
     5  // source: apps/endpoint/pb/resource.proto
     6  
     7  package endpoint
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  // Resource todo
    24  type Resource struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	// 资源所属服务名称
    30  	// @gotags: json:"service_id"
    31  	ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id"`
    32  	// 资源名称
    33  	// @gotags: json:"name"
    34  	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
    35  	// 资源支持操作的path
    36  	// @gotags: json:"paths"
    37  	Paths []string `protobuf:"bytes,3,rep,name=paths,proto3" json:"paths"`
    38  	// 支持操作的方法
    39  	// @gotags: json:"methods"
    40  	Methods []string `protobuf:"bytes,4,rep,name=methods,proto3" json:"methods"`
    41  	// 支持操作的函数
    42  	// @gotags: json:"functions"
    43  	Functions []string `protobuf:"bytes,5,rep,name=functions,proto3" json:"functions"`
    44  	// 支持操作的动作
    45  	// @gotags: json:"actions"
    46  	Actions []string `protobuf:"bytes,6,rep,name=actions,proto3" json:"actions"`
    47  }
    48  
    49  func (x *Resource) Reset() {
    50  	*x = Resource{}
    51  	if protoimpl.UnsafeEnabled {
    52  		mi := &file_apps_endpoint_pb_resource_proto_msgTypes[0]
    53  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  		ms.StoreMessageInfo(mi)
    55  	}
    56  }
    57  
    58  func (x *Resource) String() string {
    59  	return protoimpl.X.MessageStringOf(x)
    60  }
    61  
    62  func (*Resource) ProtoMessage() {}
    63  
    64  func (x *Resource) ProtoReflect() protoreflect.Message {
    65  	mi := &file_apps_endpoint_pb_resource_proto_msgTypes[0]
    66  	if protoimpl.UnsafeEnabled && x != nil {
    67  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    68  		if ms.LoadMessageInfo() == nil {
    69  			ms.StoreMessageInfo(mi)
    70  		}
    71  		return ms
    72  	}
    73  	return mi.MessageOf(x)
    74  }
    75  
    76  // Deprecated: Use Resource.ProtoReflect.Descriptor instead.
    77  func (*Resource) Descriptor() ([]byte, []int) {
    78  	return file_apps_endpoint_pb_resource_proto_rawDescGZIP(), []int{0}
    79  }
    80  
    81  func (x *Resource) GetServiceId() string {
    82  	if x != nil {
    83  		return x.ServiceId
    84  	}
    85  	return ""
    86  }
    87  
    88  func (x *Resource) GetName() string {
    89  	if x != nil {
    90  		return x.Name
    91  	}
    92  	return ""
    93  }
    94  
    95  func (x *Resource) GetPaths() []string {
    96  	if x != nil {
    97  		return x.Paths
    98  	}
    99  	return nil
   100  }
   101  
   102  func (x *Resource) GetMethods() []string {
   103  	if x != nil {
   104  		return x.Methods
   105  	}
   106  	return nil
   107  }
   108  
   109  func (x *Resource) GetFunctions() []string {
   110  	if x != nil {
   111  		return x.Functions
   112  	}
   113  	return nil
   114  }
   115  
   116  func (x *Resource) GetActions() []string {
   117  	if x != nil {
   118  		return x.Actions
   119  	}
   120  	return nil
   121  }
   122  
   123  type ResourceSet struct {
   124  	state         protoimpl.MessageState
   125  	sizeCache     protoimpl.SizeCache
   126  	unknownFields protoimpl.UnknownFields
   127  
   128  	// @gotags: bson:"total" json:"total"
   129  	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"`
   130  	// @gotags: bson:"items" json:"items"
   131  	Items []*Resource `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"`
   132  }
   133  
   134  func (x *ResourceSet) Reset() {
   135  	*x = ResourceSet{}
   136  	if protoimpl.UnsafeEnabled {
   137  		mi := &file_apps_endpoint_pb_resource_proto_msgTypes[1]
   138  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   139  		ms.StoreMessageInfo(mi)
   140  	}
   141  }
   142  
   143  func (x *ResourceSet) String() string {
   144  	return protoimpl.X.MessageStringOf(x)
   145  }
   146  
   147  func (*ResourceSet) ProtoMessage() {}
   148  
   149  func (x *ResourceSet) ProtoReflect() protoreflect.Message {
   150  	mi := &file_apps_endpoint_pb_resource_proto_msgTypes[1]
   151  	if protoimpl.UnsafeEnabled && x != nil {
   152  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   153  		if ms.LoadMessageInfo() == nil {
   154  			ms.StoreMessageInfo(mi)
   155  		}
   156  		return ms
   157  	}
   158  	return mi.MessageOf(x)
   159  }
   160  
   161  // Deprecated: Use ResourceSet.ProtoReflect.Descriptor instead.
   162  func (*ResourceSet) Descriptor() ([]byte, []int) {
   163  	return file_apps_endpoint_pb_resource_proto_rawDescGZIP(), []int{1}
   164  }
   165  
   166  func (x *ResourceSet) GetTotal() int64 {
   167  	if x != nil {
   168  		return x.Total
   169  	}
   170  	return 0
   171  }
   172  
   173  func (x *ResourceSet) GetItems() []*Resource {
   174  	if x != nil {
   175  		return x.Items
   176  	}
   177  	return nil
   178  }
   179  
   180  var File_apps_endpoint_pb_resource_proto protoreflect.FileDescriptor
   181  
   182  var file_apps_endpoint_pb_resource_proto_rawDesc = []byte{
   183  	0x0a, 0x1f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f,
   184  	0x70, 0x62, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   185  	0x6f, 0x12, 0x1b, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65,
   186  	0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0xa5,
   187  	0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73,
   188  	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
   189  	0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
   190  	0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14,
   191  	0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x70,
   192  	0x61, 0x74, 0x68, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18,
   193  	0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x1c,
   194  	0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28,
   195  	0x09, 0x52, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07,
   196  	0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x61,
   197  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x60, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
   198  	0x63, 0x65, 0x53, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01,
   199  	0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x3b, 0x0a, 0x05, 0x69,
   200  	0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x66,
   201  	0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e,
   202  	0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
   203  	0x65, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68,
   204  	0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72,
   205  	0x64, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x65,
   206  	0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   207  }
   208  
   209  var (
   210  	file_apps_endpoint_pb_resource_proto_rawDescOnce sync.Once
   211  	file_apps_endpoint_pb_resource_proto_rawDescData = file_apps_endpoint_pb_resource_proto_rawDesc
   212  )
   213  
   214  func file_apps_endpoint_pb_resource_proto_rawDescGZIP() []byte {
   215  	file_apps_endpoint_pb_resource_proto_rawDescOnce.Do(func() {
   216  		file_apps_endpoint_pb_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_endpoint_pb_resource_proto_rawDescData)
   217  	})
   218  	return file_apps_endpoint_pb_resource_proto_rawDescData
   219  }
   220  
   221  var file_apps_endpoint_pb_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   222  var file_apps_endpoint_pb_resource_proto_goTypes = []interface{}{
   223  	(*Resource)(nil),    // 0: infraboard.keyauth.endpoint.Resource
   224  	(*ResourceSet)(nil), // 1: infraboard.keyauth.endpoint.ResourceSet
   225  }
   226  var file_apps_endpoint_pb_resource_proto_depIdxs = []int32{
   227  	0, // 0: infraboard.keyauth.endpoint.ResourceSet.items:type_name -> infraboard.keyauth.endpoint.Resource
   228  	1, // [1:1] is the sub-list for method output_type
   229  	1, // [1:1] is the sub-list for method input_type
   230  	1, // [1:1] is the sub-list for extension type_name
   231  	1, // [1:1] is the sub-list for extension extendee
   232  	0, // [0:1] is the sub-list for field type_name
   233  }
   234  
   235  func init() { file_apps_endpoint_pb_resource_proto_init() }
   236  func file_apps_endpoint_pb_resource_proto_init() {
   237  	if File_apps_endpoint_pb_resource_proto != nil {
   238  		return
   239  	}
   240  	if !protoimpl.UnsafeEnabled {
   241  		file_apps_endpoint_pb_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   242  			switch v := v.(*Resource); i {
   243  			case 0:
   244  				return &v.state
   245  			case 1:
   246  				return &v.sizeCache
   247  			case 2:
   248  				return &v.unknownFields
   249  			default:
   250  				return nil
   251  			}
   252  		}
   253  		file_apps_endpoint_pb_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   254  			switch v := v.(*ResourceSet); i {
   255  			case 0:
   256  				return &v.state
   257  			case 1:
   258  				return &v.sizeCache
   259  			case 2:
   260  				return &v.unknownFields
   261  			default:
   262  				return nil
   263  			}
   264  		}
   265  	}
   266  	type x struct{}
   267  	out := protoimpl.TypeBuilder{
   268  		File: protoimpl.DescBuilder{
   269  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   270  			RawDescriptor: file_apps_endpoint_pb_resource_proto_rawDesc,
   271  			NumEnums:      0,
   272  			NumMessages:   2,
   273  			NumExtensions: 0,
   274  			NumServices:   0,
   275  		},
   276  		GoTypes:           file_apps_endpoint_pb_resource_proto_goTypes,
   277  		DependencyIndexes: file_apps_endpoint_pb_resource_proto_depIdxs,
   278  		MessageInfos:      file_apps_endpoint_pb_resource_proto_msgTypes,
   279  	}.Build()
   280  	File_apps_endpoint_pb_resource_proto = out.File
   281  	file_apps_endpoint_pb_resource_proto_rawDesc = nil
   282  	file_apps_endpoint_pb_resource_proto_goTypes = nil
   283  	file_apps_endpoint_pb_resource_proto_depIdxs = nil
   284  }