├── go.mod ├── README.md ├── doc.go ├── contract ├── common_messages.pb.go ├── contract_messages.pb.go └── ledger_messages.pb.go └── LICENSE /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hyperledgendary/fabric-ledger-protos-go 2 | 3 | go 1.14 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # fabric-ledger-protos 2 | 3 | Go library for encoding and decoding Hyperledger Fabric contract messages (generated) 4 | -------------------------------------------------------------------------------- /doc.go: -------------------------------------------------------------------------------- 1 | // Copyright the Hyperledger Fabric contributors. All rights reserved. 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | // Package protos contains the protobuf and gRPC service bindings for 5 | // Hyperledger Fabric Ledger 2.0. 6 | package protos 7 | -------------------------------------------------------------------------------- /contract/common_messages.pb.go: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: Apache-2.0 2 | 3 | // Code generated by protoc-gen-go. DO NOT EDIT. 4 | // versions: 5 | // protoc-gen-go v1.25.0-devel 6 | // protoc v3.12.1 7 | // source: common_messages.proto 8 | 9 | package contract 10 | 11 | import ( 12 | proto "github.com/golang/protobuf/proto" 13 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 | reflect "reflect" 16 | sync "sync" 17 | ) 18 | 19 | const ( 20 | // Verify that this generated code is sufficiently up-to-date. 21 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 | // Verify that runtime/protoimpl is sufficiently up-to-date. 23 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 | ) 25 | 26 | // This is a compile-time assertion that a sufficiently up-to-date version 27 | // of the legacy proto package is being used. 28 | const _ = proto.ProtoPackageIsVersion4 29 | 30 | type TransactionContext struct { 31 | state protoimpl.MessageState 32 | sizeCache protoimpl.SizeCache 33 | unknownFields protoimpl.UnknownFields 34 | 35 | ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` 36 | TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` 37 | } 38 | 39 | func (x *TransactionContext) Reset() { 40 | *x = TransactionContext{} 41 | if protoimpl.UnsafeEnabled { 42 | mi := &file_common_messages_proto_msgTypes[0] 43 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 44 | ms.StoreMessageInfo(mi) 45 | } 46 | } 47 | 48 | func (x *TransactionContext) String() string { 49 | return protoimpl.X.MessageStringOf(x) 50 | } 51 | 52 | func (*TransactionContext) ProtoMessage() {} 53 | 54 | func (x *TransactionContext) ProtoReflect() protoreflect.Message { 55 | mi := &file_common_messages_proto_msgTypes[0] 56 | if protoimpl.UnsafeEnabled && x != nil { 57 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 | if ms.LoadMessageInfo() == nil { 59 | ms.StoreMessageInfo(mi) 60 | } 61 | return ms 62 | } 63 | return mi.MessageOf(x) 64 | } 65 | 66 | // Deprecated: Use TransactionContext.ProtoReflect.Descriptor instead. 67 | func (*TransactionContext) Descriptor() ([]byte, []int) { 68 | return file_common_messages_proto_rawDescGZIP(), []int{0} 69 | } 70 | 71 | func (x *TransactionContext) GetChannelId() string { 72 | if x != nil { 73 | return x.ChannelId 74 | } 75 | return "" 76 | } 77 | 78 | func (x *TransactionContext) GetTransactionId() string { 79 | if x != nil { 80 | return x.TransactionId 81 | } 82 | return "" 83 | } 84 | 85 | var File_common_messages_proto protoreflect.FileDescriptor 86 | 87 | var file_common_messages_proto_rawDesc = []byte{ 88 | 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 89 | 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 90 | 0x74, 0x22, 0x5a, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 91 | 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, 92 | 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 93 | 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 94 | 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 95 | 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x42, 0x45, 0x5a, 96 | 0x43, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 97 | 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x6e, 0x64, 98 | 0x61, 0x72, 0x79, 0x2f, 0x66, 0x61, 0x62, 0x72, 0x69, 0x63, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 99 | 0x72, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2d, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 100 | 0x72, 0x61, 0x63, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 101 | } 102 | 103 | var ( 104 | file_common_messages_proto_rawDescOnce sync.Once 105 | file_common_messages_proto_rawDescData = file_common_messages_proto_rawDesc 106 | ) 107 | 108 | func file_common_messages_proto_rawDescGZIP() []byte { 109 | file_common_messages_proto_rawDescOnce.Do(func() { 110 | file_common_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_messages_proto_rawDescData) 111 | }) 112 | return file_common_messages_proto_rawDescData 113 | } 114 | 115 | var file_common_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 116 | var file_common_messages_proto_goTypes = []interface{}{ 117 | (*TransactionContext)(nil), // 0: contract.TransactionContext 118 | } 119 | var file_common_messages_proto_depIdxs = []int32{ 120 | 0, // [0:0] is the sub-list for method output_type 121 | 0, // [0:0] is the sub-list for method input_type 122 | 0, // [0:0] is the sub-list for extension type_name 123 | 0, // [0:0] is the sub-list for extension extendee 124 | 0, // [0:0] is the sub-list for field type_name 125 | } 126 | 127 | func init() { file_common_messages_proto_init() } 128 | func file_common_messages_proto_init() { 129 | if File_common_messages_proto != nil { 130 | return 131 | } 132 | if !protoimpl.UnsafeEnabled { 133 | file_common_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 134 | switch v := v.(*TransactionContext); i { 135 | case 0: 136 | return &v.state 137 | case 1: 138 | return &v.sizeCache 139 | case 2: 140 | return &v.unknownFields 141 | default: 142 | return nil 143 | } 144 | } 145 | } 146 | type x struct{} 147 | out := protoimpl.TypeBuilder{ 148 | File: protoimpl.DescBuilder{ 149 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 150 | RawDescriptor: file_common_messages_proto_rawDesc, 151 | NumEnums: 0, 152 | NumMessages: 1, 153 | NumExtensions: 0, 154 | NumServices: 0, 155 | }, 156 | GoTypes: file_common_messages_proto_goTypes, 157 | DependencyIndexes: file_common_messages_proto_depIdxs, 158 | MessageInfos: file_common_messages_proto_msgTypes, 159 | }.Build() 160 | File_common_messages_proto = out.File 161 | file_common_messages_proto_rawDesc = nil 162 | file_common_messages_proto_goTypes = nil 163 | file_common_messages_proto_depIdxs = nil 164 | } 165 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /contract/contract_messages.pb.go: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: Apache-2.0 2 | 3 | // Code generated by protoc-gen-go. DO NOT EDIT. 4 | // versions: 5 | // protoc-gen-go v1.25.0-devel 6 | // protoc v3.12.1 7 | // source: contract_messages.proto 8 | 9 | package contract 10 | 11 | import ( 12 | proto "github.com/golang/protobuf/proto" 13 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 | reflect "reflect" 16 | sync "sync" 17 | ) 18 | 19 | const ( 20 | // Verify that this generated code is sufficiently up-to-date. 21 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 | // Verify that runtime/protoimpl is sufficiently up-to-date. 23 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 | ) 25 | 26 | // This is a compile-time assertion that a sufficiently up-to-date version 27 | // of the legacy proto package is being used. 28 | const _ = proto.ProtoPackageIsVersion4 29 | 30 | type GetMetadataRequest struct { 31 | state protoimpl.MessageState 32 | sizeCache protoimpl.SizeCache 33 | unknownFields protoimpl.UnknownFields 34 | } 35 | 36 | func (x *GetMetadataRequest) Reset() { 37 | *x = GetMetadataRequest{} 38 | if protoimpl.UnsafeEnabled { 39 | mi := &file_contract_messages_proto_msgTypes[0] 40 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 41 | ms.StoreMessageInfo(mi) 42 | } 43 | } 44 | 45 | func (x *GetMetadataRequest) String() string { 46 | return protoimpl.X.MessageStringOf(x) 47 | } 48 | 49 | func (*GetMetadataRequest) ProtoMessage() {} 50 | 51 | func (x *GetMetadataRequest) ProtoReflect() protoreflect.Message { 52 | mi := &file_contract_messages_proto_msgTypes[0] 53 | if protoimpl.UnsafeEnabled && x != nil { 54 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 55 | if ms.LoadMessageInfo() == nil { 56 | ms.StoreMessageInfo(mi) 57 | } 58 | return ms 59 | } 60 | return mi.MessageOf(x) 61 | } 62 | 63 | // Deprecated: Use GetMetadataRequest.ProtoReflect.Descriptor instead. 64 | func (*GetMetadataRequest) Descriptor() ([]byte, []int) { 65 | return file_contract_messages_proto_rawDescGZIP(), []int{0} 66 | } 67 | 68 | type GetMetadataResponse struct { 69 | state protoimpl.MessageState 70 | sizeCache protoimpl.SizeCache 71 | unknownFields protoimpl.UnknownFields 72 | 73 | Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 74 | } 75 | 76 | func (x *GetMetadataResponse) Reset() { 77 | *x = GetMetadataResponse{} 78 | if protoimpl.UnsafeEnabled { 79 | mi := &file_contract_messages_proto_msgTypes[1] 80 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 81 | ms.StoreMessageInfo(mi) 82 | } 83 | } 84 | 85 | func (x *GetMetadataResponse) String() string { 86 | return protoimpl.X.MessageStringOf(x) 87 | } 88 | 89 | func (*GetMetadataResponse) ProtoMessage() {} 90 | 91 | func (x *GetMetadataResponse) ProtoReflect() protoreflect.Message { 92 | mi := &file_contract_messages_proto_msgTypes[1] 93 | if protoimpl.UnsafeEnabled && x != nil { 94 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 95 | if ms.LoadMessageInfo() == nil { 96 | ms.StoreMessageInfo(mi) 97 | } 98 | return ms 99 | } 100 | return mi.MessageOf(x) 101 | } 102 | 103 | // Deprecated: Use GetMetadataResponse.ProtoReflect.Descriptor instead. 104 | func (*GetMetadataResponse) Descriptor() ([]byte, []int) { 105 | return file_contract_messages_proto_rawDescGZIP(), []int{1} 106 | } 107 | 108 | func (x *GetMetadataResponse) GetPayload() []byte { 109 | if x != nil { 110 | return x.Payload 111 | } 112 | return nil 113 | } 114 | 115 | type InvokeTransactionRequest struct { 116 | state protoimpl.MessageState 117 | sizeCache protoimpl.SizeCache 118 | unknownFields protoimpl.UnknownFields 119 | 120 | Context *TransactionContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` 121 | TransactionName string `protobuf:"bytes,2,opt,name=transaction_name,json=transactionName,proto3" json:"transaction_name,omitempty"` 122 | Args [][]byte `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` 123 | TransientArgs map[string][]byte `protobuf:"bytes,4,rep,name=transient_args,json=transientArgs,proto3" json:"transient_args,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 124 | } 125 | 126 | func (x *InvokeTransactionRequest) Reset() { 127 | *x = InvokeTransactionRequest{} 128 | if protoimpl.UnsafeEnabled { 129 | mi := &file_contract_messages_proto_msgTypes[2] 130 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 131 | ms.StoreMessageInfo(mi) 132 | } 133 | } 134 | 135 | func (x *InvokeTransactionRequest) String() string { 136 | return protoimpl.X.MessageStringOf(x) 137 | } 138 | 139 | func (*InvokeTransactionRequest) ProtoMessage() {} 140 | 141 | func (x *InvokeTransactionRequest) ProtoReflect() protoreflect.Message { 142 | mi := &file_contract_messages_proto_msgTypes[2] 143 | if protoimpl.UnsafeEnabled && x != nil { 144 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 145 | if ms.LoadMessageInfo() == nil { 146 | ms.StoreMessageInfo(mi) 147 | } 148 | return ms 149 | } 150 | return mi.MessageOf(x) 151 | } 152 | 153 | // Deprecated: Use InvokeTransactionRequest.ProtoReflect.Descriptor instead. 154 | func (*InvokeTransactionRequest) Descriptor() ([]byte, []int) { 155 | return file_contract_messages_proto_rawDescGZIP(), []int{2} 156 | } 157 | 158 | func (x *InvokeTransactionRequest) GetContext() *TransactionContext { 159 | if x != nil { 160 | return x.Context 161 | } 162 | return nil 163 | } 164 | 165 | func (x *InvokeTransactionRequest) GetTransactionName() string { 166 | if x != nil { 167 | return x.TransactionName 168 | } 169 | return "" 170 | } 171 | 172 | func (x *InvokeTransactionRequest) GetArgs() [][]byte { 173 | if x != nil { 174 | return x.Args 175 | } 176 | return nil 177 | } 178 | 179 | func (x *InvokeTransactionRequest) GetTransientArgs() map[string][]byte { 180 | if x != nil { 181 | return x.TransientArgs 182 | } 183 | return nil 184 | } 185 | 186 | type InvokeTransactionResponse struct { 187 | state protoimpl.MessageState 188 | sizeCache protoimpl.SizeCache 189 | unknownFields protoimpl.UnknownFields 190 | 191 | Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 192 | } 193 | 194 | func (x *InvokeTransactionResponse) Reset() { 195 | *x = InvokeTransactionResponse{} 196 | if protoimpl.UnsafeEnabled { 197 | mi := &file_contract_messages_proto_msgTypes[3] 198 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 199 | ms.StoreMessageInfo(mi) 200 | } 201 | } 202 | 203 | func (x *InvokeTransactionResponse) String() string { 204 | return protoimpl.X.MessageStringOf(x) 205 | } 206 | 207 | func (*InvokeTransactionResponse) ProtoMessage() {} 208 | 209 | func (x *InvokeTransactionResponse) ProtoReflect() protoreflect.Message { 210 | mi := &file_contract_messages_proto_msgTypes[3] 211 | if protoimpl.UnsafeEnabled && x != nil { 212 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 213 | if ms.LoadMessageInfo() == nil { 214 | ms.StoreMessageInfo(mi) 215 | } 216 | return ms 217 | } 218 | return mi.MessageOf(x) 219 | } 220 | 221 | // Deprecated: Use InvokeTransactionResponse.ProtoReflect.Descriptor instead. 222 | func (*InvokeTransactionResponse) Descriptor() ([]byte, []int) { 223 | return file_contract_messages_proto_rawDescGZIP(), []int{3} 224 | } 225 | 226 | func (x *InvokeTransactionResponse) GetPayload() []byte { 227 | if x != nil { 228 | return x.Payload 229 | } 230 | return nil 231 | } 232 | 233 | type InvokeTransactionError struct { 234 | state protoimpl.MessageState 235 | sizeCache protoimpl.SizeCache 236 | unknownFields protoimpl.UnknownFields 237 | 238 | Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 239 | Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 240 | } 241 | 242 | func (x *InvokeTransactionError) Reset() { 243 | *x = InvokeTransactionError{} 244 | if protoimpl.UnsafeEnabled { 245 | mi := &file_contract_messages_proto_msgTypes[4] 246 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 247 | ms.StoreMessageInfo(mi) 248 | } 249 | } 250 | 251 | func (x *InvokeTransactionError) String() string { 252 | return protoimpl.X.MessageStringOf(x) 253 | } 254 | 255 | func (*InvokeTransactionError) ProtoMessage() {} 256 | 257 | func (x *InvokeTransactionError) ProtoReflect() protoreflect.Message { 258 | mi := &file_contract_messages_proto_msgTypes[4] 259 | if protoimpl.UnsafeEnabled && x != nil { 260 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 261 | if ms.LoadMessageInfo() == nil { 262 | ms.StoreMessageInfo(mi) 263 | } 264 | return ms 265 | } 266 | return mi.MessageOf(x) 267 | } 268 | 269 | // Deprecated: Use InvokeTransactionError.ProtoReflect.Descriptor instead. 270 | func (*InvokeTransactionError) Descriptor() ([]byte, []int) { 271 | return file_contract_messages_proto_rawDescGZIP(), []int{4} 272 | } 273 | 274 | func (x *InvokeTransactionError) GetCode() int32 { 275 | if x != nil { 276 | return x.Code 277 | } 278 | return 0 279 | } 280 | 281 | func (x *InvokeTransactionError) GetMessage() string { 282 | if x != nil { 283 | return x.Message 284 | } 285 | return "" 286 | } 287 | 288 | // This is going to need TLS settings and client CA stuff... 289 | type RegisterPeerRequest struct { 290 | state protoimpl.MessageState 291 | sizeCache protoimpl.SizeCache 292 | unknownFields protoimpl.UnknownFields 293 | 294 | PeerAddress string `protobuf:"bytes,1,opt,name=peer_address,json=peerAddress,proto3" json:"peer_address,omitempty"` 295 | PeerPort string `protobuf:"bytes,2,opt,name=peer_port,json=peerPort,proto3" json:"peer_port,omitempty"` 296 | } 297 | 298 | func (x *RegisterPeerRequest) Reset() { 299 | *x = RegisterPeerRequest{} 300 | if protoimpl.UnsafeEnabled { 301 | mi := &file_contract_messages_proto_msgTypes[5] 302 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 303 | ms.StoreMessageInfo(mi) 304 | } 305 | } 306 | 307 | func (x *RegisterPeerRequest) String() string { 308 | return protoimpl.X.MessageStringOf(x) 309 | } 310 | 311 | func (*RegisterPeerRequest) ProtoMessage() {} 312 | 313 | func (x *RegisterPeerRequest) ProtoReflect() protoreflect.Message { 314 | mi := &file_contract_messages_proto_msgTypes[5] 315 | if protoimpl.UnsafeEnabled && x != nil { 316 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 317 | if ms.LoadMessageInfo() == nil { 318 | ms.StoreMessageInfo(mi) 319 | } 320 | return ms 321 | } 322 | return mi.MessageOf(x) 323 | } 324 | 325 | // Deprecated: Use RegisterPeerRequest.ProtoReflect.Descriptor instead. 326 | func (*RegisterPeerRequest) Descriptor() ([]byte, []int) { 327 | return file_contract_messages_proto_rawDescGZIP(), []int{5} 328 | } 329 | 330 | func (x *RegisterPeerRequest) GetPeerAddress() string { 331 | if x != nil { 332 | return x.PeerAddress 333 | } 334 | return "" 335 | } 336 | 337 | func (x *RegisterPeerRequest) GetPeerPort() string { 338 | if x != nil { 339 | return x.PeerPort 340 | } 341 | return "" 342 | } 343 | 344 | type RegisterPeerResponse struct { 345 | state protoimpl.MessageState 346 | sizeCache protoimpl.SizeCache 347 | unknownFields protoimpl.UnknownFields 348 | } 349 | 350 | func (x *RegisterPeerResponse) Reset() { 351 | *x = RegisterPeerResponse{} 352 | if protoimpl.UnsafeEnabled { 353 | mi := &file_contract_messages_proto_msgTypes[6] 354 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 355 | ms.StoreMessageInfo(mi) 356 | } 357 | } 358 | 359 | func (x *RegisterPeerResponse) String() string { 360 | return protoimpl.X.MessageStringOf(x) 361 | } 362 | 363 | func (*RegisterPeerResponse) ProtoMessage() {} 364 | 365 | func (x *RegisterPeerResponse) ProtoReflect() protoreflect.Message { 366 | mi := &file_contract_messages_proto_msgTypes[6] 367 | if protoimpl.UnsafeEnabled && x != nil { 368 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 369 | if ms.LoadMessageInfo() == nil { 370 | ms.StoreMessageInfo(mi) 371 | } 372 | return ms 373 | } 374 | return mi.MessageOf(x) 375 | } 376 | 377 | // Deprecated: Use RegisterPeerResponse.ProtoReflect.Descriptor instead. 378 | func (*RegisterPeerResponse) Descriptor() ([]byte, []int) { 379 | return file_contract_messages_proto_rawDescGZIP(), []int{6} 380 | } 381 | 382 | var File_contract_messages_proto protoreflect.FileDescriptor 383 | 384 | var file_contract_messages_proto_rawDesc = []byte{ 385 | 0x0a, 0x17, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 386 | 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 387 | 0x61, 0x63, 0x74, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 388 | 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x47, 0x65, 389 | 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 390 | 0x22, 0x2f, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 391 | 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 392 | 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 393 | 0x64, 0x22, 0xb1, 0x02, 0x0a, 0x18, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x54, 0x72, 0x61, 0x6e, 394 | 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 395 | 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 396 | 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 397 | 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 398 | 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 399 | 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 400 | 0x52, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 401 | 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 402 | 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x5c, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 403 | 0x6e, 0x74, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 404 | 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x54, 405 | 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 406 | 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x72, 0x67, 0x73, 0x45, 407 | 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x41, 408 | 0x72, 0x67, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 409 | 0x41, 0x72, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 410 | 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 411 | 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 412 | 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x35, 0x0a, 0x19, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x54, 413 | 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 414 | 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 415 | 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x46, 0x0a, 0x16, 416 | 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 417 | 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 418 | 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 419 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 420 | 0x73, 0x61, 0x67, 0x65, 0x22, 0x55, 0x0a, 0x13, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 421 | 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 422 | 0x65, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 423 | 0x09, 0x52, 0x0b, 0x70, 0x65, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 424 | 0x0a, 0x09, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 425 | 0x09, 0x52, 0x08, 0x70, 0x65, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x16, 0x0a, 0x14, 0x52, 426 | 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 427 | 0x6e, 0x73, 0x65, 0x42, 0x45, 0x5a, 0x43, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 428 | 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 429 | 0x65, 0x64, 0x67, 0x65, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x2f, 0x66, 0x61, 0x62, 0x72, 0x69, 0x63, 430 | 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2d, 0x67, 431 | 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 432 | 0x6f, 0x33, 433 | } 434 | 435 | var ( 436 | file_contract_messages_proto_rawDescOnce sync.Once 437 | file_contract_messages_proto_rawDescData = file_contract_messages_proto_rawDesc 438 | ) 439 | 440 | func file_contract_messages_proto_rawDescGZIP() []byte { 441 | file_contract_messages_proto_rawDescOnce.Do(func() { 442 | file_contract_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_contract_messages_proto_rawDescData) 443 | }) 444 | return file_contract_messages_proto_rawDescData 445 | } 446 | 447 | var file_contract_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 8) 448 | var file_contract_messages_proto_goTypes = []interface{}{ 449 | (*GetMetadataRequest)(nil), // 0: contract.GetMetadataRequest 450 | (*GetMetadataResponse)(nil), // 1: contract.GetMetadataResponse 451 | (*InvokeTransactionRequest)(nil), // 2: contract.InvokeTransactionRequest 452 | (*InvokeTransactionResponse)(nil), // 3: contract.InvokeTransactionResponse 453 | (*InvokeTransactionError)(nil), // 4: contract.InvokeTransactionError 454 | (*RegisterPeerRequest)(nil), // 5: contract.RegisterPeerRequest 455 | (*RegisterPeerResponse)(nil), // 6: contract.RegisterPeerResponse 456 | nil, // 7: contract.InvokeTransactionRequest.TransientArgsEntry 457 | (*TransactionContext)(nil), // 8: contract.TransactionContext 458 | } 459 | var file_contract_messages_proto_depIdxs = []int32{ 460 | 8, // 0: contract.InvokeTransactionRequest.context:type_name -> contract.TransactionContext 461 | 7, // 1: contract.InvokeTransactionRequest.transient_args:type_name -> contract.InvokeTransactionRequest.TransientArgsEntry 462 | 2, // [2:2] is the sub-list for method output_type 463 | 2, // [2:2] is the sub-list for method input_type 464 | 2, // [2:2] is the sub-list for extension type_name 465 | 2, // [2:2] is the sub-list for extension extendee 466 | 0, // [0:2] is the sub-list for field type_name 467 | } 468 | 469 | func init() { file_contract_messages_proto_init() } 470 | func file_contract_messages_proto_init() { 471 | if File_contract_messages_proto != nil { 472 | return 473 | } 474 | file_common_messages_proto_init() 475 | if !protoimpl.UnsafeEnabled { 476 | file_contract_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 477 | switch v := v.(*GetMetadataRequest); i { 478 | case 0: 479 | return &v.state 480 | case 1: 481 | return &v.sizeCache 482 | case 2: 483 | return &v.unknownFields 484 | default: 485 | return nil 486 | } 487 | } 488 | file_contract_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 489 | switch v := v.(*GetMetadataResponse); i { 490 | case 0: 491 | return &v.state 492 | case 1: 493 | return &v.sizeCache 494 | case 2: 495 | return &v.unknownFields 496 | default: 497 | return nil 498 | } 499 | } 500 | file_contract_messages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 501 | switch v := v.(*InvokeTransactionRequest); i { 502 | case 0: 503 | return &v.state 504 | case 1: 505 | return &v.sizeCache 506 | case 2: 507 | return &v.unknownFields 508 | default: 509 | return nil 510 | } 511 | } 512 | file_contract_messages_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 513 | switch v := v.(*InvokeTransactionResponse); i { 514 | case 0: 515 | return &v.state 516 | case 1: 517 | return &v.sizeCache 518 | case 2: 519 | return &v.unknownFields 520 | default: 521 | return nil 522 | } 523 | } 524 | file_contract_messages_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 525 | switch v := v.(*InvokeTransactionError); i { 526 | case 0: 527 | return &v.state 528 | case 1: 529 | return &v.sizeCache 530 | case 2: 531 | return &v.unknownFields 532 | default: 533 | return nil 534 | } 535 | } 536 | file_contract_messages_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 537 | switch v := v.(*RegisterPeerRequest); i { 538 | case 0: 539 | return &v.state 540 | case 1: 541 | return &v.sizeCache 542 | case 2: 543 | return &v.unknownFields 544 | default: 545 | return nil 546 | } 547 | } 548 | file_contract_messages_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 549 | switch v := v.(*RegisterPeerResponse); i { 550 | case 0: 551 | return &v.state 552 | case 1: 553 | return &v.sizeCache 554 | case 2: 555 | return &v.unknownFields 556 | default: 557 | return nil 558 | } 559 | } 560 | } 561 | type x struct{} 562 | out := protoimpl.TypeBuilder{ 563 | File: protoimpl.DescBuilder{ 564 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 565 | RawDescriptor: file_contract_messages_proto_rawDesc, 566 | NumEnums: 0, 567 | NumMessages: 8, 568 | NumExtensions: 0, 569 | NumServices: 0, 570 | }, 571 | GoTypes: file_contract_messages_proto_goTypes, 572 | DependencyIndexes: file_contract_messages_proto_depIdxs, 573 | MessageInfos: file_contract_messages_proto_msgTypes, 574 | }.Build() 575 | File_contract_messages_proto = out.File 576 | file_contract_messages_proto_rawDesc = nil 577 | file_contract_messages_proto_goTypes = nil 578 | file_contract_messages_proto_depIdxs = nil 579 | } 580 | -------------------------------------------------------------------------------- /contract/ledger_messages.pb.go: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: Apache-2.0 2 | 3 | // Code generated by protoc-gen-go. DO NOT EDIT. 4 | // versions: 5 | // protoc-gen-go v1.25.0-devel 6 | // protoc v3.12.1 7 | // source: ledger_messages.proto 8 | 9 | package contract 10 | 11 | import ( 12 | proto "github.com/golang/protobuf/proto" 13 | timestamp "github.com/golang/protobuf/ptypes/timestamp" 14 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 | reflect "reflect" 17 | sync "sync" 18 | ) 19 | 20 | const ( 21 | // Verify that this generated code is sufficiently up-to-date. 22 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 | // Verify that runtime/protoimpl is sufficiently up-to-date. 24 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 | ) 26 | 27 | // This is a compile-time assertion that a sufficiently up-to-date version 28 | // of the legacy proto package is being used. 29 | const _ = proto.ProtoPackageIsVersion4 30 | 31 | type EndorsementPrincipal_Role int32 32 | 33 | const ( 34 | EndorsementPrincipal_MEMBER EndorsementPrincipal_Role = 0 35 | EndorsementPrincipal_ADMIN EndorsementPrincipal_Role = 1 36 | EndorsementPrincipal_CLIENT EndorsementPrincipal_Role = 2 37 | EndorsementPrincipal_PEER EndorsementPrincipal_Role = 3 38 | ) 39 | 40 | // Enum value maps for EndorsementPrincipal_Role. 41 | var ( 42 | EndorsementPrincipal_Role_name = map[int32]string{ 43 | 0: "MEMBER", 44 | 1: "ADMIN", 45 | 2: "CLIENT", 46 | 3: "PEER", 47 | } 48 | EndorsementPrincipal_Role_value = map[string]int32{ 49 | "MEMBER": 0, 50 | "ADMIN": 1, 51 | "CLIENT": 2, 52 | "PEER": 3, 53 | } 54 | ) 55 | 56 | func (x EndorsementPrincipal_Role) Enum() *EndorsementPrincipal_Role { 57 | p := new(EndorsementPrincipal_Role) 58 | *p = x 59 | return p 60 | } 61 | 62 | func (x EndorsementPrincipal_Role) String() string { 63 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 64 | } 65 | 66 | func (EndorsementPrincipal_Role) Descriptor() protoreflect.EnumDescriptor { 67 | return file_ledger_messages_proto_enumTypes[0].Descriptor() 68 | } 69 | 70 | func (EndorsementPrincipal_Role) Type() protoreflect.EnumType { 71 | return &file_ledger_messages_proto_enumTypes[0] 72 | } 73 | 74 | func (x EndorsementPrincipal_Role) Number() protoreflect.EnumNumber { 75 | return protoreflect.EnumNumber(x) 76 | } 77 | 78 | // Deprecated: Use EndorsementPrincipal_Role.Descriptor instead. 79 | func (EndorsementPrincipal_Role) EnumDescriptor() ([]byte, []int) { 80 | return file_ledger_messages_proto_rawDescGZIP(), []int{19, 0} 81 | } 82 | 83 | type Collection struct { 84 | state protoimpl.MessageState 85 | sizeCache protoimpl.SizeCache 86 | unknownFields protoimpl.UnknownFields 87 | 88 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 89 | } 90 | 91 | func (x *Collection) Reset() { 92 | *x = Collection{} 93 | if protoimpl.UnsafeEnabled { 94 | mi := &file_ledger_messages_proto_msgTypes[0] 95 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 96 | ms.StoreMessageInfo(mi) 97 | } 98 | } 99 | 100 | func (x *Collection) String() string { 101 | return protoimpl.X.MessageStringOf(x) 102 | } 103 | 104 | func (*Collection) ProtoMessage() {} 105 | 106 | func (x *Collection) ProtoReflect() protoreflect.Message { 107 | mi := &file_ledger_messages_proto_msgTypes[0] 108 | if protoimpl.UnsafeEnabled && x != nil { 109 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 110 | if ms.LoadMessageInfo() == nil { 111 | ms.StoreMessageInfo(mi) 112 | } 113 | return ms 114 | } 115 | return mi.MessageOf(x) 116 | } 117 | 118 | // Deprecated: Use Collection.ProtoReflect.Descriptor instead. 119 | func (*Collection) Descriptor() ([]byte, []int) { 120 | return file_ledger_messages_proto_rawDescGZIP(), []int{0} 121 | } 122 | 123 | func (x *Collection) GetName() string { 124 | if x != nil { 125 | return x.Name 126 | } 127 | return "" 128 | } 129 | 130 | type State struct { 131 | state protoimpl.MessageState 132 | sizeCache protoimpl.SizeCache 133 | unknownFields protoimpl.UnknownFields 134 | 135 | Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 136 | Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 137 | } 138 | 139 | func (x *State) Reset() { 140 | *x = State{} 141 | if protoimpl.UnsafeEnabled { 142 | mi := &file_ledger_messages_proto_msgTypes[1] 143 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 144 | ms.StoreMessageInfo(mi) 145 | } 146 | } 147 | 148 | func (x *State) String() string { 149 | return protoimpl.X.MessageStringOf(x) 150 | } 151 | 152 | func (*State) ProtoMessage() {} 153 | 154 | func (x *State) ProtoReflect() protoreflect.Message { 155 | mi := &file_ledger_messages_proto_msgTypes[1] 156 | if protoimpl.UnsafeEnabled && x != nil { 157 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 158 | if ms.LoadMessageInfo() == nil { 159 | ms.StoreMessageInfo(mi) 160 | } 161 | return ms 162 | } 163 | return mi.MessageOf(x) 164 | } 165 | 166 | // Deprecated: Use State.ProtoReflect.Descriptor instead. 167 | func (*State) Descriptor() ([]byte, []int) { 168 | return file_ledger_messages_proto_rawDescGZIP(), []int{1} 169 | } 170 | 171 | func (x *State) GetKey() string { 172 | if x != nil { 173 | return x.Key 174 | } 175 | return "" 176 | } 177 | 178 | func (x *State) GetValue() []byte { 179 | if x != nil { 180 | return x.Value 181 | } 182 | return nil 183 | } 184 | 185 | type StateHistory struct { 186 | state protoimpl.MessageState 187 | sizeCache protoimpl.SizeCache 188 | unknownFields protoimpl.UnknownFields 189 | 190 | Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 191 | Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 192 | TransactionId string `protobuf:"bytes,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` 193 | Timestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 194 | IsDelete bool `protobuf:"varint,5,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"` 195 | } 196 | 197 | func (x *StateHistory) Reset() { 198 | *x = StateHistory{} 199 | if protoimpl.UnsafeEnabled { 200 | mi := &file_ledger_messages_proto_msgTypes[2] 201 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 202 | ms.StoreMessageInfo(mi) 203 | } 204 | } 205 | 206 | func (x *StateHistory) String() string { 207 | return protoimpl.X.MessageStringOf(x) 208 | } 209 | 210 | func (*StateHistory) ProtoMessage() {} 211 | 212 | func (x *StateHistory) ProtoReflect() protoreflect.Message { 213 | mi := &file_ledger_messages_proto_msgTypes[2] 214 | if protoimpl.UnsafeEnabled && x != nil { 215 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 216 | if ms.LoadMessageInfo() == nil { 217 | ms.StoreMessageInfo(mi) 218 | } 219 | return ms 220 | } 221 | return mi.MessageOf(x) 222 | } 223 | 224 | // Deprecated: Use StateHistory.ProtoReflect.Descriptor instead. 225 | func (*StateHistory) Descriptor() ([]byte, []int) { 226 | return file_ledger_messages_proto_rawDescGZIP(), []int{2} 227 | } 228 | 229 | func (x *StateHistory) GetKey() string { 230 | if x != nil { 231 | return x.Key 232 | } 233 | return "" 234 | } 235 | 236 | func (x *StateHistory) GetValue() []byte { 237 | if x != nil { 238 | return x.Value 239 | } 240 | return nil 241 | } 242 | 243 | func (x *StateHistory) GetTransactionId() string { 244 | if x != nil { 245 | return x.TransactionId 246 | } 247 | return "" 248 | } 249 | 250 | func (x *StateHistory) GetTimestamp() *timestamp.Timestamp { 251 | if x != nil { 252 | return x.Timestamp 253 | } 254 | return nil 255 | } 256 | 257 | func (x *StateHistory) GetIsDelete() bool { 258 | if x != nil { 259 | return x.IsDelete 260 | } 261 | return false 262 | } 263 | 264 | type KeyRangeQuery struct { 265 | state protoimpl.MessageState 266 | sizeCache protoimpl.SizeCache 267 | unknownFields protoimpl.UnknownFields 268 | 269 | StartKey string `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` 270 | EndKey string `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` 271 | } 272 | 273 | func (x *KeyRangeQuery) Reset() { 274 | *x = KeyRangeQuery{} 275 | if protoimpl.UnsafeEnabled { 276 | mi := &file_ledger_messages_proto_msgTypes[3] 277 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 278 | ms.StoreMessageInfo(mi) 279 | } 280 | } 281 | 282 | func (x *KeyRangeQuery) String() string { 283 | return protoimpl.X.MessageStringOf(x) 284 | } 285 | 286 | func (*KeyRangeQuery) ProtoMessage() {} 287 | 288 | func (x *KeyRangeQuery) ProtoReflect() protoreflect.Message { 289 | mi := &file_ledger_messages_proto_msgTypes[3] 290 | if protoimpl.UnsafeEnabled && x != nil { 291 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 292 | if ms.LoadMessageInfo() == nil { 293 | ms.StoreMessageInfo(mi) 294 | } 295 | return ms 296 | } 297 | return mi.MessageOf(x) 298 | } 299 | 300 | // Deprecated: Use KeyRangeQuery.ProtoReflect.Descriptor instead. 301 | func (*KeyRangeQuery) Descriptor() ([]byte, []int) { 302 | return file_ledger_messages_proto_rawDescGZIP(), []int{3} 303 | } 304 | 305 | func (x *KeyRangeQuery) GetStartKey() string { 306 | if x != nil { 307 | return x.StartKey 308 | } 309 | return "" 310 | } 311 | 312 | func (x *KeyRangeQuery) GetEndKey() string { 313 | if x != nil { 314 | return x.EndKey 315 | } 316 | return "" 317 | } 318 | 319 | type RichQuery struct { 320 | state protoimpl.MessageState 321 | sizeCache protoimpl.SizeCache 322 | unknownFields protoimpl.UnknownFields 323 | } 324 | 325 | func (x *RichQuery) Reset() { 326 | *x = RichQuery{} 327 | if protoimpl.UnsafeEnabled { 328 | mi := &file_ledger_messages_proto_msgTypes[4] 329 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 330 | ms.StoreMessageInfo(mi) 331 | } 332 | } 333 | 334 | func (x *RichQuery) String() string { 335 | return protoimpl.X.MessageStringOf(x) 336 | } 337 | 338 | func (*RichQuery) ProtoMessage() {} 339 | 340 | func (x *RichQuery) ProtoReflect() protoreflect.Message { 341 | mi := &file_ledger_messages_proto_msgTypes[4] 342 | if protoimpl.UnsafeEnabled && x != nil { 343 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 344 | if ms.LoadMessageInfo() == nil { 345 | ms.StoreMessageInfo(mi) 346 | } 347 | return ms 348 | } 349 | return mi.MessageOf(x) 350 | } 351 | 352 | // Deprecated: Use RichQuery.ProtoReflect.Descriptor instead. 353 | func (*RichQuery) Descriptor() ([]byte, []int) { 354 | return file_ledger_messages_proto_rawDescGZIP(), []int{4} 355 | } 356 | 357 | type CreateStateRequest struct { 358 | state protoimpl.MessageState 359 | sizeCache protoimpl.SizeCache 360 | unknownFields protoimpl.UnknownFields 361 | 362 | Context *TransactionContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` 363 | Collection *Collection `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 364 | State *State `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` 365 | } 366 | 367 | func (x *CreateStateRequest) Reset() { 368 | *x = CreateStateRequest{} 369 | if protoimpl.UnsafeEnabled { 370 | mi := &file_ledger_messages_proto_msgTypes[5] 371 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 372 | ms.StoreMessageInfo(mi) 373 | } 374 | } 375 | 376 | func (x *CreateStateRequest) String() string { 377 | return protoimpl.X.MessageStringOf(x) 378 | } 379 | 380 | func (*CreateStateRequest) ProtoMessage() {} 381 | 382 | func (x *CreateStateRequest) ProtoReflect() protoreflect.Message { 383 | mi := &file_ledger_messages_proto_msgTypes[5] 384 | if protoimpl.UnsafeEnabled && x != nil { 385 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 386 | if ms.LoadMessageInfo() == nil { 387 | ms.StoreMessageInfo(mi) 388 | } 389 | return ms 390 | } 391 | return mi.MessageOf(x) 392 | } 393 | 394 | // Deprecated: Use CreateStateRequest.ProtoReflect.Descriptor instead. 395 | func (*CreateStateRequest) Descriptor() ([]byte, []int) { 396 | return file_ledger_messages_proto_rawDescGZIP(), []int{5} 397 | } 398 | 399 | func (x *CreateStateRequest) GetContext() *TransactionContext { 400 | if x != nil { 401 | return x.Context 402 | } 403 | return nil 404 | } 405 | 406 | func (x *CreateStateRequest) GetCollection() *Collection { 407 | if x != nil { 408 | return x.Collection 409 | } 410 | return nil 411 | } 412 | 413 | func (x *CreateStateRequest) GetState() *State { 414 | if x != nil { 415 | return x.State 416 | } 417 | return nil 418 | } 419 | 420 | type CreateStateResponse struct { 421 | state protoimpl.MessageState 422 | sizeCache protoimpl.SizeCache 423 | unknownFields protoimpl.UnknownFields 424 | } 425 | 426 | func (x *CreateStateResponse) Reset() { 427 | *x = CreateStateResponse{} 428 | if protoimpl.UnsafeEnabled { 429 | mi := &file_ledger_messages_proto_msgTypes[6] 430 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 431 | ms.StoreMessageInfo(mi) 432 | } 433 | } 434 | 435 | func (x *CreateStateResponse) String() string { 436 | return protoimpl.X.MessageStringOf(x) 437 | } 438 | 439 | func (*CreateStateResponse) ProtoMessage() {} 440 | 441 | func (x *CreateStateResponse) ProtoReflect() protoreflect.Message { 442 | mi := &file_ledger_messages_proto_msgTypes[6] 443 | if protoimpl.UnsafeEnabled && x != nil { 444 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 445 | if ms.LoadMessageInfo() == nil { 446 | ms.StoreMessageInfo(mi) 447 | } 448 | return ms 449 | } 450 | return mi.MessageOf(x) 451 | } 452 | 453 | // Deprecated: Use CreateStateResponse.ProtoReflect.Descriptor instead. 454 | func (*CreateStateResponse) Descriptor() ([]byte, []int) { 455 | return file_ledger_messages_proto_rawDescGZIP(), []int{6} 456 | } 457 | 458 | type ReadStateRequest struct { 459 | state protoimpl.MessageState 460 | sizeCache protoimpl.SizeCache 461 | unknownFields protoimpl.UnknownFields 462 | 463 | Context *TransactionContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` 464 | Collection *Collection `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 465 | StateKey string `protobuf:"bytes,3,opt,name=state_key,json=stateKey,proto3" json:"state_key,omitempty"` 466 | } 467 | 468 | func (x *ReadStateRequest) Reset() { 469 | *x = ReadStateRequest{} 470 | if protoimpl.UnsafeEnabled { 471 | mi := &file_ledger_messages_proto_msgTypes[7] 472 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 473 | ms.StoreMessageInfo(mi) 474 | } 475 | } 476 | 477 | func (x *ReadStateRequest) String() string { 478 | return protoimpl.X.MessageStringOf(x) 479 | } 480 | 481 | func (*ReadStateRequest) ProtoMessage() {} 482 | 483 | func (x *ReadStateRequest) ProtoReflect() protoreflect.Message { 484 | mi := &file_ledger_messages_proto_msgTypes[7] 485 | if protoimpl.UnsafeEnabled && x != nil { 486 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 487 | if ms.LoadMessageInfo() == nil { 488 | ms.StoreMessageInfo(mi) 489 | } 490 | return ms 491 | } 492 | return mi.MessageOf(x) 493 | } 494 | 495 | // Deprecated: Use ReadStateRequest.ProtoReflect.Descriptor instead. 496 | func (*ReadStateRequest) Descriptor() ([]byte, []int) { 497 | return file_ledger_messages_proto_rawDescGZIP(), []int{7} 498 | } 499 | 500 | func (x *ReadStateRequest) GetContext() *TransactionContext { 501 | if x != nil { 502 | return x.Context 503 | } 504 | return nil 505 | } 506 | 507 | func (x *ReadStateRequest) GetCollection() *Collection { 508 | if x != nil { 509 | return x.Collection 510 | } 511 | return nil 512 | } 513 | 514 | func (x *ReadStateRequest) GetStateKey() string { 515 | if x != nil { 516 | return x.StateKey 517 | } 518 | return "" 519 | } 520 | 521 | type ReadStateResponse struct { 522 | state protoimpl.MessageState 523 | sizeCache protoimpl.SizeCache 524 | unknownFields protoimpl.UnknownFields 525 | 526 | State *State `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` 527 | } 528 | 529 | func (x *ReadStateResponse) Reset() { 530 | *x = ReadStateResponse{} 531 | if protoimpl.UnsafeEnabled { 532 | mi := &file_ledger_messages_proto_msgTypes[8] 533 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 534 | ms.StoreMessageInfo(mi) 535 | } 536 | } 537 | 538 | func (x *ReadStateResponse) String() string { 539 | return protoimpl.X.MessageStringOf(x) 540 | } 541 | 542 | func (*ReadStateResponse) ProtoMessage() {} 543 | 544 | func (x *ReadStateResponse) ProtoReflect() protoreflect.Message { 545 | mi := &file_ledger_messages_proto_msgTypes[8] 546 | if protoimpl.UnsafeEnabled && x != nil { 547 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 548 | if ms.LoadMessageInfo() == nil { 549 | ms.StoreMessageInfo(mi) 550 | } 551 | return ms 552 | } 553 | return mi.MessageOf(x) 554 | } 555 | 556 | // Deprecated: Use ReadStateResponse.ProtoReflect.Descriptor instead. 557 | func (*ReadStateResponse) Descriptor() ([]byte, []int) { 558 | return file_ledger_messages_proto_rawDescGZIP(), []int{8} 559 | } 560 | 561 | func (x *ReadStateResponse) GetState() *State { 562 | if x != nil { 563 | return x.State 564 | } 565 | return nil 566 | } 567 | 568 | type UpdateStateRequest struct { 569 | state protoimpl.MessageState 570 | sizeCache protoimpl.SizeCache 571 | unknownFields protoimpl.UnknownFields 572 | 573 | Context *TransactionContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` 574 | Collection *Collection `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 575 | State *State `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` 576 | } 577 | 578 | func (x *UpdateStateRequest) Reset() { 579 | *x = UpdateStateRequest{} 580 | if protoimpl.UnsafeEnabled { 581 | mi := &file_ledger_messages_proto_msgTypes[9] 582 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 583 | ms.StoreMessageInfo(mi) 584 | } 585 | } 586 | 587 | func (x *UpdateStateRequest) String() string { 588 | return protoimpl.X.MessageStringOf(x) 589 | } 590 | 591 | func (*UpdateStateRequest) ProtoMessage() {} 592 | 593 | func (x *UpdateStateRequest) ProtoReflect() protoreflect.Message { 594 | mi := &file_ledger_messages_proto_msgTypes[9] 595 | if protoimpl.UnsafeEnabled && x != nil { 596 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 597 | if ms.LoadMessageInfo() == nil { 598 | ms.StoreMessageInfo(mi) 599 | } 600 | return ms 601 | } 602 | return mi.MessageOf(x) 603 | } 604 | 605 | // Deprecated: Use UpdateStateRequest.ProtoReflect.Descriptor instead. 606 | func (*UpdateStateRequest) Descriptor() ([]byte, []int) { 607 | return file_ledger_messages_proto_rawDescGZIP(), []int{9} 608 | } 609 | 610 | func (x *UpdateStateRequest) GetContext() *TransactionContext { 611 | if x != nil { 612 | return x.Context 613 | } 614 | return nil 615 | } 616 | 617 | func (x *UpdateStateRequest) GetCollection() *Collection { 618 | if x != nil { 619 | return x.Collection 620 | } 621 | return nil 622 | } 623 | 624 | func (x *UpdateStateRequest) GetState() *State { 625 | if x != nil { 626 | return x.State 627 | } 628 | return nil 629 | } 630 | 631 | type UpdateStateResponse struct { 632 | state protoimpl.MessageState 633 | sizeCache protoimpl.SizeCache 634 | unknownFields protoimpl.UnknownFields 635 | } 636 | 637 | func (x *UpdateStateResponse) Reset() { 638 | *x = UpdateStateResponse{} 639 | if protoimpl.UnsafeEnabled { 640 | mi := &file_ledger_messages_proto_msgTypes[10] 641 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 642 | ms.StoreMessageInfo(mi) 643 | } 644 | } 645 | 646 | func (x *UpdateStateResponse) String() string { 647 | return protoimpl.X.MessageStringOf(x) 648 | } 649 | 650 | func (*UpdateStateResponse) ProtoMessage() {} 651 | 652 | func (x *UpdateStateResponse) ProtoReflect() protoreflect.Message { 653 | mi := &file_ledger_messages_proto_msgTypes[10] 654 | if protoimpl.UnsafeEnabled && x != nil { 655 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 656 | if ms.LoadMessageInfo() == nil { 657 | ms.StoreMessageInfo(mi) 658 | } 659 | return ms 660 | } 661 | return mi.MessageOf(x) 662 | } 663 | 664 | // Deprecated: Use UpdateStateResponse.ProtoReflect.Descriptor instead. 665 | func (*UpdateStateResponse) Descriptor() ([]byte, []int) { 666 | return file_ledger_messages_proto_rawDescGZIP(), []int{10} 667 | } 668 | 669 | type DeleteStateRequest struct { 670 | state protoimpl.MessageState 671 | sizeCache protoimpl.SizeCache 672 | unknownFields protoimpl.UnknownFields 673 | 674 | Context *TransactionContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` 675 | Collection *Collection `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 676 | StateKey string `protobuf:"bytes,3,opt,name=state_key,json=stateKey,proto3" json:"state_key,omitempty"` 677 | } 678 | 679 | func (x *DeleteStateRequest) Reset() { 680 | *x = DeleteStateRequest{} 681 | if protoimpl.UnsafeEnabled { 682 | mi := &file_ledger_messages_proto_msgTypes[11] 683 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 684 | ms.StoreMessageInfo(mi) 685 | } 686 | } 687 | 688 | func (x *DeleteStateRequest) String() string { 689 | return protoimpl.X.MessageStringOf(x) 690 | } 691 | 692 | func (*DeleteStateRequest) ProtoMessage() {} 693 | 694 | func (x *DeleteStateRequest) ProtoReflect() protoreflect.Message { 695 | mi := &file_ledger_messages_proto_msgTypes[11] 696 | if protoimpl.UnsafeEnabled && x != nil { 697 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 698 | if ms.LoadMessageInfo() == nil { 699 | ms.StoreMessageInfo(mi) 700 | } 701 | return ms 702 | } 703 | return mi.MessageOf(x) 704 | } 705 | 706 | // Deprecated: Use DeleteStateRequest.ProtoReflect.Descriptor instead. 707 | func (*DeleteStateRequest) Descriptor() ([]byte, []int) { 708 | return file_ledger_messages_proto_rawDescGZIP(), []int{11} 709 | } 710 | 711 | func (x *DeleteStateRequest) GetContext() *TransactionContext { 712 | if x != nil { 713 | return x.Context 714 | } 715 | return nil 716 | } 717 | 718 | func (x *DeleteStateRequest) GetCollection() *Collection { 719 | if x != nil { 720 | return x.Collection 721 | } 722 | return nil 723 | } 724 | 725 | func (x *DeleteStateRequest) GetStateKey() string { 726 | if x != nil { 727 | return x.StateKey 728 | } 729 | return "" 730 | } 731 | 732 | type DeleteStateResponse struct { 733 | state protoimpl.MessageState 734 | sizeCache protoimpl.SizeCache 735 | unknownFields protoimpl.UnknownFields 736 | } 737 | 738 | func (x *DeleteStateResponse) Reset() { 739 | *x = DeleteStateResponse{} 740 | if protoimpl.UnsafeEnabled { 741 | mi := &file_ledger_messages_proto_msgTypes[12] 742 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 743 | ms.StoreMessageInfo(mi) 744 | } 745 | } 746 | 747 | func (x *DeleteStateResponse) String() string { 748 | return protoimpl.X.MessageStringOf(x) 749 | } 750 | 751 | func (*DeleteStateResponse) ProtoMessage() {} 752 | 753 | func (x *DeleteStateResponse) ProtoReflect() protoreflect.Message { 754 | mi := &file_ledger_messages_proto_msgTypes[12] 755 | if protoimpl.UnsafeEnabled && x != nil { 756 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 757 | if ms.LoadMessageInfo() == nil { 758 | ms.StoreMessageInfo(mi) 759 | } 760 | return ms 761 | } 762 | return mi.MessageOf(x) 763 | } 764 | 765 | // Deprecated: Use DeleteStateResponse.ProtoReflect.Descriptor instead. 766 | func (*DeleteStateResponse) Descriptor() ([]byte, []int) { 767 | return file_ledger_messages_proto_rawDescGZIP(), []int{12} 768 | } 769 | 770 | type ExistsStateRequest struct { 771 | state protoimpl.MessageState 772 | sizeCache protoimpl.SizeCache 773 | unknownFields protoimpl.UnknownFields 774 | 775 | Context *TransactionContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` 776 | Collection *Collection `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 777 | StateKey string `protobuf:"bytes,3,opt,name=state_key,json=stateKey,proto3" json:"state_key,omitempty"` 778 | } 779 | 780 | func (x *ExistsStateRequest) Reset() { 781 | *x = ExistsStateRequest{} 782 | if protoimpl.UnsafeEnabled { 783 | mi := &file_ledger_messages_proto_msgTypes[13] 784 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 785 | ms.StoreMessageInfo(mi) 786 | } 787 | } 788 | 789 | func (x *ExistsStateRequest) String() string { 790 | return protoimpl.X.MessageStringOf(x) 791 | } 792 | 793 | func (*ExistsStateRequest) ProtoMessage() {} 794 | 795 | func (x *ExistsStateRequest) ProtoReflect() protoreflect.Message { 796 | mi := &file_ledger_messages_proto_msgTypes[13] 797 | if protoimpl.UnsafeEnabled && x != nil { 798 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 799 | if ms.LoadMessageInfo() == nil { 800 | ms.StoreMessageInfo(mi) 801 | } 802 | return ms 803 | } 804 | return mi.MessageOf(x) 805 | } 806 | 807 | // Deprecated: Use ExistsStateRequest.ProtoReflect.Descriptor instead. 808 | func (*ExistsStateRequest) Descriptor() ([]byte, []int) { 809 | return file_ledger_messages_proto_rawDescGZIP(), []int{13} 810 | } 811 | 812 | func (x *ExistsStateRequest) GetContext() *TransactionContext { 813 | if x != nil { 814 | return x.Context 815 | } 816 | return nil 817 | } 818 | 819 | func (x *ExistsStateRequest) GetCollection() *Collection { 820 | if x != nil { 821 | return x.Collection 822 | } 823 | return nil 824 | } 825 | 826 | func (x *ExistsStateRequest) GetStateKey() string { 827 | if x != nil { 828 | return x.StateKey 829 | } 830 | return "" 831 | } 832 | 833 | type ExistsStateResponse struct { 834 | state protoimpl.MessageState 835 | sizeCache protoimpl.SizeCache 836 | unknownFields protoimpl.UnknownFields 837 | 838 | Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` 839 | } 840 | 841 | func (x *ExistsStateResponse) Reset() { 842 | *x = ExistsStateResponse{} 843 | if protoimpl.UnsafeEnabled { 844 | mi := &file_ledger_messages_proto_msgTypes[14] 845 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 846 | ms.StoreMessageInfo(mi) 847 | } 848 | } 849 | 850 | func (x *ExistsStateResponse) String() string { 851 | return protoimpl.X.MessageStringOf(x) 852 | } 853 | 854 | func (*ExistsStateResponse) ProtoMessage() {} 855 | 856 | func (x *ExistsStateResponse) ProtoReflect() protoreflect.Message { 857 | mi := &file_ledger_messages_proto_msgTypes[14] 858 | if protoimpl.UnsafeEnabled && x != nil { 859 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 860 | if ms.LoadMessageInfo() == nil { 861 | ms.StoreMessageInfo(mi) 862 | } 863 | return ms 864 | } 865 | return mi.MessageOf(x) 866 | } 867 | 868 | // Deprecated: Use ExistsStateResponse.ProtoReflect.Descriptor instead. 869 | func (*ExistsStateResponse) Descriptor() ([]byte, []int) { 870 | return file_ledger_messages_proto_rawDescGZIP(), []int{14} 871 | } 872 | 873 | func (x *ExistsStateResponse) GetExists() bool { 874 | if x != nil { 875 | return x.Exists 876 | } 877 | return false 878 | } 879 | 880 | type GetStatesRequest struct { 881 | state protoimpl.MessageState 882 | sizeCache protoimpl.SizeCache 883 | unknownFields protoimpl.UnknownFields 884 | 885 | Context *TransactionContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` 886 | Collection *Collection `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 887 | // Types that are assignable to Query: 888 | // *GetStatesRequest_ByKeyRange 889 | // *GetStatesRequest_ByRichQuery 890 | Query isGetStatesRequest_Query `protobuf_oneof:"query"` 891 | } 892 | 893 | func (x *GetStatesRequest) Reset() { 894 | *x = GetStatesRequest{} 895 | if protoimpl.UnsafeEnabled { 896 | mi := &file_ledger_messages_proto_msgTypes[15] 897 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 898 | ms.StoreMessageInfo(mi) 899 | } 900 | } 901 | 902 | func (x *GetStatesRequest) String() string { 903 | return protoimpl.X.MessageStringOf(x) 904 | } 905 | 906 | func (*GetStatesRequest) ProtoMessage() {} 907 | 908 | func (x *GetStatesRequest) ProtoReflect() protoreflect.Message { 909 | mi := &file_ledger_messages_proto_msgTypes[15] 910 | if protoimpl.UnsafeEnabled && x != nil { 911 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 912 | if ms.LoadMessageInfo() == nil { 913 | ms.StoreMessageInfo(mi) 914 | } 915 | return ms 916 | } 917 | return mi.MessageOf(x) 918 | } 919 | 920 | // Deprecated: Use GetStatesRequest.ProtoReflect.Descriptor instead. 921 | func (*GetStatesRequest) Descriptor() ([]byte, []int) { 922 | return file_ledger_messages_proto_rawDescGZIP(), []int{15} 923 | } 924 | 925 | func (x *GetStatesRequest) GetContext() *TransactionContext { 926 | if x != nil { 927 | return x.Context 928 | } 929 | return nil 930 | } 931 | 932 | func (x *GetStatesRequest) GetCollection() *Collection { 933 | if x != nil { 934 | return x.Collection 935 | } 936 | return nil 937 | } 938 | 939 | func (m *GetStatesRequest) GetQuery() isGetStatesRequest_Query { 940 | if m != nil { 941 | return m.Query 942 | } 943 | return nil 944 | } 945 | 946 | func (x *GetStatesRequest) GetByKeyRange() *KeyRangeQuery { 947 | if x, ok := x.GetQuery().(*GetStatesRequest_ByKeyRange); ok { 948 | return x.ByKeyRange 949 | } 950 | return nil 951 | } 952 | 953 | func (x *GetStatesRequest) GetByRichQuery() *RichQuery { 954 | if x, ok := x.GetQuery().(*GetStatesRequest_ByRichQuery); ok { 955 | return x.ByRichQuery 956 | } 957 | return nil 958 | } 959 | 960 | type isGetStatesRequest_Query interface { 961 | isGetStatesRequest_Query() 962 | } 963 | 964 | type GetStatesRequest_ByKeyRange struct { 965 | ByKeyRange *KeyRangeQuery `protobuf:"bytes,3,opt,name=by_key_range,json=byKeyRange,proto3,oneof"` 966 | } 967 | 968 | type GetStatesRequest_ByRichQuery struct { 969 | ByRichQuery *RichQuery `protobuf:"bytes,4,opt,name=by_rich_query,json=byRichQuery,proto3,oneof"` 970 | } 971 | 972 | func (*GetStatesRequest_ByKeyRange) isGetStatesRequest_Query() {} 973 | 974 | func (*GetStatesRequest_ByRichQuery) isGetStatesRequest_Query() {} 975 | 976 | type GetStatesResponse struct { 977 | state protoimpl.MessageState 978 | sizeCache protoimpl.SizeCache 979 | unknownFields protoimpl.UnknownFields 980 | 981 | States []*State `protobuf:"bytes,1,rep,name=states,proto3" json:"states,omitempty"` 982 | } 983 | 984 | func (x *GetStatesResponse) Reset() { 985 | *x = GetStatesResponse{} 986 | if protoimpl.UnsafeEnabled { 987 | mi := &file_ledger_messages_proto_msgTypes[16] 988 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 989 | ms.StoreMessageInfo(mi) 990 | } 991 | } 992 | 993 | func (x *GetStatesResponse) String() string { 994 | return protoimpl.X.MessageStringOf(x) 995 | } 996 | 997 | func (*GetStatesResponse) ProtoMessage() {} 998 | 999 | func (x *GetStatesResponse) ProtoReflect() protoreflect.Message { 1000 | mi := &file_ledger_messages_proto_msgTypes[16] 1001 | if protoimpl.UnsafeEnabled && x != nil { 1002 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1003 | if ms.LoadMessageInfo() == nil { 1004 | ms.StoreMessageInfo(mi) 1005 | } 1006 | return ms 1007 | } 1008 | return mi.MessageOf(x) 1009 | } 1010 | 1011 | // Deprecated: Use GetStatesResponse.ProtoReflect.Descriptor instead. 1012 | func (*GetStatesResponse) Descriptor() ([]byte, []int) { 1013 | return file_ledger_messages_proto_rawDescGZIP(), []int{16} 1014 | } 1015 | 1016 | func (x *GetStatesResponse) GetStates() []*State { 1017 | if x != nil { 1018 | return x.States 1019 | } 1020 | return nil 1021 | } 1022 | 1023 | type GetHashRequest struct { 1024 | state protoimpl.MessageState 1025 | sizeCache protoimpl.SizeCache 1026 | unknownFields protoimpl.UnknownFields 1027 | 1028 | Context *TransactionContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` 1029 | Collection *Collection `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 1030 | StateKey string `protobuf:"bytes,3,opt,name=state_key,json=stateKey,proto3" json:"state_key,omitempty"` 1031 | } 1032 | 1033 | func (x *GetHashRequest) Reset() { 1034 | *x = GetHashRequest{} 1035 | if protoimpl.UnsafeEnabled { 1036 | mi := &file_ledger_messages_proto_msgTypes[17] 1037 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1038 | ms.StoreMessageInfo(mi) 1039 | } 1040 | } 1041 | 1042 | func (x *GetHashRequest) String() string { 1043 | return protoimpl.X.MessageStringOf(x) 1044 | } 1045 | 1046 | func (*GetHashRequest) ProtoMessage() {} 1047 | 1048 | func (x *GetHashRequest) ProtoReflect() protoreflect.Message { 1049 | mi := &file_ledger_messages_proto_msgTypes[17] 1050 | if protoimpl.UnsafeEnabled && x != nil { 1051 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1052 | if ms.LoadMessageInfo() == nil { 1053 | ms.StoreMessageInfo(mi) 1054 | } 1055 | return ms 1056 | } 1057 | return mi.MessageOf(x) 1058 | } 1059 | 1060 | // Deprecated: Use GetHashRequest.ProtoReflect.Descriptor instead. 1061 | func (*GetHashRequest) Descriptor() ([]byte, []int) { 1062 | return file_ledger_messages_proto_rawDescGZIP(), []int{17} 1063 | } 1064 | 1065 | func (x *GetHashRequest) GetContext() *TransactionContext { 1066 | if x != nil { 1067 | return x.Context 1068 | } 1069 | return nil 1070 | } 1071 | 1072 | func (x *GetHashRequest) GetCollection() *Collection { 1073 | if x != nil { 1074 | return x.Collection 1075 | } 1076 | return nil 1077 | } 1078 | 1079 | func (x *GetHashRequest) GetStateKey() string { 1080 | if x != nil { 1081 | return x.StateKey 1082 | } 1083 | return "" 1084 | } 1085 | 1086 | type GetHashResponse struct { 1087 | state protoimpl.MessageState 1088 | sizeCache protoimpl.SizeCache 1089 | unknownFields protoimpl.UnknownFields 1090 | 1091 | Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 1092 | } 1093 | 1094 | func (x *GetHashResponse) Reset() { 1095 | *x = GetHashResponse{} 1096 | if protoimpl.UnsafeEnabled { 1097 | mi := &file_ledger_messages_proto_msgTypes[18] 1098 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1099 | ms.StoreMessageInfo(mi) 1100 | } 1101 | } 1102 | 1103 | func (x *GetHashResponse) String() string { 1104 | return protoimpl.X.MessageStringOf(x) 1105 | } 1106 | 1107 | func (*GetHashResponse) ProtoMessage() {} 1108 | 1109 | func (x *GetHashResponse) ProtoReflect() protoreflect.Message { 1110 | mi := &file_ledger_messages_proto_msgTypes[18] 1111 | if protoimpl.UnsafeEnabled && x != nil { 1112 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1113 | if ms.LoadMessageInfo() == nil { 1114 | ms.StoreMessageInfo(mi) 1115 | } 1116 | return ms 1117 | } 1118 | return mi.MessageOf(x) 1119 | } 1120 | 1121 | // Deprecated: Use GetHashResponse.ProtoReflect.Descriptor instead. 1122 | func (*GetHashResponse) Descriptor() ([]byte, []int) { 1123 | return file_ledger_messages_proto_rawDescGZIP(), []int{18} 1124 | } 1125 | 1126 | func (x *GetHashResponse) GetHash() []byte { 1127 | if x != nil { 1128 | return x.Hash 1129 | } 1130 | return nil 1131 | } 1132 | 1133 | type EndorsementPrincipal struct { 1134 | state protoimpl.MessageState 1135 | sizeCache protoimpl.SizeCache 1136 | unknownFields protoimpl.UnknownFields 1137 | 1138 | MspId string `protobuf:"bytes,1,opt,name=msp_id,json=mspId,proto3" json:"msp_id,omitempty"` 1139 | Role EndorsementPrincipal_Role `protobuf:"varint,2,opt,name=role,proto3,enum=contract.EndorsementPrincipal_Role" json:"role,omitempty"` 1140 | } 1141 | 1142 | func (x *EndorsementPrincipal) Reset() { 1143 | *x = EndorsementPrincipal{} 1144 | if protoimpl.UnsafeEnabled { 1145 | mi := &file_ledger_messages_proto_msgTypes[19] 1146 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1147 | ms.StoreMessageInfo(mi) 1148 | } 1149 | } 1150 | 1151 | func (x *EndorsementPrincipal) String() string { 1152 | return protoimpl.X.MessageStringOf(x) 1153 | } 1154 | 1155 | func (*EndorsementPrincipal) ProtoMessage() {} 1156 | 1157 | func (x *EndorsementPrincipal) ProtoReflect() protoreflect.Message { 1158 | mi := &file_ledger_messages_proto_msgTypes[19] 1159 | if protoimpl.UnsafeEnabled && x != nil { 1160 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1161 | if ms.LoadMessageInfo() == nil { 1162 | ms.StoreMessageInfo(mi) 1163 | } 1164 | return ms 1165 | } 1166 | return mi.MessageOf(x) 1167 | } 1168 | 1169 | // Deprecated: Use EndorsementPrincipal.ProtoReflect.Descriptor instead. 1170 | func (*EndorsementPrincipal) Descriptor() ([]byte, []int) { 1171 | return file_ledger_messages_proto_rawDescGZIP(), []int{19} 1172 | } 1173 | 1174 | func (x *EndorsementPrincipal) GetMspId() string { 1175 | if x != nil { 1176 | return x.MspId 1177 | } 1178 | return "" 1179 | } 1180 | 1181 | func (x *EndorsementPrincipal) GetRole() EndorsementPrincipal_Role { 1182 | if x != nil { 1183 | return x.Role 1184 | } 1185 | return EndorsementPrincipal_MEMBER 1186 | } 1187 | 1188 | type EndorsementRule struct { 1189 | state protoimpl.MessageState 1190 | sizeCache protoimpl.SizeCache 1191 | unknownFields protoimpl.UnknownFields 1192 | 1193 | MinEndorsements int32 `protobuf:"varint,1,opt,name=min_endorsements,json=minEndorsements,proto3" json:"min_endorsements,omitempty"` 1194 | Principals []*EndorsementPrincipal `protobuf:"bytes,2,rep,name=principals,proto3" json:"principals,omitempty"` 1195 | Rules []*EndorsementRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"` 1196 | } 1197 | 1198 | func (x *EndorsementRule) Reset() { 1199 | *x = EndorsementRule{} 1200 | if protoimpl.UnsafeEnabled { 1201 | mi := &file_ledger_messages_proto_msgTypes[20] 1202 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1203 | ms.StoreMessageInfo(mi) 1204 | } 1205 | } 1206 | 1207 | func (x *EndorsementRule) String() string { 1208 | return protoimpl.X.MessageStringOf(x) 1209 | } 1210 | 1211 | func (*EndorsementRule) ProtoMessage() {} 1212 | 1213 | func (x *EndorsementRule) ProtoReflect() protoreflect.Message { 1214 | mi := &file_ledger_messages_proto_msgTypes[20] 1215 | if protoimpl.UnsafeEnabled && x != nil { 1216 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1217 | if ms.LoadMessageInfo() == nil { 1218 | ms.StoreMessageInfo(mi) 1219 | } 1220 | return ms 1221 | } 1222 | return mi.MessageOf(x) 1223 | } 1224 | 1225 | // Deprecated: Use EndorsementRule.ProtoReflect.Descriptor instead. 1226 | func (*EndorsementRule) Descriptor() ([]byte, []int) { 1227 | return file_ledger_messages_proto_rawDescGZIP(), []int{20} 1228 | } 1229 | 1230 | func (x *EndorsementRule) GetMinEndorsements() int32 { 1231 | if x != nil { 1232 | return x.MinEndorsements 1233 | } 1234 | return 0 1235 | } 1236 | 1237 | func (x *EndorsementRule) GetPrincipals() []*EndorsementPrincipal { 1238 | if x != nil { 1239 | return x.Principals 1240 | } 1241 | return nil 1242 | } 1243 | 1244 | func (x *EndorsementRule) GetRules() []*EndorsementRule { 1245 | if x != nil { 1246 | return x.Rules 1247 | } 1248 | return nil 1249 | } 1250 | 1251 | type EndorsementPolicy struct { 1252 | state protoimpl.MessageState 1253 | sizeCache protoimpl.SizeCache 1254 | unknownFields protoimpl.UnknownFields 1255 | 1256 | Rule *EndorsementRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` 1257 | } 1258 | 1259 | func (x *EndorsementPolicy) Reset() { 1260 | *x = EndorsementPolicy{} 1261 | if protoimpl.UnsafeEnabled { 1262 | mi := &file_ledger_messages_proto_msgTypes[21] 1263 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1264 | ms.StoreMessageInfo(mi) 1265 | } 1266 | } 1267 | 1268 | func (x *EndorsementPolicy) String() string { 1269 | return protoimpl.X.MessageStringOf(x) 1270 | } 1271 | 1272 | func (*EndorsementPolicy) ProtoMessage() {} 1273 | 1274 | func (x *EndorsementPolicy) ProtoReflect() protoreflect.Message { 1275 | mi := &file_ledger_messages_proto_msgTypes[21] 1276 | if protoimpl.UnsafeEnabled && x != nil { 1277 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1278 | if ms.LoadMessageInfo() == nil { 1279 | ms.StoreMessageInfo(mi) 1280 | } 1281 | return ms 1282 | } 1283 | return mi.MessageOf(x) 1284 | } 1285 | 1286 | // Deprecated: Use EndorsementPolicy.ProtoReflect.Descriptor instead. 1287 | func (*EndorsementPolicy) Descriptor() ([]byte, []int) { 1288 | return file_ledger_messages_proto_rawDescGZIP(), []int{21} 1289 | } 1290 | 1291 | func (x *EndorsementPolicy) GetRule() *EndorsementRule { 1292 | if x != nil { 1293 | return x.Rule 1294 | } 1295 | return nil 1296 | } 1297 | 1298 | type GetEndorsementPolicyRequest struct { 1299 | state protoimpl.MessageState 1300 | sizeCache protoimpl.SizeCache 1301 | unknownFields protoimpl.UnknownFields 1302 | 1303 | Context *TransactionContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` 1304 | Collection *Collection `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 1305 | StateKey string `protobuf:"bytes,3,opt,name=state_key,json=stateKey,proto3" json:"state_key,omitempty"` 1306 | } 1307 | 1308 | func (x *GetEndorsementPolicyRequest) Reset() { 1309 | *x = GetEndorsementPolicyRequest{} 1310 | if protoimpl.UnsafeEnabled { 1311 | mi := &file_ledger_messages_proto_msgTypes[22] 1312 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1313 | ms.StoreMessageInfo(mi) 1314 | } 1315 | } 1316 | 1317 | func (x *GetEndorsementPolicyRequest) String() string { 1318 | return protoimpl.X.MessageStringOf(x) 1319 | } 1320 | 1321 | func (*GetEndorsementPolicyRequest) ProtoMessage() {} 1322 | 1323 | func (x *GetEndorsementPolicyRequest) ProtoReflect() protoreflect.Message { 1324 | mi := &file_ledger_messages_proto_msgTypes[22] 1325 | if protoimpl.UnsafeEnabled && x != nil { 1326 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1327 | if ms.LoadMessageInfo() == nil { 1328 | ms.StoreMessageInfo(mi) 1329 | } 1330 | return ms 1331 | } 1332 | return mi.MessageOf(x) 1333 | } 1334 | 1335 | // Deprecated: Use GetEndorsementPolicyRequest.ProtoReflect.Descriptor instead. 1336 | func (*GetEndorsementPolicyRequest) Descriptor() ([]byte, []int) { 1337 | return file_ledger_messages_proto_rawDescGZIP(), []int{22} 1338 | } 1339 | 1340 | func (x *GetEndorsementPolicyRequest) GetContext() *TransactionContext { 1341 | if x != nil { 1342 | return x.Context 1343 | } 1344 | return nil 1345 | } 1346 | 1347 | func (x *GetEndorsementPolicyRequest) GetCollection() *Collection { 1348 | if x != nil { 1349 | return x.Collection 1350 | } 1351 | return nil 1352 | } 1353 | 1354 | func (x *GetEndorsementPolicyRequest) GetStateKey() string { 1355 | if x != nil { 1356 | return x.StateKey 1357 | } 1358 | return "" 1359 | } 1360 | 1361 | type GetEndorsementPolicyResponse struct { 1362 | state protoimpl.MessageState 1363 | sizeCache protoimpl.SizeCache 1364 | unknownFields protoimpl.UnknownFields 1365 | 1366 | Policy *EndorsementPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` 1367 | } 1368 | 1369 | func (x *GetEndorsementPolicyResponse) Reset() { 1370 | *x = GetEndorsementPolicyResponse{} 1371 | if protoimpl.UnsafeEnabled { 1372 | mi := &file_ledger_messages_proto_msgTypes[23] 1373 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1374 | ms.StoreMessageInfo(mi) 1375 | } 1376 | } 1377 | 1378 | func (x *GetEndorsementPolicyResponse) String() string { 1379 | return protoimpl.X.MessageStringOf(x) 1380 | } 1381 | 1382 | func (*GetEndorsementPolicyResponse) ProtoMessage() {} 1383 | 1384 | func (x *GetEndorsementPolicyResponse) ProtoReflect() protoreflect.Message { 1385 | mi := &file_ledger_messages_proto_msgTypes[23] 1386 | if protoimpl.UnsafeEnabled && x != nil { 1387 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1388 | if ms.LoadMessageInfo() == nil { 1389 | ms.StoreMessageInfo(mi) 1390 | } 1391 | return ms 1392 | } 1393 | return mi.MessageOf(x) 1394 | } 1395 | 1396 | // Deprecated: Use GetEndorsementPolicyResponse.ProtoReflect.Descriptor instead. 1397 | func (*GetEndorsementPolicyResponse) Descriptor() ([]byte, []int) { 1398 | return file_ledger_messages_proto_rawDescGZIP(), []int{23} 1399 | } 1400 | 1401 | func (x *GetEndorsementPolicyResponse) GetPolicy() *EndorsementPolicy { 1402 | if x != nil { 1403 | return x.Policy 1404 | } 1405 | return nil 1406 | } 1407 | 1408 | type SetEndorsementPolicyRequest struct { 1409 | state protoimpl.MessageState 1410 | sizeCache protoimpl.SizeCache 1411 | unknownFields protoimpl.UnknownFields 1412 | 1413 | Context *TransactionContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` 1414 | Collection *Collection `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 1415 | StateKey string `protobuf:"bytes,3,opt,name=state_key,json=stateKey,proto3" json:"state_key,omitempty"` 1416 | Policy *EndorsementPolicy `protobuf:"bytes,4,opt,name=policy,proto3" json:"policy,omitempty"` 1417 | } 1418 | 1419 | func (x *SetEndorsementPolicyRequest) Reset() { 1420 | *x = SetEndorsementPolicyRequest{} 1421 | if protoimpl.UnsafeEnabled { 1422 | mi := &file_ledger_messages_proto_msgTypes[24] 1423 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1424 | ms.StoreMessageInfo(mi) 1425 | } 1426 | } 1427 | 1428 | func (x *SetEndorsementPolicyRequest) String() string { 1429 | return protoimpl.X.MessageStringOf(x) 1430 | } 1431 | 1432 | func (*SetEndorsementPolicyRequest) ProtoMessage() {} 1433 | 1434 | func (x *SetEndorsementPolicyRequest) ProtoReflect() protoreflect.Message { 1435 | mi := &file_ledger_messages_proto_msgTypes[24] 1436 | if protoimpl.UnsafeEnabled && x != nil { 1437 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1438 | if ms.LoadMessageInfo() == nil { 1439 | ms.StoreMessageInfo(mi) 1440 | } 1441 | return ms 1442 | } 1443 | return mi.MessageOf(x) 1444 | } 1445 | 1446 | // Deprecated: Use SetEndorsementPolicyRequest.ProtoReflect.Descriptor instead. 1447 | func (*SetEndorsementPolicyRequest) Descriptor() ([]byte, []int) { 1448 | return file_ledger_messages_proto_rawDescGZIP(), []int{24} 1449 | } 1450 | 1451 | func (x *SetEndorsementPolicyRequest) GetContext() *TransactionContext { 1452 | if x != nil { 1453 | return x.Context 1454 | } 1455 | return nil 1456 | } 1457 | 1458 | func (x *SetEndorsementPolicyRequest) GetCollection() *Collection { 1459 | if x != nil { 1460 | return x.Collection 1461 | } 1462 | return nil 1463 | } 1464 | 1465 | func (x *SetEndorsementPolicyRequest) GetStateKey() string { 1466 | if x != nil { 1467 | return x.StateKey 1468 | } 1469 | return "" 1470 | } 1471 | 1472 | func (x *SetEndorsementPolicyRequest) GetPolicy() *EndorsementPolicy { 1473 | if x != nil { 1474 | return x.Policy 1475 | } 1476 | return nil 1477 | } 1478 | 1479 | type SetEndorsementPolicyResponse struct { 1480 | state protoimpl.MessageState 1481 | sizeCache protoimpl.SizeCache 1482 | unknownFields protoimpl.UnknownFields 1483 | } 1484 | 1485 | func (x *SetEndorsementPolicyResponse) Reset() { 1486 | *x = SetEndorsementPolicyResponse{} 1487 | if protoimpl.UnsafeEnabled { 1488 | mi := &file_ledger_messages_proto_msgTypes[25] 1489 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1490 | ms.StoreMessageInfo(mi) 1491 | } 1492 | } 1493 | 1494 | func (x *SetEndorsementPolicyResponse) String() string { 1495 | return protoimpl.X.MessageStringOf(x) 1496 | } 1497 | 1498 | func (*SetEndorsementPolicyResponse) ProtoMessage() {} 1499 | 1500 | func (x *SetEndorsementPolicyResponse) ProtoReflect() protoreflect.Message { 1501 | mi := &file_ledger_messages_proto_msgTypes[25] 1502 | if protoimpl.UnsafeEnabled && x != nil { 1503 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1504 | if ms.LoadMessageInfo() == nil { 1505 | ms.StoreMessageInfo(mi) 1506 | } 1507 | return ms 1508 | } 1509 | return mi.MessageOf(x) 1510 | } 1511 | 1512 | // Deprecated: Use SetEndorsementPolicyResponse.ProtoReflect.Descriptor instead. 1513 | func (*SetEndorsementPolicyResponse) Descriptor() ([]byte, []int) { 1514 | return file_ledger_messages_proto_rawDescGZIP(), []int{25} 1515 | } 1516 | 1517 | var File_ledger_messages_proto protoreflect.FileDescriptor 1518 | 1519 | var file_ledger_messages_proto_rawDesc = []byte{ 1520 | 0x0a, 0x15, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 1521 | 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 1522 | 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 1523 | 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 1524 | 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 1525 | 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x20, 0x0a, 0x0a, 0x43, 0x6f, 0x6c, 1526 | 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 1527 | 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2f, 0x0a, 0x05, 0x53, 1528 | 0x74, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 1529 | 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 1530 | 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xb4, 0x01, 0x0a, 1531 | 0x0c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x10, 0x0a, 1532 | 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 1533 | 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 1534 | 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 1535 | 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 1536 | 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 1537 | 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 1538 | 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 1539 | 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 1540 | 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x6c, 1541 | 0x65, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x44, 0x65, 0x6c, 1542 | 0x65, 0x74, 0x65, 0x22, 0x45, 0x0a, 0x0d, 0x4b, 0x65, 0x79, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 1543 | 0x75, 0x65, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 1544 | 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 1545 | 0x79, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 1546 | 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x22, 0x0b, 0x0a, 0x09, 0x52, 0x69, 1547 | 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x22, 0xa9, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 1548 | 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 1549 | 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 1550 | 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 1551 | 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 1552 | 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x34, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 1553 | 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6e, 1554 | 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 1555 | 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x05, 1556 | 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x63, 0x6f, 1557 | 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 1558 | 0x61, 0x74, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 1559 | 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x10, 0x52, 1560 | 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 1561 | 0x36, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 1562 | 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 1563 | 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 1564 | 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x34, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 1565 | 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 1566 | 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 1567 | 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 1568 | 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 1569 | 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x3a, 0x0a, 0x11, 0x52, 0x65, 1570 | 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 1571 | 0x25, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 1572 | 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 1573 | 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xa9, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 1574 | 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 1575 | 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 1576 | 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 1577 | 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 1578 | 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x34, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 1579 | 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 1580 | 0x72, 0x61, 0x63, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 1581 | 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x05, 0x73, 1582 | 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x63, 0x6f, 0x6e, 1583 | 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 1584 | 0x74, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 1585 | 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9f, 0x01, 0x0a, 0x12, 0x44, 0x65, 1586 | 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 1587 | 0x12, 0x36, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 1588 | 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x54, 0x72, 0x61, 1589 | 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 1590 | 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x34, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 1591 | 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 1592 | 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 1593 | 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 1594 | 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 1595 | 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x15, 0x0a, 0x13, 0x44, 1596 | 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 1597 | 0x73, 0x65, 0x22, 0x9f, 0x01, 0x0a, 0x12, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x53, 0x74, 0x61, 1598 | 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 1599 | 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 1600 | 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 1601 | 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 1602 | 0x74, 0x12, 0x34, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 1603 | 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 1604 | 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 1605 | 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 1606 | 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 1607 | 0x65, 0x4b, 0x65, 0x79, 0x22, 0x2d, 0x0a, 0x13, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x53, 0x74, 1608 | 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 1609 | 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x69, 1610 | 0x73, 0x74, 0x73, 0x22, 0x81, 0x02, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 1611 | 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 1612 | 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 1613 | 0x72, 0x61, 0x63, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 1614 | 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 1615 | 0x12, 0x34, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 1616 | 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 1617 | 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 1618 | 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0c, 0x62, 0x79, 0x5f, 0x6b, 0x65, 0x79, 1619 | 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 1620 | 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x61, 0x6e, 0x67, 0x65, 1621 | 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x61, 1622 | 0x6e, 0x67, 0x65, 0x12, 0x39, 0x0a, 0x0d, 0x62, 0x79, 0x5f, 0x72, 0x69, 0x63, 0x68, 0x5f, 0x71, 1623 | 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x6f, 0x6e, 1624 | 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x52, 0x69, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 1625 | 0x00, 0x52, 0x0b, 0x62, 0x79, 0x52, 0x69, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x07, 1626 | 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x3c, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x74, 1627 | 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x06, 1628 | 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x63, 1629 | 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x06, 0x73, 1630 | 0x74, 0x61, 0x74, 0x65, 0x73, 0x22, 0x9b, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x48, 0x61, 0x73, 1631 | 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 1632 | 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 1633 | 0x72, 0x61, 0x63, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 1634 | 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 1635 | 0x12, 0x34, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 1636 | 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 1637 | 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 1638 | 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 1639 | 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x65, 1640 | 0x4b, 0x65, 0x79, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 1641 | 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 1642 | 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x9b, 0x01, 0x0a, 0x14, 0x45, 1643 | 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 1644 | 0x70, 0x61, 0x6c, 0x12, 0x15, 0x0a, 0x06, 0x6d, 0x73, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 1645 | 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x73, 0x70, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x04, 0x72, 0x6f, 1646 | 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 1647 | 0x61, 0x63, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 1648 | 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 1649 | 0x6f, 0x6c, 0x65, 0x22, 0x33, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 1650 | 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d, 0x49, 0x4e, 1651 | 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x08, 1652 | 0x0a, 0x04, 0x50, 0x45, 0x45, 0x52, 0x10, 0x03, 0x22, 0xad, 0x01, 0x0a, 0x0f, 0x45, 0x6e, 0x64, 1653 | 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x10, 1654 | 0x6d, 0x69, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 1655 | 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x45, 0x6e, 0x64, 0x6f, 0x72, 1656 | 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3e, 0x0a, 0x0a, 0x70, 0x72, 0x69, 0x6e, 0x63, 1657 | 0x69, 0x70, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 1658 | 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 1659 | 0x6e, 0x74, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x52, 0x0a, 0x70, 0x72, 0x69, 1660 | 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 1661 | 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 1662 | 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6c, 1663 | 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x42, 0x0a, 0x11, 0x45, 0x6e, 0x64, 0x6f, 1664 | 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2d, 0x0a, 1665 | 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 1666 | 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 1667 | 0x6e, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x22, 0xa8, 0x01, 0x0a, 1668 | 0x1b, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 1669 | 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x07, 1670 | 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 1671 | 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 1672 | 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 1673 | 0x74, 0x65, 0x78, 0x74, 0x12, 0x34, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 1674 | 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 1675 | 0x61, 0x63, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 1676 | 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 1677 | 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 1678 | 0x74, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x53, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x45, 0x6e, 1679 | 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 1680 | 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 1681 | 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 1682 | 0x63, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 1683 | 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xdd, 0x01, 0x0a, 1684 | 0x1b, 0x53, 0x65, 0x74, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 1685 | 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x07, 1686 | 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 1687 | 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 1688 | 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 1689 | 0x74, 0x65, 0x78, 0x74, 0x12, 0x34, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 1690 | 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 1691 | 0x61, 0x63, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 1692 | 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 1693 | 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 1694 | 0x74, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x33, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 1695 | 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 1696 | 0x63, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 1697 | 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x1e, 0x0a, 0x1c, 1698 | 0x53, 0x65, 0x74, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 1699 | 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x45, 0x5a, 0x43, 1700 | 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 1701 | 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x6e, 0x64, 0x61, 1702 | 0x72, 0x79, 0x2f, 0x66, 0x61, 0x62, 0x72, 0x69, 0x63, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 1703 | 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2d, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 1704 | 0x61, 0x63, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 1705 | } 1706 | 1707 | var ( 1708 | file_ledger_messages_proto_rawDescOnce sync.Once 1709 | file_ledger_messages_proto_rawDescData = file_ledger_messages_proto_rawDesc 1710 | ) 1711 | 1712 | func file_ledger_messages_proto_rawDescGZIP() []byte { 1713 | file_ledger_messages_proto_rawDescOnce.Do(func() { 1714 | file_ledger_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_ledger_messages_proto_rawDescData) 1715 | }) 1716 | return file_ledger_messages_proto_rawDescData 1717 | } 1718 | 1719 | var file_ledger_messages_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 1720 | var file_ledger_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 26) 1721 | var file_ledger_messages_proto_goTypes = []interface{}{ 1722 | (EndorsementPrincipal_Role)(0), // 0: contract.EndorsementPrincipal.Role 1723 | (*Collection)(nil), // 1: contract.Collection 1724 | (*State)(nil), // 2: contract.State 1725 | (*StateHistory)(nil), // 3: contract.StateHistory 1726 | (*KeyRangeQuery)(nil), // 4: contract.KeyRangeQuery 1727 | (*RichQuery)(nil), // 5: contract.RichQuery 1728 | (*CreateStateRequest)(nil), // 6: contract.CreateStateRequest 1729 | (*CreateStateResponse)(nil), // 7: contract.CreateStateResponse 1730 | (*ReadStateRequest)(nil), // 8: contract.ReadStateRequest 1731 | (*ReadStateResponse)(nil), // 9: contract.ReadStateResponse 1732 | (*UpdateStateRequest)(nil), // 10: contract.UpdateStateRequest 1733 | (*UpdateStateResponse)(nil), // 11: contract.UpdateStateResponse 1734 | (*DeleteStateRequest)(nil), // 12: contract.DeleteStateRequest 1735 | (*DeleteStateResponse)(nil), // 13: contract.DeleteStateResponse 1736 | (*ExistsStateRequest)(nil), // 14: contract.ExistsStateRequest 1737 | (*ExistsStateResponse)(nil), // 15: contract.ExistsStateResponse 1738 | (*GetStatesRequest)(nil), // 16: contract.GetStatesRequest 1739 | (*GetStatesResponse)(nil), // 17: contract.GetStatesResponse 1740 | (*GetHashRequest)(nil), // 18: contract.GetHashRequest 1741 | (*GetHashResponse)(nil), // 19: contract.GetHashResponse 1742 | (*EndorsementPrincipal)(nil), // 20: contract.EndorsementPrincipal 1743 | (*EndorsementRule)(nil), // 21: contract.EndorsementRule 1744 | (*EndorsementPolicy)(nil), // 22: contract.EndorsementPolicy 1745 | (*GetEndorsementPolicyRequest)(nil), // 23: contract.GetEndorsementPolicyRequest 1746 | (*GetEndorsementPolicyResponse)(nil), // 24: contract.GetEndorsementPolicyResponse 1747 | (*SetEndorsementPolicyRequest)(nil), // 25: contract.SetEndorsementPolicyRequest 1748 | (*SetEndorsementPolicyResponse)(nil), // 26: contract.SetEndorsementPolicyResponse 1749 | (*timestamp.Timestamp)(nil), // 27: google.protobuf.Timestamp 1750 | (*TransactionContext)(nil), // 28: contract.TransactionContext 1751 | } 1752 | var file_ledger_messages_proto_depIdxs = []int32{ 1753 | 27, // 0: contract.StateHistory.timestamp:type_name -> google.protobuf.Timestamp 1754 | 28, // 1: contract.CreateStateRequest.context:type_name -> contract.TransactionContext 1755 | 1, // 2: contract.CreateStateRequest.collection:type_name -> contract.Collection 1756 | 2, // 3: contract.CreateStateRequest.state:type_name -> contract.State 1757 | 28, // 4: contract.ReadStateRequest.context:type_name -> contract.TransactionContext 1758 | 1, // 5: contract.ReadStateRequest.collection:type_name -> contract.Collection 1759 | 2, // 6: contract.ReadStateResponse.state:type_name -> contract.State 1760 | 28, // 7: contract.UpdateStateRequest.context:type_name -> contract.TransactionContext 1761 | 1, // 8: contract.UpdateStateRequest.collection:type_name -> contract.Collection 1762 | 2, // 9: contract.UpdateStateRequest.state:type_name -> contract.State 1763 | 28, // 10: contract.DeleteStateRequest.context:type_name -> contract.TransactionContext 1764 | 1, // 11: contract.DeleteStateRequest.collection:type_name -> contract.Collection 1765 | 28, // 12: contract.ExistsStateRequest.context:type_name -> contract.TransactionContext 1766 | 1, // 13: contract.ExistsStateRequest.collection:type_name -> contract.Collection 1767 | 28, // 14: contract.GetStatesRequest.context:type_name -> contract.TransactionContext 1768 | 1, // 15: contract.GetStatesRequest.collection:type_name -> contract.Collection 1769 | 4, // 16: contract.GetStatesRequest.by_key_range:type_name -> contract.KeyRangeQuery 1770 | 5, // 17: contract.GetStatesRequest.by_rich_query:type_name -> contract.RichQuery 1771 | 2, // 18: contract.GetStatesResponse.states:type_name -> contract.State 1772 | 28, // 19: contract.GetHashRequest.context:type_name -> contract.TransactionContext 1773 | 1, // 20: contract.GetHashRequest.collection:type_name -> contract.Collection 1774 | 0, // 21: contract.EndorsementPrincipal.role:type_name -> contract.EndorsementPrincipal.Role 1775 | 20, // 22: contract.EndorsementRule.principals:type_name -> contract.EndorsementPrincipal 1776 | 21, // 23: contract.EndorsementRule.rules:type_name -> contract.EndorsementRule 1777 | 21, // 24: contract.EndorsementPolicy.rule:type_name -> contract.EndorsementRule 1778 | 28, // 25: contract.GetEndorsementPolicyRequest.context:type_name -> contract.TransactionContext 1779 | 1, // 26: contract.GetEndorsementPolicyRequest.collection:type_name -> contract.Collection 1780 | 22, // 27: contract.GetEndorsementPolicyResponse.policy:type_name -> contract.EndorsementPolicy 1781 | 28, // 28: contract.SetEndorsementPolicyRequest.context:type_name -> contract.TransactionContext 1782 | 1, // 29: contract.SetEndorsementPolicyRequest.collection:type_name -> contract.Collection 1783 | 22, // 30: contract.SetEndorsementPolicyRequest.policy:type_name -> contract.EndorsementPolicy 1784 | 31, // [31:31] is the sub-list for method output_type 1785 | 31, // [31:31] is the sub-list for method input_type 1786 | 31, // [31:31] is the sub-list for extension type_name 1787 | 31, // [31:31] is the sub-list for extension extendee 1788 | 0, // [0:31] is the sub-list for field type_name 1789 | } 1790 | 1791 | func init() { file_ledger_messages_proto_init() } 1792 | func file_ledger_messages_proto_init() { 1793 | if File_ledger_messages_proto != nil { 1794 | return 1795 | } 1796 | file_common_messages_proto_init() 1797 | if !protoimpl.UnsafeEnabled { 1798 | file_ledger_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1799 | switch v := v.(*Collection); i { 1800 | case 0: 1801 | return &v.state 1802 | case 1: 1803 | return &v.sizeCache 1804 | case 2: 1805 | return &v.unknownFields 1806 | default: 1807 | return nil 1808 | } 1809 | } 1810 | file_ledger_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1811 | switch v := v.(*State); i { 1812 | case 0: 1813 | return &v.state 1814 | case 1: 1815 | return &v.sizeCache 1816 | case 2: 1817 | return &v.unknownFields 1818 | default: 1819 | return nil 1820 | } 1821 | } 1822 | file_ledger_messages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1823 | switch v := v.(*StateHistory); i { 1824 | case 0: 1825 | return &v.state 1826 | case 1: 1827 | return &v.sizeCache 1828 | case 2: 1829 | return &v.unknownFields 1830 | default: 1831 | return nil 1832 | } 1833 | } 1834 | file_ledger_messages_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1835 | switch v := v.(*KeyRangeQuery); i { 1836 | case 0: 1837 | return &v.state 1838 | case 1: 1839 | return &v.sizeCache 1840 | case 2: 1841 | return &v.unknownFields 1842 | default: 1843 | return nil 1844 | } 1845 | } 1846 | file_ledger_messages_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1847 | switch v := v.(*RichQuery); i { 1848 | case 0: 1849 | return &v.state 1850 | case 1: 1851 | return &v.sizeCache 1852 | case 2: 1853 | return &v.unknownFields 1854 | default: 1855 | return nil 1856 | } 1857 | } 1858 | file_ledger_messages_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1859 | switch v := v.(*CreateStateRequest); i { 1860 | case 0: 1861 | return &v.state 1862 | case 1: 1863 | return &v.sizeCache 1864 | case 2: 1865 | return &v.unknownFields 1866 | default: 1867 | return nil 1868 | } 1869 | } 1870 | file_ledger_messages_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1871 | switch v := v.(*CreateStateResponse); i { 1872 | case 0: 1873 | return &v.state 1874 | case 1: 1875 | return &v.sizeCache 1876 | case 2: 1877 | return &v.unknownFields 1878 | default: 1879 | return nil 1880 | } 1881 | } 1882 | file_ledger_messages_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1883 | switch v := v.(*ReadStateRequest); i { 1884 | case 0: 1885 | return &v.state 1886 | case 1: 1887 | return &v.sizeCache 1888 | case 2: 1889 | return &v.unknownFields 1890 | default: 1891 | return nil 1892 | } 1893 | } 1894 | file_ledger_messages_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1895 | switch v := v.(*ReadStateResponse); i { 1896 | case 0: 1897 | return &v.state 1898 | case 1: 1899 | return &v.sizeCache 1900 | case 2: 1901 | return &v.unknownFields 1902 | default: 1903 | return nil 1904 | } 1905 | } 1906 | file_ledger_messages_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1907 | switch v := v.(*UpdateStateRequest); i { 1908 | case 0: 1909 | return &v.state 1910 | case 1: 1911 | return &v.sizeCache 1912 | case 2: 1913 | return &v.unknownFields 1914 | default: 1915 | return nil 1916 | } 1917 | } 1918 | file_ledger_messages_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1919 | switch v := v.(*UpdateStateResponse); i { 1920 | case 0: 1921 | return &v.state 1922 | case 1: 1923 | return &v.sizeCache 1924 | case 2: 1925 | return &v.unknownFields 1926 | default: 1927 | return nil 1928 | } 1929 | } 1930 | file_ledger_messages_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1931 | switch v := v.(*DeleteStateRequest); i { 1932 | case 0: 1933 | return &v.state 1934 | case 1: 1935 | return &v.sizeCache 1936 | case 2: 1937 | return &v.unknownFields 1938 | default: 1939 | return nil 1940 | } 1941 | } 1942 | file_ledger_messages_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1943 | switch v := v.(*DeleteStateResponse); i { 1944 | case 0: 1945 | return &v.state 1946 | case 1: 1947 | return &v.sizeCache 1948 | case 2: 1949 | return &v.unknownFields 1950 | default: 1951 | return nil 1952 | } 1953 | } 1954 | file_ledger_messages_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1955 | switch v := v.(*ExistsStateRequest); i { 1956 | case 0: 1957 | return &v.state 1958 | case 1: 1959 | return &v.sizeCache 1960 | case 2: 1961 | return &v.unknownFields 1962 | default: 1963 | return nil 1964 | } 1965 | } 1966 | file_ledger_messages_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { 1967 | switch v := v.(*ExistsStateResponse); i { 1968 | case 0: 1969 | return &v.state 1970 | case 1: 1971 | return &v.sizeCache 1972 | case 2: 1973 | return &v.unknownFields 1974 | default: 1975 | return nil 1976 | } 1977 | } 1978 | file_ledger_messages_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { 1979 | switch v := v.(*GetStatesRequest); i { 1980 | case 0: 1981 | return &v.state 1982 | case 1: 1983 | return &v.sizeCache 1984 | case 2: 1985 | return &v.unknownFields 1986 | default: 1987 | return nil 1988 | } 1989 | } 1990 | file_ledger_messages_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { 1991 | switch v := v.(*GetStatesResponse); i { 1992 | case 0: 1993 | return &v.state 1994 | case 1: 1995 | return &v.sizeCache 1996 | case 2: 1997 | return &v.unknownFields 1998 | default: 1999 | return nil 2000 | } 2001 | } 2002 | file_ledger_messages_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { 2003 | switch v := v.(*GetHashRequest); i { 2004 | case 0: 2005 | return &v.state 2006 | case 1: 2007 | return &v.sizeCache 2008 | case 2: 2009 | return &v.unknownFields 2010 | default: 2011 | return nil 2012 | } 2013 | } 2014 | file_ledger_messages_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { 2015 | switch v := v.(*GetHashResponse); i { 2016 | case 0: 2017 | return &v.state 2018 | case 1: 2019 | return &v.sizeCache 2020 | case 2: 2021 | return &v.unknownFields 2022 | default: 2023 | return nil 2024 | } 2025 | } 2026 | file_ledger_messages_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { 2027 | switch v := v.(*EndorsementPrincipal); i { 2028 | case 0: 2029 | return &v.state 2030 | case 1: 2031 | return &v.sizeCache 2032 | case 2: 2033 | return &v.unknownFields 2034 | default: 2035 | return nil 2036 | } 2037 | } 2038 | file_ledger_messages_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { 2039 | switch v := v.(*EndorsementRule); i { 2040 | case 0: 2041 | return &v.state 2042 | case 1: 2043 | return &v.sizeCache 2044 | case 2: 2045 | return &v.unknownFields 2046 | default: 2047 | return nil 2048 | } 2049 | } 2050 | file_ledger_messages_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { 2051 | switch v := v.(*EndorsementPolicy); i { 2052 | case 0: 2053 | return &v.state 2054 | case 1: 2055 | return &v.sizeCache 2056 | case 2: 2057 | return &v.unknownFields 2058 | default: 2059 | return nil 2060 | } 2061 | } 2062 | file_ledger_messages_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { 2063 | switch v := v.(*GetEndorsementPolicyRequest); i { 2064 | case 0: 2065 | return &v.state 2066 | case 1: 2067 | return &v.sizeCache 2068 | case 2: 2069 | return &v.unknownFields 2070 | default: 2071 | return nil 2072 | } 2073 | } 2074 | file_ledger_messages_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { 2075 | switch v := v.(*GetEndorsementPolicyResponse); i { 2076 | case 0: 2077 | return &v.state 2078 | case 1: 2079 | return &v.sizeCache 2080 | case 2: 2081 | return &v.unknownFields 2082 | default: 2083 | return nil 2084 | } 2085 | } 2086 | file_ledger_messages_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { 2087 | switch v := v.(*SetEndorsementPolicyRequest); i { 2088 | case 0: 2089 | return &v.state 2090 | case 1: 2091 | return &v.sizeCache 2092 | case 2: 2093 | return &v.unknownFields 2094 | default: 2095 | return nil 2096 | } 2097 | } 2098 | file_ledger_messages_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { 2099 | switch v := v.(*SetEndorsementPolicyResponse); i { 2100 | case 0: 2101 | return &v.state 2102 | case 1: 2103 | return &v.sizeCache 2104 | case 2: 2105 | return &v.unknownFields 2106 | default: 2107 | return nil 2108 | } 2109 | } 2110 | } 2111 | file_ledger_messages_proto_msgTypes[15].OneofWrappers = []interface{}{ 2112 | (*GetStatesRequest_ByKeyRange)(nil), 2113 | (*GetStatesRequest_ByRichQuery)(nil), 2114 | } 2115 | type x struct{} 2116 | out := protoimpl.TypeBuilder{ 2117 | File: protoimpl.DescBuilder{ 2118 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 2119 | RawDescriptor: file_ledger_messages_proto_rawDesc, 2120 | NumEnums: 1, 2121 | NumMessages: 26, 2122 | NumExtensions: 0, 2123 | NumServices: 0, 2124 | }, 2125 | GoTypes: file_ledger_messages_proto_goTypes, 2126 | DependencyIndexes: file_ledger_messages_proto_depIdxs, 2127 | EnumInfos: file_ledger_messages_proto_enumTypes, 2128 | MessageInfos: file_ledger_messages_proto_msgTypes, 2129 | }.Build() 2130 | File_ledger_messages_proto = out.File 2131 | file_ledger_messages_proto_rawDesc = nil 2132 | file_ledger_messages_proto_goTypes = nil 2133 | file_ledger_messages_proto_depIdxs = nil 2134 | } 2135 | --------------------------------------------------------------------------------