From 36e368d7d4369021bb9b4f7542cdf9e26f36eea0 Mon Sep 17 00:00:00 2001 From: Krishna Upadhyaya Date: Fri, 22 Jul 2022 15:34:32 +0530 Subject: [PATCH] Changed service name to Heimdall --- Makefile | 2 +- .../heimdall.pb.go | 521 +++++++++--------- .../heimdall.proto | 6 +- heimdall/heimdall_grpc.pb.go | 242 ++++++++ heimdallclient/heimdall_client_grpc.pb.go | 242 -------- 5 files changed, 501 insertions(+), 512 deletions(-) rename heimdallclient/heimdall_client.pb.go => heimdall/heimdall.pb.go (56%) rename heimdallclient/heimdall_client.proto => heimdall/heimdall.proto (95%) create mode 100644 heimdall/heimdall_grpc.pb.go delete mode 100644 heimdallclient/heimdall_client_grpc.pb.go diff --git a/Makefile b/Makefile index 94e22c9..401d635 100644 --- a/Makefile +++ b/Makefile @@ -45,4 +45,4 @@ protoc-clean: grpc: protoc-all PATH="$(GOBIN):$(PATH)" protoc --proto_path=. --go_out=. --go-grpc_out=. -I=$(PROTOC_INCLUDE) \ - heimdallclient/heimdall_client.proto + heimdall/heimdall.proto diff --git a/heimdallclient/heimdall_client.pb.go b/heimdall/heimdall.pb.go similarity index 56% rename from heimdallclient/heimdall_client.pb.go rename to heimdall/heimdall.pb.go index ba93e49..baa4569 100644 --- a/heimdallclient/heimdall_client.pb.go +++ b/heimdall/heimdall.pb.go @@ -2,9 +2,9 @@ // versions: // protoc-gen-go v1.28.0 // protoc v3.21.2 -// source: heimdallclient/heimdall_client.proto +// source: heimdall/heimdall.proto -package heimdallclient +package heimdall import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -34,7 +34,7 @@ type H128 struct { func (x *H128) Reset() { *x = H128{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[0] + mi := &file_heimdall_heimdall_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -47,7 +47,7 @@ func (x *H128) String() string { func (*H128) ProtoMessage() {} func (x *H128) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[0] + mi := &file_heimdall_heimdall_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -60,7 +60,7 @@ func (x *H128) ProtoReflect() protoreflect.Message { // Deprecated: Use H128.ProtoReflect.Descriptor instead. func (*H128) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{0} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{0} } func (x *H128) GetHi() uint64 { @@ -89,7 +89,7 @@ type H160 struct { func (x *H160) Reset() { *x = H160{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[1] + mi := &file_heimdall_heimdall_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -102,7 +102,7 @@ func (x *H160) String() string { func (*H160) ProtoMessage() {} func (x *H160) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[1] + mi := &file_heimdall_heimdall_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -115,7 +115,7 @@ func (x *H160) ProtoReflect() protoreflect.Message { // Deprecated: Use H160.ProtoReflect.Descriptor instead. func (*H160) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{1} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{1} } func (x *H160) GetHi() *H128 { @@ -144,7 +144,7 @@ type H256 struct { func (x *H256) Reset() { *x = H256{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[2] + mi := &file_heimdall_heimdall_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -157,7 +157,7 @@ func (x *H256) String() string { func (*H256) ProtoMessage() {} func (x *H256) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[2] + mi := &file_heimdall_heimdall_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -170,7 +170,7 @@ func (x *H256) ProtoReflect() protoreflect.Message { // Deprecated: Use H256.ProtoReflect.Descriptor instead. func (*H256) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{2} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{2} } func (x *H256) GetHi() *H128 { @@ -201,7 +201,7 @@ type Validator struct { func (x *Validator) Reset() { *x = Validator{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[3] + mi := &file_heimdall_heimdall_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -214,7 +214,7 @@ func (x *Validator) String() string { func (*Validator) ProtoMessage() {} func (x *Validator) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[3] + mi := &file_heimdall_heimdall_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -227,7 +227,7 @@ func (x *Validator) ProtoReflect() protoreflect.Message { // Deprecated: Use Validator.ProtoReflect.Descriptor instead. func (*Validator) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{3} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{3} } func (x *Validator) GetID() uint64 { @@ -270,7 +270,7 @@ type ValidatorSet struct { func (x *ValidatorSet) Reset() { *x = ValidatorSet{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[4] + mi := &file_heimdall_heimdall_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -283,7 +283,7 @@ func (x *ValidatorSet) String() string { func (*ValidatorSet) ProtoMessage() {} func (x *ValidatorSet) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[4] + mi := &file_heimdall_heimdall_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -296,7 +296,7 @@ func (x *ValidatorSet) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidatorSet.ProtoReflect.Descriptor instead. func (*ValidatorSet) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{4} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{4} } func (x *ValidatorSet) GetValidators() []*Validator { @@ -329,7 +329,7 @@ type Span struct { func (x *Span) Reset() { *x = Span{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[5] + mi := &file_heimdall_heimdall_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -342,7 +342,7 @@ func (x *Span) String() string { func (*Span) ProtoMessage() {} func (x *Span) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[5] + mi := &file_heimdall_heimdall_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -355,7 +355,7 @@ func (x *Span) ProtoReflect() protoreflect.Message { // Deprecated: Use Span.ProtoReflect.Descriptor instead. func (*Span) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{5} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{5} } func (x *Span) GetID() uint64 { @@ -411,7 +411,7 @@ type SpanRequest struct { func (x *SpanRequest) Reset() { *x = SpanRequest{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[6] + mi := &file_heimdall_heimdall_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -424,7 +424,7 @@ func (x *SpanRequest) String() string { func (*SpanRequest) ProtoMessage() {} func (x *SpanRequest) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[6] + mi := &file_heimdall_heimdall_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -437,7 +437,7 @@ func (x *SpanRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SpanRequest.ProtoReflect.Descriptor instead. func (*SpanRequest) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{6} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{6} } func (x *SpanRequest) GetID() uint64 { @@ -459,7 +459,7 @@ type SpanResponse struct { func (x *SpanResponse) Reset() { *x = SpanResponse{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[7] + mi := &file_heimdall_heimdall_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -472,7 +472,7 @@ func (x *SpanResponse) String() string { func (*SpanResponse) ProtoMessage() {} func (x *SpanResponse) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[7] + mi := &file_heimdall_heimdall_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -485,7 +485,7 @@ func (x *SpanResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SpanResponse.ProtoReflect.Descriptor instead. func (*SpanResponse) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{7} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{7} } func (x *SpanResponse) GetHeight() string { @@ -519,7 +519,7 @@ type EventRecord struct { func (x *EventRecord) Reset() { *x = EventRecord{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[8] + mi := &file_heimdall_heimdall_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -532,7 +532,7 @@ func (x *EventRecord) String() string { func (*EventRecord) ProtoMessage() {} func (x *EventRecord) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[8] + mi := &file_heimdall_heimdall_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -545,7 +545,7 @@ func (x *EventRecord) ProtoReflect() protoreflect.Message { // Deprecated: Use EventRecord.ProtoReflect.Descriptor instead. func (*EventRecord) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{8} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{8} } func (x *EventRecord) GetID() uint64 { @@ -610,7 +610,7 @@ type StateSyncEventsRequest struct { func (x *StateSyncEventsRequest) Reset() { *x = StateSyncEventsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[9] + mi := &file_heimdall_heimdall_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -623,7 +623,7 @@ func (x *StateSyncEventsRequest) String() string { func (*StateSyncEventsRequest) ProtoMessage() {} func (x *StateSyncEventsRequest) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[9] + mi := &file_heimdall_heimdall_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -636,7 +636,7 @@ func (x *StateSyncEventsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StateSyncEventsRequest.ProtoReflect.Descriptor instead. func (*StateSyncEventsRequest) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{9} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{9} } func (x *StateSyncEventsRequest) GetFromID() uint64 { @@ -672,7 +672,7 @@ type StateSyncEventsResponse struct { func (x *StateSyncEventsResponse) Reset() { *x = StateSyncEventsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[10] + mi := &file_heimdall_heimdall_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -685,7 +685,7 @@ func (x *StateSyncEventsResponse) String() string { func (*StateSyncEventsResponse) ProtoMessage() {} func (x *StateSyncEventsResponse) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[10] + mi := &file_heimdall_heimdall_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -698,7 +698,7 @@ func (x *StateSyncEventsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StateSyncEventsResponse.ProtoReflect.Descriptor instead. func (*StateSyncEventsResponse) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{10} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{10} } func (x *StateSyncEventsResponse) GetHeight() string { @@ -731,7 +731,7 @@ type Checkpoint struct { func (x *Checkpoint) Reset() { *x = Checkpoint{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[11] + mi := &file_heimdall_heimdall_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -744,7 +744,7 @@ func (x *Checkpoint) String() string { func (*Checkpoint) ProtoMessage() {} func (x *Checkpoint) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[11] + mi := &file_heimdall_heimdall_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -757,7 +757,7 @@ func (x *Checkpoint) ProtoReflect() protoreflect.Message { // Deprecated: Use Checkpoint.ProtoReflect.Descriptor instead. func (*Checkpoint) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{11} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{11} } func (x *Checkpoint) GetProposer() *H160 { @@ -813,7 +813,7 @@ type FetchCheckpointRequest struct { func (x *FetchCheckpointRequest) Reset() { *x = FetchCheckpointRequest{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[12] + mi := &file_heimdall_heimdall_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -826,7 +826,7 @@ func (x *FetchCheckpointRequest) String() string { func (*FetchCheckpointRequest) ProtoMessage() {} func (x *FetchCheckpointRequest) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[12] + mi := &file_heimdall_heimdall_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -839,7 +839,7 @@ func (x *FetchCheckpointRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FetchCheckpointRequest.ProtoReflect.Descriptor instead. func (*FetchCheckpointRequest) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{12} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{12} } func (x *FetchCheckpointRequest) GetID() int64 { @@ -861,7 +861,7 @@ type FetchCheckpointResponse struct { func (x *FetchCheckpointResponse) Reset() { *x = FetchCheckpointResponse{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[13] + mi := &file_heimdall_heimdall_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -874,7 +874,7 @@ func (x *FetchCheckpointResponse) String() string { func (*FetchCheckpointResponse) ProtoMessage() {} func (x *FetchCheckpointResponse) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[13] + mi := &file_heimdall_heimdall_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -887,7 +887,7 @@ func (x *FetchCheckpointResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use FetchCheckpointResponse.ProtoReflect.Descriptor instead. func (*FetchCheckpointResponse) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{13} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{13} } func (x *FetchCheckpointResponse) GetHeight() string { @@ -915,7 +915,7 @@ type CheckpointCount struct { func (x *CheckpointCount) Reset() { *x = CheckpointCount{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[14] + mi := &file_heimdall_heimdall_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -928,7 +928,7 @@ func (x *CheckpointCount) String() string { func (*CheckpointCount) ProtoMessage() {} func (x *CheckpointCount) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[14] + mi := &file_heimdall_heimdall_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -941,7 +941,7 @@ func (x *CheckpointCount) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckpointCount.ProtoReflect.Descriptor instead. func (*CheckpointCount) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{14} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{14} } func (x *CheckpointCount) GetResult() int64 { @@ -963,7 +963,7 @@ type FetchCheckpointCountResponse struct { func (x *FetchCheckpointCountResponse) Reset() { *x = FetchCheckpointCountResponse{} if protoimpl.UnsafeEnabled { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[15] + mi := &file_heimdall_heimdall_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -976,7 +976,7 @@ func (x *FetchCheckpointCountResponse) String() string { func (*FetchCheckpointCountResponse) ProtoMessage() {} func (x *FetchCheckpointCountResponse) ProtoReflect() protoreflect.Message { - mi := &file_heimdallclient_heimdall_client_proto_msgTypes[15] + mi := &file_heimdall_heimdall_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -989,7 +989,7 @@ func (x *FetchCheckpointCountResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use FetchCheckpointCountResponse.ProtoReflect.Descriptor instead. func (*FetchCheckpointCountResponse) Descriptor() ([]byte, []int) { - return file_heimdallclient_heimdall_client_proto_rawDescGZIP(), []int{15} + return file_heimdall_heimdall_proto_rawDescGZIP(), []int{15} } func (x *FetchCheckpointCountResponse) GetHeight() string { @@ -1006,218 +1006,207 @@ func (x *FetchCheckpointCountResponse) GetResult() *CheckpointCount { return nil } -var File_heimdallclient_heimdall_client_proto protoreflect.FileDescriptor - -var file_heimdallclient_heimdall_client_proto_rawDesc = []byte{ - 0x0a, 0x24, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x2f, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, - 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x04, 0x48, 0x31, 0x32, 0x38, 0x12, 0x0e, 0x0a, - 0x02, 0x48, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x48, 0x69, 0x12, 0x0e, 0x0a, - 0x02, 0x4c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x4c, 0x6f, 0x22, 0x3d, 0x0a, - 0x04, 0x48, 0x31, 0x36, 0x30, 0x12, 0x25, 0x0a, 0x02, 0x48, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x31, 0x32, 0x38, 0x52, 0x02, 0x48, 0x69, 0x12, 0x0e, 0x0a, 0x02, - 0x4c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x4c, 0x6f, 0x22, 0x54, 0x0a, 0x04, - 0x48, 0x32, 0x35, 0x36, 0x12, 0x25, 0x0a, 0x02, 0x48, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x2e, 0x48, 0x31, 0x32, 0x38, 0x52, 0x02, 0x48, 0x69, 0x12, 0x25, 0x0a, 0x02, 0x4c, - 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, - 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x31, 0x32, 0x38, 0x52, 0x02, - 0x4c, 0x6f, 0x22, 0x9a, 0x01, 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x49, 0x44, - 0x12, 0x2f, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x31, 0x36, 0x30, 0x52, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, +var File_heimdall_heimdall_proto protoreflect.FileDescriptor + +var file_heimdall_heimdall_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2f, 0x68, 0x65, 0x69, 0x6d, 0x64, + 0x61, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x68, 0x65, 0x69, 0x6d, 0x64, + 0x61, 0x6c, 0x6c, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x26, 0x0a, 0x04, 0x48, 0x31, 0x32, 0x38, 0x12, 0x0e, 0x0a, 0x02, 0x48, 0x69, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x48, 0x69, 0x12, 0x0e, 0x0a, 0x02, 0x4c, 0x6f, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x4c, 0x6f, 0x22, 0x36, 0x0a, 0x04, 0x48, 0x31, 0x36, + 0x30, 0x12, 0x1e, 0x0a, 0x02, 0x48, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, + 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x48, 0x31, 0x32, 0x38, 0x52, 0x02, 0x48, + 0x69, 0x12, 0x0e, 0x0a, 0x02, 0x4c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x4c, + 0x6f, 0x22, 0x46, 0x0a, 0x04, 0x48, 0x32, 0x35, 0x36, 0x12, 0x1e, 0x0a, 0x02, 0x48, 0x69, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, + 0x2e, 0x48, 0x31, 0x32, 0x38, 0x52, 0x02, 0x48, 0x69, 0x12, 0x1e, 0x0a, 0x02, 0x4c, 0x6f, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, + 0x2e, 0x48, 0x31, 0x32, 0x38, 0x52, 0x02, 0x4c, 0x6f, 0x22, 0x93, 0x01, 0x0a, 0x09, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x02, 0x49, 0x44, 0x12, 0x28, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, + 0x61, 0x6c, 0x6c, 0x2e, 0x48, 0x31, 0x36, 0x30, 0x52, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, - 0x82, 0x01, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, - 0x12, 0x3a, 0x0a, 0x0a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, - 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x52, 0x0a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x36, 0x0a, 0x08, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x65, 0x72, 0x22, 0xf9, 0x01, 0x0a, 0x04, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x0e, 0x0a, - 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1e, 0x0a, + 0x74, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, + 0x33, 0x0a, 0x0a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, + 0x6c, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x65, 0x72, 0x22, 0xeb, 0x01, 0x0a, 0x04, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x0e, + 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1e, + 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0a, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1a, + 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x08, 0x45, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x3a, 0x0a, 0x0c, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x41, 0x0a, 0x11, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, + 0x65, 0x64, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x13, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x11, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, + 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x49, 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x68, 0x61, 0x69, + 0x6e, 0x49, 0x44, 0x22, 0x1d, 0x0a, 0x0b, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, + 0x49, 0x44, 0x22, 0x4e, 0x0a, 0x0c, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x26, 0x0a, 0x06, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x68, 0x65, 0x69, + 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x06, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x22, 0xcb, 0x01, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, + 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x44, 0x61, + 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x54, 0x78, 0x48, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x54, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x4c, 0x6f, + 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x4c, 0x6f, + 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, + 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, + 0x12, 0x2e, 0x0a, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x54, 0x69, 0x6d, 0x65, + 0x22, 0x5e, 0x0a, 0x16, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x46, 0x72, + 0x6f, 0x6d, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x46, 0x72, 0x6f, 0x6d, + 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x54, 0x6f, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x06, 0x54, 0x6f, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x4c, 0x69, + 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x4c, 0x69, 0x6d, 0x69, 0x74, + 0x22, 0x60, 0x0a, 0x17, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x12, 0x2d, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x06, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x22, 0xfa, 0x01, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x12, 0x2a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x48, + 0x31, 0x36, 0x30, 0x52, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1a, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x08, 0x45, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x41, 0x0a, 0x0c, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, - 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x0c, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x48, 0x0a, 0x11, - 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, - 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, - 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x52, 0x11, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x72, 0x6f, - 0x64, 0x75, 0x63, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, - 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, - 0x22, 0x1d, 0x0a, 0x0b, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x49, 0x44, 0x22, - 0x55, 0x0a, 0x0c, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2d, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, - 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x06, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xcb, 0x01, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x54, 0x78, 0x48, 0x61, 0x73, 0x68, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x54, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1a, - 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x4c, 0x6f, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x68, - 0x61, 0x69, 0x6e, 0x49, 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x68, 0x61, - 0x69, 0x6e, 0x49, 0x44, 0x12, 0x2e, 0x0a, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, - 0x54, 0x69, 0x6d, 0x65, 0x22, 0x5e, 0x0a, 0x16, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6e, - 0x63, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, - 0x0a, 0x06, 0x46, 0x72, 0x6f, 0x6d, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, - 0x46, 0x72, 0x6f, 0x6d, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x54, 0x6f, 0x54, 0x69, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x54, 0x6f, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x4c, - 0x69, 0x6d, 0x69, 0x74, 0x22, 0x67, 0x0a, 0x17, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6e, - 0x63, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x34, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, - 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x88, 0x02, - 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x31, 0x0a, 0x08, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, - 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x2e, 0x48, 0x31, 0x36, 0x30, 0x52, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, - 0x1e, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0a, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, - 0x1a, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x08, 0x45, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x31, 0x0a, 0x08, 0x52, - 0x6f, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, - 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, - 0x48, 0x32, 0x35, 0x36, 0x52, 0x08, 0x52, 0x6f, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1e, - 0x0a, 0x0a, 0x42, 0x6f, 0x72, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x42, 0x6f, 0x72, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x12, 0x38, - 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x28, 0x0a, 0x16, 0x46, 0x65, 0x74, 0x63, - 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, - 0x49, 0x44, 0x22, 0x66, 0x0a, 0x17, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x33, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, - 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, + 0x08, 0x45, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2a, 0x0a, 0x08, 0x52, 0x6f, 0x6f, + 0x74, 0x48, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x68, 0x65, + 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x48, 0x32, 0x35, 0x36, 0x52, 0x08, 0x52, 0x6f, 0x6f, + 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1e, 0x0a, 0x0a, 0x42, 0x6f, 0x72, 0x43, 0x68, 0x61, 0x69, + 0x6e, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x42, 0x6f, 0x72, 0x43, 0x68, + 0x61, 0x69, 0x6e, 0x49, 0x44, 0x12, 0x38, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, + 0x28, 0x0a, 0x16, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x22, 0x5f, 0x0a, 0x17, 0x46, 0x65, 0x74, + 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2c, 0x0a, 0x06, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x68, + 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x29, 0x0a, 0x0f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x52, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x70, 0x0a, 0x1c, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x69, 0x0a, 0x1c, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, - 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, - 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x32, 0x8a, 0x03, 0x0a, 0x0e, 0x48, 0x65, 0x69, 0x6d, - 0x64, 0x61, 0x6c, 0x6c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x45, 0x0a, 0x04, 0x53, 0x70, - 0x61, 0x6e, 0x12, 0x1c, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1d, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x68, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x12, 0x27, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, - 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6e, 0x63, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, - 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x66, 0x0a, 0x0f, 0x46, - 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x27, - 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x31, 0x0a, + 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x32, 0xd3, 0x02, 0x0a, 0x08, 0x48, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x12, 0x37, 0x0a, + 0x04, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x15, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, + 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x68, + 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, + 0x79, 0x6e, 0x63, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x68, 0x65, 0x69, 0x6d, + 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x68, 0x65, + 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6e, 0x63, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x30, 0x01, 0x12, 0x58, 0x0a, 0x0f, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x20, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, - 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, - 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x14, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x2d, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x5f, 0x63, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x42, 0x21, 0x5a, 0x1f, 0x2e, 0x2f, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, - 0x6c, 0x6c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x3b, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, - 0x6c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, + 0x6c, 0x6c, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x14, + 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x26, 0x2e, 0x68, + 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x15, 0x5a, 0x13, 0x2e, 0x2f, 0x68, 0x65, 0x69, 0x6d, + 0x64, 0x61, 0x6c, 0x6c, 0x3b, 0x68, 0x65, 0x69, 0x6d, 0x64, 0x61, 0x6c, 0x6c, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_heimdallclient_heimdall_client_proto_rawDescOnce sync.Once - file_heimdallclient_heimdall_client_proto_rawDescData = file_heimdallclient_heimdall_client_proto_rawDesc + file_heimdall_heimdall_proto_rawDescOnce sync.Once + file_heimdall_heimdall_proto_rawDescData = file_heimdall_heimdall_proto_rawDesc ) -func file_heimdallclient_heimdall_client_proto_rawDescGZIP() []byte { - file_heimdallclient_heimdall_client_proto_rawDescOnce.Do(func() { - file_heimdallclient_heimdall_client_proto_rawDescData = protoimpl.X.CompressGZIP(file_heimdallclient_heimdall_client_proto_rawDescData) +func file_heimdall_heimdall_proto_rawDescGZIP() []byte { + file_heimdall_heimdall_proto_rawDescOnce.Do(func() { + file_heimdall_heimdall_proto_rawDescData = protoimpl.X.CompressGZIP(file_heimdall_heimdall_proto_rawDescData) }) - return file_heimdallclient_heimdall_client_proto_rawDescData -} - -var file_heimdallclient_heimdall_client_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_heimdallclient_heimdall_client_proto_goTypes = []interface{}{ - (*H128)(nil), // 0: heimdall_client.H128 - (*H160)(nil), // 1: heimdall_client.H160 - (*H256)(nil), // 2: heimdall_client.H256 - (*Validator)(nil), // 3: heimdall_client.Validator - (*ValidatorSet)(nil), // 4: heimdall_client.ValidatorSet - (*Span)(nil), // 5: heimdall_client.Span - (*SpanRequest)(nil), // 6: heimdall_client.SpanRequest - (*SpanResponse)(nil), // 7: heimdall_client.SpanResponse - (*EventRecord)(nil), // 8: heimdall_client.EventRecord - (*StateSyncEventsRequest)(nil), // 9: heimdall_client.StateSyncEventsRequest - (*StateSyncEventsResponse)(nil), // 10: heimdall_client.StateSyncEventsResponse - (*Checkpoint)(nil), // 11: heimdall_client.Checkpoint - (*FetchCheckpointRequest)(nil), // 12: heimdall_client.FetchCheckpointRequest - (*FetchCheckpointResponse)(nil), // 13: heimdall_client.FetchCheckpointResponse - (*CheckpointCount)(nil), // 14: heimdall_client.CheckpointCount - (*FetchCheckpointCountResponse)(nil), // 15: heimdall_client.FetchCheckpointCountResponse + return file_heimdall_heimdall_proto_rawDescData +} + +var file_heimdall_heimdall_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_heimdall_heimdall_proto_goTypes = []interface{}{ + (*H128)(nil), // 0: heimdall.H128 + (*H160)(nil), // 1: heimdall.H160 + (*H256)(nil), // 2: heimdall.H256 + (*Validator)(nil), // 3: heimdall.Validator + (*ValidatorSet)(nil), // 4: heimdall.ValidatorSet + (*Span)(nil), // 5: heimdall.Span + (*SpanRequest)(nil), // 6: heimdall.SpanRequest + (*SpanResponse)(nil), // 7: heimdall.SpanResponse + (*EventRecord)(nil), // 8: heimdall.EventRecord + (*StateSyncEventsRequest)(nil), // 9: heimdall.StateSyncEventsRequest + (*StateSyncEventsResponse)(nil), // 10: heimdall.StateSyncEventsResponse + (*Checkpoint)(nil), // 11: heimdall.Checkpoint + (*FetchCheckpointRequest)(nil), // 12: heimdall.FetchCheckpointRequest + (*FetchCheckpointResponse)(nil), // 13: heimdall.FetchCheckpointResponse + (*CheckpointCount)(nil), // 14: heimdall.CheckpointCount + (*FetchCheckpointCountResponse)(nil), // 15: heimdall.FetchCheckpointCountResponse (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp (*emptypb.Empty)(nil), // 17: google.protobuf.Empty } -var file_heimdallclient_heimdall_client_proto_depIdxs = []int32{ - 0, // 0: heimdall_client.H160.Hi:type_name -> heimdall_client.H128 - 0, // 1: heimdall_client.H256.Hi:type_name -> heimdall_client.H128 - 0, // 2: heimdall_client.H256.Lo:type_name -> heimdall_client.H128 - 1, // 3: heimdall_client.Validator.Address:type_name -> heimdall_client.H160 - 3, // 4: heimdall_client.ValidatorSet.Validators:type_name -> heimdall_client.Validator - 3, // 5: heimdall_client.ValidatorSet.Proposer:type_name -> heimdall_client.Validator - 4, // 6: heimdall_client.Span.ValidatorSet:type_name -> heimdall_client.ValidatorSet - 3, // 7: heimdall_client.Span.SelectedProducers:type_name -> heimdall_client.Validator - 5, // 8: heimdall_client.SpanResponse.Result:type_name -> heimdall_client.Span - 16, // 9: heimdall_client.EventRecord.Time:type_name -> google.protobuf.Timestamp - 8, // 10: heimdall_client.StateSyncEventsResponse.Result:type_name -> heimdall_client.EventRecord - 1, // 11: heimdall_client.Checkpoint.Proposer:type_name -> heimdall_client.H160 - 2, // 12: heimdall_client.Checkpoint.RootHash:type_name -> heimdall_client.H256 - 16, // 13: heimdall_client.Checkpoint.Timestamp:type_name -> google.protobuf.Timestamp - 11, // 14: heimdall_client.FetchCheckpointResponse.Result:type_name -> heimdall_client.Checkpoint - 14, // 15: heimdall_client.FetchCheckpointCountResponse.Result:type_name -> heimdall_client.CheckpointCount - 6, // 16: heimdall_client.HeimdallClient.Span:input_type -> heimdall_client.SpanRequest - 9, // 17: heimdall_client.HeimdallClient.StateSyncEvents:input_type -> heimdall_client.StateSyncEventsRequest - 12, // 18: heimdall_client.HeimdallClient.FetchCheckpoint:input_type -> heimdall_client.FetchCheckpointRequest - 17, // 19: heimdall_client.HeimdallClient.FetchCheckpointCount:input_type -> google.protobuf.Empty - 7, // 20: heimdall_client.HeimdallClient.Span:output_type -> heimdall_client.SpanResponse - 10, // 21: heimdall_client.HeimdallClient.StateSyncEvents:output_type -> heimdall_client.StateSyncEventsResponse - 13, // 22: heimdall_client.HeimdallClient.FetchCheckpoint:output_type -> heimdall_client.FetchCheckpointResponse - 15, // 23: heimdall_client.HeimdallClient.FetchCheckpointCount:output_type -> heimdall_client.FetchCheckpointCountResponse +var file_heimdall_heimdall_proto_depIdxs = []int32{ + 0, // 0: heimdall.H160.Hi:type_name -> heimdall.H128 + 0, // 1: heimdall.H256.Hi:type_name -> heimdall.H128 + 0, // 2: heimdall.H256.Lo:type_name -> heimdall.H128 + 1, // 3: heimdall.Validator.Address:type_name -> heimdall.H160 + 3, // 4: heimdall.ValidatorSet.Validators:type_name -> heimdall.Validator + 3, // 5: heimdall.ValidatorSet.Proposer:type_name -> heimdall.Validator + 4, // 6: heimdall.Span.ValidatorSet:type_name -> heimdall.ValidatorSet + 3, // 7: heimdall.Span.SelectedProducers:type_name -> heimdall.Validator + 5, // 8: heimdall.SpanResponse.Result:type_name -> heimdall.Span + 16, // 9: heimdall.EventRecord.Time:type_name -> google.protobuf.Timestamp + 8, // 10: heimdall.StateSyncEventsResponse.Result:type_name -> heimdall.EventRecord + 1, // 11: heimdall.Checkpoint.Proposer:type_name -> heimdall.H160 + 2, // 12: heimdall.Checkpoint.RootHash:type_name -> heimdall.H256 + 16, // 13: heimdall.Checkpoint.Timestamp:type_name -> google.protobuf.Timestamp + 11, // 14: heimdall.FetchCheckpointResponse.Result:type_name -> heimdall.Checkpoint + 14, // 15: heimdall.FetchCheckpointCountResponse.Result:type_name -> heimdall.CheckpointCount + 6, // 16: heimdall.Heimdall.Span:input_type -> heimdall.SpanRequest + 9, // 17: heimdall.Heimdall.StateSyncEvents:input_type -> heimdall.StateSyncEventsRequest + 12, // 18: heimdall.Heimdall.FetchCheckpoint:input_type -> heimdall.FetchCheckpointRequest + 17, // 19: heimdall.Heimdall.FetchCheckpointCount:input_type -> google.protobuf.Empty + 7, // 20: heimdall.Heimdall.Span:output_type -> heimdall.SpanResponse + 10, // 21: heimdall.Heimdall.StateSyncEvents:output_type -> heimdall.StateSyncEventsResponse + 13, // 22: heimdall.Heimdall.FetchCheckpoint:output_type -> heimdall.FetchCheckpointResponse + 15, // 23: heimdall.Heimdall.FetchCheckpointCount:output_type -> heimdall.FetchCheckpointCountResponse 20, // [20:24] is the sub-list for method output_type 16, // [16:20] is the sub-list for method input_type 16, // [16:16] is the sub-list for extension type_name @@ -1225,13 +1214,13 @@ var file_heimdallclient_heimdall_client_proto_depIdxs = []int32{ 0, // [0:16] is the sub-list for field type_name } -func init() { file_heimdallclient_heimdall_client_proto_init() } -func file_heimdallclient_heimdall_client_proto_init() { - if File_heimdallclient_heimdall_client_proto != nil { +func init() { file_heimdall_heimdall_proto_init() } +func file_heimdall_heimdall_proto_init() { + if File_heimdall_heimdall_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_heimdallclient_heimdall_client_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*H128); i { case 0: return &v.state @@ -1243,7 +1232,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*H160); i { case 0: return &v.state @@ -1255,7 +1244,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*H256); i { case 0: return &v.state @@ -1267,7 +1256,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Validator); i { case 0: return &v.state @@ -1279,7 +1268,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidatorSet); i { case 0: return &v.state @@ -1291,7 +1280,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Span); i { case 0: return &v.state @@ -1303,7 +1292,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SpanRequest); i { case 0: return &v.state @@ -1315,7 +1304,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SpanResponse); i { case 0: return &v.state @@ -1327,7 +1316,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventRecord); i { case 0: return &v.state @@ -1339,7 +1328,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StateSyncEventsRequest); i { case 0: return &v.state @@ -1351,7 +1340,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StateSyncEventsResponse); i { case 0: return &v.state @@ -1363,7 +1352,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Checkpoint); i { case 0: return &v.state @@ -1375,7 +1364,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FetchCheckpointRequest); i { case 0: return &v.state @@ -1387,7 +1376,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FetchCheckpointResponse); i { case 0: return &v.state @@ -1399,7 +1388,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CheckpointCount); i { case 0: return &v.state @@ -1411,7 +1400,7 @@ func file_heimdallclient_heimdall_client_proto_init() { return nil } } - file_heimdallclient_heimdall_client_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_heimdall_heimdall_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FetchCheckpointCountResponse); i { case 0: return &v.state @@ -1428,18 +1417,18 @@ func file_heimdallclient_heimdall_client_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_heimdallclient_heimdall_client_proto_rawDesc, + RawDescriptor: file_heimdall_heimdall_proto_rawDesc, NumEnums: 0, NumMessages: 16, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_heimdallclient_heimdall_client_proto_goTypes, - DependencyIndexes: file_heimdallclient_heimdall_client_proto_depIdxs, - MessageInfos: file_heimdallclient_heimdall_client_proto_msgTypes, + GoTypes: file_heimdall_heimdall_proto_goTypes, + DependencyIndexes: file_heimdall_heimdall_proto_depIdxs, + MessageInfos: file_heimdall_heimdall_proto_msgTypes, }.Build() - File_heimdallclient_heimdall_client_proto = out.File - file_heimdallclient_heimdall_client_proto_rawDesc = nil - file_heimdallclient_heimdall_client_proto_goTypes = nil - file_heimdallclient_heimdall_client_proto_depIdxs = nil + File_heimdall_heimdall_proto = out.File + file_heimdall_heimdall_proto_rawDesc = nil + file_heimdall_heimdall_proto_goTypes = nil + file_heimdall_heimdall_proto_depIdxs = nil } diff --git a/heimdallclient/heimdall_client.proto b/heimdall/heimdall.proto similarity index 95% rename from heimdallclient/heimdall_client.proto rename to heimdall/heimdall.proto index ae3ae28..2eb6974 100644 --- a/heimdallclient/heimdall_client.proto +++ b/heimdall/heimdall.proto @@ -1,13 +1,13 @@ syntax = "proto3"; -package heimdall_client; +package heimdall; import "google/protobuf/timestamp.proto"; import "google/protobuf/empty.proto"; -option go_package = "./heimdallclient;heimdallclient"; +option go_package = "./heimdall;heimdall"; -service HeimdallClient { +service Heimdall { rpc Span(SpanRequest) returns (SpanResponse) {} rpc StateSyncEvents(StateSyncEventsRequest) returns (stream StateSyncEventsResponse) {} rpc FetchCheckpoint(FetchCheckpointRequest) returns (FetchCheckpointResponse){} diff --git a/heimdall/heimdall_grpc.pb.go b/heimdall/heimdall_grpc.pb.go new file mode 100644 index 0000000..3b84383 --- /dev/null +++ b/heimdall/heimdall_grpc.pb.go @@ -0,0 +1,242 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.21.2 +// source: heimdall/heimdall.proto + +package heimdall + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// HeimdallClient is the client API for Heimdall service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type HeimdallClient interface { + Span(ctx context.Context, in *SpanRequest, opts ...grpc.CallOption) (*SpanResponse, error) + StateSyncEvents(ctx context.Context, in *StateSyncEventsRequest, opts ...grpc.CallOption) (Heimdall_StateSyncEventsClient, error) + FetchCheckpoint(ctx context.Context, in *FetchCheckpointRequest, opts ...grpc.CallOption) (*FetchCheckpointResponse, error) + FetchCheckpointCount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FetchCheckpointCountResponse, error) +} + +type heimdallClient struct { + cc grpc.ClientConnInterface +} + +func NewHeimdallClient(cc grpc.ClientConnInterface) HeimdallClient { + return &heimdallClient{cc} +} + +func (c *heimdallClient) Span(ctx context.Context, in *SpanRequest, opts ...grpc.CallOption) (*SpanResponse, error) { + out := new(SpanResponse) + err := c.cc.Invoke(ctx, "/heimdall.Heimdall/Span", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *heimdallClient) StateSyncEvents(ctx context.Context, in *StateSyncEventsRequest, opts ...grpc.CallOption) (Heimdall_StateSyncEventsClient, error) { + stream, err := c.cc.NewStream(ctx, &Heimdall_ServiceDesc.Streams[0], "/heimdall.Heimdall/StateSyncEvents", opts...) + if err != nil { + return nil, err + } + x := &heimdallStateSyncEventsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Heimdall_StateSyncEventsClient interface { + Recv() (*StateSyncEventsResponse, error) + grpc.ClientStream +} + +type heimdallStateSyncEventsClient struct { + grpc.ClientStream +} + +func (x *heimdallStateSyncEventsClient) Recv() (*StateSyncEventsResponse, error) { + m := new(StateSyncEventsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *heimdallClient) FetchCheckpoint(ctx context.Context, in *FetchCheckpointRequest, opts ...grpc.CallOption) (*FetchCheckpointResponse, error) { + out := new(FetchCheckpointResponse) + err := c.cc.Invoke(ctx, "/heimdall.Heimdall/FetchCheckpoint", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *heimdallClient) FetchCheckpointCount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FetchCheckpointCountResponse, error) { + out := new(FetchCheckpointCountResponse) + err := c.cc.Invoke(ctx, "/heimdall.Heimdall/FetchCheckpointCount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// HeimdallServer is the server API for Heimdall service. +// All implementations must embed UnimplementedHeimdallServer +// for forward compatibility +type HeimdallServer interface { + Span(context.Context, *SpanRequest) (*SpanResponse, error) + StateSyncEvents(*StateSyncEventsRequest, Heimdall_StateSyncEventsServer) error + FetchCheckpoint(context.Context, *FetchCheckpointRequest) (*FetchCheckpointResponse, error) + FetchCheckpointCount(context.Context, *emptypb.Empty) (*FetchCheckpointCountResponse, error) + mustEmbedUnimplementedHeimdallServer() +} + +// UnimplementedHeimdallServer must be embedded to have forward compatible implementations. +type UnimplementedHeimdallServer struct { +} + +func (UnimplementedHeimdallServer) Span(context.Context, *SpanRequest) (*SpanResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Span not implemented") +} +func (UnimplementedHeimdallServer) StateSyncEvents(*StateSyncEventsRequest, Heimdall_StateSyncEventsServer) error { + return status.Errorf(codes.Unimplemented, "method StateSyncEvents not implemented") +} +func (UnimplementedHeimdallServer) FetchCheckpoint(context.Context, *FetchCheckpointRequest) (*FetchCheckpointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchCheckpoint not implemented") +} +func (UnimplementedHeimdallServer) FetchCheckpointCount(context.Context, *emptypb.Empty) (*FetchCheckpointCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchCheckpointCount not implemented") +} +func (UnimplementedHeimdallServer) mustEmbedUnimplementedHeimdallServer() {} + +// UnsafeHeimdallServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to HeimdallServer will +// result in compilation errors. +type UnsafeHeimdallServer interface { + mustEmbedUnimplementedHeimdallServer() +} + +func RegisterHeimdallServer(s grpc.ServiceRegistrar, srv HeimdallServer) { + s.RegisterService(&Heimdall_ServiceDesc, srv) +} + +func _Heimdall_Span_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SpanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HeimdallServer).Span(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/heimdall.Heimdall/Span", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HeimdallServer).Span(ctx, req.(*SpanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Heimdall_StateSyncEvents_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StateSyncEventsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(HeimdallServer).StateSyncEvents(m, &heimdallStateSyncEventsServer{stream}) +} + +type Heimdall_StateSyncEventsServer interface { + Send(*StateSyncEventsResponse) error + grpc.ServerStream +} + +type heimdallStateSyncEventsServer struct { + grpc.ServerStream +} + +func (x *heimdallStateSyncEventsServer) Send(m *StateSyncEventsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _Heimdall_FetchCheckpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FetchCheckpointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HeimdallServer).FetchCheckpoint(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/heimdall.Heimdall/FetchCheckpoint", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HeimdallServer).FetchCheckpoint(ctx, req.(*FetchCheckpointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Heimdall_FetchCheckpointCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HeimdallServer).FetchCheckpointCount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/heimdall.Heimdall/FetchCheckpointCount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HeimdallServer).FetchCheckpointCount(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +// Heimdall_ServiceDesc is the grpc.ServiceDesc for Heimdall service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Heimdall_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "heimdall.Heimdall", + HandlerType: (*HeimdallServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Span", + Handler: _Heimdall_Span_Handler, + }, + { + MethodName: "FetchCheckpoint", + Handler: _Heimdall_FetchCheckpoint_Handler, + }, + { + MethodName: "FetchCheckpointCount", + Handler: _Heimdall_FetchCheckpointCount_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StateSyncEvents", + Handler: _Heimdall_StateSyncEvents_Handler, + ServerStreams: true, + }, + }, + Metadata: "heimdall/heimdall.proto", +} diff --git a/heimdallclient/heimdall_client_grpc.pb.go b/heimdallclient/heimdall_client_grpc.pb.go deleted file mode 100644 index 39b1431..0000000 --- a/heimdallclient/heimdall_client_grpc.pb.go +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.2 -// source: heimdallclient/heimdall_client.proto - -package heimdallclient - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - emptypb "google.golang.org/protobuf/types/known/emptypb" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// HeimdallClientClient is the client API for HeimdallClient service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type HeimdallClientClient interface { - Span(ctx context.Context, in *SpanRequest, opts ...grpc.CallOption) (*SpanResponse, error) - StateSyncEvents(ctx context.Context, in *StateSyncEventsRequest, opts ...grpc.CallOption) (HeimdallClient_StateSyncEventsClient, error) - FetchCheckpoint(ctx context.Context, in *FetchCheckpointRequest, opts ...grpc.CallOption) (*FetchCheckpointResponse, error) - FetchCheckpointCount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FetchCheckpointCountResponse, error) -} - -type heimdallClientClient struct { - cc grpc.ClientConnInterface -} - -func NewHeimdallClientClient(cc grpc.ClientConnInterface) HeimdallClientClient { - return &heimdallClientClient{cc} -} - -func (c *heimdallClientClient) Span(ctx context.Context, in *SpanRequest, opts ...grpc.CallOption) (*SpanResponse, error) { - out := new(SpanResponse) - err := c.cc.Invoke(ctx, "/heimdall_client.HeimdallClient/Span", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *heimdallClientClient) StateSyncEvents(ctx context.Context, in *StateSyncEventsRequest, opts ...grpc.CallOption) (HeimdallClient_StateSyncEventsClient, error) { - stream, err := c.cc.NewStream(ctx, &HeimdallClient_ServiceDesc.Streams[0], "/heimdall_client.HeimdallClient/StateSyncEvents", opts...) - if err != nil { - return nil, err - } - x := &heimdallClientStateSyncEventsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type HeimdallClient_StateSyncEventsClient interface { - Recv() (*StateSyncEventsResponse, error) - grpc.ClientStream -} - -type heimdallClientStateSyncEventsClient struct { - grpc.ClientStream -} - -func (x *heimdallClientStateSyncEventsClient) Recv() (*StateSyncEventsResponse, error) { - m := new(StateSyncEventsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *heimdallClientClient) FetchCheckpoint(ctx context.Context, in *FetchCheckpointRequest, opts ...grpc.CallOption) (*FetchCheckpointResponse, error) { - out := new(FetchCheckpointResponse) - err := c.cc.Invoke(ctx, "/heimdall_client.HeimdallClient/FetchCheckpoint", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *heimdallClientClient) FetchCheckpointCount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FetchCheckpointCountResponse, error) { - out := new(FetchCheckpointCountResponse) - err := c.cc.Invoke(ctx, "/heimdall_client.HeimdallClient/FetchCheckpointCount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// HeimdallClientServer is the server API for HeimdallClient service. -// All implementations must embed UnimplementedHeimdallClientServer -// for forward compatibility -type HeimdallClientServer interface { - Span(context.Context, *SpanRequest) (*SpanResponse, error) - StateSyncEvents(*StateSyncEventsRequest, HeimdallClient_StateSyncEventsServer) error - FetchCheckpoint(context.Context, *FetchCheckpointRequest) (*FetchCheckpointResponse, error) - FetchCheckpointCount(context.Context, *emptypb.Empty) (*FetchCheckpointCountResponse, error) - mustEmbedUnimplementedHeimdallClientServer() -} - -// UnimplementedHeimdallClientServer must be embedded to have forward compatible implementations. -type UnimplementedHeimdallClientServer struct { -} - -func (UnimplementedHeimdallClientServer) Span(context.Context, *SpanRequest) (*SpanResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Span not implemented") -} -func (UnimplementedHeimdallClientServer) StateSyncEvents(*StateSyncEventsRequest, HeimdallClient_StateSyncEventsServer) error { - return status.Errorf(codes.Unimplemented, "method StateSyncEvents not implemented") -} -func (UnimplementedHeimdallClientServer) FetchCheckpoint(context.Context, *FetchCheckpointRequest) (*FetchCheckpointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FetchCheckpoint not implemented") -} -func (UnimplementedHeimdallClientServer) FetchCheckpointCount(context.Context, *emptypb.Empty) (*FetchCheckpointCountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FetchCheckpointCount not implemented") -} -func (UnimplementedHeimdallClientServer) mustEmbedUnimplementedHeimdallClientServer() {} - -// UnsafeHeimdallClientServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to HeimdallClientServer will -// result in compilation errors. -type UnsafeHeimdallClientServer interface { - mustEmbedUnimplementedHeimdallClientServer() -} - -func RegisterHeimdallClientServer(s grpc.ServiceRegistrar, srv HeimdallClientServer) { - s.RegisterService(&HeimdallClient_ServiceDesc, srv) -} - -func _HeimdallClient_Span_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SpanRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HeimdallClientServer).Span(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/heimdall_client.HeimdallClient/Span", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HeimdallClientServer).Span(ctx, req.(*SpanRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HeimdallClient_StateSyncEvents_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(StateSyncEventsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(HeimdallClientServer).StateSyncEvents(m, &heimdallClientStateSyncEventsServer{stream}) -} - -type HeimdallClient_StateSyncEventsServer interface { - Send(*StateSyncEventsResponse) error - grpc.ServerStream -} - -type heimdallClientStateSyncEventsServer struct { - grpc.ServerStream -} - -func (x *heimdallClientStateSyncEventsServer) Send(m *StateSyncEventsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _HeimdallClient_FetchCheckpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchCheckpointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HeimdallClientServer).FetchCheckpoint(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/heimdall_client.HeimdallClient/FetchCheckpoint", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HeimdallClientServer).FetchCheckpoint(ctx, req.(*FetchCheckpointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HeimdallClient_FetchCheckpointCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HeimdallClientServer).FetchCheckpointCount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/heimdall_client.HeimdallClient/FetchCheckpointCount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HeimdallClientServer).FetchCheckpointCount(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -// HeimdallClient_ServiceDesc is the grpc.ServiceDesc for HeimdallClient service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var HeimdallClient_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "heimdall_client.HeimdallClient", - HandlerType: (*HeimdallClientServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Span", - Handler: _HeimdallClient_Span_Handler, - }, - { - MethodName: "FetchCheckpoint", - Handler: _HeimdallClient_FetchCheckpoint_Handler, - }, - { - MethodName: "FetchCheckpointCount", - Handler: _HeimdallClient_FetchCheckpointCount_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "StateSyncEvents", - Handler: _HeimdallClient_StateSyncEvents_Handler, - ServerStreams: true, - }, - }, - Metadata: "heimdallclient/heimdall_client.proto", -}