go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/server/encryptedcookies/internal/encryptedcookiespb/cookie.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/cookie.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  // SessionCookie is a clear-text representation of a session cookie.
    38  //
    39  // It contains the session ID and the per-session keyset used to encrypt the
    40  // sensitive part of the session stored in the Private proto.
    41  type SessionCookie struct {
    42  	state         protoimpl.MessageState
    43  	sizeCache     protoimpl.SizeCache
    44  	unknownFields protoimpl.UnknownFields
    45  
    46  	SessionId []byte `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
    47  	Keyset    []byte `protobuf:"bytes,2,opt,name=keyset,proto3" json:"keyset,omitempty"` // serialized google.crypto.tink.Keyset with AEAD keys
    48  }
    49  
    50  func (x *SessionCookie) Reset() {
    51  	*x = SessionCookie{}
    52  	if protoimpl.UnsafeEnabled {
    53  		mi := &file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_msgTypes[0]
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		ms.StoreMessageInfo(mi)
    56  	}
    57  }
    58  
    59  func (x *SessionCookie) String() string {
    60  	return protoimpl.X.MessageStringOf(x)
    61  }
    62  
    63  func (*SessionCookie) ProtoMessage() {}
    64  
    65  func (x *SessionCookie) ProtoReflect() protoreflect.Message {
    66  	mi := &file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_msgTypes[0]
    67  	if protoimpl.UnsafeEnabled && x != nil {
    68  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    69  		if ms.LoadMessageInfo() == nil {
    70  			ms.StoreMessageInfo(mi)
    71  		}
    72  		return ms
    73  	}
    74  	return mi.MessageOf(x)
    75  }
    76  
    77  // Deprecated: Use SessionCookie.ProtoReflect.Descriptor instead.
    78  func (*SessionCookie) Descriptor() ([]byte, []int) {
    79  	return file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDescGZIP(), []int{0}
    80  }
    81  
    82  func (x *SessionCookie) GetSessionId() []byte {
    83  	if x != nil {
    84  		return x.SessionId
    85  	}
    86  	return nil
    87  }
    88  
    89  func (x *SessionCookie) GetKeyset() []byte {
    90  	if x != nil {
    91  		return x.Keyset
    92  	}
    93  	return nil
    94  }
    95  
    96  var File_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto protoreflect.FileDescriptor
    97  
    98  var file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDesc = []byte{
    99  	0x0a, 0x55, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   100  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x65, 0x6e,
   101  	0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x2f, 0x69,
   102  	0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65,
   103  	0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x70, 0x62, 0x2f, 0x63, 0x6f, 0x6f, 0x6b, 0x69,
   104  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x73, 0x65,
   105  	0x72, 0x76, 0x65, 0x72, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f,
   106  	0x6f, 0x6b, 0x69, 0x65, 0x73, 0x22, 0x46, 0x0a, 0x0d, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
   107  	0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
   108  	0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73,
   109  	0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x73, 0x65, 0x74, 0x18,
   110  	0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6b, 0x65, 0x79, 0x73, 0x65, 0x74, 0x42, 0x4a, 0x5a,
   111  	0x48, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
   112  	0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x65, 0x6e, 0x63,
   113  	0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x2f, 0x69, 0x6e,
   114  	0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64,
   115  	0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   116  	0x33,
   117  }
   118  
   119  var (
   120  	file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDescOnce sync.Once
   121  	file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDescData = file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDesc
   122  )
   123  
   124  func file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDescGZIP() []byte {
   125  	file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDescOnce.Do(func() {
   126  		file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDescData)
   127  	})
   128  	return file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDescData
   129  }
   130  
   131  var file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   132  var file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_goTypes = []interface{}{
   133  	(*SessionCookie)(nil), // 0: luci.server.encryptedcookies.SessionCookie
   134  }
   135  var file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_depIdxs = []int32{
   136  	0, // [0:0] is the sub-list for method output_type
   137  	0, // [0:0] is the sub-list for method input_type
   138  	0, // [0:0] is the sub-list for extension type_name
   139  	0, // [0:0] is the sub-list for extension extendee
   140  	0, // [0:0] is the sub-list for field type_name
   141  }
   142  
   143  func init() {
   144  	file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_init()
   145  }
   146  func file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_init() {
   147  	if File_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto != nil {
   148  		return
   149  	}
   150  	if !protoimpl.UnsafeEnabled {
   151  		file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   152  			switch v := v.(*SessionCookie); i {
   153  			case 0:
   154  				return &v.state
   155  			case 1:
   156  				return &v.sizeCache
   157  			case 2:
   158  				return &v.unknownFields
   159  			default:
   160  				return nil
   161  			}
   162  		}
   163  	}
   164  	type x struct{}
   165  	out := protoimpl.TypeBuilder{
   166  		File: protoimpl.DescBuilder{
   167  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   168  			RawDescriptor: file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDesc,
   169  			NumEnums:      0,
   170  			NumMessages:   1,
   171  			NumExtensions: 0,
   172  			NumServices:   0,
   173  		},
   174  		GoTypes:           file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_goTypes,
   175  		DependencyIndexes: file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_depIdxs,
   176  		MessageInfos:      file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_msgTypes,
   177  	}.Build()
   178  	File_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto = out.File
   179  	file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_rawDesc = nil
   180  	file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_goTypes = nil
   181  	file_go_chromium_org_luci_server_encryptedcookies_internal_encryptedcookiespb_cookie_proto_depIdxs = nil
   182  }