github.com/Unheilbar/quorum@v1.0.0/plugin/gen/proto_common/init.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: init.proto 3 4 package proto_common 5 6 import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 ) 16 17 // Reference imports to suppress errors if they are not otherwise used. 18 var _ = proto.Marshal 19 var _ = fmt.Errorf 20 var _ = math.Inf 21 22 // This is a compile-time assertion to ensure that this generated file 23 // is compatible with the proto package it is being compiled against. 24 // A compilation error at this line likely means your copy of the 25 // proto package needs to be updated. 26 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 27 28 // * 29 // A wrapper message to logically group other messages 30 type PluginInitialization struct { 31 XXX_NoUnkeyedLiteral struct{} `json:"-"` 32 XXX_unrecognized []byte `json:"-"` 33 XXX_sizecache int32 `json:"-"` 34 } 35 36 func (m *PluginInitialization) Reset() { *m = PluginInitialization{} } 37 func (m *PluginInitialization) String() string { return proto.CompactTextString(m) } 38 func (*PluginInitialization) ProtoMessage() {} 39 func (*PluginInitialization) Descriptor() ([]byte, []int) { 40 return fileDescriptor_8d036da5b4a9bcf3, []int{0} 41 } 42 43 func (m *PluginInitialization) XXX_Unmarshal(b []byte) error { 44 return xxx_messageInfo_PluginInitialization.Unmarshal(m, b) 45 } 46 func (m *PluginInitialization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 47 return xxx_messageInfo_PluginInitialization.Marshal(b, m, deterministic) 48 } 49 func (m *PluginInitialization) XXX_Merge(src proto.Message) { 50 xxx_messageInfo_PluginInitialization.Merge(m, src) 51 } 52 func (m *PluginInitialization) XXX_Size() int { 53 return xxx_messageInfo_PluginInitialization.Size(m) 54 } 55 func (m *PluginInitialization) XXX_DiscardUnknown() { 56 xxx_messageInfo_PluginInitialization.DiscardUnknown(m) 57 } 58 59 var xxx_messageInfo_PluginInitialization proto.InternalMessageInfo 60 61 // Initialization data for the plugin 62 type PluginInitialization_Request struct { 63 // `geth` node identity 64 HostIdentity string `protobuf:"bytes,1,opt,name=hostIdentity,proto3" json:"hostIdentity,omitempty"` 65 // Raw configuration to be processed by the plugin 66 RawConfiguration []byte `protobuf:"bytes,2,opt,name=rawConfiguration,proto3" json:"rawConfiguration,omitempty"` 67 XXX_NoUnkeyedLiteral struct{} `json:"-"` 68 XXX_unrecognized []byte `json:"-"` 69 XXX_sizecache int32 `json:"-"` 70 } 71 72 func (m *PluginInitialization_Request) Reset() { *m = PluginInitialization_Request{} } 73 func (m *PluginInitialization_Request) String() string { return proto.CompactTextString(m) } 74 func (*PluginInitialization_Request) ProtoMessage() {} 75 func (*PluginInitialization_Request) Descriptor() ([]byte, []int) { 76 return fileDescriptor_8d036da5b4a9bcf3, []int{0, 0} 77 } 78 79 func (m *PluginInitialization_Request) XXX_Unmarshal(b []byte) error { 80 return xxx_messageInfo_PluginInitialization_Request.Unmarshal(m, b) 81 } 82 func (m *PluginInitialization_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 83 return xxx_messageInfo_PluginInitialization_Request.Marshal(b, m, deterministic) 84 } 85 func (m *PluginInitialization_Request) XXX_Merge(src proto.Message) { 86 xxx_messageInfo_PluginInitialization_Request.Merge(m, src) 87 } 88 func (m *PluginInitialization_Request) XXX_Size() int { 89 return xxx_messageInfo_PluginInitialization_Request.Size(m) 90 } 91 func (m *PluginInitialization_Request) XXX_DiscardUnknown() { 92 xxx_messageInfo_PluginInitialization_Request.DiscardUnknown(m) 93 } 94 95 var xxx_messageInfo_PluginInitialization_Request proto.InternalMessageInfo 96 97 func (m *PluginInitialization_Request) GetHostIdentity() string { 98 if m != nil { 99 return m.HostIdentity 100 } 101 return "" 102 } 103 104 func (m *PluginInitialization_Request) GetRawConfiguration() []byte { 105 if m != nil { 106 return m.RawConfiguration 107 } 108 return nil 109 } 110 111 type PluginInitialization_Response struct { 112 XXX_NoUnkeyedLiteral struct{} `json:"-"` 113 XXX_unrecognized []byte `json:"-"` 114 XXX_sizecache int32 `json:"-"` 115 } 116 117 func (m *PluginInitialization_Response) Reset() { *m = PluginInitialization_Response{} } 118 func (m *PluginInitialization_Response) String() string { return proto.CompactTextString(m) } 119 func (*PluginInitialization_Response) ProtoMessage() {} 120 func (*PluginInitialization_Response) Descriptor() ([]byte, []int) { 121 return fileDescriptor_8d036da5b4a9bcf3, []int{0, 1} 122 } 123 124 func (m *PluginInitialization_Response) XXX_Unmarshal(b []byte) error { 125 return xxx_messageInfo_PluginInitialization_Response.Unmarshal(m, b) 126 } 127 func (m *PluginInitialization_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 128 return xxx_messageInfo_PluginInitialization_Response.Marshal(b, m, deterministic) 129 } 130 func (m *PluginInitialization_Response) XXX_Merge(src proto.Message) { 131 xxx_messageInfo_PluginInitialization_Response.Merge(m, src) 132 } 133 func (m *PluginInitialization_Response) XXX_Size() int { 134 return xxx_messageInfo_PluginInitialization_Response.Size(m) 135 } 136 func (m *PluginInitialization_Response) XXX_DiscardUnknown() { 137 xxx_messageInfo_PluginInitialization_Response.DiscardUnknown(m) 138 } 139 140 var xxx_messageInfo_PluginInitialization_Response proto.InternalMessageInfo 141 142 func init() { 143 proto.RegisterType((*PluginInitialization)(nil), "proto_common.PluginInitialization") 144 proto.RegisterType((*PluginInitialization_Request)(nil), "proto_common.PluginInitialization.Request") 145 proto.RegisterType((*PluginInitialization_Response)(nil), "proto_common.PluginInitialization.Response") 146 } 147 148 func init() { proto.RegisterFile("init.proto", fileDescriptor_8d036da5b4a9bcf3) } 149 150 var fileDescriptor_8d036da5b4a9bcf3 = []byte{ 151 // 210 bytes of a gzipped FileDescriptorProto 152 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xca, 0xcc, 0xcb, 0x2c, 153 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0x53, 0xf1, 0xc9, 0xf9, 0xb9, 0xb9, 0xf9, 154 0x79, 0x4a, 0xb5, 0x5c, 0x22, 0x01, 0x39, 0xa5, 0xe9, 0x99, 0x79, 0x9e, 0x79, 0x99, 0x25, 0x99, 155 0x89, 0x39, 0x99, 0x55, 0x89, 0x25, 0x99, 0xf9, 0x79, 0x52, 0x91, 0x5c, 0xec, 0x41, 0xa9, 0x85, 156 0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x4a, 0x5c, 0x3c, 0x19, 0xf9, 0xc5, 0x25, 0x9e, 0x29, 0xa9, 0x79, 157 0x25, 0x99, 0x25, 0x95, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x28, 0x62, 0x42, 0x5a, 0x5c, 158 0x02, 0x45, 0x89, 0xe5, 0xce, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xa5, 0x45, 0x60, 0x23, 0x24, 0x98, 159 0x14, 0x18, 0x35, 0x78, 0x82, 0x30, 0xc4, 0xa5, 0xb8, 0xb8, 0x38, 0x82, 0x52, 0x8b, 0x0b, 0xf2, 160 0xf3, 0x8a, 0x53, 0x8d, 0x4a, 0xb8, 0x04, 0xd1, 0xac, 0x4f, 0x2d, 0x12, 0x8a, 0xe7, 0x62, 0x01, 161 0x71, 0x85, 0xb4, 0xf4, 0x90, 0x9d, 0xaa, 0x87, 0xcd, 0x9d, 0x7a, 0x50, 0x47, 0x4a, 0x69, 0x13, 162 0xa5, 0x16, 0x62, 0xab, 0x93, 0x09, 0x97, 0x78, 0x72, 0x7e, 0xae, 0x5e, 0x61, 0x69, 0x7e, 0x51, 163 0x69, 0xae, 0x5e, 0x01, 0x58, 0x2d, 0x44, 0xbf, 0x13, 0x37, 0x92, 0x43, 0xa2, 0x50, 0x82, 0x2a, 164 0x89, 0x0d, 0xcc, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x97, 0x47, 0x58, 0xf3, 0x4d, 0x01, 165 0x00, 0x00, 166 } 167 168 // Reference imports to suppress errors if they are not otherwise used. 169 var _ context.Context 170 var _ grpc.ClientConn 171 172 // This is a compile-time assertion to ensure that this generated file 173 // is compatible with the grpc package it is being compiled against. 174 const _ = grpc.SupportPackageIsVersion4 175 176 // PluginInitializerClient is the client API for PluginInitializer service. 177 // 178 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 179 type PluginInitializerClient interface { 180 Init(ctx context.Context, in *PluginInitialization_Request, opts ...grpc.CallOption) (*PluginInitialization_Response, error) 181 } 182 183 type pluginInitializerClient struct { 184 cc *grpc.ClientConn 185 } 186 187 func NewPluginInitializerClient(cc *grpc.ClientConn) PluginInitializerClient { 188 return &pluginInitializerClient{cc} 189 } 190 191 func (c *pluginInitializerClient) Init(ctx context.Context, in *PluginInitialization_Request, opts ...grpc.CallOption) (*PluginInitialization_Response, error) { 192 out := new(PluginInitialization_Response) 193 err := c.cc.Invoke(ctx, "/proto_common.PluginInitializer/Init", in, out, opts...) 194 if err != nil { 195 return nil, err 196 } 197 return out, nil 198 } 199 200 // PluginInitializerServer is the server API for PluginInitializer service. 201 type PluginInitializerServer interface { 202 Init(context.Context, *PluginInitialization_Request) (*PluginInitialization_Response, error) 203 } 204 205 // UnimplementedPluginInitializerServer can be embedded to have forward compatible implementations. 206 type UnimplementedPluginInitializerServer struct { 207 } 208 209 func (*UnimplementedPluginInitializerServer) Init(ctx context.Context, req *PluginInitialization_Request) (*PluginInitialization_Response, error) { 210 return nil, status.Errorf(codes.Unimplemented, "method Init not implemented") 211 } 212 213 func RegisterPluginInitializerServer(s *grpc.Server, srv PluginInitializerServer) { 214 s.RegisterService(&_PluginInitializer_serviceDesc, srv) 215 } 216 217 func _PluginInitializer_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 218 in := new(PluginInitialization_Request) 219 if err := dec(in); err != nil { 220 return nil, err 221 } 222 if interceptor == nil { 223 return srv.(PluginInitializerServer).Init(ctx, in) 224 } 225 info := &grpc.UnaryServerInfo{ 226 Server: srv, 227 FullMethod: "/proto_common.PluginInitializer/Init", 228 } 229 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 230 return srv.(PluginInitializerServer).Init(ctx, req.(*PluginInitialization_Request)) 231 } 232 return interceptor(ctx, in, info, handler) 233 } 234 235 var _PluginInitializer_serviceDesc = grpc.ServiceDesc{ 236 ServiceName: "proto_common.PluginInitializer", 237 HandlerType: (*PluginInitializerServer)(nil), 238 Methods: []grpc.MethodDesc{ 239 { 240 MethodName: "Init", 241 Handler: _PluginInitializer_Init_Handler, 242 }, 243 }, 244 Streams: []grpc.StreamDesc{}, 245 Metadata: "init.proto", 246 }