Debian Codegraph @

go/types/v1/account_token.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.35.1
4 // protoc (unknown)
5 // source: types/v1/account_token.proto
6
7 package typesv1
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
13 reflect "reflect"
14 sync "sync"
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 type AccountRole int32
25
26 const (
27 AccountRole_AccountRole_Invalid AccountRole = 0
28 AccountRole_AccountRole_Ingestor AccountRole = 1
29 )
30
31 // Enum value maps for AccountRole.
32 var (
33 AccountRole_name = map[int32]string{
34 0: "AccountRole_Invalid",
35 1: "AccountRole_Ingestor",
36 }
37 AccountRole_value = map[string]int32{
38 "AccountRole_Invalid": 0,
39 "AccountRole_Ingestor": 1,
40 }
41 )
42
43 func (x AccountRole) Enum() *AccountRole {
44 p := new(AccountRole)
45 *p = x
46 return p
47 }
48
49 func (x AccountRole) String() string {
50 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
51 }
52
53 func (AccountRole) Descriptor() protoreflect.EnumDescriptor {
54 return file_types_v1_account_token_proto_enumTypes[0].Descriptor()
55 }
56
57 func (AccountRole) Type() protoreflect.EnumType {
58 return &file_types_v1_account_token_proto_enumTypes[0]
59 }
60
61 func (x AccountRole) Number() protoreflect.EnumNumber {
62 return protoreflect.EnumNumber(x)
63 }
64
65 // Deprecated: Use AccountRole.Descriptor instead.
66 func (AccountRole) EnumDescriptor() ([]byte, []int) {
67 return file_types_v1_account_token_proto_rawDescGZIP(), []int{0}
68 }
69
70 type AccountToken struct {
71 state protoimpl.MessageState
72 sizeCache protoimpl.SizeCache
73 unknownFields protoimpl.UnknownFields
74
75 AccountId int64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
76 TokenId int64 `protobuf:"varint,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
77 Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
78 Roles []AccountRole `protobuf:"varint,4,rep,packed,name=roles,proto3,enum=types.v1.AccountRole" json:"roles,omitempty"`
79 ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
80 RevokedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"`
81 LastUsedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_used_at,json=lastUsedAt,proto3" json:"last_used_at,omitempty"`
82 }
83
84 func (x *AccountToken) Reset() {
85 *x = AccountToken{}
86 mi := &file_types_v1_account_token_proto_msgTypes[0]
87 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
88 ms.StoreMessageInfo(mi)
89 }
90
91 func (x *AccountToken) String() string {
92 return protoimpl.X.MessageStringOf(x)
93 }
94
95 func (*AccountToken) ProtoMessage() {}
96
97 func (x *AccountToken) ProtoReflect() protoreflect.Message {
98 mi := &file_types_v1_account_token_proto_msgTypes[0]
99 if x != nil {
100 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
101 if ms.LoadMessageInfo() == nil {
102 ms.StoreMessageInfo(mi)
103 }
104 return ms
105 }
106 return mi.MessageOf(x)
107 }
108
109 // Deprecated: Use AccountToken.ProtoReflect.Descriptor instead.
110 func (*AccountToken) Descriptor() ([]byte, []int) {
111 return file_types_v1_account_token_proto_rawDescGZIP(), []int{0}
112 }
113
114 func (x *AccountToken) GetAccountId() int64 {
115 if x != nil {
116 return x.AccountId
117 }
118 return 0
119 }
120
121 func (x *AccountToken) GetTokenId() int64 {
122 if x != nil {
123 return x.TokenId
124 }
125 return 0
126 }
127
128 func (x *AccountToken) GetToken() string {
129 if x != nil {
130 return x.Token
131 }
132 return ""
133 }
134
135 func (x *AccountToken) GetRoles() []AccountRole {
136 if x != nil {
137 return x.Roles
138 }
139 return nil
140 }
141
142 func (x *AccountToken) GetExpiresAt() *timestamppb.Timestamp {
143 if x != nil {
144 return x.ExpiresAt
145 }
146 return nil
147 }
148
149 func (x *AccountToken) GetRevokedAt() *timestamppb.Timestamp {
150 if x != nil {
151 return x.RevokedAt
152 }
153 return nil
154 }
155
156 func (x *AccountToken) GetLastUsedAt() *timestamppb.Timestamp {
157 if x != nil {
158 return x.LastUsedAt
159 }
160 return nil
161 }
162
163 var File_types_v1_account_token_proto protoreflect.FileDescriptor
164
165 var file_types_v1_account_token_proto_rawDesc = []byte{
166 0x0a, 0x1c, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
167 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08,
168 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
169 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
170 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbf, 0x02, 0x0a, 0x0c, 0x41, 0x63,
171 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63,
172 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
173 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b,
174 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x6f, 0x6b,
175 0x65, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20,
176 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2b, 0x0a, 0x05, 0x72, 0x6f,
177 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65,
178 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x65,
179 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72,
180 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
181 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
182 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73,
183 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x74,
184 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
185 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
186 0x6d, 0x70, 0x52, 0x09, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3c, 0x0a,
187 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20,
188 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
189 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
190 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x73, 0x65, 0x64, 0x41, 0x74, 0x2a, 0x40, 0x0a, 0x0b, 0x41,
191 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x63,
192 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x5f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69,
193 0x64, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x6f,
194 0x6c, 0x65, 0x5f, 0x49, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x10, 0x01, 0x42, 0x91, 0x01,
195 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x11,
196 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x74,
197 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
198 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x6c, 0x6f, 0x67, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67,
199 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73,
200 0x76, 0x31, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73,
201 0x2e, 0x56, 0x31, 0xca, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02,
202 0x14, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
203 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56,
204 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
205 }
206
207 var (
208 file_types_v1_account_token_proto_rawDescOnce sync.Once
209 file_types_v1_account_token_proto_rawDescData = file_types_v1_account_token_proto_rawDesc
210 )
211
212 func file_types_v1_account_token_proto_rawDescGZIP() []byte {
213 file_types_v1_account_token_proto_rawDescOnce.Do(func() {
214 file_types_v1_account_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_types_v1_account_token_proto_rawDescData)
215 })
216 return file_types_v1_account_token_proto_rawDescData
217 }
218
219 var file_types_v1_account_token_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
220 var file_types_v1_account_token_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
221 var file_types_v1_account_token_proto_goTypes = []any{
222 (AccountRole)(0), // 0: types.v1.AccountRole
223 (*AccountToken)(nil), // 1: types.v1.AccountToken
224 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
225 }
226 var file_types_v1_account_token_proto_depIdxs = []int32{
227 0, // 0: types.v1.AccountToken.roles:type_name -> types.v1.AccountRole
228 2, // 1: types.v1.AccountToken.expires_at:type_name -> google.protobuf.Timestamp
229 2, // 2: types.v1.AccountToken.revoked_at:type_name -> google.protobuf.Timestamp
230 2, // 3: types.v1.AccountToken.last_used_at:type_name -> google.protobuf.Timestamp
231 4, // [4:4] is the sub-list for method output_type
232 4, // [4:4] is the sub-list for method input_type
233 4, // [4:4] is the sub-list for extension type_name
234 4, // [4:4] is the sub-list for extension extendee
235 0, // [0:4] is the sub-list for field type_name
236 }
237
238 func init() { file_types_v1_account_token_proto_init() }
239 func file_types_v1_account_token_proto_init() {
240 if File_types_v1_account_token_proto != nil {
241 return
242 }
243 type x struct{}
244 out := protoimpl.TypeBuilder{
245 File: protoimpl.DescBuilder{
246 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
247 RawDescriptor: file_types_v1_account_token_proto_rawDesc,
248 NumEnums: 1,
249 NumMessages: 1,
250 NumExtensions: 0,
251 NumServices: 0,
252 },
253 GoTypes: file_types_v1_account_token_proto_goTypes,
254 DependencyIndexes: file_types_v1_account_token_proto_depIdxs,
255 EnumInfos: file_types_v1_account_token_proto_enumTypes,
256 MessageInfos: file_types_v1_account_token_proto_msgTypes,
257 }.Build()
258 File_types_v1_account_token_proto = out.File
259 file_types_v1_account_token_proto_rawDesc = nil
260 file_types_v1_account_token_proto_goTypes = nil
261 file_types_v1_account_token_proto_depIdxs = nil
262 }