github.com/cloudwan/edgelq-sdk@v1.15.4/iam/resources/v1alpha2/permission/permission.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/iam/proto/v1alpha2/permission.proto 3 // DO NOT EDIT!!! 4 5 package permission 6 7 import ( 8 "fmt" 9 "reflect" 10 "sync" 11 12 "google.golang.org/protobuf/encoding/protojson" 13 "google.golang.org/protobuf/proto" 14 preflect "google.golang.org/protobuf/reflect/protoreflect" 15 "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 // proto imports 19 import ( 20 meta "github.com/cloudwan/goten-sdk/types/meta" 21 ) 22 23 // Reference imports to suppress errors if they are not otherwise used. 24 var ( 25 _ = fmt.Errorf 26 _ = reflect.Method{} 27 _ = sync.Once{} 28 29 _ = protojson.MarshalOptions{} 30 _ = proto.MarshalOptions{} 31 _ = preflect.Value{} 32 _ = protoimpl.DescBuilder{} 33 ) 34 35 // make sure we're using proto imports 36 var ( 37 _ = &meta.Meta{} 38 ) 39 40 const ( 41 // Verify that this generated code is sufficiently up-to-date. 42 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 43 // Verify that runtime/protoimpl is sufficiently up-to-date. 44 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 45 ) 46 47 // Permission Resource 48 type Permission struct { 49 state protoimpl.MessageState 50 sizeCache protoimpl.SizeCache 51 unknownFields protoimpl.UnknownFields 52 // Name of Permission 53 // Example: library.site.create 54 Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 55 // Title 56 Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` 57 // Description 58 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` 59 // Metadata 60 Metadata *meta.Meta `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` 61 } 62 63 func (m *Permission) Reset() { 64 *m = Permission{} 65 if protoimpl.UnsafeEnabled { 66 mi := &edgelq_iam_proto_v1alpha2_permission_proto_msgTypes[0] 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 68 ms.StoreMessageInfo(mi) 69 } 70 } 71 72 func (m *Permission) String() string { 73 return protoimpl.X.MessageStringOf(m) 74 } 75 76 func (*Permission) ProtoMessage() {} 77 78 func (m *Permission) ProtoReflect() preflect.Message { 79 mi := &edgelq_iam_proto_v1alpha2_permission_proto_msgTypes[0] 80 if protoimpl.UnsafeEnabled && m != nil { 81 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 82 if ms.LoadMessageInfo() == nil { 83 ms.StoreMessageInfo(mi) 84 } 85 return ms 86 } 87 return mi.MessageOf(m) 88 } 89 90 func (*Permission) GotenMessage() {} 91 92 // Deprecated, Use Permission.ProtoReflect.Descriptor instead. 93 func (*Permission) Descriptor() ([]byte, []int) { 94 return edgelq_iam_proto_v1alpha2_permission_proto_rawDescGZIP(), []int{0} 95 } 96 97 func (m *Permission) Unmarshal(b []byte) error { 98 return proto.Unmarshal(b, m) 99 } 100 101 func (m *Permission) Marshal() ([]byte, error) { 102 return proto.Marshal(m) 103 } 104 105 func (m *Permission) MarshalJSON() ([]byte, error) { 106 return protojson.MarshalOptions{}.Marshal(m) 107 } 108 109 func (m *Permission) UnmarshalJSON(data []byte) error { 110 return protojson.Unmarshal(data, m) 111 } 112 113 func (m *Permission) GetName() *Name { 114 if m != nil { 115 return m.Name 116 } 117 return nil 118 } 119 120 func (m *Permission) GetTitle() string { 121 if m != nil { 122 return m.Title 123 } 124 return "" 125 } 126 127 func (m *Permission) GetDescription() string { 128 if m != nil { 129 return m.Description 130 } 131 return "" 132 } 133 134 func (m *Permission) GetMetadata() *meta.Meta { 135 if m != nil { 136 return m.Metadata 137 } 138 return nil 139 } 140 141 func (m *Permission) SetName(fv *Name) { 142 if m == nil { 143 panic(fmt.Errorf("can't set %s on nil %s", "Name", "Permission")) 144 } 145 m.Name = fv 146 } 147 148 func (m *Permission) SetTitle(fv string) { 149 if m == nil { 150 panic(fmt.Errorf("can't set %s on nil %s", "Title", "Permission")) 151 } 152 m.Title = fv 153 } 154 155 func (m *Permission) SetDescription(fv string) { 156 if m == nil { 157 panic(fmt.Errorf("can't set %s on nil %s", "Description", "Permission")) 158 } 159 m.Description = fv 160 } 161 162 func (m *Permission) SetMetadata(fv *meta.Meta) { 163 if m == nil { 164 panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "Permission")) 165 } 166 m.Metadata = fv 167 } 168 169 var edgelq_iam_proto_v1alpha2_permission_proto preflect.FileDescriptor 170 171 var edgelq_iam_proto_v1alpha2_permission_proto_rawDesc = []byte{ 172 0x0a, 0x2a, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 173 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x65, 0x72, 0x6d, 174 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6e, 0x74, 175 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x1a, 0x19, 176 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 177 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 178 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 179 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 180 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 181 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 182 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 183 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 184 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 185 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x74, 186 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 187 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 188 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 189 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 190 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 191 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbc, 0x02, 0x0a, 0x0a, 0x50, 192 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 193 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x12, 0xb2, 0xda, 0x21, 0x0e, 0x0a, 0x0c, 0x0a, 194 0x0a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 195 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 196 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 197 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 198 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 199 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 200 0x74, 0x65, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x08, 201 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x9e, 0x01, 0xea, 0x41, 0x35, 0x0a, 0x19, 202 0x69, 0x61, 0x6d, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 203 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x70, 0x65, 0x72, 0x6d, 0x69, 204 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 205 0x6f, 0x6e, 0x7d, 0x92, 0xd9, 0x21, 0x2e, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 206 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 207 0x73, 0x2a, 0x12, 0x5b, 0x5c, 0x77, 0x40, 0x21, 0x5c, 0x5c, 0x2e, 0x7c, 0x2d, 0x5d, 0x7b, 0x34, 208 0x2c, 0x32, 0x35, 0x36, 0x7d, 0xda, 0x94, 0x23, 0x08, 0x12, 0x06, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 209 0x65, 0xc2, 0x85, 0x2c, 0x24, 0x22, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x05, 0x74, 0x69, 0x74, 210 0x6c, 0x65, 0x22, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 211 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x9d, 0x02, 0xe8, 0xde, 0x21, 0x01, 212 0xd2, 0xff, 0xd0, 0x02, 0x4c, 0x0a, 0x10, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 213 0x6e, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 214 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 215 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 216 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 217 0x6e, 0xa2, 0x80, 0xd1, 0x02, 0x4e, 0x0a, 0x11, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 218 0x6f, 0x6e, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 219 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 220 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 221 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 222 0x73, 0x69, 0x6f, 0x6e, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 223 0x6d, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x0f, 0x50, 224 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 225 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 226 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 227 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 228 0x68, 0x61, 0x32, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x3b, 0x70, 229 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 230 0x33, 231 } 232 233 var ( 234 edgelq_iam_proto_v1alpha2_permission_proto_rawDescOnce sync.Once 235 edgelq_iam_proto_v1alpha2_permission_proto_rawDescData = edgelq_iam_proto_v1alpha2_permission_proto_rawDesc 236 ) 237 238 func edgelq_iam_proto_v1alpha2_permission_proto_rawDescGZIP() []byte { 239 edgelq_iam_proto_v1alpha2_permission_proto_rawDescOnce.Do(func() { 240 edgelq_iam_proto_v1alpha2_permission_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_iam_proto_v1alpha2_permission_proto_rawDescData) 241 }) 242 return edgelq_iam_proto_v1alpha2_permission_proto_rawDescData 243 } 244 245 var edgelq_iam_proto_v1alpha2_permission_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 246 var edgelq_iam_proto_v1alpha2_permission_proto_goTypes = []interface{}{ 247 (*Permission)(nil), // 0: ntt.iam.v1alpha2.Permission 248 (*meta.Meta)(nil), // 1: goten.types.Meta 249 } 250 var edgelq_iam_proto_v1alpha2_permission_proto_depIdxs = []int32{ 251 1, // 0: ntt.iam.v1alpha2.Permission.metadata:type_name -> goten.types.Meta 252 1, // [1:1] is the sub-list for method output_type 253 1, // [1:1] is the sub-list for method input_type 254 1, // [1:1] is the sub-list for extension type_name 255 1, // [1:1] is the sub-list for extension extendee 256 0, // [0:1] is the sub-list for field type_name 257 } 258 259 func init() { edgelq_iam_proto_v1alpha2_permission_proto_init() } 260 func edgelq_iam_proto_v1alpha2_permission_proto_init() { 261 if edgelq_iam_proto_v1alpha2_permission_proto != nil { 262 return 263 } 264 if !protoimpl.UnsafeEnabled { 265 266 edgelq_iam_proto_v1alpha2_permission_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 267 switch v := v.(*Permission); i { 268 case 0: 269 return &v.state 270 case 1: 271 return &v.sizeCache 272 case 2: 273 return &v.unknownFields 274 default: 275 return nil 276 } 277 } 278 } 279 280 type x struct{} 281 out := protoimpl.TypeBuilder{ 282 File: protoimpl.DescBuilder{ 283 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 284 RawDescriptor: edgelq_iam_proto_v1alpha2_permission_proto_rawDesc, 285 NumEnums: 0, 286 NumMessages: 1, 287 NumExtensions: 0, 288 NumServices: 0, 289 }, 290 GoTypes: edgelq_iam_proto_v1alpha2_permission_proto_goTypes, 291 DependencyIndexes: edgelq_iam_proto_v1alpha2_permission_proto_depIdxs, 292 MessageInfos: edgelq_iam_proto_v1alpha2_permission_proto_msgTypes, 293 }.Build() 294 edgelq_iam_proto_v1alpha2_permission_proto = out.File 295 edgelq_iam_proto_v1alpha2_permission_proto_rawDesc = nil 296 edgelq_iam_proto_v1alpha2_permission_proto_goTypes = nil 297 edgelq_iam_proto_v1alpha2_permission_proto_depIdxs = nil 298 }