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