github.com/ZihuaZhang/fabric-protos-go@v1.0.7/ledger/queryresult/kv_query_result.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: ledger/queryresult/kv_query_result.proto 3 4 package queryresult 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 10 math "math" 11 ) 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 // This is a compile-time assertion to ensure that this generated file 19 // is compatible with the proto package it is being compiled against. 20 // A compilation error at this line likely means your copy of the 21 // proto package needs to be updated. 22 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 24 // KV -- QueryResult for range/execute query. Holds a key and corresponding value. 25 type KV struct { 26 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 27 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` 28 Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` 29 XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 XXX_unrecognized []byte `json:"-"` 31 XXX_sizecache int32 `json:"-"` 32 } 33 34 func (m *KV) Reset() { *m = KV{} } 35 func (m *KV) String() string { return proto.CompactTextString(m) } 36 func (*KV) ProtoMessage() {} 37 func (*KV) Descriptor() ([]byte, []int) { 38 return fileDescriptor_f8ee2fe66594a8f2, []int{0} 39 } 40 41 func (m *KV) XXX_Unmarshal(b []byte) error { 42 return xxx_messageInfo_KV.Unmarshal(m, b) 43 } 44 func (m *KV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 return xxx_messageInfo_KV.Marshal(b, m, deterministic) 46 } 47 func (m *KV) XXX_Merge(src proto.Message) { 48 xxx_messageInfo_KV.Merge(m, src) 49 } 50 func (m *KV) XXX_Size() int { 51 return xxx_messageInfo_KV.Size(m) 52 } 53 func (m *KV) XXX_DiscardUnknown() { 54 xxx_messageInfo_KV.DiscardUnknown(m) 55 } 56 57 var xxx_messageInfo_KV proto.InternalMessageInfo 58 59 func (m *KV) GetNamespace() string { 60 if m != nil { 61 return m.Namespace 62 } 63 return "" 64 } 65 66 func (m *KV) GetKey() string { 67 if m != nil { 68 return m.Key 69 } 70 return "" 71 } 72 73 func (m *KV) GetValue() []byte { 74 if m != nil { 75 return m.Value 76 } 77 return nil 78 } 79 80 // KeyModification -- QueryResult for history query. Holds a transaction ID, value, 81 // timestamp, and delete marker which resulted from a history query. 82 type KeyModification struct { 83 TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` 84 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 85 Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 86 IsDelete bool `protobuf:"varint,4,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"` 87 XXX_NoUnkeyedLiteral struct{} `json:"-"` 88 XXX_unrecognized []byte `json:"-"` 89 XXX_sizecache int32 `json:"-"` 90 } 91 92 func (m *KeyModification) Reset() { *m = KeyModification{} } 93 func (m *KeyModification) String() string { return proto.CompactTextString(m) } 94 func (*KeyModification) ProtoMessage() {} 95 func (*KeyModification) Descriptor() ([]byte, []int) { 96 return fileDescriptor_f8ee2fe66594a8f2, []int{1} 97 } 98 99 func (m *KeyModification) XXX_Unmarshal(b []byte) error { 100 return xxx_messageInfo_KeyModification.Unmarshal(m, b) 101 } 102 func (m *KeyModification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 103 return xxx_messageInfo_KeyModification.Marshal(b, m, deterministic) 104 } 105 func (m *KeyModification) XXX_Merge(src proto.Message) { 106 xxx_messageInfo_KeyModification.Merge(m, src) 107 } 108 func (m *KeyModification) XXX_Size() int { 109 return xxx_messageInfo_KeyModification.Size(m) 110 } 111 func (m *KeyModification) XXX_DiscardUnknown() { 112 xxx_messageInfo_KeyModification.DiscardUnknown(m) 113 } 114 115 var xxx_messageInfo_KeyModification proto.InternalMessageInfo 116 117 func (m *KeyModification) GetTxId() string { 118 if m != nil { 119 return m.TxId 120 } 121 return "" 122 } 123 124 func (m *KeyModification) GetValue() []byte { 125 if m != nil { 126 return m.Value 127 } 128 return nil 129 } 130 131 func (m *KeyModification) GetTimestamp() *timestamppb.Timestamp { 132 if m != nil { 133 return m.Timestamp 134 } 135 return nil 136 } 137 138 func (m *KeyModification) GetIsDelete() bool { 139 if m != nil { 140 return m.IsDelete 141 } 142 return false 143 } 144 145 func init() { 146 proto.RegisterType((*KV)(nil), "queryresult.KV") 147 proto.RegisterType((*KeyModification)(nil), "queryresult.KeyModification") 148 } 149 150 func init() { 151 proto.RegisterFile("ledger/queryresult/kv_query_result.proto", fileDescriptor_f8ee2fe66594a8f2) 152 } 153 154 var fileDescriptor_f8ee2fe66594a8f2 = []byte{ 155 // 290 bytes of a gzipped FileDescriptorProto 156 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x4f, 0x4b, 0xc3, 0x30, 157 0x18, 0xc6, 0xe9, 0xfe, 0xc8, 0x9a, 0x09, 0x4a, 0xf4, 0x50, 0xa6, 0x60, 0xd9, 0xa9, 0x97, 0x25, 158 0xa2, 0x17, 0xf1, 0x28, 0x5e, 0x74, 0x78, 0x29, 0xe2, 0xc1, 0x4b, 0x49, 0xdb, 0xb7, 0x59, 0x58, 159 0xdb, 0xd4, 0x24, 0x1d, 0xeb, 0xe7, 0xf0, 0x0b, 0x8b, 0xc9, 0x66, 0x0b, 0xde, 0xf2, 0xbc, 0xef, 160 0xf3, 0x7b, 0x78, 0x78, 0x83, 0xa2, 0x12, 0x72, 0x0e, 0x8a, 0x7e, 0xb5, 0xa0, 0x3a, 0x05, 0xba, 161 0x2d, 0x0d, 0xdd, 0xee, 0x12, 0x2b, 0x13, 0xa7, 0x49, 0xa3, 0xa4, 0x91, 0x78, 0x3e, 0xb0, 0x2c, 162 0x6e, 0xb8, 0x94, 0xbc, 0x04, 0x6a, 0x57, 0x69, 0x5b, 0x50, 0x23, 0x2a, 0xd0, 0x86, 0x55, 0x8d, 163 0x73, 0x2f, 0x5f, 0xd1, 0x68, 0xfd, 0x81, 0xaf, 0x91, 0x5f, 0xb3, 0x0a, 0x74, 0xc3, 0x32, 0x08, 164 0xbc, 0xd0, 0x8b, 0xfc, 0xb8, 0x1f, 0xe0, 0x73, 0x34, 0xde, 0x42, 0x17, 0x8c, 0xec, 0xfc, 0xf7, 165 0x89, 0x2f, 0xd1, 0x74, 0xc7, 0xca, 0x16, 0x82, 0x71, 0xe8, 0x45, 0xa7, 0xb1, 0x13, 0xcb, 0x6f, 166 0x0f, 0x9d, 0xad, 0xa1, 0x7b, 0x93, 0xb9, 0x28, 0x44, 0xc6, 0x8c, 0x90, 0x35, 0xbe, 0x40, 0x53, 167 0xb3, 0x4f, 0x44, 0x7e, 0x48, 0x9d, 0x98, 0xfd, 0x4b, 0xde, 0xe3, 0xa3, 0x01, 0x8e, 0x1f, 0x90, 168 0xff, 0xd7, 0xce, 0x06, 0xcf, 0xef, 0x16, 0xc4, 0xf5, 0x27, 0xc7, 0xfe, 0xe4, 0xfd, 0xe8, 0x88, 169 0x7b, 0x33, 0xbe, 0x42, 0xbe, 0xd0, 0x49, 0x0e, 0x25, 0x18, 0x08, 0x26, 0xa1, 0x17, 0xcd, 0xe2, 170 0x99, 0xd0, 0xcf, 0x56, 0x3f, 0xd5, 0xe8, 0x56, 0x2a, 0x4e, 0x36, 0x5d, 0x03, 0xca, 0x1d, 0x91, 171 0x14, 0x2c, 0x55, 0x22, 0x73, 0xa1, 0x9a, 0x1c, 0x86, 0x83, 0xb3, 0x7d, 0x3e, 0x72, 0x61, 0x36, 172 0x6d, 0x4a, 0x32, 0x59, 0xd1, 0x01, 0x48, 0x1d, 0xb8, 0x72, 0xe0, 0x8a, 0x4b, 0xfa, 0xff, 0x57, 173 0xd2, 0x13, 0xbb, 0xbd, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x07, 0x6d, 0xd7, 0x47, 0xb2, 0x01, 174 0x00, 0x00, 175 }