go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/auth_service/api/rpcpb/accounts.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/auth_service/api/rpcpb/accounts.proto 20 21 package rpcpb 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 emptypb "google.golang.org/protobuf/types/known/emptypb" 27 reflect "reflect" 28 sync "sync" 29 ) 30 31 const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36 ) 37 38 // SelfInfo is information about the caller. 39 type SelfInfo struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // e.g. "user:someone@example.com" 45 Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` // e.g. "192.168.0.1" 46 } 47 48 func (x *SelfInfo) Reset() { 49 *x = SelfInfo{} 50 if protoimpl.UnsafeEnabled { 51 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_msgTypes[0] 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 ms.StoreMessageInfo(mi) 54 } 55 } 56 57 func (x *SelfInfo) String() string { 58 return protoimpl.X.MessageStringOf(x) 59 } 60 61 func (*SelfInfo) ProtoMessage() {} 62 63 func (x *SelfInfo) ProtoReflect() protoreflect.Message { 64 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_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 SelfInfo.ProtoReflect.Descriptor instead. 76 func (*SelfInfo) Descriptor() ([]byte, []int) { 77 return file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDescGZIP(), []int{0} 78 } 79 80 func (x *SelfInfo) GetIdentity() string { 81 if x != nil { 82 return x.Identity 83 } 84 return "" 85 } 86 87 func (x *SelfInfo) GetIp() string { 88 if x != nil { 89 return x.Ip 90 } 91 return "" 92 } 93 94 var File_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto protoreflect.FileDescriptor 95 96 var file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDesc = []byte{ 97 0x0a, 0x3a, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 98 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x72, 0x76, 99 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2f, 0x61, 0x63, 100 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x61, 0x75, 101 0x74, 0x68, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 102 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 103 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x36, 0x0a, 0x08, 0x53, 0x65, 0x6c, 0x66, 0x49, 104 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 105 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 106 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x32, 107 0x45, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x39, 0x0a, 0x07, 0x47, 108 0x65, 0x74, 0x53, 0x65, 0x6c, 0x66, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 109 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 110 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x65, 111 0x6c, 0x66, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 112 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 113 0x75, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 114 0x72, 0x70, 0x63, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 115 } 116 117 var ( 118 file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDescOnce sync.Once 119 file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDescData = file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDesc 120 ) 121 122 func file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDescGZIP() []byte { 123 file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDescOnce.Do(func() { 124 file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDescData) 125 }) 126 return file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDescData 127 } 128 129 var file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 130 var file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_goTypes = []interface{}{ 131 (*SelfInfo)(nil), // 0: auth.service.SelfInfo 132 (*emptypb.Empty)(nil), // 1: google.protobuf.Empty 133 } 134 var file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_depIdxs = []int32{ 135 1, // 0: auth.service.Accounts.GetSelf:input_type -> google.protobuf.Empty 136 0, // 1: auth.service.Accounts.GetSelf:output_type -> auth.service.SelfInfo 137 1, // [1:2] is the sub-list for method output_type 138 0, // [0:1] is the sub-list for method input_type 139 0, // [0:0] is the sub-list for extension type_name 140 0, // [0:0] is the sub-list for extension extendee 141 0, // [0:0] is the sub-list for field type_name 142 } 143 144 func init() { file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_init() } 145 func file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_init() { 146 if File_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto != nil { 147 return 148 } 149 if !protoimpl.UnsafeEnabled { 150 file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 151 switch v := v.(*SelfInfo); i { 152 case 0: 153 return &v.state 154 case 1: 155 return &v.sizeCache 156 case 2: 157 return &v.unknownFields 158 default: 159 return nil 160 } 161 } 162 } 163 type x struct{} 164 out := protoimpl.TypeBuilder{ 165 File: protoimpl.DescBuilder{ 166 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 167 RawDescriptor: file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDesc, 168 NumEnums: 0, 169 NumMessages: 1, 170 NumExtensions: 0, 171 NumServices: 1, 172 }, 173 GoTypes: file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_goTypes, 174 DependencyIndexes: file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_depIdxs, 175 MessageInfos: file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_msgTypes, 176 }.Build() 177 File_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto = out.File 178 file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_rawDesc = nil 179 file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_goTypes = nil 180 file_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto_depIdxs = nil 181 }