Debian Codegraph @

go/types/v1/environment_token.pb.go

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