blob: 7d44dd2d98ac3c7e97c79fac263853cc84a91908 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: infra/appengine/rotation-proxy/proto/rotation_proxy.proto
package rotationproxy
import prpc "go.chromium.org/luci/grpc/prpc"
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Request to update a list of rotations.
type BatchUpdateRotationsRequest struct {
// The rotations to update.
Requests []*UpdateRotationRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchUpdateRotationsRequest) Reset() { *m = BatchUpdateRotationsRequest{} }
func (m *BatchUpdateRotationsRequest) String() string { return proto.CompactTextString(m) }
func (*BatchUpdateRotationsRequest) ProtoMessage() {}
func (*BatchUpdateRotationsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_83a28b40e80ae262, []int{0}
}
func (m *BatchUpdateRotationsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchUpdateRotationsRequest.Unmarshal(m, b)
}
func (m *BatchUpdateRotationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchUpdateRotationsRequest.Marshal(b, m, deterministic)
}
func (m *BatchUpdateRotationsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchUpdateRotationsRequest.Merge(m, src)
}
func (m *BatchUpdateRotationsRequest) XXX_Size() int {
return xxx_messageInfo_BatchUpdateRotationsRequest.Size(m)
}
func (m *BatchUpdateRotationsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchUpdateRotationsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchUpdateRotationsRequest proto.InternalMessageInfo
func (m *BatchUpdateRotationsRequest) GetRequests() []*UpdateRotationRequest {
if m != nil {
return m.Requests
}
return nil
}
type UpdateRotationRequest struct {
// The rotation to update.
Rotation *Rotation `protobuf:"bytes,1,opt,name=rotation,proto3" json:"rotation,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateRotationRequest) Reset() { *m = UpdateRotationRequest{} }
func (m *UpdateRotationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateRotationRequest) ProtoMessage() {}
func (*UpdateRotationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_83a28b40e80ae262, []int{1}
}
func (m *UpdateRotationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateRotationRequest.Unmarshal(m, b)
}
func (m *UpdateRotationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateRotationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateRotationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateRotationRequest.Merge(m, src)
}
func (m *UpdateRotationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateRotationRequest.Size(m)
}
func (m *UpdateRotationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateRotationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateRotationRequest proto.InternalMessageInfo
func (m *UpdateRotationRequest) GetRotation() *Rotation {
if m != nil {
return m.Rotation
}
return nil
}
type BatchUpdateRotationsResponse struct {
// Rotation updated.
Rotations []*Rotation `protobuf:"bytes,1,rep,name=rotations,proto3" json:"rotations,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchUpdateRotationsResponse) Reset() { *m = BatchUpdateRotationsResponse{} }
func (m *BatchUpdateRotationsResponse) String() string { return proto.CompactTextString(m) }
func (*BatchUpdateRotationsResponse) ProtoMessage() {}
func (*BatchUpdateRotationsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_83a28b40e80ae262, []int{2}
}
func (m *BatchUpdateRotationsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchUpdateRotationsResponse.Unmarshal(m, b)
}
func (m *BatchUpdateRotationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchUpdateRotationsResponse.Marshal(b, m, deterministic)
}
func (m *BatchUpdateRotationsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchUpdateRotationsResponse.Merge(m, src)
}
func (m *BatchUpdateRotationsResponse) XXX_Size() int {
return xxx_messageInfo_BatchUpdateRotationsResponse.Size(m)
}
func (m *BatchUpdateRotationsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_BatchUpdateRotationsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_BatchUpdateRotationsResponse proto.InternalMessageInfo
func (m *BatchUpdateRotationsResponse) GetRotations() []*Rotation {
if m != nil {
return m.Rotations
}
return nil
}
type GetRotationRequest struct {
// The name of the rotation to fetch.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetRotationRequest) Reset() { *m = GetRotationRequest{} }
func (m *GetRotationRequest) String() string { return proto.CompactTextString(m) }
func (*GetRotationRequest) ProtoMessage() {}
func (*GetRotationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_83a28b40e80ae262, []int{3}
}
func (m *GetRotationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetRotationRequest.Unmarshal(m, b)
}
func (m *GetRotationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetRotationRequest.Marshal(b, m, deterministic)
}
func (m *GetRotationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRotationRequest.Merge(m, src)
}
func (m *GetRotationRequest) XXX_Size() int {
return xxx_messageInfo_GetRotationRequest.Size(m)
}
func (m *GetRotationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRotationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRotationRequest proto.InternalMessageInfo
func (m *GetRotationRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type BatchGetRotationsRequest struct {
// The names of the rotations to fetch.
Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchGetRotationsRequest) Reset() { *m = BatchGetRotationsRequest{} }
func (m *BatchGetRotationsRequest) String() string { return proto.CompactTextString(m) }
func (*BatchGetRotationsRequest) ProtoMessage() {}
func (*BatchGetRotationsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_83a28b40e80ae262, []int{4}
}
func (m *BatchGetRotationsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchGetRotationsRequest.Unmarshal(m, b)
}
func (m *BatchGetRotationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchGetRotationsRequest.Marshal(b, m, deterministic)
}
func (m *BatchGetRotationsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchGetRotationsRequest.Merge(m, src)
}
func (m *BatchGetRotationsRequest) XXX_Size() int {
return xxx_messageInfo_BatchGetRotationsRequest.Size(m)
}
func (m *BatchGetRotationsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchGetRotationsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchGetRotationsRequest proto.InternalMessageInfo
func (m *BatchGetRotationsRequest) GetNames() []string {
if m != nil {
return m.Names
}
return nil
}
type BatchGetRotationsResponse struct {
// Details about the rotations requested.
Rotations []*Rotation `protobuf:"bytes,1,rep,name=rotations,proto3" json:"rotations,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchGetRotationsResponse) Reset() { *m = BatchGetRotationsResponse{} }
func (m *BatchGetRotationsResponse) String() string { return proto.CompactTextString(m) }
func (*BatchGetRotationsResponse) ProtoMessage() {}
func (*BatchGetRotationsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_83a28b40e80ae262, []int{5}
}
func (m *BatchGetRotationsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchGetRotationsResponse.Unmarshal(m, b)
}
func (m *BatchGetRotationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchGetRotationsResponse.Marshal(b, m, deterministic)
}
func (m *BatchGetRotationsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchGetRotationsResponse.Merge(m, src)
}
func (m *BatchGetRotationsResponse) XXX_Size() int {
return xxx_messageInfo_BatchGetRotationsResponse.Size(m)
}
func (m *BatchGetRotationsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_BatchGetRotationsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_BatchGetRotationsResponse proto.InternalMessageInfo
func (m *BatchGetRotationsResponse) GetRotations() []*Rotation {
if m != nil {
return m.Rotations
}
return nil
}
// Contains information about a rotation.
type Rotation struct {
// The unique name of the rotation.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Shifts in a rotation.
// Shifts will be sorted by start time with the current shift as the first element.
Shifts []*Shift `protobuf:"bytes,2,rep,name=shifts,proto3" json:"shifts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Rotation) Reset() { *m = Rotation{} }
func (m *Rotation) String() string { return proto.CompactTextString(m) }
func (*Rotation) ProtoMessage() {}
func (*Rotation) Descriptor() ([]byte, []int) {
return fileDescriptor_83a28b40e80ae262, []int{6}
}
func (m *Rotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Rotation.Unmarshal(m, b)
}
func (m *Rotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Rotation.Marshal(b, m, deterministic)
}
func (m *Rotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Rotation.Merge(m, src)
}
func (m *Rotation) XXX_Size() int {
return xxx_messageInfo_Rotation.Size(m)
}
func (m *Rotation) XXX_DiscardUnknown() {
xxx_messageInfo_Rotation.DiscardUnknown(m)
}
var xxx_messageInfo_Rotation proto.InternalMessageInfo
func (m *Rotation) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Rotation) GetShifts() []*Shift {
if m != nil {
return m.Shifts
}
return nil
}
type Shift struct {
// The list of oncall users for this shift.
Oncalls []*OncallPerson `protobuf:"bytes,1,rep,name=oncalls,proto3" json:"oncalls,omitempty"`
// Timestamp of the start of the shift.
StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Timestamp of the end of the shift.
EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Shift) Reset() { *m = Shift{} }
func (m *Shift) String() string { return proto.CompactTextString(m) }
func (*Shift) ProtoMessage() {}
func (*Shift) Descriptor() ([]byte, []int) {
return fileDescriptor_83a28b40e80ae262, []int{7}
}
func (m *Shift) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Shift.Unmarshal(m, b)
}
func (m *Shift) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Shift.Marshal(b, m, deterministic)
}
func (m *Shift) XXX_Merge(src proto.Message) {
xxx_messageInfo_Shift.Merge(m, src)
}
func (m *Shift) XXX_Size() int {
return xxx_messageInfo_Shift.Size(m)
}
func (m *Shift) XXX_DiscardUnknown() {
xxx_messageInfo_Shift.DiscardUnknown(m)
}
var xxx_messageInfo_Shift proto.InternalMessageInfo
func (m *Shift) GetOncalls() []*OncallPerson {
if m != nil {
return m.Oncalls
}
return nil
}
func (m *Shift) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *Shift) GetEndTime() *timestamp.Timestamp {
if m != nil {
return m.EndTime
}
return nil
}
type OncallPerson struct {
// Email of oncall person.
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OncallPerson) Reset() { *m = OncallPerson{} }
func (m *OncallPerson) String() string { return proto.CompactTextString(m) }
func (*OncallPerson) ProtoMessage() {}
func (*OncallPerson) Descriptor() ([]byte, []int) {
return fileDescriptor_83a28b40e80ae262, []int{8}
}
func (m *OncallPerson) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OncallPerson.Unmarshal(m, b)
}
func (m *OncallPerson) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OncallPerson.Marshal(b, m, deterministic)
}
func (m *OncallPerson) XXX_Merge(src proto.Message) {
xxx_messageInfo_OncallPerson.Merge(m, src)
}
func (m *OncallPerson) XXX_Size() int {
return xxx_messageInfo_OncallPerson.Size(m)
}
func (m *OncallPerson) XXX_DiscardUnknown() {
xxx_messageInfo_OncallPerson.DiscardUnknown(m)
}
var xxx_messageInfo_OncallPerson proto.InternalMessageInfo
func (m *OncallPerson) GetEmail() string {
if m != nil {
return m.Email
}
return ""
}
func init() {
proto.RegisterType((*BatchUpdateRotationsRequest)(nil), "rotationproxy.BatchUpdateRotationsRequest")
proto.RegisterType((*UpdateRotationRequest)(nil), "rotationproxy.UpdateRotationRequest")
proto.RegisterType((*BatchUpdateRotationsResponse)(nil), "rotationproxy.BatchUpdateRotationsResponse")
proto.RegisterType((*GetRotationRequest)(nil), "rotationproxy.GetRotationRequest")
proto.RegisterType((*BatchGetRotationsRequest)(nil), "rotationproxy.BatchGetRotationsRequest")
proto.RegisterType((*BatchGetRotationsResponse)(nil), "rotationproxy.BatchGetRotationsResponse")
proto.RegisterType((*Rotation)(nil), "rotationproxy.Rotation")
proto.RegisterType((*Shift)(nil), "rotationproxy.Shift")
proto.RegisterType((*OncallPerson)(nil), "rotationproxy.OncallPerson")
}
func init() {
proto.RegisterFile("infra/appengine/rotation-proxy/proto/rotation_proxy.proto", fileDescriptor_83a28b40e80ae262)
}
var fileDescriptor_83a28b40e80ae262 = []byte{
// 474 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x5d, 0x6f, 0xd3, 0x30,
0x14, 0x55, 0x5b, 0xb6, 0xb5, 0xb7, 0xf0, 0x80, 0x55, 0xb4, 0x2c, 0x43, 0x62, 0x44, 0x48, 0x94,
0x8f, 0x25, 0x52, 0x51, 0x25, 0xf6, 0xc8, 0x24, 0x84, 0x78, 0x62, 0xcb, 0xd8, 0x73, 0xe5, 0x36,
0x37, 0xad, 0xa5, 0xd4, 0x36, 0xb6, 0x37, 0xc1, 0xbf, 0xe2, 0x99, 0x5f, 0xc3, 0x4f, 0x41, 0xb1,
0xe3, 0x92, 0x65, 0x29, 0x43, 0xda, 0x5b, 0xef, 0xf1, 0x39, 0xa7, 0xc7, 0xbe, 0x27, 0x70, 0xc2,
0x78, 0xae, 0x68, 0x42, 0xa5, 0x44, 0xbe, 0x64, 0x1c, 0x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bb, 0x84, 0x77, 0x7f, 0x02, 0x00, 0x00,
0xff, 0xff, 0x12, 0x39, 0x56, 0x4d, 0xcc, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// RotationProxyServiceClient is the client API for RotationProxyService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RotationProxyServiceClient interface {
BatchUpdateRotations(ctx context.Context, in *BatchUpdateRotationsRequest, opts ...grpc.CallOption) (*BatchUpdateRotationsResponse, error)
GetRotation(ctx context.Context, in *GetRotationRequest, opts ...grpc.CallOption) (*Rotation, error)
BatchGetRotations(ctx context.Context, in *BatchGetRotationsRequest, opts ...grpc.CallOption) (*BatchGetRotationsResponse, error)
}
type rotationProxyServicePRPCClient struct {
client *prpc.Client
}
func NewRotationProxyServicePRPCClient(client *prpc.Client) RotationProxyServiceClient {
return &rotationProxyServicePRPCClient{client}
}
func (c *rotationProxyServicePRPCClient) BatchUpdateRotations(ctx context.Context, in *BatchUpdateRotationsRequest, opts ...grpc.CallOption) (*BatchUpdateRotationsResponse, error) {
out := new(BatchUpdateRotationsResponse)
err := c.client.Call(ctx, "rotationproxy.RotationProxyService", "BatchUpdateRotations", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *rotationProxyServicePRPCClient) GetRotation(ctx context.Context, in *GetRotationRequest, opts ...grpc.CallOption) (*Rotation, error) {
out := new(Rotation)
err := c.client.Call(ctx, "rotationproxy.RotationProxyService", "GetRotation", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *rotationProxyServicePRPCClient) BatchGetRotations(ctx context.Context, in *BatchGetRotationsRequest, opts ...grpc.CallOption) (*BatchGetRotationsResponse, error) {
out := new(BatchGetRotationsResponse)
err := c.client.Call(ctx, "rotationproxy.RotationProxyService", "BatchGetRotations", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
type rotationProxyServiceClient struct {
cc grpc.ClientConnInterface
}
func NewRotationProxyServiceClient(cc grpc.ClientConnInterface) RotationProxyServiceClient {
return &rotationProxyServiceClient{cc}
}
func (c *rotationProxyServiceClient) BatchUpdateRotations(ctx context.Context, in *BatchUpdateRotationsRequest, opts ...grpc.CallOption) (*BatchUpdateRotationsResponse, error) {
out := new(BatchUpdateRotationsResponse)
err := c.cc.Invoke(ctx, "/rotationproxy.RotationProxyService/BatchUpdateRotations", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *rotationProxyServiceClient) GetRotation(ctx context.Context, in *GetRotationRequest, opts ...grpc.CallOption) (*Rotation, error) {
out := new(Rotation)
err := c.cc.Invoke(ctx, "/rotationproxy.RotationProxyService/GetRotation", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *rotationProxyServiceClient) BatchGetRotations(ctx context.Context, in *BatchGetRotationsRequest, opts ...grpc.CallOption) (*BatchGetRotationsResponse, error) {
out := new(BatchGetRotationsResponse)
err := c.cc.Invoke(ctx, "/rotationproxy.RotationProxyService/BatchGetRotations", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RotationProxyServiceServer is the server API for RotationProxyService service.
type RotationProxyServiceServer interface {
BatchUpdateRotations(context.Context, *BatchUpdateRotationsRequest) (*BatchUpdateRotationsResponse, error)
GetRotation(context.Context, *GetRotationRequest) (*Rotation, error)
BatchGetRotations(context.Context, *BatchGetRotationsRequest) (*BatchGetRotationsResponse, error)
}
// UnimplementedRotationProxyServiceServer can be embedded to have forward compatible implementations.
type UnimplementedRotationProxyServiceServer struct {
}
func (*UnimplementedRotationProxyServiceServer) BatchUpdateRotations(ctx context.Context, req *BatchUpdateRotationsRequest) (*BatchUpdateRotationsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchUpdateRotations not implemented")
}
func (*UnimplementedRotationProxyServiceServer) GetRotation(ctx context.Context, req *GetRotationRequest) (*Rotation, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRotation not implemented")
}
func (*UnimplementedRotationProxyServiceServer) BatchGetRotations(ctx context.Context, req *BatchGetRotationsRequest) (*BatchGetRotationsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchGetRotations not implemented")
}
func RegisterRotationProxyServiceServer(s prpc.Registrar, srv RotationProxyServiceServer) {
s.RegisterService(&_RotationProxyService_serviceDesc, srv)
}
func _RotationProxyService_BatchUpdateRotations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchUpdateRotationsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RotationProxyServiceServer).BatchUpdateRotations(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/rotationproxy.RotationProxyService/BatchUpdateRotations",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RotationProxyServiceServer).BatchUpdateRotations(ctx, req.(*BatchUpdateRotationsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RotationProxyService_GetRotation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRotationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RotationProxyServiceServer).GetRotation(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/rotationproxy.RotationProxyService/GetRotation",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RotationProxyServiceServer).GetRotation(ctx, req.(*GetRotationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RotationProxyService_BatchGetRotations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetRotationsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RotationProxyServiceServer).BatchGetRotations(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/rotationproxy.RotationProxyService/BatchGetRotations",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RotationProxyServiceServer).BatchGetRotations(ctx, req.(*BatchGetRotationsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _RotationProxyService_serviceDesc = grpc.ServiceDesc{
ServiceName: "rotationproxy.RotationProxyService",
HandlerType: (*RotationProxyServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "BatchUpdateRotations",
Handler: _RotationProxyService_BatchUpdateRotations_Handler,
},
{
MethodName: "GetRotation",
Handler: _RotationProxyService_GetRotation_Handler,
},
{
MethodName: "BatchGetRotations",
Handler: _RotationProxyService_BatchGetRotations_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "infra/appengine/rotation-proxy/proto/rotation_proxy.proto",
}