// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.10 // protoc v3.21.12 // source: common.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) 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) ) type MerkleTreeProofItem struct { state protoimpl.MessageState `protogen:"open.v1"` Floor uint32 `protobuf:"varint,1,opt,name=floor,proto3" json:"floor,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Left bool `protobuf:"varint,3,opt,name=left,proto3" json:"left,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MerkleTreeProofItem) Reset() { *x = MerkleTreeProofItem{} mi := &file_common_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MerkleTreeProofItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*MerkleTreeProofItem) ProtoMessage() {} func (x *MerkleTreeProofItem) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MerkleTreeProofItem.ProtoReflect.Descriptor instead. func (*MerkleTreeProofItem) Descriptor() ([]byte, []int) { return file_common_proto_rawDescGZIP(), []int{0} } func (x *MerkleTreeProofItem) GetFloor() uint32 { if x != nil { return x.Floor } return 0 } func (x *MerkleTreeProofItem) GetHash() string { if x != nil { return x.Hash } return "" } func (x *MerkleTreeProofItem) GetLeft() bool { if x != nil { return x.Left } return false } type Proof struct { state protoimpl.MessageState `protogen:"open.v1"` ColItems []*MerkleTreeProofItem `protobuf:"bytes,1,rep,name=colItems,proto3" json:"colItems,omitempty"` RawItems []*MerkleTreeProofItem `protobuf:"bytes,2,rep,name=rawItems,proto3" json:"rawItems,omitempty"` ColRootItem []*MerkleTreeProofItem `protobuf:"bytes,3,rep,name=colRootItem,proto3" json:"colRootItem,omitempty"` RawRootItem []*MerkleTreeProofItem `protobuf:"bytes,4,rep,name=rawRootItem,proto3" json:"rawRootItem,omitempty"` Sign string `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"` Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` // 版本号 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Proof) Reset() { *x = Proof{} mi := &file_common_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Proof) String() string { return protoimpl.X.MessageStringOf(x) } func (*Proof) ProtoMessage() {} func (x *Proof) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Proof.ProtoReflect.Descriptor instead. func (*Proof) Descriptor() ([]byte, []int) { return file_common_proto_rawDescGZIP(), []int{1} } func (x *Proof) GetColItems() []*MerkleTreeProofItem { if x != nil { return x.ColItems } return nil } func (x *Proof) GetRawItems() []*MerkleTreeProofItem { if x != nil { return x.RawItems } return nil } func (x *Proof) GetColRootItem() []*MerkleTreeProofItem { if x != nil { return x.ColRootItem } return nil } func (x *Proof) GetRawRootItem() []*MerkleTreeProofItem { if x != nil { return x.RawRootItem } return nil } func (x *Proof) GetSign() string { if x != nil { return x.Sign } return "" } func (x *Proof) GetVersion() string { if x != nil { return x.Version } return "" } var File_common_proto protoreflect.FileDescriptor const file_common_proto_rawDesc = "" + "\n" + "\fcommon.proto\x12\x06common\"S\n" + "\x13MerkleTreeProofItem\x12\x14\n" + "\x05floor\x18\x01 \x01(\rR\x05floor\x12\x12\n" + "\x04hash\x18\x02 \x01(\tR\x04hash\x12\x12\n" + "\x04left\x18\x03 \x01(\bR\x04left\"\xa5\x02\n" + "\x05Proof\x127\n" + "\bcolItems\x18\x01 \x03(\v2\x1b.common.MerkleTreeProofItemR\bcolItems\x127\n" + "\brawItems\x18\x02 \x03(\v2\x1b.common.MerkleTreeProofItemR\brawItems\x12=\n" + "\vcolRootItem\x18\x03 \x03(\v2\x1b.common.MerkleTreeProofItemR\vcolRootItem\x12=\n" + "\vrawRootItem\x18\x04 \x03(\v2\x1b.common.MerkleTreeProofItemR\vrawRootItem\x12\x12\n" + "\x04sign\x18\x05 \x01(\tR\x04sign\x12\x18\n" + "\aversion\x18\x06 \x01(\tR\aversionB4Z2go.yandata.net/iod/iod/trustlog-sdk/api/grpc/pb;pbb\x06proto3" var ( file_common_proto_rawDescOnce sync.Once file_common_proto_rawDescData []byte ) func file_common_proto_rawDescGZIP() []byte { file_common_proto_rawDescOnce.Do(func() { file_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_proto_rawDesc), len(file_common_proto_rawDesc))) }) return file_common_proto_rawDescData } var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_common_proto_goTypes = []any{ (*MerkleTreeProofItem)(nil), // 0: common.MerkleTreeProofItem (*Proof)(nil), // 1: common.Proof } var file_common_proto_depIdxs = []int32{ 0, // 0: common.Proof.colItems:type_name -> common.MerkleTreeProofItem 0, // 1: common.Proof.rawItems:type_name -> common.MerkleTreeProofItem 0, // 2: common.Proof.colRootItem:type_name -> common.MerkleTreeProofItem 0, // 3: common.Proof.rawRootItem:type_name -> common.MerkleTreeProofItem 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_common_proto_init() } func file_common_proto_init() { if File_common_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_proto_rawDesc), len(file_common_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_common_proto_goTypes, DependencyIndexes: file_common_proto_depIdxs, MessageInfos: file_common_proto_msgTypes, }.Build() File_common_proto = out.File file_common_proto_goTypes = nil file_common_proto_depIdxs = nil }