// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v4.25.1 // source: managedendpoint.proto package proto import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 const ( EndpointHarnessService_Register_FullMethodName = "/managedendpoint.EndpointHarnessService/Register" EndpointHarnessService_WatchConfig_FullMethodName = "/managedendpoint.EndpointHarnessService/WatchConfig" EndpointHarnessService_AckConfig_FullMethodName = "/managedendpoint.EndpointHarnessService/AckConfig" EndpointHarnessService_Heartbeat_FullMethodName = "/managedendpoint.EndpointHarnessService/Heartbeat" EndpointHarnessService_PublishEvents_FullMethodName = "/managedendpoint.EndpointHarnessService/PublishEvents" ) // EndpointHarnessServiceClient is the client API for EndpointHarnessService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type EndpointHarnessServiceClient interface { // Register announces a replica's harness and returns its identity and the // current live config, if any. Idempotent per container. Register(ctx context.Context, in *HarnessRegisterRequest, opts ...grpc.CallOption) (*HarnessRegisterResponse, error) // WatchConfig streams live config revisions set on the replica. WatchConfig(ctx context.Context, in *HarnessWatchConfigRequest, opts ...grpc.CallOption) (EndpointHarnessService_WatchConfigClient, error) // AckConfig reports whether a revision was applied. AckConfig(ctx context.Context, in *HarnessAckConfigRequest, opts ...grpc.CallOption) (*HarnessAckConfigResponse, error) // Heartbeat reports liveness, capacity and engine metrics. Heartbeat(ctx context.Context, in *HarnessHeartbeatRequest, opts ...grpc.CallOption) (*HarnessHeartbeatResponse, error) // PublishEvents forwards engine-side events into the platform event stream. PublishEvents(ctx context.Context, in *HarnessPublishEventsRequest, opts ...grpc.CallOption) (*HarnessPublishEventsResponse, error) } type endpointHarnessServiceClient struct { cc grpc.ClientConnInterface } func NewEndpointHarnessServiceClient(cc grpc.ClientConnInterface) EndpointHarnessServiceClient { return &endpointHarnessServiceClient{cc} } func (c *endpointHarnessServiceClient) Register(ctx context.Context, in *HarnessRegisterRequest, opts ...grpc.CallOption) (*HarnessRegisterResponse, error) { out := new(HarnessRegisterResponse) err := c.cc.Invoke(ctx, EndpointHarnessService_Register_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *endpointHarnessServiceClient) WatchConfig(ctx context.Context, in *HarnessWatchConfigRequest, opts ...grpc.CallOption) (EndpointHarnessService_WatchConfigClient, error) { stream, err := c.cc.NewStream(ctx, &EndpointHarnessService_ServiceDesc.Streams[0], EndpointHarnessService_WatchConfig_FullMethodName, opts...) if err != nil { return nil, err } x := &endpointHarnessServiceWatchConfigClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } if err := x.ClientStream.CloseSend(); err != nil { return nil, err } return x, nil } type EndpointHarnessService_WatchConfigClient interface { Recv() (*ReplicaConfig, error) grpc.ClientStream } type endpointHarnessServiceWatchConfigClient struct { grpc.ClientStream } func (x *endpointHarnessServiceWatchConfigClient) Recv() (*ReplicaConfig, error) { m := new(ReplicaConfig) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *endpointHarnessServiceClient) AckConfig(ctx context.Context, in *HarnessAckConfigRequest, opts ...grpc.CallOption) (*HarnessAckConfigResponse, error) { out := new(HarnessAckConfigResponse) err := c.cc.Invoke(ctx, EndpointHarnessService_AckConfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *endpointHarnessServiceClient) Heartbeat(ctx context.Context, in *HarnessHeartbeatRequest, opts ...grpc.CallOption) (*HarnessHeartbeatResponse, error) { out := new(HarnessHeartbeatResponse) err := c.cc.Invoke(ctx, EndpointHarnessService_Heartbeat_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *endpointHarnessServiceClient) PublishEvents(ctx context.Context, in *HarnessPublishEventsRequest, opts ...grpc.CallOption) (*HarnessPublishEventsResponse, error) { out := new(HarnessPublishEventsResponse) err := c.cc.Invoke(ctx, EndpointHarnessService_PublishEvents_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // EndpointHarnessServiceServer is the server API for EndpointHarnessService service. // All implementations must embed UnimplementedEndpointHarnessServiceServer // for forward compatibility type EndpointHarnessServiceServer interface { // Register announces a replica's harness and returns its identity and the // current live config, if any. Idempotent per container. Register(context.Context, *HarnessRegisterRequest) (*HarnessRegisterResponse, error) // WatchConfig streams live config revisions set on the replica. WatchConfig(*HarnessWatchConfigRequest, EndpointHarnessService_WatchConfigServer) error // AckConfig reports whether a revision was applied. AckConfig(context.Context, *HarnessAckConfigRequest) (*HarnessAckConfigResponse, error) // Heartbeat reports liveness, capacity and engine metrics. Heartbeat(context.Context, *HarnessHeartbeatRequest) (*HarnessHeartbeatResponse, error) // PublishEvents forwards engine-side events into the platform event stream. PublishEvents(context.Context, *HarnessPublishEventsRequest) (*HarnessPublishEventsResponse, error) mustEmbedUnimplementedEndpointHarnessServiceServer() } // UnimplementedEndpointHarnessServiceServer must be embedded to have forward compatible implementations. type UnimplementedEndpointHarnessServiceServer struct { } func (UnimplementedEndpointHarnessServiceServer) Register(context.Context, *HarnessRegisterRequest) (*HarnessRegisterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Register not implemented") } func (UnimplementedEndpointHarnessServiceServer) WatchConfig(*HarnessWatchConfigRequest, EndpointHarnessService_WatchConfigServer) error { return status.Errorf(codes.Unimplemented, "method WatchConfig not implemented") } func (UnimplementedEndpointHarnessServiceServer) AckConfig(context.Context, *HarnessAckConfigRequest) (*HarnessAckConfigResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AckConfig not implemented") } func (UnimplementedEndpointHarnessServiceServer) Heartbeat(context.Context, *HarnessHeartbeatRequest) (*HarnessHeartbeatResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Heartbeat not implemented") } func (UnimplementedEndpointHarnessServiceServer) PublishEvents(context.Context, *HarnessPublishEventsRequest) (*HarnessPublishEventsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PublishEvents not implemented") } func (UnimplementedEndpointHarnessServiceServer) mustEmbedUnimplementedEndpointHarnessServiceServer() { } // UnsafeEndpointHarnessServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to EndpointHarnessServiceServer will // result in compilation errors. type UnsafeEndpointHarnessServiceServer interface { mustEmbedUnimplementedEndpointHarnessServiceServer() } func RegisterEndpointHarnessServiceServer(s grpc.ServiceRegistrar, srv EndpointHarnessServiceServer) { s.RegisterService(&EndpointHarnessService_ServiceDesc, srv) } func _EndpointHarnessService_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(HarnessRegisterRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointHarnessServiceServer).Register(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointHarnessService_Register_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointHarnessServiceServer).Register(ctx, req.(*HarnessRegisterRequest)) } return interceptor(ctx, in, info, handler) } func _EndpointHarnessService_WatchConfig_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(HarnessWatchConfigRequest) if err := stream.RecvMsg(m); err != nil { return err } return srv.(EndpointHarnessServiceServer).WatchConfig(m, &endpointHarnessServiceWatchConfigServer{stream}) } type EndpointHarnessService_WatchConfigServer interface { Send(*ReplicaConfig) error grpc.ServerStream } type endpointHarnessServiceWatchConfigServer struct { grpc.ServerStream } func (x *endpointHarnessServiceWatchConfigServer) Send(m *ReplicaConfig) error { return x.ServerStream.SendMsg(m) } func _EndpointHarnessService_AckConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(HarnessAckConfigRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointHarnessServiceServer).AckConfig(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointHarnessService_AckConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointHarnessServiceServer).AckConfig(ctx, req.(*HarnessAckConfigRequest)) } return interceptor(ctx, in, info, handler) } func _EndpointHarnessService_Heartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(HarnessHeartbeatRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointHarnessServiceServer).Heartbeat(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointHarnessService_Heartbeat_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointHarnessServiceServer).Heartbeat(ctx, req.(*HarnessHeartbeatRequest)) } return interceptor(ctx, in, info, handler) } func _EndpointHarnessService_PublishEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(HarnessPublishEventsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointHarnessServiceServer).PublishEvents(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointHarnessService_PublishEvents_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointHarnessServiceServer).PublishEvents(ctx, req.(*HarnessPublishEventsRequest)) } return interceptor(ctx, in, info, handler) } // EndpointHarnessService_ServiceDesc is the grpc.ServiceDesc for EndpointHarnessService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var EndpointHarnessService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "managedendpoint.EndpointHarnessService", HandlerType: (*EndpointHarnessServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _EndpointHarnessService_Register_Handler, }, { MethodName: "AckConfig", Handler: _EndpointHarnessService_AckConfig_Handler, }, { MethodName: "Heartbeat", Handler: _EndpointHarnessService_Heartbeat_Handler, }, { MethodName: "PublishEvents", Handler: _EndpointHarnessService_PublishEvents_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "WatchConfig", Handler: _EndpointHarnessService_WatchConfig_Handler, ServerStreams: true, }, }, Metadata: "managedendpoint.proto", } const ( EndpointAdminService_ListEndpoints_FullMethodName = "/managedendpoint.EndpointAdminService/ListEndpoints" EndpointAdminService_GetEndpoint_FullMethodName = "/managedendpoint.EndpointAdminService/GetEndpoint" EndpointAdminService_ListReplicas_FullMethodName = "/managedendpoint.EndpointAdminService/ListReplicas" EndpointAdminService_GetMetrics_FullMethodName = "/managedendpoint.EndpointAdminService/GetMetrics" EndpointAdminService_SetReplicaConfig_FullMethodName = "/managedendpoint.EndpointAdminService/SetReplicaConfig" EndpointAdminService_StopReplica_FullMethodName = "/managedendpoint.EndpointAdminService/StopReplica" EndpointAdminService_GetGitOpsStatus_FullMethodName = "/managedendpoint.EndpointAdminService/GetGitOpsStatus" EndpointAdminService_ApplyRepo_FullMethodName = "/managedendpoint.EndpointAdminService/ApplyRepo" ) // EndpointAdminServiceClient is the client API for EndpointAdminService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type EndpointAdminServiceClient interface { ListEndpoints(ctx context.Context, in *ListEndpointsRequest, opts ...grpc.CallOption) (*ListEndpointsResponse, error) GetEndpoint(ctx context.Context, in *GetEndpointRequest, opts ...grpc.CallOption) (*GetEndpointResponse, error) ListReplicas(ctx context.Context, in *ListReplicasRequest, opts ...grpc.CallOption) (*ListReplicasResponse, error) GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error) // SetReplicaConfig pushes a live config to one replica's harness and waits // for its ack. A winning setting becomes a commit to the repo (engine args // or harness seed); nothing here is durable. SetReplicaConfig(ctx context.Context, in *SetReplicaConfigRequest, opts ...grpc.CallOption) (*SetReplicaConfigResponse, error) // StopReplica drains and stops a replica; the controller refills. StopReplica(ctx context.Context, in *StopReplicaRequest, opts ...grpc.CallOption) (*StopReplicaResponse, error) GetGitOpsStatus(ctx context.Context, in *GetGitOpsStatusRequest, opts ...grpc.CallOption) (*GetGitOpsStatusResponse, error) ApplyRepo(ctx context.Context, in *ApplyRepoRequest, opts ...grpc.CallOption) (*ApplyRepoResponse, error) } type endpointAdminServiceClient struct { cc grpc.ClientConnInterface } func NewEndpointAdminServiceClient(cc grpc.ClientConnInterface) EndpointAdminServiceClient { return &endpointAdminServiceClient{cc} } func (c *endpointAdminServiceClient) ListEndpoints(ctx context.Context, in *ListEndpointsRequest, opts ...grpc.CallOption) (*ListEndpointsResponse, error) { out := new(ListEndpointsResponse) err := c.cc.Invoke(ctx, EndpointAdminService_ListEndpoints_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *endpointAdminServiceClient) GetEndpoint(ctx context.Context, in *GetEndpointRequest, opts ...grpc.CallOption) (*GetEndpointResponse, error) { out := new(GetEndpointResponse) err := c.cc.Invoke(ctx, EndpointAdminService_GetEndpoint_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *endpointAdminServiceClient) ListReplicas(ctx context.Context, in *ListReplicasRequest, opts ...grpc.CallOption) (*ListReplicasResponse, error) { out := new(ListReplicasResponse) err := c.cc.Invoke(ctx, EndpointAdminService_ListReplicas_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *endpointAdminServiceClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error) { out := new(GetMetricsResponse) err := c.cc.Invoke(ctx, EndpointAdminService_GetMetrics_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *endpointAdminServiceClient) SetReplicaConfig(ctx context.Context, in *SetReplicaConfigRequest, opts ...grpc.CallOption) (*SetReplicaConfigResponse, error) { out := new(SetReplicaConfigResponse) err := c.cc.Invoke(ctx, EndpointAdminService_SetReplicaConfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *endpointAdminServiceClient) StopReplica(ctx context.Context, in *StopReplicaRequest, opts ...grpc.CallOption) (*StopReplicaResponse, error) { out := new(StopReplicaResponse) err := c.cc.Invoke(ctx, EndpointAdminService_StopReplica_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *endpointAdminServiceClient) GetGitOpsStatus(ctx context.Context, in *GetGitOpsStatusRequest, opts ...grpc.CallOption) (*GetGitOpsStatusResponse, error) { out := new(GetGitOpsStatusResponse) err := c.cc.Invoke(ctx, EndpointAdminService_GetGitOpsStatus_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *endpointAdminServiceClient) ApplyRepo(ctx context.Context, in *ApplyRepoRequest, opts ...grpc.CallOption) (*ApplyRepoResponse, error) { out := new(ApplyRepoResponse) err := c.cc.Invoke(ctx, EndpointAdminService_ApplyRepo_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // EndpointAdminServiceServer is the server API for EndpointAdminService service. // All implementations must embed UnimplementedEndpointAdminServiceServer // for forward compatibility type EndpointAdminServiceServer interface { ListEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error) GetEndpoint(context.Context, *GetEndpointRequest) (*GetEndpointResponse, error) ListReplicas(context.Context, *ListReplicasRequest) (*ListReplicasResponse, error) GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error) // SetReplicaConfig pushes a live config to one replica's harness and waits // for its ack. A winning setting becomes a commit to the repo (engine args // or harness seed); nothing here is durable. SetReplicaConfig(context.Context, *SetReplicaConfigRequest) (*SetReplicaConfigResponse, error) // StopReplica drains and stops a replica; the controller refills. StopReplica(context.Context, *StopReplicaRequest) (*StopReplicaResponse, error) GetGitOpsStatus(context.Context, *GetGitOpsStatusRequest) (*GetGitOpsStatusResponse, error) ApplyRepo(context.Context, *ApplyRepoRequest) (*ApplyRepoResponse, error) mustEmbedUnimplementedEndpointAdminServiceServer() } // UnimplementedEndpointAdminServiceServer must be embedded to have forward compatible implementations. type UnimplementedEndpointAdminServiceServer struct { } func (UnimplementedEndpointAdminServiceServer) ListEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListEndpoints not implemented") } func (UnimplementedEndpointAdminServiceServer) GetEndpoint(context.Context, *GetEndpointRequest) (*GetEndpointResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetEndpoint not implemented") } func (UnimplementedEndpointAdminServiceServer) ListReplicas(context.Context, *ListReplicasRequest) (*ListReplicasResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListReplicas not implemented") } func (UnimplementedEndpointAdminServiceServer) GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented") } func (UnimplementedEndpointAdminServiceServer) SetReplicaConfig(context.Context, *SetReplicaConfigRequest) (*SetReplicaConfigResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetReplicaConfig not implemented") } func (UnimplementedEndpointAdminServiceServer) StopReplica(context.Context, *StopReplicaRequest) (*StopReplicaResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StopReplica not implemented") } func (UnimplementedEndpointAdminServiceServer) GetGitOpsStatus(context.Context, *GetGitOpsStatusRequest) (*GetGitOpsStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetGitOpsStatus not implemented") } func (UnimplementedEndpointAdminServiceServer) ApplyRepo(context.Context, *ApplyRepoRequest) (*ApplyRepoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ApplyRepo not implemented") } func (UnimplementedEndpointAdminServiceServer) mustEmbedUnimplementedEndpointAdminServiceServer() {} // UnsafeEndpointAdminServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to EndpointAdminServiceServer will // result in compilation errors. type UnsafeEndpointAdminServiceServer interface { mustEmbedUnimplementedEndpointAdminServiceServer() } func RegisterEndpointAdminServiceServer(s grpc.ServiceRegistrar, srv EndpointAdminServiceServer) { s.RegisterService(&EndpointAdminService_ServiceDesc, srv) } func _EndpointAdminService_ListEndpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListEndpointsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointAdminServiceServer).ListEndpoints(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointAdminService_ListEndpoints_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointAdminServiceServer).ListEndpoints(ctx, req.(*ListEndpointsRequest)) } return interceptor(ctx, in, info, handler) } func _EndpointAdminService_GetEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetEndpointRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointAdminServiceServer).GetEndpoint(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointAdminService_GetEndpoint_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointAdminServiceServer).GetEndpoint(ctx, req.(*GetEndpointRequest)) } return interceptor(ctx, in, info, handler) } func _EndpointAdminService_ListReplicas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListReplicasRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointAdminServiceServer).ListReplicas(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointAdminService_ListReplicas_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointAdminServiceServer).ListReplicas(ctx, req.(*ListReplicasRequest)) } return interceptor(ctx, in, info, handler) } func _EndpointAdminService_GetMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetMetricsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointAdminServiceServer).GetMetrics(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointAdminService_GetMetrics_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointAdminServiceServer).GetMetrics(ctx, req.(*GetMetricsRequest)) } return interceptor(ctx, in, info, handler) } func _EndpointAdminService_SetReplicaConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SetReplicaConfigRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointAdminServiceServer).SetReplicaConfig(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointAdminService_SetReplicaConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointAdminServiceServer).SetReplicaConfig(ctx, req.(*SetReplicaConfigRequest)) } return interceptor(ctx, in, info, handler) } func _EndpointAdminService_StopReplica_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(StopReplicaRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointAdminServiceServer).StopReplica(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointAdminService_StopReplica_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointAdminServiceServer).StopReplica(ctx, req.(*StopReplicaRequest)) } return interceptor(ctx, in, info, handler) } func _EndpointAdminService_GetGitOpsStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetGitOpsStatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointAdminServiceServer).GetGitOpsStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointAdminService_GetGitOpsStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointAdminServiceServer).GetGitOpsStatus(ctx, req.(*GetGitOpsStatusRequest)) } return interceptor(ctx, in, info, handler) } func _EndpointAdminService_ApplyRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ApplyRepoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EndpointAdminServiceServer).ApplyRepo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EndpointAdminService_ApplyRepo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EndpointAdminServiceServer).ApplyRepo(ctx, req.(*ApplyRepoRequest)) } return interceptor(ctx, in, info, handler) } // EndpointAdminService_ServiceDesc is the grpc.ServiceDesc for EndpointAdminService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var EndpointAdminService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "managedendpoint.EndpointAdminService", HandlerType: (*EndpointAdminServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListEndpoints", Handler: _EndpointAdminService_ListEndpoints_Handler, }, { MethodName: "GetEndpoint", Handler: _EndpointAdminService_GetEndpoint_Handler, }, { MethodName: "ListReplicas", Handler: _EndpointAdminService_ListReplicas_Handler, }, { MethodName: "GetMetrics", Handler: _EndpointAdminService_GetMetrics_Handler, }, { MethodName: "SetReplicaConfig", Handler: _EndpointAdminService_SetReplicaConfig_Handler, }, { MethodName: "StopReplica", Handler: _EndpointAdminService_StopReplica_Handler, }, { MethodName: "GetGitOpsStatus", Handler: _EndpointAdminService_GetGitOpsStatus_Handler, }, { MethodName: "ApplyRepo", Handler: _EndpointAdminService_ApplyRepo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "managedendpoint.proto", }