-
Notifications
You must be signed in to change notification settings - Fork 3
/
airtemperaturehistory_wrap.pb.go
34 lines (26 loc) · 1.17 KB
/
airtemperaturehistory_wrap.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Code generated by protoc-gen-wrapper. DO NOT EDIT.
package gen
import (
context "context"
grpc "google.golang.org/grpc"
)
// WrapAirTemperatureHistory adapts a AirTemperatureHistoryServer and presents it as a AirTemperatureHistoryClient
func WrapAirTemperatureHistory(server AirTemperatureHistoryServer) AirTemperatureHistoryClient {
return &airTemperatureHistoryWrapper{server}
}
type airTemperatureHistoryWrapper struct {
server AirTemperatureHistoryServer
}
// compile time check that we implement the interface we need
var _ AirTemperatureHistoryClient = (*airTemperatureHistoryWrapper)(nil)
// UnwrapServer returns the underlying server instance.
func (w *airTemperatureHistoryWrapper) UnwrapServer() AirTemperatureHistoryServer {
return w.server
}
// Unwrap implements wrap.Unwrapper and returns the underlying server instance as an unknown type.
func (w *airTemperatureHistoryWrapper) Unwrap() any {
return w.UnwrapServer()
}
func (w *airTemperatureHistoryWrapper) ListAirTemperatureHistory(ctx context.Context, req *ListAirTemperatureHistoryRequest, _ ...grpc.CallOption) (*ListAirTemperatureHistoryResponse, error) {
return w.server.ListAirTemperatureHistory(ctx, req)
}