go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/buildbucket/proto/log.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.32.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/buildbucket/proto/log.proto 20 21 package buildbucketpb 22 23 import ( 24 _ "go.chromium.org/luci/common/bq/pb" 25 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 26 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 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 // A pRPC request log. 39 type PRPCRequestLog struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 // An ID associated with this request log. 45 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 46 // Any parent ID associated with this request log. 47 // Typically a parent will be the batch request containing this request. 48 Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` 49 // When the request being logged was received (microseconds since epoch). 50 CreationTime int64 `protobuf:"varint,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` 51 // Duration of the request in microseconds. 52 Duration int64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"` 53 // Method called. e.g. "Builds.GetBuild". 54 Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"` 55 // Caller auth identity (e.g. "<kind>:<id>"). Only set when the caller is a 56 // robot or anonymous. 57 User string `protobuf:"bytes,6,opt,name=user,proto3" json:"user,omitempty"` 58 } 59 60 func (x *PRPCRequestLog) Reset() { 61 *x = PRPCRequestLog{} 62 if protoimpl.UnsafeEnabled { 63 mi := &file_go_chromium_org_luci_buildbucket_proto_log_proto_msgTypes[0] 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 ms.StoreMessageInfo(mi) 66 } 67 } 68 69 func (x *PRPCRequestLog) String() string { 70 return protoimpl.X.MessageStringOf(x) 71 } 72 73 func (*PRPCRequestLog) ProtoMessage() {} 74 75 func (x *PRPCRequestLog) ProtoReflect() protoreflect.Message { 76 mi := &file_go_chromium_org_luci_buildbucket_proto_log_proto_msgTypes[0] 77 if protoimpl.UnsafeEnabled && x != nil { 78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 79 if ms.LoadMessageInfo() == nil { 80 ms.StoreMessageInfo(mi) 81 } 82 return ms 83 } 84 return mi.MessageOf(x) 85 } 86 87 // Deprecated: Use PRPCRequestLog.ProtoReflect.Descriptor instead. 88 func (*PRPCRequestLog) Descriptor() ([]byte, []int) { 89 return file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDescGZIP(), []int{0} 90 } 91 92 func (x *PRPCRequestLog) GetId() string { 93 if x != nil { 94 return x.Id 95 } 96 return "" 97 } 98 99 func (x *PRPCRequestLog) GetParent() string { 100 if x != nil { 101 return x.Parent 102 } 103 return "" 104 } 105 106 func (x *PRPCRequestLog) GetCreationTime() int64 { 107 if x != nil { 108 return x.CreationTime 109 } 110 return 0 111 } 112 113 func (x *PRPCRequestLog) GetDuration() int64 { 114 if x != nil { 115 return x.Duration 116 } 117 return 0 118 } 119 120 func (x *PRPCRequestLog) GetMethod() string { 121 if x != nil { 122 return x.Method 123 } 124 return "" 125 } 126 127 func (x *PRPCRequestLog) GetUser() string { 128 if x != nil { 129 return x.User 130 } 131 return "" 132 } 133 134 var File_go_chromium_org_luci_buildbucket_proto_log_proto protoreflect.FileDescriptor 135 136 var file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDesc = []byte{ 137 0x0a, 0x30, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 138 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 139 0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 140 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 141 0x76, 0x32, 0x1a, 0x2f, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 142 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 143 0x62, 0x71, 0x2f, 0x70, 0x62, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 144 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x01, 0x0a, 0x0e, 0x50, 0x52, 0x50, 0x43, 0x52, 0x65, 0x71, 0x75, 145 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 146 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 147 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x34, 148 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 149 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x0f, 0xe2, 0xbc, 0x24, 0x0b, 0x0a, 0x09, 0x54, 0x49, 0x4d, 150 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 151 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 152 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 153 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 154 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 155 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x42, 0x36, 0x5a, 0x34, 156 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 157 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 158 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 159 0x65, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 160 } 161 162 var ( 163 file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDescOnce sync.Once 164 file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDescData = file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDesc 165 ) 166 167 func file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDescGZIP() []byte { 168 file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDescOnce.Do(func() { 169 file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDescData) 170 }) 171 return file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDescData 172 } 173 174 var file_go_chromium_org_luci_buildbucket_proto_log_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 175 var file_go_chromium_org_luci_buildbucket_proto_log_proto_goTypes = []interface{}{ 176 (*PRPCRequestLog)(nil), // 0: buildbucket.v2.PRPCRequestLog 177 } 178 var file_go_chromium_org_luci_buildbucket_proto_log_proto_depIdxs = []int32{ 179 0, // [0:0] is the sub-list for method output_type 180 0, // [0:0] is the sub-list for method input_type 181 0, // [0:0] is the sub-list for extension type_name 182 0, // [0:0] is the sub-list for extension extendee 183 0, // [0:0] is the sub-list for field type_name 184 } 185 186 func init() { file_go_chromium_org_luci_buildbucket_proto_log_proto_init() } 187 func file_go_chromium_org_luci_buildbucket_proto_log_proto_init() { 188 if File_go_chromium_org_luci_buildbucket_proto_log_proto != nil { 189 return 190 } 191 if !protoimpl.UnsafeEnabled { 192 file_go_chromium_org_luci_buildbucket_proto_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 193 switch v := v.(*PRPCRequestLog); i { 194 case 0: 195 return &v.state 196 case 1: 197 return &v.sizeCache 198 case 2: 199 return &v.unknownFields 200 default: 201 return nil 202 } 203 } 204 } 205 type x struct{} 206 out := protoimpl.TypeBuilder{ 207 File: protoimpl.DescBuilder{ 208 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 209 RawDescriptor: file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDesc, 210 NumEnums: 0, 211 NumMessages: 1, 212 NumExtensions: 0, 213 NumServices: 0, 214 }, 215 GoTypes: file_go_chromium_org_luci_buildbucket_proto_log_proto_goTypes, 216 DependencyIndexes: file_go_chromium_org_luci_buildbucket_proto_log_proto_depIdxs, 217 MessageInfos: file_go_chromium_org_luci_buildbucket_proto_log_proto_msgTypes, 218 }.Build() 219 File_go_chromium_org_luci_buildbucket_proto_log_proto = out.File 220 file_go_chromium_org_luci_buildbucket_proto_log_proto_rawDesc = nil 221 file_go_chromium_org_luci_buildbucket_proto_log_proto_goTypes = nil 222 file_go_chromium_org_luci_buildbucket_proto_log_proto_depIdxs = nil 223 }