Autogenerated update for a9bdcbb1d7...889662bc99
This commit is contained in:
@@ -838,7 +838,7 @@ var file_maps_extended_proto_rawDesc = []byte{
|
||||
0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x53, 0x69, 0x7a, 0x65, 0x12,
|
||||
0x16, 0x0a, 0x06, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
||||
0x06, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x0e, 0x0a, 0x0c, 0x4e, 0x75, 0x6c, 0x6c, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xf7, 0x02, 0x0a, 0x0b, 0x4d, 0x61, 0x70, 0x73,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc0, 0x03, 0x0a, 0x0b, 0x4d, 0x61, 0x70, 0x73,
|
||||
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x14,
|
||||
0x2e, 0x6d, 0x61, 0x70, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x2e, 0x4d,
|
||||
0x61, 0x70, 0x49, 0x64, 0x1a, 0x1a, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65,
|
||||
@@ -862,10 +862,15 @@ var file_maps_extended_proto_rawDesc = []byte{
|
||||
0x6d, 0x61, 0x70, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x2e, 0x4c, 0x69,
|
||||
0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x61, 0x70, 0x73,
|
||||
0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x2e, 0x4d, 0x61, 0x70, 0x4c, 0x69, 0x73,
|
||||
0x74, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x74, 0x7a, 0x61, 0x6e, 0x61, 0x2e,
|
||||
0x6d, 0x65, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x66, 0x65, 0x73, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x6f,
|
||||
0x2d, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
|
||||
0x64, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x74, 0x12, 0x47, 0x0a, 0x12, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x6f,
|
||||
0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x5f, 0x65,
|
||||
0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x2e, 0x4d, 0x61, 0x70, 0x49, 0x64, 0x1a, 0x1b, 0x2e,
|
||||
0x6d, 0x61, 0x70, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x2e, 0x4e, 0x75,
|
||||
0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69,
|
||||
0x74, 0x2e, 0x69, 0x74, 0x7a, 0x61, 0x6e, 0x61, 0x2e, 0x6d, 0x65, 0x2f, 0x73, 0x74, 0x72, 0x61,
|
||||
0x66, 0x65, 0x73, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x6d,
|
||||
0x61, 0x70, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -894,26 +899,28 @@ var file_maps_extended_proto_goTypes = []interface{}{
|
||||
(*NullResponse)(nil), // 9: maps_extended.NullResponse
|
||||
}
|
||||
var file_maps_extended_proto_depIdxs = []int32{
|
||||
2, // 0: maps_extended.MapList.Maps:type_name -> maps_extended.MapResponse
|
||||
5, // 1: maps_extended.ListRequest.Filter:type_name -> maps_extended.MapFilter
|
||||
8, // 2: maps_extended.ListRequest.Page:type_name -> maps_extended.Pagination
|
||||
1, // 3: maps_extended.MapsService.Get:input_type -> maps_extended.MapId
|
||||
0, // 4: maps_extended.MapsService.GetList:input_type -> maps_extended.MapIdList
|
||||
4, // 5: maps_extended.MapsService.Update:input_type -> maps_extended.MapUpdate
|
||||
3, // 6: maps_extended.MapsService.Create:input_type -> maps_extended.MapCreate
|
||||
1, // 7: maps_extended.MapsService.Delete:input_type -> maps_extended.MapId
|
||||
7, // 8: maps_extended.MapsService.List:input_type -> maps_extended.ListRequest
|
||||
2, // 9: maps_extended.MapsService.Get:output_type -> maps_extended.MapResponse
|
||||
6, // 10: maps_extended.MapsService.GetList:output_type -> maps_extended.MapList
|
||||
9, // 11: maps_extended.MapsService.Update:output_type -> maps_extended.NullResponse
|
||||
1, // 12: maps_extended.MapsService.Create:output_type -> maps_extended.MapId
|
||||
9, // 13: maps_extended.MapsService.Delete:output_type -> maps_extended.NullResponse
|
||||
6, // 14: maps_extended.MapsService.List:output_type -> maps_extended.MapList
|
||||
9, // [9:15] is the sub-list for method output_type
|
||||
3, // [3:9] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
2, // 0: maps_extended.MapList.Maps:type_name -> maps_extended.MapResponse
|
||||
5, // 1: maps_extended.ListRequest.Filter:type_name -> maps_extended.MapFilter
|
||||
8, // 2: maps_extended.ListRequest.Page:type_name -> maps_extended.Pagination
|
||||
1, // 3: maps_extended.MapsService.Get:input_type -> maps_extended.MapId
|
||||
0, // 4: maps_extended.MapsService.GetList:input_type -> maps_extended.MapIdList
|
||||
4, // 5: maps_extended.MapsService.Update:input_type -> maps_extended.MapUpdate
|
||||
3, // 6: maps_extended.MapsService.Create:input_type -> maps_extended.MapCreate
|
||||
1, // 7: maps_extended.MapsService.Delete:input_type -> maps_extended.MapId
|
||||
7, // 8: maps_extended.MapsService.List:input_type -> maps_extended.ListRequest
|
||||
1, // 9: maps_extended.MapsService.IncrementLoadCount:input_type -> maps_extended.MapId
|
||||
2, // 10: maps_extended.MapsService.Get:output_type -> maps_extended.MapResponse
|
||||
6, // 11: maps_extended.MapsService.GetList:output_type -> maps_extended.MapList
|
||||
9, // 12: maps_extended.MapsService.Update:output_type -> maps_extended.NullResponse
|
||||
1, // 13: maps_extended.MapsService.Create:output_type -> maps_extended.MapId
|
||||
9, // 14: maps_extended.MapsService.Delete:output_type -> maps_extended.NullResponse
|
||||
6, // 15: maps_extended.MapsService.List:output_type -> maps_extended.MapList
|
||||
9, // 16: maps_extended.MapsService.IncrementLoadCount:output_type -> maps_extended.NullResponse
|
||||
10, // [10:17] is the sub-list for method output_type
|
||||
3, // [3:10] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_maps_extended_proto_init() }
|
||||
|
||||
@@ -28,6 +28,7 @@ type MapsServiceClient interface {
|
||||
Create(ctx context.Context, in *MapCreate, opts ...grpc.CallOption) (*MapId, error)
|
||||
Delete(ctx context.Context, in *MapId, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*MapList, error)
|
||||
IncrementLoadCount(ctx context.Context, in *MapId, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
}
|
||||
|
||||
type mapsServiceClient struct {
|
||||
@@ -92,6 +93,15 @@ func (c *mapsServiceClient) List(ctx context.Context, in *ListRequest, opts ...g
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *mapsServiceClient) IncrementLoadCount(ctx context.Context, in *MapId, opts ...grpc.CallOption) (*NullResponse, error) {
|
||||
out := new(NullResponse)
|
||||
err := c.cc.Invoke(ctx, "/maps_extended.MapsService/IncrementLoadCount", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// MapsServiceServer is the server API for MapsService service.
|
||||
// All implementations must embed UnimplementedMapsServiceServer
|
||||
// for forward compatibility
|
||||
@@ -102,6 +112,7 @@ type MapsServiceServer interface {
|
||||
Create(context.Context, *MapCreate) (*MapId, error)
|
||||
Delete(context.Context, *MapId) (*NullResponse, error)
|
||||
List(context.Context, *ListRequest) (*MapList, error)
|
||||
IncrementLoadCount(context.Context, *MapId) (*NullResponse, error)
|
||||
mustEmbedUnimplementedMapsServiceServer()
|
||||
}
|
||||
|
||||
@@ -127,6 +138,9 @@ func (UnimplementedMapsServiceServer) Delete(context.Context, *MapId) (*NullResp
|
||||
func (UnimplementedMapsServiceServer) List(context.Context, *ListRequest) (*MapList, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedMapsServiceServer) IncrementLoadCount(context.Context, *MapId) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method IncrementLoadCount not implemented")
|
||||
}
|
||||
func (UnimplementedMapsServiceServer) mustEmbedUnimplementedMapsServiceServer() {}
|
||||
|
||||
// UnsafeMapsServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
@@ -248,6 +262,24 @@ func _MapsService_List_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MapsService_IncrementLoadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(MapId)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MapsServiceServer).IncrementLoadCount(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/maps_extended.MapsService/IncrementLoadCount",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MapsServiceServer).IncrementLoadCount(ctx, req.(*MapId))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// MapsService_ServiceDesc is the grpc.ServiceDesc for MapsService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -279,6 +311,10 @@ var MapsService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "List",
|
||||
Handler: _MapsService_List_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "IncrementLoadCount",
|
||||
Handler: _MapsService_IncrementLoadCount_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "maps_extended.proto",
|
||||
|
||||
Reference in New Issue
Block a user