From b2593eb5b91e95e661bdc607bbdaf5413510c24e Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Fri, 2 Sep 2022 17:55:46 -0700 Subject: [PATCH] Regenerate gRPC clients for all SDKs. * Realised the instructions where wrong. It should be `make gen-all-sdk-grpc` (we should document this). * Also updated the CPP SDK to 1.36.1. Work on #2642 --- sdks/cpp/cmake/prerequisites.cmake | 2 +- sdks/cpp/include/agones/sdk.grpc.pb.h | 208 ++--- sdks/cpp/include/agones/sdk.pb.h | 766 +++++++++++------- sdks/cpp/include/google/api/annotations.pb.h | 11 +- sdks/cpp/include/google/api/http.pb.h | 640 ++++----------- sdks/cpp/src/agones/sdk.grpc.pb.cc | 256 +++--- sdks/cpp/src/agones/sdk.pb.cc | 580 +++++++------ sdks/cpp/src/google/annotations.pb.cc | 9 +- sdks/cpp/src/google/http.pb.cc | 195 ++--- sdks/csharp/sdk/generated/Alpha.cs | 226 +++++- sdks/csharp/sdk/generated/AlphaGrpc.cs | 43 +- sdks/csharp/sdk/generated/Sdk.cs | 625 +++++++++++++- sdks/csharp/sdk/generated/SdkGrpc.cs | 41 +- sdks/nodejs/lib/alpha/alpha_pb.js | 2 +- .../lib/alpha/google/api/annotations_pb.js | 2 +- sdks/nodejs/lib/alpha/google/api/http_pb.js | 2 +- sdks/nodejs/lib/google/api/annotations_pb.js | 2 +- sdks/nodejs/lib/google/api/http_pb.js | 2 +- sdks/nodejs/lib/sdk_pb.js | 2 +- sdks/rust/proto/allocation/allocation.proto | 39 +- 20 files changed, 2194 insertions(+), 1459 deletions(-) diff --git a/sdks/cpp/cmake/prerequisites.cmake b/sdks/cpp/cmake/prerequisites.cmake index 17af206583..caa207e39b 100644 --- a/sdks/cpp/cmake/prerequisites.cmake +++ b/sdks/cpp/cmake/prerequisites.cmake @@ -31,7 +31,7 @@ endif() # gRPC repo and version set(gRPC_GIT_REPO "https://github.com/gRPC/gRPC.git") -set(gRPC_GIT_TAG "v1.27.1") +set(gRPC_GIT_TAG "v1.36.1") # OpenSSL required only for successful build gRPC set(OPENSSL_GIT_REPO "https://github.com/openssl/openssl.git") diff --git a/sdks/cpp/include/agones/sdk.grpc.pb.h b/sdks/cpp/include/agones/sdk.grpc.pb.h index fd56b9b8e0..9cb2a4631e 100644 --- a/sdks/cpp/include/agones/sdk.grpc.pb.h +++ b/sdks/cpp/include/agones/sdk.grpc.pb.h @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -150,43 +150,25 @@ class SDK final { virtual ~experimental_async_interface() {} // Call when the GameServer is ready virtual void Ready(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, std::function) = 0; - virtual void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) = 0; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Ready(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; #else virtual void Ready(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif // Call to self Allocation the GameServer virtual void Allocate(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, std::function) = 0; - virtual void Allocate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) = 0; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Allocate(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; #else virtual void Allocate(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Allocate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Allocate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif // Call when the GameServer is shutting down virtual void Shutdown(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, std::function) = 0; - virtual void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) = 0; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Shutdown(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; #else virtual void Shutdown(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif // Send a Empty every d Duration to declare that this GameSever is healthy #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Health(::grpc::ClientContext* context, ::agones::dev::sdk::Empty* response, ::grpc::ClientWriteReactor< ::agones::dev::sdk::Empty>* reactor) = 0; @@ -195,17 +177,11 @@ class SDK final { #endif // Retrieve the current GameServer data virtual void GetGameServer(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::GameServer* response, std::function) = 0; - virtual void GetGameServer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::GameServer* response, std::function) = 0; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGameServer(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::GameServer* response, ::grpc::ClientUnaryReactor* reactor) = 0; #else virtual void GetGameServer(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::GameServer* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetGameServer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::GameServer* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetGameServer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::GameServer* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif // Send GameServer details whenever the GameServer is updated #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void WatchGameServer(::grpc::ClientContext* context, ::agones::dev::sdk::Empty* request, ::grpc::ClientReadReactor< ::agones::dev::sdk::GameServer>* reactor) = 0; @@ -214,43 +190,25 @@ class SDK final { #endif // Apply a Label to the backing GameServer metadata virtual void SetLabel(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, std::function) = 0; - virtual void SetLabel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) = 0; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SetLabel(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; #else virtual void SetLabel(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void SetLabel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void SetLabel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif // Apply a Annotation to the backing GameServer metadata virtual void SetAnnotation(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, std::function) = 0; - virtual void SetAnnotation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) = 0; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SetAnnotation(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; #else virtual void SetAnnotation(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void SetAnnotation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void SetAnnotation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif // Marks the GameServer as the Reserved state for Duration virtual void Reserve(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration* request, ::agones::dev::sdk::Empty* response, std::function) = 0; - virtual void Reserve(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) = 0; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Reserve(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; #else virtual void Reserve(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Reserve(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Reserve(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif }; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL typedef class experimental_async_interface async_interface; @@ -355,99 +313,57 @@ class SDK final { public StubInterface::experimental_async_interface { public: void Ready(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, std::function) override; - void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Ready(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; #else void Ready(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif void Allocate(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, std::function) override; - void Allocate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Allocate(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; #else void Allocate(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Allocate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Allocate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif void Shutdown(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, std::function) override; - void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Shutdown(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; #else void Shutdown(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Health(::grpc::ClientContext* context, ::agones::dev::sdk::Empty* response, ::grpc::ClientWriteReactor< ::agones::dev::sdk::Empty>* reactor) override; #else void Health(::grpc::ClientContext* context, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientWriteReactor< ::agones::dev::sdk::Empty>* reactor) override; #endif void GetGameServer(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::GameServer* response, std::function) override; - void GetGameServer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::GameServer* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGameServer(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::GameServer* response, ::grpc::ClientUnaryReactor* reactor) override; #else void GetGameServer(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::GameServer* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetGameServer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::GameServer* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetGameServer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::GameServer* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void WatchGameServer(::grpc::ClientContext* context, ::agones::dev::sdk::Empty* request, ::grpc::ClientReadReactor< ::agones::dev::sdk::GameServer>* reactor) override; #else void WatchGameServer(::grpc::ClientContext* context, ::agones::dev::sdk::Empty* request, ::grpc::experimental::ClientReadReactor< ::agones::dev::sdk::GameServer>* reactor) override; #endif void SetLabel(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, std::function) override; - void SetLabel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SetLabel(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; #else void SetLabel(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void SetLabel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void SetLabel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif void SetAnnotation(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, std::function) override; - void SetAnnotation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SetAnnotation(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; #else void SetAnnotation(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void SetAnnotation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void SetAnnotation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif void Reserve(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration* request, ::agones::dev::sdk::Empty* response, std::function) override; - void Reserve(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Reserve(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; #else void Reserve(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Reserve(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Reserve(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -707,7 +623,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodCallback(0, - new ::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( + new ::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -722,7 +638,7 @@ class SDK final { #else ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); #endif - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>*>(handler) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_Ready() override { @@ -754,7 +670,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodCallback(1, - new ::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( + new ::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -769,7 +685,7 @@ class SDK final { #else ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); #endif - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>*>(handler) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_Allocate() override { @@ -801,7 +717,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodCallback(2, - new ::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( + new ::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -816,7 +732,7 @@ class SDK final { #else ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); #endif - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>*>(handler) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_Shutdown() override { @@ -848,7 +764,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodCallback(3, - new ::grpc_impl::internal::CallbackClientStreamingHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( + new ::grpc::internal::CallbackClientStreamingHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -886,7 +802,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodCallback(4, - new ::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>( + new ::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -901,7 +817,7 @@ class SDK final { #else ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); #endif - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>*>(handler) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_GetGameServer() override { @@ -933,7 +849,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodCallback(5, - new ::grpc_impl::internal::CallbackServerStreamingHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>( + new ::grpc::internal::CallbackServerStreamingHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -971,7 +887,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodCallback(6, - new ::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>( + new ::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -986,7 +902,7 @@ class SDK final { #else ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); #endif - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>*>(handler) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_SetLabel() override { @@ -1018,7 +934,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodCallback(7, - new ::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>( + new ::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -1033,7 +949,7 @@ class SDK final { #else ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); #endif - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>*>(handler) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_SetAnnotation() override { @@ -1065,7 +981,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodCallback(8, - new ::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::Duration, ::agones::dev::sdk::Empty>( + new ::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::Duration, ::agones::dev::sdk::Empty>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -1080,7 +996,7 @@ class SDK final { #else ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); #endif - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::agones::dev::sdk::Duration, ::agones::dev::sdk::Empty>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::agones::dev::sdk::Duration, ::agones::dev::sdk::Empty>*>(handler) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_Reserve() override { @@ -1450,7 +1366,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodRawCallback(0, - new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -1488,7 +1404,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodRawCallback(1, - new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -1526,7 +1442,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodRawCallback(2, - new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -1564,7 +1480,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodRawCallback(3, - new ::grpc_impl::internal::CallbackClientStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc::internal::CallbackClientStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -1602,7 +1518,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodRawCallback(4, - new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -1640,7 +1556,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodRawCallback(5, - new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -1678,7 +1594,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodRawCallback(6, - new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -1716,7 +1632,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodRawCallback(7, - new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -1754,7 +1670,7 @@ class SDK final { ::grpc::Service::experimental(). #endif MarkMethodRawCallback(8, - new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* @@ -1787,7 +1703,14 @@ class SDK final { public: WithStreamedUnaryMethod_Ready() { ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>(std::bind(&WithStreamedUnaryMethod_Ready::StreamedReady, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< + ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>* streamer) { + return this->StreamedReady(context, + streamer); + })); } ~WithStreamedUnaryMethod_Ready() override { BaseClassMustBeDerivedFromService(this); @@ -1807,7 +1730,14 @@ class SDK final { public: WithStreamedUnaryMethod_Allocate() { ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>(std::bind(&WithStreamedUnaryMethod_Allocate::StreamedAllocate, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< + ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>* streamer) { + return this->StreamedAllocate(context, + streamer); + })); } ~WithStreamedUnaryMethod_Allocate() override { BaseClassMustBeDerivedFromService(this); @@ -1827,7 +1757,14 @@ class SDK final { public: WithStreamedUnaryMethod_Shutdown() { ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>(std::bind(&WithStreamedUnaryMethod_Shutdown::StreamedShutdown, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< + ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>* streamer) { + return this->StreamedShutdown(context, + streamer); + })); } ~WithStreamedUnaryMethod_Shutdown() override { BaseClassMustBeDerivedFromService(this); @@ -1847,7 +1784,14 @@ class SDK final { public: WithStreamedUnaryMethod_GetGameServer() { ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>(std::bind(&WithStreamedUnaryMethod_GetGameServer::StreamedGetGameServer, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< + ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>* streamer) { + return this->StreamedGetGameServer(context, + streamer); + })); } ~WithStreamedUnaryMethod_GetGameServer() override { BaseClassMustBeDerivedFromService(this); @@ -1867,7 +1811,14 @@ class SDK final { public: WithStreamedUnaryMethod_SetLabel() { ::grpc::Service::MarkMethodStreamed(6, - new ::grpc::internal::StreamedUnaryHandler< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>(std::bind(&WithStreamedUnaryMethod_SetLabel::StreamedSetLabel, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< + ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>* streamer) { + return this->StreamedSetLabel(context, + streamer); + })); } ~WithStreamedUnaryMethod_SetLabel() override { BaseClassMustBeDerivedFromService(this); @@ -1887,7 +1838,14 @@ class SDK final { public: WithStreamedUnaryMethod_SetAnnotation() { ::grpc::Service::MarkMethodStreamed(7, - new ::grpc::internal::StreamedUnaryHandler< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>(std::bind(&WithStreamedUnaryMethod_SetAnnotation::StreamedSetAnnotation, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< + ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>* streamer) { + return this->StreamedSetAnnotation(context, + streamer); + })); } ~WithStreamedUnaryMethod_SetAnnotation() override { BaseClassMustBeDerivedFromService(this); @@ -1907,7 +1865,14 @@ class SDK final { public: WithStreamedUnaryMethod_Reserve() { ::grpc::Service::MarkMethodStreamed(8, - new ::grpc::internal::StreamedUnaryHandler< ::agones::dev::sdk::Duration, ::agones::dev::sdk::Empty>(std::bind(&WithStreamedUnaryMethod_Reserve::StreamedReserve, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< + ::agones::dev::sdk::Duration, ::agones::dev::sdk::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::agones::dev::sdk::Duration, ::agones::dev::sdk::Empty>* streamer) { + return this->StreamedReserve(context, + streamer); + })); } ~WithStreamedUnaryMethod_Reserve() override { BaseClassMustBeDerivedFromService(this); @@ -1928,7 +1893,14 @@ class SDK final { public: WithSplitStreamingMethod_WatchGameServer() { ::grpc::Service::MarkMethodStreamed(5, - new ::grpc::internal::SplitServerStreamingHandler< ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>(std::bind(&WithSplitStreamingMethod_WatchGameServer::StreamedWatchGameServer, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::SplitServerStreamingHandler< + ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>( + [this](::grpc::ServerContext* context, + ::grpc::ServerSplitStreamer< + ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>* streamer) { + return this->StreamedWatchGameServer(context, + streamer); + })); } ~WithSplitStreamingMethod_WatchGameServer() override { BaseClassMustBeDerivedFromService(this); diff --git a/sdks/cpp/include/agones/sdk.pb.h b/sdks/cpp/include/agones/sdk.pb.h index 3c59cb8d51..2de4911d63 100644 --- a/sdks/cpp/include/agones/sdk.pb.h +++ b/sdks/cpp/include/agones/sdk.pb.h @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,12 +23,12 @@ #include #include -#if PROTOBUF_VERSION < 3011000 +#if PROTOBUF_VERSION < 3014000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011002 < PROTOBUF_MIN_PROTOC_VERSION +#if 3014000 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -40,8 +40,7 @@ #include #include #include -#include -#include +#include #include #include #include // IWYU pragma: export @@ -64,7 +63,7 @@ PROTOBUF_NAMESPACE_CLOSE struct AGONES_EXPORT TableStruct_sdk_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[12] PROTOBUF_SECTION_VARIABLE(protodesc_cold); @@ -135,10 +134,10 @@ namespace sdk { // =================================================================== -class AGONES_EXPORT Empty : +class AGONES_EXPORT Empty PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.Empty) */ { public: - Empty(); + inline Empty() : Empty(nullptr) {} virtual ~Empty(); Empty(const Empty& from); @@ -152,7 +151,7 @@ class AGONES_EXPORT Empty : return *this; } inline Empty& operator=(Empty&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -171,7 +170,6 @@ class AGONES_EXPORT Empty : } static const Empty& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Empty* internal_default_instance() { return reinterpret_cast( &_Empty_default_instance_); @@ -184,6 +182,15 @@ class AGONES_EXPORT Empty : } inline void Swap(Empty* other) { if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Empty* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -218,13 +225,11 @@ class AGONES_EXPORT Empty : static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "agones.dev.sdk.Empty"; } + protected: + explicit Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -244,16 +249,18 @@ class AGONES_EXPORT Empty : private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_sdk_2eproto; }; // ------------------------------------------------------------------- -class AGONES_EXPORT KeyValue : +class AGONES_EXPORT KeyValue PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.KeyValue) */ { public: - KeyValue(); + inline KeyValue() : KeyValue(nullptr) {} virtual ~KeyValue(); KeyValue(const KeyValue& from); @@ -267,7 +274,7 @@ class AGONES_EXPORT KeyValue : return *this; } inline KeyValue& operator=(KeyValue&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -286,7 +293,6 @@ class AGONES_EXPORT KeyValue : } static const KeyValue& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const KeyValue* internal_default_instance() { return reinterpret_cast( &_KeyValue_default_instance_); @@ -299,6 +305,15 @@ class AGONES_EXPORT KeyValue : } inline void Swap(KeyValue* other) { if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(KeyValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -333,13 +348,11 @@ class AGONES_EXPORT KeyValue : static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "agones.dev.sdk.KeyValue"; } + protected: + explicit KeyValue(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -395,7 +408,9 @@ class AGONES_EXPORT KeyValue : private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -403,10 +418,10 @@ class AGONES_EXPORT KeyValue : }; // ------------------------------------------------------------------- -class AGONES_EXPORT Duration : +class AGONES_EXPORT Duration PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.Duration) */ { public: - Duration(); + inline Duration() : Duration(nullptr) {} virtual ~Duration(); Duration(const Duration& from); @@ -420,7 +435,7 @@ class AGONES_EXPORT Duration : return *this; } inline Duration& operator=(Duration&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -439,7 +454,6 @@ class AGONES_EXPORT Duration : } static const Duration& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Duration* internal_default_instance() { return reinterpret_cast( &_Duration_default_instance_); @@ -452,6 +466,15 @@ class AGONES_EXPORT Duration : } inline void Swap(Duration* other) { if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Duration* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -486,13 +509,11 @@ class AGONES_EXPORT Duration : static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "agones.dev.sdk.Duration"; } + protected: + explicit Duration(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -524,7 +545,9 @@ class AGONES_EXPORT Duration : private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::int64 seconds_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_sdk_2eproto; @@ -534,16 +557,14 @@ class AGONES_EXPORT Duration : class GameServer_ObjectMeta_AnnotationsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> { public: typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> SuperType; GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(); - GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); void MergeFrom(const GameServer_ObjectMeta_AnnotationsEntry_DoNotUse& other); static const GameServer_ObjectMeta_AnnotationsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_); } static bool ValidateKey(std::string* s) { @@ -568,16 +589,14 @@ class GameServer_ObjectMeta_AnnotationsEntry_DoNotUse : public ::PROTOBUF_NAMESP class GameServer_ObjectMeta_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> { public: typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> SuperType; GameServer_ObjectMeta_LabelsEntry_DoNotUse(); - GameServer_ObjectMeta_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GameServer_ObjectMeta_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); void MergeFrom(const GameServer_ObjectMeta_LabelsEntry_DoNotUse& other); static const GameServer_ObjectMeta_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_); } static bool ValidateKey(std::string* s) { @@ -599,10 +618,10 @@ class GameServer_ObjectMeta_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_I // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_ObjectMeta : +class AGONES_EXPORT GameServer_ObjectMeta PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.ObjectMeta) */ { public: - GameServer_ObjectMeta(); + inline GameServer_ObjectMeta() : GameServer_ObjectMeta(nullptr) {} virtual ~GameServer_ObjectMeta(); GameServer_ObjectMeta(const GameServer_ObjectMeta& from); @@ -616,7 +635,7 @@ class AGONES_EXPORT GameServer_ObjectMeta : return *this; } inline GameServer_ObjectMeta& operator=(GameServer_ObjectMeta&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -635,7 +654,6 @@ class AGONES_EXPORT GameServer_ObjectMeta : } static const GameServer_ObjectMeta& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameServer_ObjectMeta* internal_default_instance() { return reinterpret_cast( &_GameServer_ObjectMeta_default_instance_); @@ -648,6 +666,15 @@ class AGONES_EXPORT GameServer_ObjectMeta : } inline void Swap(GameServer_ObjectMeta* other) { if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameServer_ObjectMeta* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -682,13 +709,11 @@ class AGONES_EXPORT GameServer_ObjectMeta : static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "agones.dev.sdk.GameServer.ObjectMeta"; } + protected: + explicit GameServer_ObjectMeta(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -845,19 +870,19 @@ class AGONES_EXPORT GameServer_ObjectMeta : private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::MapField< GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, std::string, std::string, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - 0 > annotations_; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> annotations_; ::PROTOBUF_NAMESPACE_ID::internal::MapField< GameServer_ObjectMeta_LabelsEntry_DoNotUse, std::string, std::string, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - 0 > labels_; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> labels_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr namespace__; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uid_; @@ -870,10 +895,10 @@ class AGONES_EXPORT GameServer_ObjectMeta : }; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Spec_Health : +class AGONES_EXPORT GameServer_Spec_Health PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Spec.Health) */ { public: - GameServer_Spec_Health(); + inline GameServer_Spec_Health() : GameServer_Spec_Health(nullptr) {} virtual ~GameServer_Spec_Health(); GameServer_Spec_Health(const GameServer_Spec_Health& from); @@ -887,7 +912,7 @@ class AGONES_EXPORT GameServer_Spec_Health : return *this; } inline GameServer_Spec_Health& operator=(GameServer_Spec_Health&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -906,7 +931,6 @@ class AGONES_EXPORT GameServer_Spec_Health : } static const GameServer_Spec_Health& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameServer_Spec_Health* internal_default_instance() { return reinterpret_cast( &_GameServer_Spec_Health_default_instance_); @@ -919,6 +943,15 @@ class AGONES_EXPORT GameServer_Spec_Health : } inline void Swap(GameServer_Spec_Health* other) { if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameServer_Spec_Health* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -953,13 +986,11 @@ class AGONES_EXPORT GameServer_Spec_Health : static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "agones.dev.sdk.GameServer.Spec.Health"; } + protected: + explicit GameServer_Spec_Health(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -1021,7 +1052,9 @@ class AGONES_EXPORT GameServer_Spec_Health : private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; bool disabled_; ::PROTOBUF_NAMESPACE_ID::int32 period_seconds_; ::PROTOBUF_NAMESPACE_ID::int32 failure_threshold_; @@ -1031,10 +1064,10 @@ class AGONES_EXPORT GameServer_Spec_Health : }; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Spec : +class AGONES_EXPORT GameServer_Spec PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Spec) */ { public: - GameServer_Spec(); + inline GameServer_Spec() : GameServer_Spec(nullptr) {} virtual ~GameServer_Spec(); GameServer_Spec(const GameServer_Spec& from); @@ -1048,7 +1081,7 @@ class AGONES_EXPORT GameServer_Spec : return *this; } inline GameServer_Spec& operator=(GameServer_Spec&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -1067,7 +1100,6 @@ class AGONES_EXPORT GameServer_Spec : } static const GameServer_Spec& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameServer_Spec* internal_default_instance() { return reinterpret_cast( &_GameServer_Spec_default_instance_); @@ -1080,6 +1112,15 @@ class AGONES_EXPORT GameServer_Spec : } inline void Swap(GameServer_Spec* other) { if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameServer_Spec* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -1114,13 +1155,11 @@ class AGONES_EXPORT GameServer_Spec : static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "agones.dev.sdk.GameServer.Spec"; } + protected: + explicit GameServer_Spec(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -1155,22 +1194,27 @@ class AGONES_EXPORT GameServer_Spec : const ::agones::dev::sdk::GameServer_Spec_Health& _internal_health() const; ::agones::dev::sdk::GameServer_Spec_Health* _internal_mutable_health(); public: + void unsafe_arena_set_allocated_health( + ::agones::dev::sdk::GameServer_Spec_Health* health); + ::agones::dev::sdk::GameServer_Spec_Health* unsafe_arena_release_health(); // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Spec) private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; ::agones::dev::sdk::GameServer_Spec_Health* health_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_sdk_2eproto; }; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status_Port : +class AGONES_EXPORT GameServer_Status_Port PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.Port) */ { public: - GameServer_Status_Port(); + inline GameServer_Status_Port() : GameServer_Status_Port(nullptr) {} virtual ~GameServer_Status_Port(); GameServer_Status_Port(const GameServer_Status_Port& from); @@ -1184,7 +1228,7 @@ class AGONES_EXPORT GameServer_Status_Port : return *this; } inline GameServer_Status_Port& operator=(GameServer_Status_Port&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -1203,7 +1247,6 @@ class AGONES_EXPORT GameServer_Status_Port : } static const GameServer_Status_Port& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameServer_Status_Port* internal_default_instance() { return reinterpret_cast( &_GameServer_Status_Port_default_instance_); @@ -1216,6 +1259,15 @@ class AGONES_EXPORT GameServer_Status_Port : } inline void Swap(GameServer_Status_Port* other) { if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameServer_Status_Port* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -1250,13 +1302,11 @@ class AGONES_EXPORT GameServer_Status_Port : static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "agones.dev.sdk.GameServer.Status.Port"; } + protected: + explicit GameServer_Status_Port(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -1305,7 +1355,9 @@ class AGONES_EXPORT GameServer_Status_Port : private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::int32 port_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -1313,10 +1365,10 @@ class AGONES_EXPORT GameServer_Status_Port : }; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status_PlayerStatus : +class AGONES_EXPORT GameServer_Status_PlayerStatus PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.PlayerStatus) */ { public: - GameServer_Status_PlayerStatus(); + inline GameServer_Status_PlayerStatus() : GameServer_Status_PlayerStatus(nullptr) {} virtual ~GameServer_Status_PlayerStatus(); GameServer_Status_PlayerStatus(const GameServer_Status_PlayerStatus& from); @@ -1330,7 +1382,7 @@ class AGONES_EXPORT GameServer_Status_PlayerStatus : return *this; } inline GameServer_Status_PlayerStatus& operator=(GameServer_Status_PlayerStatus&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -1349,7 +1401,6 @@ class AGONES_EXPORT GameServer_Status_PlayerStatus : } static const GameServer_Status_PlayerStatus& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameServer_Status_PlayerStatus* internal_default_instance() { return reinterpret_cast( &_GameServer_Status_PlayerStatus_default_instance_); @@ -1362,6 +1413,15 @@ class AGONES_EXPORT GameServer_Status_PlayerStatus : } inline void Swap(GameServer_Status_PlayerStatus* other) { if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameServer_Status_PlayerStatus* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -1396,13 +1456,11 @@ class AGONES_EXPORT GameServer_Status_PlayerStatus : static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "agones.dev.sdk.GameServer.Status.PlayerStatus"; } + protected: + explicit GameServer_Status_PlayerStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -1469,7 +1527,9 @@ class AGONES_EXPORT GameServer_Status_PlayerStatus : private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField ids_; ::PROTOBUF_NAMESPACE_ID::int64 count_; ::PROTOBUF_NAMESPACE_ID::int64 capacity_; @@ -1478,10 +1538,10 @@ class AGONES_EXPORT GameServer_Status_PlayerStatus : }; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status : +class AGONES_EXPORT GameServer_Status PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status) */ { public: - GameServer_Status(); + inline GameServer_Status() : GameServer_Status(nullptr) {} virtual ~GameServer_Status(); GameServer_Status(const GameServer_Status& from); @@ -1495,7 +1555,7 @@ class AGONES_EXPORT GameServer_Status : return *this; } inline GameServer_Status& operator=(GameServer_Status&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -1514,7 +1574,6 @@ class AGONES_EXPORT GameServer_Status : } static const GameServer_Status& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameServer_Status* internal_default_instance() { return reinterpret_cast( &_GameServer_Status_default_instance_); @@ -1527,6 +1586,15 @@ class AGONES_EXPORT GameServer_Status : } inline void Swap(GameServer_Status* other) { if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameServer_Status* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -1561,13 +1629,11 @@ class AGONES_EXPORT GameServer_Status : static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "agones.dev.sdk.GameServer.Status"; } + protected: + explicit GameServer_Status(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -1656,12 +1722,17 @@ class AGONES_EXPORT GameServer_Status : const ::agones::dev::sdk::GameServer_Status_PlayerStatus& _internal_players() const; ::agones::dev::sdk::GameServer_Status_PlayerStatus* _internal_mutable_players(); public: + void unsafe_arena_set_allocated_players( + ::agones::dev::sdk::GameServer_Status_PlayerStatus* players); + ::agones::dev::sdk::GameServer_Status_PlayerStatus* unsafe_arena_release_players(); // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status) private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Port > ports_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr state_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr address_; @@ -1671,10 +1742,10 @@ class AGONES_EXPORT GameServer_Status : }; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer : +class AGONES_EXPORT GameServer PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer) */ { public: - GameServer(); + inline GameServer() : GameServer(nullptr) {} virtual ~GameServer(); GameServer(const GameServer& from); @@ -1688,7 +1759,7 @@ class AGONES_EXPORT GameServer : return *this; } inline GameServer& operator=(GameServer&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -1707,7 +1778,6 @@ class AGONES_EXPORT GameServer : } static const GameServer& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameServer* internal_default_instance() { return reinterpret_cast( &_GameServer_default_instance_); @@ -1720,6 +1790,15 @@ class AGONES_EXPORT GameServer : } inline void Swap(GameServer* other) { if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameServer* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -1754,13 +1833,11 @@ class AGONES_EXPORT GameServer : static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "agones.dev.sdk.GameServer"; } + protected: + explicit GameServer(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -1799,6 +1876,9 @@ class AGONES_EXPORT GameServer : const ::agones::dev::sdk::GameServer_ObjectMeta& _internal_object_meta() const; ::agones::dev::sdk::GameServer_ObjectMeta* _internal_mutable_object_meta(); public: + void unsafe_arena_set_allocated_object_meta( + ::agones::dev::sdk::GameServer_ObjectMeta* object_meta); + ::agones::dev::sdk::GameServer_ObjectMeta* unsafe_arena_release_object_meta(); // .agones.dev.sdk.GameServer.Spec spec = 2; bool has_spec() const; @@ -1814,6 +1894,9 @@ class AGONES_EXPORT GameServer : const ::agones::dev::sdk::GameServer_Spec& _internal_spec() const; ::agones::dev::sdk::GameServer_Spec* _internal_mutable_spec(); public: + void unsafe_arena_set_allocated_spec( + ::agones::dev::sdk::GameServer_Spec* spec); + ::agones::dev::sdk::GameServer_Spec* unsafe_arena_release_spec(); // .agones.dev.sdk.GameServer.Status status = 3; bool has_status() const; @@ -1829,12 +1912,17 @@ class AGONES_EXPORT GameServer : const ::agones::dev::sdk::GameServer_Status& _internal_status() const; ::agones::dev::sdk::GameServer_Status* _internal_mutable_status(); public: + void unsafe_arena_set_allocated_status( + ::agones::dev::sdk::GameServer_Status* status); + ::agones::dev::sdk::GameServer_Status* unsafe_arena_release_status(); // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer) private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; ::agones::dev::sdk::GameServer_ObjectMeta* object_meta_; ::agones::dev::sdk::GameServer_Spec* spec_; ::agones::dev::sdk::GameServer_Status* status_; @@ -1858,7 +1946,7 @@ class AGONES_EXPORT GameServer : // string key = 1; inline void KeyValue::clear_key() { - key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + key_.ClearToEmpty(); } inline const std::string& KeyValue::key() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.KeyValue.key) @@ -1873,38 +1961,38 @@ inline std::string* KeyValue::mutable_key() { return _internal_mutable_key(); } inline const std::string& KeyValue::_internal_key() const { - return key_.GetNoArena(); + return key_.Get(); } inline void KeyValue::_internal_set_key(const std::string& value) { - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void KeyValue::set_key(std::string&& value) { - key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + key_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:agones.dev.sdk.KeyValue.key) } inline void KeyValue::set_key(const char* value) { GOOGLE_DCHECK(value != nullptr); - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:agones.dev.sdk.KeyValue.key) } -inline void KeyValue::set_key(const char* value, size_t size) { +inline void KeyValue::set_key(const char* value, + size_t size) { - key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:agones.dev.sdk.KeyValue.key) } inline std::string* KeyValue::_internal_mutable_key() { - return key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* KeyValue::release_key() { // @@protoc_insertion_point(field_release:agones.dev.sdk.KeyValue.key) - - return key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void KeyValue::set_allocated_key(std::string* key) { if (key != nullptr) { @@ -1912,13 +2000,14 @@ inline void KeyValue::set_allocated_key(std::string* key) { } else { } - key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key); + key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key, + GetArena()); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.KeyValue.key) } // string value = 2; inline void KeyValue::clear_value() { - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmpty(); } inline const std::string& KeyValue::value() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.KeyValue.value) @@ -1933,38 +2022,38 @@ inline std::string* KeyValue::mutable_value() { return _internal_mutable_value(); } inline const std::string& KeyValue::_internal_value() const { - return value_.GetNoArena(); + return value_.Get(); } inline void KeyValue::_internal_set_value(const std::string& value) { - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void KeyValue::set_value(std::string&& value) { - value_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + value_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:agones.dev.sdk.KeyValue.value) } inline void KeyValue::set_value(const char* value) { GOOGLE_DCHECK(value != nullptr); - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:agones.dev.sdk.KeyValue.value) } -inline void KeyValue::set_value(const char* value, size_t size) { +inline void KeyValue::set_value(const char* value, + size_t size) { - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:agones.dev.sdk.KeyValue.value) } inline std::string* KeyValue::_internal_mutable_value() { - return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* KeyValue::release_value() { // @@protoc_insertion_point(field_release:agones.dev.sdk.KeyValue.value) - - return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return value_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void KeyValue::set_allocated_value(std::string* value) { if (value != nullptr) { @@ -1972,7 +2061,8 @@ inline void KeyValue::set_allocated_value(std::string* value) { } else { } - value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, + GetArena()); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.KeyValue.value) } @@ -2010,7 +2100,7 @@ inline void Duration::set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value) { // string name = 1; inline void GameServer_ObjectMeta::clear_name() { - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmpty(); } inline const std::string& GameServer_ObjectMeta::name() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.name) @@ -2025,38 +2115,38 @@ inline std::string* GameServer_ObjectMeta::mutable_name() { return _internal_mutable_name(); } inline const std::string& GameServer_ObjectMeta::_internal_name() const { - return name_.GetNoArena(); + return name_.Get(); } inline void GameServer_ObjectMeta::_internal_set_name(const std::string& value) { - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void GameServer_ObjectMeta::set_name(std::string&& value) { - name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + name_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:agones.dev.sdk.GameServer.ObjectMeta.name) } inline void GameServer_ObjectMeta::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:agones.dev.sdk.GameServer.ObjectMeta.name) } -inline void GameServer_ObjectMeta::set_name(const char* value, size_t size) { +inline void GameServer_ObjectMeta::set_name(const char* value, + size_t size) { - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:agones.dev.sdk.GameServer.ObjectMeta.name) } inline std::string* GameServer_ObjectMeta::_internal_mutable_name() { - return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* GameServer_ObjectMeta::release_name() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.name) - - return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void GameServer_ObjectMeta::set_allocated_name(std::string* name) { if (name != nullptr) { @@ -2064,13 +2154,14 @@ inline void GameServer_ObjectMeta::set_allocated_name(std::string* name) { } else { } - name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArena()); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.ObjectMeta.name) } // string namespace = 2; inline void GameServer_ObjectMeta::clear_namespace_() { - namespace__.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + namespace__.ClearToEmpty(); } inline const std::string& GameServer_ObjectMeta::namespace_() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.namespace) @@ -2085,38 +2176,38 @@ inline std::string* GameServer_ObjectMeta::mutable_namespace_() { return _internal_mutable_namespace_(); } inline const std::string& GameServer_ObjectMeta::_internal_namespace_() const { - return namespace__.GetNoArena(); + return namespace__.Get(); } inline void GameServer_ObjectMeta::_internal_set_namespace_(const std::string& value) { - namespace__.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void GameServer_ObjectMeta::set_namespace_(std::string&& value) { - namespace__.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + namespace__.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:agones.dev.sdk.GameServer.ObjectMeta.namespace) } inline void GameServer_ObjectMeta::set_namespace_(const char* value) { GOOGLE_DCHECK(value != nullptr); - namespace__.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:agones.dev.sdk.GameServer.ObjectMeta.namespace) } -inline void GameServer_ObjectMeta::set_namespace_(const char* value, size_t size) { +inline void GameServer_ObjectMeta::set_namespace_(const char* value, + size_t size) { - namespace__.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); + namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:agones.dev.sdk.GameServer.ObjectMeta.namespace) } inline std::string* GameServer_ObjectMeta::_internal_mutable_namespace_() { - return namespace__.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return namespace__.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* GameServer_ObjectMeta::release_namespace_() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.namespace) - - return namespace__.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return namespace__.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void GameServer_ObjectMeta::set_allocated_namespace_(std::string* namespace_) { if (namespace_ != nullptr) { @@ -2124,13 +2215,14 @@ inline void GameServer_ObjectMeta::set_allocated_namespace_(std::string* namespa } else { } - namespace__.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), namespace_); + namespace__.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), namespace_, + GetArena()); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.ObjectMeta.namespace) } // string uid = 3; inline void GameServer_ObjectMeta::clear_uid() { - uid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + uid_.ClearToEmpty(); } inline const std::string& GameServer_ObjectMeta::uid() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.uid) @@ -2145,38 +2237,38 @@ inline std::string* GameServer_ObjectMeta::mutable_uid() { return _internal_mutable_uid(); } inline const std::string& GameServer_ObjectMeta::_internal_uid() const { - return uid_.GetNoArena(); + return uid_.Get(); } inline void GameServer_ObjectMeta::_internal_set_uid(const std::string& value) { - uid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + uid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void GameServer_ObjectMeta::set_uid(std::string&& value) { - uid_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + uid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:agones.dev.sdk.GameServer.ObjectMeta.uid) } inline void GameServer_ObjectMeta::set_uid(const char* value) { GOOGLE_DCHECK(value != nullptr); - uid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + uid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:agones.dev.sdk.GameServer.ObjectMeta.uid) } -inline void GameServer_ObjectMeta::set_uid(const char* value, size_t size) { +inline void GameServer_ObjectMeta::set_uid(const char* value, + size_t size) { - uid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); + uid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:agones.dev.sdk.GameServer.ObjectMeta.uid) } inline std::string* GameServer_ObjectMeta::_internal_mutable_uid() { - return uid_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return uid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* GameServer_ObjectMeta::release_uid() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.uid) - - return uid_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return uid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void GameServer_ObjectMeta::set_allocated_uid(std::string* uid) { if (uid != nullptr) { @@ -2184,13 +2276,14 @@ inline void GameServer_ObjectMeta::set_allocated_uid(std::string* uid) { } else { } - uid_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), uid); + uid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), uid, + GetArena()); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.ObjectMeta.uid) } // string resource_version = 4; inline void GameServer_ObjectMeta::clear_resource_version() { - resource_version_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + resource_version_.ClearToEmpty(); } inline const std::string& GameServer_ObjectMeta::resource_version() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.resource_version) @@ -2205,38 +2298,38 @@ inline std::string* GameServer_ObjectMeta::mutable_resource_version() { return _internal_mutable_resource_version(); } inline const std::string& GameServer_ObjectMeta::_internal_resource_version() const { - return resource_version_.GetNoArena(); + return resource_version_.Get(); } inline void GameServer_ObjectMeta::_internal_set_resource_version(const std::string& value) { - resource_version_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + resource_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void GameServer_ObjectMeta::set_resource_version(std::string&& value) { - resource_version_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + resource_version_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:agones.dev.sdk.GameServer.ObjectMeta.resource_version) } inline void GameServer_ObjectMeta::set_resource_version(const char* value) { GOOGLE_DCHECK(value != nullptr); - resource_version_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + resource_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:agones.dev.sdk.GameServer.ObjectMeta.resource_version) } -inline void GameServer_ObjectMeta::set_resource_version(const char* value, size_t size) { +inline void GameServer_ObjectMeta::set_resource_version(const char* value, + size_t size) { - resource_version_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); + resource_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:agones.dev.sdk.GameServer.ObjectMeta.resource_version) } inline std::string* GameServer_ObjectMeta::_internal_mutable_resource_version() { - return resource_version_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return resource_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* GameServer_ObjectMeta::release_resource_version() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.resource_version) - - return resource_version_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return resource_version_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void GameServer_ObjectMeta::set_allocated_resource_version(std::string* resource_version) { if (resource_version != nullptr) { @@ -2244,7 +2337,8 @@ inline void GameServer_ObjectMeta::set_allocated_resource_version(std::string* r } else { } - resource_version_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resource_version); + resource_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resource_version, + GetArena()); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.ObjectMeta.resource_version) } @@ -2462,21 +2556,43 @@ inline bool GameServer_Spec::has_health() const { return _internal_has_health(); } inline void GameServer_Spec::clear_health() { - if (GetArenaNoVirtual() == nullptr && health_ != nullptr) { + if (GetArena() == nullptr && health_ != nullptr) { delete health_; } health_ = nullptr; } inline const ::agones::dev::sdk::GameServer_Spec_Health& GameServer_Spec::_internal_health() const { const ::agones::dev::sdk::GameServer_Spec_Health* p = health_; - return p != nullptr ? *p : *reinterpret_cast( - &::agones::dev::sdk::_GameServer_Spec_Health_default_instance_); + return p != nullptr ? *p : reinterpret_cast( + ::agones::dev::sdk::_GameServer_Spec_Health_default_instance_); } inline const ::agones::dev::sdk::GameServer_Spec_Health& GameServer_Spec::health() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Spec.health) return _internal_health(); } +inline void GameServer_Spec::unsafe_arena_set_allocated_health( + ::agones::dev::sdk::GameServer_Spec_Health* health) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(health_); + } + health_ = health; + if (health) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.Spec.health) +} inline ::agones::dev::sdk::GameServer_Spec_Health* GameServer_Spec::release_health() { + + ::agones::dev::sdk::GameServer_Spec_Health* temp = health_; + health_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::agones::dev::sdk::GameServer_Spec_Health* GameServer_Spec::unsafe_arena_release_health() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Spec.health) ::agones::dev::sdk::GameServer_Spec_Health* temp = health_; @@ -2486,7 +2602,7 @@ inline ::agones::dev::sdk::GameServer_Spec_Health* GameServer_Spec::release_heal inline ::agones::dev::sdk::GameServer_Spec_Health* GameServer_Spec::_internal_mutable_health() { if (health_ == nullptr) { - auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Spec_Health>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Spec_Health>(GetArena()); health_ = p; } return health_; @@ -2496,12 +2612,13 @@ inline ::agones::dev::sdk::GameServer_Spec_Health* GameServer_Spec::mutable_heal return _internal_mutable_health(); } inline void GameServer_Spec::set_allocated_health(::agones::dev::sdk::GameServer_Spec_Health* health) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { delete health_; } if (health) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(health); if (message_arena != submessage_arena) { health = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, health, submessage_arena); @@ -2520,7 +2637,7 @@ inline void GameServer_Spec::set_allocated_health(::agones::dev::sdk::GameServer // string name = 1; inline void GameServer_Status_Port::clear_name() { - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmpty(); } inline const std::string& GameServer_Status_Port::name() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.Port.name) @@ -2535,38 +2652,38 @@ inline std::string* GameServer_Status_Port::mutable_name() { return _internal_mutable_name(); } inline const std::string& GameServer_Status_Port::_internal_name() const { - return name_.GetNoArena(); + return name_.Get(); } inline void GameServer_Status_Port::_internal_set_name(const std::string& value) { - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void GameServer_Status_Port::set_name(std::string&& value) { - name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + name_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:agones.dev.sdk.GameServer.Status.Port.name) } inline void GameServer_Status_Port::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:agones.dev.sdk.GameServer.Status.Port.name) } -inline void GameServer_Status_Port::set_name(const char* value, size_t size) { +inline void GameServer_Status_Port::set_name(const char* value, + size_t size) { - name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:agones.dev.sdk.GameServer.Status.Port.name) } inline std::string* GameServer_Status_Port::_internal_mutable_name() { - return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* GameServer_Status_Port::release_name() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.Port.name) - - return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void GameServer_Status_Port::set_allocated_name(std::string* name) { if (name != nullptr) { @@ -2574,7 +2691,8 @@ inline void GameServer_Status_Port::set_allocated_name(std::string* name) { } else { } - name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArena()); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.Status.Port.name) } @@ -2722,7 +2840,7 @@ GameServer_Status_PlayerStatus::mutable_ids() { // string state = 1; inline void GameServer_Status::clear_state() { - state_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + state_.ClearToEmpty(); } inline const std::string& GameServer_Status::state() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.state) @@ -2737,38 +2855,38 @@ inline std::string* GameServer_Status::mutable_state() { return _internal_mutable_state(); } inline const std::string& GameServer_Status::_internal_state() const { - return state_.GetNoArena(); + return state_.Get(); } inline void GameServer_Status::_internal_set_state(const std::string& value) { - state_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + state_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void GameServer_Status::set_state(std::string&& value) { - state_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + state_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:agones.dev.sdk.GameServer.Status.state) } inline void GameServer_Status::set_state(const char* value) { GOOGLE_DCHECK(value != nullptr); - state_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + state_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:agones.dev.sdk.GameServer.Status.state) } -inline void GameServer_Status::set_state(const char* value, size_t size) { +inline void GameServer_Status::set_state(const char* value, + size_t size) { - state_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); + state_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:agones.dev.sdk.GameServer.Status.state) } inline std::string* GameServer_Status::_internal_mutable_state() { - return state_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return state_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* GameServer_Status::release_state() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.state) - - return state_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return state_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void GameServer_Status::set_allocated_state(std::string* state) { if (state != nullptr) { @@ -2776,13 +2894,14 @@ inline void GameServer_Status::set_allocated_state(std::string* state) { } else { } - state_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), state); + state_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), state, + GetArena()); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.Status.state) } // string address = 2; inline void GameServer_Status::clear_address() { - address_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + address_.ClearToEmpty(); } inline const std::string& GameServer_Status::address() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.address) @@ -2797,38 +2916,38 @@ inline std::string* GameServer_Status::mutable_address() { return _internal_mutable_address(); } inline const std::string& GameServer_Status::_internal_address() const { - return address_.GetNoArena(); + return address_.Get(); } inline void GameServer_Status::_internal_set_address(const std::string& value) { - address_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void GameServer_Status::set_address(std::string&& value) { - address_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + address_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:agones.dev.sdk.GameServer.Status.address) } inline void GameServer_Status::set_address(const char* value) { GOOGLE_DCHECK(value != nullptr); - address_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:agones.dev.sdk.GameServer.Status.address) } -inline void GameServer_Status::set_address(const char* value, size_t size) { +inline void GameServer_Status::set_address(const char* value, + size_t size) { - address_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:agones.dev.sdk.GameServer.Status.address) } inline std::string* GameServer_Status::_internal_mutable_address() { - return address_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* GameServer_Status::release_address() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.address) - - return address_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void GameServer_Status::set_allocated_address(std::string* address) { if (address != nullptr) { @@ -2836,7 +2955,8 @@ inline void GameServer_Status::set_allocated_address(std::string* address) { } else { } - address_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), address); + address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), address, + GetArena()); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.Status.address) } @@ -2887,21 +3007,43 @@ inline bool GameServer_Status::has_players() const { return _internal_has_players(); } inline void GameServer_Status::clear_players() { - if (GetArenaNoVirtual() == nullptr && players_ != nullptr) { + if (GetArena() == nullptr && players_ != nullptr) { delete players_; } players_ = nullptr; } inline const ::agones::dev::sdk::GameServer_Status_PlayerStatus& GameServer_Status::_internal_players() const { const ::agones::dev::sdk::GameServer_Status_PlayerStatus* p = players_; - return p != nullptr ? *p : *reinterpret_cast( - &::agones::dev::sdk::_GameServer_Status_PlayerStatus_default_instance_); + return p != nullptr ? *p : reinterpret_cast( + ::agones::dev::sdk::_GameServer_Status_PlayerStatus_default_instance_); } inline const ::agones::dev::sdk::GameServer_Status_PlayerStatus& GameServer_Status::players() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.players) return _internal_players(); } +inline void GameServer_Status::unsafe_arena_set_allocated_players( + ::agones::dev::sdk::GameServer_Status_PlayerStatus* players) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(players_); + } + players_ = players; + if (players) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.Status.players) +} inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* GameServer_Status::release_players() { + + ::agones::dev::sdk::GameServer_Status_PlayerStatus* temp = players_; + players_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* GameServer_Status::unsafe_arena_release_players() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.players) ::agones::dev::sdk::GameServer_Status_PlayerStatus* temp = players_; @@ -2911,7 +3053,7 @@ inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* GameServer_Status::re inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* GameServer_Status::_internal_mutable_players() { if (players_ == nullptr) { - auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Status_PlayerStatus>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Status_PlayerStatus>(GetArena()); players_ = p; } return players_; @@ -2921,12 +3063,13 @@ inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* GameServer_Status::mu return _internal_mutable_players(); } inline void GameServer_Status::set_allocated_players(::agones::dev::sdk::GameServer_Status_PlayerStatus* players) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { delete players_; } if (players) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(players); if (message_arena != submessage_arena) { players = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, players, submessage_arena); @@ -2951,21 +3094,43 @@ inline bool GameServer::has_object_meta() const { return _internal_has_object_meta(); } inline void GameServer::clear_object_meta() { - if (GetArenaNoVirtual() == nullptr && object_meta_ != nullptr) { + if (GetArena() == nullptr && object_meta_ != nullptr) { delete object_meta_; } object_meta_ = nullptr; } inline const ::agones::dev::sdk::GameServer_ObjectMeta& GameServer::_internal_object_meta() const { const ::agones::dev::sdk::GameServer_ObjectMeta* p = object_meta_; - return p != nullptr ? *p : *reinterpret_cast( - &::agones::dev::sdk::_GameServer_ObjectMeta_default_instance_); + return p != nullptr ? *p : reinterpret_cast( + ::agones::dev::sdk::_GameServer_ObjectMeta_default_instance_); } inline const ::agones::dev::sdk::GameServer_ObjectMeta& GameServer::object_meta() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.object_meta) return _internal_object_meta(); } +inline void GameServer::unsafe_arena_set_allocated_object_meta( + ::agones::dev::sdk::GameServer_ObjectMeta* object_meta) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(object_meta_); + } + object_meta_ = object_meta; + if (object_meta) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.object_meta) +} inline ::agones::dev::sdk::GameServer_ObjectMeta* GameServer::release_object_meta() { + + ::agones::dev::sdk::GameServer_ObjectMeta* temp = object_meta_; + object_meta_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::agones::dev::sdk::GameServer_ObjectMeta* GameServer::unsafe_arena_release_object_meta() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.object_meta) ::agones::dev::sdk::GameServer_ObjectMeta* temp = object_meta_; @@ -2975,7 +3140,7 @@ inline ::agones::dev::sdk::GameServer_ObjectMeta* GameServer::release_object_met inline ::agones::dev::sdk::GameServer_ObjectMeta* GameServer::_internal_mutable_object_meta() { if (object_meta_ == nullptr) { - auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_ObjectMeta>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_ObjectMeta>(GetArena()); object_meta_ = p; } return object_meta_; @@ -2985,12 +3150,13 @@ inline ::agones::dev::sdk::GameServer_ObjectMeta* GameServer::mutable_object_met return _internal_mutable_object_meta(); } inline void GameServer::set_allocated_object_meta(::agones::dev::sdk::GameServer_ObjectMeta* object_meta) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { delete object_meta_; } if (object_meta) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(object_meta); if (message_arena != submessage_arena) { object_meta = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, object_meta, submessage_arena); @@ -3011,21 +3177,43 @@ inline bool GameServer::has_spec() const { return _internal_has_spec(); } inline void GameServer::clear_spec() { - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + if (GetArena() == nullptr && spec_ != nullptr) { delete spec_; } spec_ = nullptr; } inline const ::agones::dev::sdk::GameServer_Spec& GameServer::_internal_spec() const { const ::agones::dev::sdk::GameServer_Spec* p = spec_; - return p != nullptr ? *p : *reinterpret_cast( - &::agones::dev::sdk::_GameServer_Spec_default_instance_); + return p != nullptr ? *p : reinterpret_cast( + ::agones::dev::sdk::_GameServer_Spec_default_instance_); } inline const ::agones::dev::sdk::GameServer_Spec& GameServer::spec() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.spec) return _internal_spec(); } +inline void GameServer::unsafe_arena_set_allocated_spec( + ::agones::dev::sdk::GameServer_Spec* spec) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(spec_); + } + spec_ = spec; + if (spec) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.spec) +} inline ::agones::dev::sdk::GameServer_Spec* GameServer::release_spec() { + + ::agones::dev::sdk::GameServer_Spec* temp = spec_; + spec_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::agones::dev::sdk::GameServer_Spec* GameServer::unsafe_arena_release_spec() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.spec) ::agones::dev::sdk::GameServer_Spec* temp = spec_; @@ -3035,7 +3223,7 @@ inline ::agones::dev::sdk::GameServer_Spec* GameServer::release_spec() { inline ::agones::dev::sdk::GameServer_Spec* GameServer::_internal_mutable_spec() { if (spec_ == nullptr) { - auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Spec>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Spec>(GetArena()); spec_ = p; } return spec_; @@ -3045,12 +3233,13 @@ inline ::agones::dev::sdk::GameServer_Spec* GameServer::mutable_spec() { return _internal_mutable_spec(); } inline void GameServer::set_allocated_spec(::agones::dev::sdk::GameServer_Spec* spec) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { delete spec_; } if (spec) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(spec); if (message_arena != submessage_arena) { spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, spec, submessage_arena); @@ -3071,21 +3260,43 @@ inline bool GameServer::has_status() const { return _internal_has_status(); } inline void GameServer::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + if (GetArena() == nullptr && status_ != nullptr) { delete status_; } status_ = nullptr; } inline const ::agones::dev::sdk::GameServer_Status& GameServer::_internal_status() const { const ::agones::dev::sdk::GameServer_Status* p = status_; - return p != nullptr ? *p : *reinterpret_cast( - &::agones::dev::sdk::_GameServer_Status_default_instance_); + return p != nullptr ? *p : reinterpret_cast( + ::agones::dev::sdk::_GameServer_Status_default_instance_); } inline const ::agones::dev::sdk::GameServer_Status& GameServer::status() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.status) return _internal_status(); } +inline void GameServer::unsafe_arena_set_allocated_status( + ::agones::dev::sdk::GameServer_Status* status) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.status) +} inline ::agones::dev::sdk::GameServer_Status* GameServer::release_status() { + + ::agones::dev::sdk::GameServer_Status* temp = status_; + status_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::agones::dev::sdk::GameServer_Status* GameServer::unsafe_arena_release_status() { // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.status) ::agones::dev::sdk::GameServer_Status* temp = status_; @@ -3095,7 +3306,7 @@ inline ::agones::dev::sdk::GameServer_Status* GameServer::release_status() { inline ::agones::dev::sdk::GameServer_Status* GameServer::_internal_mutable_status() { if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Status>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Status>(GetArena()); status_ = p; } return status_; @@ -3105,12 +3316,13 @@ inline ::agones::dev::sdk::GameServer_Status* GameServer::mutable_status() { return _internal_mutable_status(); } inline void GameServer::set_allocated_status(::agones::dev::sdk::GameServer_Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { delete status_; } if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(status); if (message_arena != submessage_arena) { status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, status, submessage_arena); diff --git a/sdks/cpp/include/google/api/annotations.pb.h b/sdks/cpp/include/google/api/annotations.pb.h index ec58ebde9a..69b3466b7d 100644 --- a/sdks/cpp/include/google/api/annotations.pb.h +++ b/sdks/cpp/include/google/api/annotations.pb.h @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,12 +23,12 @@ #include #include -#if PROTOBUF_VERSION < 3011000 +#if PROTOBUF_VERSION < 3014000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011002 < PROTOBUF_MIN_PROTOC_VERSION +#if 3014000 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -40,8 +40,7 @@ #include #include #include -#include -#include +#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -60,7 +59,7 @@ PROTOBUF_NAMESPACE_CLOSE struct AGONES_EXPORT TableStruct_google_2fapi_2fannotations_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold); diff --git a/sdks/cpp/include/google/api/http.pb.h b/sdks/cpp/include/google/api/http.pb.h index 20b877ba89..23b2d8e525 100644 --- a/sdks/cpp/include/google/api/http.pb.h +++ b/sdks/cpp/include/google/api/http.pb.h @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,12 +23,12 @@ #include #include -#if PROTOBUF_VERSION < 3011000 +#if PROTOBUF_VERSION < 3014000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011002 < PROTOBUF_MIN_PROTOC_VERSION +#if 3014000 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -40,8 +40,7 @@ #include #include #include -#include -#include +#include #include #include #include // IWYU pragma: export @@ -60,7 +59,7 @@ PROTOBUF_NAMESPACE_CLOSE struct AGONES_EXPORT TableStruct_google_2fapi_2fhttp_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold); @@ -92,10 +91,10 @@ namespace api { // =================================================================== -class AGONES_EXPORT Http : +class AGONES_EXPORT Http PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ { public: - Http(); + inline Http() : Http(nullptr) {} virtual ~Http(); Http(const Http& from); @@ -109,7 +108,7 @@ class AGONES_EXPORT Http : return *this; } inline Http& operator=(Http&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -117,12 +116,6 @@ class AGONES_EXPORT Http : return *this; } - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -134,7 +127,6 @@ class AGONES_EXPORT Http : } static const Http& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Http* internal_default_instance() { return reinterpret_cast( &_Http_default_instance_); @@ -147,7 +139,7 @@ class AGONES_EXPORT Http : } inline void Swap(Http* other) { if (other == this) return; - if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -155,7 +147,7 @@ class AGONES_EXPORT Http : } void UnsafeArenaSwap(Http* other) { if (other == this) return; - GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -195,13 +187,6 @@ class AGONES_EXPORT Http : private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -252,7 +237,6 @@ class AGONES_EXPORT Http : private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -263,10 +247,10 @@ class AGONES_EXPORT Http : }; // ------------------------------------------------------------------- -class AGONES_EXPORT HttpRule : +class AGONES_EXPORT HttpRule PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ { public: - HttpRule(); + inline HttpRule() : HttpRule(nullptr) {} virtual ~HttpRule(); HttpRule(const HttpRule& from); @@ -280,7 +264,7 @@ class AGONES_EXPORT HttpRule : return *this; } inline HttpRule& operator=(HttpRule&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -288,12 +272,6 @@ class AGONES_EXPORT HttpRule : return *this; } - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -315,7 +293,6 @@ class AGONES_EXPORT HttpRule : PATTERN_NOT_SET = 0, }; - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const HttpRule* internal_default_instance() { return reinterpret_cast( &_HttpRule_default_instance_); @@ -328,7 +305,7 @@ class AGONES_EXPORT HttpRule : } inline void Swap(HttpRule* other) { if (other == this) return; - if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -336,7 +313,7 @@ class AGONES_EXPORT HttpRule : } void UnsafeArenaSwap(HttpRule* other) { if (other == this) return; - GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -376,13 +353,6 @@ class AGONES_EXPORT HttpRule : private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -438,15 +408,6 @@ class AGONES_EXPORT HttpRule : std::string* mutable_selector(); std::string* release_selector(); void set_allocated_selector(std::string* selector); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_selector(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_selector( - std::string* selector); private: const std::string& _internal_selector() const; void _internal_set_selector(const std::string& value); @@ -463,15 +424,6 @@ class AGONES_EXPORT HttpRule : std::string* mutable_body(); std::string* release_body(); void set_allocated_body(std::string* body); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_body(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_body( - std::string* body); private: const std::string& _internal_body() const; void _internal_set_body(const std::string& value); @@ -488,15 +440,6 @@ class AGONES_EXPORT HttpRule : std::string* mutable_response_body(); std::string* release_response_body(); void set_allocated_response_body(std::string* response_body); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_response_body(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_response_body( - std::string* response_body); private: const std::string& _internal_response_body() const; void _internal_set_response_body(const std::string& value); @@ -516,15 +459,6 @@ class AGONES_EXPORT HttpRule : std::string* mutable_get(); std::string* release_get(); void set_allocated_get(std::string* get); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_get(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_get( - std::string* get); private: const std::string& _internal_get() const; void _internal_set_get(const std::string& value); @@ -544,15 +478,6 @@ class AGONES_EXPORT HttpRule : std::string* mutable_put(); std::string* release_put(); void set_allocated_put(std::string* put); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_put(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_put( - std::string* put); private: const std::string& _internal_put() const; void _internal_set_put(const std::string& value); @@ -572,15 +497,6 @@ class AGONES_EXPORT HttpRule : std::string* mutable_post(); std::string* release_post(); void set_allocated_post(std::string* post); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_post(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_post( - std::string* post); private: const std::string& _internal_post() const; void _internal_set_post(const std::string& value); @@ -600,15 +516,6 @@ class AGONES_EXPORT HttpRule : std::string* mutable_delete_(); std::string* release_delete_(); void set_allocated_delete_(std::string* delete_); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_delete_(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_delete_( - std::string* delete_); private: const std::string& _internal_delete_() const; void _internal_set_delete_(const std::string& value); @@ -628,15 +535,6 @@ class AGONES_EXPORT HttpRule : std::string* mutable_patch(); std::string* release_patch(); void set_allocated_patch(std::string* patch); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_patch(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_patch( - std::string* patch); private: const std::string& _internal_patch() const; void _internal_set_patch(const std::string& value); @@ -676,7 +574,6 @@ class AGONES_EXPORT HttpRule : inline bool has_pattern() const; inline void clear_has_pattern(); - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -700,10 +597,10 @@ class AGONES_EXPORT HttpRule : }; // ------------------------------------------------------------------- -class AGONES_EXPORT CustomHttpPattern : +class AGONES_EXPORT CustomHttpPattern PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ { public: - CustomHttpPattern(); + inline CustomHttpPattern() : CustomHttpPattern(nullptr) {} virtual ~CustomHttpPattern(); CustomHttpPattern(const CustomHttpPattern& from); @@ -717,7 +614,7 @@ class AGONES_EXPORT CustomHttpPattern : return *this; } inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); @@ -725,12 +622,6 @@ class AGONES_EXPORT CustomHttpPattern : return *this; } - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -742,7 +633,6 @@ class AGONES_EXPORT CustomHttpPattern : } static const CustomHttpPattern& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CustomHttpPattern* internal_default_instance() { return reinterpret_cast( &_CustomHttpPattern_default_instance_); @@ -755,7 +645,7 @@ class AGONES_EXPORT CustomHttpPattern : } inline void Swap(CustomHttpPattern* other) { if (other == this) return; - if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -763,7 +653,7 @@ class AGONES_EXPORT CustomHttpPattern : } void UnsafeArenaSwap(CustomHttpPattern* other) { if (other == this) return; - GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } @@ -803,13 +693,6 @@ class AGONES_EXPORT CustomHttpPattern : private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -839,15 +722,6 @@ class AGONES_EXPORT CustomHttpPattern : std::string* mutable_kind(); std::string* release_kind(); void set_allocated_kind(std::string* kind); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_kind(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_kind( - std::string* kind); private: const std::string& _internal_kind() const; void _internal_set_kind(const std::string& value); @@ -864,15 +738,6 @@ class AGONES_EXPORT CustomHttpPattern : std::string* mutable_path(); std::string* release_path(); void set_allocated_path(std::string* path); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_path(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_path( - std::string* path); private: const std::string& _internal_path() const; void _internal_set_path(const std::string& value); @@ -883,7 +748,6 @@ class AGONES_EXPORT CustomHttpPattern : private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -968,7 +832,7 @@ inline void Http::set_fully_decode_reserved_expansion(bool value) { // string selector = 1; inline void HttpRule::clear_selector() { - selector_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + selector_.ClearToEmpty(); } inline const std::string& HttpRule::selector() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.selector) @@ -987,36 +851,34 @@ inline const std::string& HttpRule::_internal_selector() const { } inline void HttpRule::_internal_set_selector(const std::string& value) { - selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); + selector_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void HttpRule::set_selector(std::string&& value) { selector_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.selector) } inline void HttpRule::set_selector(const char* value) { GOOGLE_DCHECK(value != nullptr); - selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); + selector_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:google.api.HttpRule.selector) } inline void HttpRule::set_selector(const char* value, size_t size) { - selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); + selector_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.selector) } inline std::string* HttpRule::_internal_mutable_selector() { - return selector_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return selector_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* HttpRule::release_selector() { // @@protoc_insertion_point(field_release:google.api.HttpRule.selector) - - return selector_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return selector_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void HttpRule::set_allocated_selector(std::string* selector) { if (selector != nullptr) { @@ -1025,28 +887,9 @@ inline void HttpRule::set_allocated_selector(std::string* selector) { } selector_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), selector, - GetArenaNoVirtual()); + GetArena()); // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector) } -inline std::string* HttpRule::unsafe_arena_release_selector() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.selector) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - - return selector_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HttpRule::unsafe_arena_set_allocated_selector( - std::string* selector) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (selector != nullptr) { - - } else { - - } - selector_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - selector, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.selector) -} // string get = 2; inline bool HttpRule::_internal_has_get() const { @@ -1057,8 +900,7 @@ inline void HttpRule::set_has_get() { } inline void HttpRule::clear_get() { if (_internal_has_get()) { - pattern_.get_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + pattern_.get_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); clear_has_pattern(); } } @@ -1078,7 +920,7 @@ inline const std::string& HttpRule::_internal_get() const { if (_internal_has_get()) { return pattern_.get_.Get(); } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_get(const std::string& value) { if (!_internal_has_get()) { @@ -1086,8 +928,7 @@ inline void HttpRule::_internal_set_get(const std::string& value) { set_has_get(); pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - pattern_.get_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); + pattern_.get_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void HttpRule::set_get(std::string&& value) { // @@protoc_insertion_point(field_set:google.api.HttpRule.get) @@ -1097,7 +938,7 @@ inline void HttpRule::set_get(std::string&& value) { pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } pattern_.get_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.get) } inline void HttpRule::set_get(const char* value) { @@ -1107,8 +948,8 @@ inline void HttpRule::set_get(const char* value) { set_has_get(); pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - pattern_.get_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); + pattern_.get_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, + ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:google.api.HttpRule.get) } inline void HttpRule::set_get(const char* value, @@ -1119,9 +960,9 @@ inline void HttpRule::set_get(const char* value, pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } pattern_.get_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), - GetArenaNoVirtual()); + GetArena()); // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.get) } inline std::string* HttpRule::_internal_mutable_get() { @@ -1130,15 +971,14 @@ inline std::string* HttpRule::_internal_mutable_get() { set_has_get(); pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - return pattern_.get_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return pattern_.get_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* HttpRule::release_get() { // @@protoc_insertion_point(field_release:google.api.HttpRule.get) if (_internal_has_get()) { clear_has_pattern(); - return pattern_.get_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return pattern_.get_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } else { return nullptr; } @@ -1150,32 +990,13 @@ inline void HttpRule::set_allocated_get(std::string* get) { if (get != nullptr) { set_has_get(); pattern_.get_.UnsafeSetDefault(get); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + if (arena != nullptr) { + arena->Own(get); + } } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.get) } -inline std::string* HttpRule::unsafe_arena_release_get() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.get) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (_internal_has_get()) { - clear_has_pattern(); - return pattern_.get_.UnsafeArenaRelease( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return nullptr; - } -} -inline void HttpRule::unsafe_arena_set_allocated_get(std::string* get) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (!_internal_has_get()) { - pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - clear_pattern(); - if (get) { - set_has_get(); - pattern_.get_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), get, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.get) -} // string put = 3; inline bool HttpRule::_internal_has_put() const { @@ -1186,8 +1007,7 @@ inline void HttpRule::set_has_put() { } inline void HttpRule::clear_put() { if (_internal_has_put()) { - pattern_.put_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + pattern_.put_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); clear_has_pattern(); } } @@ -1207,7 +1027,7 @@ inline const std::string& HttpRule::_internal_put() const { if (_internal_has_put()) { return pattern_.put_.Get(); } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_put(const std::string& value) { if (!_internal_has_put()) { @@ -1215,8 +1035,7 @@ inline void HttpRule::_internal_set_put(const std::string& value) { set_has_put(); pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - pattern_.put_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); + pattern_.put_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void HttpRule::set_put(std::string&& value) { // @@protoc_insertion_point(field_set:google.api.HttpRule.put) @@ -1226,7 +1045,7 @@ inline void HttpRule::set_put(std::string&& value) { pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } pattern_.put_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.put) } inline void HttpRule::set_put(const char* value) { @@ -1236,8 +1055,8 @@ inline void HttpRule::set_put(const char* value) { set_has_put(); pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - pattern_.put_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); + pattern_.put_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, + ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:google.api.HttpRule.put) } inline void HttpRule::set_put(const char* value, @@ -1248,9 +1067,9 @@ inline void HttpRule::set_put(const char* value, pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } pattern_.put_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), - GetArenaNoVirtual()); + GetArena()); // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.put) } inline std::string* HttpRule::_internal_mutable_put() { @@ -1259,15 +1078,14 @@ inline std::string* HttpRule::_internal_mutable_put() { set_has_put(); pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - return pattern_.put_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return pattern_.put_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* HttpRule::release_put() { // @@protoc_insertion_point(field_release:google.api.HttpRule.put) if (_internal_has_put()) { clear_has_pattern(); - return pattern_.put_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return pattern_.put_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } else { return nullptr; } @@ -1279,32 +1097,13 @@ inline void HttpRule::set_allocated_put(std::string* put) { if (put != nullptr) { set_has_put(); pattern_.put_.UnsafeSetDefault(put); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + if (arena != nullptr) { + arena->Own(put); + } } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.put) } -inline std::string* HttpRule::unsafe_arena_release_put() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.put) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (_internal_has_put()) { - clear_has_pattern(); - return pattern_.put_.UnsafeArenaRelease( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return nullptr; - } -} -inline void HttpRule::unsafe_arena_set_allocated_put(std::string* put) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (!_internal_has_put()) { - pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - clear_pattern(); - if (put) { - set_has_put(); - pattern_.put_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), put, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.put) -} // string post = 4; inline bool HttpRule::_internal_has_post() const { @@ -1315,8 +1114,7 @@ inline void HttpRule::set_has_post() { } inline void HttpRule::clear_post() { if (_internal_has_post()) { - pattern_.post_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + pattern_.post_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); clear_has_pattern(); } } @@ -1336,7 +1134,7 @@ inline const std::string& HttpRule::_internal_post() const { if (_internal_has_post()) { return pattern_.post_.Get(); } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_post(const std::string& value) { if (!_internal_has_post()) { @@ -1344,8 +1142,7 @@ inline void HttpRule::_internal_set_post(const std::string& value) { set_has_post(); pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - pattern_.post_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); + pattern_.post_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void HttpRule::set_post(std::string&& value) { // @@protoc_insertion_point(field_set:google.api.HttpRule.post) @@ -1355,7 +1152,7 @@ inline void HttpRule::set_post(std::string&& value) { pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } pattern_.post_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.post) } inline void HttpRule::set_post(const char* value) { @@ -1365,8 +1162,8 @@ inline void HttpRule::set_post(const char* value) { set_has_post(); pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - pattern_.post_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); + pattern_.post_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, + ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:google.api.HttpRule.post) } inline void HttpRule::set_post(const char* value, @@ -1377,9 +1174,9 @@ inline void HttpRule::set_post(const char* value, pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } pattern_.post_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), - GetArenaNoVirtual()); + GetArena()); // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.post) } inline std::string* HttpRule::_internal_mutable_post() { @@ -1388,15 +1185,14 @@ inline std::string* HttpRule::_internal_mutable_post() { set_has_post(); pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - return pattern_.post_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return pattern_.post_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* HttpRule::release_post() { // @@protoc_insertion_point(field_release:google.api.HttpRule.post) if (_internal_has_post()) { clear_has_pattern(); - return pattern_.post_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return pattern_.post_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } else { return nullptr; } @@ -1408,32 +1204,13 @@ inline void HttpRule::set_allocated_post(std::string* post) { if (post != nullptr) { set_has_post(); pattern_.post_.UnsafeSetDefault(post); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + if (arena != nullptr) { + arena->Own(post); + } } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.post) } -inline std::string* HttpRule::unsafe_arena_release_post() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.post) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (_internal_has_post()) { - clear_has_pattern(); - return pattern_.post_.UnsafeArenaRelease( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return nullptr; - } -} -inline void HttpRule::unsafe_arena_set_allocated_post(std::string* post) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (!_internal_has_post()) { - pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - clear_pattern(); - if (post) { - set_has_post(); - pattern_.post_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), post, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.post) -} // string delete = 5; inline bool HttpRule::_internal_has_delete_() const { @@ -1444,8 +1221,7 @@ inline void HttpRule::set_has_delete_() { } inline void HttpRule::clear_delete_() { if (_internal_has_delete_()) { - pattern_.delete__.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + pattern_.delete__.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); clear_has_pattern(); } } @@ -1465,7 +1241,7 @@ inline const std::string& HttpRule::_internal_delete_() const { if (_internal_has_delete_()) { return pattern_.delete__.Get(); } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_delete_(const std::string& value) { if (!_internal_has_delete_()) { @@ -1473,8 +1249,7 @@ inline void HttpRule::_internal_set_delete_(const std::string& value) { set_has_delete_(); pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - pattern_.delete__.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); + pattern_.delete__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void HttpRule::set_delete_(std::string&& value) { // @@protoc_insertion_point(field_set:google.api.HttpRule.delete) @@ -1484,7 +1259,7 @@ inline void HttpRule::set_delete_(std::string&& value) { pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } pattern_.delete__.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.delete) } inline void HttpRule::set_delete_(const char* value) { @@ -1494,8 +1269,8 @@ inline void HttpRule::set_delete_(const char* value) { set_has_delete_(); pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - pattern_.delete__.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); + pattern_.delete__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, + ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:google.api.HttpRule.delete) } inline void HttpRule::set_delete_(const char* value, @@ -1506,9 +1281,9 @@ inline void HttpRule::set_delete_(const char* value, pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } pattern_.delete__.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), - GetArenaNoVirtual()); + GetArena()); // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.delete) } inline std::string* HttpRule::_internal_mutable_delete_() { @@ -1517,15 +1292,14 @@ inline std::string* HttpRule::_internal_mutable_delete_() { set_has_delete_(); pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - return pattern_.delete__.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return pattern_.delete__.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* HttpRule::release_delete_() { // @@protoc_insertion_point(field_release:google.api.HttpRule.delete) if (_internal_has_delete_()) { clear_has_pattern(); - return pattern_.delete__.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return pattern_.delete__.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } else { return nullptr; } @@ -1537,32 +1311,13 @@ inline void HttpRule::set_allocated_delete_(std::string* delete_) { if (delete_ != nullptr) { set_has_delete_(); pattern_.delete__.UnsafeSetDefault(delete_); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + if (arena != nullptr) { + arena->Own(delete_); + } } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.delete) } -inline std::string* HttpRule::unsafe_arena_release_delete_() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.delete) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (_internal_has_delete_()) { - clear_has_pattern(); - return pattern_.delete__.UnsafeArenaRelease( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return nullptr; - } -} -inline void HttpRule::unsafe_arena_set_allocated_delete_(std::string* delete_) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (!_internal_has_delete_()) { - pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - clear_pattern(); - if (delete_) { - set_has_delete_(); - pattern_.delete__.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), delete_, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.delete) -} // string patch = 6; inline bool HttpRule::_internal_has_patch() const { @@ -1573,8 +1328,7 @@ inline void HttpRule::set_has_patch() { } inline void HttpRule::clear_patch() { if (_internal_has_patch()) { - pattern_.patch_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + pattern_.patch_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); clear_has_pattern(); } } @@ -1594,7 +1348,7 @@ inline const std::string& HttpRule::_internal_patch() const { if (_internal_has_patch()) { return pattern_.patch_.Get(); } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_patch(const std::string& value) { if (!_internal_has_patch()) { @@ -1602,8 +1356,7 @@ inline void HttpRule::_internal_set_patch(const std::string& value) { set_has_patch(); pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - pattern_.patch_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); + pattern_.patch_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void HttpRule::set_patch(std::string&& value) { // @@protoc_insertion_point(field_set:google.api.HttpRule.patch) @@ -1613,7 +1366,7 @@ inline void HttpRule::set_patch(std::string&& value) { pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } pattern_.patch_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.patch) } inline void HttpRule::set_patch(const char* value) { @@ -1623,8 +1376,8 @@ inline void HttpRule::set_patch(const char* value) { set_has_patch(); pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - pattern_.patch_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); + pattern_.patch_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, + ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:google.api.HttpRule.patch) } inline void HttpRule::set_patch(const char* value, @@ -1635,9 +1388,9 @@ inline void HttpRule::set_patch(const char* value, pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } pattern_.patch_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), - GetArenaNoVirtual()); + GetArena()); // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.patch) } inline std::string* HttpRule::_internal_mutable_patch() { @@ -1646,15 +1399,14 @@ inline std::string* HttpRule::_internal_mutable_patch() { set_has_patch(); pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - return pattern_.patch_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return pattern_.patch_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* HttpRule::release_patch() { // @@protoc_insertion_point(field_release:google.api.HttpRule.patch) if (_internal_has_patch()) { clear_has_pattern(); - return pattern_.patch_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return pattern_.patch_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } else { return nullptr; } @@ -1666,32 +1418,13 @@ inline void HttpRule::set_allocated_patch(std::string* patch) { if (patch != nullptr) { set_has_patch(); pattern_.patch_.UnsafeSetDefault(patch); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + if (arena != nullptr) { + arena->Own(patch); + } } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.patch) } -inline std::string* HttpRule::unsafe_arena_release_patch() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.patch) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (_internal_has_patch()) { - clear_has_pattern(); - return pattern_.patch_.UnsafeArenaRelease( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return nullptr; - } -} -inline void HttpRule::unsafe_arena_set_allocated_patch(std::string* patch) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (!_internal_has_patch()) { - pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - clear_pattern(); - if (patch) { - set_has_patch(); - pattern_.patch_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), patch, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.patch) -} // .google.api.CustomHttpPattern custom = 8; inline bool HttpRule::_internal_has_custom() const { @@ -1705,7 +1438,7 @@ inline void HttpRule::set_has_custom() { } inline void HttpRule::clear_custom() { if (_internal_has_custom()) { - if (GetArenaNoVirtual() == nullptr) { + if (GetArena() == nullptr) { delete pattern_.custom_; } clear_has_pattern(); @@ -1716,7 +1449,7 @@ inline ::google::api::CustomHttpPattern* HttpRule::release_custom() { if (_internal_has_custom()) { clear_has_pattern(); ::google::api::CustomHttpPattern* temp = pattern_.custom_; - if (GetArenaNoVirtual() != nullptr) { + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } pattern_.custom_ = nullptr; @@ -1728,7 +1461,7 @@ inline ::google::api::CustomHttpPattern* HttpRule::release_custom() { inline const ::google::api::CustomHttpPattern& HttpRule::_internal_custom() const { return _internal_has_custom() ? *pattern_.custom_ - : *reinterpret_cast< ::google::api::CustomHttpPattern*>(&::google::api::_CustomHttpPattern_default_instance_); + : reinterpret_cast< ::google::api::CustomHttpPattern&>(::google::api::_CustomHttpPattern_default_instance_); } inline const ::google::api::CustomHttpPattern& HttpRule::custom() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.custom) @@ -1757,8 +1490,7 @@ inline ::google::api::CustomHttpPattern* HttpRule::_internal_mutable_custom() { if (!_internal_has_custom()) { clear_pattern(); set_has_custom(); - pattern_.custom_ = CreateMaybeMessage< ::google::api::CustomHttpPattern >( - GetArenaNoVirtual()); + pattern_.custom_ = CreateMaybeMessage< ::google::api::CustomHttpPattern >(GetArena()); } return pattern_.custom_; } @@ -1769,7 +1501,7 @@ inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() { // string body = 7; inline void HttpRule::clear_body() { - body_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + body_.ClearToEmpty(); } inline const std::string& HttpRule::body() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.body) @@ -1788,36 +1520,34 @@ inline const std::string& HttpRule::_internal_body() const { } inline void HttpRule::_internal_set_body(const std::string& value) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); + body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void HttpRule::set_body(std::string&& value) { body_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.body) } inline void HttpRule::set_body(const char* value) { GOOGLE_DCHECK(value != nullptr); - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); + body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:google.api.HttpRule.body) } inline void HttpRule::set_body(const char* value, size_t size) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); + body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.body) } inline std::string* HttpRule::_internal_mutable_body() { - return body_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return body_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* HttpRule::release_body() { // @@protoc_insertion_point(field_release:google.api.HttpRule.body) - - return body_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return body_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void HttpRule::set_allocated_body(std::string* body) { if (body != nullptr) { @@ -1826,32 +1556,13 @@ inline void HttpRule::set_allocated_body(std::string* body) { } body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), body, - GetArenaNoVirtual()); + GetArena()); // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.body) } -inline std::string* HttpRule::unsafe_arena_release_body() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.body) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - - return body_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HttpRule::unsafe_arena_set_allocated_body( - std::string* body) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (body != nullptr) { - - } else { - - } - body_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - body, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.body) -} // string response_body = 12; inline void HttpRule::clear_response_body() { - response_body_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + response_body_.ClearToEmpty(); } inline const std::string& HttpRule::response_body() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.response_body) @@ -1870,36 +1581,34 @@ inline const std::string& HttpRule::_internal_response_body() const { } inline void HttpRule::_internal_set_response_body(const std::string& value) { - response_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); + response_body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void HttpRule::set_response_body(std::string&& value) { response_body_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.response_body) } inline void HttpRule::set_response_body(const char* value) { GOOGLE_DCHECK(value != nullptr); - response_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); + response_body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:google.api.HttpRule.response_body) } inline void HttpRule::set_response_body(const char* value, size_t size) { - response_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); + response_body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.response_body) } inline std::string* HttpRule::_internal_mutable_response_body() { - return response_body_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return response_body_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* HttpRule::release_response_body() { // @@protoc_insertion_point(field_release:google.api.HttpRule.response_body) - - return response_body_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return response_body_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void HttpRule::set_allocated_response_body(std::string* response_body) { if (response_body != nullptr) { @@ -1908,28 +1617,9 @@ inline void HttpRule::set_allocated_response_body(std::string* response_body) { } response_body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), response_body, - GetArenaNoVirtual()); + GetArena()); // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.response_body) } -inline std::string* HttpRule::unsafe_arena_release_response_body() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.response_body) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - - return response_body_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HttpRule::unsafe_arena_set_allocated_response_body( - std::string* response_body) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (response_body != nullptr) { - - } else { - - } - response_body_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - response_body, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.response_body) -} // repeated .google.api.HttpRule additional_bindings = 11; inline int HttpRule::_internal_additional_bindings_size() const { @@ -1985,7 +1675,7 @@ inline HttpRule::PatternCase HttpRule::pattern_case() const { // string kind = 1; inline void CustomHttpPattern::clear_kind() { - kind_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + kind_.ClearToEmpty(); } inline const std::string& CustomHttpPattern::kind() const { // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.kind) @@ -2004,36 +1694,34 @@ inline const std::string& CustomHttpPattern::_internal_kind() const { } inline void CustomHttpPattern::_internal_set_kind(const std::string& value) { - kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); + kind_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void CustomHttpPattern::set_kind(std::string&& value) { kind_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.kind) } inline void CustomHttpPattern::set_kind(const char* value) { GOOGLE_DCHECK(value != nullptr); - kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); + kind_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.kind) } inline void CustomHttpPattern::set_kind(const char* value, size_t size) { - kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); + kind_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.kind) } inline std::string* CustomHttpPattern::_internal_mutable_kind() { - return kind_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return kind_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* CustomHttpPattern::release_kind() { // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind) - - return kind_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return kind_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void CustomHttpPattern::set_allocated_kind(std::string* kind) { if (kind != nullptr) { @@ -2042,32 +1730,13 @@ inline void CustomHttpPattern::set_allocated_kind(std::string* kind) { } kind_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), kind, - GetArenaNoVirtual()); + GetArena()); // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.kind) } -inline std::string* CustomHttpPattern::unsafe_arena_release_kind() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.kind) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - - return kind_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void CustomHttpPattern::unsafe_arena_set_allocated_kind( - std::string* kind) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (kind != nullptr) { - - } else { - - } - kind_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - kind, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.kind) -} // string path = 2; inline void CustomHttpPattern::clear_path() { - path_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + path_.ClearToEmpty(); } inline const std::string& CustomHttpPattern::path() const { // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.path) @@ -2086,36 +1755,34 @@ inline const std::string& CustomHttpPattern::_internal_path() const { } inline void CustomHttpPattern::_internal_set_path(const std::string& value) { - path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); + path_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } inline void CustomHttpPattern::set_path(std::string&& value) { path_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.path) } inline void CustomHttpPattern::set_path(const char* value) { GOOGLE_DCHECK(value != nullptr); - path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); + path_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.path) } inline void CustomHttpPattern::set_path(const char* value, size_t size) { - path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); + path_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.path) } inline std::string* CustomHttpPattern::_internal_mutable_path() { - return path_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return path_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* CustomHttpPattern::release_path() { // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path) - - return path_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return path_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void CustomHttpPattern::set_allocated_path(std::string* path) { if (path != nullptr) { @@ -2124,28 +1791,9 @@ inline void CustomHttpPattern::set_allocated_path(std::string* path) { } path_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), path, - GetArenaNoVirtual()); + GetArena()); // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.path) } -inline std::string* CustomHttpPattern::unsafe_arena_release_path() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.path) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - - return path_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void CustomHttpPattern::unsafe_arena_set_allocated_path( - std::string* path) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (path != nullptr) { - - } else { - - } - path_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - path, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.path) -} #ifdef __GNUC__ #pragma GCC diagnostic pop diff --git a/sdks/cpp/src/agones/sdk.grpc.pb.cc b/sdks/cpp/src/agones/sdk.grpc.pb.cc index 54e4e19616..49a27f0918 100644 --- a/sdks/cpp/src/agones/sdk.grpc.pb.cc +++ b/sdks/cpp/src/agones/sdk.grpc.pb.cc @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -69,279 +69,289 @@ SDK::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) {} ::grpc::Status SDK::Stub::Ready(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::agones::dev::sdk::Empty* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Ready_, context, request, response); + return ::grpc::internal::BlockingUnaryCall< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Ready_, context, request, response); } void SDK::Stub::experimental_async::Ready(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, std::move(f)); -} - -void SDK::Stub::experimental_async::Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, std::move(f)); + ::grpc::internal::CallbackUnaryCall< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, std::move(f)); } void SDK::Stub::experimental_async::Ready(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, reactor); + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, reactor); } -void SDK::Stub::experimental_async::Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncReadyRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Ready_, context, request); } ::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::AsyncReadyRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Ready_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncReadyRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Ready_, context, request, false); + auto* result = + this->PrepareAsyncReadyRaw(context, request, cq); + result->StartCall(); + return result; } ::grpc::Status SDK::Stub::Allocate(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::agones::dev::sdk::Empty* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Allocate_, context, request, response); + return ::grpc::internal::BlockingUnaryCall< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Allocate_, context, request, response); } void SDK::Stub::experimental_async::Allocate(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Allocate_, context, request, response, std::move(f)); -} - -void SDK::Stub::experimental_async::Allocate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Allocate_, context, request, response, std::move(f)); + ::grpc::internal::CallbackUnaryCall< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Allocate_, context, request, response, std::move(f)); } void SDK::Stub::experimental_async::Allocate(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Allocate_, context, request, response, reactor); + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Allocate_, context, request, response, reactor); } -void SDK::Stub::experimental_async::Allocate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Allocate_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncAllocateRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Allocate_, context, request); } ::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::AsyncAllocateRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Allocate_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncAllocateRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Allocate_, context, request, false); + auto* result = + this->PrepareAsyncAllocateRaw(context, request, cq); + result->StartCall(); + return result; } ::grpc::Status SDK::Stub::Shutdown(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::agones::dev::sdk::Empty* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Shutdown_, context, request, response); + return ::grpc::internal::BlockingUnaryCall< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Shutdown_, context, request, response); } void SDK::Stub::experimental_async::Shutdown(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, std::move(f)); -} - -void SDK::Stub::experimental_async::Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, std::move(f)); + ::grpc::internal::CallbackUnaryCall< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, std::move(f)); } void SDK::Stub::experimental_async::Shutdown(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, reactor); + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, reactor); } -void SDK::Stub::experimental_async::Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncShutdownRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Shutdown_, context, request); } ::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::AsyncShutdownRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Shutdown_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncShutdownRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Shutdown_, context, request, false); + auto* result = + this->PrepareAsyncShutdownRaw(context, request, cq); + result->StartCall(); + return result; } ::grpc::ClientWriter< ::agones::dev::sdk::Empty>* SDK::Stub::HealthRaw(::grpc::ClientContext* context, ::agones::dev::sdk::Empty* response) { - return ::grpc_impl::internal::ClientWriterFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), rpcmethod_Health_, context, response); + return ::grpc::internal::ClientWriterFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), rpcmethod_Health_, context, response); } void SDK::Stub::experimental_async::Health(::grpc::ClientContext* context, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientWriteReactor< ::agones::dev::sdk::Empty>* reactor) { - ::grpc_impl::internal::ClientCallbackWriterFactory< ::agones::dev::sdk::Empty>::Create(stub_->channel_.get(), stub_->rpcmethod_Health_, context, response, reactor); + ::grpc::internal::ClientCallbackWriterFactory< ::agones::dev::sdk::Empty>::Create(stub_->channel_.get(), stub_->rpcmethod_Health_, context, response, reactor); } ::grpc::ClientAsyncWriter< ::agones::dev::sdk::Empty>* SDK::Stub::AsyncHealthRaw(::grpc::ClientContext* context, ::agones::dev::sdk::Empty* response, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc_impl::internal::ClientAsyncWriterFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Health_, context, response, true, tag); + return ::grpc::internal::ClientAsyncWriterFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Health_, context, response, true, tag); } ::grpc::ClientAsyncWriter< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncHealthRaw(::grpc::ClientContext* context, ::agones::dev::sdk::Empty* response, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncWriterFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Health_, context, response, false, nullptr); + return ::grpc::internal::ClientAsyncWriterFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Health_, context, response, false, nullptr); } ::grpc::Status SDK::Stub::GetGameServer(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::agones::dev::sdk::GameServer* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGameServer_, context, request, response); + return ::grpc::internal::BlockingUnaryCall< ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGameServer_, context, request, response); } void SDK::Stub::experimental_async::GetGameServer(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::GameServer* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGameServer_, context, request, response, std::move(f)); -} - -void SDK::Stub::experimental_async::GetGameServer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::GameServer* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGameServer_, context, request, response, std::move(f)); + ::grpc::internal::CallbackUnaryCall< ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGameServer_, context, request, response, std::move(f)); } void SDK::Stub::experimental_async::GetGameServer(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty* request, ::agones::dev::sdk::GameServer* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGameServer_, context, request, response, reactor); + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGameServer_, context, request, response, reactor); } -void SDK::Stub::experimental_async::GetGameServer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::GameServer* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGameServer_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::GameServer>* SDK::Stub::PrepareAsyncGetGameServerRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::agones::dev::sdk::GameServer, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGameServer_, context, request); } ::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::GameServer>* SDK::Stub::AsyncGetGameServerRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::GameServer>::Create(channel_.get(), cq, rpcmethod_GetGameServer_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::GameServer>* SDK::Stub::PrepareAsyncGetGameServerRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::GameServer>::Create(channel_.get(), cq, rpcmethod_GetGameServer_, context, request, false); + auto* result = + this->PrepareAsyncGetGameServerRaw(context, request, cq); + result->StartCall(); + return result; } ::grpc::ClientReader< ::agones::dev::sdk::GameServer>* SDK::Stub::WatchGameServerRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request) { - return ::grpc_impl::internal::ClientReaderFactory< ::agones::dev::sdk::GameServer>::Create(channel_.get(), rpcmethod_WatchGameServer_, context, request); + return ::grpc::internal::ClientReaderFactory< ::agones::dev::sdk::GameServer>::Create(channel_.get(), rpcmethod_WatchGameServer_, context, request); } void SDK::Stub::experimental_async::WatchGameServer(::grpc::ClientContext* context, ::agones::dev::sdk::Empty* request, ::grpc::experimental::ClientReadReactor< ::agones::dev::sdk::GameServer>* reactor) { - ::grpc_impl::internal::ClientCallbackReaderFactory< ::agones::dev::sdk::GameServer>::Create(stub_->channel_.get(), stub_->rpcmethod_WatchGameServer_, context, request, reactor); + ::grpc::internal::ClientCallbackReaderFactory< ::agones::dev::sdk::GameServer>::Create(stub_->channel_.get(), stub_->rpcmethod_WatchGameServer_, context, request, reactor); } ::grpc::ClientAsyncReader< ::agones::dev::sdk::GameServer>* SDK::Stub::AsyncWatchGameServerRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc_impl::internal::ClientAsyncReaderFactory< ::agones::dev::sdk::GameServer>::Create(channel_.get(), cq, rpcmethod_WatchGameServer_, context, request, true, tag); + return ::grpc::internal::ClientAsyncReaderFactory< ::agones::dev::sdk::GameServer>::Create(channel_.get(), cq, rpcmethod_WatchGameServer_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::agones::dev::sdk::GameServer>* SDK::Stub::PrepareAsyncWatchGameServerRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncReaderFactory< ::agones::dev::sdk::GameServer>::Create(channel_.get(), cq, rpcmethod_WatchGameServer_, context, request, false, nullptr); + return ::grpc::internal::ClientAsyncReaderFactory< ::agones::dev::sdk::GameServer>::Create(channel_.get(), cq, rpcmethod_WatchGameServer_, context, request, false, nullptr); } ::grpc::Status SDK::Stub::SetLabel(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue& request, ::agones::dev::sdk::Empty* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetLabel_, context, request, response); + return ::grpc::internal::BlockingUnaryCall< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetLabel_, context, request, response); } void SDK::Stub::experimental_async::SetLabel(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetLabel_, context, request, response, std::move(f)); -} - -void SDK::Stub::experimental_async::SetLabel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetLabel_, context, request, response, std::move(f)); + ::grpc::internal::CallbackUnaryCall< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetLabel_, context, request, response, std::move(f)); } void SDK::Stub::experimental_async::SetLabel(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetLabel_, context, request, response, reactor); + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetLabel_, context, request, response, reactor); } -void SDK::Stub::experimental_async::SetLabel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetLabel_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncSetLabelRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::agones::dev::sdk::Empty, ::agones::dev::sdk::KeyValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetLabel_, context, request); } ::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::AsyncSetLabelRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_SetLabel_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncSetLabelRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_SetLabel_, context, request, false); + auto* result = + this->PrepareAsyncSetLabelRaw(context, request, cq); + result->StartCall(); + return result; } ::grpc::Status SDK::Stub::SetAnnotation(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue& request, ::agones::dev::sdk::Empty* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetAnnotation_, context, request, response); + return ::grpc::internal::BlockingUnaryCall< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetAnnotation_, context, request, response); } void SDK::Stub::experimental_async::SetAnnotation(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetAnnotation_, context, request, response, std::move(f)); -} - -void SDK::Stub::experimental_async::SetAnnotation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetAnnotation_, context, request, response, std::move(f)); + ::grpc::internal::CallbackUnaryCall< ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetAnnotation_, context, request, response, std::move(f)); } void SDK::Stub::experimental_async::SetAnnotation(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetAnnotation_, context, request, response, reactor); + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetAnnotation_, context, request, response, reactor); } -void SDK::Stub::experimental_async::SetAnnotation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetAnnotation_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncSetAnnotationRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::agones::dev::sdk::Empty, ::agones::dev::sdk::KeyValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetAnnotation_, context, request); } ::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::AsyncSetAnnotationRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_SetAnnotation_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncSetAnnotationRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::KeyValue& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_SetAnnotation_, context, request, false); + auto* result = + this->PrepareAsyncSetAnnotationRaw(context, request, cq); + result->StartCall(); + return result; } ::grpc::Status SDK::Stub::Reserve(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration& request, ::agones::dev::sdk::Empty* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Reserve_, context, request, response); + return ::grpc::internal::BlockingUnaryCall< ::agones::dev::sdk::Duration, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Reserve_, context, request, response); } void SDK::Stub::experimental_async::Reserve(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Reserve_, context, request, response, std::move(f)); -} - -void SDK::Stub::experimental_async::Reserve(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Reserve_, context, request, response, std::move(f)); + ::grpc::internal::CallbackUnaryCall< ::agones::dev::sdk::Duration, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Reserve_, context, request, response, std::move(f)); } void SDK::Stub::experimental_async::Reserve(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Reserve_, context, request, response, reactor); + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Reserve_, context, request, response, reactor); } -void SDK::Stub::experimental_async::Reserve(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::agones::dev::sdk::Empty* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Reserve_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncReserveRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::agones::dev::sdk::Empty, ::agones::dev::sdk::Duration, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Reserve_, context, request); } ::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::AsyncReserveRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Reserve_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::agones::dev::sdk::Empty>* SDK::Stub::PrepareAsyncReserveRaw(::grpc::ClientContext* context, const ::agones::dev::sdk::Duration& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::agones::dev::sdk::Empty>::Create(channel_.get(), cq, rpcmethod_Reserve_, context, request, false); + auto* result = + this->PrepareAsyncReserveRaw(context, request, cq); + result->StartCall(); + return result; } SDK::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( SDK_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( - std::mem_fn(&SDK::Service::Ready), this))); + new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SDK::Service* service, + ::grpc::ServerContext* ctx, + const ::agones::dev::sdk::Empty* req, + ::agones::dev::sdk::Empty* resp) { + return service->Ready(ctx, req, resp); + }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( SDK_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( - std::mem_fn(&SDK::Service::Allocate), this))); + new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SDK::Service* service, + ::grpc::ServerContext* ctx, + const ::agones::dev::sdk::Empty* req, + ::agones::dev::sdk::Empty* resp) { + return service->Allocate(ctx, req, resp); + }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( SDK_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( - std::mem_fn(&SDK::Service::Shutdown), this))); + new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SDK::Service* service, + ::grpc::ServerContext* ctx, + const ::agones::dev::sdk::Empty* req, + ::agones::dev::sdk::Empty* resp) { + return service->Shutdown(ctx, req, resp); + }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( SDK_method_names[3], ::grpc::internal::RpcMethod::CLIENT_STREAMING, new ::grpc::internal::ClientStreamingHandler< SDK::Service, ::agones::dev::sdk::Empty, ::agones::dev::sdk::Empty>( - std::mem_fn(&SDK::Service::Health), this))); + [](SDK::Service* service, + ::grpc::ServerContext* ctx, + ::grpc::ServerReader<::agones::dev::sdk::Empty>* reader, + ::agones::dev::sdk::Empty* resp) { + return service->Health(ctx, reader, resp); + }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( SDK_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>( - std::mem_fn(&SDK::Service::GetGameServer), this))); + new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SDK::Service* service, + ::grpc::ServerContext* ctx, + const ::agones::dev::sdk::Empty* req, + ::agones::dev::sdk::GameServer* resp) { + return service->GetGameServer(ctx, req, resp); + }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( SDK_method_names[5], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< SDK::Service, ::agones::dev::sdk::Empty, ::agones::dev::sdk::GameServer>( - std::mem_fn(&SDK::Service::WatchGameServer), this))); + [](SDK::Service* service, + ::grpc::ServerContext* ctx, + const ::agones::dev::sdk::Empty* req, + ::grpc::ServerWriter<::agones::dev::sdk::GameServer>* writer) { + return service->WatchGameServer(ctx, req, writer); + }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( SDK_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>( - std::mem_fn(&SDK::Service::SetLabel), this))); + new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SDK::Service* service, + ::grpc::ServerContext* ctx, + const ::agones::dev::sdk::KeyValue* req, + ::agones::dev::sdk::Empty* resp) { + return service->SetLabel(ctx, req, resp); + }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( SDK_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty>( - std::mem_fn(&SDK::Service::SetAnnotation), this))); + new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::KeyValue, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SDK::Service* service, + ::grpc::ServerContext* ctx, + const ::agones::dev::sdk::KeyValue* req, + ::agones::dev::sdk::Empty* resp) { + return service->SetAnnotation(ctx, req, resp); + }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( SDK_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::Duration, ::agones::dev::sdk::Empty>( - std::mem_fn(&SDK::Service::Reserve), this))); + new ::grpc::internal::RpcMethodHandler< SDK::Service, ::agones::dev::sdk::Duration, ::agones::dev::sdk::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SDK::Service* service, + ::grpc::ServerContext* ctx, + const ::agones::dev::sdk::Duration* req, + ::agones::dev::sdk::Empty* resp) { + return service->Reserve(ctx, req, resp); + }, this))); } SDK::Service::~Service() { diff --git a/sdks/cpp/src/agones/sdk.pb.cc b/sdks/cpp/src/agones/sdk.pb.cc index 3486852b5b..87a1357de1 100644 --- a/sdks/cpp/src/agones/sdk.pb.cc +++ b/sdks/cpp/src/agones/sdk.pb.cc @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -99,7 +99,6 @@ static void InitDefaultsscc_info_Duration_sdk_2eproto() { new (ptr) ::agones::dev::sdk::Duration(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::agones::dev::sdk::Duration::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Duration_sdk_2eproto = @@ -113,7 +112,6 @@ static void InitDefaultsscc_info_Empty_sdk_2eproto() { new (ptr) ::agones::dev::sdk::Empty(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::agones::dev::sdk::Empty::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Empty_sdk_2eproto = @@ -127,7 +125,6 @@ static void InitDefaultsscc_info_GameServer_sdk_2eproto() { new (ptr) ::agones::dev::sdk::GameServer(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::agones::dev::sdk::GameServer::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GameServer_sdk_2eproto = @@ -144,7 +141,6 @@ static void InitDefaultsscc_info_GameServer_ObjectMeta_sdk_2eproto() { new (ptr) ::agones::dev::sdk::GameServer_ObjectMeta(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::agones::dev::sdk::GameServer_ObjectMeta::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_GameServer_ObjectMeta_sdk_2eproto = @@ -159,7 +155,6 @@ static void InitDefaultsscc_info_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse void* ptr = &::agones::dev::sdk::_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_; new (ptr) ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(); } - ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_sdk_2eproto = @@ -172,7 +167,6 @@ static void InitDefaultsscc_info_GameServer_ObjectMeta_LabelsEntry_DoNotUse_sdk_ void* ptr = &::agones::dev::sdk::_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_; new (ptr) ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse(); } - ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameServer_ObjectMeta_LabelsEntry_DoNotUse_sdk_2eproto = @@ -186,7 +180,6 @@ static void InitDefaultsscc_info_GameServer_Spec_sdk_2eproto() { new (ptr) ::agones::dev::sdk::GameServer_Spec(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::agones::dev::sdk::GameServer_Spec::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GameServer_Spec_sdk_2eproto = @@ -201,7 +194,6 @@ static void InitDefaultsscc_info_GameServer_Spec_Health_sdk_2eproto() { new (ptr) ::agones::dev::sdk::GameServer_Spec_Health(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::agones::dev::sdk::GameServer_Spec_Health::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameServer_Spec_Health_sdk_2eproto = @@ -215,7 +207,6 @@ static void InitDefaultsscc_info_GameServer_Status_sdk_2eproto() { new (ptr) ::agones::dev::sdk::GameServer_Status(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::agones::dev::sdk::GameServer_Status::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_GameServer_Status_sdk_2eproto = @@ -231,7 +222,6 @@ static void InitDefaultsscc_info_GameServer_Status_PlayerStatus_sdk_2eproto() { new (ptr) ::agones::dev::sdk::GameServer_Status_PlayerStatus(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::agones::dev::sdk::GameServer_Status_PlayerStatus::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameServer_Status_PlayerStatus_sdk_2eproto = @@ -245,7 +235,6 @@ static void InitDefaultsscc_info_GameServer_Status_Port_sdk_2eproto() { new (ptr) ::agones::dev::sdk::GameServer_Status_Port(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::agones::dev::sdk::GameServer_Status_Port::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameServer_Status_Port_sdk_2eproto = @@ -259,7 +248,6 @@ static void InitDefaultsscc_info_KeyValue_sdk_2eproto() { new (ptr) ::agones::dev::sdk::KeyValue(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::agones::dev::sdk::KeyValue::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValue_sdk_2eproto = @@ -467,37 +455,34 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_sdk &scc_info_KeyValue_sdk_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_sdk_2eproto_once; -static bool descriptor_table_sdk_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_sdk_2eproto = { - &descriptor_table_sdk_2eproto_initialized, descriptor_table_protodef_sdk_2eproto, "sdk.proto", 1942, + false, false, descriptor_table_protodef_sdk_2eproto, "sdk.proto", 1942, &descriptor_table_sdk_2eproto_once, descriptor_table_sdk_2eproto_sccs, descriptor_table_sdk_2eproto_deps, 12, 1, schemas, file_default_instances, TableStruct_sdk_2eproto::offsets, file_level_metadata_sdk_2eproto, 12, file_level_enum_descriptors_sdk_2eproto, file_level_service_descriptors_sdk_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_sdk_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_sdk_2eproto), true); +static bool dynamic_init_dummy_sdk_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_sdk_2eproto)), true); namespace agones { namespace dev { namespace sdk { // =================================================================== -void Empty::InitAsDefaultInstance() { -} class Empty::_Internal { public: }; -Empty::Empty() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { +Empty::Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); - // @@protoc_insertion_point(constructor:agones.dev.sdk.Empty) + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.Empty) } Empty::Empty(const Empty& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.Empty) } @@ -507,11 +492,19 @@ void Empty::SharedCtor() { Empty::~Empty() { // @@protoc_insertion_point(destructor:agones.dev.sdk.Empty) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Empty::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); } +void Empty::ArenaDtor(void* object) { + Empty* _this = reinterpret_cast< Empty* >(object); + (void)_this; +} +void Empty::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void Empty::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -527,7 +520,7 @@ void Empty::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Empty::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { @@ -540,7 +533,9 @@ const char* Empty::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } // while @@ -560,7 +555,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Empty::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.Empty) return target; @@ -601,7 +596,7 @@ void Empty::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void Empty::MergeFrom(const Empty& from) { // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.Empty) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -627,7 +622,7 @@ bool Empty::IsInitialized() const { void Empty::InternalSwap(Empty* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); } ::PROTOBUF_NAMESPACE_ID::Metadata Empty::GetMetadata() const { @@ -637,28 +632,28 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Empty::GetMetadata() const { // =================================================================== -void KeyValue::InitAsDefaultInstance() { -} class KeyValue::_Internal { public: }; -KeyValue::KeyValue() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { +KeyValue::KeyValue(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); - // @@protoc_insertion_point(constructor:agones.dev.sdk.KeyValue) + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.KeyValue) } KeyValue::KeyValue(const KeyValue& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_key().empty()) { - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key(), + GetArena()); } value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_value().empty()) { - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_value(), + GetArena()); } // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.KeyValue) } @@ -672,13 +667,21 @@ void KeyValue::SharedCtor() { KeyValue::~KeyValue() { // @@protoc_insertion_point(destructor:agones.dev.sdk.KeyValue) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void KeyValue::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } +void KeyValue::ArenaDtor(void* object) { + KeyValue* _this = reinterpret_cast< KeyValue* >(object); + (void)_this; +} +void KeyValue::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void KeyValue::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -694,9 +697,9 @@ void KeyValue::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); + key_.ClearToEmpty(); + value_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* KeyValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { @@ -730,7 +733,9 @@ const char* KeyValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -772,7 +777,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* KeyValue::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.KeyValue) return target; @@ -827,17 +832,15 @@ void KeyValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void KeyValue::MergeFrom(const KeyValue& from) { // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.KeyValue) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.key().size() > 0) { - - key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_); + _internal_set_key(from._internal_key()); } if (from.value().size() > 0) { - - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); + _internal_set_value(from._internal_value()); } } @@ -861,11 +864,9 @@ bool KeyValue::IsInitialized() const { void KeyValue::InternalSwap(KeyValue* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata KeyValue::GetMetadata() const { @@ -875,21 +876,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata KeyValue::GetMetadata() const { // =================================================================== -void Duration::InitAsDefaultInstance() { -} class Duration::_Internal { public: }; -Duration::Duration() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { +Duration::Duration(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); - // @@protoc_insertion_point(constructor:agones.dev.sdk.Duration) + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.Duration) } Duration::Duration(const Duration& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); seconds_ = from.seconds_; // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.Duration) } @@ -901,11 +900,19 @@ void Duration::SharedCtor() { Duration::~Duration() { // @@protoc_insertion_point(destructor:agones.dev.sdk.Duration) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Duration::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); } +void Duration::ArenaDtor(void* object) { + Duration* _this = reinterpret_cast< Duration* >(object); + (void)_this; +} +void Duration::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void Duration::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -922,7 +929,7 @@ void Duration::Clear() { (void) cached_has_bits; seconds_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Duration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { @@ -935,7 +942,7 @@ const char* Duration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i // int64 seconds = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -945,7 +952,9 @@ const char* Duration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -973,7 +982,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Duration::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.Duration) return target; @@ -1021,7 +1030,7 @@ void Duration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void Duration::MergeFrom(const Duration& from) { // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.Duration) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1050,7 +1059,7 @@ bool Duration::IsInitialized() const { void Duration::InternalSwap(Duration* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(seconds_, other->seconds_); } @@ -1095,38 +1104,42 @@ void GameServer_ObjectMeta_LabelsEntry_DoNotUse::MergeFrom( // =================================================================== -void GameServer_ObjectMeta::InitAsDefaultInstance() { -} class GameServer_ObjectMeta::_Internal { public: }; -GameServer_ObjectMeta::GameServer_ObjectMeta() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { +GameServer_ObjectMeta::GameServer_ObjectMeta(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + annotations_(arena), + labels_(arena) { SharedCtor(); - // @@protoc_insertion_point(constructor:agones.dev.sdk.GameServer.ObjectMeta) + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.ObjectMeta) } GameServer_ObjectMeta::GameServer_ObjectMeta(const GameServer_ObjectMeta& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); annotations_.MergeFrom(from.annotations_); labels_.MergeFrom(from.labels_); name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_name().empty()) { - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), + GetArena()); } namespace__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_namespace_().empty()) { - namespace__.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.namespace__); + namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_namespace_(), + GetArena()); } uid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_uid().empty()) { - uid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.uid_); + uid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_uid(), + GetArena()); } resource_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_resource_version().empty()) { - resource_version_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_version_); + resource_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_resource_version(), + GetArena()); } ::memcpy(&generation_, &from.generation_, static_cast(reinterpret_cast(&deletion_timestamp_) - @@ -1140,23 +1153,32 @@ void GameServer_ObjectMeta::SharedCtor() { namespace__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); uid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); resource_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&generation_, 0, static_cast( - reinterpret_cast(&deletion_timestamp_) - + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&generation_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&deletion_timestamp_) - reinterpret_cast(&generation_)) + sizeof(deletion_timestamp_)); } GameServer_ObjectMeta::~GameServer_ObjectMeta() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.ObjectMeta) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void GameServer_ObjectMeta::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); namespace__.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); uid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); resource_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } +void GameServer_ObjectMeta::ArenaDtor(void* object) { + GameServer_ObjectMeta* _this = reinterpret_cast< GameServer_ObjectMeta* >(object); + (void)_this; +} +void GameServer_ObjectMeta::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void GameServer_ObjectMeta::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -1174,14 +1196,14 @@ void GameServer_ObjectMeta::Clear() { annotations_.Clear(); labels_.Clear(); - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - namespace__.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - uid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_version_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmpty(); + namespace__.ClearToEmpty(); + uid_.ClearToEmpty(); + resource_version_.ClearToEmpty(); ::memset(&generation_, 0, static_cast( reinterpret_cast(&deletion_timestamp_) - reinterpret_cast(&generation_)) + sizeof(deletion_timestamp_)); - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GameServer_ObjectMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { @@ -1230,21 +1252,21 @@ const char* GameServer_ObjectMeta::_InternalParse(const char* ptr, ::PROTOBUF_NA // int64 generation = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - generation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + generation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int64 creation_timestamp = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - creation_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + creation_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int64 deletion_timestamp = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - deletion_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + deletion_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -1278,7 +1300,9 @@ const char* GameServer_ObjectMeta::_InternalParse(const char* ptr, ::PROTOBUF_NA ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -1448,7 +1472,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* GameServer_ObjectMeta::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.ObjectMeta) return target; @@ -1556,27 +1580,23 @@ void GameServer_ObjectMeta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& fr void GameServer_ObjectMeta::MergeFrom(const GameServer_ObjectMeta& from) { // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.ObjectMeta) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; annotations_.MergeFrom(from.annotations_); labels_.MergeFrom(from.labels_); if (from.name().size() > 0) { - - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); + _internal_set_name(from._internal_name()); } if (from.namespace_().size() > 0) { - - namespace__.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.namespace__); + _internal_set_namespace_(from._internal_namespace_()); } if (from.uid().size() > 0) { - - uid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.uid_); + _internal_set_uid(from._internal_uid()); } if (from.resource_version().size() > 0) { - - resource_version_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_version_); + _internal_set_resource_version(from._internal_resource_version()); } if (from.generation() != 0) { _internal_set_generation(from._internal_generation()); @@ -1609,20 +1629,19 @@ bool GameServer_ObjectMeta::IsInitialized() const { void GameServer_ObjectMeta::InternalSwap(GameServer_ObjectMeta* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); annotations_.Swap(&other->annotations_); labels_.Swap(&other->labels_); - name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - namespace__.Swap(&other->namespace__, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - uid_.Swap(&other->uid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - resource_version_.Swap(&other->resource_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(generation_, other->generation_); - swap(creation_timestamp_, other->creation_timestamp_); - swap(deletion_timestamp_, other->deletion_timestamp_); + name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + namespace__.Swap(&other->namespace__, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + uid_.Swap(&other->uid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + resource_version_.Swap(&other->resource_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, deletion_timestamp_) + + sizeof(GameServer_ObjectMeta::deletion_timestamp_) + - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, generation_)>( + reinterpret_cast(&generation_), + reinterpret_cast(&other->generation_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GameServer_ObjectMeta::GetMetadata() const { @@ -1632,21 +1651,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GameServer_ObjectMeta::GetMetadata() const { // =================================================================== -void GameServer_Spec_Health::InitAsDefaultInstance() { -} class GameServer_Spec_Health::_Internal { public: }; -GameServer_Spec_Health::GameServer_Spec_Health() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { +GameServer_Spec_Health::GameServer_Spec_Health(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); - // @@protoc_insertion_point(constructor:agones.dev.sdk.GameServer.Spec.Health) + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Spec.Health) } GameServer_Spec_Health::GameServer_Spec_Health(const GameServer_Spec_Health& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&disabled_, &from.disabled_, static_cast(reinterpret_cast(&initial_delay_seconds_) - reinterpret_cast(&disabled_)) + sizeof(initial_delay_seconds_)); @@ -1654,19 +1671,28 @@ GameServer_Spec_Health::GameServer_Spec_Health(const GameServer_Spec_Health& fro } void GameServer_Spec_Health::SharedCtor() { - ::memset(&disabled_, 0, static_cast( - reinterpret_cast(&initial_delay_seconds_) - + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&disabled_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&initial_delay_seconds_) - reinterpret_cast(&disabled_)) + sizeof(initial_delay_seconds_)); } GameServer_Spec_Health::~GameServer_Spec_Health() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Spec.Health) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void GameServer_Spec_Health::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); } +void GameServer_Spec_Health::ArenaDtor(void* object) { + GameServer_Spec_Health* _this = reinterpret_cast< GameServer_Spec_Health* >(object); + (void)_this; +} +void GameServer_Spec_Health::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void GameServer_Spec_Health::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -1685,7 +1711,7 @@ void GameServer_Spec_Health::Clear() { ::memset(&disabled_, 0, static_cast( reinterpret_cast(&initial_delay_seconds_) - reinterpret_cast(&disabled_)) + sizeof(initial_delay_seconds_)); - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GameServer_Spec_Health::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { @@ -1698,28 +1724,28 @@ const char* GameServer_Spec_Health::_InternalParse(const char* ptr, ::PROTOBUF_N // bool disabled = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - disabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + disabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 period_seconds = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - period_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + period_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 failure_threshold = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - failure_threshold_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + failure_threshold_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 initial_delay_seconds = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - initial_delay_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + initial_delay_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -1729,7 +1755,9 @@ const char* GameServer_Spec_Health::_InternalParse(const char* ptr, ::PROTOBUF_N ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -1775,7 +1803,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* GameServer_Spec_Health::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Spec.Health) return target; @@ -1842,7 +1870,7 @@ void GameServer_Spec_Health::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& f void GameServer_Spec_Health::MergeFrom(const GameServer_Spec_Health& from) { // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Spec.Health) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1880,11 +1908,13 @@ bool GameServer_Spec_Health::IsInitialized() const { void GameServer_Spec_Health::InternalSwap(GameServer_Spec_Health* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(disabled_, other->disabled_); - swap(period_seconds_, other->period_seconds_); - swap(failure_threshold_, other->failure_threshold_); - swap(initial_delay_seconds_, other->initial_delay_seconds_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, initial_delay_seconds_) + + sizeof(GameServer_Spec_Health::initial_delay_seconds_) + - PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, disabled_)>( + reinterpret_cast(&disabled_), + reinterpret_cast(&other->disabled_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Spec_Health::GetMetadata() const { @@ -1894,10 +1924,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Spec_Health::GetMetadata() const { // =================================================================== -void GameServer_Spec::InitAsDefaultInstance() { - ::agones::dev::sdk::_GameServer_Spec_default_instance_._instance.get_mutable()->health_ = const_cast< ::agones::dev::sdk::GameServer_Spec_Health*>( - ::agones::dev::sdk::GameServer_Spec_Health::internal_default_instance()); -} class GameServer_Spec::_Internal { public: static const ::agones::dev::sdk::GameServer_Spec_Health& health(const GameServer_Spec* msg); @@ -1907,15 +1933,15 @@ const ::agones::dev::sdk::GameServer_Spec_Health& GameServer_Spec::_Internal::health(const GameServer_Spec* msg) { return *msg->health_; } -GameServer_Spec::GameServer_Spec() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { +GameServer_Spec::GameServer_Spec(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); - // @@protoc_insertion_point(constructor:agones.dev.sdk.GameServer.Spec) + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Spec) } GameServer_Spec::GameServer_Spec(const GameServer_Spec& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_health()) { health_ = new ::agones::dev::sdk::GameServer_Spec_Health(*from.health_); } else { @@ -1932,12 +1958,20 @@ void GameServer_Spec::SharedCtor() { GameServer_Spec::~GameServer_Spec() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Spec) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void GameServer_Spec::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete health_; } +void GameServer_Spec::ArenaDtor(void* object) { + GameServer_Spec* _this = reinterpret_cast< GameServer_Spec* >(object); + (void)_this; +} +void GameServer_Spec::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void GameServer_Spec::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -1953,11 +1987,11 @@ void GameServer_Spec::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && health_ != nullptr) { + if (GetArena() == nullptr && health_ != nullptr) { delete health_; } health_ = nullptr; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GameServer_Spec::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { @@ -1980,7 +2014,9 @@ const char* GameServer_Spec::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -2010,7 +2046,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* GameServer_Spec::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Spec) return target; @@ -2058,7 +2094,7 @@ void GameServer_Spec::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void GameServer_Spec::MergeFrom(const GameServer_Spec& from) { // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Spec) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2087,7 +2123,7 @@ bool GameServer_Spec::IsInitialized() const { void GameServer_Spec::InternalSwap(GameServer_Spec* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(health_, other->health_); } @@ -2098,24 +2134,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Spec::GetMetadata() const { // =================================================================== -void GameServer_Status_Port::InitAsDefaultInstance() { -} class GameServer_Status_Port::_Internal { public: }; -GameServer_Status_Port::GameServer_Status_Port() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { +GameServer_Status_Port::GameServer_Status_Port(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); - // @@protoc_insertion_point(constructor:agones.dev.sdk.GameServer.Status.Port) + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.Port) } GameServer_Status_Port::GameServer_Status_Port(const GameServer_Status_Port& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_name().empty()) { - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), + GetArena()); } port_ = from.port_; // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.Port) @@ -2130,12 +2165,20 @@ void GameServer_Status_Port::SharedCtor() { GameServer_Status_Port::~GameServer_Status_Port() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.Port) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void GameServer_Status_Port::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } +void GameServer_Status_Port::ArenaDtor(void* object) { + GameServer_Status_Port* _this = reinterpret_cast< GameServer_Status_Port* >(object); + (void)_this; +} +void GameServer_Status_Port::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void GameServer_Status_Port::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -2151,9 +2194,9 @@ void GameServer_Status_Port::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmpty(); port_ = 0; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GameServer_Status_Port::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { @@ -2175,7 +2218,7 @@ const char* GameServer_Status_Port::_InternalParse(const char* ptr, ::PROTOBUF_N // int32 port = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -2185,7 +2228,9 @@ const char* GameServer_Status_Port::_InternalParse(const char* ptr, ::PROTOBUF_N ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -2223,7 +2268,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* GameServer_Status_Port::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.Port) return target; @@ -2278,13 +2323,12 @@ void GameServer_Status_Port::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& f void GameServer_Status_Port::MergeFrom(const GameServer_Status_Port& from) { // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.Port) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.name().size() > 0) { - - name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); + _internal_set_name(from._internal_name()); } if (from.port() != 0) { _internal_set_port(from._internal_port()); @@ -2311,9 +2355,8 @@ bool GameServer_Status_Port::IsInitialized() const { void GameServer_Status_Port::InternalSwap(GameServer_Status_Port* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(port_, other->port_); } @@ -2324,22 +2367,21 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status_Port::GetMetadata() const { // =================================================================== -void GameServer_Status_PlayerStatus::InitAsDefaultInstance() { -} class GameServer_Status_PlayerStatus::_Internal { public: }; -GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { +GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + ids_(arena) { SharedCtor(); - // @@protoc_insertion_point(constructor:agones.dev.sdk.GameServer.Status.PlayerStatus) + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.PlayerStatus) } GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus(const GameServer_Status_PlayerStatus& from) : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), ids_(from.ids_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&count_, &from.count_, static_cast(reinterpret_cast(&capacity_) - reinterpret_cast(&count_)) + sizeof(capacity_)); @@ -2348,19 +2390,28 @@ GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus(const GameServer_ void GameServer_Status_PlayerStatus::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GameServer_Status_PlayerStatus_sdk_2eproto.base); - ::memset(&count_, 0, static_cast( - reinterpret_cast(&capacity_) - + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&count_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&capacity_) - reinterpret_cast(&count_)) + sizeof(capacity_)); } GameServer_Status_PlayerStatus::~GameServer_Status_PlayerStatus() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.PlayerStatus) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void GameServer_Status_PlayerStatus::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); } +void GameServer_Status_PlayerStatus::ArenaDtor(void* object) { + GameServer_Status_PlayerStatus* _this = reinterpret_cast< GameServer_Status_PlayerStatus* >(object); + (void)_this; +} +void GameServer_Status_PlayerStatus::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void GameServer_Status_PlayerStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -2380,7 +2431,7 @@ void GameServer_Status_PlayerStatus::Clear() { ::memset(&count_, 0, static_cast( reinterpret_cast(&capacity_) - reinterpret_cast(&count_)) + sizeof(capacity_)); - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GameServer_Status_PlayerStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { @@ -2393,14 +2444,14 @@ const char* GameServer_Status_PlayerStatus::_InternalParse(const char* ptr, ::PR // int64 count = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int64 capacity = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - capacity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + capacity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -2424,7 +2475,9 @@ const char* GameServer_Status_PlayerStatus::_InternalParse(const char* ptr, ::PR ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -2468,7 +2521,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* GameServer_Status_PlayerStatus::_InternalSeriali if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.PlayerStatus) return target; @@ -2531,7 +2584,7 @@ void GameServer_Status_PlayerStatus::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Me void GameServer_Status_PlayerStatus::MergeFrom(const GameServer_Status_PlayerStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.PlayerStatus) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2564,10 +2617,14 @@ bool GameServer_Status_PlayerStatus::IsInitialized() const { void GameServer_Status_PlayerStatus::InternalSwap(GameServer_Status_PlayerStatus* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); ids_.InternalSwap(&other->ids_); - swap(count_, other->count_); - swap(capacity_, other->capacity_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, capacity_) + + sizeof(GameServer_Status_PlayerStatus::capacity_) + - PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, count_)>( + reinterpret_cast(&count_), + reinterpret_cast(&other->count_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status_PlayerStatus::GetMetadata() const { @@ -2577,10 +2634,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status_PlayerStatus::GetMetadata() // =================================================================== -void GameServer_Status::InitAsDefaultInstance() { - ::agones::dev::sdk::_GameServer_Status_default_instance_._instance.get_mutable()->players_ = const_cast< ::agones::dev::sdk::GameServer_Status_PlayerStatus*>( - ::agones::dev::sdk::GameServer_Status_PlayerStatus::internal_default_instance()); -} class GameServer_Status::_Internal { public: static const ::agones::dev::sdk::GameServer_Status_PlayerStatus& players(const GameServer_Status* msg); @@ -2590,23 +2643,26 @@ const ::agones::dev::sdk::GameServer_Status_PlayerStatus& GameServer_Status::_Internal::players(const GameServer_Status* msg) { return *msg->players_; } -GameServer_Status::GameServer_Status() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { +GameServer_Status::GameServer_Status(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + ports_(arena) { SharedCtor(); - // @@protoc_insertion_point(constructor:agones.dev.sdk.GameServer.Status) + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status) } GameServer_Status::GameServer_Status(const GameServer_Status& from) : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), ports_(from.ports_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); state_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_state().empty()) { - state_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.state_); + state_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_state(), + GetArena()); } address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_address().empty()) { - address_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.address_); + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_address(), + GetArena()); } if (from._internal_has_players()) { players_ = new ::agones::dev::sdk::GameServer_Status_PlayerStatus(*from.players_); @@ -2626,14 +2682,22 @@ void GameServer_Status::SharedCtor() { GameServer_Status::~GameServer_Status() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void GameServer_Status::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); state_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete players_; } +void GameServer_Status::ArenaDtor(void* object) { + GameServer_Status* _this = reinterpret_cast< GameServer_Status* >(object); + (void)_this; +} +void GameServer_Status::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void GameServer_Status::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -2650,13 +2714,13 @@ void GameServer_Status::Clear() { (void) cached_has_bits; ports_.Clear(); - state_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - address_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && players_ != nullptr) { + state_.ClearToEmpty(); + address_.ClearToEmpty(); + if (GetArena() == nullptr && players_ != nullptr) { delete players_; } players_ = nullptr; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GameServer_Status::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { @@ -2709,7 +2773,9 @@ const char* GameServer_Status::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -2767,7 +2833,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* GameServer_Status::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status) return target; @@ -2836,18 +2902,16 @@ void GameServer_Status::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) void GameServer_Status::MergeFrom(const GameServer_Status& from) { // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; ports_.MergeFrom(from.ports_); if (from.state().size() > 0) { - - state_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.state_); + _internal_set_state(from._internal_state()); } if (from.address().size() > 0) { - - address_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.address_); + _internal_set_address(from._internal_address()); } if (from.has_players()) { _internal_mutable_players()->::agones::dev::sdk::GameServer_Status_PlayerStatus::MergeFrom(from._internal_players()); @@ -2874,12 +2938,10 @@ bool GameServer_Status::IsInitialized() const { void GameServer_Status::InternalSwap(GameServer_Status* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); ports_.InternalSwap(&other->ports_); - state_.Swap(&other->state_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - address_.Swap(&other->address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + state_.Swap(&other->state_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + address_.Swap(&other->address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(players_, other->players_); } @@ -2890,14 +2952,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status::GetMetadata() const { // =================================================================== -void GameServer::InitAsDefaultInstance() { - ::agones::dev::sdk::_GameServer_default_instance_._instance.get_mutable()->object_meta_ = const_cast< ::agones::dev::sdk::GameServer_ObjectMeta*>( - ::agones::dev::sdk::GameServer_ObjectMeta::internal_default_instance()); - ::agones::dev::sdk::_GameServer_default_instance_._instance.get_mutable()->spec_ = const_cast< ::agones::dev::sdk::GameServer_Spec*>( - ::agones::dev::sdk::GameServer_Spec::internal_default_instance()); - ::agones::dev::sdk::_GameServer_default_instance_._instance.get_mutable()->status_ = const_cast< ::agones::dev::sdk::GameServer_Status*>( - ::agones::dev::sdk::GameServer_Status::internal_default_instance()); -} class GameServer::_Internal { public: static const ::agones::dev::sdk::GameServer_ObjectMeta& object_meta(const GameServer* msg); @@ -2917,15 +2971,15 @@ const ::agones::dev::sdk::GameServer_Status& GameServer::_Internal::status(const GameServer* msg) { return *msg->status_; } -GameServer::GameServer() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { +GameServer::GameServer(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); - // @@protoc_insertion_point(constructor:agones.dev.sdk.GameServer) + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer) } GameServer::GameServer(const GameServer& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_object_meta()) { object_meta_ = new ::agones::dev::sdk::GameServer_ObjectMeta(*from.object_meta_); } else { @@ -2946,22 +3000,31 @@ GameServer::GameServer(const GameServer& from) void GameServer::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GameServer_sdk_2eproto.base); - ::memset(&object_meta_, 0, static_cast( - reinterpret_cast(&status_) - + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&object_meta_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&status_) - reinterpret_cast(&object_meta_)) + sizeof(status_)); } GameServer::~GameServer() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void GameServer::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete object_meta_; if (this != internal_default_instance()) delete spec_; if (this != internal_default_instance()) delete status_; } +void GameServer::ArenaDtor(void* object) { + GameServer* _this = reinterpret_cast< GameServer* >(object); + (void)_this; +} +void GameServer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void GameServer::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -2977,19 +3040,19 @@ void GameServer::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && object_meta_ != nullptr) { + if (GetArena() == nullptr && object_meta_ != nullptr) { delete object_meta_; } object_meta_ = nullptr; - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + if (GetArena() == nullptr && spec_ != nullptr) { delete spec_; } spec_ = nullptr; - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + if (GetArena() == nullptr && status_ != nullptr) { delete status_; } status_ = nullptr; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GameServer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { @@ -3026,7 +3089,9 @@ const char* GameServer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -3072,7 +3137,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* GameServer::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer) return target; @@ -3134,7 +3199,7 @@ void GameServer::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void GameServer::MergeFrom(const GameServer& from) { // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3169,10 +3234,13 @@ bool GameServer::IsInitialized() const { void GameServer::InternalSwap(GameServer* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(object_meta_, other->object_meta_); - swap(spec_, other->spec_); - swap(status_, other->status_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameServer, status_) + + sizeof(GameServer::status_) + - PROTOBUF_FIELD_OFFSET(GameServer, object_meta_)>( + reinterpret_cast(&object_meta_), + reinterpret_cast(&other->object_meta_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GameServer::GetMetadata() const { @@ -3186,40 +3254,40 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GameServer::GetMetadata() const { } // namespace agones PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::agones::dev::sdk::Empty* Arena::CreateMaybeMessage< ::agones::dev::sdk::Empty >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::Empty >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::Empty >(arena); } template<> PROTOBUF_NOINLINE ::agones::dev::sdk::KeyValue* Arena::CreateMaybeMessage< ::agones::dev::sdk::KeyValue >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::KeyValue >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::KeyValue >(arena); } template<> PROTOBUF_NOINLINE ::agones::dev::sdk::Duration* Arena::CreateMaybeMessage< ::agones::dev::sdk::Duration >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::Duration >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::Duration >(arena); } template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse >(arena); } template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse >(arena); } template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_ObjectMeta* Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_ObjectMeta >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::GameServer_ObjectMeta >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_ObjectMeta >(arena); } template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Spec_Health* Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Spec_Health >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::GameServer_Spec_Health >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Spec_Health >(arena); } template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Spec* Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Spec >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::GameServer_Spec >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Spec >(arena); } template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Status_Port* Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Status_Port >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::GameServer_Status_Port >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Status_Port >(arena); } template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Status_PlayerStatus* Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Status_PlayerStatus >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::GameServer_Status_PlayerStatus >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Status_PlayerStatus >(arena); } template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Status* Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Status >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::GameServer_Status >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Status >(arena); } template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer* Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer >(Arena* arena) { - return Arena::CreateInternal< ::agones::dev::sdk::GameServer >(arena); + return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/sdks/cpp/src/google/annotations.pb.cc b/sdks/cpp/src/google/annotations.pb.cc index db55bd6dae..e37a2c96b5 100644 --- a/sdks/cpp/src/google/annotations.pb.cc +++ b/sdks/cpp/src/google/annotations.pb.cc @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -58,21 +58,20 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fapi_2fannotations_2eproto_sccs[1] = { }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fapi_2fannotations_2eproto_once; -static bool descriptor_table_google_2fapi_2fannotations_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fannotations_2eproto = { - &descriptor_table_google_2fapi_2fannotations_2eproto_initialized, descriptor_table_protodef_google_2fapi_2fannotations_2eproto, "google/api/annotations.proto", 290, + false, false, descriptor_table_protodef_google_2fapi_2fannotations_2eproto, "google/api/annotations.proto", 290, &descriptor_table_google_2fapi_2fannotations_2eproto_once, descriptor_table_google_2fapi_2fannotations_2eproto_sccs, descriptor_table_google_2fapi_2fannotations_2eproto_deps, 0, 2, schemas, file_default_instances, TableStruct_google_2fapi_2fannotations_2eproto::offsets, file_level_metadata_google_2fapi_2fannotations_2eproto, 0, file_level_enum_descriptors_google_2fapi_2fannotations_2eproto, file_level_service_descriptors_google_2fapi_2fannotations_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_google_2fapi_2fannotations_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fapi_2fannotations_2eproto), true); +static bool dynamic_init_dummy_google_2fapi_2fannotations_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fapi_2fannotations_2eproto)), true); namespace google { namespace api { ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false > - http(kHttpFieldNumber, *::google::api::HttpRule::internal_default_instance()); + http(kHttpFieldNumber, ::google::api::HttpRule::default_instance()); // @@protoc_insertion_point(namespace_scope) } // namespace api diff --git a/sdks/cpp/src/google/http.pb.cc b/sdks/cpp/src/google/http.pb.cc index 1426f56e07..a6febe2ab6 100644 --- a/sdks/cpp/src/google/http.pb.cc +++ b/sdks/cpp/src/google/http.pb.cc @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,12 +40,6 @@ class HttpDefaultTypeInternal { class HttpRuleDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr get_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr put_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr post_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delete__; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr patch_; - const ::google::api::CustomHttpPattern* custom_; } _HttpRule_default_instance_; class CustomHttpPatternDefaultTypeInternal { public: @@ -61,7 +55,6 @@ static void InitDefaultsscc_info_CustomHttpPattern_google_2fapi_2fhttp_2eproto() new (ptr) ::google::api::CustomHttpPattern(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::google::api::CustomHttpPattern::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CustomHttpPattern_google_2fapi_2fhttp_2eproto = @@ -75,7 +68,6 @@ static void InitDefaultsscc_info_Http_google_2fapi_2fhttp_2eproto() { new (ptr) ::google::api::Http(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::google::api::Http::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Http_google_2fapi_2fhttp_2eproto = @@ -90,7 +82,6 @@ static void InitDefaultsscc_info_HttpRule_google_2fapi_2fhttp_2eproto() { new (ptr) ::google::api::HttpRule(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::google::api::HttpRule::InitAsDefaultInstance(); } AGONES_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_HttpRule_google_2fapi_2fhttp_2eproto = @@ -115,12 +106,12 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fapi_2fhttp_2eproto::o PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _oneof_case_[0]), ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, selector_), - offsetof(::google::api::HttpRuleDefaultTypeInternal, get_), - offsetof(::google::api::HttpRuleDefaultTypeInternal, put_), - offsetof(::google::api::HttpRuleDefaultTypeInternal, post_), - offsetof(::google::api::HttpRuleDefaultTypeInternal, delete__), - offsetof(::google::api::HttpRuleDefaultTypeInternal, patch_), - offsetof(::google::api::HttpRuleDefaultTypeInternal, custom_), + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, body_), PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, response_body_), PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, additional_bindings_), @@ -169,35 +160,26 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_goo &scc_info_HttpRule_google_2fapi_2fhttp_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fapi_2fhttp_2eproto_once; -static bool descriptor_table_google_2fapi_2fhttp_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fhttp_2eproto = { - &descriptor_table_google_2fapi_2fhttp_2eproto_initialized, descriptor_table_protodef_google_2fapi_2fhttp_2eproto, "google/api/http.proto", 546, + false, false, descriptor_table_protodef_google_2fapi_2fhttp_2eproto, "google/api/http.proto", 546, &descriptor_table_google_2fapi_2fhttp_2eproto_once, descriptor_table_google_2fapi_2fhttp_2eproto_sccs, descriptor_table_google_2fapi_2fhttp_2eproto_deps, 3, 0, schemas, file_default_instances, TableStruct_google_2fapi_2fhttp_2eproto::offsets, file_level_metadata_google_2fapi_2fhttp_2eproto, 3, file_level_enum_descriptors_google_2fapi_2fhttp_2eproto, file_level_service_descriptors_google_2fapi_2fhttp_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_google_2fapi_2fhttp_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fapi_2fhttp_2eproto), true); +static bool dynamic_init_dummy_google_2fapi_2fhttp_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fapi_2fhttp_2eproto)), true); namespace google { namespace api { // =================================================================== -void Http::InitAsDefaultInstance() { -} class Http::_Internal { public: }; -Http::Http() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:google.api.Http) -} Http::Http(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(arena), + : ::PROTOBUF_NAMESPACE_ID::Message(arena), rules_(arena) { SharedCtor(); RegisterArenaDtor(arena); @@ -205,9 +187,8 @@ Http::Http(::PROTOBUF_NAMESPACE_ID::Arena* arena) } Http::Http(const Http& from) : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), rules_(from.rules_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); fully_decode_reserved_expansion_ = from.fully_decode_reserved_expansion_; // @@protoc_insertion_point(copy_constructor:google.api.Http) } @@ -220,10 +201,11 @@ void Http::SharedCtor() { Http::~Http() { // @@protoc_insertion_point(destructor:google.api.Http) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Http::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); + GOOGLE_DCHECK(GetArena() == nullptr); } void Http::ArenaDtor(void* object) { @@ -249,12 +231,11 @@ void Http::Clear() { rules_.Clear(); fully_decode_reserved_expansion_ = false; - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Http::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); @@ -275,7 +256,7 @@ const char* Http::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter // bool fully_decode_reserved_expansion = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - fully_decode_reserved_expansion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + fully_decode_reserved_expansion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -285,7 +266,9 @@ const char* Http::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -321,7 +304,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Http::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:google.api.Http) return target; @@ -374,7 +357,7 @@ void Http::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void Http::MergeFrom(const Http& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.api.Http) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -404,7 +387,7 @@ bool Http::IsInitialized() const { void Http::InternalSwap(Http* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); rules_.InternalSwap(&other->rules_); swap(fully_decode_reserved_expansion_, other->fully_decode_reserved_expansion_); } @@ -416,20 +399,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Http::GetMetadata() const { // =================================================================== -void HttpRule::InitAsDefaultInstance() { - ::google::api::_HttpRule_default_instance_.get_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::google::api::_HttpRule_default_instance_.put_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::google::api::_HttpRule_default_instance_.post_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::google::api::_HttpRule_default_instance_.delete__.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::google::api::_HttpRule_default_instance_.patch_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::google::api::_HttpRule_default_instance_.custom_ = const_cast< ::google::api::CustomHttpPattern*>( - ::google::api::CustomHttpPattern::internal_default_instance()); -} class HttpRule::_Internal { public: static const ::google::api::CustomHttpPattern& custom(const HttpRule* msg); @@ -440,7 +409,7 @@ HttpRule::_Internal::custom(const HttpRule* msg) { return *msg->pattern_.custom_; } void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* custom) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_pattern(); if (custom) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -454,14 +423,8 @@ void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* custom) { } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.custom) } -HttpRule::HttpRule() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:google.api.HttpRule) -} HttpRule::HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(arena), + : ::PROTOBUF_NAMESPACE_ID::Message(arena), additional_bindings_(arena) { SharedCtor(); RegisterArenaDtor(arena); @@ -469,23 +432,22 @@ HttpRule::HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena) } HttpRule::HttpRule(const HttpRule& from) : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), additional_bindings_(from.additional_bindings_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); selector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_selector().empty()) { - selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_selector(), - GetArenaNoVirtual()); + selector_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selector(), + GetArena()); } body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_body().empty()) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_body(), - GetArenaNoVirtual()); + body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_body(), + GetArena()); } response_body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_response_body().empty()) { - response_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_response_body(), - GetArenaNoVirtual()); + response_body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_response_body(), + GetArena()); } clear_has_pattern(); switch (from.pattern_case()) { @@ -531,10 +493,11 @@ void HttpRule::SharedCtor() { HttpRule::~HttpRule() { // @@protoc_insertion_point(destructor:google.api.HttpRule) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HttpRule::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); + GOOGLE_DCHECK(GetArena() == nullptr); selector_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); body_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); response_body_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -562,32 +525,27 @@ void HttpRule::clear_pattern() { // @@protoc_insertion_point(one_of_clear_start:google.api.HttpRule) switch (pattern_case()) { case kGet: { - pattern_.get_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + pattern_.get_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); break; } case kPut: { - pattern_.put_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + pattern_.put_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); break; } case kPost: { - pattern_.post_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + pattern_.post_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); break; } case kDelete: { - pattern_.delete__.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + pattern_.delete__.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); break; } case kPatch: { - pattern_.patch_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + pattern_.patch_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); break; } case kCustom: { - if (GetArenaNoVirtual() == nullptr) { + if (GetArena() == nullptr) { delete pattern_.custom_; } break; @@ -607,16 +565,15 @@ void HttpRule::Clear() { (void) cached_has_bits; additional_bindings_.Clear(); - selector_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - body_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - response_body_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + selector_.ClearToEmpty(); + body_.ClearToEmpty(); + response_body_.ClearToEmpty(); clear_pattern(); - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HttpRule::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); @@ -719,7 +676,9 @@ const char* HttpRule::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -837,7 +796,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* HttpRule::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:google.api.HttpRule) return target; @@ -953,7 +912,7 @@ void HttpRule::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void HttpRule::MergeFrom(const HttpRule& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpRule) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1018,14 +977,11 @@ bool HttpRule::IsInitialized() const { void HttpRule::InternalSwap(HttpRule* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); additional_bindings_.InternalSwap(&other->additional_bindings_); - selector_.Swap(&other->selector_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - body_.Swap(&other->body_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - response_body_.Swap(&other->response_body_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + selector_.Swap(&other->selector_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + body_.Swap(&other->body_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + response_body_.Swap(&other->response_body_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(pattern_, other->pattern_); swap(_oneof_case_[0], other->_oneof_case_[0]); } @@ -1037,37 +993,28 @@ ::PROTOBUF_NAMESPACE_ID::Metadata HttpRule::GetMetadata() const { // =================================================================== -void CustomHttpPattern::InitAsDefaultInstance() { -} class CustomHttpPattern::_Internal { public: }; -CustomHttpPattern::CustomHttpPattern() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:google.api.CustomHttpPattern) -} CustomHttpPattern::CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(arena) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:google.api.CustomHttpPattern) } CustomHttpPattern::CustomHttpPattern(const CustomHttpPattern& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); kind_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_kind().empty()) { - kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_kind(), - GetArenaNoVirtual()); + kind_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_kind(), + GetArena()); } path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_path().empty()) { - path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_path(), - GetArenaNoVirtual()); + path_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_path(), + GetArena()); } // @@protoc_insertion_point(copy_constructor:google.api.CustomHttpPattern) } @@ -1081,10 +1028,11 @@ void CustomHttpPattern::SharedCtor() { CustomHttpPattern::~CustomHttpPattern() { // @@protoc_insertion_point(destructor:google.api.CustomHttpPattern) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void CustomHttpPattern::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); + GOOGLE_DCHECK(GetArena() == nullptr); kind_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -1110,14 +1058,13 @@ void CustomHttpPattern::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - kind_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - path_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - _internal_metadata_.Clear(); + kind_.ClearToEmpty(); + path_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CustomHttpPattern::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); @@ -1147,7 +1094,9 @@ const char* CustomHttpPattern::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP ctx->SetLastTag(tag); goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); CHK_(ptr != nullptr); continue; } @@ -1189,7 +1138,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* CustomHttpPattern::_InternalSerialize( if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:google.api.CustomHttpPattern) return target; @@ -1244,7 +1193,7 @@ void CustomHttpPattern::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) void CustomHttpPattern::MergeFrom(const CustomHttpPattern& from) { // @@protoc_insertion_point(class_specific_merge_from_start:google.api.CustomHttpPattern) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1276,11 +1225,9 @@ bool CustomHttpPattern::IsInitialized() const { void CustomHttpPattern::InternalSwap(CustomHttpPattern* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - kind_.Swap(&other->kind_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - path_.Swap(&other->path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + kind_.Swap(&other->kind_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + path_.Swap(&other->path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata CustomHttpPattern::GetMetadata() const { diff --git a/sdks/csharp/sdk/generated/Alpha.cs b/sdks/csharp/sdk/generated/Alpha.cs index f1f5a6633e..b3c2e0d0cd 100644 --- a/sdks/csharp/sdk/generated/Alpha.cs +++ b/sdks/csharp/sdk/generated/Alpha.cs @@ -49,12 +49,12 @@ static AlphaReflection() { "ZWRCB1oFYWxwaGFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.Empty), global::Agones.Dev.Sdk.Alpha.Empty.Parser, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.Count), global::Agones.Dev.Sdk.Alpha.Count.Parser, new[]{ "Count_" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.Bool), global::Agones.Dev.Sdk.Alpha.Bool.Parser, new[]{ "Bool_" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.PlayerID), global::Agones.Dev.Sdk.Alpha.PlayerID.Parser, new[]{ "PlayerID_" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.PlayerIDList), global::Agones.Dev.Sdk.Alpha.PlayerIDList.Parser, new[]{ "List" }, null, null, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.Empty), global::Agones.Dev.Sdk.Alpha.Empty.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.Count), global::Agones.Dev.Sdk.Alpha.Count.Parser, new[]{ "Count_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.Bool), global::Agones.Dev.Sdk.Alpha.Bool.Parser, new[]{ "Bool_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.PlayerID), global::Agones.Dev.Sdk.Alpha.PlayerID.Parser, new[]{ "PlayerID_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.PlayerIDList), global::Agones.Dev.Sdk.Alpha.PlayerIDList.Parser, new[]{ "List" }, null, null, null, null) })); } #endregion @@ -64,7 +64,11 @@ static AlphaReflection() { /// /// I am Empty /// - public sealed partial class Empty : pb::IMessage { + public sealed partial class Empty : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Empty()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -129,11 +133,24 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; @@ -153,6 +170,9 @@ public void MergeFrom(Empty other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -161,14 +181,33 @@ public void MergeFrom(pb::CodedInputStream input) { break; } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } } + #endif } /// /// Store a count variable. /// - public sealed partial class Count : pb::IMessage { + public sealed partial class Count : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Count()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -247,6 +286,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Count_ != 0L) { output.WriteRawTag(8); output.WriteInt64(Count_); @@ -254,8 +296,22 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Count_ != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Count_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; @@ -281,6 +337,9 @@ public void MergeFrom(Count other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -293,14 +352,37 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Count_ = input.ReadInt64(); + break; + } + } + } + } + #endif + } /// /// Store a boolean result /// - public sealed partial class Bool : pb::IMessage { + public sealed partial class Bool : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Bool()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -379,6 +461,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Bool_ != false) { output.WriteRawTag(8); output.WriteBool(Bool_); @@ -386,8 +471,22 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Bool_ != false) { + output.WriteRawTag(8); + output.WriteBool(Bool_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; @@ -413,6 +512,9 @@ public void MergeFrom(Bool other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -425,14 +527,37 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Bool_ = input.ReadBool(); + break; + } + } + } } + #endif } /// /// The unique identifier for a given player. /// - public sealed partial class PlayerID : pb::IMessage { + public sealed partial class PlayerID : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerID()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -511,6 +636,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (PlayerID_.Length != 0) { output.WriteRawTag(10); output.WriteString(PlayerID_); @@ -518,7 +646,21 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PlayerID_.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PlayerID_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { @@ -545,6 +687,9 @@ public void MergeFrom(PlayerID other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -557,14 +702,37 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + PlayerID_ = input.ReadString(); + break; + } + } + } + } + #endif + } /// /// List of Player IDs /// - public sealed partial class PlayerIDList : pb::IMessage { + public sealed partial class PlayerIDList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerIDList()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -642,12 +810,26 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else list_.WriteTo(output, _repeated_list_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; @@ -669,6 +851,9 @@ public void MergeFrom(PlayerIDList other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -681,7 +866,26 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } } + #endif } diff --git a/sdks/csharp/sdk/generated/AlphaGrpc.cs b/sdks/csharp/sdk/generated/AlphaGrpc.cs index e51cd760d3..60e61d252c 100644 --- a/sdks/csharp/sdk/generated/AlphaGrpc.cs +++ b/sdks/csharp/sdk/generated/AlphaGrpc.cs @@ -30,11 +30,41 @@ public static partial class SDK { static readonly string __ServiceName = "agones.dev.sdk.alpha.SDK"; - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_PlayerID = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Agones.Dev.Sdk.Alpha.PlayerID.Parser.ParseFrom); - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_Bool = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Agones.Dev.Sdk.Alpha.Bool.Parser.ParseFrom); - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_Count = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Agones.Dev.Sdk.Alpha.Count.Parser.ParseFrom); - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Agones.Dev.Sdk.Alpha.Empty.Parser.ParseFrom); - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_PlayerIDList = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Agones.Dev.Sdk.Alpha.PlayerIDList.Parser.ParseFrom); + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_PlayerID = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.PlayerID.Parser)); + static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_Bool = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.Bool.Parser)); + static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_Count = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.Count.Parser)); + static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.Empty.Parser)); + static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_PlayerIDList = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.PlayerIDList.Parser)); static readonly grpc::Method __Method_PlayerConnect = new grpc::Method( grpc::MethodType.Unary, @@ -92,6 +122,7 @@ public static partial class SDK } /// Base class for server-side implementations of SDK + [grpc::BindServiceMethod(typeof(SDK), "BindService")] public abstract partial class SDKBase { /// @@ -217,7 +248,7 @@ public partial class SDKClient : grpc::ClientBase { /// Creates a new client for SDK /// The channel to use to make remote calls. - public SDKClient(grpc::Channel channel) : base(channel) + public SDKClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for SDK that uses a custom CallInvoker. diff --git a/sdks/csharp/sdk/generated/Sdk.cs b/sdks/csharp/sdk/generated/Sdk.cs index 2afa21ea31..b7c06a5dfe 100644 --- a/sdks/csharp/sdk/generated/Sdk.cs +++ b/sdks/csharp/sdk/generated/Sdk.cs @@ -70,14 +70,14 @@ static SdkReflection() { "BnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Empty), global::Agones.Dev.Sdk.Empty.Parser, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.KeyValue), global::Agones.Dev.Sdk.KeyValue.Parser, new[]{ "Key", "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Duration), global::Agones.Dev.Sdk.Duration.Parser, new[]{ "Seconds" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer), global::Agones.Dev.Sdk.GameServer.Parser, new[]{ "ObjectMeta", "Spec", "Status" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.ObjectMeta), global::Agones.Dev.Sdk.GameServer.Types.ObjectMeta.Parser, new[]{ "Name", "Namespace", "Uid", "ResourceVersion", "Generation", "CreationTimestamp", "DeletionTimestamp", "Annotations", "Labels" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Spec), global::Agones.Dev.Sdk.GameServer.Types.Spec.Parser, new[]{ "Health" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Spec.Types.Health), global::Agones.Dev.Sdk.GameServer.Types.Spec.Types.Health.Parser, new[]{ "Disabled", "PeriodSeconds", "FailureThreshold", "InitialDelaySeconds" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Status), global::Agones.Dev.Sdk.GameServer.Types.Status.Parser, new[]{ "State", "Address", "Ports", "Players" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Status.Types.Port), global::Agones.Dev.Sdk.GameServer.Types.Status.Types.Port.Parser, new[]{ "Name", "Port_" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Status.Types.PlayerStatus), global::Agones.Dev.Sdk.GameServer.Types.Status.Types.PlayerStatus.Parser, new[]{ "Count", "Capacity", "Ids" }, null, null, null)})}) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Empty), global::Agones.Dev.Sdk.Empty.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.KeyValue), global::Agones.Dev.Sdk.KeyValue.Parser, new[]{ "Key", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Duration), global::Agones.Dev.Sdk.Duration.Parser, new[]{ "Seconds" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer), global::Agones.Dev.Sdk.GameServer.Parser, new[]{ "ObjectMeta", "Spec", "Status" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.ObjectMeta), global::Agones.Dev.Sdk.GameServer.Types.ObjectMeta.Parser, new[]{ "Name", "Namespace", "Uid", "ResourceVersion", "Generation", "CreationTimestamp", "DeletionTimestamp", "Annotations", "Labels" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Spec), global::Agones.Dev.Sdk.GameServer.Types.Spec.Parser, new[]{ "Health" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Spec.Types.Health), global::Agones.Dev.Sdk.GameServer.Types.Spec.Types.Health.Parser, new[]{ "Disabled", "PeriodSeconds", "FailureThreshold", "InitialDelaySeconds" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Status), global::Agones.Dev.Sdk.GameServer.Types.Status.Parser, new[]{ "State", "Address", "Ports", "Players" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Status.Types.Port), global::Agones.Dev.Sdk.GameServer.Types.Status.Types.Port.Parser, new[]{ "Name", "Port_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Status.Types.PlayerStatus), global::Agones.Dev.Sdk.GameServer.Types.Status.Types.PlayerStatus.Parser, new[]{ "Count", "Capacity", "Ids" }, null, null, null, null)})}) })); } #endregion @@ -87,7 +87,11 @@ static SdkReflection() { /// /// I am Empty /// - public sealed partial class Empty : pb::IMessage { + public sealed partial class Empty : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Empty()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -152,11 +156,24 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; @@ -176,6 +193,9 @@ public void MergeFrom(Empty other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -184,14 +204,33 @@ public void MergeFrom(pb::CodedInputStream input) { break; } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } } + #endif } /// /// Key, Value entry /// - public sealed partial class KeyValue : pb::IMessage { + public sealed partial class KeyValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyValue()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -284,6 +323,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Key.Length != 0) { output.WriteRawTag(10); output.WriteString(Key); @@ -295,7 +337,25 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Key); + } + if (Value.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { @@ -328,6 +388,9 @@ public void MergeFrom(KeyValue other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -344,14 +407,41 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Key = input.ReadString(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } } + #endif } /// /// time duration, in seconds /// - public sealed partial class Duration : pb::IMessage { + public sealed partial class Duration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Duration()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -430,6 +520,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Seconds != 0L) { output.WriteRawTag(8); output.WriteInt64(Seconds); @@ -437,8 +530,22 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Seconds != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Seconds); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; @@ -464,6 +571,9 @@ public void MergeFrom(Duration other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -476,7 +586,26 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Seconds = input.ReadInt64(); + break; + } + } + } } + #endif } @@ -485,7 +614,11 @@ public void MergeFrom(pb::CodedInputStream input) { /// We will only export those resources that make the most /// sense. Can always expand to more as needed. /// - public sealed partial class GameServer : pb::IMessage { + public sealed partial class GameServer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GameServer()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -592,6 +725,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (objectMeta_ != null) { output.WriteRawTag(10); output.WriteMessage(ObjectMeta); @@ -607,8 +743,30 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (objectMeta_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ObjectMeta); + } + if (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (status_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Status); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; @@ -655,6 +813,9 @@ public void MergeFrom(GameServer other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -684,8 +845,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (objectMeta_ == null) { + ObjectMeta = new global::Agones.Dev.Sdk.GameServer.Types.ObjectMeta(); + } + input.ReadMessage(ObjectMeta); + break; + } + case 18: { + if (spec_ == null) { + Spec = new global::Agones.Dev.Sdk.GameServer.Types.Spec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + if (status_ == null) { + Status = new global::Agones.Dev.Sdk.GameServer.Types.Status(); + } + input.ReadMessage(Status); + break; + } + } + } + } + #endif + #region Nested types /// Container for nested types declared in the GameServer message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -693,7 +890,11 @@ public static partial class Types { /// /// representation of the K8s ObjectMeta resource /// - public sealed partial class ObjectMeta : pb::IMessage { + public sealed partial class ObjectMeta : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ObjectMeta()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -821,7 +1022,7 @@ public long DeletionTimestamp { /// Field number for the "annotations" field. public const int AnnotationsFieldNumber = 8; private static readonly pbc::MapField.Codec _map_annotations_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 66); + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66); private readonly pbc::MapField annotations_ = new pbc::MapField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::MapField Annotations { @@ -831,7 +1032,7 @@ public long DeletionTimestamp { /// Field number for the "labels" field. public const int LabelsFieldNumber = 9; private static readonly pbc::MapField.Codec _map_labels_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 74); + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 74); private readonly pbc::MapField labels_ = new pbc::MapField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::MapField Labels { @@ -888,6 +1089,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); @@ -921,7 +1125,47 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Namespace.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Namespace); + } + if (Uid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Uid); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ResourceVersion); + } + if (Generation != 0L) { + output.WriteRawTag(40); + output.WriteInt64(Generation); + } + if (CreationTimestamp != 0L) { + output.WriteRawTag(48); + output.WriteInt64(CreationTimestamp); + } + if (DeletionTimestamp != 0L) { + output.WriteRawTag(56); + output.WriteInt64(DeletionTimestamp); + } + annotations_.WriteTo(ref output, _map_annotations_codec); + labels_.WriteTo(ref output, _map_labels_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { @@ -988,6 +1232,9 @@ public void MergeFrom(ObjectMeta other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1032,11 +1279,66 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Namespace = input.ReadString(); + break; + } + case 26: { + Uid = input.ReadString(); + break; + } + case 34: { + ResourceVersion = input.ReadString(); + break; + } + case 40: { + Generation = input.ReadInt64(); + break; + } + case 48: { + CreationTimestamp = input.ReadInt64(); + break; + } + case 56: { + DeletionTimestamp = input.ReadInt64(); + break; + } + case 66: { + annotations_.AddEntriesFrom(ref input, _map_annotations_codec); + break; + } + case 74: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + } + } + } + #endif + } - public sealed partial class Spec : pb::IMessage { + public sealed partial class Spec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Spec()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1115,6 +1417,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (health_ != null) { output.WriteRawTag(10); output.WriteMessage(Health); @@ -1122,7 +1427,21 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (health_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Health); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { @@ -1152,6 +1471,9 @@ public void MergeFrom(Spec other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1167,13 +1489,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (health_ == null) { + Health = new global::Agones.Dev.Sdk.GameServer.Types.Spec.Types.Health(); + } + input.ReadMessage(Health); + break; + } + } + } + } + #endif + #region Nested types /// Container for nested types declared in the Spec message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { - public sealed partial class Health : pb::IMessage { + public sealed partial class Health : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Health()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1294,6 +1642,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Disabled != false) { output.WriteRawTag(8); output.WriteBool(Disabled); @@ -1313,7 +1664,33 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Disabled != false) { + output.WriteRawTag(8); + output.WriteBool(Disabled); + } + if (PeriodSeconds != 0) { + output.WriteRawTag(16); + output.WriteInt32(PeriodSeconds); + } + if (FailureThreshold != 0) { + output.WriteRawTag(24); + output.WriteInt32(FailureThreshold); + } + if (InitialDelaySeconds != 0) { + output.WriteRawTag(32); + output.WriteInt32(InitialDelaySeconds); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { @@ -1358,6 +1735,9 @@ public void MergeFrom(Health other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1382,8 +1762,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Disabled = input.ReadBool(); + break; + } + case 16: { + PeriodSeconds = input.ReadInt32(); + break; + } + case 24: { + FailureThreshold = input.ReadInt32(); + break; + } + case 32: { + InitialDelaySeconds = input.ReadInt32(); + break; + } + } + } + } + #endif + } } @@ -1391,7 +1802,11 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class Status : pb::IMessage { + public sealed partial class Status : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Status()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1515,6 +1930,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (State.Length != 0) { output.WriteRawTag(10); output.WriteString(State); @@ -1531,7 +1949,30 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (State.Length != 0) { + output.WriteRawTag(10); + output.WriteString(State); + } + if (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Address); + } + ports_.WriteTo(ref output, _repeated_ports_codec); + if (players_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Players); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { @@ -1575,6 +2016,9 @@ public void MergeFrom(Status other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1602,13 +2046,51 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + State = input.ReadString(); + break; + } + case 18: { + Address = input.ReadString(); + break; + } + case 26: { + ports_.AddEntriesFrom(ref input, _repeated_ports_codec); + break; + } + case 34: { + if (players_ == null) { + Players = new global::Agones.Dev.Sdk.GameServer.Types.Status.Types.PlayerStatus(); + } + input.ReadMessage(Players); + break; + } + } + } + } + #endif + #region Nested types /// Container for nested types declared in the Status message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { - public sealed partial class Port : pb::IMessage { + public sealed partial class Port : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Port()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1701,6 +2183,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); @@ -1712,8 +2197,26 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Port_ != 0) { + output.WriteRawTag(16); + output.WriteInt32(Port_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; @@ -1745,6 +2248,9 @@ public void MergeFrom(Port other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1761,7 +2267,30 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Port_ = input.ReadInt32(); + break; + } + } + } } + #endif } @@ -1769,7 +2298,11 @@ public void MergeFrom(pb::CodedInputStream input) { /// [Stage:Alpha] /// [FeatureFlag:PlayerTracking] /// - public sealed partial class PlayerStatus : pb::IMessage { + public sealed partial class PlayerStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerStatus()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1875,6 +2408,9 @@ public override string ToString() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Count != 0L) { output.WriteRawTag(8); output.WriteInt64(Count); @@ -1887,8 +2423,27 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Count != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Count); + } + if (Capacity != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Capacity); + } + ids_.WriteTo(ref output, _repeated_ids_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; @@ -1922,6 +2477,9 @@ public void MergeFrom(PlayerStatus other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1942,7 +2500,34 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Count = input.ReadInt64(); + break; + } + case 16: { + Capacity = input.ReadInt64(); + break; + } + case 26: { + ids_.AddEntriesFrom(ref input, _repeated_ids_codec); + break; + } + } + } } + #endif } diff --git a/sdks/csharp/sdk/generated/SdkGrpc.cs b/sdks/csharp/sdk/generated/SdkGrpc.cs index f9bbfd45b0..ad1e2e57d8 100644 --- a/sdks/csharp/sdk/generated/SdkGrpc.cs +++ b/sdks/csharp/sdk/generated/SdkGrpc.cs @@ -30,10 +30,40 @@ public static partial class SDK { static readonly string __ServiceName = "agones.dev.sdk.SDK"; - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Agones.Dev.Sdk.Empty.Parser.ParseFrom); - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_GameServer = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Agones.Dev.Sdk.GameServer.Parser.ParseFrom); - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_KeyValue = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Agones.Dev.Sdk.KeyValue.Parser.ParseFrom); - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_Duration = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Agones.Dev.Sdk.Duration.Parser.ParseFrom); + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Empty.Parser)); + static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_GameServer = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.GameServer.Parser)); + static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_KeyValue = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.KeyValue.Parser)); + static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_Duration = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Duration.Parser)); static readonly grpc::Method __Method_Ready = new grpc::Method( grpc::MethodType.Unary, @@ -105,6 +135,7 @@ public static partial class SDK } /// Base class for server-side implementations of SDK + [grpc::BindServiceMethod(typeof(SDK), "BindService")] public abstract partial class SDKBase { /// @@ -214,7 +245,7 @@ public partial class SDKClient : grpc::ClientBase { /// Creates a new client for SDK /// The channel to use to make remote calls. - public SDKClient(grpc::Channel channel) : base(channel) + public SDKClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for SDK that uses a custom CallInvoker. diff --git a/sdks/nodejs/lib/alpha/alpha_pb.js b/sdks/nodejs/lib/alpha/alpha_pb.js index 378b6654b0..840f08ed98 100644 --- a/sdks/nodejs/lib/alpha/alpha_pb.js +++ b/sdks/nodejs/lib/alpha/alpha_pb.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/sdks/nodejs/lib/alpha/google/api/annotations_pb.js b/sdks/nodejs/lib/alpha/google/api/annotations_pb.js index 8852d64eab..20a2d33cc3 100644 --- a/sdks/nodejs/lib/alpha/google/api/annotations_pb.js +++ b/sdks/nodejs/lib/alpha/google/api/annotations_pb.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/sdks/nodejs/lib/alpha/google/api/http_pb.js b/sdks/nodejs/lib/alpha/google/api/http_pb.js index b93aa17b4e..235e137c82 100644 --- a/sdks/nodejs/lib/alpha/google/api/http_pb.js +++ b/sdks/nodejs/lib/alpha/google/api/http_pb.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/sdks/nodejs/lib/google/api/annotations_pb.js b/sdks/nodejs/lib/google/api/annotations_pb.js index 8852d64eab..20a2d33cc3 100644 --- a/sdks/nodejs/lib/google/api/annotations_pb.js +++ b/sdks/nodejs/lib/google/api/annotations_pb.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/sdks/nodejs/lib/google/api/http_pb.js b/sdks/nodejs/lib/google/api/http_pb.js index b93aa17b4e..235e137c82 100644 --- a/sdks/nodejs/lib/google/api/http_pb.js +++ b/sdks/nodejs/lib/google/api/http_pb.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/sdks/nodejs/lib/sdk_pb.js b/sdks/nodejs/lib/sdk_pb.js index 665b4d4026..57ecdc84f9 100644 --- a/sdks/nodejs/lib/sdk_pb.js +++ b/sdks/nodejs/lib/sdk_pb.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC All Rights Reserved. +// Copyright 2022 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/sdks/rust/proto/allocation/allocation.proto b/sdks/rust/proto/allocation/allocation.proto index 79015130b2..9f4eff4c06 100644 --- a/sdks/rust/proto/allocation/allocation.proto +++ b/sdks/rust/proto/allocation/allocation.proto @@ -34,12 +34,16 @@ message AllocationRequest { // If specified, multi-cluster policies are applied. Otherwise, allocation will happen locally. MultiClusterSetting multiClusterSetting = 2; + // Deprecated: Please use gameServerSelectors instead. This field is ignored if the + // gameServerSelectors field is set // The required allocation. Defaults to all GameServers. - LabelSelector requiredGameServerSelector = 3; + GameServerSelector requiredGameServerSelector = 3 [deprecated = true]; + // Deprecated: Please use gameServerSelectors instead. This field is ignored if the + // gameServerSelectors field is set // The ordered list of preferred allocations out of the `required` set. // If the first selector is not matched, the selection attempts the second selector, and so on. - repeated LabelSelector preferredGameServerSelectors = 4; + repeated GameServerSelector preferredGameServerSelectors = 4 [deprecated = true]; // Scheduling strategy. Defaults to "Packed". SchedulingStrategy scheduling = 5; @@ -55,6 +59,12 @@ message AllocationRequest { // Metadata is optional custom metadata that is added to the game server at // allocation. You can use this to tell the server necessary session data MetaPatch metadata = 7; + + // Ordered list of GameServer label selectors. + // If the first selector is not matched, the selection attempts the second selector, and so on. + // This is useful for things like smoke testing of new game servers. + // Note: This field can only be set if neither Required or Preferred is set. + repeated GameServerSelector gameServerSelectors = 8; } message AllocationResponse { @@ -78,7 +88,7 @@ message MultiClusterSetting { // Selects multi-cluster allocation policies to apply. If not specified, all multi-cluster allocation policies are to be applied. LabelSelector policySelector = 2; } - + // MetaPatch is the metadata used to patch the GameServer metadata on allocation message MetaPatch { map labels = 1; @@ -88,5 +98,24 @@ message MetaPatch { // LabelSelector used for finding a GameServer with matching labels. message LabelSelector { // Labels to match. - map matchLabels = 1; -} \ No newline at end of file + map matchLabels = 1; +} + +// GameServerSelector used for finding a GameServer with matching filters. +message GameServerSelector { + // Labels to match. + map matchLabels = 1; + enum GameServerState { + READY = 0; + ALLOCATED = 1; + }; + GameServerState gameServerState = 2; + PlayerSelector players = 3; +} + +// PlayerSelector is filter for player capacity values. +// minAvailable should always be less or equal to maxAvailable. +message PlayerSelector { + uint64 minAvailable = 1; + uint64 maxAvailable = 2; +}