go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/server/encryptedcookies/internal/encryptedcookiespb/state.pb.go (about) 1 // Copyright 2021 The LUCI Authors. 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.31.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/server/encryptedcookies/internal/encryptedcookiespb/state.proto 20 21 package encryptedcookiespb 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 // OpenIDState is encrypted and used as `state` in OpenID Connect protocol. 38 type OpenIDState struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 SessionId []byte `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // the future session ID (must not exist yet) 44 Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // random string used as `nonce` in the protocol 45 CodeVerifier string `protobuf:"bytes,3,opt,name=code_verifier,json=codeVerifier,proto3" json:"code_verifier,omitempty"` // random string used in PKCE protocol 46 DestHost string `protobuf:"bytes,4,opt,name=dest_host,json=destHost,proto3" json:"dest_host,omitempty"` // the destination redirect host 47 DestPath string `protobuf:"bytes,5,opt,name=dest_path,json=destPath,proto3" json:"dest_path,omitempty"` // the destination redirect path 48 // the scopes that were requested in the authorization request, in addition 49 // to the default scopes (openid email profile). 50 AdditionalScopes []string `protobuf:"bytes,6,rep,name=additional_scopes,json=additionalScopes,proto3" json:"additional_scopes,omitempty"` 51 } 52 53 func (x *OpenIDState) Reset() { 54 *x = OpenIDState{} 55 if protoimpl.UnsafeEnabled { 56 mi := &file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_msgTypes[0] 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 ms.StoreMessageInfo(mi) 59 } 60 } 61 62 func (x *OpenIDState) String() string { 63 return protoimpl.X.MessageStringOf(x) 64 } 65 66 func (*OpenIDState) ProtoMessage() {} 67 68 func (x *OpenIDState) ProtoReflect() protoreflect.Message { 69 mi := &file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_msgTypes[0] 70 if protoimpl.UnsafeEnabled && x != nil { 71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 72 if ms.LoadMessageInfo() == nil { 73 ms.StoreMessageInfo(mi) 74 } 75 return ms 76 } 77 return mi.MessageOf(x) 78 } 79 80 // Deprecated: Use OpenIDState.ProtoReflect.Descriptor instead. 81 func (*OpenIDState) Descriptor() ([]byte, []int) { 82 return file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDescGZIP(), []int{0} 83 } 84 85 func (x *OpenIDState) GetSessionId() []byte { 86 if x != nil { 87 return x.SessionId 88 } 89 return nil 90 } 91 92 func (x *OpenIDState) GetNonce() []byte { 93 if x != nil { 94 return x.Nonce 95 } 96 return nil 97 } 98 99 func (x *OpenIDState) GetCodeVerifier() string { 100 if x != nil { 101 return x.CodeVerifier 102 } 103 return "" 104 } 105 106 func (x *OpenIDState) GetDestHost() string { 107 if x != nil { 108 return x.DestHost 109 } 110 return "" 111 } 112 113 func (x *OpenIDState) GetDestPath() string { 114 if x != nil { 115 return x.DestPath 116 } 117 return "" 118 } 119 120 func (x *OpenIDState) GetAdditionalScopes() []string { 121 if x != nil { 122 return x.AdditionalScopes 123 } 124 return nil 125 } 126 127 var File_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto protoreflect.FileDescriptor 128 129 var file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDesc = []byte{ 130 0x0a, 0x54, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 131 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x65, 0x6e, 132 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x2f, 0x69, 133 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 134 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x70, 0x62, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 135 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x73, 0x65, 0x72, 136 0x76, 0x65, 0x72, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 137 0x6b, 0x69, 0x65, 0x73, 0x22, 0xce, 0x01, 0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x44, 0x53, 138 0x74, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 139 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 140 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 141 0x28, 0x0c, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x64, 142 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 143 0x52, 0x0c, 0x63, 0x6f, 0x64, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x1b, 144 0x0a, 0x09, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 145 0x09, 0x52, 0x08, 0x64, 0x65, 0x73, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 146 0x65, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 147 0x64, 0x65, 0x73, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 148 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x06, 0x20, 149 0x03, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 150 0x63, 0x6f, 0x70, 0x65, 0x73, 0x42, 0x4a, 0x5a, 0x48, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 151 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 152 0x72, 0x76, 0x65, 0x72, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 153 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x65, 154 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x70, 155 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 156 } 157 158 var ( 159 file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDescOnce sync.Once 160 file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDescData = file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDesc 161 ) 162 163 func file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDescGZIP() []byte { 164 file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDescOnce.Do(func() { 165 file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDescData) 166 }) 167 return file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDescData 168 } 169 170 var file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 171 var file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_goTypes = []interface{}{ 172 (*OpenIDState)(nil), // 0: luci.server.encryptedcookies.OpenIDState 173 } 174 var file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_depIdxs = []int32{ 175 0, // [0:0] is the sub-list for method output_type 176 0, // [0:0] is the sub-list for method input_type 177 0, // [0:0] is the sub-list for extension type_name 178 0, // [0:0] is the sub-list for extension extendee 179 0, // [0:0] is the sub-list for field type_name 180 } 181 182 func init() { 183 file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_init() 184 } 185 func file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_init() { 186 if File_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto != nil { 187 return 188 } 189 if !protoimpl.UnsafeEnabled { 190 file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 191 switch v := v.(*OpenIDState); i { 192 case 0: 193 return &v.state 194 case 1: 195 return &v.sizeCache 196 case 2: 197 return &v.unknownFields 198 default: 199 return nil 200 } 201 } 202 } 203 type x struct{} 204 out := protoimpl.TypeBuilder{ 205 File: protoimpl.DescBuilder{ 206 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 207 RawDescriptor: file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDesc, 208 NumEnums: 0, 209 NumMessages: 1, 210 NumExtensions: 0, 211 NumServices: 0, 212 }, 213 GoTypes: file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_goTypes, 214 DependencyIndexes: file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_depIdxs, 215 MessageInfos: file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_msgTypes, 216 }.Build() 217 File_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto = out.File 218 file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_rawDesc = nil 219 file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_goTypes = nil 220 file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_state_proto_depIdxs = nil 221 }