Commit 934aec6c authored by vicotor's avatar vicotor

change to proto-gen-gogo

parent 8177ac74
...@@ -18,9 +18,12 @@ generate: ...@@ -18,9 +18,12 @@ generate:
@buf generate @buf generate
deps: deps:
@go get -u github.com/gogo/protobuf/protoc-gen-gogo \ @go get github.com/gogo/protobuf/proto
@go install github.com/gogo/protobuf/protoc-gen-gogo
@go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
@go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
@go install github.com/bufbuild/buf/cmd/buf@v1.9.0 @go install github.com/bufbuild/buf/cmd/buf@v1.9.0
clean: clean:
@rm -f $(PROTO_GO_FILES) $(BIN) \ @rm -f $(PROTO_GO_FILES) $(BIN)
@rm -rf gen @rm -rf gen
...@@ -6,7 +6,7 @@ managed: ...@@ -6,7 +6,7 @@ managed:
except: except:
- buf.build/googleapis/googleapis - buf.build/googleapis/googleapis
plugins: plugins:
- name: go - name: gogo
out: gen/proto/go out: gen/proto/go
opt: paths=source_relative opt: paths=source_relative
- name: go-grpc - name: go-grpc
......
This diff is collapsed.
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// source: base/v1/options.proto // source: base/v1/options.proto
package basev1 package basev1
import ( import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect" fmt "fmt"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" proto "github.com/gogo/protobuf/proto"
descriptorpb "google.golang.org/protobuf/types/descriptorpb" descriptorpb "google.golang.org/protobuf/types/descriptorpb"
reflect "reflect" math "math"
) )
const ( // Reference imports to suppress errors if they are not otherwise used.
// Verify that this generated code is sufficiently up-to-date. var _ = proto.Marshal
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) var _ = fmt.Errorf
// Verify that runtime/protoimpl is sufficiently up-to-date. var _ = math.Inf
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
) // This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
var file_base_v1_options_proto_extTypes = []protoimpl.ExtensionInfo{ var E_BytesSize = &proto.ExtensionDesc{
{
ExtendedType: (*descriptorpb.FieldOptions)(nil), ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*uint32)(nil), ExtensionType: (*uint32)(nil),
Field: 50000, Field: 50000,
Name: "base.v1.bytes_size", Name: "base.v1.bytes_size",
Tag: "varint,50000,opt,name=bytes_size", Tag: "varint,50000,opt,name=bytes_size",
Filename: "base/v1/options.proto", Filename: "base/v1/options.proto",
},
}
// Extension fields to descriptorpb.FieldOptions.
var (
// optional uint32 bytes_size = 50000;
E_BytesSize = &file_base_v1_options_proto_extTypes[0] // define bytes data size.
)
var File_base_v1_options_proto protoreflect.FileDescriptor
var file_base_v1_options_proto_rawDesc = []byte{
0x0a, 0x15, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x3a, 0x3e, 0x0a, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x73, 0x69, 0x7a, 0x65,
0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18,
0xd0, 0x86, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x62, 0x79, 0x74, 0x65, 0x73, 0x53, 0x69,
0x7a, 0x65, 0x42, 0xa7, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
0x76, 0x31, 0x42, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43,
0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x67, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x61, 0x73, 0x65, 0x76,
0x31, 0xa2, 0x02, 0x03, 0x42, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x56,
0x31, 0xca, 0x02, 0x07, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13, 0x42, 0x61,
0x73, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
0x61, 0xea, 0x02, 0x08, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
} }
var file_base_v1_options_proto_goTypes = []interface{}{ func init() {
(*descriptorpb.FieldOptions)(nil), // 0: google.protobuf.FieldOptions proto.RegisterExtension(E_BytesSize)
}
var file_base_v1_options_proto_depIdxs = []int32{
0, // 0: base.v1.bytes_size:extendee -> google.protobuf.FieldOptions
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
0, // [0:1] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
} }
func init() { file_base_v1_options_proto_init() } func init() { proto.RegisterFile("base/v1/options.proto", fileDescriptor_35190a910ebf5bf3) }
func file_base_v1_options_proto_init() {
if File_base_v1_options_proto != nil { var fileDescriptor_35190a910ebf5bf3 = []byte{
return // 257 bytes of a gzipped FileDescriptorProto
} 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4d, 0x4a, 0x2c, 0x4e,
type x struct{} 0xd5, 0x2f, 0x33, 0xd4, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f,
out := protoimpl.TypeBuilder{ 0xc9, 0x17, 0x62, 0x07, 0x09, 0xeb, 0x95, 0x19, 0x4a, 0x29, 0xa4, 0xe7, 0xe7, 0xa7, 0xe7, 0xa4,
File: protoimpl.DescBuilder{ 0xea, 0x83, 0x85, 0x93, 0x4a, 0xd3, 0xf4, 0x53, 0x52, 0x8b, 0x93, 0x8b, 0x32, 0x0b, 0x4a, 0xf2,
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 0x8b, 0x20, 0x4a, 0xad, 0xec, 0xb8, 0xb8, 0x92, 0x2a, 0x4b, 0x52, 0x8b, 0xe3, 0x8b, 0x33, 0xab,
RawDescriptor: file_base_v1_options_proto_rawDesc, 0x52, 0x85, 0x64, 0xf5, 0x20, 0x1a, 0xf4, 0x60, 0x1a, 0xf4, 0xdc, 0x32, 0x53, 0x73, 0x52, 0xfc,
NumEnums: 0, 0x21, 0xa6, 0x4b, 0x5c, 0x68, 0x63, 0x56, 0x60, 0xd4, 0xe0, 0x0d, 0xe2, 0x04, 0x6b, 0x09, 0xce,
NumMessages: 0, 0xac, 0x4a, 0x75, 0x5a, 0xce, 0xc8, 0xc5, 0x9d, 0x9c, 0x9f, 0xab, 0x07, 0xb5, 0xd1, 0x89, 0x07,
NumExtensions: 1, 0xaa, 0x36, 0x00, 0x64, 0x40, 0x00, 0x63, 0x94, 0x6f, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e,
NumServices: 0, 0x72, 0x7e, 0xae, 0xbe, 0x73, 0x62, 0x4a, 0x69, 0x72, 0x6a, 0x69, 0xb1, 0x6f, 0x6a, 0x49, 0x62,
}, 0x59, 0x6a, 0x51, 0x71, 0x2a, 0x58, 0x51, 0x72, 0x7e, 0x8e, 0x7e, 0x6e, 0x6a, 0x49, 0x62, 0x01,
GoTypes: file_base_v1_options_proto_goTypes, 0x8c, 0x93, 0x9e, 0x9a, 0x07, 0x71, 0xb0, 0x7e, 0x7a, 0xbe, 0x3e, 0xd4, 0x83, 0xd6, 0x20, 0xba,
DependencyIndexes: file_base_v1_options_proto_depIdxs, 0xcc, 0x70, 0x11, 0x13, 0xb3, 0x53, 0x44, 0xc4, 0x2a, 0x26, 0x76, 0x27, 0x90, 0x75, 0x61, 0x86,
ExtensionInfos: file_base_v1_options_proto_extTypes, 0xa7, 0x20, 0xac, 0x98, 0x30, 0xc3, 0x47, 0x4c, 0xc2, 0x50, 0x56, 0x8c, 0x7b, 0x80, 0x13, 0xc8,
}.Build() 0x86, 0x94, 0xc4, 0x92, 0xc4, 0x57, 0x4c, 0x1c, 0x20, 0x51, 0x2b, 0xab, 0x30, 0xc3, 0x24, 0x36,
File_base_v1_options_proto = out.File 0xb0, 0x99, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x85, 0x32, 0x5f, 0x14, 0x34, 0x01, 0x00,
file_base_v1_options_proto_rawDesc = nil 0x00,
file_base_v1_options_proto_goTypes = nil
file_base_v1_options_proto_depIdxs = nil
} }
This diff is collapsed.
This diff is collapsed.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// source: base/v1/service.proto
package basev1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_base_v1_service_proto protoreflect.FileDescriptor
var file_base_v1_service_proto_rawDesc = []byte{
0x0a, 0x15, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
0x1a, 0x1e, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x32, 0x43, 0x0a, 0x0b, 0x42, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
0x34, 0x0a, 0x0c, 0x50, 0x61, 0x72, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12,
0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x4c, 0x50, 0x44, 0x61, 0x74,
0x61, 0x1a, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x22, 0x00, 0x42, 0x96, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x61,
0x73, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x63, 0x6d, 0x70, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x61, 0x73,
0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x42, 0x61, 0x73, 0x65,
0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13,
0x42, 0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_base_v1_service_proto_goTypes = []interface{}{
(*RLPData)(nil), // 0: base.v1.RLPData
(*Account)(nil), // 1: base.v1.Account
}
var file_base_v1_service_proto_depIdxs = []int32{
0, // 0: base.v1.BaseService.ParseAccount:input_type -> base.v1.RLPData
1, // 1: base.v1.BaseService.ParseAccount:output_type -> base.v1.Account
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_base_v1_service_proto_init() }
func file_base_v1_service_proto_init() {
if File_base_v1_service_proto != nil {
return
}
file_base_v1_request_response_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_base_v1_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_base_v1_service_proto_goTypes,
DependencyIndexes: file_base_v1_service_proto_depIdxs,
}.Build()
File_base_v1_service_proto = out.File
file_base_v1_service_proto_rawDesc = nil
file_base_v1_service_proto_goTypes = nil
file_base_v1_service_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc (unknown)
// source: base/v1/service.proto
package basev1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// 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
// BaseServiceClient is the client API for BaseService 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 BaseServiceClient interface {
ParseAccount(ctx context.Context, in *RLPData, opts ...grpc.CallOption) (*Account, error)
}
type baseServiceClient struct {
cc grpc.ClientConnInterface
}
func NewBaseServiceClient(cc grpc.ClientConnInterface) BaseServiceClient {
return &baseServiceClient{cc}
}
func (c *baseServiceClient) ParseAccount(ctx context.Context, in *RLPData, opts ...grpc.CallOption) (*Account, error) {
out := new(Account)
err := c.cc.Invoke(ctx, "/base.v1.BaseService/ParseAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// BaseServiceServer is the server API for BaseService service.
// All implementations must embed UnimplementedBaseServiceServer
// for forward compatibility
type BaseServiceServer interface {
ParseAccount(context.Context, *RLPData) (*Account, error)
mustEmbedUnimplementedBaseServiceServer()
}
// UnimplementedBaseServiceServer must be embedded to have forward compatible implementations.
type UnimplementedBaseServiceServer struct {
}
func (UnimplementedBaseServiceServer) ParseAccount(context.Context, *RLPData) (*Account, error) {
return nil, status.Errorf(codes.Unimplemented, "method ParseAccount not implemented")
}
func (UnimplementedBaseServiceServer) mustEmbedUnimplementedBaseServiceServer() {}
// UnsafeBaseServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to BaseServiceServer will
// result in compilation errors.
type UnsafeBaseServiceServer interface {
mustEmbedUnimplementedBaseServiceServer()
}
func RegisterBaseServiceServer(s grpc.ServiceRegistrar, srv BaseServiceServer) {
s.RegisterService(&BaseService_ServiceDesc, srv)
}
func _BaseService_ParseAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RLPData)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BaseServiceServer).ParseAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/base.v1.BaseService/ParseAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BaseServiceServer).ParseAccount(ctx, req.(*RLPData))
}
return interceptor(ctx, in, info, handler)
}
// BaseService_ServiceDesc is the grpc.ServiceDesc for BaseService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var BaseService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "base.v1.BaseService",
HandlerType: (*BaseServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ParseAccount",
Handler: _BaseService_ParseAccount_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "base/v1/service.proto",
}
This diff is collapsed.
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// source: crypter/v1/service.proto // source: crypter/v1/service.proto
package crypterv1 package crypterv1
import ( import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect" fmt "fmt"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" proto "github.com/gogo/protobuf/proto"
reflect "reflect" math "math"
) )
const ( // Reference imports to suppress errors if they are not otherwise used.
// Verify that this generated code is sufficiently up-to-date. var _ = proto.Marshal
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) var _ = fmt.Errorf
// Verify that runtime/protoimpl is sufficiently up-to-date. var _ = math.Inf
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_crypter_v1_service_proto protoreflect.FileDescriptor
var file_crypter_v1_service_proto_rawDesc = []byte{ // This is a compile-time assertion to ensure that this generated file
0x0a, 0x18, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, // is compatible with the proto package it is being compiled against.
0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x63, 0x72, 0x79, 0x70, // A compilation error at this line likely means your copy of the
0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x21, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x72, 0x2f, // proto package needs to be updated.
0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xde, 0x02, 0x0a, 0x0e, 0x43, 0x72,
0x79, 0x70, 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x09,
0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x69, 0x67, 0x6e, 0x12, 0x1c, 0x2e, 0x63, 0x72, 0x79, 0x70,
0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x69, 0x67, 0x6e,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65,
0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0b, 0x42, 0x61, 0x74, 0x63,
0x68, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x1e, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65,
0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65,
0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0c, 0x42, 0x61,
0x74, 0x63, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x63, 0x72, 0x79,
0x70, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x63,
0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x63, 0x72,
0x79, 0x70, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65,
0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x59, 0x0a, 0x0e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x54,
0x78, 0x12, 0x21, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42,
0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x54, 0x78, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x72, 0x2e, 0x76,
0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x54, 0x78,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xbc, 0x01, 0x0a, 0x0e, 0x63,
0x6f, 0x6d, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65,
0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x72,
0x79, 0x70, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x72,
0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x43, 0x72, 0x79, 0x70, 0x74,
0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0a, 0x43, 0x72, 0x79, 0x70, 0x74, 0x65, 0x72, 0x5c,
0x56, 0x31, 0xe2, 0x02, 0x16, 0x43, 0x72, 0x79, 0x70, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x5c,
0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0b, 0x43, 0x72,
0x79, 0x70, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var file_crypter_v1_service_proto_goTypes = []interface{}{ func init() { proto.RegisterFile("crypter/v1/service.proto", fileDescriptor_05ac8b6606ffe814) }
(*BatchSignRequest)(nil), // 0: crypter.v1.BatchSignRequest
(*BatchVerifyRequest)(nil), // 1: crypter.v1.BatchVerifyRequest
(*BatchRecoverRequest)(nil), // 2: crypter.v1.BatchRecoverRequest
(*BatchRecoverTxRequest)(nil), // 3: crypter.v1.BatchRecoverTxRequest
(*BatchSignResponse)(nil), // 4: crypter.v1.BatchSignResponse
(*BatchVerifyResponse)(nil), // 5: crypter.v1.BatchVerifyResponse
(*BatchRecoverResponse)(nil), // 6: crypter.v1.BatchRecoverResponse
(*BatchRecoverTxResponse)(nil), // 7: crypter.v1.BatchRecoverTxResponse
}
var file_crypter_v1_service_proto_depIdxs = []int32{
0, // 0: crypter.v1.CrypterService.BatchSign:input_type -> crypter.v1.BatchSignRequest
1, // 1: crypter.v1.CrypterService.BatchVerify:input_type -> crypter.v1.BatchVerifyRequest
2, // 2: crypter.v1.CrypterService.BatchRecover:input_type -> crypter.v1.BatchRecoverRequest
3, // 3: crypter.v1.CrypterService.BatchRecoverTx:input_type -> crypter.v1.BatchRecoverTxRequest
4, // 4: crypter.v1.CrypterService.BatchSign:output_type -> crypter.v1.BatchSignResponse
5, // 5: crypter.v1.CrypterService.BatchVerify:output_type -> crypter.v1.BatchVerifyResponse
6, // 6: crypter.v1.CrypterService.BatchRecover:output_type -> crypter.v1.BatchRecoverResponse
7, // 7: crypter.v1.CrypterService.BatchRecoverTx:output_type -> crypter.v1.BatchRecoverTxResponse
4, // [4:8] is the sub-list for method output_type
0, // [0:4] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_crypter_v1_service_proto_init() } var fileDescriptor_05ac8b6606ffe814 = []byte{
func file_crypter_v1_service_proto_init() { // 318 bytes of a gzipped FileDescriptorProto
if File_crypter_v1_service_proto != nil { 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4f, 0x4a, 0xc3, 0x40,
return 0x14, 0xc6, 0x6d, 0x04, 0xc1, 0x69, 0xe9, 0x62, 0x16, 0x22, 0xc5, 0x7f, 0xed, 0x01, 0x32, 0x8c,
} 0xee, 0xea, 0x2e, 0x5d, 0x08, 0x82, 0x10, 0x9a, 0x12, 0xaa, 0x14, 0x64, 0x3a, 0x7d, 0xa6, 0x01,
file_crypter_v1_request_response_proto_init() 0xdb, 0x89, 0x33, 0x93, 0xa1, 0xbd, 0x8e, 0x4b, 0xcf, 0xe0, 0x09, 0x3c, 0x84, 0x0b, 0x97, 0x9e,
type x struct{} 0x42, 0x9a, 0x99, 0xa4, 0x85, 0x12, 0x77, 0xf9, 0xe6, 0xfb, 0xbd, 0xdf, 0x83, 0x3c, 0x74, 0xca,
out := protoimpl.TypeBuilder{ 0xe5, 0x3a, 0xd3, 0x20, 0x89, 0xa1, 0x44, 0x81, 0x34, 0x29, 0x07, 0x3f, 0x93, 0x42, 0x0b, 0x8c,
File: protoimpl.DescBuilder{ 0x5c, 0xe3, 0x1b, 0xda, 0xe9, 0xee, 0x50, 0x12, 0xde, 0x72, 0x50, 0xfa, 0x59, 0x82, 0xca, 0xc4,
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 0x52, 0x39, 0xfc, 0xfa, 0xdb, 0x43, 0xed, 0x81, 0xa5, 0x22, 0xeb, 0xc1, 0xf7, 0xe8, 0x38, 0x60,
RawDescriptor: file_crypter_v1_service_proto_rawDesc, 0x9a, 0xcf, 0xa3, 0x34, 0x59, 0xe2, 0x33, 0x7f, 0xeb, 0xf3, 0xab, 0xe7, 0xa1, 0x95, 0x75, 0xce,
NumEnums: 0, 0x6b, 0x5a, 0xbb, 0xa2, 0x77, 0x80, 0x43, 0xd4, 0x2c, 0x9e, 0x63, 0x90, 0xe9, 0xcb, 0x1a, 0x5f,
NumMessages: 0, 0xec, 0xf1, 0xb6, 0x28, 0x7d, 0x97, 0xb5, 0x7d, 0x65, 0x8c, 0x50, 0xab, 0x28, 0x86, 0xc0, 0x85,
NumExtensions: 0, 0x01, 0x89, 0xf7, 0x47, 0x5c, 0x53, 0x3a, 0xaf, 0xea, 0x81, 0x4a, 0xfa, 0x88, 0xda, 0xbb, 0xcd,
NumServices: 1, 0x68, 0x85, 0xbb, 0x75, 0x53, 0xa3, 0x55, 0x29, 0xee, 0xfd, 0x87, 0x94, 0xea, 0xe0, 0xb3, 0x81,
}, 0xda, 0x5c, 0x2c, 0x76, 0xd8, 0xa0, 0xe5, 0xfe, 0x74, 0xb8, 0xb9, 0x40, 0xd8, 0x78, 0x8a, 0x92,
GoTypes: file_crypter_v1_service_proto_goTypes, 0x54, 0xcf, 0xf3, 0xa9, 0xcf, 0xc5, 0x82, 0x0c, 0xd8, 0x2c, 0xe7, 0x90, 0xab, 0x07, 0xd0, 0xcc,
DependencyIndexes: file_crypter_v1_service_proto_depIdxs, 0x80, 0x54, 0x16, 0xe2, 0xe2, 0x95, 0x2c, 0x40, 0xb3, 0xac, 0x0c, 0x09, 0x2c, 0x49, 0x11, 0x48,
}.Build() 0x22, 0xc8, 0xf6, 0xca, 0xb7, 0xee, 0xd3, 0xd0, 0x77, 0xef, 0x70, 0x30, 0x1e, 0x7f, 0x78, 0xc8,
File_crypter_v1_service_proto = out.File 0x1d, 0xd7, 0x8f, 0xe9, 0x57, 0x15, 0x26, 0x31, 0xfd, 0xf1, 0x4e, 0xb6, 0x61, 0x72, 0x17, 0x06,
file_crypter_v1_service_proto_rawDesc = nil 0x9b, 0x85, 0x33, 0xa6, 0xd9, 0xaf, 0xd7, 0x74, 0x45, 0xbf, 0x1f, 0xd3, 0xe9, 0x51, 0xb1, 0xe5,
file_crypter_v1_service_proto_goTypes = nil 0xe6, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x16, 0x15, 0xdd, 0xd5, 0x71, 0x02, 0x00, 0x00,
file_crypter_v1_service_proto_depIdxs = nil
} }
This diff is collapsed.
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// source: nebula/v1/request_response.proto // source: nebula/v1/request_response.proto
package nebulav1 package nebulav1
import ( import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect" fmt "fmt"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" proto "github.com/gogo/protobuf/proto"
_ "google.golang.org/protobuf/types/known/fieldmaskpb" _ "google.golang.org/protobuf/types/known/fieldmaskpb"
_ "google.golang.org/protobuf/types/known/timestamppb" _ "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect" math "math"
) )
const ( // Reference imports to suppress errors if they are not otherwise used.
// Verify that this generated code is sufficiently up-to-date. var _ = proto.Marshal
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) var _ = fmt.Errorf
// Verify that runtime/protoimpl is sufficiently up-to-date. var _ = math.Inf
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_nebula_v1_request_response_proto protoreflect.FileDescriptor
var file_nebula_v1_request_response_proto_rawDesc = []byte{ // This is a compile-time assertion to ensure that this generated file
0x0a, 0x20, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, // is compatible with the proto package it is being compiled against.
0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, // A compilation error at this line likely means your copy of the
0x74, 0x6f, 0x12, 0x09, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x67, // proto package needs to be updated.
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x18, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0xbd, 0x01, 0x0a, 0x0d, 0x63,
0x6f, 0x6d, 0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65, 0x72,
0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2f, 0x76, 0x31, 0x3b, 0x6e,
0x65, 0x62, 0x75, 0x6c, 0x61, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4e, 0x58, 0x58, 0xaa, 0x02, 0x09,
0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x09, 0x4e, 0x65, 0x62, 0x75,
0x6c, 0x61, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x15, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x5c, 0x56,
0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a,
0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var file_nebula_v1_request_response_proto_goTypes = []interface{}{} func init() { proto.RegisterFile("nebula/v1/request_response.proto", fileDescriptor_4c600a7b006f1b4e) }
var file_nebula_v1_request_response_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_nebula_v1_request_response_proto_init() } var fileDescriptor_4c600a7b006f1b4e = []byte{
func file_nebula_v1_request_response_proto_init() { // 248 bytes of a gzipped FileDescriptorProto
if File_nebula_v1_request_response_proto != nil { 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8e, 0xc1, 0x4a, 0xc3, 0x30,
return 0x18, 0xc7, 0x59, 0x05, 0x61, 0x05, 0x2f, 0xa2, 0x20, 0xbb, 0xb8, 0x27, 0x68, 0x08, 0xde, 0xe6,
} 0xad, 0x1e, 0x3c, 0x39, 0xea, 0x0e, 0x65, 0xc8, 0x60, 0x7c, 0x4d, 0xbf, 0xc5, 0x62, 0xd3, 0xaf,
file_nebula_v1_resource_proto_init() 0x26, 0x5f, 0xfa, 0x40, 0x1e, 0x7d, 0x07, 0x5f, 0xc0, 0xc7, 0xf0, 0xe8, 0x53, 0xc8, 0x96, 0xac,
type x struct{} 0xc8, 0x6e, 0xff, 0x24, 0x3f, 0xf2, 0xfb, 0xa5, 0xf3, 0x0e, 0x2b, 0xdf, 0x82, 0x18, 0xa4, 0xb0,
out := protoimpl.TypeBuilder{ 0xf8, 0xee, 0xd1, 0xf1, 0xd6, 0xa2, 0xeb, 0xa9, 0x73, 0x98, 0xf5, 0x96, 0x98, 0x2e, 0xa7, 0x81,
File: protoimpl.DescBuilder{ 0xc8, 0x06, 0x39, 0x9b, 0x6b, 0x22, 0xdd, 0xa2, 0x38, 0x3c, 0x54, 0x7e, 0x27, 0x76, 0x0d, 0xb6,
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 0xf5, 0xd6, 0x80, 0x7b, 0x0b, 0xf0, 0xec, 0xf6, 0x94, 0xe0, 0xc6, 0xa0, 0x63, 0x30, 0x7d, 0x04,
RawDescriptor: file_nebula_v1_request_response_proto_rawDesc, 0x6e, 0xfe, 0xfb, 0x1c, 0x79, 0xab, 0xa2, 0x27, 0xff, 0x9a, 0xa4, 0x17, 0x8a, 0x4c, 0x36, 0xea,
NumEnums: 0, 0xf2, 0xab, 0x55, 0x28, 0x5a, 0xc5, 0xa0, 0x62, 0xcf, 0x15, 0x93, 0x97, 0x67, 0xdd, 0xf0, 0xab,
NumMessages: 0, 0xaf, 0x32, 0x45, 0x46, 0x3c, 0x40, 0xed, 0x15, 0x7a, 0xf7, 0x84, 0x0c, 0x03, 0xda, 0x08, 0x29,
NumExtensions: 0, 0x6a, 0x85, 0x41, 0x86, 0xfe, 0x78, 0xd0, 0xd8, 0x85, 0x26, 0xa1, 0x49, 0x8c, 0x09, 0xf7, 0x61,
NumServices: 0, 0x0d, 0xf2, 0x23, 0x39, 0x5b, 0xae, 0xd7, 0x9f, 0xc9, 0x74, 0x19, 0xe4, 0xa5, 0xfc, 0x3e, 0xee,
}, 0x4d, 0x29, 0x7f, 0x92, 0xeb, 0x71, 0x6f, 0x1e, 0x8b, 0x7c, 0xef, 0xaa, 0x81, 0xe1, 0x37, 0x49,
GoTypes: file_nebula_v1_request_response_proto_goTypes, 0xc3, 0xfd, 0x62, 0x51, 0xca, 0xea, 0xfc, 0xf0, 0xff, 0xdd, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff,
DependencyIndexes: file_nebula_v1_request_response_proto_depIdxs, 0xda, 0x3b, 0x18, 0xa5, 0x52, 0x01, 0x00, 0x00,
}.Build()
File_nebula_v1_request_response_proto = out.File
file_nebula_v1_request_response_proto_rawDesc = nil
file_nebula_v1_request_response_proto_goTypes = nil
file_nebula_v1_request_response_proto_depIdxs = nil
} }
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// source: nebula/v1/resource.proto // source: nebula/v1/resource.proto
package nebulav1 package nebulav1
import ( import (
fmt "fmt"
v1 "github.com/CaduceusMetaverseProtocol/metaprotocol/gen/proto/go/base/v1" v1 "github.com/CaduceusMetaverseProtocol/metaprotocol/gen/proto/go/base/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" proto "github.com/gogo/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" math "math"
reflect "reflect"
sync "sync"
) )
const ( // Reference imports to suppress errors if they are not otherwise used.
// Verify that this generated code is sufficiently up-to-date. var _ = proto.Marshal
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) var _ = fmt.Errorf
// Verify that runtime/protoimpl is sufficiently up-to-date. var _ = math.Inf
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Tx struct { // This is a compile-time assertion to ensure that this generated file
state protoimpl.MessageState // is compatible with the proto package it is being compiled against.
sizeCache protoimpl.SizeCache // A compilation error at this line likely means your copy of the
unknownFields protoimpl.UnknownFields // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type Tx struct {
Address *v1.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Address *v1.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Hash *v1.Hash `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Hash *v1.Hash `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (x *Tx) Reset() { func (m *Tx) Reset() { *m = Tx{} }
*x = Tx{} func (m *Tx) String() string { return proto.CompactTextString(m) }
if protoimpl.UnsafeEnabled { func (*Tx) ProtoMessage() {}
mi := &file_nebula_v1_resource_proto_msgTypes[0] func (*Tx) Descriptor() ([]byte, []int) {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) return fileDescriptor_77da30a6e0efe5d2, []int{0}
ms.StoreMessageInfo(mi)
}
} }
func (m *Tx) XXX_Unmarshal(b []byte) error {
func (x *Tx) String() string { return xxx_messageInfo_Tx.Unmarshal(m, b)
return protoimpl.X.MessageStringOf(x)
} }
func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
func (*Tx) ProtoMessage() {} return xxx_messageInfo_Tx.Marshal(b, m, deterministic)
func (x *Tx) ProtoReflect() protoreflect.Message {
mi := &file_nebula_v1_resource_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
} }
func (m *Tx) XXX_Merge(src proto.Message) {
// Deprecated: Use Tx.ProtoReflect.Descriptor instead. xxx_messageInfo_Tx.Merge(m, src)
func (*Tx) Descriptor() ([]byte, []int) { }
return file_nebula_v1_resource_proto_rawDescGZIP(), []int{0} func (m *Tx) XXX_Size() int {
return xxx_messageInfo_Tx.Size(m)
} }
func (m *Tx) XXX_DiscardUnknown() {
xxx_messageInfo_Tx.DiscardUnknown(m)
}
var xxx_messageInfo_Tx proto.InternalMessageInfo
func (x *Tx) GetAddress() *v1.Address { func (m *Tx) GetAddress() *v1.Address {
if x != nil { if m != nil {
return x.Address return m.Address
} }
return nil return nil
} }
func (x *Tx) GetHash() *v1.Hash { func (m *Tx) GetHash() *v1.Hash {
if x != nil { if m != nil {
return x.Hash return m.Hash
} }
return nil return nil
} }
var File_nebula_v1_resource_proto protoreflect.FileDescriptor func init() {
proto.RegisterType((*Tx)(nil), "nebula.v1.Tx")
var file_nebula_v1_resource_proto_rawDesc = []byte{
0x0a, 0x18, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6e, 0x65, 0x62, 0x75,
0x6c, 0x61, 0x2e, 0x76, 0x31, 0x1a, 0x16, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x53, 0x0a,
0x02, 0x54, 0x78, 0x12, 0x2a, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
0x21, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x04, 0x68, 0x61,
0x73, 0x68, 0x42, 0xb6, 0x01, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c,
0x61, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x43, 0x61, 0x64, 0x75, 0x63, 0x65, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x76, 0x65,
0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2f, 0x76, 0x31, 0x3b,
0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4e, 0x58, 0x58, 0xaa, 0x02,
0x09, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x09, 0x4e, 0x65, 0x62,
0x75, 0x6c, 0x61, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x15, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x5c,
0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
0x0a, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (
file_nebula_v1_resource_proto_rawDescOnce sync.Once
file_nebula_v1_resource_proto_rawDescData = file_nebula_v1_resource_proto_rawDesc
)
func file_nebula_v1_resource_proto_rawDescGZIP() []byte {
file_nebula_v1_resource_proto_rawDescOnce.Do(func() {
file_nebula_v1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_nebula_v1_resource_proto_rawDescData)
})
return file_nebula_v1_resource_proto_rawDescData
} }
var file_nebula_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1) func init() { proto.RegisterFile("nebula/v1/resource.proto", fileDescriptor_77da30a6e0efe5d2) }
var file_nebula_v1_resource_proto_goTypes = []interface{}{
(*Tx)(nil), // 0: nebula.v1.Tx var fileDescriptor_77da30a6e0efe5d2 = []byte{
(*v1.Address)(nil), // 1: base.v1.Address // 254 bytes of a gzipped FileDescriptorProto
(*v1.Hash)(nil), // 2: base.v1.Hash 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc8, 0x4b, 0x4d, 0x2a,
} 0xcd, 0x49, 0xd4, 0x2f, 0x33, 0xd4, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a, 0x4e, 0xd5, 0x2b,
var file_nebula_v1_resource_proto_depIdxs = []int32{ 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x84, 0xc8, 0xe8, 0x95, 0x19, 0x4a, 0x89, 0x25, 0x25, 0x16,
1, // 0: nebula.v1.Tx.address:type_name -> base.v1.Address 0xa7, 0x62, 0x2a, 0x51, 0x0a, 0xe6, 0x62, 0x0a, 0xa9, 0x10, 0xd2, 0xe2, 0x62, 0x4f, 0x4c, 0x49,
2, // 1: nebula.v1.Tx.hash:type_name -> base.v1.Hash 0x29, 0x4a, 0x2d, 0x2e, 0x96, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x12, 0xd0, 0x03, 0xa9, 0xd7,
2, // [2:2] is the sub-list for method output_type 0x2b, 0x33, 0xd4, 0x73, 0x84, 0x88, 0x07, 0xc1, 0x14, 0x08, 0x29, 0x72, 0xb1, 0x64, 0x24, 0x16,
2, // [2:2] is the sub-list for method input_type 0x67, 0x48, 0x30, 0x81, 0x15, 0xf2, 0xc2, 0x15, 0x7a, 0x24, 0x16, 0x67, 0x04, 0x81, 0xa5, 0x9c,
2, // [2:2] is the sub-list for extension type_name 0xb6, 0x31, 0x72, 0xf1, 0x26, 0xe7, 0xe7, 0xea, 0xc1, 0xad, 0x77, 0xe2, 0x0d, 0x82, 0x5a, 0x1b,
2, // [2:2] is the sub-list for extension extendee 0x00, 0xb2, 0x35, 0x80, 0x31, 0x2a, 0x30, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f,
0, // [0:2] is the sub-list for field type_name 0x57, 0xdf, 0x39, 0x31, 0xa5, 0x34, 0x39, 0xb5, 0xb4, 0xd8, 0x37, 0xb5, 0x24, 0xb1, 0x2c, 0xb5,
} 0xa8, 0x18, 0xa2, 0x28, 0x39, 0x3f, 0x47, 0x3f, 0x37, 0xb5, 0x24, 0xb1, 0x00, 0xc6, 0x49, 0x4f,
0xcd, 0xd3, 0x07, 0x73, 0xf4, 0xd3, 0xf3, 0xf5, 0xe1, 0x7e, 0xb6, 0x86, 0xb0, 0xca, 0x0c, 0x17,
func init() { file_nebula_v1_resource_proto_init() } 0x31, 0x31, 0xfb, 0x45, 0x44, 0xac, 0x62, 0xe2, 0xf4, 0x83, 0xd8, 0x1a, 0x66, 0x78, 0x0a, 0xc6,
func file_nebula_v1_resource_proto_init() { 0x8e, 0x09, 0x33, 0x7c, 0xc4, 0x24, 0x0a, 0x67, 0xc7, 0xb8, 0x07, 0x38, 0x81, 0xec, 0x4a, 0x49,
if File_nebula_v1_resource_proto != nil { 0x2c, 0x49, 0x7c, 0xc5, 0xc4, 0x05, 0x11, 0xb7, 0xb2, 0x0a, 0x33, 0x4c, 0x62, 0x03, 0x9b, 0x6f,
return 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x45, 0x30, 0x76, 0xe7, 0x53, 0x01, 0x00, 0x00,
}
if !protoimpl.UnsafeEnabled {
file_nebula_v1_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Tx); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_nebula_v1_resource_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_nebula_v1_resource_proto_goTypes,
DependencyIndexes: file_nebula_v1_resource_proto_depIdxs,
MessageInfos: file_nebula_v1_resource_proto_msgTypes,
}.Build()
File_nebula_v1_resource_proto = out.File
file_nebula_v1_resource_proto_rawDesc = nil
file_nebula_v1_resource_proto_goTypes = nil
file_nebula_v1_resource_proto_depIdxs = nil
} }
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -28,7 +28,7 @@ type SentryServiceClient interface { ...@@ -28,7 +28,7 @@ type SentryServiceClient interface {
CommitBatchTx(ctx context.Context, in *CommitBatchTxRequest, opts ...grpc.CallOption) (*CommitBatchTxResponse, error) CommitBatchTx(ctx context.Context, in *CommitBatchTxRequest, opts ...grpc.CallOption) (*CommitBatchTxResponse, error)
// GetTxReceipt from tx-sort-network with txhash // GetTxReceipt from tx-sort-network with txhash
GetBatchTxResult(ctx context.Context, in *GetReceiptRequest, opts ...grpc.CallOption) (*GetReceiptResponse, error) GetBatchTxResult(ctx context.Context, in *GetReceiptRequest, opts ...grpc.CallOption) (*GetReceiptResponse, error)
// for val //for val
// GetNewBlock used for nebula get new virtual block info from contract with lastblock. // GetNewBlock used for nebula get new virtual block info from contract with lastblock.
GetNewBlock(ctx context.Context, in *GetNewBlockRequest, opts ...grpc.CallOption) (*GetNewBlockResponse, error) GetNewBlock(ctx context.Context, in *GetNewBlockRequest, opts ...grpc.CallOption) (*GetNewBlockResponse, error)
// CommitBlock used for nebula commit new block and state info to contract. // CommitBlock used for nebula commit new block and state info to contract.
...@@ -109,7 +109,7 @@ type SentryServiceServer interface { ...@@ -109,7 +109,7 @@ type SentryServiceServer interface {
CommitBatchTx(context.Context, *CommitBatchTxRequest) (*CommitBatchTxResponse, error) CommitBatchTx(context.Context, *CommitBatchTxRequest) (*CommitBatchTxResponse, error)
// GetTxReceipt from tx-sort-network with txhash // GetTxReceipt from tx-sort-network with txhash
GetBatchTxResult(context.Context, *GetReceiptRequest) (*GetReceiptResponse, error) GetBatchTxResult(context.Context, *GetReceiptRequest) (*GetReceiptResponse, error)
// for val //for val
// GetNewBlock used for nebula get new virtual block info from contract with lastblock. // GetNewBlock used for nebula get new virtual block info from contract with lastblock.
GetNewBlock(context.Context, *GetNewBlockRequest) (*GetNewBlockResponse, error) GetNewBlock(context.Context, *GetNewBlockRequest) (*GetNewBlockResponse, error)
// CommitBlock used for nebula commit new block and state info to contract. // CommitBlock used for nebula commit new block and state info to contract.
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -2,6 +2,7 @@ syntax = "proto3"; ...@@ -2,6 +2,7 @@ syntax = "proto3";
package nebula.v1; package nebula.v1;
import "base/v1/resource.proto"; import "base/v1/resource.proto";
message Tx { message Tx {
base.v1.Address address = 1; base.v1.Address address = 1;
base.v1.Hash hash = 2; base.v1.Hash hash = 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment