github.com/gravitational/teleport/api@v0.0.0-20240507183017-3110591cbafc/gen/proto/go/userpreferences/v1/access_graph.pb.go (about) 1 // Copyright 2023 Gravitational, Inc 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.34.0 18 // protoc (unknown) 19 // source: teleport/userpreferences/v1/access_graph.proto 20 21 package userpreferencesv1 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28 ) 29 30 const ( 31 // Verify that this generated code is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 33 // Verify that runtime/protoimpl is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 35 ) 36 37 // AccessGraphUserPreferences is the user preferences for Access Graph. 38 type AccessGraphUserPreferences struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 // has_been_redirected is true if the user has already been redirected to the Access Graph 44 // on login, after having signed up for a trial from the Teleport Policy page. 45 HasBeenRedirected bool `protobuf:"varint,1,opt,name=has_been_redirected,json=hasBeenRedirected,proto3" json:"has_been_redirected,omitempty"` 46 } 47 48 func (x *AccessGraphUserPreferences) Reset() { 49 *x = AccessGraphUserPreferences{} 50 if protoimpl.UnsafeEnabled { 51 mi := &file_teleport_userpreferences_v1_access_graph_proto_msgTypes[0] 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 ms.StoreMessageInfo(mi) 54 } 55 } 56 57 func (x *AccessGraphUserPreferences) String() string { 58 return protoimpl.X.MessageStringOf(x) 59 } 60 61 func (*AccessGraphUserPreferences) ProtoMessage() {} 62 63 func (x *AccessGraphUserPreferences) ProtoReflect() protoreflect.Message { 64 mi := &file_teleport_userpreferences_v1_access_graph_proto_msgTypes[0] 65 if protoimpl.UnsafeEnabled && x != nil { 66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 67 if ms.LoadMessageInfo() == nil { 68 ms.StoreMessageInfo(mi) 69 } 70 return ms 71 } 72 return mi.MessageOf(x) 73 } 74 75 // Deprecated: Use AccessGraphUserPreferences.ProtoReflect.Descriptor instead. 76 func (*AccessGraphUserPreferences) Descriptor() ([]byte, []int) { 77 return file_teleport_userpreferences_v1_access_graph_proto_rawDescGZIP(), []int{0} 78 } 79 80 func (x *AccessGraphUserPreferences) GetHasBeenRedirected() bool { 81 if x != nil { 82 return x.HasBeenRedirected 83 } 84 return false 85 } 86 87 var File_teleport_userpreferences_v1_access_graph_proto protoreflect.FileDescriptor 88 89 var file_teleport_userpreferences_v1_access_graph_proto_rawDesc = []byte{ 90 0x0a, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x70, 91 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 92 0x63, 0x65, 0x73, 0x73, 0x5f, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 93 0x12, 0x1b, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 94 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x4c, 0x0a, 95 0x1a, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x47, 0x72, 0x61, 0x70, 0x68, 0x55, 0x73, 0x65, 0x72, 96 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x68, 97 0x61, 0x73, 0x5f, 0x62, 0x65, 0x65, 0x6e, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 98 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x68, 0x61, 0x73, 0x42, 0x65, 0x65, 99 0x6e, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x65, 0x64, 0x42, 0x59, 0x5a, 0x57, 0x67, 100 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 101 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 102 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 103 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 104 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 105 0x6e, 0x63, 0x65, 0x73, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 106 } 107 108 var ( 109 file_teleport_userpreferences_v1_access_graph_proto_rawDescOnce sync.Once 110 file_teleport_userpreferences_v1_access_graph_proto_rawDescData = file_teleport_userpreferences_v1_access_graph_proto_rawDesc 111 ) 112 113 func file_teleport_userpreferences_v1_access_graph_proto_rawDescGZIP() []byte { 114 file_teleport_userpreferences_v1_access_graph_proto_rawDescOnce.Do(func() { 115 file_teleport_userpreferences_v1_access_graph_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_userpreferences_v1_access_graph_proto_rawDescData) 116 }) 117 return file_teleport_userpreferences_v1_access_graph_proto_rawDescData 118 } 119 120 var file_teleport_userpreferences_v1_access_graph_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 121 var file_teleport_userpreferences_v1_access_graph_proto_goTypes = []interface{}{ 122 (*AccessGraphUserPreferences)(nil), // 0: teleport.userpreferences.v1.AccessGraphUserPreferences 123 } 124 var file_teleport_userpreferences_v1_access_graph_proto_depIdxs = []int32{ 125 0, // [0:0] is the sub-list for method output_type 126 0, // [0:0] is the sub-list for method input_type 127 0, // [0:0] is the sub-list for extension type_name 128 0, // [0:0] is the sub-list for extension extendee 129 0, // [0:0] is the sub-list for field type_name 130 } 131 132 func init() { file_teleport_userpreferences_v1_access_graph_proto_init() } 133 func file_teleport_userpreferences_v1_access_graph_proto_init() { 134 if File_teleport_userpreferences_v1_access_graph_proto != nil { 135 return 136 } 137 if !protoimpl.UnsafeEnabled { 138 file_teleport_userpreferences_v1_access_graph_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 139 switch v := v.(*AccessGraphUserPreferences); i { 140 case 0: 141 return &v.state 142 case 1: 143 return &v.sizeCache 144 case 2: 145 return &v.unknownFields 146 default: 147 return nil 148 } 149 } 150 } 151 type x struct{} 152 out := protoimpl.TypeBuilder{ 153 File: protoimpl.DescBuilder{ 154 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 155 RawDescriptor: file_teleport_userpreferences_v1_access_graph_proto_rawDesc, 156 NumEnums: 0, 157 NumMessages: 1, 158 NumExtensions: 0, 159 NumServices: 0, 160 }, 161 GoTypes: file_teleport_userpreferences_v1_access_graph_proto_goTypes, 162 DependencyIndexes: file_teleport_userpreferences_v1_access_graph_proto_depIdxs, 163 MessageInfos: file_teleport_userpreferences_v1_access_graph_proto_msgTypes, 164 }.Build() 165 File_teleport_userpreferences_v1_access_graph_proto = out.File 166 file_teleport_userpreferences_v1_access_graph_proto_rawDesc = nil 167 file_teleport_userpreferences_v1_access_graph_proto_goTypes = nil 168 file_teleport_userpreferences_v1_access_graph_proto_depIdxs = nil 169 }