github.com/mre-fog/trillianxx@v1.1.2-0.20180615153820-ae375a99d36a/trillian_map_api.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: trillian_map_api.proto 3 4 package trillian 5 6 import proto "github.com/golang/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 import _ "google.golang.org/genproto/googleapis/api/annotations" 10 11 import ( 12 context "golang.org/x/net/context" 13 grpc "google.golang.org/grpc" 14 ) 15 16 // Reference imports to suppress errors if they are not otherwise used. 17 var _ = proto.Marshal 18 var _ = fmt.Errorf 19 var _ = math.Inf 20 21 // MapLeaf represents the data behind Map leaves. 22 type MapLeaf struct { 23 // index is the location of this leaf. 24 // All indexes for a given Map must contain a constant number of bits. 25 // These are not numeric indices. Note that this is typically derived using a 26 // hash and thus the length of all indices in the map will match the number 27 // of bits in the hash function. Map entries do not have a well defined 28 // ordering and it's not possible to sequentially iterate over them. 29 Index []byte `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` 30 // leaf_hash is the tree hash of leaf_value. This does not need to be set 31 // on SetMapLeavesRequest; the server will fill it in. 32 LeafHash []byte `protobuf:"bytes,2,opt,name=leaf_hash,json=leafHash,proto3" json:"leaf_hash,omitempty"` 33 // leaf_value is the data the tree commits to. 34 LeafValue []byte `protobuf:"bytes,3,opt,name=leaf_value,json=leafValue,proto3" json:"leaf_value,omitempty"` 35 // extra_data holds related contextual data, but is not covered by any hash. 36 ExtraData []byte `protobuf:"bytes,4,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` 37 } 38 39 func (m *MapLeaf) Reset() { *m = MapLeaf{} } 40 func (m *MapLeaf) String() string { return proto.CompactTextString(m) } 41 func (*MapLeaf) ProtoMessage() {} 42 func (*MapLeaf) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } 43 44 func (m *MapLeaf) GetIndex() []byte { 45 if m != nil { 46 return m.Index 47 } 48 return nil 49 } 50 51 func (m *MapLeaf) GetLeafHash() []byte { 52 if m != nil { 53 return m.LeafHash 54 } 55 return nil 56 } 57 58 func (m *MapLeaf) GetLeafValue() []byte { 59 if m != nil { 60 return m.LeafValue 61 } 62 return nil 63 } 64 65 func (m *MapLeaf) GetExtraData() []byte { 66 if m != nil { 67 return m.ExtraData 68 } 69 return nil 70 } 71 72 type MapLeafInclusion struct { 73 Leaf *MapLeaf `protobuf:"bytes,1,opt,name=leaf" json:"leaf,omitempty"` 74 Inclusion [][]byte `protobuf:"bytes,2,rep,name=inclusion,proto3" json:"inclusion,omitempty"` 75 } 76 77 func (m *MapLeafInclusion) Reset() { *m = MapLeafInclusion{} } 78 func (m *MapLeafInclusion) String() string { return proto.CompactTextString(m) } 79 func (*MapLeafInclusion) ProtoMessage() {} 80 func (*MapLeafInclusion) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} } 81 82 func (m *MapLeafInclusion) GetLeaf() *MapLeaf { 83 if m != nil { 84 return m.Leaf 85 } 86 return nil 87 } 88 89 func (m *MapLeafInclusion) GetInclusion() [][]byte { 90 if m != nil { 91 return m.Inclusion 92 } 93 return nil 94 } 95 96 type GetMapLeavesRequest struct { 97 MapId int64 `protobuf:"varint,1,opt,name=map_id,json=mapId" json:"map_id,omitempty"` 98 Index [][]byte `protobuf:"bytes,2,rep,name=index,proto3" json:"index,omitempty"` 99 } 100 101 func (m *GetMapLeavesRequest) Reset() { *m = GetMapLeavesRequest{} } 102 func (m *GetMapLeavesRequest) String() string { return proto.CompactTextString(m) } 103 func (*GetMapLeavesRequest) ProtoMessage() {} 104 func (*GetMapLeavesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} } 105 106 func (m *GetMapLeavesRequest) GetMapId() int64 { 107 if m != nil { 108 return m.MapId 109 } 110 return 0 111 } 112 113 func (m *GetMapLeavesRequest) GetIndex() [][]byte { 114 if m != nil { 115 return m.Index 116 } 117 return nil 118 } 119 120 // This message replaces the current implementation of GetMapLeavesRequest 121 // with the difference that revision must be >=0. 122 type GetMapLeavesByRevisionRequest struct { 123 MapId int64 `protobuf:"varint,1,opt,name=map_id,json=mapId" json:"map_id,omitempty"` 124 Index [][]byte `protobuf:"bytes,2,rep,name=index,proto3" json:"index,omitempty"` 125 // revision >= 0. 126 Revision int64 `protobuf:"varint,3,opt,name=revision" json:"revision,omitempty"` 127 } 128 129 func (m *GetMapLeavesByRevisionRequest) Reset() { *m = GetMapLeavesByRevisionRequest{} } 130 func (m *GetMapLeavesByRevisionRequest) String() string { return proto.CompactTextString(m) } 131 func (*GetMapLeavesByRevisionRequest) ProtoMessage() {} 132 func (*GetMapLeavesByRevisionRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} } 133 134 func (m *GetMapLeavesByRevisionRequest) GetMapId() int64 { 135 if m != nil { 136 return m.MapId 137 } 138 return 0 139 } 140 141 func (m *GetMapLeavesByRevisionRequest) GetIndex() [][]byte { 142 if m != nil { 143 return m.Index 144 } 145 return nil 146 } 147 148 func (m *GetMapLeavesByRevisionRequest) GetRevision() int64 { 149 if m != nil { 150 return m.Revision 151 } 152 return 0 153 } 154 155 type GetMapLeavesResponse struct { 156 MapLeafInclusion []*MapLeafInclusion `protobuf:"bytes,2,rep,name=map_leaf_inclusion,json=mapLeafInclusion" json:"map_leaf_inclusion,omitempty"` 157 MapRoot *SignedMapRoot `protobuf:"bytes,3,opt,name=map_root,json=mapRoot" json:"map_root,omitempty"` 158 } 159 160 func (m *GetMapLeavesResponse) Reset() { *m = GetMapLeavesResponse{} } 161 func (m *GetMapLeavesResponse) String() string { return proto.CompactTextString(m) } 162 func (*GetMapLeavesResponse) ProtoMessage() {} 163 func (*GetMapLeavesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} } 164 165 func (m *GetMapLeavesResponse) GetMapLeafInclusion() []*MapLeafInclusion { 166 if m != nil { 167 return m.MapLeafInclusion 168 } 169 return nil 170 } 171 172 func (m *GetMapLeavesResponse) GetMapRoot() *SignedMapRoot { 173 if m != nil { 174 return m.MapRoot 175 } 176 return nil 177 } 178 179 type SetMapLeavesRequest struct { 180 MapId int64 `protobuf:"varint,1,opt,name=map_id,json=mapId" json:"map_id,omitempty"` 181 Leaves []*MapLeaf `protobuf:"bytes,2,rep,name=leaves" json:"leaves,omitempty"` 182 Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` 183 } 184 185 func (m *SetMapLeavesRequest) Reset() { *m = SetMapLeavesRequest{} } 186 func (m *SetMapLeavesRequest) String() string { return proto.CompactTextString(m) } 187 func (*SetMapLeavesRequest) ProtoMessage() {} 188 func (*SetMapLeavesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} } 189 190 func (m *SetMapLeavesRequest) GetMapId() int64 { 191 if m != nil { 192 return m.MapId 193 } 194 return 0 195 } 196 197 func (m *SetMapLeavesRequest) GetLeaves() []*MapLeaf { 198 if m != nil { 199 return m.Leaves 200 } 201 return nil 202 } 203 204 func (m *SetMapLeavesRequest) GetMetadata() []byte { 205 if m != nil { 206 return m.Metadata 207 } 208 return nil 209 } 210 211 type SetMapLeavesResponse struct { 212 MapRoot *SignedMapRoot `protobuf:"bytes,2,opt,name=map_root,json=mapRoot" json:"map_root,omitempty"` 213 } 214 215 func (m *SetMapLeavesResponse) Reset() { *m = SetMapLeavesResponse{} } 216 func (m *SetMapLeavesResponse) String() string { return proto.CompactTextString(m) } 217 func (*SetMapLeavesResponse) ProtoMessage() {} 218 func (*SetMapLeavesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} } 219 220 func (m *SetMapLeavesResponse) GetMapRoot() *SignedMapRoot { 221 if m != nil { 222 return m.MapRoot 223 } 224 return nil 225 } 226 227 type GetSignedMapRootRequest struct { 228 MapId int64 `protobuf:"varint,1,opt,name=map_id,json=mapId" json:"map_id,omitempty"` 229 } 230 231 func (m *GetSignedMapRootRequest) Reset() { *m = GetSignedMapRootRequest{} } 232 func (m *GetSignedMapRootRequest) String() string { return proto.CompactTextString(m) } 233 func (*GetSignedMapRootRequest) ProtoMessage() {} 234 func (*GetSignedMapRootRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} } 235 236 func (m *GetSignedMapRootRequest) GetMapId() int64 { 237 if m != nil { 238 return m.MapId 239 } 240 return 0 241 } 242 243 type GetSignedMapRootByRevisionRequest struct { 244 MapId int64 `protobuf:"varint,1,opt,name=map_id,json=mapId" json:"map_id,omitempty"` 245 Revision int64 `protobuf:"varint,2,opt,name=revision" json:"revision,omitempty"` 246 } 247 248 func (m *GetSignedMapRootByRevisionRequest) Reset() { *m = GetSignedMapRootByRevisionRequest{} } 249 func (m *GetSignedMapRootByRevisionRequest) String() string { return proto.CompactTextString(m) } 250 func (*GetSignedMapRootByRevisionRequest) ProtoMessage() {} 251 func (*GetSignedMapRootByRevisionRequest) Descriptor() ([]byte, []int) { 252 return fileDescriptor1, []int{8} 253 } 254 255 func (m *GetSignedMapRootByRevisionRequest) GetMapId() int64 { 256 if m != nil { 257 return m.MapId 258 } 259 return 0 260 } 261 262 func (m *GetSignedMapRootByRevisionRequest) GetRevision() int64 { 263 if m != nil { 264 return m.Revision 265 } 266 return 0 267 } 268 269 type GetSignedMapRootResponse struct { 270 MapRoot *SignedMapRoot `protobuf:"bytes,2,opt,name=map_root,json=mapRoot" json:"map_root,omitempty"` 271 } 272 273 func (m *GetSignedMapRootResponse) Reset() { *m = GetSignedMapRootResponse{} } 274 func (m *GetSignedMapRootResponse) String() string { return proto.CompactTextString(m) } 275 func (*GetSignedMapRootResponse) ProtoMessage() {} 276 func (*GetSignedMapRootResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} } 277 278 func (m *GetSignedMapRootResponse) GetMapRoot() *SignedMapRoot { 279 if m != nil { 280 return m.MapRoot 281 } 282 return nil 283 } 284 285 type InitMapRequest struct { 286 MapId int64 `protobuf:"varint,1,opt,name=map_id,json=mapId" json:"map_id,omitempty"` 287 } 288 289 func (m *InitMapRequest) Reset() { *m = InitMapRequest{} } 290 func (m *InitMapRequest) String() string { return proto.CompactTextString(m) } 291 func (*InitMapRequest) ProtoMessage() {} 292 func (*InitMapRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{10} } 293 294 func (m *InitMapRequest) GetMapId() int64 { 295 if m != nil { 296 return m.MapId 297 } 298 return 0 299 } 300 301 type InitMapResponse struct { 302 Created *SignedMapRoot `protobuf:"bytes,1,opt,name=created" json:"created,omitempty"` 303 } 304 305 func (m *InitMapResponse) Reset() { *m = InitMapResponse{} } 306 func (m *InitMapResponse) String() string { return proto.CompactTextString(m) } 307 func (*InitMapResponse) ProtoMessage() {} 308 func (*InitMapResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{11} } 309 310 func (m *InitMapResponse) GetCreated() *SignedMapRoot { 311 if m != nil { 312 return m.Created 313 } 314 return nil 315 } 316 317 func init() { 318 proto.RegisterType((*MapLeaf)(nil), "trillian.MapLeaf") 319 proto.RegisterType((*MapLeafInclusion)(nil), "trillian.MapLeafInclusion") 320 proto.RegisterType((*GetMapLeavesRequest)(nil), "trillian.GetMapLeavesRequest") 321 proto.RegisterType((*GetMapLeavesByRevisionRequest)(nil), "trillian.GetMapLeavesByRevisionRequest") 322 proto.RegisterType((*GetMapLeavesResponse)(nil), "trillian.GetMapLeavesResponse") 323 proto.RegisterType((*SetMapLeavesRequest)(nil), "trillian.SetMapLeavesRequest") 324 proto.RegisterType((*SetMapLeavesResponse)(nil), "trillian.SetMapLeavesResponse") 325 proto.RegisterType((*GetSignedMapRootRequest)(nil), "trillian.GetSignedMapRootRequest") 326 proto.RegisterType((*GetSignedMapRootByRevisionRequest)(nil), "trillian.GetSignedMapRootByRevisionRequest") 327 proto.RegisterType((*GetSignedMapRootResponse)(nil), "trillian.GetSignedMapRootResponse") 328 proto.RegisterType((*InitMapRequest)(nil), "trillian.InitMapRequest") 329 proto.RegisterType((*InitMapResponse)(nil), "trillian.InitMapResponse") 330 } 331 332 // Reference imports to suppress errors if they are not otherwise used. 333 var _ context.Context 334 var _ grpc.ClientConn 335 336 // This is a compile-time assertion to ensure that this generated file 337 // is compatible with the grpc package it is being compiled against. 338 const _ = grpc.SupportPackageIsVersion4 339 340 // Client API for TrillianMap service 341 342 type TrillianMapClient interface { 343 // GetLeaves returns an inclusion proof for each index requested. 344 // For indexes that do not exist, the inclusion proof will use nil for the empty leaf value. 345 GetLeaves(ctx context.Context, in *GetMapLeavesRequest, opts ...grpc.CallOption) (*GetMapLeavesResponse, error) 346 GetLeavesByRevision(ctx context.Context, in *GetMapLeavesByRevisionRequest, opts ...grpc.CallOption) (*GetMapLeavesResponse, error) 347 // SetLeaves sets the values for the provided leaves, and returns the new map root if successful. 348 // Note that if a SetLeaves request fails for a server-side reason (i.e. not an invalid request), 349 // the API user is required to retry the request before performing a different SetLeaves request. 350 SetLeaves(ctx context.Context, in *SetMapLeavesRequest, opts ...grpc.CallOption) (*SetMapLeavesResponse, error) 351 GetSignedMapRoot(ctx context.Context, in *GetSignedMapRootRequest, opts ...grpc.CallOption) (*GetSignedMapRootResponse, error) 352 GetSignedMapRootByRevision(ctx context.Context, in *GetSignedMapRootByRevisionRequest, opts ...grpc.CallOption) (*GetSignedMapRootResponse, error) 353 InitMap(ctx context.Context, in *InitMapRequest, opts ...grpc.CallOption) (*InitMapResponse, error) 354 } 355 356 type trillianMapClient struct { 357 cc *grpc.ClientConn 358 } 359 360 func NewTrillianMapClient(cc *grpc.ClientConn) TrillianMapClient { 361 return &trillianMapClient{cc} 362 } 363 364 func (c *trillianMapClient) GetLeaves(ctx context.Context, in *GetMapLeavesRequest, opts ...grpc.CallOption) (*GetMapLeavesResponse, error) { 365 out := new(GetMapLeavesResponse) 366 err := grpc.Invoke(ctx, "/trillian.TrillianMap/GetLeaves", in, out, c.cc, opts...) 367 if err != nil { 368 return nil, err 369 } 370 return out, nil 371 } 372 373 func (c *trillianMapClient) GetLeavesByRevision(ctx context.Context, in *GetMapLeavesByRevisionRequest, opts ...grpc.CallOption) (*GetMapLeavesResponse, error) { 374 out := new(GetMapLeavesResponse) 375 err := grpc.Invoke(ctx, "/trillian.TrillianMap/GetLeavesByRevision", in, out, c.cc, opts...) 376 if err != nil { 377 return nil, err 378 } 379 return out, nil 380 } 381 382 func (c *trillianMapClient) SetLeaves(ctx context.Context, in *SetMapLeavesRequest, opts ...grpc.CallOption) (*SetMapLeavesResponse, error) { 383 out := new(SetMapLeavesResponse) 384 err := grpc.Invoke(ctx, "/trillian.TrillianMap/SetLeaves", in, out, c.cc, opts...) 385 if err != nil { 386 return nil, err 387 } 388 return out, nil 389 } 390 391 func (c *trillianMapClient) GetSignedMapRoot(ctx context.Context, in *GetSignedMapRootRequest, opts ...grpc.CallOption) (*GetSignedMapRootResponse, error) { 392 out := new(GetSignedMapRootResponse) 393 err := grpc.Invoke(ctx, "/trillian.TrillianMap/GetSignedMapRoot", in, out, c.cc, opts...) 394 if err != nil { 395 return nil, err 396 } 397 return out, nil 398 } 399 400 func (c *trillianMapClient) GetSignedMapRootByRevision(ctx context.Context, in *GetSignedMapRootByRevisionRequest, opts ...grpc.CallOption) (*GetSignedMapRootResponse, error) { 401 out := new(GetSignedMapRootResponse) 402 err := grpc.Invoke(ctx, "/trillian.TrillianMap/GetSignedMapRootByRevision", in, out, c.cc, opts...) 403 if err != nil { 404 return nil, err 405 } 406 return out, nil 407 } 408 409 func (c *trillianMapClient) InitMap(ctx context.Context, in *InitMapRequest, opts ...grpc.CallOption) (*InitMapResponse, error) { 410 out := new(InitMapResponse) 411 err := grpc.Invoke(ctx, "/trillian.TrillianMap/InitMap", in, out, c.cc, opts...) 412 if err != nil { 413 return nil, err 414 } 415 return out, nil 416 } 417 418 // Server API for TrillianMap service 419 420 type TrillianMapServer interface { 421 // GetLeaves returns an inclusion proof for each index requested. 422 // For indexes that do not exist, the inclusion proof will use nil for the empty leaf value. 423 GetLeaves(context.Context, *GetMapLeavesRequest) (*GetMapLeavesResponse, error) 424 GetLeavesByRevision(context.Context, *GetMapLeavesByRevisionRequest) (*GetMapLeavesResponse, error) 425 // SetLeaves sets the values for the provided leaves, and returns the new map root if successful. 426 // Note that if a SetLeaves request fails for a server-side reason (i.e. not an invalid request), 427 // the API user is required to retry the request before performing a different SetLeaves request. 428 SetLeaves(context.Context, *SetMapLeavesRequest) (*SetMapLeavesResponse, error) 429 GetSignedMapRoot(context.Context, *GetSignedMapRootRequest) (*GetSignedMapRootResponse, error) 430 GetSignedMapRootByRevision(context.Context, *GetSignedMapRootByRevisionRequest) (*GetSignedMapRootResponse, error) 431 InitMap(context.Context, *InitMapRequest) (*InitMapResponse, error) 432 } 433 434 func RegisterTrillianMapServer(s *grpc.Server, srv TrillianMapServer) { 435 s.RegisterService(&_TrillianMap_serviceDesc, srv) 436 } 437 438 func _TrillianMap_GetLeaves_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 439 in := new(GetMapLeavesRequest) 440 if err := dec(in); err != nil { 441 return nil, err 442 } 443 if interceptor == nil { 444 return srv.(TrillianMapServer).GetLeaves(ctx, in) 445 } 446 info := &grpc.UnaryServerInfo{ 447 Server: srv, 448 FullMethod: "/trillian.TrillianMap/GetLeaves", 449 } 450 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 451 return srv.(TrillianMapServer).GetLeaves(ctx, req.(*GetMapLeavesRequest)) 452 } 453 return interceptor(ctx, in, info, handler) 454 } 455 456 func _TrillianMap_GetLeavesByRevision_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 457 in := new(GetMapLeavesByRevisionRequest) 458 if err := dec(in); err != nil { 459 return nil, err 460 } 461 if interceptor == nil { 462 return srv.(TrillianMapServer).GetLeavesByRevision(ctx, in) 463 } 464 info := &grpc.UnaryServerInfo{ 465 Server: srv, 466 FullMethod: "/trillian.TrillianMap/GetLeavesByRevision", 467 } 468 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 469 return srv.(TrillianMapServer).GetLeavesByRevision(ctx, req.(*GetMapLeavesByRevisionRequest)) 470 } 471 return interceptor(ctx, in, info, handler) 472 } 473 474 func _TrillianMap_SetLeaves_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 475 in := new(SetMapLeavesRequest) 476 if err := dec(in); err != nil { 477 return nil, err 478 } 479 if interceptor == nil { 480 return srv.(TrillianMapServer).SetLeaves(ctx, in) 481 } 482 info := &grpc.UnaryServerInfo{ 483 Server: srv, 484 FullMethod: "/trillian.TrillianMap/SetLeaves", 485 } 486 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 487 return srv.(TrillianMapServer).SetLeaves(ctx, req.(*SetMapLeavesRequest)) 488 } 489 return interceptor(ctx, in, info, handler) 490 } 491 492 func _TrillianMap_GetSignedMapRoot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 493 in := new(GetSignedMapRootRequest) 494 if err := dec(in); err != nil { 495 return nil, err 496 } 497 if interceptor == nil { 498 return srv.(TrillianMapServer).GetSignedMapRoot(ctx, in) 499 } 500 info := &grpc.UnaryServerInfo{ 501 Server: srv, 502 FullMethod: "/trillian.TrillianMap/GetSignedMapRoot", 503 } 504 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 505 return srv.(TrillianMapServer).GetSignedMapRoot(ctx, req.(*GetSignedMapRootRequest)) 506 } 507 return interceptor(ctx, in, info, handler) 508 } 509 510 func _TrillianMap_GetSignedMapRootByRevision_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 511 in := new(GetSignedMapRootByRevisionRequest) 512 if err := dec(in); err != nil { 513 return nil, err 514 } 515 if interceptor == nil { 516 return srv.(TrillianMapServer).GetSignedMapRootByRevision(ctx, in) 517 } 518 info := &grpc.UnaryServerInfo{ 519 Server: srv, 520 FullMethod: "/trillian.TrillianMap/GetSignedMapRootByRevision", 521 } 522 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 523 return srv.(TrillianMapServer).GetSignedMapRootByRevision(ctx, req.(*GetSignedMapRootByRevisionRequest)) 524 } 525 return interceptor(ctx, in, info, handler) 526 } 527 528 func _TrillianMap_InitMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 529 in := new(InitMapRequest) 530 if err := dec(in); err != nil { 531 return nil, err 532 } 533 if interceptor == nil { 534 return srv.(TrillianMapServer).InitMap(ctx, in) 535 } 536 info := &grpc.UnaryServerInfo{ 537 Server: srv, 538 FullMethod: "/trillian.TrillianMap/InitMap", 539 } 540 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 541 return srv.(TrillianMapServer).InitMap(ctx, req.(*InitMapRequest)) 542 } 543 return interceptor(ctx, in, info, handler) 544 } 545 546 var _TrillianMap_serviceDesc = grpc.ServiceDesc{ 547 ServiceName: "trillian.TrillianMap", 548 HandlerType: (*TrillianMapServer)(nil), 549 Methods: []grpc.MethodDesc{ 550 { 551 MethodName: "GetLeaves", 552 Handler: _TrillianMap_GetLeaves_Handler, 553 }, 554 { 555 MethodName: "GetLeavesByRevision", 556 Handler: _TrillianMap_GetLeavesByRevision_Handler, 557 }, 558 { 559 MethodName: "SetLeaves", 560 Handler: _TrillianMap_SetLeaves_Handler, 561 }, 562 { 563 MethodName: "GetSignedMapRoot", 564 Handler: _TrillianMap_GetSignedMapRoot_Handler, 565 }, 566 { 567 MethodName: "GetSignedMapRootByRevision", 568 Handler: _TrillianMap_GetSignedMapRootByRevision_Handler, 569 }, 570 { 571 MethodName: "InitMap", 572 Handler: _TrillianMap_InitMap_Handler, 573 }, 574 }, 575 Streams: []grpc.StreamDesc{}, 576 Metadata: "trillian_map_api.proto", 577 } 578 579 func init() { proto.RegisterFile("trillian_map_api.proto", fileDescriptor1) } 580 581 var fileDescriptor1 = []byte{ 582 // 693 bytes of a gzipped FileDescriptorProto 583 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 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9d, 595 0x68, 0x63, 0xad, 0x81, 0x02, 0x8d, 0xb4, 0x86, 0xd5, 0xcd, 0x11, 0x0a, 0xb4, 0xde, 0x40, 0x31, 596 0xe2, 0x3e, 0xf5, 0xeb, 0x6e, 0x27, 0x64, 0xdc, 0x27, 0xdb, 0x90, 0x96, 0xf9, 0x4a, 0x43, 0xa1, 597 0xf2, 0xb8, 0xdc, 0x6f, 0x26, 0x8a, 0x74, 0x14, 0x4c, 0xd6, 0x21, 0xcf, 0x7a, 0x39, 0x46, 0x72, 598 0x23, 0x25, 0x0b, 0xf7, 0x2f, 0xac, 0x13, 0x58, 0x3a, 0xa6, 0x42, 0x67, 0x74, 0x69, 0xe8, 0xd0, 599 0xf7, 0x1d, 0x1a, 0x0a, 0xf2, 0x04, 0x16, 0xa4, 0x69, 0xac, 0xa1, 0xaa, 0xa7, 0x9c, 0x8c, 0x87, 600 0xc1, 0x69, 0x63, 0xd0, 0xb7, 0xae, 0xa3, 0x0f, 0x67, 0xe9, 0x5c, 0xaa, 0x98, 0xb6, 0x5a, 0x50, 601 0x1a, 0xae, 0x74, 0xf8, 0xc1, 0xa1, 0x5d, 0x26, 0x39, 0xfe, 0xa6, 0x26, 0x31, 0x21, 0xd7, 0x8e, 602 0xf2, 0x95, 0x59, 0x29, 0xa7, 0x7f, 0xb6, 0xbe, 0x25, 0x60, 0x79, 0x54, 0x74, 0x18, 0x70, 0x3f, 603 0xa4, 0xe4, 0x04, 0x88, 0x64, 0x50, 0x3e, 0x8f, 0xf6, 0x5c, 0xa8, 0x98, 0x13, 0xfe, 0xf4, 0x9d, 604 0x74, 0x8a, 0xde, 0xb8, 0xb7, 0x15, 0xc8, 0xc9, 0x4a, 0x6d, 0xce, 0x85, 0xa2, 0x2f, 0x54, 0x56, 605 0x06, 0xf9, 0x55, 0xd6, 0xf4, 0x69, 0xe3, 0x02, 0x03, 0x87, 0x73, 0xe1, 0x64, 0x3d, 0xfd, 0x61, 606 0x7d, 0x82, 0xa5, 0xea, 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f, 0x5f, 0x5f, 0x93, 0xdb, 0x64, 0xcb, 0xee, 0xee, 618 0xdf, 0x50, 0x81, 0xfb, 0xb6, 0x87, 0x41, 0x68, 0xdf, 0xeb, 0xd9, 0x3e, 0xd8, 0x72, 0x4b, 0xc2, 619 0x03, 0x17, 0x85, 0x9c, 0xf9, 0x8f, 0x04, 0x98, 0xd3, 0xd7, 0x95, 0xec, 0x4d, 0xe7, 0x9b, 0x34, 620 0x71, 0x1e, 0x71, 0xb6, 0x12, 0xb7, 0x4b, 0x76, 0x66, 0x89, 0xb3, 0xef, 0x7b, 0x5b, 0xff, 0x40, 621 0xea, 0x90, 0x8d, 0xb6, 0x8f, 0x18, 0x83, 0xfa, 0xa3, 0x9b, 0x6b, 0xae, 0xc6, 0x20, 0x11, 0xe1, 622 0x96, 0x22, 0x2c, 0x59, 0x6b, 0xf1, 0x84, 0x07, 0xcc, 0x67, 0xe2, 0xf0, 0x12, 0x56, 0xeb, 0xdc, 623 0x2b, 0xeb, 0xdf, 0x5e, 0x79, 0xf4, 0x6f, 0x78, 0xb8, 0x34, 0xb4, 0xb6, 0xaf, 0x02, 0x76, 0x25, 624 0x2f, 0xaf, 0x12, 0x6f, 0xcd, 0x26, 0x13, 0xad, 0xce, 0x4d, 0xb9, 0xce, 0x3d, 0x3b, 0xfa, 0x5f, 625 0xf6, 0x12, 0x6f, 0x16, 0x54, 0xe6, 0xcb, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2d, 0xb0, 0x61, 626 0x82, 0x7b, 0x07, 0x00, 0x00, 627 }