diff --git a/internal/cmd/build/main.go b/internal/cmd/build/main.go index 3d10476..65dbfe6 100644 --- a/internal/cmd/build/main.go +++ b/internal/cmd/build/main.go @@ -95,24 +95,25 @@ func buildServices(dir string) { func buildMirror(dir string) { cmd := exec.Command("protoc", - "--go_out=mirror/", + "--go_out=./", "--go_opt=Mbasic_types.proto=github.com/hashgraph/hedera-protobufs-go/services", "--go_opt=Mtimestamp.proto=github.com/hashgraph/hedera-protobufs-go/services", "--go_opt=Mconsensus_submit_message.proto=github.com/hashgraph/hedera-protobufs-go/services", - "--go_opt=Mconsensus_service.proto=github.com/hashgraph/hedera-protobufs-go/mirror", - "--go_opt=Mmirror_network_service.proto=github.com/hashgraph/hedera-protobufs-go/mirror", + "--go_opt=Mmirror/consensus_service.proto=github.com/hashgraph/hedera-protobufs-go/mirror", + "--go_opt=Mmirror/mirror_network_service.proto=github.com/hashgraph/hedera-protobufs-go/mirror", "--go_opt=paths=source_relative", - "--go-grpc_out=mirror/", + "--go-grpc_out=./", "--go-grpc_opt=Mbasic_types.proto=github.com/hashgraph/hedera-protobufs-go/services", "--go-grpc_opt=Mtimestamp.proto=github.com/hashgraph/hedera-protobufs-go/services", "--go-grpc_opt=Mconsensus_submit_message.proto=github.com/hashgraph/hedera-protobufs-go/services", - "--go-grpc_opt=Mconsensus_service.proto=github.com/hashgraph/hedera-protobufs-go/mirror", - "--go-grpc_opt=Mmirror_network_service.proto=github.com/hashgraph/hedera-protobufs-go/mirror", + "--go-grpc_opt=Mmirror/consensus_service.proto=github.com/hashgraph/hedera-protobufs-go/mirror", + "--go-grpc_opt=Mmirror/mirror_network_service.proto=github.com/hashgraph/hedera-protobufs-go/mirror", "--go-grpc_opt=paths=source_relative", + "--proto_path=proto/", "-Iproto/mirror", "-Iproto/services", "proto/mirror/consensus_service.proto", - "proto/mirror/mirror_network_service.proto", + "proto/mirror/mirror_network_service.proto", ) cmd.Dir = dir diff --git a/mirror/consensus_service.pb.go b/mirror/consensus_service.pb.go index 8e3ee25..ca9e035 100644 --- a/mirror/consensus_service.pb.go +++ b/mirror/consensus_service.pb.go @@ -21,7 +21,7 @@ // versions: // protoc-gen-go v1.26.0-devel // protoc v3.17.3 -// source: consensus_service.proto +// source: mirror/consensus_service.proto package mirror @@ -65,7 +65,7 @@ type ConsensusTopicQuery struct { func (x *ConsensusTopicQuery) Reset() { *x = ConsensusTopicQuery{} if protoimpl.UnsafeEnabled { - mi := &file_consensus_service_proto_msgTypes[0] + mi := &file_mirror_consensus_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -78,7 +78,7 @@ func (x *ConsensusTopicQuery) String() string { func (*ConsensusTopicQuery) ProtoMessage() {} func (x *ConsensusTopicQuery) ProtoReflect() protoreflect.Message { - mi := &file_consensus_service_proto_msgTypes[0] + mi := &file_mirror_consensus_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -91,7 +91,7 @@ func (x *ConsensusTopicQuery) ProtoReflect() protoreflect.Message { // Deprecated: Use ConsensusTopicQuery.ProtoReflect.Descriptor instead. func (*ConsensusTopicQuery) Descriptor() ([]byte, []int) { - return file_consensus_service_proto_rawDescGZIP(), []int{0} + return file_mirror_consensus_service_proto_rawDescGZIP(), []int{0} } func (x *ConsensusTopicQuery) GetTopicID() *services.TopicID { @@ -151,7 +151,7 @@ type ConsensusTopicResponse struct { func (x *ConsensusTopicResponse) Reset() { *x = ConsensusTopicResponse{} if protoimpl.UnsafeEnabled { - mi := &file_consensus_service_proto_msgTypes[1] + mi := &file_mirror_consensus_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -164,7 +164,7 @@ func (x *ConsensusTopicResponse) String() string { func (*ConsensusTopicResponse) ProtoMessage() {} func (x *ConsensusTopicResponse) ProtoReflect() protoreflect.Message { - mi := &file_consensus_service_proto_msgTypes[1] + mi := &file_mirror_consensus_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -177,7 +177,7 @@ func (x *ConsensusTopicResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ConsensusTopicResponse.ProtoReflect.Descriptor instead. func (*ConsensusTopicResponse) Descriptor() ([]byte, []int) { - return file_consensus_service_proto_rawDescGZIP(), []int{1} + return file_mirror_consensus_service_proto_rawDescGZIP(), []int{1} } func (x *ConsensusTopicResponse) GetConsensusTimestamp() *services.Timestamp { @@ -222,84 +222,85 @@ func (x *ConsensusTopicResponse) GetChunkInfo() *services.ConsensusMessageChunkI return nil } -var File_consensus_service_proto protoreflect.FileDescriptor - -var file_consensus_service_proto_rawDesc = []byte{ - 0x0a, 0x17, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x68, - 0x65, 0x64, 0x65, 0x72, 0x61, 0x2e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x6e, 0x73, - 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd5, 0x01, 0x0a, 0x13, 0x43, - 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x12, 0x28, 0x0a, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x44, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x49, 0x44, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x44, 0x12, 0x40, 0x0a, 0x12, - 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x73, - 0x65, 0x6e, 0x73, 0x75, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3c, - 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x45, 0x6e, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x73, - 0x65, 0x6e, 0x73, 0x75, 0x73, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x22, 0xae, 0x02, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, - 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, - 0x12, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x12, 0x63, 0x6f, 0x6e, - 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, - 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x48, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, - 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x0a, 0x0e, 0x73, - 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x12, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x48, 0x61, - 0x73, 0x68, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x12, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x48, 0x61, 0x73, 0x68, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x09, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x49, 0x6e, 0x66, 0x6f, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, - 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x43, - 0x68, 0x75, 0x6e, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x49, - 0x6e, 0x66, 0x6f, 0x32, 0x8d, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, - 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x79, 0x0a, 0x0e, 0x73, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x6d, - 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, 0x61, 0x2e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, - 0x75, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x33, 0x2e, 0x63, - 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, 0x61, 0x2e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, - 0x6e, 0x73, 0x75, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x30, 0x01, 0x42, 0x1f, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, - 0x61, 0x2e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_mirror_consensus_service_proto protoreflect.FileDescriptor + +var file_mirror_consensus_service_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, + 0x75, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, 0x61, 0x2e, 0x6d, 0x69, 0x72, + 0x72, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x62, + 0x61, 0x73, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x73, 0x75, 0x62, + 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xd5, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x28, 0x0a, 0x07, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x44, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x44, 0x12, 0x40, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, + 0x75, 0x73, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x45, 0x6e, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0xae, 0x02, 0x0a, 0x16, 0x43, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, + 0x73, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x48, 0x61, 0x73, 0x68, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x48, 0x61, + 0x73, 0x68, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x12, 0x72, 0x75, + 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x48, 0x61, 0x73, 0x68, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x48, + 0x61, 0x73, 0x68, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x09, 0x63, 0x68, + 0x75, 0x6e, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x09, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x32, 0x8d, 0x01, 0x0a, 0x10, 0x43, + 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x79, 0x0a, 0x0e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, 0x61, 0x2e, 0x6d, + 0x69, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x1a, 0x33, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, 0x61, + 0x2e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x1f, 0x0a, 0x1b, 0x63, 0x6f, + 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, 0x61, 0x2e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( - file_consensus_service_proto_rawDescOnce sync.Once - file_consensus_service_proto_rawDescData = file_consensus_service_proto_rawDesc + file_mirror_consensus_service_proto_rawDescOnce sync.Once + file_mirror_consensus_service_proto_rawDescData = file_mirror_consensus_service_proto_rawDesc ) -func file_consensus_service_proto_rawDescGZIP() []byte { - file_consensus_service_proto_rawDescOnce.Do(func() { - file_consensus_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_consensus_service_proto_rawDescData) +func file_mirror_consensus_service_proto_rawDescGZIP() []byte { + file_mirror_consensus_service_proto_rawDescOnce.Do(func() { + file_mirror_consensus_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_mirror_consensus_service_proto_rawDescData) }) - return file_consensus_service_proto_rawDescData + return file_mirror_consensus_service_proto_rawDescData } -var file_consensus_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_consensus_service_proto_goTypes = []interface{}{ +var file_mirror_consensus_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_mirror_consensus_service_proto_goTypes = []interface{}{ (*ConsensusTopicQuery)(nil), // 0: com.hedera.mirror.api.proto.ConsensusTopicQuery (*ConsensusTopicResponse)(nil), // 1: com.hedera.mirror.api.proto.ConsensusTopicResponse (*services.TopicID)(nil), // 2: proto.TopicID (*services.Timestamp)(nil), // 3: proto.Timestamp (*services.ConsensusMessageChunkInfo)(nil), // 4: proto.ConsensusMessageChunkInfo } -var file_consensus_service_proto_depIdxs = []int32{ +var file_mirror_consensus_service_proto_depIdxs = []int32{ 2, // 0: com.hedera.mirror.api.proto.ConsensusTopicQuery.topicID:type_name -> proto.TopicID 3, // 1: com.hedera.mirror.api.proto.ConsensusTopicQuery.consensusStartTime:type_name -> proto.Timestamp 3, // 2: com.hedera.mirror.api.proto.ConsensusTopicQuery.consensusEndTime:type_name -> proto.Timestamp @@ -314,13 +315,13 @@ var file_consensus_service_proto_depIdxs = []int32{ 0, // [0:5] is the sub-list for field type_name } -func init() { file_consensus_service_proto_init() } -func file_consensus_service_proto_init() { - if File_consensus_service_proto != nil { +func init() { file_mirror_consensus_service_proto_init() } +func file_mirror_consensus_service_proto_init() { + if File_mirror_consensus_service_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_consensus_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mirror_consensus_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ConsensusTopicQuery); i { case 0: return &v.state @@ -332,7 +333,7 @@ func file_consensus_service_proto_init() { return nil } } - file_consensus_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mirror_consensus_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ConsensusTopicResponse); i { case 0: return &v.state @@ -349,18 +350,18 @@ func file_consensus_service_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_consensus_service_proto_rawDesc, + RawDescriptor: file_mirror_consensus_service_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_consensus_service_proto_goTypes, - DependencyIndexes: file_consensus_service_proto_depIdxs, - MessageInfos: file_consensus_service_proto_msgTypes, + GoTypes: file_mirror_consensus_service_proto_goTypes, + DependencyIndexes: file_mirror_consensus_service_proto_depIdxs, + MessageInfos: file_mirror_consensus_service_proto_msgTypes, }.Build() - File_consensus_service_proto = out.File - file_consensus_service_proto_rawDesc = nil - file_consensus_service_proto_goTypes = nil - file_consensus_service_proto_depIdxs = nil + File_mirror_consensus_service_proto = out.File + file_mirror_consensus_service_proto_rawDesc = nil + file_mirror_consensus_service_proto_goTypes = nil + file_mirror_consensus_service_proto_depIdxs = nil } diff --git a/mirror/consensus_service_grpc.pb.go b/mirror/consensus_service_grpc.pb.go index 730f506..f9e1427 100644 --- a/mirror/consensus_service_grpc.pb.go +++ b/mirror/consensus_service_grpc.pb.go @@ -124,5 +124,5 @@ var ConsensusService_ServiceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "consensus_service.proto", + Metadata: "mirror/consensus_service.proto", } diff --git a/mirror/mirror_network_service.pb.go b/mirror/mirror_network_service.pb.go index dca4160..9e4dccb 100644 --- a/mirror/mirror_network_service.pb.go +++ b/mirror/mirror_network_service.pb.go @@ -21,7 +21,7 @@ // versions: // protoc-gen-go v1.26.0-devel // protoc v3.17.3 -// source: mirror_network_service.proto +// source: mirror/mirror_network_service.proto package mirror @@ -58,7 +58,7 @@ type AddressBookQuery struct { func (x *AddressBookQuery) Reset() { *x = AddressBookQuery{} if protoimpl.UnsafeEnabled { - mi := &file_mirror_network_service_proto_msgTypes[0] + mi := &file_mirror_mirror_network_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -71,7 +71,7 @@ func (x *AddressBookQuery) String() string { func (*AddressBookQuery) ProtoMessage() {} func (x *AddressBookQuery) ProtoReflect() protoreflect.Message { - mi := &file_mirror_network_service_proto_msgTypes[0] + mi := &file_mirror_mirror_network_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -84,7 +84,7 @@ func (x *AddressBookQuery) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressBookQuery.ProtoReflect.Descriptor instead. func (*AddressBookQuery) Descriptor() ([]byte, []int) { - return file_mirror_network_service_proto_rawDescGZIP(), []int{0} + return file_mirror_mirror_network_service_proto_rawDescGZIP(), []int{0} } func (x *AddressBookQuery) GetFileId() *services.FileID { @@ -101,50 +101,51 @@ func (x *AddressBookQuery) GetLimit() int32 { return 0 } -var File_mirror_network_service_proto protoreflect.FileDescriptor - -var file_mirror_network_service_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, - 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, 0x61, 0x2e, 0x6d, 0x69, 0x72, 0x72, 0x6f, - 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x62, 0x61, 0x73, - 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x50, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x6f, 0x6f, 0x6b, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6c, - 0x65, 0x49, 0x44, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x32, 0x61, 0x0a, 0x0e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x08, 0x67, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, - 0x2d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, 0x61, 0x2e, 0x6d, 0x69, 0x72, - 0x72, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x6f, 0x6f, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x12, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x30, 0x01, 0x42, 0x1f, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, - 0x72, 0x61, 0x2e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_mirror_mirror_network_service_proto protoreflect.FileDescriptor + +var file_mirror_mirror_network_service_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x2f, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x5f, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, + 0x61, 0x2e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x11, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x50, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x42, 0x6f, 0x6f, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x07, 0x66, 0x69, + 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x44, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, + 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x32, 0x61, 0x0a, 0x0e, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x08, 0x67, 0x65, + 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, + 0x65, 0x72, 0x61, 0x2e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x6f, 0x6f, 0x6b, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x6f, + 0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x30, 0x01, 0x42, 0x1f, 0x0a, 0x1b, 0x63, + 0x6f, 0x6d, 0x2e, 0x68, 0x65, 0x64, 0x65, 0x72, 0x61, 0x2e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mirror_network_service_proto_rawDescOnce sync.Once - file_mirror_network_service_proto_rawDescData = file_mirror_network_service_proto_rawDesc + file_mirror_mirror_network_service_proto_rawDescOnce sync.Once + file_mirror_mirror_network_service_proto_rawDescData = file_mirror_mirror_network_service_proto_rawDesc ) -func file_mirror_network_service_proto_rawDescGZIP() []byte { - file_mirror_network_service_proto_rawDescOnce.Do(func() { - file_mirror_network_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_mirror_network_service_proto_rawDescData) +func file_mirror_mirror_network_service_proto_rawDescGZIP() []byte { + file_mirror_mirror_network_service_proto_rawDescOnce.Do(func() { + file_mirror_mirror_network_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_mirror_mirror_network_service_proto_rawDescData) }) - return file_mirror_network_service_proto_rawDescData + return file_mirror_mirror_network_service_proto_rawDescData } -var file_mirror_network_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mirror_network_service_proto_goTypes = []interface{}{ +var file_mirror_mirror_network_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_mirror_mirror_network_service_proto_goTypes = []interface{}{ (*AddressBookQuery)(nil), // 0: com.hedera.mirror.api.proto.AddressBookQuery (*services.FileID)(nil), // 1: proto.FileID (*services.NodeAddress)(nil), // 2: proto.NodeAddress } -var file_mirror_network_service_proto_depIdxs = []int32{ +var file_mirror_mirror_network_service_proto_depIdxs = []int32{ 1, // 0: com.hedera.mirror.api.proto.AddressBookQuery.file_id:type_name -> proto.FileID 0, // 1: com.hedera.mirror.api.proto.NetworkService.getNodes:input_type -> com.hedera.mirror.api.proto.AddressBookQuery 2, // 2: com.hedera.mirror.api.proto.NetworkService.getNodes:output_type -> proto.NodeAddress @@ -155,13 +156,13 @@ var file_mirror_network_service_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_mirror_network_service_proto_init() } -func file_mirror_network_service_proto_init() { - if File_mirror_network_service_proto != nil { +func init() { file_mirror_mirror_network_service_proto_init() } +func file_mirror_mirror_network_service_proto_init() { + if File_mirror_mirror_network_service_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_mirror_network_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mirror_mirror_network_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddressBookQuery); i { case 0: return &v.state @@ -178,18 +179,18 @@ func file_mirror_network_service_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mirror_network_service_proto_rawDesc, + RawDescriptor: file_mirror_mirror_network_service_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_mirror_network_service_proto_goTypes, - DependencyIndexes: file_mirror_network_service_proto_depIdxs, - MessageInfos: file_mirror_network_service_proto_msgTypes, + GoTypes: file_mirror_mirror_network_service_proto_goTypes, + DependencyIndexes: file_mirror_mirror_network_service_proto_depIdxs, + MessageInfos: file_mirror_mirror_network_service_proto_msgTypes, }.Build() - File_mirror_network_service_proto = out.File - file_mirror_network_service_proto_rawDesc = nil - file_mirror_network_service_proto_goTypes = nil - file_mirror_network_service_proto_depIdxs = nil + File_mirror_mirror_network_service_proto = out.File + file_mirror_mirror_network_service_proto_rawDesc = nil + file_mirror_mirror_network_service_proto_goTypes = nil + file_mirror_mirror_network_service_proto_depIdxs = nil } diff --git a/mirror/mirror_network_service_grpc.pb.go b/mirror/mirror_network_service_grpc.pb.go index 900117a..ad49d69 100644 --- a/mirror/mirror_network_service_grpc.pb.go +++ b/mirror/mirror_network_service_grpc.pb.go @@ -133,5 +133,5 @@ var NetworkService_ServiceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "mirror_network_service.proto", + Metadata: "mirror/mirror_network_service.proto", }