From 41c6c0ee1f4d24a4b31897ccc6edaa00ec3d0a2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Romero?= Date: Mon, 13 Apr 2026 08:29:36 -0600 Subject: [PATCH] feat(health): add health endpoint --- main.go | 4 + pkg/api/api.pb.gw.go | 328 ++++----- pkg/pb/api.pb.go | 105 +-- pkg/pb/api_grpc.pb.go | 155 ++--- pkg/pb/messages.pb.go | 1484 +++++++++++++++-------------------------- proto/api.proto | 2 + proto/api.yaml | 3 + proto/messages.proto | 3 + 8 files changed, 836 insertions(+), 1248 deletions(-) diff --git a/main.go b/main.go index 2307c75..4b57686 100644 --- a/main.go +++ b/main.go @@ -1176,6 +1176,10 @@ func (s *grpcServer) InvokeMatchmakingFunctions(req *pb.MmfRequest, stream pb.Op return nil } +func (s *grpcServer) HealthCheck(ctx context.Context, req *pb.HealthCheckRequest) (*pb.HealthCheckResponse, error) { + return &pb.HealthCheckResponse{Status: "ok"}, nil +} + //---------------------------------------------------------------------------------- // [DEPRECATED] CreateAssignments() // [DEPRECATED] WatchAssignments() diff --git a/pkg/api/api.pb.gw.go b/pkg/api/api.pb.gw.go index 6a2fdae..4b07eb7 100644 --- a/pkg/api/api.pb.gw.go +++ b/pkg/api/api.pb.gw.go @@ -10,6 +10,7 @@ package pb import ( "context" + "errors" "io" "net/http" @@ -25,99 +26,108 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_OpenMatchService_CreateTicket_0(ctx context.Context, marshaler runtime.Marshaler, client extPb.OpenMatchServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extPb.CreateTicketRequest - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq extPb.CreateTicketRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.CreateTicket(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_OpenMatchService_CreateTicket_0(ctx context.Context, marshaler runtime.Marshaler, server extPb.OpenMatchServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extPb.CreateTicketRequest - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq extPb.CreateTicketRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.CreateTicket(ctx, &protoReq) return msg, metadata, err - } func request_OpenMatchService_DeactivateTickets_0(ctx context.Context, marshaler runtime.Marshaler, client extPb.OpenMatchServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extPb.DeactivateTicketsRequest - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq extPb.DeactivateTicketsRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.DeactivateTickets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_OpenMatchService_DeactivateTickets_0(ctx context.Context, marshaler runtime.Marshaler, server extPb.OpenMatchServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extPb.DeactivateTicketsRequest - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq extPb.DeactivateTicketsRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeactivateTickets(ctx, &protoReq) return msg, metadata, err - } func request_OpenMatchService_ActivateTickets_0(ctx context.Context, marshaler runtime.Marshaler, client extPb.OpenMatchServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extPb.ActivateTicketsRequest - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq extPb.ActivateTicketsRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ActivateTickets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_OpenMatchService_ActivateTickets_0(ctx context.Context, marshaler runtime.Marshaler, server extPb.OpenMatchServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extPb.ActivateTicketsRequest - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq extPb.ActivateTicketsRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ActivateTickets(ctx, &protoReq) return msg, metadata, err - } func request_OpenMatchService_InvokeMatchmakingFunctions_0(ctx context.Context, marshaler runtime.Marshaler, client extPb.OpenMatchServiceClient, req *http.Request, pathParams map[string]string) (extPb.OpenMatchService_InvokeMatchmakingFunctionsClient, runtime.ServerMetadata, error) { - var protoReq extPb.MmfRequest - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq extPb.MmfRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } stream, err := client.InvokeMatchmakingFunctions(ctx, &protoReq) if err != nil { return nil, metadata, err @@ -128,43 +138,67 @@ func request_OpenMatchService_InvokeMatchmakingFunctions_0(ctx context.Context, } metadata.HeaderMD = header return stream, metadata, nil +} +func request_OpenMatchService_HealthCheck_0(ctx context.Context, marshaler runtime.Marshaler, client extPb.OpenMatchServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq extPb.HealthCheckRequest + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + msg, err := client.HealthCheck(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err } -func request_OpenMatchService_CreateAssignments_0(ctx context.Context, marshaler runtime.Marshaler, client extPb.OpenMatchServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extPb.CreateAssignmentsRequest - var metadata runtime.ServerMetadata +func local_request_OpenMatchService_HealthCheck_0(ctx context.Context, marshaler runtime.Marshaler, server extPb.OpenMatchServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq extPb.HealthCheckRequest + metadata runtime.ServerMetadata + ) + msg, err := server.HealthCheck(ctx, &protoReq) + return msg, metadata, err +} - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { +func request_OpenMatchService_CreateAssignments_0(ctx context.Context, marshaler runtime.Marshaler, client extPb.OpenMatchServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq extPb.CreateAssignmentsRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.CreateAssignments(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_OpenMatchService_CreateAssignments_0(ctx context.Context, marshaler runtime.Marshaler, server extPb.OpenMatchServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extPb.CreateAssignmentsRequest - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq extPb.CreateAssignmentsRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.CreateAssignments(ctx, &protoReq) return msg, metadata, err - } func request_OpenMatchService_WatchAssignments_0(ctx context.Context, marshaler runtime.Marshaler, client extPb.OpenMatchServiceClient, req *http.Request, pathParams map[string]string) (extPb.OpenMatchService_WatchAssignmentsClient, runtime.ServerMetadata, error) { - var protoReq extPb.WatchAssignmentsRequest - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq extPb.WatchAssignmentsRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } stream, err := client.WatchAssignments(ctx, &protoReq) if err != nil { return nil, metadata, err @@ -175,7 +209,6 @@ func request_OpenMatchService_WatchAssignments_0(ctx context.Context, marshaler } metadata.HeaderMD = header return stream, metadata, nil - } // RegisterOpenMatchServiceHandlerServer registers the http handlers for service OpenMatchService to "mux". @@ -184,16 +217,13 @@ func request_OpenMatchService_WatchAssignments_0(ctx context.Context, marshaler // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterOpenMatchServiceHandlerFromEndpoint instead. // GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterOpenMatchServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPb.OpenMatchServiceServer) error { - - mux.Handle("POST", pattern_OpenMatchService_CreateTicket_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_OpenMatchService_CreateTicket_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/open_match2.OpenMatchService/CreateTicket", runtime.WithHTTPPathPattern("/tickets")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/open_match2.OpenMatchService/CreateTicket", runtime.WithHTTPPathPattern("/tickets")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -205,20 +235,15 @@ func RegisterOpenMatchServiceHandlerServer(ctx context.Context, mux *runtime.Ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_OpenMatchService_CreateTicket_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_OpenMatchService_DeactivateTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_OpenMatchService_DeactivateTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/open_match2.OpenMatchService/DeactivateTickets", runtime.WithHTTPPathPattern("/tickets:deactivate")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/open_match2.OpenMatchService/DeactivateTickets", runtime.WithHTTPPathPattern("/tickets:deactivate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -230,20 +255,15 @@ func RegisterOpenMatchServiceHandlerServer(ctx context.Context, mux *runtime.Ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_OpenMatchService_DeactivateTickets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_OpenMatchService_ActivateTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_OpenMatchService_ActivateTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/open_match2.OpenMatchService/ActivateTickets", runtime.WithHTTPPathPattern("/tickets:activate")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/open_match2.OpenMatchService/ActivateTickets", runtime.WithHTTPPathPattern("/tickets:activate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -255,27 +275,42 @@ func RegisterOpenMatchServiceHandlerServer(ctx context.Context, mux *runtime.Ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_OpenMatchService_ActivateTickets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle("POST", pattern_OpenMatchService_InvokeMatchmakingFunctions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_OpenMatchService_InvokeMatchmakingFunctions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - - mux.Handle("POST", pattern_OpenMatchService_CreateAssignments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_OpenMatchService_HealthCheck_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/open_match2.OpenMatchService/HealthCheck", runtime.WithHTTPPathPattern("/health")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_OpenMatchService_HealthCheck_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_OpenMatchService_HealthCheck_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodPost, pattern_OpenMatchService_CreateAssignments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/open_match2.OpenMatchService/CreateAssignments", runtime.WithHTTPPathPattern("/assignments:create")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/open_match2.OpenMatchService/CreateAssignments", runtime.WithHTTPPathPattern("/assignments:create")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -287,12 +322,10 @@ func RegisterOpenMatchServiceHandlerServer(ctx context.Context, mux *runtime.Ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_OpenMatchService_CreateAssignments_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle("POST", pattern_OpenMatchService_WatchAssignments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_OpenMatchService_WatchAssignments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -323,7 +356,6 @@ func RegisterOpenMatchServiceHandlerFromEndpoint(ctx context.Context, mux *runti } }() }() - return RegisterOpenMatchServiceHandler(ctx, mux, conn) } @@ -339,14 +371,11 @@ func RegisterOpenMatchServiceHandler(ctx context.Context, mux *runtime.ServeMux, // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "extPb.OpenMatchServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterOpenMatchServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPb.OpenMatchServiceClient) error { - - mux.Handle("POST", pattern_OpenMatchService_CreateTicket_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_OpenMatchService_CreateTicket_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/CreateTicket", runtime.WithHTTPPathPattern("/tickets")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/CreateTicket", runtime.WithHTTPPathPattern("/tickets")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -357,18 +386,13 @@ func RegisterOpenMatchServiceHandlerClient(ctx context.Context, mux *runtime.Ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_OpenMatchService_CreateTicket_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_OpenMatchService_DeactivateTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_OpenMatchService_DeactivateTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/DeactivateTickets", runtime.WithHTTPPathPattern("/tickets:deactivate")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/DeactivateTickets", runtime.WithHTTPPathPattern("/tickets:deactivate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -379,18 +403,13 @@ func RegisterOpenMatchServiceHandlerClient(ctx context.Context, mux *runtime.Ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_OpenMatchService_DeactivateTickets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_OpenMatchService_ActivateTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_OpenMatchService_ActivateTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/ActivateTickets", runtime.WithHTTPPathPattern("/tickets:activate")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/ActivateTickets", runtime.WithHTTPPathPattern("/tickets:activate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -401,18 +420,13 @@ func RegisterOpenMatchServiceHandlerClient(ctx context.Context, mux *runtime.Ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_OpenMatchService_ActivateTickets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_OpenMatchService_InvokeMatchmakingFunctions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_OpenMatchService_InvokeMatchmakingFunctions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/InvokeMatchmakingFunctions", runtime.WithHTTPPathPattern("/matches:fetch")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/InvokeMatchmakingFunctions", runtime.WithHTTPPathPattern("/matches:fetch")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -423,18 +437,30 @@ func RegisterOpenMatchServiceHandlerClient(ctx context.Context, mux *runtime.Ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_OpenMatchService_InvokeMatchmakingFunctions_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_OpenMatchService_CreateAssignments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_OpenMatchService_HealthCheck_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/CreateAssignments", runtime.WithHTTPPathPattern("/assignments:create")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/HealthCheck", runtime.WithHTTPPathPattern("/health")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_OpenMatchService_HealthCheck_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_OpenMatchService_HealthCheck_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodPost, pattern_OpenMatchService_CreateAssignments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/CreateAssignments", runtime.WithHTTPPathPattern("/assignments:create")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -445,18 +471,13 @@ func RegisterOpenMatchServiceHandlerClient(ctx context.Context, mux *runtime.Ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_OpenMatchService_CreateAssignments_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_OpenMatchService_WatchAssignments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_OpenMatchService_WatchAssignments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/WatchAssignments", runtime.WithHTTPPathPattern("/assignments:watch")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/open_match2.OpenMatchService/WatchAssignments", runtime.WithHTTPPathPattern("/assignments:watch")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -467,38 +488,27 @@ func RegisterOpenMatchServiceHandlerClient(ctx context.Context, mux *runtime.Ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_OpenMatchService_WatchAssignments_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - }) - return nil } var ( - pattern_OpenMatchService_CreateTicket_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"tickets"}, "")) - - pattern_OpenMatchService_DeactivateTickets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"tickets"}, "deactivate")) - - pattern_OpenMatchService_ActivateTickets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"tickets"}, "activate")) - + pattern_OpenMatchService_CreateTicket_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"tickets"}, "")) + pattern_OpenMatchService_DeactivateTickets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"tickets"}, "deactivate")) + pattern_OpenMatchService_ActivateTickets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"tickets"}, "activate")) pattern_OpenMatchService_InvokeMatchmakingFunctions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"matches"}, "fetch")) - - pattern_OpenMatchService_CreateAssignments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"assignments"}, "create")) - - pattern_OpenMatchService_WatchAssignments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"assignments"}, "watch")) + pattern_OpenMatchService_HealthCheck_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"health"}, "")) + pattern_OpenMatchService_CreateAssignments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"assignments"}, "create")) + pattern_OpenMatchService_WatchAssignments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"assignments"}, "watch")) ) var ( - forward_OpenMatchService_CreateTicket_0 = runtime.ForwardResponseMessage - - forward_OpenMatchService_DeactivateTickets_0 = runtime.ForwardResponseMessage - - forward_OpenMatchService_ActivateTickets_0 = runtime.ForwardResponseMessage - + forward_OpenMatchService_CreateTicket_0 = runtime.ForwardResponseMessage + forward_OpenMatchService_DeactivateTickets_0 = runtime.ForwardResponseMessage + forward_OpenMatchService_ActivateTickets_0 = runtime.ForwardResponseMessage forward_OpenMatchService_InvokeMatchmakingFunctions_0 = runtime.ForwardResponseStream - - forward_OpenMatchService_CreateAssignments_0 = runtime.ForwardResponseMessage - - forward_OpenMatchService_WatchAssignments_0 = runtime.ForwardResponseStream + forward_OpenMatchService_HealthCheck_0 = runtime.ForwardResponseMessage + forward_OpenMatchService_CreateAssignments_0 = runtime.ForwardResponseMessage + forward_OpenMatchService_WatchAssignments_0 = runtime.ForwardResponseStream ) diff --git a/pkg/pb/api.pb.go b/pkg/pb/api.pb.go index 21c1962..93d09ab 100644 --- a/pkg/pb/api.pb.go +++ b/pkg/pb/api.pb.go @@ -21,7 +21,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.11 // protoc v5.27.2 // source: api.proto @@ -31,6 +31,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" + unsafe "unsafe" ) const ( @@ -42,83 +43,52 @@ const ( var File_api_proto protoreflect.FileDescriptor -var file_api_proto_rawDesc = []byte{ - 0x0a, 0x09, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x6f, 0x70, 0x65, - 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x1a, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xdf, 0x04, 0x0a, 0x10, 0x4f, 0x70, 0x65, - 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x55, 0x0a, - 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x20, 0x2e, - 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x21, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x11, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x25, 0x2e, 0x6f, 0x70, 0x65, 0x6e, - 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x26, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x44, - 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x0f, 0x41, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x23, 0x2e, - 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, - 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x1a, 0x49, 0x6e, - 0x76, 0x6f, 0x6b, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x6d, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x46, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x17, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, - 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x4d, 0x6d, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x20, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x4d, 0x6d, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x64, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x2e, 0x6f, - 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, - 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6b, 0x0a, - 0x10, 0x57, 0x61, 0x74, 0x63, 0x68, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0x24, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, - 0x57, 0x61, 0x74, 0x63, 0x68, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, - 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x57, 0x61, - 0x74, 0x63, 0x68, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x3b, 0x5a, 0x2c, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x66, - 0x6f, 0x72, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2d, 0x6d, 0x61, 0x74, - 0x63, 0x68, 0x32, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0xaa, 0x02, 0x0a, 0x4f, 0x70, 0x65, - 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_api_proto_rawDesc = "" + + "\n" + + "\tapi.proto\x12\vopen_match2\x1a\x0emessages.proto2\xb3\x05\n" + + "\x10OpenMatchService\x12U\n" + + "\fCreateTicket\x12 .open_match2.CreateTicketRequest\x1a!.open_match2.CreateTicketResponse\"\x00\x12d\n" + + "\x11DeactivateTickets\x12%.open_match2.DeactivateTicketsRequest\x1a&.open_match2.DeactivateTicketsResponse\"\x00\x12^\n" + + "\x0fActivateTickets\x12#.open_match2.ActivateTicketsRequest\x1a$.open_match2.ActivateTicketsResponse\"\x00\x12[\n" + + "\x1aInvokeMatchmakingFunctions\x12\x17.open_match2.MmfRequest\x1a .open_match2.StreamedMmfResponse\"\x000\x01\x12R\n" + + "\vHealthCheck\x12\x1f.open_match2.HealthCheckRequest\x1a .open_match2.HealthCheckResponse\"\x00\x12d\n" + + "\x11CreateAssignments\x12%.open_match2.CreateAssignmentsRequest\x1a&.open_match2.CreateAssignmentsResponse\"\x00\x12k\n" + + "\x10WatchAssignments\x12$.open_match2.WatchAssignmentsRequest\x1a-.open_match2.StreamedWatchAssignmentsResponse\"\x000\x01B;Z,github.com/googleforgames/open-match2/pkg/pb\xaa\x02\n" + + "OpenMatch2b\x06proto3" var file_api_proto_goTypes = []any{ (*CreateTicketRequest)(nil), // 0: open_match2.CreateTicketRequest (*DeactivateTicketsRequest)(nil), // 1: open_match2.DeactivateTicketsRequest (*ActivateTicketsRequest)(nil), // 2: open_match2.ActivateTicketsRequest (*MmfRequest)(nil), // 3: open_match2.MmfRequest - (*CreateAssignmentsRequest)(nil), // 4: open_match2.CreateAssignmentsRequest - (*WatchAssignmentsRequest)(nil), // 5: open_match2.WatchAssignmentsRequest - (*CreateTicketResponse)(nil), // 6: open_match2.CreateTicketResponse - (*DeactivateTicketsResponse)(nil), // 7: open_match2.DeactivateTicketsResponse - (*ActivateTicketsResponse)(nil), // 8: open_match2.ActivateTicketsResponse - (*StreamedMmfResponse)(nil), // 9: open_match2.StreamedMmfResponse - (*CreateAssignmentsResponse)(nil), // 10: open_match2.CreateAssignmentsResponse - (*StreamedWatchAssignmentsResponse)(nil), // 11: open_match2.StreamedWatchAssignmentsResponse + (*HealthCheckRequest)(nil), // 4: open_match2.HealthCheckRequest + (*CreateAssignmentsRequest)(nil), // 5: open_match2.CreateAssignmentsRequest + (*WatchAssignmentsRequest)(nil), // 6: open_match2.WatchAssignmentsRequest + (*CreateTicketResponse)(nil), // 7: open_match2.CreateTicketResponse + (*DeactivateTicketsResponse)(nil), // 8: open_match2.DeactivateTicketsResponse + (*ActivateTicketsResponse)(nil), // 9: open_match2.ActivateTicketsResponse + (*StreamedMmfResponse)(nil), // 10: open_match2.StreamedMmfResponse + (*HealthCheckResponse)(nil), // 11: open_match2.HealthCheckResponse + (*CreateAssignmentsResponse)(nil), // 12: open_match2.CreateAssignmentsResponse + (*StreamedWatchAssignmentsResponse)(nil), // 13: open_match2.StreamedWatchAssignmentsResponse } var file_api_proto_depIdxs = []int32{ 0, // 0: open_match2.OpenMatchService.CreateTicket:input_type -> open_match2.CreateTicketRequest 1, // 1: open_match2.OpenMatchService.DeactivateTickets:input_type -> open_match2.DeactivateTicketsRequest 2, // 2: open_match2.OpenMatchService.ActivateTickets:input_type -> open_match2.ActivateTicketsRequest 3, // 3: open_match2.OpenMatchService.InvokeMatchmakingFunctions:input_type -> open_match2.MmfRequest - 4, // 4: open_match2.OpenMatchService.CreateAssignments:input_type -> open_match2.CreateAssignmentsRequest - 5, // 5: open_match2.OpenMatchService.WatchAssignments:input_type -> open_match2.WatchAssignmentsRequest - 6, // 6: open_match2.OpenMatchService.CreateTicket:output_type -> open_match2.CreateTicketResponse - 7, // 7: open_match2.OpenMatchService.DeactivateTickets:output_type -> open_match2.DeactivateTicketsResponse - 8, // 8: open_match2.OpenMatchService.ActivateTickets:output_type -> open_match2.ActivateTicketsResponse - 9, // 9: open_match2.OpenMatchService.InvokeMatchmakingFunctions:output_type -> open_match2.StreamedMmfResponse - 10, // 10: open_match2.OpenMatchService.CreateAssignments:output_type -> open_match2.CreateAssignmentsResponse - 11, // 11: open_match2.OpenMatchService.WatchAssignments:output_type -> open_match2.StreamedWatchAssignmentsResponse - 6, // [6:12] is the sub-list for method output_type - 0, // [0:6] is the sub-list for method input_type + 4, // 4: open_match2.OpenMatchService.HealthCheck:input_type -> open_match2.HealthCheckRequest + 5, // 5: open_match2.OpenMatchService.CreateAssignments:input_type -> open_match2.CreateAssignmentsRequest + 6, // 6: open_match2.OpenMatchService.WatchAssignments:input_type -> open_match2.WatchAssignmentsRequest + 7, // 7: open_match2.OpenMatchService.CreateTicket:output_type -> open_match2.CreateTicketResponse + 8, // 8: open_match2.OpenMatchService.DeactivateTickets:output_type -> open_match2.DeactivateTicketsResponse + 9, // 9: open_match2.OpenMatchService.ActivateTickets:output_type -> open_match2.ActivateTicketsResponse + 10, // 10: open_match2.OpenMatchService.InvokeMatchmakingFunctions:output_type -> open_match2.StreamedMmfResponse + 11, // 11: open_match2.OpenMatchService.HealthCheck:output_type -> open_match2.HealthCheckResponse + 12, // 12: open_match2.OpenMatchService.CreateAssignments:output_type -> open_match2.CreateAssignmentsResponse + 13, // 13: open_match2.OpenMatchService.WatchAssignments:output_type -> open_match2.StreamedWatchAssignmentsResponse + 7, // [7:14] is the sub-list for method output_type + 0, // [0:7] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name @@ -134,7 +104,7 @@ func file_api_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_api_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_proto_rawDesc), len(file_api_proto_rawDesc)), NumEnums: 0, NumMessages: 0, NumExtensions: 0, @@ -144,7 +114,6 @@ func file_api_proto_init() { DependencyIndexes: file_api_proto_depIdxs, }.Build() File_api_proto = out.File - file_api_proto_rawDesc = nil file_api_proto_goTypes = nil file_api_proto_depIdxs = nil } diff --git a/pkg/pb/api_grpc.pb.go b/pkg/pb/api_grpc.pb.go index 1f53f82..4f07f64 100644 --- a/pkg/pb/api_grpc.pb.go +++ b/pkg/pb/api_grpc.pb.go @@ -21,7 +21,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.4.0 +// - protoc-gen-go-grpc v1.6.1 // - protoc v5.27.2 // source: api.proto @@ -36,14 +36,15 @@ import ( // 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.62.0 or later. -const _ = grpc.SupportPackageIsVersion8 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( OpenMatchService_CreateTicket_FullMethodName = "/open_match2.OpenMatchService/CreateTicket" OpenMatchService_DeactivateTickets_FullMethodName = "/open_match2.OpenMatchService/DeactivateTickets" OpenMatchService_ActivateTickets_FullMethodName = "/open_match2.OpenMatchService/ActivateTickets" OpenMatchService_InvokeMatchmakingFunctions_FullMethodName = "/open_match2.OpenMatchService/InvokeMatchmakingFunctions" + OpenMatchService_HealthCheck_FullMethodName = "/open_match2.OpenMatchService/HealthCheck" OpenMatchService_CreateAssignments_FullMethodName = "/open_match2.OpenMatchService/CreateAssignments" OpenMatchService_WatchAssignments_FullMethodName = "/open_match2.OpenMatchService/WatchAssignments" ) @@ -80,7 +81,7 @@ type OpenMatchServiceClient interface { // in each to fill the pools with eligible tickets. Once all pools in the profile are // filled with all eligible tickets, a copy of the profile is sent to each matchmaking // function endpoint specified in the request. MMF calls are defined by a separate gRPC - // service defined in proto/v2/mmf.proto, please reference it for details as to the input + // service defined in proto/mmf.proto, please reference it for details as to the input // and output of matchmaking functions. // All matches returned from all MMFs before the context deadline are then sent back // to OM's InvokeMatchmakingFunctions handler, which does the following: @@ -93,14 +94,15 @@ type OpenMatchServiceClient interface { // // cancel the invoked MMFs, by design. They will run, make matches, and exit // when they finish. - InvokeMatchmakingFunctions(ctx context.Context, in *MmfRequest, opts ...grpc.CallOption) (OpenMatchService_InvokeMatchmakingFunctionsClient, error) + InvokeMatchmakingFunctions(ctx context.Context, in *MmfRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamedMmfResponse], error) + HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) // CreateAssignments creates an assignment for each ticket in the request's AssignmentRoster // field. Assignments are only guaranteed to exist until the ticket expires, although they MAY // continue to exist afterwords. This RPC is considered deprecated and should not be used in production. CreateAssignments(ctx context.Context, in *CreateAssignmentsRequest, opts ...grpc.CallOption) (*CreateAssignmentsResponse, error) // WatchAssignments streams back one assignment of each ticketID requested, if it exists before the // timeout is reached. This RPC is considered deprecated and should not be used in production. - WatchAssignments(ctx context.Context, in *WatchAssignmentsRequest, opts ...grpc.CallOption) (OpenMatchService_WatchAssignmentsClient, error) + WatchAssignments(ctx context.Context, in *WatchAssignmentsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamedWatchAssignmentsResponse], error) } type openMatchServiceClient struct { @@ -141,13 +143,13 @@ func (c *openMatchServiceClient) ActivateTickets(ctx context.Context, in *Activa return out, nil } -func (c *openMatchServiceClient) InvokeMatchmakingFunctions(ctx context.Context, in *MmfRequest, opts ...grpc.CallOption) (OpenMatchService_InvokeMatchmakingFunctionsClient, error) { +func (c *openMatchServiceClient) InvokeMatchmakingFunctions(ctx context.Context, in *MmfRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamedMmfResponse], error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) stream, err := c.cc.NewStream(ctx, &OpenMatchService_ServiceDesc.Streams[0], OpenMatchService_InvokeMatchmakingFunctions_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &openMatchServiceInvokeMatchmakingFunctionsClient{ClientStream: stream} + x := &grpc.GenericClientStream[MmfRequest, StreamedMmfResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -157,21 +159,17 @@ func (c *openMatchServiceClient) InvokeMatchmakingFunctions(ctx context.Context, return x, nil } -type OpenMatchService_InvokeMatchmakingFunctionsClient interface { - Recv() (*StreamedMmfResponse, error) - grpc.ClientStream -} - -type openMatchServiceInvokeMatchmakingFunctionsClient struct { - grpc.ClientStream -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type OpenMatchService_InvokeMatchmakingFunctionsClient = grpc.ServerStreamingClient[StreamedMmfResponse] -func (x *openMatchServiceInvokeMatchmakingFunctionsClient) Recv() (*StreamedMmfResponse, error) { - m := new(StreamedMmfResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { +func (c *openMatchServiceClient) HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(HealthCheckResponse) + err := c.cc.Invoke(ctx, OpenMatchService_HealthCheck_FullMethodName, in, out, cOpts...) + if err != nil { return nil, err } - return m, nil + return out, nil } func (c *openMatchServiceClient) CreateAssignments(ctx context.Context, in *CreateAssignmentsRequest, opts ...grpc.CallOption) (*CreateAssignmentsResponse, error) { @@ -184,13 +182,13 @@ func (c *openMatchServiceClient) CreateAssignments(ctx context.Context, in *Crea return out, nil } -func (c *openMatchServiceClient) WatchAssignments(ctx context.Context, in *WatchAssignmentsRequest, opts ...grpc.CallOption) (OpenMatchService_WatchAssignmentsClient, error) { +func (c *openMatchServiceClient) WatchAssignments(ctx context.Context, in *WatchAssignmentsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamedWatchAssignmentsResponse], error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) stream, err := c.cc.NewStream(ctx, &OpenMatchService_ServiceDesc.Streams[1], OpenMatchService_WatchAssignments_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &openMatchServiceWatchAssignmentsClient{ClientStream: stream} + x := &grpc.GenericClientStream[WatchAssignmentsRequest, StreamedWatchAssignmentsResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -200,26 +198,12 @@ func (c *openMatchServiceClient) WatchAssignments(ctx context.Context, in *Watch return x, nil } -type OpenMatchService_WatchAssignmentsClient interface { - Recv() (*StreamedWatchAssignmentsResponse, error) - grpc.ClientStream -} - -type openMatchServiceWatchAssignmentsClient struct { - grpc.ClientStream -} - -func (x *openMatchServiceWatchAssignmentsClient) Recv() (*StreamedWatchAssignmentsResponse, error) { - m := new(StreamedWatchAssignmentsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type OpenMatchService_WatchAssignmentsClient = grpc.ServerStreamingClient[StreamedWatchAssignmentsResponse] // OpenMatchServiceServer is the server API for OpenMatchService service. // All implementations must embed UnimplementedOpenMatchServiceServer -// for forward compatibility +// for forward compatibility. type OpenMatchServiceServer interface { // CreateTicket puts an immutable ticket into state storage, and returns it's Ticket Id. // Tickets will be actively expired after the configured OM_TICKET_TTL_SECS has passed. @@ -249,7 +233,7 @@ type OpenMatchServiceServer interface { // in each to fill the pools with eligible tickets. Once all pools in the profile are // filled with all eligible tickets, a copy of the profile is sent to each matchmaking // function endpoint specified in the request. MMF calls are defined by a separate gRPC - // service defined in proto/v2/mmf.proto, please reference it for details as to the input + // service defined in proto/mmf.proto, please reference it for details as to the input // and output of matchmaking functions. // All matches returned from all MMFs before the context deadline are then sent back // to OM's InvokeMatchmakingFunctions handler, which does the following: @@ -262,40 +246,48 @@ type OpenMatchServiceServer interface { // // cancel the invoked MMFs, by design. They will run, make matches, and exit // when they finish. - InvokeMatchmakingFunctions(*MmfRequest, OpenMatchService_InvokeMatchmakingFunctionsServer) error + InvokeMatchmakingFunctions(*MmfRequest, grpc.ServerStreamingServer[StreamedMmfResponse]) error + HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) // CreateAssignments creates an assignment for each ticket in the request's AssignmentRoster // field. Assignments are only guaranteed to exist until the ticket expires, although they MAY // continue to exist afterwords. This RPC is considered deprecated and should not be used in production. CreateAssignments(context.Context, *CreateAssignmentsRequest) (*CreateAssignmentsResponse, error) // WatchAssignments streams back one assignment of each ticketID requested, if it exists before the // timeout is reached. This RPC is considered deprecated and should not be used in production. - WatchAssignments(*WatchAssignmentsRequest, OpenMatchService_WatchAssignmentsServer) error + WatchAssignments(*WatchAssignmentsRequest, grpc.ServerStreamingServer[StreamedWatchAssignmentsResponse]) error mustEmbedUnimplementedOpenMatchServiceServer() } -// UnimplementedOpenMatchServiceServer must be embedded to have forward compatible implementations. -type UnimplementedOpenMatchServiceServer struct { -} +// UnimplementedOpenMatchServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOpenMatchServiceServer struct{} func (UnimplementedOpenMatchServiceServer) CreateTicket(context.Context, *CreateTicketRequest) (*CreateTicketResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTicket not implemented") + return nil, status.Error(codes.Unimplemented, "method CreateTicket not implemented") } func (UnimplementedOpenMatchServiceServer) DeactivateTickets(context.Context, *DeactivateTicketsRequest) (*DeactivateTicketsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateTickets not implemented") + return nil, status.Error(codes.Unimplemented, "method DeactivateTickets not implemented") } func (UnimplementedOpenMatchServiceServer) ActivateTickets(context.Context, *ActivateTicketsRequest) (*ActivateTicketsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ActivateTickets not implemented") + return nil, status.Error(codes.Unimplemented, "method ActivateTickets not implemented") } -func (UnimplementedOpenMatchServiceServer) InvokeMatchmakingFunctions(*MmfRequest, OpenMatchService_InvokeMatchmakingFunctionsServer) error { - return status.Errorf(codes.Unimplemented, "method InvokeMatchmakingFunctions not implemented") +func (UnimplementedOpenMatchServiceServer) InvokeMatchmakingFunctions(*MmfRequest, grpc.ServerStreamingServer[StreamedMmfResponse]) error { + return status.Error(codes.Unimplemented, "method InvokeMatchmakingFunctions not implemented") +} +func (UnimplementedOpenMatchServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { + return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") } func (UnimplementedOpenMatchServiceServer) CreateAssignments(context.Context, *CreateAssignmentsRequest) (*CreateAssignmentsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateAssignments not implemented") + return nil, status.Error(codes.Unimplemented, "method CreateAssignments not implemented") } -func (UnimplementedOpenMatchServiceServer) WatchAssignments(*WatchAssignmentsRequest, OpenMatchService_WatchAssignmentsServer) error { - return status.Errorf(codes.Unimplemented, "method WatchAssignments not implemented") +func (UnimplementedOpenMatchServiceServer) WatchAssignments(*WatchAssignmentsRequest, grpc.ServerStreamingServer[StreamedWatchAssignmentsResponse]) error { + return status.Error(codes.Unimplemented, "method WatchAssignments not implemented") } func (UnimplementedOpenMatchServiceServer) mustEmbedUnimplementedOpenMatchServiceServer() {} +func (UnimplementedOpenMatchServiceServer) testEmbeddedByValue() {} // UnsafeOpenMatchServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OpenMatchServiceServer will @@ -305,6 +297,13 @@ type UnsafeOpenMatchServiceServer interface { } func RegisterOpenMatchServiceServer(s grpc.ServiceRegistrar, srv OpenMatchServiceServer) { + // If the following call panics, it indicates UnimplementedOpenMatchServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&OpenMatchService_ServiceDesc, srv) } @@ -367,20 +366,28 @@ func _OpenMatchService_InvokeMatchmakingFunctions_Handler(srv interface{}, strea if err := stream.RecvMsg(m); err != nil { return err } - return srv.(OpenMatchServiceServer).InvokeMatchmakingFunctions(m, &openMatchServiceInvokeMatchmakingFunctionsServer{ServerStream: stream}) -} - -type OpenMatchService_InvokeMatchmakingFunctionsServer interface { - Send(*StreamedMmfResponse) error - grpc.ServerStream + return srv.(OpenMatchServiceServer).InvokeMatchmakingFunctions(m, &grpc.GenericServerStream[MmfRequest, StreamedMmfResponse]{ServerStream: stream}) } -type openMatchServiceInvokeMatchmakingFunctionsServer struct { - grpc.ServerStream -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type OpenMatchService_InvokeMatchmakingFunctionsServer = grpc.ServerStreamingServer[StreamedMmfResponse] -func (x *openMatchServiceInvokeMatchmakingFunctionsServer) Send(m *StreamedMmfResponse) error { - return x.ServerStream.SendMsg(m) +func _OpenMatchService_HealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(HealthCheckRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OpenMatchServiceServer).HealthCheck(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: OpenMatchService_HealthCheck_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OpenMatchServiceServer).HealthCheck(ctx, req.(*HealthCheckRequest)) + } + return interceptor(ctx, in, info, handler) } func _OpenMatchService_CreateAssignments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { @@ -406,21 +413,11 @@ func _OpenMatchService_WatchAssignments_Handler(srv interface{}, stream grpc.Ser if err := stream.RecvMsg(m); err != nil { return err } - return srv.(OpenMatchServiceServer).WatchAssignments(m, &openMatchServiceWatchAssignmentsServer{ServerStream: stream}) + return srv.(OpenMatchServiceServer).WatchAssignments(m, &grpc.GenericServerStream[WatchAssignmentsRequest, StreamedWatchAssignmentsResponse]{ServerStream: stream}) } -type OpenMatchService_WatchAssignmentsServer interface { - Send(*StreamedWatchAssignmentsResponse) error - grpc.ServerStream -} - -type openMatchServiceWatchAssignmentsServer struct { - grpc.ServerStream -} - -func (x *openMatchServiceWatchAssignmentsServer) Send(m *StreamedWatchAssignmentsResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type OpenMatchService_WatchAssignmentsServer = grpc.ServerStreamingServer[StreamedWatchAssignmentsResponse] // OpenMatchService_ServiceDesc is the grpc.ServiceDesc for OpenMatchService service. // It's only intended for direct use with grpc.RegisterService, @@ -441,6 +438,10 @@ var OpenMatchService_ServiceDesc = grpc.ServiceDesc{ MethodName: "ActivateTickets", Handler: _OpenMatchService_ActivateTickets_Handler, }, + { + MethodName: "HealthCheck", + Handler: _OpenMatchService_HealthCheck_Handler, + }, { MethodName: "CreateAssignments", Handler: _OpenMatchService_CreateAssignments_Handler, diff --git a/pkg/pb/messages.pb.go b/pkg/pb/messages.pb.go index d4fd7bb..d031b0e 100644 --- a/pkg/pb/messages.pb.go +++ b/pkg/pb/messages.pb.go @@ -36,7 +36,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.11 // protoc v5.27.2 // source: messages.proto @@ -49,6 +49,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -180,26 +181,23 @@ func (MatchmakingFunctionSpec_Type) EnumDescriptor() ([]byte, []int) { // your use case. Open Match will not interpret what the Ticket represents but // just treat it as a matchmaking unit with a set of SearchFields. type Ticket struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // auto-generated Id populated by Open Match. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Open Match populates to (the current time + OM_TICKET_TTL_SECS) ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` Attributes *Ticket_FilterableData `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` // fields which Open Match filters can access // Optional, user-customized information (ignored by Open Match) - Extensions map[string]*anypb.Any `protobuf:"bytes,4,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Extensions map[string]*anypb.Any `protobuf:"bytes,4,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Ticket) Reset() { *x = Ticket{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Ticket) String() string { @@ -210,7 +208,7 @@ func (*Ticket) ProtoMessage() {} func (x *Ticket) ProtoReflect() protoreflect.Message { mi := &file_messages_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -255,22 +253,19 @@ func (x *Ticket) GetExtensions() map[string]*anypb.Any { // An Assignment represents a game server assignment associated with a Ticket. type Assignment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"` // Connection information for this Assignment. + state protoimpl.MessageState `protogen:"open.v1"` + Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"` // Connection information for this Assignment. // Optional, user-customized information (ignored by Open Match) - Extensions map[string]*anypb.Any `protobuf:"bytes,2,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Extensions map[string]*anypb.Any `protobuf:"bytes,2,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Assignment) Reset() { *x = Assignment{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Assignment) String() string { @@ -281,7 +276,7 @@ func (*Assignment) ProtoMessage() {} func (x *Assignment) ProtoReflect() protoreflect.Message { mi := &file_messages_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -313,10 +308,7 @@ func (x *Assignment) GetExtensions() map[string]*anypb.Any { // Pool specfies a set of criteria that are used to select a subset of Tickets // that meet all the criteria. type Pool struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // User-defined name. Used to correlate logs, traces, and telemetry. TagPresentFilters []*Pool_TagPresentFilter `protobuf:"bytes,2,rep,name=tag_present_filters,json=tagPresentFilters,proto3" json:"tag_present_filters,omitempty"` StringEqualsFilters []*Pool_StringEqualsFilter `protobuf:"bytes,3,rep,name=string_equals_filters,json=stringEqualsFilters,proto3" json:"string_equals_filters,omitempty"` @@ -325,16 +317,16 @@ type Pool struct { // Output_only Participants are populated by the open match InvokeMatchMakingFunction RPC. Participants *Roster `protobuf:"bytes,6,opt,name=participants,proto3" json:"participants,omitempty"` // The tickets in open match that match all the filters of this Pool. // Optional, user-customized information (ignored by Open Match) - Extensions map[string]*anypb.Any `protobuf:"bytes,7,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Extensions map[string]*anypb.Any `protobuf:"bytes,7,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Pool) Reset() { *x = Pool{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Pool) String() string { @@ -345,7 +337,7 @@ func (*Pool) ProtoMessage() {} func (x *Pool) ProtoReflect() protoreflect.Message { mi := &file_messages_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -410,10 +402,7 @@ func (x *Pool) GetExtensions() map[string]*anypb.Any { } type Profile struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // User-defined name. // By convention, name your profiles using reverse-dns notation, since the // profile name is populated in log and telemetry attributes. Telemetry can @@ -427,18 +416,18 @@ type Profile struct { // name = 'teamshooter.asia.rev113148-8' // would both truncated when included in logs and telemetry as 'teamshooter.asia' Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Pools map[string]*Pool `protobuf:"bytes,2,rep,name=pools,proto3" json:"pools,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Set of pools to be queried and sent to the matchfunction + Pools map[string]*Pool `protobuf:"bytes,2,rep,name=pools,proto3" json:"pools,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Set of pools to be queried and sent to the matchfunction // Optional, user-customized information (ignored by Open Match) - Extensions map[string]*anypb.Any `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Extensions map[string]*anypb.Any `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Profile) Reset() { *x = Profile{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Profile) String() string { @@ -449,7 +438,7 @@ func (*Profile) ProtoMessage() {} func (x *Profile) ProtoReflect() protoreflect.Message { mi := &file_messages_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -486,23 +475,20 @@ func (x *Profile) GetExtensions() map[string]*anypb.Any { } type Match struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // User-defined Match ID added to telemetry. Used to correlate matches to logs and traces. - Rosters map[string]*Roster `protobuf:"bytes,2,rep,name=rosters,proto3" json:"rosters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Tickets belonging to this match. + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // User-defined Match ID added to telemetry. Used to correlate matches to logs and traces. + Rosters map[string]*Roster `protobuf:"bytes,2,rep,name=rosters,proto3" json:"rosters,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Tickets belonging to this match. // Optional, user-customized information (ignored by Open Match) - Extensions map[string]*anypb.Any `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Extensions map[string]*anypb.Any `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Match) Reset() { *x = Match{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Match) String() string { @@ -513,7 +499,7 @@ func (*Match) ProtoMessage() {} func (x *Match) ProtoReflect() protoreflect.Message { mi := &file_messages_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -551,24 +537,21 @@ func (x *Match) GetExtensions() map[string]*anypb.Any { // A Roster is a group of Tickets that share an assignment. type Roster struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Assignment *Assignment `protobuf:"bytes,2,opt,name=assignment,proto3" json:"assignment,omitempty"` - Tickets []*Ticket `protobuf:"bytes,3,rep,name=tickets,proto3" json:"tickets,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Assignment *Assignment `protobuf:"bytes,2,opt,name=assignment,proto3" json:"assignment,omitempty"` + Tickets []*Ticket `protobuf:"bytes,3,rep,name=tickets,proto3" json:"tickets,omitempty"` // Optional, user-customized information (ignored by Open Match) - Extensions map[string]*anypb.Any `protobuf:"bytes,4,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Extensions map[string]*anypb.Any `protobuf:"bytes,4,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Roster) Reset() { *x = Roster{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Roster) String() string { @@ -579,7 +562,7 @@ func (*Roster) ProtoMessage() {} func (x *Roster) ProtoReflect() protoreflect.Message { mi := &file_messages_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -624,10 +607,7 @@ func (x *Roster) GetExtensions() map[string]*anypb.Any { // specify MMF address and client type type MatchmakingFunctionSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // User-defined name. // // Note: The MatchmakingFunctionSpec name is populated in log and telemetry @@ -635,19 +615,19 @@ type MatchmakingFunctionSpec struct { // (google 'cardinality explosion' for more details), so as a general // guidance, try to keep the total number of mmf names you use to a few dozen // at most - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` - Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` - Type MatchmakingFunctionSpec_Type `protobuf:"varint,4,opt,name=type,proto3,enum=open_match2.MatchmakingFunctionSpec_Type" json:"type,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` + Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` + Type MatchmakingFunctionSpec_Type `protobuf:"varint,4,opt,name=type,proto3,enum=open_match2.MatchmakingFunctionSpec_Type" json:"type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MatchmakingFunctionSpec) Reset() { *x = MatchmakingFunctionSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MatchmakingFunctionSpec) String() string { @@ -658,7 +638,7 @@ func (*MatchmakingFunctionSpec) ProtoMessage() {} func (x *MatchmakingFunctionSpec) ProtoReflect() protoreflect.Message { mi := &file_messages_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -701,6 +681,86 @@ func (x *MatchmakingFunctionSpec) GetType() MatchmakingFunctionSpec_Type { return MatchmakingFunctionSpec_REST } +type HealthCheckRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HealthCheckRequest) Reset() { + *x = HealthCheckRequest{} + mi := &file_messages_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HealthCheckRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HealthCheckRequest) ProtoMessage() {} + +func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message { + mi := &file_messages_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead. +func (*HealthCheckRequest) Descriptor() ([]byte, []int) { + return file_messages_proto_rawDescGZIP(), []int{7} +} + +type HealthCheckResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HealthCheckResponse) Reset() { + *x = HealthCheckResponse{} + mi := &file_messages_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HealthCheckResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HealthCheckResponse) ProtoMessage() {} + +func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message { + mi := &file_messages_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead. +func (*HealthCheckResponse) Descriptor() ([]byte, []int) { + return file_messages_proto_rawDescGZIP(), []int{8} +} + +func (x *HealthCheckResponse) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + // API reponse/request messages, used by api.proto and mmf.proto // -------------------------------------------------------------- // Arguments sent to your MMF can be more than the maximum gRPC message size of @@ -709,23 +769,20 @@ func (x *MatchmakingFunctionSpec) GetType() MatchmakingFunctionSpec_Type { // participants based on pool name in order to reconstruct the full, // unpaginated ticket pools. type ChunkedMmfRunRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Part of a profile chunked to fit in max gRPC message size Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // How many chunks this profile is broken into - NumChunks int32 `protobuf:"varint,2,opt,name=num_chunks,json=numChunks,proto3" json:"num_chunks,omitempty"` + NumChunks int32 `protobuf:"varint,2,opt,name=num_chunks,json=numChunks,proto3" json:"num_chunks,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChunkedMmfRunRequest) Reset() { *x = ChunkedMmfRunRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChunkedMmfRunRequest) String() string { @@ -735,8 +792,8 @@ func (x *ChunkedMmfRunRequest) String() string { func (*ChunkedMmfRunRequest) ProtoMessage() {} func (x *ChunkedMmfRunRequest) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[9] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -748,7 +805,7 @@ func (x *ChunkedMmfRunRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChunkedMmfRunRequest.ProtoReflect.Descriptor instead. func (*ChunkedMmfRunRequest) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{7} + return file_messages_proto_rawDescGZIP(), []int{9} } func (x *ChunkedMmfRunRequest) GetProfile() *Profile { @@ -767,20 +824,17 @@ func (x *ChunkedMmfRunRequest) GetNumChunks() int32 { // CreateTicket forcably assigns an unique TicketId and puts the ticket into state storage. type CreateTicketRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ticket *Ticket `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"` unknownFields protoimpl.UnknownFields - - Ticket *Ticket `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateTicketRequest) Reset() { *x = CreateTicketRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateTicketRequest) String() string { @@ -790,8 +844,8 @@ func (x *CreateTicketRequest) String() string { func (*CreateTicketRequest) ProtoMessage() {} func (x *CreateTicketRequest) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[10] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -803,7 +857,7 @@ func (x *CreateTicketRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateTicketRequest.ProtoReflect.Descriptor instead. func (*CreateTicketRequest) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{8} + return file_messages_proto_rawDescGZIP(), []int{10} } func (x *CreateTicketRequest) GetTicket() *Ticket { @@ -814,20 +868,17 @@ func (x *CreateTicketRequest) GetTicket() *Ticket { } type CreateTicketResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TicketId string `protobuf:"bytes,1,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"` unknownFields protoimpl.UnknownFields - - TicketId string `protobuf:"bytes,1,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateTicketResponse) Reset() { *x = CreateTicketResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateTicketResponse) String() string { @@ -837,8 +888,8 @@ func (x *CreateTicketResponse) String() string { func (*CreateTicketResponse) ProtoMessage() {} func (x *CreateTicketResponse) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[11] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -850,7 +901,7 @@ func (x *CreateTicketResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateTicketResponse.ProtoReflect.Descriptor instead. func (*CreateTicketResponse) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{9} + return file_messages_proto_rawDescGZIP(), []int{11} } func (x *CreateTicketResponse) GetTicketId() string { @@ -862,20 +913,17 @@ func (x *CreateTicketResponse) GetTicketId() string { // DeactivateTicket removes the Ticket from state storage asynchronously. type DeactivateTicketsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TicketIds []string `protobuf:"bytes,1,rep,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"` unknownFields protoimpl.UnknownFields - - TicketIds []string `protobuf:"bytes,1,rep,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeactivateTicketsRequest) Reset() { *x = DeactivateTicketsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeactivateTicketsRequest) String() string { @@ -885,8 +933,8 @@ func (x *DeactivateTicketsRequest) String() string { func (*DeactivateTicketsRequest) ProtoMessage() {} func (x *DeactivateTicketsRequest) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[12] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -898,7 +946,7 @@ func (x *DeactivateTicketsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeactivateTicketsRequest.ProtoReflect.Descriptor instead. func (*DeactivateTicketsRequest) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{10} + return file_messages_proto_rawDescGZIP(), []int{12} } func (x *DeactivateTicketsRequest) GetTicketIds() []string { @@ -909,18 +957,16 @@ func (x *DeactivateTicketsRequest) GetTicketIds() []string { } type DeactivateTicketsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeactivateTicketsResponse) Reset() { *x = DeactivateTicketsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeactivateTicketsResponse) String() string { @@ -930,8 +976,8 @@ func (x *DeactivateTicketsResponse) String() string { func (*DeactivateTicketsResponse) ProtoMessage() {} func (x *DeactivateTicketsResponse) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[13] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -943,25 +989,22 @@ func (x *DeactivateTicketsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeactivateTicketsResponse.ProtoReflect.Descriptor instead. func (*DeactivateTicketsResponse) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{11} + return file_messages_proto_rawDescGZIP(), []int{13} } // ActivateTickets moves tickets from the inactive state back to the active state (will show up in pools). type ActivateTicketsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TicketIds []string `protobuf:"bytes,1,rep,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"` unknownFields protoimpl.UnknownFields - - TicketIds []string `protobuf:"bytes,1,rep,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ActivateTicketsRequest) Reset() { *x = ActivateTicketsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivateTicketsRequest) String() string { @@ -971,8 +1014,8 @@ func (x *ActivateTicketsRequest) String() string { func (*ActivateTicketsRequest) ProtoMessage() {} func (x *ActivateTicketsRequest) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[14] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -984,7 +1027,7 @@ func (x *ActivateTicketsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ActivateTicketsRequest.ProtoReflect.Descriptor instead. func (*ActivateTicketsRequest) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{12} + return file_messages_proto_rawDescGZIP(), []int{14} } func (x *ActivateTicketsRequest) GetTicketIds() []string { @@ -995,18 +1038,16 @@ func (x *ActivateTicketsRequest) GetTicketIds() []string { } type ActivateTicketsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ActivateTicketsResponse) Reset() { *x = ActivateTicketsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivateTicketsResponse) String() string { @@ -1016,8 +1057,8 @@ func (x *ActivateTicketsResponse) String() string { func (*ActivateTicketsResponse) ProtoMessage() {} func (x *ActivateTicketsResponse) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[15] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1029,29 +1070,26 @@ func (x *ActivateTicketsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ActivateTicketsResponse.ProtoReflect.Descriptor instead. func (*ActivateTicketsResponse) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{13} + return file_messages_proto_rawDescGZIP(), []int{15} } // MmfRequest is sent to the InvokeMatchmakingFunction() rpc call to define how // to call your mmf, and what arguments to send it. type MmfRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // A Profile to send to the MatchMakingFunction(s) Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // List of MatchMakingfunctions to invoke. - Mmfs []*MatchmakingFunctionSpec `protobuf:"bytes,2,rep,name=mmfs,proto3" json:"mmfs,omitempty"` + Mmfs []*MatchmakingFunctionSpec `protobuf:"bytes,2,rep,name=mmfs,proto3" json:"mmfs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MmfRequest) Reset() { *x = MmfRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MmfRequest) String() string { @@ -1061,8 +1099,8 @@ func (x *MmfRequest) String() string { func (*MmfRequest) ProtoMessage() {} func (x *MmfRequest) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[16] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1074,7 +1112,7 @@ func (x *MmfRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use MmfRequest.ProtoReflect.Descriptor instead. func (*MmfRequest) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{14} + return file_messages_proto_rawDescGZIP(), []int{16} } func (x *MmfRequest) GetProfile() *Profile { @@ -1101,20 +1139,17 @@ func (x *MmfRequest) GetMmfs() []*MatchmakingFunctionSpec { // mmf response to om-core will be exactly what om-core returns to your // matchmaker. type StreamedMmfResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Match *Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` unknownFields protoimpl.UnknownFields - - Match *Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StreamedMmfResponse) Reset() { *x = StreamedMmfResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StreamedMmfResponse) String() string { @@ -1124,8 +1159,8 @@ func (x *StreamedMmfResponse) String() string { func (*StreamedMmfResponse) ProtoMessage() {} func (x *StreamedMmfResponse) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[17] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1137,7 +1172,7 @@ func (x *StreamedMmfResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamedMmfResponse.ProtoReflect.Descriptor instead. func (*StreamedMmfResponse) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{15} + return file_messages_proto_rawDescGZIP(), []int{17} } func (x *StreamedMmfResponse) GetMatch() *Match { @@ -1151,20 +1186,17 @@ func (x *StreamedMmfResponse) GetMatch() *Match { // CreateAssignments creates an assignment for all Tickets in this Roster. These assignments can be retrieved // with the Ticket ID using the WatchAssignments rpc. type CreateAssignmentsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssignmentRoster *Roster `protobuf:"bytes,1,opt,name=assignment_roster,json=assignmentRoster,proto3" json:"assignment_roster,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + AssignmentRoster *Roster `protobuf:"bytes,1,opt,name=assignment_roster,json=assignmentRoster,proto3" json:"assignment_roster,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateAssignmentsRequest) Reset() { *x = CreateAssignmentsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateAssignmentsRequest) String() string { @@ -1174,8 +1206,8 @@ func (x *CreateAssignmentsRequest) String() string { func (*CreateAssignmentsRequest) ProtoMessage() {} func (x *CreateAssignmentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[18] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1187,7 +1219,7 @@ func (x *CreateAssignmentsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAssignmentsRequest.ProtoReflect.Descriptor instead. func (*CreateAssignmentsRequest) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{16} + return file_messages_proto_rawDescGZIP(), []int{18} } func (x *CreateAssignmentsRequest) GetAssignmentRoster() *Roster { @@ -1198,18 +1230,16 @@ func (x *CreateAssignmentsRequest) GetAssignmentRoster() *Roster { } type CreateAssignmentsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateAssignmentsResponse) Reset() { *x = CreateAssignmentsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateAssignmentsResponse) String() string { @@ -1219,8 +1249,8 @@ func (x *CreateAssignmentsResponse) String() string { func (*CreateAssignmentsResponse) ProtoMessage() {} func (x *CreateAssignmentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[19] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1232,26 +1262,23 @@ func (x *CreateAssignmentsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAssignmentsResponse.ProtoReflect.Descriptor instead. func (*CreateAssignmentsResponse) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{17} + return file_messages_proto_rawDescGZIP(), []int{19} } // DEV/TEST ONLY - DO NOT USE IN PRODUCTION // WatchAssignments streams back results of the AssignTickets RPC that affected these TicketIds. type WatchAssignmentsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TicketIds []string `protobuf:"bytes,1,rep,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"` unknownFields protoimpl.UnknownFields - - TicketIds []string `protobuf:"bytes,1,rep,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *WatchAssignmentsRequest) Reset() { *x = WatchAssignmentsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WatchAssignmentsRequest) String() string { @@ -1261,8 +1288,8 @@ func (x *WatchAssignmentsRequest) String() string { func (*WatchAssignmentsRequest) ProtoMessage() {} func (x *WatchAssignmentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[20] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1274,7 +1301,7 @@ func (x *WatchAssignmentsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WatchAssignmentsRequest.ProtoReflect.Descriptor instead. func (*WatchAssignmentsRequest) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{18} + return file_messages_proto_rawDescGZIP(), []int{20} } func (x *WatchAssignmentsRequest) GetTicketIds() []string { @@ -1285,21 +1312,18 @@ func (x *WatchAssignmentsRequest) GetTicketIds() []string { } type StreamedWatchAssignmentsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Assignment *Assignment `protobuf:"bytes,1,opt,name=assignment,proto3" json:"assignment,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Assignment *Assignment `protobuf:"bytes,1,opt,name=assignment,proto3" json:"assignment,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StreamedWatchAssignmentsResponse) Reset() { *x = StreamedWatchAssignmentsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StreamedWatchAssignmentsResponse) String() string { @@ -1309,8 +1333,8 @@ func (x *StreamedWatchAssignmentsResponse) String() string { func (*StreamedWatchAssignmentsResponse) ProtoMessage() {} func (x *StreamedWatchAssignmentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[21] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1322,7 +1346,7 @@ func (x *StreamedWatchAssignmentsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamedWatchAssignmentsResponse.ProtoReflect.Descriptor instead. func (*StreamedWatchAssignmentsResponse) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{19} + return file_messages_proto_rawDescGZIP(), []int{21} } func (x *StreamedWatchAssignmentsResponse) GetAssignment() *Assignment { @@ -1347,26 +1371,23 @@ func (x *StreamedWatchAssignmentsResponse) GetId() string { // put it in the Ticket's more efficient 'extensions' field instead, which Open Match // just stores and forwards to your code without additional parsing, indexing, or processing. type Ticket_FilterableData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` // Strings, filterable on presence of tag. - StringArgs map[string]string `protobuf:"bytes,2,rep,name=string_args,json=stringArgs,proto3" json:"string_args,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // key+value pairs, string values filterable on equality. - DoubleArgs map[string]float64 `protobuf:"bytes,3,rep,name=double_args,json=doubleArgs,proto3" json:"double_args,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` // key+value pairs, float values filterable on ranges. + state protoimpl.MessageState `protogen:"open.v1"` + Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` // Strings, filterable on presence of tag. + StringArgs map[string]string `protobuf:"bytes,2,rep,name=string_args,json=stringArgs,proto3" json:"string_args,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // key+value pairs, string values filterable on equality. + DoubleArgs map[string]float64 `protobuf:"bytes,3,rep,name=double_args,json=doubleArgs,proto3" json:"double_args,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` // key+value pairs, float values filterable on ranges. // Override-able timestamp. // Open Match will populate this with the current time // if you don't specify a value at ticket creation. - CreationTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` + CreationTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Ticket_FilterableData) Reset() { *x = Ticket_FilterableData{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Ticket_FilterableData) String() string { @@ -1376,8 +1397,8 @@ func (x *Ticket_FilterableData) String() string { func (*Ticket_FilterableData) ProtoMessage() {} func (x *Ticket_FilterableData) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[22] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1425,20 +1446,17 @@ func (x *Ticket_FilterableData) GetCreationTime() *timestamppb.Timestamp { // // (A Pool is an 'intersection', in mathematical set terms) type Pool_TagPresentFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` unknownFields protoimpl.UnknownFields - - Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Pool_TagPresentFilter) Reset() { *x = Pool_TagPresentFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Pool_TagPresentFilter) String() string { @@ -1448,8 +1466,8 @@ func (x *Pool_TagPresentFilter) String() string { func (*Pool_TagPresentFilter) ProtoMessage() {} func (x *Pool_TagPresentFilter) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[27] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1472,21 +1490,18 @@ func (x *Pool_TagPresentFilter) GetTag() string { } type Pool_StringEqualsFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + StringArg string `protobuf:"bytes,1,opt,name=string_arg,json=stringArg,proto3" json:"string_arg,omitempty"` // Which map key of the ticket's search_fields.string_args to filter + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - StringArg string `protobuf:"bytes,1,opt,name=string_arg,json=stringArg,proto3" json:"string_arg,omitempty"` // Which map key of the ticket's search_fields.string_args to filter - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Pool_StringEqualsFilter) Reset() { *x = Pool_StringEqualsFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Pool_StringEqualsFilter) String() string { @@ -1496,8 +1511,8 @@ func (x *Pool_StringEqualsFilter) String() string { func (*Pool_StringEqualsFilter) ProtoMessage() {} func (x *Pool_StringEqualsFilter) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[28] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1527,23 +1542,20 @@ func (x *Pool_StringEqualsFilter) GetValue() string { } type Pool_DoubleRangeFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DoubleArg string `protobuf:"bytes,1,opt,name=double_arg,json=doubleArg,proto3" json:"double_arg,omitempty"` // Which map key of the ticket's search_fields.double_args to filter + Minimum float64 `protobuf:"fixed64,2,opt,name=minimum,proto3" json:"minimum,omitempty"` + Maximum float64 `protobuf:"fixed64,3,opt,name=maximum,proto3" json:"maximum,omitempty"` + Bounds Pool_FilterBounds `protobuf:"varint,4,opt,name=bounds,proto3,enum=open_match2.Pool_FilterBounds" json:"bounds,omitempty"` // Defines the bounds to apply when filtering tickets unknownFields protoimpl.UnknownFields - - DoubleArg string `protobuf:"bytes,1,opt,name=double_arg,json=doubleArg,proto3" json:"double_arg,omitempty"` // Which map key of the ticket's search_fields.double_args to filter - Minimum float64 `protobuf:"fixed64,2,opt,name=minimum,proto3" json:"minimum,omitempty"` - Maximum float64 `protobuf:"fixed64,3,opt,name=maximum,proto3" json:"maximum,omitempty"` - Bounds Pool_FilterBounds `protobuf:"varint,4,opt,name=bounds,proto3,enum=open_match2.Pool_FilterBounds" json:"bounds,omitempty"` // Defines the bounds to apply when filtering tickets + sizeCache protoimpl.SizeCache } func (x *Pool_DoubleRangeFilter) Reset() { *x = Pool_DoubleRangeFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Pool_DoubleRangeFilter) String() string { @@ -1553,8 +1565,8 @@ func (x *Pool_DoubleRangeFilter) String() string { func (*Pool_DoubleRangeFilter) ProtoMessage() {} func (x *Pool_DoubleRangeFilter) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[29] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1598,23 +1610,20 @@ func (x *Pool_DoubleRangeFilter) GetBounds() Pool_FilterBounds { } type Pool_CreationTimeRangeFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Compares against the 'creation_time' field of the Ticket 'attributes'. - Start *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start,proto3" json:"start,omitempty"` - End *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=end,proto3" json:"end,omitempty"` - Bounds Pool_FilterBounds `protobuf:"varint,4,opt,name=bounds,proto3,enum=open_match2.Pool_FilterBounds" json:"bounds,omitempty"` // Defines the bounds to apply when filtering tickets + Start *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start,proto3" json:"start,omitempty"` + End *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=end,proto3" json:"end,omitempty"` + Bounds Pool_FilterBounds `protobuf:"varint,4,opt,name=bounds,proto3,enum=open_match2.Pool_FilterBounds" json:"bounds,omitempty"` // Defines the bounds to apply when filtering tickets + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Pool_CreationTimeRangeFilter) Reset() { *x = Pool_CreationTimeRangeFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_messages_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Pool_CreationTimeRangeFilter) String() string { @@ -1624,8 +1633,8 @@ func (x *Pool_CreationTimeRangeFilter) String() string { func (*Pool_CreationTimeRangeFilter) ProtoMessage() {} func (x *Pool_CreationTimeRangeFilter) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_messages_proto_msgTypes[30] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1663,294 +1672,182 @@ func (x *Pool_CreationTimeRangeFilter) GetBounds() Pool_FilterBounds { var File_messages_proto protoreflect.FileDescriptor -var file_messages_proto_rawDesc = []byte{ - 0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0b, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x1a, 0x19, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, - 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcb, 0x05, 0x0a, 0x06, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x43, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0a, 0x61, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, - 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, - 0x65, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x43, 0x0a, - 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x1a, 0x8d, 0x03, 0x0a, 0x0e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x61, 0x62, 0x6c, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x73, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, - 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x61, - 0x74, 0x61, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x41, 0x72, 0x67, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x41, 0x72, 0x67, 0x73, 0x12, 0x53, - 0x0a, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, - 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x61, - 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x41, 0x72, - 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x41, - 0x72, 0x67, 0x73, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x54, 0x69, 0x6d, 0x65, 0x1a, 0x3d, 0x0a, 0x0f, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x41, 0x72, - 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x1a, 0x3d, 0x0a, 0x0f, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x41, 0x72, 0x67, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x1a, 0x53, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xca, 0x01, 0x0a, 0x0a, 0x41, 0x73, 0x73, 0x69, - 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, - 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, - 0x53, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x22, 0xed, 0x09, 0x0a, 0x04, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x52, 0x0a, 0x13, 0x74, 0x61, 0x67, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, - 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, - 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x50, 0x6f, 0x6f, - 0x6c, 0x2e, 0x54, 0x61, 0x67, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x52, 0x11, 0x74, 0x61, 0x67, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x46, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x58, 0x0a, 0x15, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, - 0x65, 0x71, 0x75, 0x61, 0x6c, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x32, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x71, - 0x75, 0x61, 0x6c, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x13, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x45, 0x71, 0x75, 0x61, 0x6c, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, - 0x55, 0x0a, 0x14, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, - 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x52, 0x12, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x46, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x66, 0x0a, 0x1a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6f, 0x70, 0x65, - 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x46, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x17, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, - 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x37, - 0x0a, 0x0c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x32, 0x2e, 0x52, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0c, 0x70, 0x61, 0x72, 0x74, 0x69, - 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x41, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6f, 0x70, - 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x2e, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, - 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x24, 0x0a, 0x10, 0x54, 0x61, - 0x67, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x10, - 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, - 0x1a, 0x49, 0x0a, 0x12, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x71, 0x75, 0x61, 0x6c, 0x73, - 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x5f, 0x61, 0x72, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x41, 0x72, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x9e, 0x01, 0x0a, 0x11, - 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x72, 0x67, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x41, 0x72, 0x67, - 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x01, 0x52, 0x07, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, - 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x6d, 0x61, 0x78, - 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x36, 0x0a, 0x06, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x32, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x42, 0x6f, - 0x75, 0x6e, 0x64, 0x73, 0x52, 0x06, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x1a, 0xb1, 0x01, 0x0a, - 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, - 0x67, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x2c, 0x0a, 0x03, 0x65, 0x6e, - 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x06, 0x62, 0x6f, 0x75, 0x6e, - 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, - 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x2e, 0x46, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x06, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x73, - 0x1a, 0x53, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xcc, 0x01, 0x0a, 0x0c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x58, 0x43, 0x4c, 0x55, 0x44, - 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x4e, 0x43, 0x4c, - 0x55, 0x44, 0x45, 0x5f, 0x42, 0x4f, 0x54, 0x48, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x58, - 0x43, 0x4c, 0x55, 0x44, 0x45, 0x5f, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x45, - 0x58, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x01, 0x12, 0x14, - 0x0a, 0x10, 0x49, 0x4e, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x5f, 0x4d, 0x41, 0x58, 0x5f, 0x4f, 0x4e, - 0x4c, 0x59, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x58, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x5f, - 0x4d, 0x41, 0x58, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x58, 0x43, 0x4c, 0x55, 0x44, 0x45, - 0x5f, 0x45, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x43, 0x4c, 0x55, 0x44, - 0x45, 0x5f, 0x4d, 0x49, 0x4e, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, - 0x45, 0x58, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x5f, 0x42, 0x4f, 0x54, 0x48, 0x10, 0x03, 0x12, 0x10, - 0x0a, 0x0c, 0x49, 0x4e, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x03, - 0x1a, 0x02, 0x10, 0x01, 0x22, 0xbc, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, - 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x44, 0x0a, 0x0a, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x50, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x1a, 0x4b, 0x0a, 0x0a, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x11, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x50, - 0x6f, 0x6f, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x53, - 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0xbc, 0x02, 0x0a, 0x05, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, - 0x07, 0x72, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, - 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x4d, 0x61, 0x74, - 0x63, 0x68, 0x2e, 0x52, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x07, 0x72, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x42, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, - 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, - 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x4f, 0x0a, 0x0c, - 0x52, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x29, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x52, 0x6f, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x53, 0x0a, - 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0x9e, 0x02, 0x0a, 0x06, 0x52, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, - 0x63, 0x68, 0x32, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0a, - 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x07, 0x74, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6f, 0x70, - 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, - 0x52, 0x07, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x43, 0x0a, 0x0a, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x52, 0x6f, 0x73, 0x74, - 0x65, 0x72, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x53, - 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0xb0, 0x01, 0x0a, 0x17, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x6d, 0x61, 0x6b, - 0x69, 0x6e, 0x67, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x6f, 0x70, 0x65, 0x6e, - 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x6d, 0x61, 0x6b, - 0x69, 0x6e, 0x67, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x2e, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x1a, 0x0a, 0x04, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x52, 0x45, 0x53, 0x54, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, - 0x47, 0x52, 0x50, 0x43, 0x10, 0x01, 0x22, 0x65, 0x0a, 0x14, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, - 0x64, 0x4d, 0x6d, 0x66, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, - 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x50, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1d, - 0x0a, 0x0a, 0x6e, 0x75, 0x6d, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x09, 0x6e, 0x75, 0x6d, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x22, 0x42, 0x0a, - 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x22, 0x33, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0x39, 0x0a, 0x18, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, - 0x73, 0x22, 0x1b, 0x0a, 0x19, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, - 0x0a, 0x16, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x69, 0x63, 0x6b, - 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x76, 0x0a, 0x0a, 0x4d, 0x6d, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x2e, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, - 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x12, 0x38, 0x0a, 0x04, 0x6d, 0x6d, 0x66, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, - 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x4d, 0x61, 0x74, - 0x63, 0x68, 0x6d, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x6d, 0x6d, 0x66, 0x73, 0x22, 0x3f, 0x0a, 0x13, 0x53, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x4d, 0x6d, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x28, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x4d, - 0x61, 0x74, 0x63, 0x68, 0x52, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x22, 0x5c, 0x0a, 0x18, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x11, 0x61, 0x73, 0x73, 0x69, 0x67, - 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, - 0x2e, 0x52, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x52, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x0a, 0x17, 0x57, 0x61, 0x74, 0x63, 0x68, 0x41, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x73, - 0x22, 0x6b, 0x0a, 0x20, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x64, 0x57, 0x61, 0x74, 0x63, - 0x68, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x5f, - 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x0a, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x42, 0x3b, 0x5a, - 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x66, 0x6f, 0x72, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2d, - 0x6d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0xaa, 0x02, 0x0a, - 0x4f, 0x70, 0x65, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} +const file_messages_proto_rawDesc = "" + + "\n" + + "\x0emessages.proto\x12\vopen_match2\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcb\x05\n" + + "\x06Ticket\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12C\n" + + "\x0fexpiration_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x0eexpirationTime\x12B\n" + + "\n" + + "attributes\x18\x03 \x01(\v2\".open_match2.Ticket.FilterableDataR\n" + + "attributes\x12C\n" + + "\n" + + "extensions\x18\x04 \x03(\v2#.open_match2.Ticket.ExtensionsEntryR\n" + + "extensions\x1a\x8d\x03\n" + + "\x0eFilterableData\x12\x12\n" + + "\x04tags\x18\x01 \x03(\tR\x04tags\x12S\n" + + "\vstring_args\x18\x02 \x03(\v22.open_match2.Ticket.FilterableData.StringArgsEntryR\n" + + "stringArgs\x12S\n" + + "\vdouble_args\x18\x03 \x03(\v22.open_match2.Ticket.FilterableData.DoubleArgsEntryR\n" + + "doubleArgs\x12?\n" + + "\rcreation_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\fcreationTime\x1a=\n" + + "\x0fStringArgsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a=\n" + + "\x0fDoubleArgsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\x01R\x05value:\x028\x01\x1aS\n" + + "\x0fExtensionsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + + "\x05value\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x05value:\x028\x01\"\xca\x01\n" + + "\n" + + "Assignment\x12\x1e\n" + + "\n" + + "connection\x18\x01 \x01(\tR\n" + + "connection\x12G\n" + + "\n" + + "extensions\x18\x02 \x03(\v2'.open_match2.Assignment.ExtensionsEntryR\n" + + "extensions\x1aS\n" + + "\x0fExtensionsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + + "\x05value\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x05value:\x028\x01\"\xed\t\n" + + "\x04Pool\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12R\n" + + "\x13tag_present_filters\x18\x02 \x03(\v2\".open_match2.Pool.TagPresentFilterR\x11tagPresentFilters\x12X\n" + + "\x15string_equals_filters\x18\x03 \x03(\v2$.open_match2.Pool.StringEqualsFilterR\x13stringEqualsFilters\x12U\n" + + "\x14double_range_filters\x18\x04 \x03(\v2#.open_match2.Pool.DoubleRangeFilterR\x12doubleRangeFilters\x12f\n" + + "\x1acreation_time_range_filter\x18\x05 \x01(\v2).open_match2.Pool.CreationTimeRangeFilterR\x17creationTimeRangeFilter\x127\n" + + "\fparticipants\x18\x06 \x01(\v2\x13.open_match2.RosterR\fparticipants\x12A\n" + + "\n" + + "extensions\x18\a \x03(\v2!.open_match2.Pool.ExtensionsEntryR\n" + + "extensions\x1a$\n" + + "\x10TagPresentFilter\x12\x10\n" + + "\x03tag\x18\x01 \x01(\tR\x03tag\x1aI\n" + + "\x12StringEqualsFilter\x12\x1d\n" + + "\n" + + "string_arg\x18\x01 \x01(\tR\tstringArg\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value\x1a\x9e\x01\n" + + "\x11DoubleRangeFilter\x12\x1d\n" + + "\n" + + "double_arg\x18\x01 \x01(\tR\tdoubleArg\x12\x18\n" + + "\aminimum\x18\x02 \x01(\x01R\aminimum\x12\x18\n" + + "\amaximum\x18\x03 \x01(\x01R\amaximum\x126\n" + + "\x06bounds\x18\x04 \x01(\x0e2\x1e.open_match2.Pool.FilterBoundsR\x06bounds\x1a\xb1\x01\n" + + "\x17CreationTimeRangeFilter\x120\n" + + "\x05start\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x05start\x12,\n" + + "\x03end\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x03end\x126\n" + + "\x06bounds\x18\x04 \x01(\x0e2\x1e.open_match2.Pool.FilterBoundsR\x06bounds\x1aS\n" + + "\x0fExtensionsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + + "\x05value\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x05value:\x028\x01\"\xcc\x01\n" + + "\fFilterBounds\x12\x10\n" + + "\fEXCLUDE_NONE\x10\x00\x12\x10\n" + + "\fINCLUDE_BOTH\x10\x00\x12\x0f\n" + + "\vEXCLUDE_MIN\x10\x01\x12\x11\n" + + "\rEXCLUDE_START\x10\x01\x12\x14\n" + + "\x10INCLUDE_MAX_ONLY\x10\x01\x12\x0f\n" + + "\vEXCLUDE_MAX\x10\x02\x12\x0f\n" + + "\vEXCLUDE_END\x10\x02\x12\x14\n" + + "\x10INCLUDE_MIN_ONLY\x10\x02\x12\x10\n" + + "\fEXCLUDE_BOTH\x10\x03\x12\x10\n" + + "\fINCLUDE_NONE\x10\x03\x1a\x02\x10\x01\"\xbc\x02\n" + + "\aProfile\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x125\n" + + "\x05pools\x18\x02 \x03(\v2\x1f.open_match2.Profile.PoolsEntryR\x05pools\x12D\n" + + "\n" + + "extensions\x18\x03 \x03(\v2$.open_match2.Profile.ExtensionsEntryR\n" + + "extensions\x1aK\n" + + "\n" + + "PoolsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12'\n" + + "\x05value\x18\x02 \x01(\v2\x11.open_match2.PoolR\x05value:\x028\x01\x1aS\n" + + "\x0fExtensionsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + + "\x05value\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x05value:\x028\x01\"\xbc\x02\n" + + "\x05Match\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x129\n" + + "\arosters\x18\x02 \x03(\v2\x1f.open_match2.Match.RostersEntryR\arosters\x12B\n" + + "\n" + + "extensions\x18\x03 \x03(\v2\".open_match2.Match.ExtensionsEntryR\n" + + "extensions\x1aO\n" + + "\fRostersEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12)\n" + + "\x05value\x18\x02 \x01(\v2\x13.open_match2.RosterR\x05value:\x028\x01\x1aS\n" + + "\x0fExtensionsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + + "\x05value\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x05value:\x028\x01\"\x9e\x02\n" + + "\x06Roster\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x127\n" + + "\n" + + "assignment\x18\x02 \x01(\v2\x17.open_match2.AssignmentR\n" + + "assignment\x12-\n" + + "\atickets\x18\x03 \x03(\v2\x13.open_match2.TicketR\atickets\x12C\n" + + "\n" + + "extensions\x18\x04 \x03(\v2#.open_match2.Roster.ExtensionsEntryR\n" + + "extensions\x1aS\n" + + "\x0fExtensionsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + + "\x05value\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x05value:\x028\x01\"\xb0\x01\n" + + "\x17MatchmakingFunctionSpec\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" + + "\x04host\x18\x02 \x01(\tR\x04host\x12\x12\n" + + "\x04port\x18\x03 \x01(\x05R\x04port\x12=\n" + + "\x04type\x18\x04 \x01(\x0e2).open_match2.MatchmakingFunctionSpec.TypeR\x04type\"\x1a\n" + + "\x04Type\x12\b\n" + + "\x04REST\x10\x00\x12\b\n" + + "\x04GRPC\x10\x01\"\x14\n" + + "\x12HealthCheckRequest\"-\n" + + "\x13HealthCheckResponse\x12\x16\n" + + "\x06status\x18\x01 \x01(\tR\x06status\"e\n" + + "\x14ChunkedMmfRunRequest\x12.\n" + + "\aprofile\x18\x01 \x01(\v2\x14.open_match2.ProfileR\aprofile\x12\x1d\n" + + "\n" + + "num_chunks\x18\x02 \x01(\x05R\tnumChunks\"B\n" + + "\x13CreateTicketRequest\x12+\n" + + "\x06ticket\x18\x01 \x01(\v2\x13.open_match2.TicketR\x06ticket\"3\n" + + "\x14CreateTicketResponse\x12\x1b\n" + + "\tticket_id\x18\x01 \x01(\tR\bticketId\"9\n" + + "\x18DeactivateTicketsRequest\x12\x1d\n" + + "\n" + + "ticket_ids\x18\x01 \x03(\tR\tticketIds\"\x1b\n" + + "\x19DeactivateTicketsResponse\"7\n" + + "\x16ActivateTicketsRequest\x12\x1d\n" + + "\n" + + "ticket_ids\x18\x01 \x03(\tR\tticketIds\"\x19\n" + + "\x17ActivateTicketsResponse\"v\n" + + "\n" + + "MmfRequest\x12.\n" + + "\aprofile\x18\x01 \x01(\v2\x14.open_match2.ProfileR\aprofile\x128\n" + + "\x04mmfs\x18\x02 \x03(\v2$.open_match2.MatchmakingFunctionSpecR\x04mmfs\"?\n" + + "\x13StreamedMmfResponse\x12(\n" + + "\x05match\x18\x01 \x01(\v2\x12.open_match2.MatchR\x05match\"\\\n" + + "\x18CreateAssignmentsRequest\x12@\n" + + "\x11assignment_roster\x18\x01 \x01(\v2\x13.open_match2.RosterR\x10assignmentRoster\"\x1b\n" + + "\x19CreateAssignmentsResponse\"8\n" + + "\x17WatchAssignmentsRequest\x12\x1d\n" + + "\n" + + "ticket_ids\x18\x01 \x03(\tR\tticketIds\"k\n" + + " StreamedWatchAssignmentsResponse\x127\n" + + "\n" + + "assignment\x18\x01 \x01(\v2\x17.open_match2.AssignmentR\n" + + "assignment\x12\x0e\n" + + "\x02id\x18\x02 \x01(\tR\x02idB;Z,github.com/googleforgames/open-match2/pkg/pb\xaa\x02\n" + + "OpenMatch2b\x06proto3" var ( file_messages_proto_rawDescOnce sync.Once - file_messages_proto_rawDescData = file_messages_proto_rawDesc + file_messages_proto_rawDescData []byte ) func file_messages_proto_rawDescGZIP() []byte { file_messages_proto_rawDescOnce.Do(func() { - file_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_messages_proto_rawDescData) + file_messages_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_messages_proto_rawDesc), len(file_messages_proto_rawDesc))) }) return file_messages_proto_rawDescData } var file_messages_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 35) +var file_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 37) var file_messages_proto_goTypes = []any{ (Pool_FilterBounds)(0), // 0: open_match2.Pool.FilterBounds (MatchmakingFunctionSpec_Type)(0), // 1: open_match2.MatchmakingFunctionSpec.Type @@ -1961,55 +1858,57 @@ var file_messages_proto_goTypes = []any{ (*Match)(nil), // 6: open_match2.Match (*Roster)(nil), // 7: open_match2.Roster (*MatchmakingFunctionSpec)(nil), // 8: open_match2.MatchmakingFunctionSpec - (*ChunkedMmfRunRequest)(nil), // 9: open_match2.ChunkedMmfRunRequest - (*CreateTicketRequest)(nil), // 10: open_match2.CreateTicketRequest - (*CreateTicketResponse)(nil), // 11: open_match2.CreateTicketResponse - (*DeactivateTicketsRequest)(nil), // 12: open_match2.DeactivateTicketsRequest - (*DeactivateTicketsResponse)(nil), // 13: open_match2.DeactivateTicketsResponse - (*ActivateTicketsRequest)(nil), // 14: open_match2.ActivateTicketsRequest - (*ActivateTicketsResponse)(nil), // 15: open_match2.ActivateTicketsResponse - (*MmfRequest)(nil), // 16: open_match2.MmfRequest - (*StreamedMmfResponse)(nil), // 17: open_match2.StreamedMmfResponse - (*CreateAssignmentsRequest)(nil), // 18: open_match2.CreateAssignmentsRequest - (*CreateAssignmentsResponse)(nil), // 19: open_match2.CreateAssignmentsResponse - (*WatchAssignmentsRequest)(nil), // 20: open_match2.WatchAssignmentsRequest - (*StreamedWatchAssignmentsResponse)(nil), // 21: open_match2.StreamedWatchAssignmentsResponse - (*Ticket_FilterableData)(nil), // 22: open_match2.Ticket.FilterableData - nil, // 23: open_match2.Ticket.ExtensionsEntry - nil, // 24: open_match2.Ticket.FilterableData.StringArgsEntry - nil, // 25: open_match2.Ticket.FilterableData.DoubleArgsEntry - nil, // 26: open_match2.Assignment.ExtensionsEntry - (*Pool_TagPresentFilter)(nil), // 27: open_match2.Pool.TagPresentFilter - (*Pool_StringEqualsFilter)(nil), // 28: open_match2.Pool.StringEqualsFilter - (*Pool_DoubleRangeFilter)(nil), // 29: open_match2.Pool.DoubleRangeFilter - (*Pool_CreationTimeRangeFilter)(nil), // 30: open_match2.Pool.CreationTimeRangeFilter - nil, // 31: open_match2.Pool.ExtensionsEntry - nil, // 32: open_match2.Profile.PoolsEntry - nil, // 33: open_match2.Profile.ExtensionsEntry - nil, // 34: open_match2.Match.RostersEntry - nil, // 35: open_match2.Match.ExtensionsEntry - nil, // 36: open_match2.Roster.ExtensionsEntry - (*timestamppb.Timestamp)(nil), // 37: google.protobuf.Timestamp - (*anypb.Any)(nil), // 38: google.protobuf.Any + (*HealthCheckRequest)(nil), // 9: open_match2.HealthCheckRequest + (*HealthCheckResponse)(nil), // 10: open_match2.HealthCheckResponse + (*ChunkedMmfRunRequest)(nil), // 11: open_match2.ChunkedMmfRunRequest + (*CreateTicketRequest)(nil), // 12: open_match2.CreateTicketRequest + (*CreateTicketResponse)(nil), // 13: open_match2.CreateTicketResponse + (*DeactivateTicketsRequest)(nil), // 14: open_match2.DeactivateTicketsRequest + (*DeactivateTicketsResponse)(nil), // 15: open_match2.DeactivateTicketsResponse + (*ActivateTicketsRequest)(nil), // 16: open_match2.ActivateTicketsRequest + (*ActivateTicketsResponse)(nil), // 17: open_match2.ActivateTicketsResponse + (*MmfRequest)(nil), // 18: open_match2.MmfRequest + (*StreamedMmfResponse)(nil), // 19: open_match2.StreamedMmfResponse + (*CreateAssignmentsRequest)(nil), // 20: open_match2.CreateAssignmentsRequest + (*CreateAssignmentsResponse)(nil), // 21: open_match2.CreateAssignmentsResponse + (*WatchAssignmentsRequest)(nil), // 22: open_match2.WatchAssignmentsRequest + (*StreamedWatchAssignmentsResponse)(nil), // 23: open_match2.StreamedWatchAssignmentsResponse + (*Ticket_FilterableData)(nil), // 24: open_match2.Ticket.FilterableData + nil, // 25: open_match2.Ticket.ExtensionsEntry + nil, // 26: open_match2.Ticket.FilterableData.StringArgsEntry + nil, // 27: open_match2.Ticket.FilterableData.DoubleArgsEntry + nil, // 28: open_match2.Assignment.ExtensionsEntry + (*Pool_TagPresentFilter)(nil), // 29: open_match2.Pool.TagPresentFilter + (*Pool_StringEqualsFilter)(nil), // 30: open_match2.Pool.StringEqualsFilter + (*Pool_DoubleRangeFilter)(nil), // 31: open_match2.Pool.DoubleRangeFilter + (*Pool_CreationTimeRangeFilter)(nil), // 32: open_match2.Pool.CreationTimeRangeFilter + nil, // 33: open_match2.Pool.ExtensionsEntry + nil, // 34: open_match2.Profile.PoolsEntry + nil, // 35: open_match2.Profile.ExtensionsEntry + nil, // 36: open_match2.Match.RostersEntry + nil, // 37: open_match2.Match.ExtensionsEntry + nil, // 38: open_match2.Roster.ExtensionsEntry + (*timestamppb.Timestamp)(nil), // 39: google.protobuf.Timestamp + (*anypb.Any)(nil), // 40: google.protobuf.Any } var file_messages_proto_depIdxs = []int32{ - 37, // 0: open_match2.Ticket.expiration_time:type_name -> google.protobuf.Timestamp - 22, // 1: open_match2.Ticket.attributes:type_name -> open_match2.Ticket.FilterableData - 23, // 2: open_match2.Ticket.extensions:type_name -> open_match2.Ticket.ExtensionsEntry - 26, // 3: open_match2.Assignment.extensions:type_name -> open_match2.Assignment.ExtensionsEntry - 27, // 4: open_match2.Pool.tag_present_filters:type_name -> open_match2.Pool.TagPresentFilter - 28, // 5: open_match2.Pool.string_equals_filters:type_name -> open_match2.Pool.StringEqualsFilter - 29, // 6: open_match2.Pool.double_range_filters:type_name -> open_match2.Pool.DoubleRangeFilter - 30, // 7: open_match2.Pool.creation_time_range_filter:type_name -> open_match2.Pool.CreationTimeRangeFilter + 39, // 0: open_match2.Ticket.expiration_time:type_name -> google.protobuf.Timestamp + 24, // 1: open_match2.Ticket.attributes:type_name -> open_match2.Ticket.FilterableData + 25, // 2: open_match2.Ticket.extensions:type_name -> open_match2.Ticket.ExtensionsEntry + 28, // 3: open_match2.Assignment.extensions:type_name -> open_match2.Assignment.ExtensionsEntry + 29, // 4: open_match2.Pool.tag_present_filters:type_name -> open_match2.Pool.TagPresentFilter + 30, // 5: open_match2.Pool.string_equals_filters:type_name -> open_match2.Pool.StringEqualsFilter + 31, // 6: open_match2.Pool.double_range_filters:type_name -> open_match2.Pool.DoubleRangeFilter + 32, // 7: open_match2.Pool.creation_time_range_filter:type_name -> open_match2.Pool.CreationTimeRangeFilter 7, // 8: open_match2.Pool.participants:type_name -> open_match2.Roster - 31, // 9: open_match2.Pool.extensions:type_name -> open_match2.Pool.ExtensionsEntry - 32, // 10: open_match2.Profile.pools:type_name -> open_match2.Profile.PoolsEntry - 33, // 11: open_match2.Profile.extensions:type_name -> open_match2.Profile.ExtensionsEntry - 34, // 12: open_match2.Match.rosters:type_name -> open_match2.Match.RostersEntry - 35, // 13: open_match2.Match.extensions:type_name -> open_match2.Match.ExtensionsEntry + 33, // 9: open_match2.Pool.extensions:type_name -> open_match2.Pool.ExtensionsEntry + 34, // 10: open_match2.Profile.pools:type_name -> open_match2.Profile.PoolsEntry + 35, // 11: open_match2.Profile.extensions:type_name -> open_match2.Profile.ExtensionsEntry + 36, // 12: open_match2.Match.rosters:type_name -> open_match2.Match.RostersEntry + 37, // 13: open_match2.Match.extensions:type_name -> open_match2.Match.ExtensionsEntry 3, // 14: open_match2.Roster.assignment:type_name -> open_match2.Assignment 2, // 15: open_match2.Roster.tickets:type_name -> open_match2.Ticket - 36, // 16: open_match2.Roster.extensions:type_name -> open_match2.Roster.ExtensionsEntry + 38, // 16: open_match2.Roster.extensions:type_name -> open_match2.Roster.ExtensionsEntry 1, // 17: open_match2.MatchmakingFunctionSpec.type:type_name -> open_match2.MatchmakingFunctionSpec.Type 5, // 18: open_match2.ChunkedMmfRunRequest.profile:type_name -> open_match2.Profile 2, // 19: open_match2.CreateTicketRequest.ticket:type_name -> open_match2.Ticket @@ -2018,21 +1917,21 @@ var file_messages_proto_depIdxs = []int32{ 6, // 22: open_match2.StreamedMmfResponse.match:type_name -> open_match2.Match 7, // 23: open_match2.CreateAssignmentsRequest.assignment_roster:type_name -> open_match2.Roster 3, // 24: open_match2.StreamedWatchAssignmentsResponse.assignment:type_name -> open_match2.Assignment - 24, // 25: open_match2.Ticket.FilterableData.string_args:type_name -> open_match2.Ticket.FilterableData.StringArgsEntry - 25, // 26: open_match2.Ticket.FilterableData.double_args:type_name -> open_match2.Ticket.FilterableData.DoubleArgsEntry - 37, // 27: open_match2.Ticket.FilterableData.creation_time:type_name -> google.protobuf.Timestamp - 38, // 28: open_match2.Ticket.ExtensionsEntry.value:type_name -> google.protobuf.Any - 38, // 29: open_match2.Assignment.ExtensionsEntry.value:type_name -> google.protobuf.Any + 26, // 25: open_match2.Ticket.FilterableData.string_args:type_name -> open_match2.Ticket.FilterableData.StringArgsEntry + 27, // 26: open_match2.Ticket.FilterableData.double_args:type_name -> open_match2.Ticket.FilterableData.DoubleArgsEntry + 39, // 27: open_match2.Ticket.FilterableData.creation_time:type_name -> google.protobuf.Timestamp + 40, // 28: open_match2.Ticket.ExtensionsEntry.value:type_name -> google.protobuf.Any + 40, // 29: open_match2.Assignment.ExtensionsEntry.value:type_name -> google.protobuf.Any 0, // 30: open_match2.Pool.DoubleRangeFilter.bounds:type_name -> open_match2.Pool.FilterBounds - 37, // 31: open_match2.Pool.CreationTimeRangeFilter.start:type_name -> google.protobuf.Timestamp - 37, // 32: open_match2.Pool.CreationTimeRangeFilter.end:type_name -> google.protobuf.Timestamp + 39, // 31: open_match2.Pool.CreationTimeRangeFilter.start:type_name -> google.protobuf.Timestamp + 39, // 32: open_match2.Pool.CreationTimeRangeFilter.end:type_name -> google.protobuf.Timestamp 0, // 33: open_match2.Pool.CreationTimeRangeFilter.bounds:type_name -> open_match2.Pool.FilterBounds - 38, // 34: open_match2.Pool.ExtensionsEntry.value:type_name -> google.protobuf.Any + 40, // 34: open_match2.Pool.ExtensionsEntry.value:type_name -> google.protobuf.Any 4, // 35: open_match2.Profile.PoolsEntry.value:type_name -> open_match2.Pool - 38, // 36: open_match2.Profile.ExtensionsEntry.value:type_name -> google.protobuf.Any + 40, // 36: open_match2.Profile.ExtensionsEntry.value:type_name -> google.protobuf.Any 7, // 37: open_match2.Match.RostersEntry.value:type_name -> open_match2.Roster - 38, // 38: open_match2.Match.ExtensionsEntry.value:type_name -> google.protobuf.Any - 38, // 39: open_match2.Roster.ExtensionsEntry.value:type_name -> google.protobuf.Any + 40, // 38: open_match2.Match.ExtensionsEntry.value:type_name -> google.protobuf.Any + 40, // 39: open_match2.Roster.ExtensionsEntry.value:type_name -> google.protobuf.Any 40, // [40:40] is the sub-list for method output_type 40, // [40:40] is the sub-list for method input_type 40, // [40:40] is the sub-list for extension type_name @@ -2045,315 +1944,13 @@ func file_messages_proto_init() { if File_messages_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_messages_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Ticket); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Assignment); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Pool); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*Profile); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*Match); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*Roster); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*MatchmakingFunctionSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*ChunkedMmfRunRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*CreateTicketRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*CreateTicketResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*DeactivateTicketsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*DeactivateTicketsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*ActivateTicketsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*ActivateTicketsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*MmfRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*StreamedMmfResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*CreateAssignmentsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*CreateAssignmentsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*WatchAssignmentsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*StreamedWatchAssignmentsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*Ticket_FilterableData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*Pool_TagPresentFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*Pool_StringEqualsFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*Pool_DoubleRangeFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[28].Exporter = func(v any, i int) any { - switch v := v.(*Pool_CreationTimeRangeFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_messages_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_messages_proto_rawDesc), len(file_messages_proto_rawDesc)), NumEnums: 2, - NumMessages: 35, + NumMessages: 37, NumExtensions: 0, NumServices: 0, }, @@ -2363,7 +1960,6 @@ func file_messages_proto_init() { MessageInfos: file_messages_proto_msgTypes, }.Build() File_messages_proto = out.File - file_messages_proto_rawDesc = nil file_messages_proto_goTypes = nil file_messages_proto_depIdxs = nil } diff --git a/proto/api.proto b/proto/api.proto index c036013..47e43a4 100644 --- a/proto/api.proto +++ b/proto/api.proto @@ -69,6 +69,8 @@ service OpenMatchService { // when they finish. rpc InvokeMatchmakingFunctions(MmfRequest) returns (stream StreamedMmfResponse) { } + rpc HealthCheck(HealthCheckRequest) returns (HealthCheckResponse) { } + // *** NOTE: DEPRECATED RPCs BELOW, DO NOT USE IN PRODUCTION *** // CreateAssignments creates an assignment for each ticket in the request's AssignmentRoster diff --git a/proto/api.yaml b/proto/api.yaml index 6be6827..2a9e9e4 100644 --- a/proto/api.yaml +++ b/proto/api.yaml @@ -31,6 +31,9 @@ http: post: /tickets:activate body: "*" + - selector: open_match2.OpenMatchService.HealthCheck + get: /health + - selector: open_match2.OpenMatchService.InvokeMatchmakingFunctions post: /matches:fetch body: "*" diff --git a/proto/messages.proto b/proto/messages.proto index 05f8400..063b5e9 100644 --- a/proto/messages.proto +++ b/proto/messages.proto @@ -202,6 +202,9 @@ message MatchmakingFunctionSpec { } } +message HealthCheckRequest { } +message HealthCheckResponse { string status = 1; } + // API reponse/request messages, used by api.proto and mmf.proto //-------------------------------------------------------------- // Arguments sent to your MMF can be more than the maximum gRPC message size of