github.com/prysmaticlabs/prysm@v1.4.4/proto/beacon/rpc/v1/health.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.15.8
     5  // source: proto/beacon/rpc/v1/health.proto
     6  
     7  package ethereum_beacon_rpc_v1
     8  
     9  import (
    10  	context "context"
    11  	reflect "reflect"
    12  	sync "sync"
    13  
    14  	proto "github.com/golang/protobuf/proto"
    15  	empty "github.com/golang/protobuf/ptypes/empty"
    16  	_ "google.golang.org/genproto/googleapis/api/annotations"
    17  	grpc "google.golang.org/grpc"
    18  	codes "google.golang.org/grpc/codes"
    19  	status "google.golang.org/grpc/status"
    20  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    21  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    22  )
    23  
    24  const (
    25  	// Verify that this generated code is sufficiently up-to-date.
    26  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    27  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    28  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    29  )
    30  
    31  // This is a compile-time assertion that a sufficiently up-to-date version
    32  // of the legacy proto package is being used.
    33  const _ = proto.ProtoPackageIsVersion4
    34  
    35  type LogsResponse struct {
    36  	state         protoimpl.MessageState
    37  	sizeCache     protoimpl.SizeCache
    38  	unknownFields protoimpl.UnknownFields
    39  
    40  	Logs []string `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
    41  }
    42  
    43  func (x *LogsResponse) Reset() {
    44  	*x = LogsResponse{}
    45  	if protoimpl.UnsafeEnabled {
    46  		mi := &file_proto_beacon_rpc_v1_health_proto_msgTypes[0]
    47  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    48  		ms.StoreMessageInfo(mi)
    49  	}
    50  }
    51  
    52  func (x *LogsResponse) String() string {
    53  	return protoimpl.X.MessageStringOf(x)
    54  }
    55  
    56  func (*LogsResponse) ProtoMessage() {}
    57  
    58  func (x *LogsResponse) ProtoReflect() protoreflect.Message {
    59  	mi := &file_proto_beacon_rpc_v1_health_proto_msgTypes[0]
    60  	if protoimpl.UnsafeEnabled && x != nil {
    61  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    62  		if ms.LoadMessageInfo() == nil {
    63  			ms.StoreMessageInfo(mi)
    64  		}
    65  		return ms
    66  	}
    67  	return mi.MessageOf(x)
    68  }
    69  
    70  // Deprecated: Use LogsResponse.ProtoReflect.Descriptor instead.
    71  func (*LogsResponse) Descriptor() ([]byte, []int) {
    72  	return file_proto_beacon_rpc_v1_health_proto_rawDescGZIP(), []int{0}
    73  }
    74  
    75  func (x *LogsResponse) GetLogs() []string {
    76  	if x != nil {
    77  		return x.Logs
    78  	}
    79  	return nil
    80  }
    81  
    82  var File_proto_beacon_rpc_v1_health_proto protoreflect.FileDescriptor
    83  
    84  var file_proto_beacon_rpc_v1_health_proto_rawDesc = []byte{
    85  	0x0a, 0x20, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2f, 0x72,
    86  	0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f,
    87  	0x74, 0x6f, 0x12, 0x16, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x62, 0x65, 0x61,
    88  	0x63, 0x6f, 0x6e, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
    89  	0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
    90  	0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
    91  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e,
    92  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x22, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73,
    93  	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20,
    94  	0x03, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x32, 0x86, 0x01, 0x0a, 0x06, 0x48, 0x65,
    95  	0x61, 0x6c, 0x74, 0x68, 0x12, 0x7c, 0x0a, 0x10, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x65,
    96  	0x61, 0x63, 0x6f, 0x6e, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
    97  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
    98  	0x1a, 0x24, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x62, 0x65, 0x61, 0x63,
    99  	0x6f, 0x6e, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65,
   100  	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20,
   101  	0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x68, 0x65,
   102  	0x61, 0x6c, 0x74, 0x68, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d,
   103  	0x30, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   104  }
   105  
   106  var (
   107  	file_proto_beacon_rpc_v1_health_proto_rawDescOnce sync.Once
   108  	file_proto_beacon_rpc_v1_health_proto_rawDescData = file_proto_beacon_rpc_v1_health_proto_rawDesc
   109  )
   110  
   111  func file_proto_beacon_rpc_v1_health_proto_rawDescGZIP() []byte {
   112  	file_proto_beacon_rpc_v1_health_proto_rawDescOnce.Do(func() {
   113  		file_proto_beacon_rpc_v1_health_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_beacon_rpc_v1_health_proto_rawDescData)
   114  	})
   115  	return file_proto_beacon_rpc_v1_health_proto_rawDescData
   116  }
   117  
   118  var file_proto_beacon_rpc_v1_health_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   119  var file_proto_beacon_rpc_v1_health_proto_goTypes = []interface{}{
   120  	(*LogsResponse)(nil), // 0: ethereum.beacon.rpc.v1.LogsResponse
   121  	(*empty.Empty)(nil),  // 1: google.protobuf.Empty
   122  }
   123  var file_proto_beacon_rpc_v1_health_proto_depIdxs = []int32{
   124  	1, // 0: ethereum.beacon.rpc.v1.Health.StreamBeaconLogs:input_type -> google.protobuf.Empty
   125  	0, // 1: ethereum.beacon.rpc.v1.Health.StreamBeaconLogs:output_type -> ethereum.beacon.rpc.v1.LogsResponse
   126  	1, // [1:2] is the sub-list for method output_type
   127  	0, // [0:1] is the sub-list for method input_type
   128  	0, // [0:0] is the sub-list for extension type_name
   129  	0, // [0:0] is the sub-list for extension extendee
   130  	0, // [0:0] is the sub-list for field type_name
   131  }
   132  
   133  func init() { file_proto_beacon_rpc_v1_health_proto_init() }
   134  func file_proto_beacon_rpc_v1_health_proto_init() {
   135  	if File_proto_beacon_rpc_v1_health_proto != nil {
   136  		return
   137  	}
   138  	if !protoimpl.UnsafeEnabled {
   139  		file_proto_beacon_rpc_v1_health_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   140  			switch v := v.(*LogsResponse); i {
   141  			case 0:
   142  				return &v.state
   143  			case 1:
   144  				return &v.sizeCache
   145  			case 2:
   146  				return &v.unknownFields
   147  			default:
   148  				return nil
   149  			}
   150  		}
   151  	}
   152  	type x struct{}
   153  	out := protoimpl.TypeBuilder{
   154  		File: protoimpl.DescBuilder{
   155  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   156  			RawDescriptor: file_proto_beacon_rpc_v1_health_proto_rawDesc,
   157  			NumEnums:      0,
   158  			NumMessages:   1,
   159  			NumExtensions: 0,
   160  			NumServices:   1,
   161  		},
   162  		GoTypes:           file_proto_beacon_rpc_v1_health_proto_goTypes,
   163  		DependencyIndexes: file_proto_beacon_rpc_v1_health_proto_depIdxs,
   164  		MessageInfos:      file_proto_beacon_rpc_v1_health_proto_msgTypes,
   165  	}.Build()
   166  	File_proto_beacon_rpc_v1_health_proto = out.File
   167  	file_proto_beacon_rpc_v1_health_proto_rawDesc = nil
   168  	file_proto_beacon_rpc_v1_health_proto_goTypes = nil
   169  	file_proto_beacon_rpc_v1_health_proto_depIdxs = nil
   170  }
   171  
   172  // Reference imports to suppress errors if they are not otherwise used.
   173  var _ context.Context
   174  var _ grpc.ClientConnInterface
   175  
   176  // This is a compile-time assertion to ensure that this generated file
   177  // is compatible with the grpc package it is being compiled against.
   178  const _ = grpc.SupportPackageIsVersion6
   179  
   180  // HealthClient is the client API for Health service.
   181  //
   182  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   183  type HealthClient interface {
   184  	StreamBeaconLogs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (Health_StreamBeaconLogsClient, error)
   185  }
   186  
   187  type healthClient struct {
   188  	cc grpc.ClientConnInterface
   189  }
   190  
   191  func NewHealthClient(cc grpc.ClientConnInterface) HealthClient {
   192  	return &healthClient{cc}
   193  }
   194  
   195  func (c *healthClient) StreamBeaconLogs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (Health_StreamBeaconLogsClient, error) {
   196  	stream, err := c.cc.NewStream(ctx, &_Health_serviceDesc.Streams[0], "/ethereum.beacon.rpc.v1.Health/StreamBeaconLogs", opts...)
   197  	if err != nil {
   198  		return nil, err
   199  	}
   200  	x := &healthStreamBeaconLogsClient{stream}
   201  	if err := x.ClientStream.SendMsg(in); err != nil {
   202  		return nil, err
   203  	}
   204  	if err := x.ClientStream.CloseSend(); err != nil {
   205  		return nil, err
   206  	}
   207  	return x, nil
   208  }
   209  
   210  type Health_StreamBeaconLogsClient interface {
   211  	Recv() (*LogsResponse, error)
   212  	grpc.ClientStream
   213  }
   214  
   215  type healthStreamBeaconLogsClient struct {
   216  	grpc.ClientStream
   217  }
   218  
   219  func (x *healthStreamBeaconLogsClient) Recv() (*LogsResponse, error) {
   220  	m := new(LogsResponse)
   221  	if err := x.ClientStream.RecvMsg(m); err != nil {
   222  		return nil, err
   223  	}
   224  	return m, nil
   225  }
   226  
   227  // HealthServer is the server API for Health service.
   228  type HealthServer interface {
   229  	StreamBeaconLogs(*empty.Empty, Health_StreamBeaconLogsServer) error
   230  }
   231  
   232  // UnimplementedHealthServer can be embedded to have forward compatible implementations.
   233  type UnimplementedHealthServer struct {
   234  }
   235  
   236  func (*UnimplementedHealthServer) StreamBeaconLogs(*empty.Empty, Health_StreamBeaconLogsServer) error {
   237  	return status.Errorf(codes.Unimplemented, "method StreamBeaconLogs not implemented")
   238  }
   239  
   240  func RegisterHealthServer(s *grpc.Server, srv HealthServer) {
   241  	s.RegisterService(&_Health_serviceDesc, srv)
   242  }
   243  
   244  func _Health_StreamBeaconLogs_Handler(srv interface{}, stream grpc.ServerStream) error {
   245  	m := new(empty.Empty)
   246  	if err := stream.RecvMsg(m); err != nil {
   247  		return err
   248  	}
   249  	return srv.(HealthServer).StreamBeaconLogs(m, &healthStreamBeaconLogsServer{stream})
   250  }
   251  
   252  type Health_StreamBeaconLogsServer interface {
   253  	Send(*LogsResponse) error
   254  	grpc.ServerStream
   255  }
   256  
   257  type healthStreamBeaconLogsServer struct {
   258  	grpc.ServerStream
   259  }
   260  
   261  func (x *healthStreamBeaconLogsServer) Send(m *LogsResponse) error {
   262  	return x.ServerStream.SendMsg(m)
   263  }
   264  
   265  var _Health_serviceDesc = grpc.ServiceDesc{
   266  	ServiceName: "ethereum.beacon.rpc.v1.Health",
   267  	HandlerType: (*HealthServer)(nil),
   268  	Methods:     []grpc.MethodDesc{},
   269  	Streams: []grpc.StreamDesc{
   270  		{
   271  			StreamName:    "StreamBeaconLogs",
   272  			Handler:       _Health_StreamBeaconLogs_Handler,
   273  			ServerStreams: true,
   274  		},
   275  	},
   276  	Metadata: "proto/beacon/rpc/v1/health.proto",
   277  }