role.pb.go raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.6
4 // protoc v3.21.12
5 // source: yandex/cloud/iam/v1/role.proto
6
7 package iam
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 unsafe "unsafe"
15 )
16
17 const (
18 // Verify that this generated code is sufficiently up-to-date.
19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 // Verify that runtime/protoimpl is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 )
23
24 // A Role resource. For more information, see [Roles](/docs/iam/concepts/access-control/roles).
25 type Role struct {
26 state protoimpl.MessageState `protogen:"open.v1"`
27 // ID of the role.
28 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
29 // Description of the role. 0-256 characters long.
30 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
31 unknownFields protoimpl.UnknownFields
32 sizeCache protoimpl.SizeCache
33 }
34
35 func (x *Role) Reset() {
36 *x = Role{}
37 mi := &file_yandex_cloud_iam_v1_role_proto_msgTypes[0]
38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
39 ms.StoreMessageInfo(mi)
40 }
41
42 func (x *Role) String() string {
43 return protoimpl.X.MessageStringOf(x)
44 }
45
46 func (*Role) ProtoMessage() {}
47
48 func (x *Role) ProtoReflect() protoreflect.Message {
49 mi := &file_yandex_cloud_iam_v1_role_proto_msgTypes[0]
50 if x != nil {
51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52 if ms.LoadMessageInfo() == nil {
53 ms.StoreMessageInfo(mi)
54 }
55 return ms
56 }
57 return mi.MessageOf(x)
58 }
59
60 // Deprecated: Use Role.ProtoReflect.Descriptor instead.
61 func (*Role) Descriptor() ([]byte, []int) {
62 return file_yandex_cloud_iam_v1_role_proto_rawDescGZIP(), []int{0}
63 }
64
65 func (x *Role) GetId() string {
66 if x != nil {
67 return x.Id
68 }
69 return ""
70 }
71
72 func (x *Role) GetDescription() string {
73 if x != nil {
74 return x.Description
75 }
76 return ""
77 }
78
79 var File_yandex_cloud_iam_v1_role_proto protoreflect.FileDescriptor
80
81 const file_yandex_cloud_iam_v1_role_proto_rawDesc = "" +
82 "\n" +
83 "\x1eyandex/cloud/iam/v1/role.proto\x12\x13yandex.cloud.iam.v1\"8\n" +
84 "\x04Role\x12\x0e\n" +
85 "\x02id\x18\x01 \x01(\tR\x02id\x12 \n" +
86 "\vdescription\x18\x02 \x01(\tR\vdescriptionBV\n" +
87 "\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3"
88
89 var (
90 file_yandex_cloud_iam_v1_role_proto_rawDescOnce sync.Once
91 file_yandex_cloud_iam_v1_role_proto_rawDescData []byte
92 )
93
94 func file_yandex_cloud_iam_v1_role_proto_rawDescGZIP() []byte {
95 file_yandex_cloud_iam_v1_role_proto_rawDescOnce.Do(func() {
96 file_yandex_cloud_iam_v1_role_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_role_proto_rawDesc), len(file_yandex_cloud_iam_v1_role_proto_rawDesc)))
97 })
98 return file_yandex_cloud_iam_v1_role_proto_rawDescData
99 }
100
101 var file_yandex_cloud_iam_v1_role_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
102 var file_yandex_cloud_iam_v1_role_proto_goTypes = []any{
103 (*Role)(nil), // 0: yandex.cloud.iam.v1.Role
104 }
105 var file_yandex_cloud_iam_v1_role_proto_depIdxs = []int32{
106 0, // [0:0] is the sub-list for method output_type
107 0, // [0:0] is the sub-list for method input_type
108 0, // [0:0] is the sub-list for extension type_name
109 0, // [0:0] is the sub-list for extension extendee
110 0, // [0:0] is the sub-list for field type_name
111 }
112
113 func init() { file_yandex_cloud_iam_v1_role_proto_init() }
114 func file_yandex_cloud_iam_v1_role_proto_init() {
115 if File_yandex_cloud_iam_v1_role_proto != nil {
116 return
117 }
118 type x struct{}
119 out := protoimpl.TypeBuilder{
120 File: protoimpl.DescBuilder{
121 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
122 RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_role_proto_rawDesc), len(file_yandex_cloud_iam_v1_role_proto_rawDesc)),
123 NumEnums: 0,
124 NumMessages: 1,
125 NumExtensions: 0,
126 NumServices: 0,
127 },
128 GoTypes: file_yandex_cloud_iam_v1_role_proto_goTypes,
129 DependencyIndexes: file_yandex_cloud_iam_v1_role_proto_depIdxs,
130 MessageInfos: file_yandex_cloud_iam_v1_role_proto_msgTypes,
131 }.Build()
132 File_yandex_cloud_iam_v1_role_proto = out.File
133 file_yandex_cloud_iam_v1_role_proto_goTypes = nil
134 file_yandex_cloud_iam_v1_role_proto_depIdxs = nil
135 }
136