diff --git a/build/build-sdk-images/csharp/Dockerfile b/build/build-sdk-images/csharp/Dockerfile index b14a027392..ac22c4c7d9 100644 --- a/build/build-sdk-images/csharp/Dockerfile +++ b/build/build-sdk-images/csharp/Dockerfile @@ -31,7 +31,7 @@ RUN wget -q https://packages.microsoft.com/config/ubuntu/19.04/packages-microsof RUN apt-get update \ - && apt-get install -y dotnet-sdk-7.0 dotnet-sdk-3.1 + && apt-get install -y dotnet-sdk-7.0 # code generation scripts COPY *.sh /root/ diff --git a/build/build-sdk-images/csharp/gen.sh b/build/build-sdk-images/csharp/gen.sh index 0d3e250de0..d4c0fdfdd8 100644 --- a/build/build-sdk-images/csharp/gen.sh +++ b/build/build-sdk-images/csharp/gen.sh @@ -16,52 +16,37 @@ set -ex -header() { - cat /go/src/agones.dev/agones/build/boilerplate.go.txt "$1" | sponge "$1" -} +proto=/go/src/agones.dev/agones/proto +sdk=${proto}/sdk +googleapis=${proto}/googleapis +csharp_proto_file_output_dir=/go/src/agones.dev/agones/sdks/csharp/proto -sdk=/go/src/agones.dev/agones/proto/sdk -googleapis=/go/src/agones.dev/agones/proto/googleapis -protoc_intermediate=/go/src/agones.dev/agones/sdks/csharp/proto -protoc_destination=/go/src/agones.dev/agones/sdks/csharp/sdk/generated - -# Create temporary proto files -mkdir -p ${protoc_intermediate} -cp -r ${sdk} ${protoc_intermediate} +echo "Copying protobuffers to csharp sdk" +mkdir -p ${csharp_proto_file_output_dir} +cp -r ${sdk} ${csharp_proto_file_output_dir} +cp -r ${googleapis} ${csharp_proto_file_output_dir} # Remove protoc-gen-openapiv2 definitions because C# package doesn't support grpc-gateway -sed -i -e 's/import "protoc-gen-openapiv2\/options\/annotations.proto";//' ${protoc_intermediate}/sdk/sdk.proto -sed -i -e 's/option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {//' ${protoc_intermediate}/sdk/sdk.proto -sed -i -e 's/info: {//' ${protoc_intermediate}/sdk/sdk.proto -sed -i -e 's/title: "sdk.proto";//' ${protoc_intermediate}/sdk/sdk.proto -sed -i -z 's/version: "version not set";\n };//' ${protoc_intermediate}/sdk/sdk.proto -sed -i -e 's/schemes: HTTP;//' ${protoc_intermediate}/sdk/sdk.proto -sed -i -e 's/consumes: "application\/json";//' ${protoc_intermediate}/sdk/sdk.proto -sed -i -z 's/produces: "application\/json";\n};//' ${protoc_intermediate}/sdk/sdk.proto -sed -i -e 's/bool disabled = 1.*/bool disabled = 1;/' ${protoc_intermediate}/sdk/sdk.proto - -sed -i -e 's/import "protoc-gen-openapiv2\/options\/annotations.proto";//' ${protoc_intermediate}/sdk/alpha/alpha.proto -sed -i -e 's/option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {//' ${protoc_intermediate}/sdk/alpha/alpha.proto -sed -i -e 's/info: {//' ${protoc_intermediate}/sdk/alpha/alpha.proto -sed -i -e 's/title: "alpha.proto";//' ${protoc_intermediate}/sdk/alpha/alpha.proto -sed -i -z 's/version: "version not set";\n };//' ${protoc_intermediate}/sdk/alpha/alpha.proto -sed -i -e 's/schemes: HTTP;//' ${protoc_intermediate}/sdk/alpha/alpha.proto -sed -i -e 's/consumes: "application\/json";//' ${protoc_intermediate}/sdk/alpha/alpha.proto -sed -i -z 's/produces: "application\/json";\n};//' ${protoc_intermediate}/sdk/alpha/alpha.proto -sed -i -e 's/bool bool = 1.*/bool bool = 1;/' ${protoc_intermediate}/sdk/alpha/alpha.proto - -# Generate C# proto file like `Sdk.cs` -protoc -I ${googleapis} -I ${protoc_intermediate}/sdk --plugin=protoc-gen-grpc=`which grpc_csharp_plugin` --csharp_out=${protoc_destination} ${protoc_intermediate}/sdk/sdk.proto -protoc -I ${googleapis} -I ${protoc_intermediate}/sdk/alpha --plugin=protoc-gen-grpc=`which grpc_csharp_plugin` --csharp_out=${protoc_destination} ${protoc_intermediate}/sdk/alpha/alpha.proto - -# Generate grpc file like `SdkGrpc.cs` -protoc -I ${googleapis} -I ${protoc_intermediate}/sdk --plugin=protoc-gen-grpc=`which grpc_csharp_plugin` --grpc_out=${protoc_destination} ${protoc_intermediate}/sdk/sdk.proto -protoc -I ${googleapis} -I ${protoc_intermediate}/sdk/alpha --plugin=protoc-gen-grpc=`which grpc_csharp_plugin` --grpc_out=${protoc_destination} ${protoc_intermediate}/sdk/alpha/alpha.proto - -cd ${protoc_destination} -header Alpha.cs -header AlphaGrpc.cs -header Sdk.cs -header SdkGrpc.cs - -rm -rf ${protoc_intermediate} \ No newline at end of file +sed -i -e 's/import "protoc-gen-openapiv2\/options\/annotations.proto";//' ${csharp_proto_file_output_dir}/sdk/sdk.proto +sed -i -e 's/option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {//' ${csharp_proto_file_output_dir}/sdk/sdk.proto +sed -i -e 's/info: {//' ${csharp_proto_file_output_dir}/sdk/sdk.proto +sed -i -e 's/title: "sdk.proto";//' ${csharp_proto_file_output_dir}/sdk/sdk.proto +sed -i -z 's/version: "version not set";\n };//' ${csharp_proto_file_output_dir}/sdk/sdk.proto +sed -i -e 's/schemes: HTTP;//' ${csharp_proto_file_output_dir}/sdk/sdk.proto +sed -i -e 's/consumes: "application\/json";//' ${csharp_proto_file_output_dir}/sdk/sdk.proto +sed -i -z 's/produces: "application\/json";\n};//' ${csharp_proto_file_output_dir}/sdk/sdk.proto +sed -i -e 's/bool disabled = 1.*/bool disabled = 1;/' ${csharp_proto_file_output_dir}/sdk/sdk.proto +sed -i -e 's/^ *$//' ${csharp_proto_file_output_dir}/sdk/sdk.proto + +sed -i -e 's/import "protoc-gen-openapiv2\/options\/annotations.proto";//' ${csharp_proto_file_output_dir}/sdk/alpha/alpha.proto +sed -i -e 's/option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {//' ${csharp_proto_file_output_dir}/sdk/alpha/alpha.proto +sed -i -e 's/info: {//' ${csharp_proto_file_output_dir}/sdk/alpha/alpha.proto +sed -i -e 's/title: "alpha.proto";//' ${csharp_proto_file_output_dir}/sdk/alpha/alpha.proto +sed -i -z 's/version: "version not set";\n };//' ${csharp_proto_file_output_dir}/sdk/alpha/alpha.proto +sed -i -e 's/schemes: HTTP;//' ${csharp_proto_file_output_dir}/sdk/alpha/alpha.proto +sed -i -e 's/consumes: "application\/json";//' ${csharp_proto_file_output_dir}/sdk/alpha/alpha.proto +sed -i -z 's/produces: "application\/json";\n};//' ${csharp_proto_file_output_dir}/sdk/alpha/alpha.proto +sed -i -e 's/bool bool = 1.*/bool bool = 1;/' ${csharp_proto_file_output_dir}/sdk/alpha/alpha.proto +sed -i -e 's/^ *$//' ${csharp_proto_file_output_dir}/sdk/alpha/alpha.proto + +echo "csharp code is generated at build time" diff --git a/sdks/csharp/proto/googleapis/google/api/annotations.proto b/sdks/csharp/proto/googleapis/google/api/annotations.proto new file mode 100644 index 0000000000..85c361b47f --- /dev/null +++ b/sdks/csharp/proto/googleapis/google/api/annotations.proto @@ -0,0 +1,31 @@ +// Copyright (c) 2015, Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.api; + +import "google/api/http.proto"; +import "google/protobuf/descriptor.proto"; + +option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; +option java_multiple_files = true; +option java_outer_classname = "AnnotationsProto"; +option java_package = "com.google.api"; +option objc_class_prefix = "GAPI"; + +extend google.protobuf.MethodOptions { + // See `HttpRule`. + HttpRule http = 72295728; +} diff --git a/sdks/csharp/proto/googleapis/google/api/client.proto b/sdks/csharp/proto/googleapis/google/api/client.proto new file mode 100644 index 0000000000..227ccf3a53 --- /dev/null +++ b/sdks/csharp/proto/googleapis/google/api/client.proto @@ -0,0 +1,349 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.api; + +import "google/api/launch_stage.proto"; +import "google/protobuf/descriptor.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; +option java_multiple_files = true; +option java_outer_classname = "ClientProto"; +option java_package = "com.google.api"; +option objc_class_prefix = "GAPI"; + +extend google.protobuf.MethodOptions { + // A definition of a client library method signature. + // + // In client libraries, each proto RPC corresponds to one or more methods + // which the end user is able to call, and calls the underlying RPC. + // Normally, this method receives a single argument (a struct or instance + // corresponding to the RPC request object). Defining this field will + // add one or more overloads providing flattened or simpler method signatures + // in some languages. + // + // The fields on the method signature are provided as a comma-separated + // string. + // + // For example, the proto RPC and annotation: + // + // rpc CreateSubscription(CreateSubscriptionRequest) + // returns (Subscription) { + // option (google.api.method_signature) = "name,topic"; + // } + // + // Would add the following Java overload (in addition to the method accepting + // the request object): + // + // public final Subscription createSubscription(String name, String topic) + // + // The following backwards-compatibility guidelines apply: + // + // * Adding this annotation to an unannotated method is backwards + // compatible. + // * Adding this annotation to a method which already has existing + // method signature annotations is backwards compatible if and only if + // the new method signature annotation is last in the sequence. + // * Modifying or removing an existing method signature annotation is + // a breaking change. + // * Re-ordering existing method signature annotations is a breaking + // change. + repeated string method_signature = 1051; +} + +extend google.protobuf.ServiceOptions { + // The hostname for this service. + // This should be specified with no prefix or protocol. + // + // Example: + // + // service Foo { + // option (google.api.default_host) = "foo.googleapi.com"; + // ... + // } + string default_host = 1049; + + // OAuth scopes needed for the client. + // + // Example: + // + // service Foo { + // option (google.api.oauth_scopes) = \ + // "https://www.googleapis.com/auth/cloud-platform"; + // ... + // } + // + // If there is more than one scope, use a comma-separated string: + // + // Example: + // + // service Foo { + // option (google.api.oauth_scopes) = \ + // "https://www.googleapis.com/auth/cloud-platform," + // "https://www.googleapis.com/auth/monitoring"; + // ... + // } + string oauth_scopes = 1050; +} + +// Required information for every language. +message CommonLanguageSettings { + // Link to automatically generated reference documentation. Example: + // https://cloud.google.com/nodejs/docs/reference/asset/latest + string reference_docs_uri = 1 [deprecated = true]; + + // The destination where API teams want this client library to be published. + repeated ClientLibraryDestination destinations = 2; +} + +// Details about how and where to publish client libraries. +message ClientLibrarySettings { + // Version of the API to apply these settings to. + string version = 1; + + // Launch stage of this version of the API. + LaunchStage launch_stage = 2; + + // When using transport=rest, the client request will encode enums as + // numbers rather than strings. + bool rest_numeric_enums = 3; + + // Settings for legacy Java features, supported in the Service YAML. + JavaSettings java_settings = 21; + + // Settings for C++ client libraries. + CppSettings cpp_settings = 22; + + // Settings for PHP client libraries. + PhpSettings php_settings = 23; + + // Settings for Python client libraries. + PythonSettings python_settings = 24; + + // Settings for Node client libraries. + NodeSettings node_settings = 25; + + // Settings for .NET client libraries. + DotnetSettings dotnet_settings = 26; + + // Settings for Ruby client libraries. + RubySettings ruby_settings = 27; + + // Settings for Go client libraries. + GoSettings go_settings = 28; +} + +// This message configures the settings for publishing [Google Cloud Client +// libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) +// generated from the service config. +message Publishing { + // A list of API method settings, e.g. the behavior for methods that use the + // long-running operation pattern. + repeated MethodSettings method_settings = 2; + + // Link to a place that API users can report issues. Example: + // https://issuetracker.google.com/issues/new?component=190865&template=1161103 + string new_issue_uri = 101; + + // Link to product home page. Example: + // https://cloud.google.com/asset-inventory/docs/overview + string documentation_uri = 102; + + // Used as a tracking tag when collecting data about the APIs developer + // relations artifacts like docs, packages delivered to package managers, + // etc. Example: "speech". + string api_short_name = 103; + + // GitHub label to apply to issues and pull requests opened for this API. + string github_label = 104; + + // GitHub teams to be added to CODEOWNERS in the directory in GitHub + // containing source code for the client libraries for this API. + repeated string codeowner_github_teams = 105; + + // A prefix used in sample code when demarking regions to be included in + // documentation. + string doc_tag_prefix = 106; + + // For whom the client library is being published. + ClientLibraryOrganization organization = 107; + + // Client library settings. If the same version string appears multiple + // times in this list, then the last one wins. Settings from earlier + // settings with the same version string are discarded. + repeated ClientLibrarySettings library_settings = 109; +} + +// Settings for Java client libraries. +message JavaSettings { + // The package name to use in Java. Clobbers the java_package option + // set in the protobuf. This should be used **only** by APIs + // who have already set the language_settings.java.package_name" field + // in gapic.yaml. API teams should use the protobuf java_package option + // where possible. + // + // Example of a YAML configuration:: + // + // publishing: + // java_settings: + // library_package: com.google.cloud.pubsub.v1 + string library_package = 1; + + // Configure the Java class name to use instead of the service's for its + // corresponding generated GAPIC client. Keys are fully-qualified + // service names as they appear in the protobuf (including the full + // the language_settings.java.interface_names" field in gapic.yaml. API + // teams should otherwise use the service name as it appears in the + // protobuf. + // + // Example of a YAML configuration:: + // + // publishing: + // java_settings: + // service_class_names: + // - google.pubsub.v1.Publisher: TopicAdmin + // - google.pubsub.v1.Subscriber: SubscriptionAdmin + map service_class_names = 2; + + // Some settings. + CommonLanguageSettings common = 3; +} + +// Settings for C++ client libraries. +message CppSettings { + // Some settings. + CommonLanguageSettings common = 1; +} + +// Settings for Php client libraries. +message PhpSettings { + // Some settings. + CommonLanguageSettings common = 1; +} + +// Settings for Python client libraries. +message PythonSettings { + // Some settings. + CommonLanguageSettings common = 1; +} + +// Settings for Node client libraries. +message NodeSettings { + // Some settings. + CommonLanguageSettings common = 1; +} + +// Settings for Dotnet client libraries. +message DotnetSettings { + // Some settings. + CommonLanguageSettings common = 1; +} + +// Settings for Ruby client libraries. +message RubySettings { + // Some settings. + CommonLanguageSettings common = 1; +} + +// Settings for Go client libraries. +message GoSettings { + // Some settings. + CommonLanguageSettings common = 1; +} + +// Describes the generator configuration for a method. +message MethodSettings { + // Describes settings to use when generating API methods that use the + // long-running operation pattern. + // All default values below are from those used in the client library + // generators (e.g. + // [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + message LongRunning { + // Initial delay after which the first poll request will be made. + // Default value: 5 seconds. + google.protobuf.Duration initial_poll_delay = 1; + + // Multiplier to gradually increase delay between subsequent polls until it + // reaches max_poll_delay. + // Default value: 1.5. + float poll_delay_multiplier = 2; + + // Maximum time between two subsequent poll requests. + // Default value: 45 seconds. + google.protobuf.Duration max_poll_delay = 3; + + // Total polling timeout. + // Default value: 5 minutes. + google.protobuf.Duration total_poll_timeout = 4; + } + + // The fully qualified name of the method, for which the options below apply. + // This is used to find the method to apply the options. + string selector = 1; + + // Describes settings to use for long-running operations when generating + // API methods for RPCs. Complements RPCs that use the annotations in + // google/longrunning/operations.proto. + // + // Example of a YAML configuration:: + // + // publishing: + // method_behavior: + // - selector: CreateAdDomain + // long_running: + // initial_poll_delay: + // seconds: 60 # 1 minute + // poll_delay_multiplier: 1.5 + // max_poll_delay: + // seconds: 360 # 6 minutes + // total_poll_timeout: + // seconds: 54000 # 90 minutes + LongRunning long_running = 2; +} + +// The organization for which the client libraries are being published. +// Affects the url where generated docs are published, etc. +enum ClientLibraryOrganization { + // Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; + + // Google Cloud Platform Org. + CLOUD = 1; + + // Ads (Advertising) Org. + ADS = 2; + + // Photos Org. + PHOTOS = 3; + + // Street View Org. + STREET_VIEW = 4; +} + +// To where should client libraries be published? +enum ClientLibraryDestination { + // Client libraries will neither be generated nor published to package + // managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; + + // Generate the client library in a repo under github.com/googleapis, + // but don't publish it to package managers. + GITHUB = 10; + + // Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20; +} diff --git a/sdks/csharp/proto/googleapis/google/api/field_behavior.proto b/sdks/csharp/proto/googleapis/google/api/field_behavior.proto new file mode 100644 index 0000000000..c4abe3b670 --- /dev/null +++ b/sdks/csharp/proto/googleapis/google/api/field_behavior.proto @@ -0,0 +1,90 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.api; + +import "google/protobuf/descriptor.proto"; + +option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; +option java_multiple_files = true; +option java_outer_classname = "FieldBehaviorProto"; +option java_package = "com.google.api"; +option objc_class_prefix = "GAPI"; + +extend google.protobuf.FieldOptions { + // A designation of a specific field behavior (required, output only, etc.) + // in protobuf messages. + // + // Examples: + // + // string name = 1 [(google.api.field_behavior) = REQUIRED]; + // State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // google.protobuf.Duration ttl = 1 + // [(google.api.field_behavior) = INPUT_ONLY]; + // google.protobuf.Timestamp expire_time = 1 + // [(google.api.field_behavior) = OUTPUT_ONLY, + // (google.api.field_behavior) = IMMUTABLE]; + repeated google.api.FieldBehavior field_behavior = 1052; +} + +// An indicator of the behavior of a given field (for example, that a field +// is required in requests, or given as output but ignored as input). +// This **does not** change the behavior in protocol buffers itself; it only +// denotes the behavior and may affect how API tooling handles the field. +// +// Note: This enum **may** receive new values in the future. +enum FieldBehavior { + // Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0; + + // Specifically denotes a field as optional. + // While all fields in protocol buffers are optional, this may be specified + // for emphasis if appropriate. + OPTIONAL = 1; + + // Denotes a field as required. + // This indicates that the field **must** be provided as part of the request, + // and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2; + + // Denotes a field as output only. + // This indicates that the field is provided in responses, but including the + // field in a request does nothing (the server *must* ignore it and + // *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3; + + // Denotes a field as input only. + // This indicates that the field is provided in requests, and the + // corresponding field is not included in output. + INPUT_ONLY = 4; + + // Denotes a field as immutable. + // This indicates that the field may be set once in a request to create a + // resource, but may not be changed thereafter. + IMMUTABLE = 5; + + // Denotes that a (repeated) field is an unordered list. + // This indicates that the service may provide the elements of the list + // in any arbitrary order, rather than the order the user originally + // provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6; + + // Denotes that this field returns a non-empty default value if not set. + // This indicates that if the user provides the empty value in a request, + // a non-empty value will be returned. The user will not be aware of what + // non-empty value to expect. + NON_EMPTY_DEFAULT = 7; +} diff --git a/sdks/csharp/proto/googleapis/google/api/http.proto b/sdks/csharp/proto/googleapis/google/api/http.proto new file mode 100644 index 0000000000..2bd3a19bfa --- /dev/null +++ b/sdks/csharp/proto/googleapis/google/api/http.proto @@ -0,0 +1,318 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.api; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; +option java_multiple_files = true; +option java_outer_classname = "HttpProto"; +option java_package = "com.google.api"; +option objc_class_prefix = "GAPI"; + + +// Defines the HTTP configuration for an API service. It contains a list of +// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method +// to one or more HTTP REST API methods. +message Http { + // A list of HTTP configuration rules that apply to individual API methods. + // + // **NOTE:** All service configuration rules follow "last one wins" order. + repeated HttpRule rules = 1; + + // When set to true, URL path parmeters will be fully URI-decoded except in + // cases of single segment matches in reserved expansion, where "%2F" will be + // left encoded. + // + // The default behavior is to not decode RFC 6570 reserved characters in multi + // segment matches. + bool fully_decode_reserved_expansion = 2; +} + +// `HttpRule` defines the mapping of an RPC method to one or more HTTP +// REST API methods. The mapping specifies how different portions of the RPC +// request message are mapped to URL path, URL query parameters, and +// HTTP request body. The mapping is typically specified as an +// `google.api.http` annotation on the RPC method, +// see "google/api/annotations.proto" for details. +// +// The mapping consists of a field specifying the path template and +// method kind. The path template can refer to fields in the request +// message, as in the example below which describes a REST GET +// operation on a resource collection of messages: +// +// +// service Messaging { +// rpc GetMessage(GetMessageRequest) returns (Message) { +// option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}"; +// } +// } +// message GetMessageRequest { +// message SubMessage { +// string subfield = 1; +// } +// string message_id = 1; // mapped to the URL +// SubMessage sub = 2; // `sub.subfield` is url-mapped +// } +// message Message { +// string text = 1; // content of the resource +// } +// +// The same http annotation can alternatively be expressed inside the +// `GRPC API Configuration` YAML file. +// +// http: +// rules: +// - selector: .Messaging.GetMessage +// get: /v1/messages/{message_id}/{sub.subfield} +// +// This definition enables an automatic, bidrectional mapping of HTTP +// JSON to RPC. Example: +// +// HTTP | RPC +// -----|----- +// `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))` +// +// In general, not only fields but also field paths can be referenced +// from a path pattern. Fields mapped to the path pattern cannot be +// repeated and must have a primitive (non-message) type. +// +// Any fields in the request message which are not bound by the path +// pattern automatically become (optional) HTTP query +// parameters. Assume the following definition of the request message: +// +// +// service Messaging { +// rpc GetMessage(GetMessageRequest) returns (Message) { +// option (google.api.http).get = "/v1/messages/{message_id}"; +// } +// } +// message GetMessageRequest { +// message SubMessage { +// string subfield = 1; +// } +// string message_id = 1; // mapped to the URL +// int64 revision = 2; // becomes a parameter +// SubMessage sub = 3; // `sub.subfield` becomes a parameter +// } +// +// +// This enables a HTTP JSON to RPC mapping as below: +// +// HTTP | RPC +// -----|----- +// `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))` +// +// Note that fields which are mapped to HTTP parameters must have a +// primitive type or a repeated primitive type. Message types are not +// allowed. In the case of a repeated type, the parameter can be +// repeated in the URL, as in `...?param=A¶m=B`. +// +// For HTTP method kinds which allow a request body, the `body` field +// specifies the mapping. Consider a REST update method on the +// message resource collection: +// +// +// service Messaging { +// rpc UpdateMessage(UpdateMessageRequest) returns (Message) { +// option (google.api.http) = { +// put: "/v1/messages/{message_id}" +// body: "message" +// }; +// } +// } +// message UpdateMessageRequest { +// string message_id = 1; // mapped to the URL +// Message message = 2; // mapped to the body +// } +// +// +// The following HTTP JSON to RPC mapping is enabled, where the +// representation of the JSON in the request body is determined by +// protos JSON encoding: +// +// HTTP | RPC +// -----|----- +// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })` +// +// The special name `*` can be used in the body mapping to define that +// every field not bound by the path template should be mapped to the +// request body. This enables the following alternative definition of +// the update method: +// +// service Messaging { +// rpc UpdateMessage(Message) returns (Message) { +// option (google.api.http) = { +// put: "/v1/messages/{message_id}" +// body: "*" +// }; +// } +// } +// message Message { +// string message_id = 1; +// string text = 2; +// } +// +// +// The following HTTP JSON to RPC mapping is enabled: +// +// HTTP | RPC +// -----|----- +// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")` +// +// Note that when using `*` in the body mapping, it is not possible to +// have HTTP parameters, as all fields not bound by the path end in +// the body. This makes this option more rarely used in practice of +// defining REST APIs. The common usage of `*` is in custom methods +// which don't use the URL at all for transferring data. +// +// It is possible to define multiple HTTP methods for one RPC by using +// the `additional_bindings` option. Example: +// +// service Messaging { +// rpc GetMessage(GetMessageRequest) returns (Message) { +// option (google.api.http) = { +// get: "/v1/messages/{message_id}" +// additional_bindings { +// get: "/v1/users/{user_id}/messages/{message_id}" +// } +// }; +// } +// } +// message GetMessageRequest { +// string message_id = 1; +// string user_id = 2; +// } +// +// +// This enables the following two alternative HTTP JSON to RPC +// mappings: +// +// HTTP | RPC +// -----|----- +// `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` +// `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")` +// +// # Rules for HTTP mapping +// +// The rules for mapping HTTP path, query parameters, and body fields +// to the request message are as follows: +// +// 1. The `body` field specifies either `*` or a field path, or is +// omitted. If omitted, it indicates there is no HTTP request body. +// 2. Leaf fields (recursive expansion of nested messages in the +// request) can be classified into three types: +// (a) Matched in the URL template. +// (b) Covered by body (if body is `*`, everything except (a) fields; +// else everything under the body field) +// (c) All other fields. +// 3. URL query parameters found in the HTTP request are mapped to (c) fields. +// 4. Any body sent with an HTTP request can contain only (b) fields. +// +// The syntax of the path template is as follows: +// +// Template = "/" Segments [ Verb ] ; +// Segments = Segment { "/" Segment } ; +// Segment = "*" | "**" | LITERAL | Variable ; +// Variable = "{" FieldPath [ "=" Segments ] "}" ; +// FieldPath = IDENT { "." IDENT } ; +// Verb = ":" LITERAL ; +// +// The syntax `*` matches a single path segment. The syntax `**` matches zero +// or more path segments, which must be the last part of the path except the +// `Verb`. The syntax `LITERAL` matches literal text in the path. +// +// The syntax `Variable` matches part of the URL path as specified by its +// template. A variable template must not contain other variables. If a variable +// matches a single path segment, its template may be omitted, e.g. `{var}` +// is equivalent to `{var=*}`. +// +// If a variable contains exactly one path segment, such as `"{var}"` or +// `"{var=*}"`, when such a variable is expanded into a URL path, all characters +// except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the +// Discovery Document as `{var}`. +// +// If a variable contains one or more path segments, such as `"{var=foo/*}"` +// or `"{var=**}"`, when such a variable is expanded into a URL path, all +// characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables +// show up in the Discovery Document as `{+var}`. +// +// NOTE: While the single segment variable matches the semantics of +// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 +// Simple String Expansion, the multi segment variable **does not** match +// RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion +// does not expand special characters like `?` and `#`, which would lead +// to invalid URLs. +// +// NOTE: the field paths in variables and in the `body` must not refer to +// repeated fields or map fields. +message HttpRule { + // Selects methods to which this rule applies. + // + // Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + string selector = 1; + + // Determines the URL pattern is matched by this rules. This pattern can be + // used with any of the {get|put|post|delete|patch} methods. A custom method + // can be defined using the 'custom' field. + oneof pattern { + // Used for listing and getting information about resources. + string get = 2; + + // Used for updating a resource. + string put = 3; + + // Used for creating a resource. + string post = 4; + + // Used for deleting a resource. + string delete = 5; + + // Used for updating a resource. + string patch = 6; + + // The custom pattern is used for specifying an HTTP method that is not + // included in the `pattern` field, such as HEAD, or "*" to leave the + // HTTP method unspecified for this rule. The wild-card rule is useful + // for services that provide content to Web (HTML) clients. + CustomHttpPattern custom = 8; + } + + // The name of the request field whose value is mapped to the HTTP body, or + // `*` for mapping all fields not captured by the path pattern to the HTTP + // body. NOTE: the referred field must not be a repeated field and must be + // present at the top-level of request message type. + string body = 7; + + // Optional. The name of the response field whose value is mapped to the HTTP + // body of response. Other response fields are ignored. When + // not set, the response message will be used as HTTP body of response. + string response_body = 12; + + // Additional HTTP bindings for the selector. Nested bindings must + // not contain an `additional_bindings` field themselves (that is, + // the nesting may only be one level deep). + repeated HttpRule additional_bindings = 11; +} + +// A custom pattern is used for defining custom HTTP verb. +message CustomHttpPattern { + // The name of this custom HTTP verb. + string kind = 1; + + // The path matched by this custom verb. + string path = 2; +} diff --git a/sdks/csharp/proto/googleapis/google/api/launch_stage.proto b/sdks/csharp/proto/googleapis/google/api/launch_stage.proto new file mode 100644 index 0000000000..6524db5756 --- /dev/null +++ b/sdks/csharp/proto/googleapis/google/api/launch_stage.proto @@ -0,0 +1,72 @@ +// Copyright 2015 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.api; + +option go_package = "google.golang.org/genproto/googleapis/api;api"; +option java_multiple_files = true; +option java_outer_classname = "LaunchStageProto"; +option java_package = "com.google.api"; +option objc_class_prefix = "GAPI"; + +// The launch stage as defined by [Google Cloud Platform +// Launch Stages](https://cloud.google.com/terms/launch-stages). +enum LaunchStage { + // Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0; + + // The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6; + + // Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7; + + // Early Access features are limited to a closed group of testers. To use + // these features, you must sign up in advance and sign a Trusted Tester + // agreement (which includes confidentiality provisions). These features may + // be unstable, changed in backward-incompatible ways, and are not + // guaranteed to be released. + EARLY_ACCESS = 1; + + // Alpha is a limited availability test for releases before they are cleared + // for widespread use. By Alpha, all significant design issues are resolved + // and we are in the process of verifying functionality. Alpha customers + // need to apply for access, agree to applicable terms, and have their + // projects allowlisted. Alpha releases don't have to be feature complete, + // no SLAs are provided, and there are no technical support obligations, but + // they will be far enough along that customers can actually use them in + // test environments or for limited-use tests -- just like they would in + // normal production cases. + ALPHA = 2; + + // Beta is the point at which we are ready to open a release for any + // customer to use. There are no SLA or technical support obligations in a + // Beta release. Products will be complete from a feature perspective, but + // may have some open outstanding issues. Beta releases are suitable for + // limited production use cases. + BETA = 3; + + // GA features are open to all developers and are considered stable and + // fully qualified for production use. + GA = 4; + + // Deprecated features are scheduled to be shut down and removed. For more + // information, see the "Deprecation Policy" section of our [Terms of + // Service](https://cloud.google.com/terms/) + // and the [Google Cloud Platform Subject to the Deprecation + // Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5; +} diff --git a/sdks/csharp/proto/googleapis/google/api/resource.proto b/sdks/csharp/proto/googleapis/google/api/resource.proto new file mode 100644 index 0000000000..0ce0344f57 --- /dev/null +++ b/sdks/csharp/proto/googleapis/google/api/resource.proto @@ -0,0 +1,238 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.api; + +import "google/protobuf/descriptor.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; +option java_multiple_files = true; +option java_outer_classname = "ResourceProto"; +option java_package = "com.google.api"; +option objc_class_prefix = "GAPI"; + +extend google.protobuf.FieldOptions { + // An annotation that describes a resource reference, see + // [ResourceReference][]. + google.api.ResourceReference resource_reference = 1055; +} + +extend google.protobuf.FileOptions { + // An annotation that describes a resource definition without a corresponding + // message; see [ResourceDescriptor][]. + repeated google.api.ResourceDescriptor resource_definition = 1053; +} + +extend google.protobuf.MessageOptions { + // An annotation that describes a resource definition, see + // [ResourceDescriptor][]. + google.api.ResourceDescriptor resource = 1053; +} + +// A simple descriptor of a resource type. +// +// ResourceDescriptor annotates a resource message (either by means of a +// protobuf annotation or use in the service config), and associates the +// resource's schema, the resource type, and the pattern of the resource name. +// +// Example: +// +// message Topic { +// // Indicates this message defines a resource schema. +// // Declares the resource type in the format of {service}/{kind}. +// // For Kubernetes resources, the format is {api group}/{kind}. +// option (google.api.resource) = { +// type: "pubsub.googleapis.com/Topic" +// pattern: "projects/{project}/topics/{topic}" +// }; +// } +// +// The ResourceDescriptor Yaml config will look like: +// +// resources: +// - type: "pubsub.googleapis.com/Topic" +// pattern: "projects/{project}/topics/{topic}" +// +// Sometimes, resources have multiple patterns, typically because they can +// live under multiple parents. +// +// Example: +// +// message LogEntry { +// option (google.api.resource) = { +// type: "logging.googleapis.com/LogEntry" +// pattern: "projects/{project}/logs/{log}" +// pattern: "folders/{folder}/logs/{log}" +// pattern: "organizations/{organization}/logs/{log}" +// pattern: "billingAccounts/{billing_account}/logs/{log}" +// }; +// } +// +// The ResourceDescriptor Yaml config will look like: +// +// resources: +// - type: 'logging.googleapis.com/LogEntry' +// pattern: "projects/{project}/logs/{log}" +// pattern: "folders/{folder}/logs/{log}" +// pattern: "organizations/{organization}/logs/{log}" +// pattern: "billingAccounts/{billing_account}/logs/{log}" +message ResourceDescriptor { + // A description of the historical or future-looking state of the + // resource pattern. + enum History { + // The "unset" value. + HISTORY_UNSPECIFIED = 0; + + // The resource originally had one pattern and launched as such, and + // additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1; + + // The resource has one pattern, but the API owner expects to add more + // later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + // that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2; + } + + // A flag representing a specific style that a resource claims to conform to. + enum Style { + // The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0; + + // This resource is intended to be "declarative-friendly". + // + // Declarative-friendly resources must be more strictly consistent, and + // setting this to true communicates to tools that this resource should + // adhere to declarative-friendly expectations. + // + // Note: This is used by the API linter (linter.aip.dev) to enable + // additional checks. + DECLARATIVE_FRIENDLY = 1; + } + + // The resource type. It must be in the format of + // {service_name}/{resource_type_kind}. The `resource_type_kind` must be + // singular and must not include version numbers. + // + // Example: `storage.googleapis.com/Bucket` + // + // The value of the resource_type_kind must follow the regular expression + // /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + // should use PascalCase (UpperCamelCase). The maximum number of + // characters allowed for the `resource_type_kind` is 100. + string type = 1; + + // Optional. The relative resource name pattern associated with this resource + // type. The DNS prefix of the full resource name shouldn't be specified here. + // + // The path pattern must follow the syntax, which aligns with HTTP binding + // syntax: + // + // Template = Segment { "/" Segment } ; + // Segment = LITERAL | Variable ; + // Variable = "{" LITERAL "}" ; + // + // Examples: + // + // - "projects/{project}/topics/{topic}" + // - "projects/{project}/knowledgeBases/{knowledge_base}" + // + // The components in braces correspond to the IDs for each resource in the + // hierarchy. It is expected that, if multiple patterns are provided, + // the same component name (e.g. "project") refers to IDs of the same + // type of resource. + repeated string pattern = 2; + + // Optional. The field on the resource that designates the resource name + // field. If omitted, this is assumed to be "name". + string name_field = 3; + + // Optional. The historical or future-looking state of the resource pattern. + // + // Example: + // + // // The InspectTemplate message originally only supported resource + // // names with organization, and project was added later. + // message InspectTemplate { + // option (google.api.resource) = { + // type: "dlp.googleapis.com/InspectTemplate" + // pattern: + // "organizations/{organization}/inspectTemplates/{inspect_template}" + // pattern: "projects/{project}/inspectTemplates/{inspect_template}" + // history: ORIGINALLY_SINGLE_PATTERN + // }; + // } + History history = 4; + + // The plural name used in the resource name and permission names, such as + // 'projects' for the resource name of 'projects/{project}' and the permission + // name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same + // concept of the `plural` field in k8s CRD spec + // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + // + // Note: The plural form is required even for singleton resources. See + // https://aip.dev/156 + string plural = 5; + + // The same concept of the `singular` field in k8s CRD spec + // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + // Such as "project" for the `resourcemanager.googleapis.com/Project` type. + string singular = 6; + + // Style flag(s) for this resource. + // These indicate that a resource is expected to conform to a given + // style. See the specific style flags for additional information. + repeated Style style = 10; +} + +// Defines a proto annotation that describes a string field that refers to +// an API resource. +message ResourceReference { + // The resource type that the annotated field references. + // + // Example: + // + // message Subscription { + // string topic = 2 [(google.api.resource_reference) = { + // type: "pubsub.googleapis.com/Topic" + // }]; + // } + // + // Occasionally, a field may reference an arbitrary resource. In this case, + // APIs use the special value * in their resource reference. + // + // Example: + // + // message GetIamPolicyRequest { + // string resource = 2 [(google.api.resource_reference) = { + // type: "*" + // }]; + // } + string type = 1; + + // The resource type of a child collection that the annotated field + // references. This is useful for annotating the `parent` field that + // doesn't have a fixed resource type. + // + // Example: + // + // message ListLogEntriesRequest { + // string parent = 1 [(google.api.resource_reference) = { + // child_type: "logging.googleapis.com/LogEntry" + // }; + // } + string child_type = 2; +} diff --git a/sdks/csharp/proto/sdk/alpha/alpha.proto b/sdks/csharp/proto/sdk/alpha/alpha.proto new file mode 100644 index 0000000000..a95b06e09f --- /dev/null +++ b/sdks/csharp/proto/sdk/alpha/alpha.proto @@ -0,0 +1,320 @@ +// Copyright 2020 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package agones.dev.sdk.alpha; +option go_package = "./alpha"; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/wrappers.proto"; + + + + + + + + + + +// SDK service to be used in the GameServer SDK to the Pod Sidecar. +service SDK { + // PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. + // + // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, + // unless there is already an update pending, in which case the update joins that batch operation. + // + // PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the + // list of connected playerIDs. + // + // If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of + // connected playerIDs will be left unchanged. + // + // An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for + // the server has been reached. The playerID will not be added to the list of playerIDs. + // + // Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count + // through the Kubernetes API, as indeterminate results will occur. + rpc PlayerConnect (PlayerID) returns (Bool) { + option (google.api.http) = { + post: "/alpha/player/connect" + body: "*" + }; + } + + // Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. + // + // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, + // unless there is already an update pending, in which case the update joins that batch operation. + // + // PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the + // playerID value exists within the list. + // + // If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list + // will be left unchanged. + // + // Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count + // through the Kubernetes API, as indeterminate results will occur. + rpc PlayerDisconnect (PlayerID) returns (Bool) { + option (google.api.http) = { + post: "/alpha/player/disconnect" + body: "*" + }; + } + + // Update the GameServer.Status.Players.Capacity value with a new capacity. + rpc SetPlayerCapacity (Count) returns (Empty) { + option (google.api.http) = { + put: "/alpha/player/capacity" + body: "*" + }; + } + + // Retrieves the current player capacity. This is always accurate from what has been set through this SDK, + // even if the value has yet to be updated on the GameServer status resource. + // + // If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. + rpc GetPlayerCapacity (Empty) returns (Count) { + option (google.api.http) = { + get: "/alpha/player/capacity" + }; + } + + // Retrieves the current player count. This is always accurate from what has been set through this SDK, + // even if the value has yet to be updated on the GameServer status resource. + // + // If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. + rpc GetPlayerCount (Empty) returns (Count) { + option (google.api.http) = { + get: "/alpha/player/count" + }; + } + + // Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, + // even if the value has yet to be updated on the GameServer status resource. + // + // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. + rpc IsPlayerConnected (PlayerID) returns (Bool) { + option (google.api.http) = { + get: "/alpha/player/connected/{playerID}" + }; + } + + // Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, + // even if the value has yet to be updated on the GameServer status resource. + // + // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. + rpc GetConnectedPlayers(Empty) returns (PlayerIDList) { + option (google.api.http) = { + get: "/alpha/player/connected" + }; + } + + // Gets a Counter. Returns NOT_FOUND if the Counter does not exist. + rpc GetCounter(GetCounterRequest) returns (Counter) { + option (google.api.http) = { + get: "/v1alpha1/{name=counters/*}" + }; + option (google.api.method_signature) = "name"; + } + + // UpdateCounter returns the updated Counter. Returns NOT_FOUND if the Counter does not exist (name cannot be updated). + // Returns OUT_OF_RANGE if the Count is out of range [0,Capacity]. + rpc UpdateCounter(UpdateCounterRequest) returns (Counter) { + option (google.api.http) = { + patch: "/v1alpha1/{counterUpdateRequest.name=counterUpdateRequests/*}" + body: "counterUpdateRequest" + }; + option (google.api.method_signature) = "counterUpdateRequest"; + } + + // Gets a List. Returns NOT_FOUND if the List does not exist. + rpc GetList(GetListRequest) returns (List) { + option (google.api.http) = { + get: "/v1alpha1/{name=lists/*}" + }; + option (google.api.method_signature) = "name"; + } + + // UpdateList returns the updated List. Returns NOT_FOUND if the List does not exist (name cannot be updated). + // **THIS WILL OVERWRITE ALL EXISTING LIST.VALUES WITH ANY REQUEST LIST.VALUES** + // Use AddListValue() or RemoveListValue() for modifying the List.Values field. + // Returns INVALID_ARGUMENT if the field mask path(s) are not field(s) of the List. + // If a field mask path(s) is specified, but the value is not set in the request List object, + // then the default value for the variable will be set (i.e. 0 for "capacity", empty list for "values"). + rpc UpdateList(UpdateListRequest) returns (List) { + option (google.api.http) = { + patch: "/v1alpha1/{list.name=lists/*}" + body: "list" + }; + option (google.api.method_signature) = "list,update_mask"; + } + + // Adds a value to a List and returns updated List. Returns NOT_FOUND if the List does not exist. + // Returns ALREADY_EXISTS if the value is already in the List. + // Returns OUT_OF_RANGE if the List is already at Capacity. + rpc AddListValue(AddListValueRequest) returns (List) { + option (google.api.http) = { + post: "/v1alpha1/{name=lists/*}:addValue" + body: "*" + }; + } + + // Removes a value from a List and returns updated List. Returns NOT_FOUND if the List does not exist. + // Returns NOT_FOUND if the value is not in the List. + rpc RemoveListValue(RemoveListValueRequest) returns (List) { + option (google.api.http) = { + post: "/v1alpha1/{name=lists/*}:removeValue" + body: "*" + }; + } +} + +// I am Empty +message Empty { +} + +// Store a count variable. +message Count { + int64 count = 1; +} + +// Store a boolean result +message Bool { + bool bool = 1; +} + +// The unique identifier for a given player. +message PlayerID { + string playerID = 1; +} + +// List of Player IDs +message PlayerIDList { + repeated string list = 1; +} + +// A representation of a Counter. +message Counter { + option (google.api.resource) = { + type: "agones.dev/Counter" + pattern: "counters/{counter}" + }; + // The name of the Counter + string name = 1; + // The current count of the Counter + int64 count = 2; + // The maximum capacity of the Counter + int64 capacity = 3; +} + +// A representation of a Counter Update Request. +message CounterUpdateRequest { + option (google.api.resource) = { + type: "agones.dev/CounterUpdateRequest" + pattern: "counterUpdateRequests/{counterUpdateRequest}" + }; + // The name of the Counter to update + string name = 1; + // The value to set the Counter Count + google.protobuf.Int64Value count = 2; + // The value to set the Counter Capacity + google.protobuf.Int64Value capacity = 3; + // countDiff tracks if a Counter Update Request is CountIncrement (positive), CountDecrement + // (negative), 0 if a CountSet or CapacitySet request + int64 countDiff = 4; +} + +message GetCounterRequest { + // The name of the Counter to get + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agones.dev/Counter" + }]; +} + +message UpdateCounterRequest { + // The requested update to make to the Counter + CounterUpdateRequest counterUpdateRequest = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agones.dev/CounterUpdateRequest" + }]; +} + +// A representation of a List. +message List { + option (google.api.resource) = { + type: "agones.dev/List" + pattern: "lists/{list}" + }; + // The name of the List + string name = 1; + // The maximum capacity of the List + int64 capacity = 2; + // The array of items in the List ["v1", "v2", …] + repeated string values = 3; +} + +message GetListRequest { + // The name of the List to get + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agones.dev/List" + }]; +} + +message UpdateListRequest { + // The List to update + List list = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agones.dev/List" + }]; + + // Required. Mask (list) of fields to update. + // Fields are specified relative to the List + // (e.g. `capacity`, `values`; *not* `List.capacity` or `List.values`). + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +message AddListValueRequest { + // The name of the List to add a value to. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agones.dev/List" + }]; + + string value = 2 [(google.api.field_behavior) = REQUIRED]; +} + +message RemoveListValueRequest { + // The name of the List to remove a value from. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agones.dev/List" + }]; + + string value = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/sdks/csharp/proto/sdk/beta/beta.proto b/sdks/csharp/proto/sdk/beta/beta.proto new file mode 100644 index 0000000000..d0ef73fc57 --- /dev/null +++ b/sdks/csharp/proto/sdk/beta/beta.proto @@ -0,0 +1,34 @@ +// Copyright 2020 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package agones.dev.sdk.beta; +option go_package = "./beta"; + +import "google/api/annotations.proto"; +import "protoc-gen-openapiv2/options/annotations.proto"; + +option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { + info: { + title: "beta.proto"; + version: "version not set"; + }; + schemes: HTTP; + consumes: "application/json"; + produces: "application/json"; +}; + +// SDK service to be used in the GameServer SDK to the Pod Sidecar +service SDK {} \ No newline at end of file diff --git a/sdks/csharp/proto/sdk/sdk.proto b/sdks/csharp/proto/sdk/sdk.proto new file mode 100644 index 0000000000..96d7fc9aa2 --- /dev/null +++ b/sdks/csharp/proto/sdk/sdk.proto @@ -0,0 +1,199 @@ +// Copyright 2017 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package agones.dev.sdk; +option go_package = "./sdk"; + +import "google/api/annotations.proto"; + + + + + + + + + + +// SDK service to be used in the GameServer SDK to the Pod Sidecar +service SDK { + // Call when the GameServer is ready + rpc Ready (Empty) returns (Empty) { + option (google.api.http) = { + post: "/ready" + body: "*" + }; + } + + // Call to self Allocation the GameServer + rpc Allocate(Empty) returns (Empty) { + option (google.api.http) = { + post: "/allocate" + body: "*" + }; + } + + // Call when the GameServer is shutting down + rpc Shutdown (Empty) returns (Empty) { + option (google.api.http) = { + post: "/shutdown" + body: "*" + }; + } + // Send a Empty every d Duration to declare that this GameSever is healthy + rpc Health (stream Empty) returns (Empty) { + option (google.api.http) = { + post: "/health" + body: "*" + }; + } + // Retrieve the current GameServer data + rpc GetGameServer (Empty) returns (GameServer) { + option (google.api.http) = { + get: "/gameserver" + }; + } + // Send GameServer details whenever the GameServer is updated + rpc WatchGameServer (Empty) returns (stream GameServer) { + option (google.api.http) = { + get: "/watch/gameserver" + }; + } + + // Apply a Label to the backing GameServer metadata + rpc SetLabel(KeyValue) returns (Empty) { + option (google.api.http) = { + put: "/metadata/label" + body: "*" + }; + } + + // Apply a Annotation to the backing GameServer metadata + rpc SetAnnotation(KeyValue) returns (Empty) { + option (google.api.http) = { + put: "/metadata/annotation" + body: "*" + }; + } + + // Marks the GameServer as the Reserved state for Duration + rpc Reserve(Duration) returns (Empty) { + option (google.api.http) = { + post: "/reserve" + body: "*" + }; + } +} + +// I am Empty +message Empty { +} + +// Key, Value entry +message KeyValue { + string key = 1; + string value = 2; +} + +// time duration, in seconds +message Duration { + int64 seconds = 1; +} + +// A GameServer Custom Resource Definition object +// We will only export those resources that make the most +// sense. Can always expand to more as needed. +message GameServer { + ObjectMeta object_meta = 1; + Spec spec = 2; + Status status = 3; + + // representation of the K8s ObjectMeta resource + message ObjectMeta { + string name = 1; + string namespace = 2; + string uid = 3; + string resource_version = 4; + int64 generation = 5; + // timestamp is in Epoch format, unit: seconds + int64 creation_timestamp = 6; + // optional deletion timestamp in Epoch format, unit: seconds + int64 deletion_timestamp = 7; + map annotations = 8; + map labels = 9; + } + + message Spec { + Health health = 1; + + message Health { + bool disabled = 1; + int32 period_seconds = 2; + int32 failure_threshold = 3; + int32 initial_delay_seconds = 4; + } + } + + message Status { + message Address { + string type = 1; + string address = 2; + } + + message Port { + string name = 1; + int32 port = 2; + } + // [Stage:Alpha] + // [FeatureFlag:PlayerTracking] + message PlayerStatus { + int64 count = 1; + int64 capacity = 2; + repeated string ids = 3; + } + + // [Stage:Alpha] + // [FeatureFlag:CountsAndLists] + message CounterStatus { + int64 count = 1; + int64 capacity = 2; + } + + // [Stage:Alpha] + // [FeatureFlag:CountsAndLists] + message ListStatus { + int64 capacity = 1; + repeated string values = 2; + } + + string state = 1; + string address = 2; + repeated Address addresses = 7; + repeated Port ports = 3; + + // [Stage:Alpha] + // [FeatureFlag:PlayerTracking] + PlayerStatus players = 4; + + // [Stage:Alpha] + // [FeatureFlag:CountsAndLists] + map counters = 5; + + // [Stage:Alpha] + // [FeatureFlag:CountsAndLists] + map lists = 6; + } +} diff --git a/sdks/csharp/sdk/AgonesSDK.cs b/sdks/csharp/sdk/AgonesSDK.cs index 3f41a192ca..c66d187d96 100644 --- a/sdks/csharp/sdk/AgonesSDK.cs +++ b/sdks/csharp/sdk/AgonesSDK.cs @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. using Agones.Dev.Sdk; -using Grpc.Core; using Microsoft.Extensions.Logging; using System; using System.Threading; using System.Threading.Tasks; +using Grpc.Core; +using Grpc.Net.Client; [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Agones.Test")] namespace Agones @@ -33,8 +34,8 @@ public sealed class AgonesSDK : IAgonesSDK internal SDK.SDKClient client; internal readonly Alpha alpha; - internal readonly Channel channel; - internal AsyncClientStreamingCall healthStream; + internal readonly GrpcChannel channel; + internal AsyncClientStreamingCall healthStream; internal readonly CancellationTokenSource cts; internal readonly bool ownsCts; internal CancellationToken ctoken; @@ -74,7 +75,10 @@ public sealed class AgonesSDK : IAgonesSDK } ctoken = cts.Token; - channel = new Channel(Host, Port, ChannelCredentials.Insecure); + channel = GrpcChannel.ForAddress( + $"http://{Host}:{Port}" + ); + client = sdkClient ?? new SDK.SDKClient(channel); alpha = new Alpha(channel, requestTimeoutSec, cancellationTokenSource, logger); } @@ -91,16 +95,11 @@ public IAgonesAlphaSDK Alpha() /// /// Connect the underlying gRPC channel. /// - /// True if successful + /// Always return true + [Obsolete("No need to call ConnectAsync anymore")] public async Task ConnectAsync() { - await channel.ConnectAsync(DateTime.UtcNow.AddSeconds(RequestTimeoutSec)); - if (channel.State == ChannelState.Ready) - { - return true; - } - LogError($"Could not connect to the sidecar at {Host}:{Port}. Exited with connection state: {channel.State}."); - return false; + return true; } /// @@ -387,6 +386,8 @@ public void Dispose() cts.Dispose(); } + channel.Dispose(); + // Since we don't provide any facility to unregister a WatchGameServer callback, set the event to null to // clear its underlying invocation list, so we don't keep holding references to objects that would prevent // them to be GC'd in case we don't go out of scope. diff --git a/sdks/csharp/sdk/Alpha.cs b/sdks/csharp/sdk/Alpha.cs index 01cba701fe..29b0fa0f6d 100644 --- a/sdks/csharp/sdk/Alpha.cs +++ b/sdks/csharp/sdk/Alpha.cs @@ -19,6 +19,7 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; +using Grpc.Net.Client; [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Agones.Test")] namespace Agones @@ -32,7 +33,6 @@ public sealed class Alpha : IAgonesAlphaSDK public double RequestTimeoutSec { get; set; } internal SDK.SDKClient client; - internal readonly Channel channel; internal readonly IClientStreamWriter healthStream; internal readonly CancellationTokenSource cts; internal readonly bool ownsCts; @@ -42,7 +42,7 @@ public sealed class Alpha : IAgonesAlphaSDK private bool _disposed; public Alpha( - Channel channel, + GrpcChannel channel, double requestTimeoutSec = 15, CancellationTokenSource cancellationTokenSource = null, ILogger logger = null) @@ -62,7 +62,6 @@ public sealed class Alpha : IAgonesAlphaSDK } ctoken = cts.Token; - this.channel = channel; client = new SDK.SDKClient(channel); } diff --git a/sdks/csharp/sdk/csharp-sdk.csproj b/sdks/csharp/sdk/csharp-sdk.csproj index 9ebecdab4d..2320aceadd 100644 --- a/sdks/csharp/sdk/csharp-sdk.csproj +++ b/sdks/csharp/sdk/csharp-sdk.csproj @@ -20,18 +20,17 @@ - - - - - + + + + all runtime; build; native; contentfiles; analyzers - - + + diff --git a/sdks/csharp/sdk/generated/Alpha.cs b/sdks/csharp/sdk/generated/Alpha.cs deleted file mode 100644 index 609d429bc1..0000000000 --- a/sdks/csharp/sdk/generated/Alpha.cs +++ /dev/null @@ -1,3216 +0,0 @@ -// Copyright 2023 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. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: alpha.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Agones.Dev.Sdk.Alpha { - - /// Holder for reflection information generated from alpha.proto - public static partial class AlphaReflection { - - #region Descriptor - /// File descriptor for alpha.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AlphaReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CgthbHBoYS5wcm90bxIUYWdvbmVzLmRldi5zZGsuYWxwaGEaHGdvb2dsZS9h", - "cGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3Rv", - "Gh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBp", - "L3Jlc291cmNlLnByb3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8a", - "IGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3RvGh5nb29nbGUvcHJv", - "dG9idWYvd3JhcHBlcnMucHJvdG8iBwoFRW1wdHkiFgoFQ291bnQSDQoFY291", - "bnQYASABKAMiFAoEQm9vbBIMCgRib29sGAEgASgIIhwKCFBsYXllcklEEhAK", - "CHBsYXllcklEGAEgASgJIhwKDFBsYXllcklETGlzdBIMCgRsaXN0GAEgAygJ", - "ImUKB0NvdW50ZXISDAoEbmFtZRgBIAEoCRINCgVjb3VudBgCIAEoAxIQCghj", - "YXBhY2l0eRgDIAEoAzor6kEoChJhZ29uZXMuZGV2L0NvdW50ZXISEmNvdW50", - "ZXJzL3tjb3VudGVyfSLmAQoUQ291bnRlclVwZGF0ZVJlcXVlc3QSDAoEbmFt", - "ZRgBIAEoCRIqCgVjb3VudBgCIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2", - "NFZhbHVlEi0KCGNhcGFjaXR5GAMgASgLMhsuZ29vZ2xlLnByb3RvYnVmLklu", - "dDY0VmFsdWUSEQoJY291bnREaWZmGAQgASgDOlLqQU8KH2Fnb25lcy5kZXYv", - "Q291bnRlclVwZGF0ZVJlcXVlc3QSLGNvdW50ZXJVcGRhdGVSZXF1ZXN0cy97", - "Y291bnRlclVwZGF0ZVJlcXVlc3R9Ij0KEUdldENvdW50ZXJSZXF1ZXN0EigK", - "BG5hbWUYASABKAlCGuBBAvpBFAoSYWdvbmVzLmRldi9Db3VudGVyIokBChRV", - "cGRhdGVDb3VudGVyUmVxdWVzdBJxChRjb3VudGVyVXBkYXRlUmVxdWVzdBgB", - "IAEoCzIqLmFnb25lcy5kZXYuc2RrLmFscGhhLkNvdW50ZXJVcGRhdGVSZXF1", - "ZXN0QifgQQL6QSEKH2Fnb25lcy5kZXYvQ291bnRlclVwZGF0ZVJlcXVlc3Qi", - "WgoETGlzdBIMCgRuYW1lGAEgASgJEhAKCGNhcGFjaXR5GAIgASgDEg4KBnZh", - "bHVlcxgDIAMoCToi6kEfCg9hZ29uZXMuZGV2L0xpc3QSDGxpc3RzL3tsaXN0", - "fSI3Cg5HZXRMaXN0UmVxdWVzdBIlCgRuYW1lGAEgASgJQhfgQQL6QREKD2Fn", - "b25lcy5kZXYvTGlzdCKMAQoRVXBkYXRlTGlzdFJlcXVlc3QSQQoEbGlzdBgB", - "IAEoCzIaLmFnb25lcy5kZXYuc2RrLmFscGhhLkxpc3RCF+BBAvpBEQoPYWdv", - "bmVzLmRldi9MaXN0EjQKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnBy", - "b3RvYnVmLkZpZWxkTWFza0ID4EECIlAKE0FkZExpc3RWYWx1ZVJlcXVlc3QS", - "JQoEbmFtZRgBIAEoCUIX4EEC+kERCg9hZ29uZXMuZGV2L0xpc3QSEgoFdmFs", - "dWUYAiABKAlCA+BBAiJTChZSZW1vdmVMaXN0VmFsdWVSZXF1ZXN0EiUKBG5h", - "bWUYASABKAlCF+BBAvpBEQoPYWdvbmVzLmRldi9MaXN0EhIKBXZhbHVlGAIg", - "ASgJQgPgQQIynA0KA1NESxJtCg1QbGF5ZXJDb25uZWN0Eh4uYWdvbmVzLmRl", - "di5zZGsuYWxwaGEuUGxheWVySUQaGi5hZ29uZXMuZGV2LnNkay5hbHBoYS5C", - "b29sIiCC0+STAhoiFS9hbHBoYS9wbGF5ZXIvY29ubmVjdDoBKhJzChBQbGF5", - "ZXJEaXNjb25uZWN0Eh4uYWdvbmVzLmRldi5zZGsuYWxwaGEuUGxheWVySUQa", - "Gi5hZ29uZXMuZGV2LnNkay5hbHBoYS5Cb29sIiOC0+STAh0iGC9hbHBoYS9w", - "bGF5ZXIvZGlzY29ubmVjdDoBKhJwChFTZXRQbGF5ZXJDYXBhY2l0eRIbLmFn", - "b25lcy5kZXYuc2RrLmFscGhhLkNvdW50GhsuYWdvbmVzLmRldi5zZGsuYWxw", - "aGEuRW1wdHkiIYLT5JMCGxoWL2FscGhhL3BsYXllci9jYXBhY2l0eToBKhJt", - "ChFHZXRQbGF5ZXJDYXBhY2l0eRIbLmFnb25lcy5kZXYuc2RrLmFscGhhLkVt", - "cHR5GhsuYWdvbmVzLmRldi5zZGsuYWxwaGEuQ291bnQiHoLT5JMCGBIWL2Fs", - "cGhhL3BsYXllci9jYXBhY2l0eRJnCg5HZXRQbGF5ZXJDb3VudBIbLmFnb25l", - "cy5kZXYuc2RrLmFscGhhLkVtcHR5GhsuYWdvbmVzLmRldi5zZGsuYWxwaGEu", - "Q291bnQiG4LT5JMCFRITL2FscGhhL3BsYXllci9jb3VudBJ7ChFJc1BsYXll", - "ckNvbm5lY3RlZBIeLmFnb25lcy5kZXYuc2RrLmFscGhhLlBsYXllcklEGhou", - "YWdvbmVzLmRldi5zZGsuYWxwaGEuQm9vbCIqgtPkkwIkEiIvYWxwaGEvcGxh", - "eWVyL2Nvbm5lY3RlZC97cGxheWVySUR9EncKE0dldENvbm5lY3RlZFBsYXll", - "cnMSGy5hZ29uZXMuZGV2LnNkay5hbHBoYS5FbXB0eRoiLmFnb25lcy5kZXYu", - "c2RrLmFscGhhLlBsYXllcklETGlzdCIfgtPkkwIZEhcvYWxwaGEvcGxheWVy", - "L2Nvbm5lY3RlZBKAAQoKR2V0Q291bnRlchInLmFnb25lcy5kZXYuc2RrLmFs", - "cGhhLkdldENvdW50ZXJSZXF1ZXN0Gh0uYWdvbmVzLmRldi5zZGsuYWxwaGEu", - "Q291bnRlciIqgtPkkwIdEhsvdjFhbHBoYTEve25hbWU9Y291bnRlcnMvKn3a", - "QQRuYW1lEs4BCg1VcGRhdGVDb3VudGVyEiouYWdvbmVzLmRldi5zZGsuYWxw", - "aGEuVXBkYXRlQ291bnRlclJlcXVlc3QaHS5hZ29uZXMuZGV2LnNkay5hbHBo", - "YS5Db3VudGVyInKC0+STAlUyPS92MWFscGhhMS97Y291bnRlclVwZGF0ZVJl", - "cXVlc3QubmFtZT1jb3VudGVyVXBkYXRlUmVxdWVzdHMvKn06FGNvdW50ZXJV", - "cGRhdGVSZXF1ZXN02kEUY291bnRlclVwZGF0ZVJlcXVlc3QSdAoHR2V0TGlz", - "dBIkLmFnb25lcy5kZXYuc2RrLmFscGhhLkdldExpc3RSZXF1ZXN0GhouYWdv", - "bmVzLmRldi5zZGsuYWxwaGEuTGlzdCIngtPkkwIaEhgvdjFhbHBoYTEve25h", - "bWU9bGlzdHMvKn3aQQRuYW1lEpEBCgpVcGRhdGVMaXN0EicuYWdvbmVzLmRl", - "di5zZGsuYWxwaGEuVXBkYXRlTGlzdFJlcXVlc3QaGi5hZ29uZXMuZGV2LnNk", - "ay5hbHBoYS5MaXN0Ij6C0+STAiUyHS92MWFscGhhMS97bGlzdC5uYW1lPWxp", - "c3RzLyp9OgRsaXN02kEQbGlzdCx1cGRhdGVfbWFzaxKDAQoMQWRkTGlzdFZh", - "bHVlEikuYWdvbmVzLmRldi5zZGsuYWxwaGEuQWRkTGlzdFZhbHVlUmVxdWVz", - "dBoaLmFnb25lcy5kZXYuc2RrLmFscGhhLkxpc3QiLILT5JMCJiIhL3YxYWxw", - "aGExL3tuYW1lPWxpc3RzLyp9OmFkZFZhbHVlOgEqEowBCg9SZW1vdmVMaXN0", - "VmFsdWUSLC5hZ29uZXMuZGV2LnNkay5hbHBoYS5SZW1vdmVMaXN0VmFsdWVS", - "ZXF1ZXN0GhouYWdvbmVzLmRldi5zZGsuYWxwaGEuTGlzdCIvgtPkkwIpIiQv", - "djFhbHBoYTEve25hbWU9bGlzdHMvKn06cmVtb3ZlVmFsdWU6ASpCCVoHLi9h", - "bHBoYWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, - 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), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.Counter), global::Agones.Dev.Sdk.Alpha.Counter.Parser, new[]{ "Name", "Count", "Capacity" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.CounterUpdateRequest), global::Agones.Dev.Sdk.Alpha.CounterUpdateRequest.Parser, new[]{ "Name", "Count", "Capacity", "CountDiff" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.GetCounterRequest), global::Agones.Dev.Sdk.Alpha.GetCounterRequest.Parser, new[]{ "Name" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.UpdateCounterRequest), global::Agones.Dev.Sdk.Alpha.UpdateCounterRequest.Parser, new[]{ "CounterUpdateRequest" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.List), global::Agones.Dev.Sdk.Alpha.List.Parser, new[]{ "Name", "Capacity", "Values" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.GetListRequest), global::Agones.Dev.Sdk.Alpha.GetListRequest.Parser, new[]{ "Name" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.UpdateListRequest), global::Agones.Dev.Sdk.Alpha.UpdateListRequest.Parser, new[]{ "List", "UpdateMask" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.AddListValueRequest), global::Agones.Dev.Sdk.Alpha.AddListValueRequest.Parser, new[]{ "Name", "Value" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.Alpha.RemoveListValueRequest), global::Agones.Dev.Sdk.Alpha.RemoveListValueRequest.Parser, new[]{ "Name", "Value" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// I am Empty - /// - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Empty() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Empty(Empty other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Empty Clone() { - return new Empty(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Empty); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Empty other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Empty other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - #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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Count() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Count(Count other) : this() { - count_ = other.count_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Count Clone() { - return new Count(this); - } - - /// Field number for the "count" field. - public const int Count_FieldNumber = 1; - private long count_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Count_ { - get { return count_; } - set { - count_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Count); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Count other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Count_ != other.Count_) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Count_ != 0L) hash ^= Count_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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_); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Count_ != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count_); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Count other) { - if (other == null) { - return; - } - if (other.Count_ != 0L) { - Count_ = other.Count_; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Count_ = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - #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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Bool() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Bool(Bool other) : this() { - bool_ = other.bool_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Bool Clone() { - return new Bool(this); - } - - /// Field number for the "bool" field. - public const int Bool_FieldNumber = 1; - private bool bool_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Bool_ { - get { return bool_; } - set { - bool_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Bool); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Bool other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Bool_ != other.Bool_) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Bool_ != false) hash ^= Bool_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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_); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Bool_ != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Bool other) { - if (other == null) { - return; - } - if (other.Bool_ != false) { - Bool_ = other.Bool_; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Bool_ = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - #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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlayerID() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlayerID(PlayerID other) : this() { - playerID_ = other.playerID_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlayerID Clone() { - return new PlayerID(this); - } - - /// Field number for the "playerID" field. - public const int PlayerID_FieldNumber = 1; - private string playerID_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PlayerID_ { - get { return playerID_; } - set { - playerID_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PlayerID); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PlayerID other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PlayerID_ != other.PlayerID_) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PlayerID_.Length != 0) hash ^= PlayerID_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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_); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PlayerID_.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayerID_); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PlayerID other) { - if (other == null) { - return; - } - if (other.PlayerID_.Length != 0) { - PlayerID_ = other.PlayerID_; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - PlayerID_ = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - #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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlayerIDList() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlayerIDList(PlayerIDList other) : this() { - list_ = other.list_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlayerIDList Clone() { - return new PlayerIDList(this); - } - - /// Field number for the "list" field. - public const int ListFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_list_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField List { - get { return list_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PlayerIDList); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PlayerIDList other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!list_.Equals(other.list_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= list_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += list_.CalculateSize(_repeated_list_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PlayerIDList other) { - if (other == null) { - return; - } - list_.Add(other.list_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - list_.AddEntriesFrom(input, _repeated_list_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - - } - - /// - /// A representation of a Counter. - /// - public sealed partial class Counter : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Counter()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Counter() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Counter(Counter other) : this() { - name_ = other.name_; - count_ = other.count_; - capacity_ = other.capacity_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Counter Clone() { - return new Counter(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// The name of the Counter - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "count" field. - public const int CountFieldNumber = 2; - private long count_; - /// - /// The current count of the Counter - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Count { - get { return count_; } - set { - count_ = value; - } - } - - /// Field number for the "capacity" field. - public const int CapacityFieldNumber = 3; - private long capacity_; - /// - /// The maximum capacity of the Counter - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Capacity { - get { return capacity_; } - set { - capacity_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Counter); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Counter other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Count != other.Count) return false; - if (Capacity != other.Capacity) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Count != 0L) hash ^= Count.GetHashCode(); - if (Capacity != 0L) hash ^= Capacity.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (Count != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Count); - } - if (Capacity != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Capacity); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Count != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Count); - } - if (Capacity != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Capacity); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Count != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); - } - if (Capacity != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Capacity); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Counter other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Count != 0L) { - Count = other.Count; - } - if (other.Capacity != 0L) { - Capacity = other.Capacity; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 16: { - Count = input.ReadInt64(); - break; - } - case 24: { - Capacity = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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: { - Count = input.ReadInt64(); - break; - } - case 24: { - Capacity = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// A representation of a Counter Update Request. - /// - public sealed partial class CounterUpdateRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CounterUpdateRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CounterUpdateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CounterUpdateRequest(CounterUpdateRequest other) : this() { - name_ = other.name_; - Count = other.Count; - Capacity = other.Capacity; - countDiff_ = other.countDiff_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CounterUpdateRequest Clone() { - return new CounterUpdateRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// The name of the Counter to update - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "count" field. - public const int CountFieldNumber = 2; - private static readonly pb::FieldCodec _single_count_codec = pb::FieldCodec.ForStructWrapper(18); - private long? count_; - /// - /// The value to set the Counter Count - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long? Count { - get { return count_; } - set { - count_ = value; - } - } - - - /// Field number for the "capacity" field. - public const int CapacityFieldNumber = 3; - private static readonly pb::FieldCodec _single_capacity_codec = pb::FieldCodec.ForStructWrapper(26); - private long? capacity_; - /// - /// The value to set the Counter Capacity - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long? Capacity { - get { return capacity_; } - set { - capacity_ = value; - } - } - - - /// Field number for the "countDiff" field. - public const int CountDiffFieldNumber = 4; - private long countDiff_; - /// - /// countDiff tracks if a Counter Update Request is CountIncrement (positive), CountDecrement - /// (negative), 0 if a CountSet or CapacitySet request - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CountDiff { - get { return countDiff_; } - set { - countDiff_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CounterUpdateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CounterUpdateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Count != other.Count) return false; - if (Capacity != other.Capacity) return false; - if (CountDiff != other.CountDiff) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (count_ != null) hash ^= Count.GetHashCode(); - if (capacity_ != null) hash ^= Capacity.GetHashCode(); - if (CountDiff != 0L) hash ^= CountDiff.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (count_ != null) { - _single_count_codec.WriteTagAndValue(output, Count); - } - if (capacity_ != null) { - _single_capacity_codec.WriteTagAndValue(output, Capacity); - } - if (CountDiff != 0L) { - output.WriteRawTag(32); - output.WriteInt64(CountDiff); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (count_ != null) { - _single_count_codec.WriteTagAndValue(ref output, Count); - } - if (capacity_ != null) { - _single_capacity_codec.WriteTagAndValue(ref output, Capacity); - } - if (CountDiff != 0L) { - output.WriteRawTag(32); - output.WriteInt64(CountDiff); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (count_ != null) { - size += _single_count_codec.CalculateSizeWithTag(Count); - } - if (capacity_ != null) { - size += _single_capacity_codec.CalculateSizeWithTag(Capacity); - } - if (CountDiff != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CountDiff); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CounterUpdateRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.count_ != null) { - if (count_ == null || other.Count != 0L) { - Count = other.Count; - } - } - if (other.capacity_ != null) { - if (capacity_ == null || other.Capacity != 0L) { - Capacity = other.Capacity; - } - } - if (other.CountDiff != 0L) { - CountDiff = other.CountDiff; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - long? value = _single_count_codec.Read(input); - if (count_ == null || value != 0L) { - Count = value; - } - break; - } - case 26: { - long? value = _single_capacity_codec.Read(input); - if (capacity_ == null || value != 0L) { - Capacity = value; - } - break; - } - case 32: { - CountDiff = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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: { - long? value = _single_count_codec.Read(ref input); - if (count_ == null || value != 0L) { - Count = value; - } - break; - } - case 26: { - long? value = _single_capacity_codec.Read(ref input); - if (capacity_ == null || value != 0L) { - Capacity = value; - } - break; - } - case 32: { - CountDiff = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetCounterRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCounterRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetCounterRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetCounterRequest(GetCounterRequest other) : this() { - name_ = other.name_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetCounterRequest Clone() { - return new GetCounterRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// The name of the Counter to get - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetCounterRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetCounterRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetCounterRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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; - } - } - } - } - #endif - - } - - public sealed partial class UpdateCounterRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateCounterRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateCounterRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateCounterRequest(UpdateCounterRequest other) : this() { - counterUpdateRequest_ = other.counterUpdateRequest_ != null ? other.counterUpdateRequest_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateCounterRequest Clone() { - return new UpdateCounterRequest(this); - } - - /// Field number for the "counterUpdateRequest" field. - public const int CounterUpdateRequestFieldNumber = 1; - private global::Agones.Dev.Sdk.Alpha.CounterUpdateRequest counterUpdateRequest_; - /// - /// The requested update to make to the Counter - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Agones.Dev.Sdk.Alpha.CounterUpdateRequest CounterUpdateRequest { - get { return counterUpdateRequest_; } - set { - counterUpdateRequest_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateCounterRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateCounterRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CounterUpdateRequest, other.CounterUpdateRequest)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (counterUpdateRequest_ != null) hash ^= CounterUpdateRequest.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (counterUpdateRequest_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CounterUpdateRequest); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (counterUpdateRequest_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CounterUpdateRequest); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (counterUpdateRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CounterUpdateRequest); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateCounterRequest other) { - if (other == null) { - return; - } - if (other.counterUpdateRequest_ != null) { - if (counterUpdateRequest_ == null) { - CounterUpdateRequest = new global::Agones.Dev.Sdk.Alpha.CounterUpdateRequest(); - } - CounterUpdateRequest.MergeFrom(other.CounterUpdateRequest); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (counterUpdateRequest_ == null) { - CounterUpdateRequest = new global::Agones.Dev.Sdk.Alpha.CounterUpdateRequest(); - } - input.ReadMessage(CounterUpdateRequest); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 (counterUpdateRequest_ == null) { - CounterUpdateRequest = new global::Agones.Dev.Sdk.Alpha.CounterUpdateRequest(); - } - input.ReadMessage(CounterUpdateRequest); - break; - } - } - } - } - #endif - - } - - /// - /// A representation of a List. - /// - public sealed partial class List : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new List()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public List() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public List(List other) : this() { - name_ = other.name_; - capacity_ = other.capacity_; - values_ = other.values_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public List Clone() { - return new List(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// The name of the List - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "capacity" field. - public const int CapacityFieldNumber = 2; - private long capacity_; - /// - /// The maximum capacity of the List - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Capacity { - get { return capacity_; } - set { - capacity_ = value; - } - } - - /// Field number for the "values" field. - public const int ValuesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_values_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); - /// - /// The array of items in the List ["v1", "v2", …] - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Values { - get { return values_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as List); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(List other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Capacity != other.Capacity) return false; - if(!values_.Equals(other.values_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Capacity != 0L) hash ^= Capacity.GetHashCode(); - hash ^= values_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (Capacity != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Capacity); - } - values_.WriteTo(output, _repeated_values_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Capacity != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Capacity); - } - values_.WriteTo(ref output, _repeated_values_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Capacity != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Capacity); - } - size += values_.CalculateSize(_repeated_values_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(List other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Capacity != 0L) { - Capacity = other.Capacity; - } - values_.Add(other.values_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 16: { - Capacity = input.ReadInt64(); - break; - } - case 26: { - values_.AddEntriesFrom(input, _repeated_values_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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: { - Capacity = input.ReadInt64(); - break; - } - case 26: { - values_.AddEntriesFrom(ref input, _repeated_values_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetListRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetListRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetListRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetListRequest(GetListRequest other) : this() { - name_ = other.name_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetListRequest Clone() { - return new GetListRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// The name of the List to get - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetListRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetListRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetListRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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; - } - } - } - } - #endif - - } - - public sealed partial class UpdateListRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateListRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateListRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateListRequest(UpdateListRequest other) : this() { - list_ = other.list_ != null ? other.list_.Clone() : null; - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateListRequest Clone() { - return new UpdateListRequest(this); - } - - /// Field number for the "list" field. - public const int ListFieldNumber = 1; - private global::Agones.Dev.Sdk.Alpha.List list_; - /// - /// The List to update - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Agones.Dev.Sdk.Alpha.List List { - get { return list_; } - set { - list_ = value; - } - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// Required. Mask (list) of fields to update. - /// Fields are specified relative to the List - /// (e.g. `capacity`, `values`; *not* `List.capacity` or `List.values`). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateListRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateListRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(List, other.List)) return false; - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (list_ != null) hash ^= List.GetHashCode(); - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (list_ != null) { - output.WriteRawTag(10); - output.WriteMessage(List); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (list_ != null) { - output.WriteRawTag(10); - output.WriteMessage(List); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (list_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(List); - } - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateListRequest other) { - if (other == null) { - return; - } - if (other.list_ != null) { - if (list_ == null) { - List = new global::Agones.Dev.Sdk.Alpha.List(); - } - List.MergeFrom(other.List); - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (list_ == null) { - List = new global::Agones.Dev.Sdk.Alpha.List(); - } - input.ReadMessage(List); - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 (list_ == null) { - List = new global::Agones.Dev.Sdk.Alpha.List(); - } - input.ReadMessage(List); - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - public sealed partial class AddListValueRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddListValueRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddListValueRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddListValueRequest(AddListValueRequest other) : this() { - name_ = other.name_; - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddListValueRequest Clone() { - return new AddListValueRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// The name of the List to add a value to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private string value_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AddListValueRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddListValueRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Value.Length != 0) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Value.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddListValueRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Value.Length != 0) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class RemoveListValueRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveListValueRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveListValueRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveListValueRequest(RemoveListValueRequest other) : this() { - name_ = other.name_; - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveListValueRequest Clone() { - return new RemoveListValueRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// The name of the List to remove a value from. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private string value_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RemoveListValueRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RemoveListValueRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Value.Length != 0) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Value.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RemoveListValueRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Value.Length != 0) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/sdks/csharp/sdk/generated/AlphaGrpc.cs b/sdks/csharp/sdk/generated/AlphaGrpc.cs deleted file mode 100644 index 223bb1a2ba..0000000000 --- a/sdks/csharp/sdk/generated/AlphaGrpc.cs +++ /dev/null @@ -1,1324 +0,0 @@ -// Copyright 2023 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. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: alpha.proto -// -// Original file comments: -// Copyright 2020 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. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Agones.Dev.Sdk.Alpha { - /// - /// SDK service to be used in the GameServer SDK to the Pod Sidecar. - /// - public static partial class SDK - { - static readonly string __ServiceName = "agones.dev.sdk.alpha.SDK"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - 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)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - 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()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - 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)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - 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)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - 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)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - 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)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - 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)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_GetCounterRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.GetCounterRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_Counter = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.Counter.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_UpdateCounterRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.UpdateCounterRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_GetListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.GetListRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_List = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.List.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_UpdateListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.UpdateListRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_AddListValueRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.AddListValueRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_alpha_RemoveListValueRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Alpha.RemoveListValueRequest.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_PlayerConnect = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "PlayerConnect", - __Marshaller_agones_dev_sdk_alpha_PlayerID, - __Marshaller_agones_dev_sdk_alpha_Bool); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_PlayerDisconnect = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "PlayerDisconnect", - __Marshaller_agones_dev_sdk_alpha_PlayerID, - __Marshaller_agones_dev_sdk_alpha_Bool); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SetPlayerCapacity = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "SetPlayerCapacity", - __Marshaller_agones_dev_sdk_alpha_Count, - __Marshaller_agones_dev_sdk_alpha_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetPlayerCapacity = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetPlayerCapacity", - __Marshaller_agones_dev_sdk_alpha_Empty, - __Marshaller_agones_dev_sdk_alpha_Count); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetPlayerCount = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetPlayerCount", - __Marshaller_agones_dev_sdk_alpha_Empty, - __Marshaller_agones_dev_sdk_alpha_Count); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_IsPlayerConnected = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "IsPlayerConnected", - __Marshaller_agones_dev_sdk_alpha_PlayerID, - __Marshaller_agones_dev_sdk_alpha_Bool); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetConnectedPlayers = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetConnectedPlayers", - __Marshaller_agones_dev_sdk_alpha_Empty, - __Marshaller_agones_dev_sdk_alpha_PlayerIDList); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetCounter = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetCounter", - __Marshaller_agones_dev_sdk_alpha_GetCounterRequest, - __Marshaller_agones_dev_sdk_alpha_Counter); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateCounter = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateCounter", - __Marshaller_agones_dev_sdk_alpha_UpdateCounterRequest, - __Marshaller_agones_dev_sdk_alpha_Counter); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetList = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetList", - __Marshaller_agones_dev_sdk_alpha_GetListRequest, - __Marshaller_agones_dev_sdk_alpha_List); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateList = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateList", - __Marshaller_agones_dev_sdk_alpha_UpdateListRequest, - __Marshaller_agones_dev_sdk_alpha_List); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_AddListValue = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "AddListValue", - __Marshaller_agones_dev_sdk_alpha_AddListValueRequest, - __Marshaller_agones_dev_sdk_alpha_List); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_RemoveListValue = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "RemoveListValue", - __Marshaller_agones_dev_sdk_alpha_RemoveListValueRequest, - __Marshaller_agones_dev_sdk_alpha_List); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Agones.Dev.Sdk.Alpha.AlphaReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of SDK - [grpc::BindServiceMethod(typeof(SDK), "BindService")] - public abstract partial class SDKBase - { - /// - /// PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - /// - /// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - /// unless there is already an update pending, in which case the update joins that batch operation. - /// - /// PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the - /// list of connected playerIDs. - /// - /// If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of - /// connected playerIDs will be left unchanged. - /// - /// An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for - /// the server has been reached. The playerID will not be added to the list of playerIDs. - /// - /// Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count - /// through the Kubernetes API, as indeterminate results will occur. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task PlayerConnect(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - /// - /// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - /// unless there is already an update pending, in which case the update joins that batch operation. - /// - /// PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the - /// playerID value exists within the list. - /// - /// If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list - /// will be left unchanged. - /// - /// Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count - /// through the Kubernetes API, as indeterminate results will occur. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task PlayerDisconnect(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update the GameServer.Status.Players.Capacity value with a new capacity. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task SetPlayerCapacity(global::Agones.Dev.Sdk.Alpha.Count request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Retrieves the current player capacity. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetPlayerCapacity(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Retrieves the current player count. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetPlayerCount(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task IsPlayerConnected(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetConnectedPlayers(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Gets a Counter. Returns NOT_FOUND if the Counter does not exist. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetCounter(global::Agones.Dev.Sdk.Alpha.GetCounterRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// UpdateCounter returns the updated Counter. Returns NOT_FOUND if the Counter does not exist (name cannot be updated). - /// Returns OUT_OF_RANGE if the Count is out of range [0,Capacity]. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateCounter(global::Agones.Dev.Sdk.Alpha.UpdateCounterRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Gets a List. Returns NOT_FOUND if the List does not exist. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetList(global::Agones.Dev.Sdk.Alpha.GetListRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// UpdateList returns the updated List. Returns NOT_FOUND if the List does not exist (name cannot be updated). - /// **THIS WILL OVERWRITE ALL EXISTING LIST.VALUES WITH ANY REQUEST LIST.VALUES** - /// Use AddListValue() or RemoveListValue() for modifying the List.Values field. - /// Returns INVALID_ARGUMENT if the field mask path(s) are not field(s) of the List. - /// If a field mask path(s) is specified, but the value is not set in the request List object, - /// then the default value for the variable will be set (i.e. 0 for "capacity", empty list for "values"). - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateList(global::Agones.Dev.Sdk.Alpha.UpdateListRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Adds a value to a List and returns updated List. Returns NOT_FOUND if the List does not exist. - /// Returns ALREADY_EXISTS if the value is already in the List. - /// Returns OUT_OF_RANGE if the List is already at Capacity. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task AddListValue(global::Agones.Dev.Sdk.Alpha.AddListValueRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Removes a value from a List and returns updated List. Returns NOT_FOUND if the List does not exist. - /// Returns NOT_FOUND if the value is not in the List. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task RemoveListValue(global::Agones.Dev.Sdk.Alpha.RemoveListValueRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for SDK - public partial class SDKClient : grpc::ClientBase - { - /// Creates a new client for SDK - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public SDKClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for SDK that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public SDKClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected SDKClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected SDKClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - /// - /// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - /// unless there is already an update pending, in which case the update joins that batch operation. - /// - /// PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the - /// list of connected playerIDs. - /// - /// If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of - /// connected playerIDs will be left unchanged. - /// - /// An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for - /// the server has been reached. The playerID will not be added to the list of playerIDs. - /// - /// Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count - /// through the Kubernetes API, as indeterminate results will occur. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Bool PlayerConnect(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return PlayerConnect(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - /// - /// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - /// unless there is already an update pending, in which case the update joins that batch operation. - /// - /// PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the - /// list of connected playerIDs. - /// - /// If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of - /// connected playerIDs will be left unchanged. - /// - /// An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for - /// the server has been reached. The playerID will not be added to the list of playerIDs. - /// - /// Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count - /// through the Kubernetes API, as indeterminate results will occur. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Bool PlayerConnect(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_PlayerConnect, null, options, request); - } - /// - /// PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - /// - /// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - /// unless there is already an update pending, in which case the update joins that batch operation. - /// - /// PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the - /// list of connected playerIDs. - /// - /// If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of - /// connected playerIDs will be left unchanged. - /// - /// An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for - /// the server has been reached. The playerID will not be added to the list of playerIDs. - /// - /// Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count - /// through the Kubernetes API, as indeterminate results will occur. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PlayerConnectAsync(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return PlayerConnectAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - /// - /// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - /// unless there is already an update pending, in which case the update joins that batch operation. - /// - /// PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the - /// list of connected playerIDs. - /// - /// If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of - /// connected playerIDs will be left unchanged. - /// - /// An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for - /// the server has been reached. The playerID will not be added to the list of playerIDs. - /// - /// Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count - /// through the Kubernetes API, as indeterminate results will occur. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PlayerConnectAsync(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_PlayerConnect, null, options, request); - } - /// - /// Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - /// - /// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - /// unless there is already an update pending, in which case the update joins that batch operation. - /// - /// PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the - /// playerID value exists within the list. - /// - /// If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list - /// will be left unchanged. - /// - /// Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count - /// through the Kubernetes API, as indeterminate results will occur. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Bool PlayerDisconnect(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return PlayerDisconnect(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - /// - /// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - /// unless there is already an update pending, in which case the update joins that batch operation. - /// - /// PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the - /// playerID value exists within the list. - /// - /// If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list - /// will be left unchanged. - /// - /// Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count - /// through the Kubernetes API, as indeterminate results will occur. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Bool PlayerDisconnect(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_PlayerDisconnect, null, options, request); - } - /// - /// Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - /// - /// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - /// unless there is already an update pending, in which case the update joins that batch operation. - /// - /// PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the - /// playerID value exists within the list. - /// - /// If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list - /// will be left unchanged. - /// - /// Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count - /// through the Kubernetes API, as indeterminate results will occur. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PlayerDisconnectAsync(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return PlayerDisconnectAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - /// - /// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - /// unless there is already an update pending, in which case the update joins that batch operation. - /// - /// PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the - /// playerID value exists within the list. - /// - /// If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list - /// will be left unchanged. - /// - /// Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count - /// through the Kubernetes API, as indeterminate results will occur. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PlayerDisconnectAsync(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_PlayerDisconnect, null, options, request); - } - /// - /// Update the GameServer.Status.Players.Capacity value with a new capacity. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Empty SetPlayerCapacity(global::Agones.Dev.Sdk.Alpha.Count request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SetPlayerCapacity(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the GameServer.Status.Players.Capacity value with a new capacity. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Empty SetPlayerCapacity(global::Agones.Dev.Sdk.Alpha.Count request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_SetPlayerCapacity, null, options, request); - } - /// - /// Update the GameServer.Status.Players.Capacity value with a new capacity. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SetPlayerCapacityAsync(global::Agones.Dev.Sdk.Alpha.Count request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SetPlayerCapacityAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the GameServer.Status.Players.Capacity value with a new capacity. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SetPlayerCapacityAsync(global::Agones.Dev.Sdk.Alpha.Count request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_SetPlayerCapacity, null, options, request); - } - /// - /// Retrieves the current player capacity. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Count GetPlayerCapacity(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetPlayerCapacity(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Retrieves the current player capacity. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Count GetPlayerCapacity(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetPlayerCapacity, null, options, request); - } - /// - /// Retrieves the current player capacity. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetPlayerCapacityAsync(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetPlayerCapacityAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Retrieves the current player capacity. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetPlayerCapacityAsync(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetPlayerCapacity, null, options, request); - } - /// - /// Retrieves the current player count. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Count GetPlayerCount(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetPlayerCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Retrieves the current player count. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Count GetPlayerCount(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetPlayerCount, null, options, request); - } - /// - /// Retrieves the current player count. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetPlayerCountAsync(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetPlayerCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Retrieves the current player count. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetPlayerCountAsync(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetPlayerCount, null, options, request); - } - /// - /// Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Bool IsPlayerConnected(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return IsPlayerConnected(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Bool IsPlayerConnected(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_IsPlayerConnected, null, options, request); - } - /// - /// Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall IsPlayerConnectedAsync(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return IsPlayerConnectedAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall IsPlayerConnectedAsync(global::Agones.Dev.Sdk.Alpha.PlayerID request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_IsPlayerConnected, null, options, request); - } - /// - /// Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.PlayerIDList GetConnectedPlayers(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetConnectedPlayers(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.PlayerIDList GetConnectedPlayers(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetConnectedPlayers, null, options, request); - } - /// - /// Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetConnectedPlayersAsync(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetConnectedPlayersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, - /// even if the value has yet to be updated on the GameServer status resource. - /// - /// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetConnectedPlayersAsync(global::Agones.Dev.Sdk.Alpha.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetConnectedPlayers, null, options, request); - } - /// - /// Gets a Counter. Returns NOT_FOUND if the Counter does not exist. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Counter GetCounter(global::Agones.Dev.Sdk.Alpha.GetCounterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetCounter(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Gets a Counter. Returns NOT_FOUND if the Counter does not exist. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Counter GetCounter(global::Agones.Dev.Sdk.Alpha.GetCounterRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetCounter, null, options, request); - } - /// - /// Gets a Counter. Returns NOT_FOUND if the Counter does not exist. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetCounterAsync(global::Agones.Dev.Sdk.Alpha.GetCounterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetCounterAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Gets a Counter. Returns NOT_FOUND if the Counter does not exist. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetCounterAsync(global::Agones.Dev.Sdk.Alpha.GetCounterRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetCounter, null, options, request); - } - /// - /// UpdateCounter returns the updated Counter. Returns NOT_FOUND if the Counter does not exist (name cannot be updated). - /// Returns OUT_OF_RANGE if the Count is out of range [0,Capacity]. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Counter UpdateCounter(global::Agones.Dev.Sdk.Alpha.UpdateCounterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateCounter(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// UpdateCounter returns the updated Counter. Returns NOT_FOUND if the Counter does not exist (name cannot be updated). - /// Returns OUT_OF_RANGE if the Count is out of range [0,Capacity]. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.Counter UpdateCounter(global::Agones.Dev.Sdk.Alpha.UpdateCounterRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateCounter, null, options, request); - } - /// - /// UpdateCounter returns the updated Counter. Returns NOT_FOUND if the Counter does not exist (name cannot be updated). - /// Returns OUT_OF_RANGE if the Count is out of range [0,Capacity]. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateCounterAsync(global::Agones.Dev.Sdk.Alpha.UpdateCounterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateCounterAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// UpdateCounter returns the updated Counter. Returns NOT_FOUND if the Counter does not exist (name cannot be updated). - /// Returns OUT_OF_RANGE if the Count is out of range [0,Capacity]. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateCounterAsync(global::Agones.Dev.Sdk.Alpha.UpdateCounterRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateCounter, null, options, request); - } - /// - /// Gets a List. Returns NOT_FOUND if the List does not exist. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.List GetList(global::Agones.Dev.Sdk.Alpha.GetListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Gets a List. Returns NOT_FOUND if the List does not exist. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.List GetList(global::Agones.Dev.Sdk.Alpha.GetListRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetList, null, options, request); - } - /// - /// Gets a List. Returns NOT_FOUND if the List does not exist. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetListAsync(global::Agones.Dev.Sdk.Alpha.GetListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Gets a List. Returns NOT_FOUND if the List does not exist. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetListAsync(global::Agones.Dev.Sdk.Alpha.GetListRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetList, null, options, request); - } - /// - /// UpdateList returns the updated List. Returns NOT_FOUND if the List does not exist (name cannot be updated). - /// **THIS WILL OVERWRITE ALL EXISTING LIST.VALUES WITH ANY REQUEST LIST.VALUES** - /// Use AddListValue() or RemoveListValue() for modifying the List.Values field. - /// Returns INVALID_ARGUMENT if the field mask path(s) are not field(s) of the List. - /// If a field mask path(s) is specified, but the value is not set in the request List object, - /// then the default value for the variable will be set (i.e. 0 for "capacity", empty list for "values"). - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.List UpdateList(global::Agones.Dev.Sdk.Alpha.UpdateListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// UpdateList returns the updated List. Returns NOT_FOUND if the List does not exist (name cannot be updated). - /// **THIS WILL OVERWRITE ALL EXISTING LIST.VALUES WITH ANY REQUEST LIST.VALUES** - /// Use AddListValue() or RemoveListValue() for modifying the List.Values field. - /// Returns INVALID_ARGUMENT if the field mask path(s) are not field(s) of the List. - /// If a field mask path(s) is specified, but the value is not set in the request List object, - /// then the default value for the variable will be set (i.e. 0 for "capacity", empty list for "values"). - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.List UpdateList(global::Agones.Dev.Sdk.Alpha.UpdateListRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateList, null, options, request); - } - /// - /// UpdateList returns the updated List. Returns NOT_FOUND if the List does not exist (name cannot be updated). - /// **THIS WILL OVERWRITE ALL EXISTING LIST.VALUES WITH ANY REQUEST LIST.VALUES** - /// Use AddListValue() or RemoveListValue() for modifying the List.Values field. - /// Returns INVALID_ARGUMENT if the field mask path(s) are not field(s) of the List. - /// If a field mask path(s) is specified, but the value is not set in the request List object, - /// then the default value for the variable will be set (i.e. 0 for "capacity", empty list for "values"). - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateListAsync(global::Agones.Dev.Sdk.Alpha.UpdateListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// UpdateList returns the updated List. Returns NOT_FOUND if the List does not exist (name cannot be updated). - /// **THIS WILL OVERWRITE ALL EXISTING LIST.VALUES WITH ANY REQUEST LIST.VALUES** - /// Use AddListValue() or RemoveListValue() for modifying the List.Values field. - /// Returns INVALID_ARGUMENT if the field mask path(s) are not field(s) of the List. - /// If a field mask path(s) is specified, but the value is not set in the request List object, - /// then the default value for the variable will be set (i.e. 0 for "capacity", empty list for "values"). - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateListAsync(global::Agones.Dev.Sdk.Alpha.UpdateListRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateList, null, options, request); - } - /// - /// Adds a value to a List and returns updated List. Returns NOT_FOUND if the List does not exist. - /// Returns ALREADY_EXISTS if the value is already in the List. - /// Returns OUT_OF_RANGE if the List is already at Capacity. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.List AddListValue(global::Agones.Dev.Sdk.Alpha.AddListValueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AddListValue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Adds a value to a List and returns updated List. Returns NOT_FOUND if the List does not exist. - /// Returns ALREADY_EXISTS if the value is already in the List. - /// Returns OUT_OF_RANGE if the List is already at Capacity. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.List AddListValue(global::Agones.Dev.Sdk.Alpha.AddListValueRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_AddListValue, null, options, request); - } - /// - /// Adds a value to a List and returns updated List. Returns NOT_FOUND if the List does not exist. - /// Returns ALREADY_EXISTS if the value is already in the List. - /// Returns OUT_OF_RANGE if the List is already at Capacity. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddListValueAsync(global::Agones.Dev.Sdk.Alpha.AddListValueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AddListValueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Adds a value to a List and returns updated List. Returns NOT_FOUND if the List does not exist. - /// Returns ALREADY_EXISTS if the value is already in the List. - /// Returns OUT_OF_RANGE if the List is already at Capacity. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddListValueAsync(global::Agones.Dev.Sdk.Alpha.AddListValueRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_AddListValue, null, options, request); - } - /// - /// Removes a value from a List and returns updated List. Returns NOT_FOUND if the List does not exist. - /// Returns NOT_FOUND if the value is not in the List. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.List RemoveListValue(global::Agones.Dev.Sdk.Alpha.RemoveListValueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RemoveListValue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Removes a value from a List and returns updated List. Returns NOT_FOUND if the List does not exist. - /// Returns NOT_FOUND if the value is not in the List. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Alpha.List RemoveListValue(global::Agones.Dev.Sdk.Alpha.RemoveListValueRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_RemoveListValue, null, options, request); - } - /// - /// Removes a value from a List and returns updated List. Returns NOT_FOUND if the List does not exist. - /// Returns NOT_FOUND if the value is not in the List. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RemoveListValueAsync(global::Agones.Dev.Sdk.Alpha.RemoveListValueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RemoveListValueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Removes a value from a List and returns updated List. Returns NOT_FOUND if the List does not exist. - /// Returns NOT_FOUND if the value is not in the List. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RemoveListValueAsync(global::Agones.Dev.Sdk.Alpha.RemoveListValueRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_RemoveListValue, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override SDKClient NewInstance(ClientBaseConfiguration configuration) - { - return new SDKClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(SDKBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_PlayerConnect, serviceImpl.PlayerConnect) - .AddMethod(__Method_PlayerDisconnect, serviceImpl.PlayerDisconnect) - .AddMethod(__Method_SetPlayerCapacity, serviceImpl.SetPlayerCapacity) - .AddMethod(__Method_GetPlayerCapacity, serviceImpl.GetPlayerCapacity) - .AddMethod(__Method_GetPlayerCount, serviceImpl.GetPlayerCount) - .AddMethod(__Method_IsPlayerConnected, serviceImpl.IsPlayerConnected) - .AddMethod(__Method_GetConnectedPlayers, serviceImpl.GetConnectedPlayers) - .AddMethod(__Method_GetCounter, serviceImpl.GetCounter) - .AddMethod(__Method_UpdateCounter, serviceImpl.UpdateCounter) - .AddMethod(__Method_GetList, serviceImpl.GetList) - .AddMethod(__Method_UpdateList, serviceImpl.UpdateList) - .AddMethod(__Method_AddListValue, serviceImpl.AddListValue) - .AddMethod(__Method_RemoveListValue, serviceImpl.RemoveListValue).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, SDKBase serviceImpl) - { - serviceBinder.AddMethod(__Method_PlayerConnect, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PlayerConnect)); - serviceBinder.AddMethod(__Method_PlayerDisconnect, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PlayerDisconnect)); - serviceBinder.AddMethod(__Method_SetPlayerCapacity, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetPlayerCapacity)); - serviceBinder.AddMethod(__Method_GetPlayerCapacity, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPlayerCapacity)); - serviceBinder.AddMethod(__Method_GetPlayerCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPlayerCount)); - serviceBinder.AddMethod(__Method_IsPlayerConnected, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.IsPlayerConnected)); - serviceBinder.AddMethod(__Method_GetConnectedPlayers, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetConnectedPlayers)); - serviceBinder.AddMethod(__Method_GetCounter, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetCounter)); - serviceBinder.AddMethod(__Method_UpdateCounter, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateCounter)); - serviceBinder.AddMethod(__Method_GetList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetList)); - serviceBinder.AddMethod(__Method_UpdateList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateList)); - serviceBinder.AddMethod(__Method_AddListValue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddListValue)); - serviceBinder.AddMethod(__Method_RemoveListValue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RemoveListValue)); - } - - } -} -#endregion diff --git a/sdks/csharp/sdk/generated/Sdk.cs b/sdks/csharp/sdk/generated/Sdk.cs deleted file mode 100644 index b4c558b304..0000000000 --- a/sdks/csharp/sdk/generated/Sdk.cs +++ /dev/null @@ -1,3531 +0,0 @@ -// Copyright 2023 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. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: sdk.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Agones.Dev.Sdk { - - /// Holder for reflection information generated from sdk.proto - public static partial class SdkReflection { - - #region Descriptor - /// File descriptor for sdk.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static SdkReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CglzZGsucHJvdG8SDmFnb25lcy5kZXYuc2RrGhxnb29nbGUvYXBpL2Fubm90", - "YXRpb25zLnByb3RvIgcKBUVtcHR5IiYKCEtleVZhbHVlEgsKA2tleRgBIAEo", - "CRINCgV2YWx1ZRgCIAEoCSIbCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgD", - "IvwLCgpHYW1lU2VydmVyEjoKC29iamVjdF9tZXRhGAEgASgLMiUuYWdvbmVz", - "LmRldi5zZGsuR2FtZVNlcnZlci5PYmplY3RNZXRhEi0KBHNwZWMYAiABKAsy", - "Hy5hZ29uZXMuZGV2LnNkay5HYW1lU2VydmVyLlNwZWMSMQoGc3RhdHVzGAMg", - "ASgLMiEuYWdvbmVzLmRldi5zZGsuR2FtZVNlcnZlci5TdGF0dXMakwMKCk9i", - "amVjdE1ldGESDAoEbmFtZRgBIAEoCRIRCgluYW1lc3BhY2UYAiABKAkSCwoD", - "dWlkGAMgASgJEhgKEHJlc291cmNlX3ZlcnNpb24YBCABKAkSEgoKZ2VuZXJh", - "dGlvbhgFIAEoAxIaChJjcmVhdGlvbl90aW1lc3RhbXAYBiABKAMSGgoSZGVs", - "ZXRpb25fdGltZXN0YW1wGAcgASgDEksKC2Fubm90YXRpb25zGAggAygLMjYu", - "YWdvbmVzLmRldi5zZGsuR2FtZVNlcnZlci5PYmplY3RNZXRhLkFubm90YXRp", - "b25zRW50cnkSQQoGbGFiZWxzGAkgAygLMjEuYWdvbmVzLmRldi5zZGsuR2Ft", - "ZVNlcnZlci5PYmplY3RNZXRhLkxhYmVsc0VudHJ5GjIKEEFubm90YXRpb25z", - "RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARotCgtMYWJl", - "bHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBGqwBCgRT", - "cGVjEjYKBmhlYWx0aBgBIAEoCzImLmFnb25lcy5kZXYuc2RrLkdhbWVTZXJ2", - "ZXIuU3BlYy5IZWFsdGgabAoGSGVhbHRoEhAKCGRpc2FibGVkGAEgASgIEhYK", - "DnBlcmlvZF9zZWNvbmRzGAIgASgFEhkKEWZhaWx1cmVfdGhyZXNob2xkGAMg", - "ASgFEh0KFWluaXRpYWxfZGVsYXlfc2Vjb25kcxgEIAEoBRqKBgoGU3RhdHVz", - "Eg0KBXN0YXRlGAEgASgJEg8KB2FkZHJlc3MYAiABKAkSPAoJYWRkcmVzc2Vz", - "GAcgAygLMikuYWdvbmVzLmRldi5zZGsuR2FtZVNlcnZlci5TdGF0dXMuQWRk", - "cmVzcxI1CgVwb3J0cxgDIAMoCzImLmFnb25lcy5kZXYuc2RrLkdhbWVTZXJ2", - "ZXIuU3RhdHVzLlBvcnQSPwoHcGxheWVycxgEIAEoCzIuLmFnb25lcy5kZXYu", - "c2RrLkdhbWVTZXJ2ZXIuU3RhdHVzLlBsYXllclN0YXR1cxJBCghjb3VudGVy", - "cxgFIAMoCzIvLmFnb25lcy5kZXYuc2RrLkdhbWVTZXJ2ZXIuU3RhdHVzLkNv", - "dW50ZXJzRW50cnkSOwoFbGlzdHMYBiADKAsyLC5hZ29uZXMuZGV2LnNkay5H", - "YW1lU2VydmVyLlN0YXR1cy5MaXN0c0VudHJ5GigKB0FkZHJlc3MSDAoEdHlw", - "ZRgBIAEoCRIPCgdhZGRyZXNzGAIgASgJGiIKBFBvcnQSDAoEbmFtZRgBIAEo", - "CRIMCgRwb3J0GAIgASgFGjwKDFBsYXllclN0YXR1cxINCgVjb3VudBgBIAEo", - "AxIQCghjYXBhY2l0eRgCIAEoAxILCgNpZHMYAyADKAkaMAoNQ291bnRlclN0", - "YXR1cxINCgVjb3VudBgBIAEoAxIQCghjYXBhY2l0eRgCIAEoAxouCgpMaXN0", - "U3RhdHVzEhAKCGNhcGFjaXR5GAEgASgDEg4KBnZhbHVlcxgCIAMoCRpgCg1D", - "b3VudGVyc0VudHJ5EgsKA2tleRgBIAEoCRI+CgV2YWx1ZRgCIAEoCzIvLmFn", - "b25lcy5kZXYuc2RrLkdhbWVTZXJ2ZXIuU3RhdHVzLkNvdW50ZXJTdGF0dXM6", - "AjgBGloKCkxpc3RzRW50cnkSCwoDa2V5GAEgASgJEjsKBXZhbHVlGAIgASgL", - "MiwuYWdvbmVzLmRldi5zZGsuR2FtZVNlcnZlci5TdGF0dXMuTGlzdFN0YXR1", - "czoCOAEyhgYKA1NESxJICgVSZWFkeRIVLmFnb25lcy5kZXYuc2RrLkVtcHR5", - "GhUuYWdvbmVzLmRldi5zZGsuRW1wdHkiEYLT5JMCCyIGL3JlYWR5OgEqEk4K", - "CEFsbG9jYXRlEhUuYWdvbmVzLmRldi5zZGsuRW1wdHkaFS5hZ29uZXMuZGV2", - "LnNkay5FbXB0eSIUgtPkkwIOIgkvYWxsb2NhdGU6ASoSTgoIU2h1dGRvd24S", - "FS5hZ29uZXMuZGV2LnNkay5FbXB0eRoVLmFnb25lcy5kZXYuc2RrLkVtcHR5", - "IhSC0+STAg4iCS9zaHV0ZG93bjoBKhJMCgZIZWFsdGgSFS5hZ29uZXMuZGV2", - "LnNkay5FbXB0eRoVLmFnb25lcy5kZXYuc2RrLkVtcHR5IhKC0+STAgwiBy9o", - "ZWFsdGg6ASooARJXCg1HZXRHYW1lU2VydmVyEhUuYWdvbmVzLmRldi5zZGsu", - "RW1wdHkaGi5hZ29uZXMuZGV2LnNkay5HYW1lU2VydmVyIhOC0+STAg0SCy9n", - "YW1lc2VydmVyEmEKD1dhdGNoR2FtZVNlcnZlchIVLmFnb25lcy5kZXYuc2Rr", - "LkVtcHR5GhouYWdvbmVzLmRldi5zZGsuR2FtZVNlcnZlciIZgtPkkwITEhEv", - "d2F0Y2gvZ2FtZXNlcnZlcjABElcKCFNldExhYmVsEhguYWdvbmVzLmRldi5z", - "ZGsuS2V5VmFsdWUaFS5hZ29uZXMuZGV2LnNkay5FbXB0eSIagtPkkwIUGg8v", - "bWV0YWRhdGEvbGFiZWw6ASoSYQoNU2V0QW5ub3RhdGlvbhIYLmFnb25lcy5k", - "ZXYuc2RrLktleVZhbHVlGhUuYWdvbmVzLmRldi5zZGsuRW1wdHkiH4LT5JMC", - "GRoUL21ldGFkYXRhL2Fubm90YXRpb246ASoSTwoHUmVzZXJ2ZRIYLmFnb25l", - "cy5kZXYuc2RrLkR1cmF0aW9uGhUuYWdvbmVzLmRldi5zZGsuRW1wdHkiE4LT", - "5JMCDSIIL3Jlc2VydmU6ASpCB1oFLi9zZGtiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, }, - 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", "Addresses", "Ports", "Players", "Counters", "Lists" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Status.Types.Address), global::Agones.Dev.Sdk.GameServer.Types.Status.Types.Address.Parser, new[]{ "Type", "Address_" }, null, null, null, null), - 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), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Status.Types.CounterStatus), global::Agones.Dev.Sdk.GameServer.Types.Status.Types.CounterStatus.Parser, new[]{ "Count", "Capacity" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Agones.Dev.Sdk.GameServer.Types.Status.Types.ListStatus), global::Agones.Dev.Sdk.GameServer.Types.Status.Types.ListStatus.Parser, new[]{ "Capacity", "Values" }, null, null, null, null), - null, null, })}) - })); - } - #endregion - - } - #region Messages - /// - /// I am Empty - /// - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.SdkReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Empty() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Empty(Empty other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Empty Clone() { - return new Empty(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Empty); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Empty other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Empty other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - #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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.SdkReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeyValue() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeyValue(KeyValue other) : this() { - key_ = other.key_; - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeyValue Clone() { - return new KeyValue(this); - } - - /// Field number for the "key" field. - public const int KeyFieldNumber = 1; - private string key_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Key { - get { return key_; } - set { - key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private string value_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeyValue); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeyValue other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Key != other.Key) return false; - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Key.Length != 0) hash ^= Key.GetHashCode(); - if (Value.Length != 0) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Key.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); - } - if (Value.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeyValue other) { - if (other == null) { - return; - } - if (other.Key.Length != 0) { - Key = other.Key; - } - if (other.Value.Length != 0) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Key = input.ReadString(); - break; - } - case 18: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - #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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.SdkReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Duration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Duration(Duration other) : this() { - seconds_ = other.seconds_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Duration Clone() { - return new Duration(this); - } - - /// Field number for the "seconds" field. - public const int SecondsFieldNumber = 1; - private long seconds_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Seconds { - get { return seconds_; } - set { - seconds_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Duration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Duration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Seconds != other.Seconds) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Seconds != 0L) hash ^= Seconds.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Seconds != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Seconds); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Duration other) { - if (other == null) { - return; - } - if (other.Seconds != 0L) { - Seconds = other.Seconds; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Seconds = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - - } - - /// - /// A GameServer Custom Resource Definition object - /// 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 - #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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.SdkReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GameServer() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GameServer(GameServer other) : this() { - objectMeta_ = other.objectMeta_ != null ? other.objectMeta_.Clone() : null; - spec_ = other.spec_ != null ? other.spec_.Clone() : null; - status_ = other.status_ != null ? other.status_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GameServer Clone() { - return new GameServer(this); - } - - /// Field number for the "object_meta" field. - public const int ObjectMetaFieldNumber = 1; - private global::Agones.Dev.Sdk.GameServer.Types.ObjectMeta objectMeta_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Agones.Dev.Sdk.GameServer.Types.ObjectMeta ObjectMeta { - get { return objectMeta_; } - set { - objectMeta_ = value; - } - } - - /// Field number for the "spec" field. - public const int SpecFieldNumber = 2; - private global::Agones.Dev.Sdk.GameServer.Types.Spec spec_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Agones.Dev.Sdk.GameServer.Types.Spec Spec { - get { return spec_; } - set { - spec_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Agones.Dev.Sdk.GameServer.Types.Status status_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Agones.Dev.Sdk.GameServer.Types.Status Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GameServer); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GameServer other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ObjectMeta, other.ObjectMeta)) return false; - if (!object.Equals(Spec, other.Spec)) return false; - if (!object.Equals(Status, other.Status)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (objectMeta_ != null) hash ^= ObjectMeta.GetHashCode(); - if (spec_ != null) hash ^= Spec.GetHashCode(); - if (status_ != null) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (spec_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Spec); - } - if (status_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (objectMeta_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ObjectMeta); - } - if (spec_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); - } - if (status_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GameServer other) { - if (other == null) { - return; - } - if (other.objectMeta_ != null) { - if (objectMeta_ == null) { - ObjectMeta = new global::Agones.Dev.Sdk.GameServer.Types.ObjectMeta(); - } - ObjectMeta.MergeFrom(other.ObjectMeta); - } - if (other.spec_ != null) { - if (spec_ == null) { - Spec = new global::Agones.Dev.Sdk.GameServer.Types.Spec(); - } - Spec.MergeFrom(other.Spec); - } - if (other.status_ != null) { - if (status_ == null) { - Status = new global::Agones.Dev.Sdk.GameServer.Types.Status(); - } - Status.MergeFrom(other.Status); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, 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 - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// representation of the K8s ObjectMeta resource - /// - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.GameServer.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ObjectMeta() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ObjectMeta(ObjectMeta other) : this() { - name_ = other.name_; - namespace_ = other.namespace_; - uid_ = other.uid_; - resourceVersion_ = other.resourceVersion_; - generation_ = other.generation_; - creationTimestamp_ = other.creationTimestamp_; - deletionTimestamp_ = other.deletionTimestamp_; - annotations_ = other.annotations_.Clone(); - labels_ = other.labels_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ObjectMeta Clone() { - return new ObjectMeta(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "namespace" field. - public const int NamespaceFieldNumber = 2; - private string namespace_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Namespace { - get { return namespace_; } - set { - namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "uid" field. - public const int UidFieldNumber = 3; - private string uid_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Uid { - get { return uid_; } - set { - uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "resource_version" field. - public const int ResourceVersionFieldNumber = 4; - private string resourceVersion_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceVersion { - get { return resourceVersion_; } - set { - resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "generation" field. - public const int GenerationFieldNumber = 5; - private long generation_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Generation { - get { return generation_; } - set { - generation_ = value; - } - } - - /// Field number for the "creation_timestamp" field. - public const int CreationTimestampFieldNumber = 6; - private long creationTimestamp_; - /// - /// timestamp is in Epoch format, unit: seconds - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CreationTimestamp { - get { return creationTimestamp_; } - set { - creationTimestamp_ = value; - } - } - - /// Field number for the "deletion_timestamp" field. - public const int DeletionTimestampFieldNumber = 7; - private long deletionTimestamp_; - /// - /// optional deletion timestamp in Epoch format, unit: seconds - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long DeletionTimestamp { - get { return deletionTimestamp_; } - set { - deletionTimestamp_ = value; - } - } - - /// 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); - private readonly pbc::MapField annotations_ = new pbc::MapField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Annotations { - get { return annotations_; } - } - - /// 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); - private readonly pbc::MapField labels_ = new pbc::MapField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Labels { - get { return labels_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ObjectMeta); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ObjectMeta other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Namespace != other.Namespace) return false; - if (Uid != other.Uid) return false; - if (ResourceVersion != other.ResourceVersion) return false; - if (Generation != other.Generation) return false; - if (CreationTimestamp != other.CreationTimestamp) return false; - if (DeletionTimestamp != other.DeletionTimestamp) return false; - if (!Annotations.Equals(other.Annotations)) return false; - if (!Labels.Equals(other.Labels)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (Uid.Length != 0) hash ^= Uid.GetHashCode(); - if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); - if (Generation != 0L) hash ^= Generation.GetHashCode(); - if (CreationTimestamp != 0L) hash ^= CreationTimestamp.GetHashCode(); - if (DeletionTimestamp != 0L) hash ^= DeletionTimestamp.GetHashCode(); - hash ^= Annotations.GetHashCode(); - hash ^= Labels.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - 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(output, _map_annotations_codec); - labels_.WriteTo(output, _map_labels_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Namespace.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); - } - if (Uid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); - } - if (ResourceVersion.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); - } - if (Generation != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Generation); - } - if (CreationTimestamp != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CreationTimestamp); - } - if (DeletionTimestamp != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(DeletionTimestamp); - } - size += annotations_.CalculateSize(_map_annotations_codec); - size += labels_.CalculateSize(_map_labels_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ObjectMeta other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Namespace.Length != 0) { - Namespace = other.Namespace; - } - if (other.Uid.Length != 0) { - Uid = other.Uid; - } - if (other.ResourceVersion.Length != 0) { - ResourceVersion = other.ResourceVersion; - } - if (other.Generation != 0L) { - Generation = other.Generation; - } - if (other.CreationTimestamp != 0L) { - CreationTimestamp = other.CreationTimestamp; - } - if (other.DeletionTimestamp != 0L) { - DeletionTimestamp = other.DeletionTimestamp; - } - annotations_.Add(other.annotations_); - labels_.Add(other.labels_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, 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(input, _map_annotations_codec); - break; - } - case 74: { - labels_.AddEntriesFrom(input, _map_labels_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - #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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.GameServer.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Spec() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Spec(Spec other) : this() { - health_ = other.health_ != null ? other.health_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Spec Clone() { - return new Spec(this); - } - - /// Field number for the "health" field. - public const int HealthFieldNumber = 1; - private global::Agones.Dev.Sdk.GameServer.Types.Spec.Types.Health health_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Agones.Dev.Sdk.GameServer.Types.Spec.Types.Health Health { - get { return health_; } - set { - health_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Spec); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Spec other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Health, other.Health)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (health_ != null) hash ^= Health.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (health_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Health); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Spec other) { - if (other == null) { - return; - } - if (other.health_ != null) { - if (health_ == null) { - Health = new global::Agones.Dev.Sdk.GameServer.Types.Spec.Types.Health(); - } - Health.MergeFrom(other.Health); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (health_ == null) { - Health = new global::Agones.Dev.Sdk.GameServer.Types.Spec.Types.Health(); - } - input.ReadMessage(Health); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.GameServer.Types.Spec.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Health() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Health(Health other) : this() { - disabled_ = other.disabled_; - periodSeconds_ = other.periodSeconds_; - failureThreshold_ = other.failureThreshold_; - initialDelaySeconds_ = other.initialDelaySeconds_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Health Clone() { - return new Health(this); - } - - /// Field number for the "disabled" field. - public const int DisabledFieldNumber = 1; - private bool disabled_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Disabled { - get { return disabled_; } - set { - disabled_ = value; - } - } - - /// Field number for the "period_seconds" field. - public const int PeriodSecondsFieldNumber = 2; - private int periodSeconds_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PeriodSeconds { - get { return periodSeconds_; } - set { - periodSeconds_ = value; - } - } - - /// Field number for the "failure_threshold" field. - public const int FailureThresholdFieldNumber = 3; - private int failureThreshold_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int FailureThreshold { - get { return failureThreshold_; } - set { - failureThreshold_ = value; - } - } - - /// Field number for the "initial_delay_seconds" field. - public const int InitialDelaySecondsFieldNumber = 4; - private int initialDelaySeconds_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int InitialDelaySeconds { - get { return initialDelaySeconds_; } - set { - initialDelaySeconds_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Health); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Health other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Disabled != other.Disabled) return false; - if (PeriodSeconds != other.PeriodSeconds) return false; - if (FailureThreshold != other.FailureThreshold) return false; - if (InitialDelaySeconds != other.InitialDelaySeconds) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Disabled != false) hash ^= Disabled.GetHashCode(); - if (PeriodSeconds != 0) hash ^= PeriodSeconds.GetHashCode(); - if (FailureThreshold != 0) hash ^= FailureThreshold.GetHashCode(); - if (InitialDelaySeconds != 0) hash ^= InitialDelaySeconds.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - 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(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Disabled != false) { - size += 1 + 1; - } - if (PeriodSeconds != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PeriodSeconds); - } - if (FailureThreshold != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(FailureThreshold); - } - if (InitialDelaySeconds != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(InitialDelaySeconds); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Health other) { - if (other == null) { - return; - } - if (other.Disabled != false) { - Disabled = other.Disabled; - } - if (other.PeriodSeconds != 0) { - PeriodSeconds = other.PeriodSeconds; - } - if (other.FailureThreshold != 0) { - FailureThreshold = other.FailureThreshold; - } - if (other.InitialDelaySeconds != 0) { - InitialDelaySeconds = other.InitialDelaySeconds; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, 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 - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - - } - - } - #endregion - - } - - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.GameServer.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Status() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Status(Status other) : this() { - state_ = other.state_; - address_ = other.address_; - addresses_ = other.addresses_.Clone(); - ports_ = other.ports_.Clone(); - players_ = other.players_ != null ? other.players_.Clone() : null; - counters_ = other.counters_.Clone(); - lists_ = other.lists_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Status Clone() { - return new Status(this); - } - - /// Field number for the "state" field. - public const int StateFieldNumber = 1; - private string state_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string State { - get { return state_; } - set { - state_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "address" field. - public const int AddressFieldNumber = 2; - private string address_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Address { - get { return address_; } - set { - address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "addresses" field. - public const int AddressesFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_addresses_codec - = pb::FieldCodec.ForMessage(58, global::Agones.Dev.Sdk.GameServer.Types.Status.Types.Address.Parser); - private readonly pbc::RepeatedField addresses_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Addresses { - get { return addresses_; } - } - - /// Field number for the "ports" field. - public const int PortsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_ports_codec - = pb::FieldCodec.ForMessage(26, global::Agones.Dev.Sdk.GameServer.Types.Status.Types.Port.Parser); - private readonly pbc::RepeatedField ports_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Ports { - get { return ports_; } - } - - /// Field number for the "players" field. - public const int PlayersFieldNumber = 4; - private global::Agones.Dev.Sdk.GameServer.Types.Status.Types.PlayerStatus players_; - /// - /// [Stage:Alpha] - /// [FeatureFlag:PlayerTracking] - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Agones.Dev.Sdk.GameServer.Types.Status.Types.PlayerStatus Players { - get { return players_; } - set { - players_ = value; - } - } - - /// Field number for the "counters" field. - public const int CountersFieldNumber = 5; - private static readonly pbc::MapField.Codec _map_counters_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Agones.Dev.Sdk.GameServer.Types.Status.Types.CounterStatus.Parser), 42); - private readonly pbc::MapField counters_ = new pbc::MapField(); - /// - /// [Stage:Alpha] - /// [FeatureFlag:CountsAndLists] - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Counters { - get { return counters_; } - } - - /// Field number for the "lists" field. - public const int ListsFieldNumber = 6; - private static readonly pbc::MapField.Codec _map_lists_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Agones.Dev.Sdk.GameServer.Types.Status.Types.ListStatus.Parser), 50); - private readonly pbc::MapField lists_ = new pbc::MapField(); - /// - /// [Stage:Alpha] - /// [FeatureFlag:CountsAndLists] - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Lists { - get { return lists_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Status); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Status other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (State != other.State) return false; - if (Address != other.Address) return false; - if(!addresses_.Equals(other.addresses_)) return false; - if(!ports_.Equals(other.ports_)) return false; - if (!object.Equals(Players, other.Players)) return false; - if (!Counters.Equals(other.Counters)) return false; - if (!Lists.Equals(other.Lists)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (State.Length != 0) hash ^= State.GetHashCode(); - if (Address.Length != 0) hash ^= Address.GetHashCode(); - hash ^= addresses_.GetHashCode(); - hash ^= ports_.GetHashCode(); - if (players_ != null) hash ^= Players.GetHashCode(); - hash ^= Counters.GetHashCode(); - hash ^= Lists.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (Address.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Address); - } - ports_.WriteTo(output, _repeated_ports_codec); - if (players_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Players); - } - counters_.WriteTo(output, _map_counters_codec); - lists_.WriteTo(output, _map_lists_codec); - addresses_.WriteTo(output, _repeated_addresses_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - counters_.WriteTo(ref output, _map_counters_codec); - lists_.WriteTo(ref output, _map_lists_codec); - addresses_.WriteTo(ref output, _repeated_addresses_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (State.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(State); - } - if (Address.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); - } - size += addresses_.CalculateSize(_repeated_addresses_codec); - size += ports_.CalculateSize(_repeated_ports_codec); - if (players_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Players); - } - size += counters_.CalculateSize(_map_counters_codec); - size += lists_.CalculateSize(_map_lists_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Status other) { - if (other == null) { - return; - } - if (other.State.Length != 0) { - State = other.State; - } - if (other.Address.Length != 0) { - Address = other.Address; - } - addresses_.Add(other.addresses_); - ports_.Add(other.ports_); - if (other.players_ != null) { - if (players_ == null) { - Players = new global::Agones.Dev.Sdk.GameServer.Types.Status.Types.PlayerStatus(); - } - Players.MergeFrom(other.Players); - } - counters_.Add(other.counters_); - lists_.Add(other.lists_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - State = input.ReadString(); - break; - } - case 18: { - Address = input.ReadString(); - break; - } - case 26: { - ports_.AddEntriesFrom(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; - } - case 42: { - counters_.AddEntriesFrom(input, _map_counters_codec); - break; - } - case 50: { - lists_.AddEntriesFrom(input, _map_lists_codec); - break; - } - case 58: { - addresses_.AddEntriesFrom(input, _repeated_addresses_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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; - } - case 42: { - counters_.AddEntriesFrom(ref input, _map_counters_codec); - break; - } - case 50: { - lists_.AddEntriesFrom(ref input, _map_lists_codec); - break; - } - case 58: { - addresses_.AddEntriesFrom(ref input, _repeated_addresses_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the Status message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public sealed partial class Address : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser
_parser = new pb::MessageParser
(() => new Address()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser
Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.GameServer.Types.Status.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Address() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Address(Address other) : this() { - type_ = other.type_; - address_ = other.address_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Address Clone() { - return new Address(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private string type_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Type { - get { return type_; } - set { - type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "address" field. - public const int Address_FieldNumber = 2; - private string address_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Address_ { - get { return address_; } - set { - address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Address); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Address other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - if (Address_ != other.Address_) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type.Length != 0) hash ^= Type.GetHashCode(); - if (Address_.Length != 0) hash ^= Address_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Type); - } - if (Address_.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Address_); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Type); - } - if (Address_.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Address_); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); - } - if (Address_.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Address_); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Address other) { - if (other == null) { - return; - } - if (other.Type.Length != 0) { - Type = other.Type; - } - if (other.Address_.Length != 0) { - Address_ = other.Address_; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Type = input.ReadString(); - break; - } - case 18: { - Address_ = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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: { - Type = input.ReadString(); - break; - } - case 18: { - Address_ = input.ReadString(); - break; - } - } - } - } - #endif - - } - - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.GameServer.Types.Status.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Port() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Port(Port other) : this() { - name_ = other.name_; - port_ = other.port_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Port Clone() { - return new Port(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "port" field. - public const int Port_FieldNumber = 2; - private int port_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Port_ { - get { return port_; } - set { - port_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Port); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Port other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Port_ != other.Port_) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Port_ != 0) hash ^= Port_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (Port_ != 0) { - output.WriteRawTag(16); - output.WriteInt32(Port_); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Port_ != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port_); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Port other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Port_ != 0) { - Port_ = other.Port_; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 16: { - Port_ = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - - } - - /// - /// [Stage:Alpha] - /// [FeatureFlag:PlayerTracking] - /// - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.GameServer.Types.Status.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlayerStatus() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlayerStatus(PlayerStatus other) : this() { - count_ = other.count_; - capacity_ = other.capacity_; - ids_ = other.ids_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlayerStatus Clone() { - return new PlayerStatus(this); - } - - /// Field number for the "count" field. - public const int CountFieldNumber = 1; - private long count_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Count { - get { return count_; } - set { - count_ = value; - } - } - - /// Field number for the "capacity" field. - public const int CapacityFieldNumber = 2; - private long capacity_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Capacity { - get { return capacity_; } - set { - capacity_ = value; - } - } - - /// Field number for the "ids" field. - public const int IdsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_ids_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField ids_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Ids { - get { return ids_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PlayerStatus); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PlayerStatus other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Count != other.Count) return false; - if (Capacity != other.Capacity) return false; - if(!ids_.Equals(other.ids_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Count != 0L) hash ^= Count.GetHashCode(); - if (Capacity != 0L) hash ^= Capacity.GetHashCode(); - hash ^= ids_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (Capacity != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Capacity); - } - ids_.WriteTo(output, _repeated_ids_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Count != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); - } - if (Capacity != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Capacity); - } - size += ids_.CalculateSize(_repeated_ids_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PlayerStatus other) { - if (other == null) { - return; - } - if (other.Count != 0L) { - Count = other.Count; - } - if (other.Capacity != 0L) { - Capacity = other.Capacity; - } - ids_.Add(other.ids_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Count = input.ReadInt64(); - break; - } - case 16: { - Capacity = input.ReadInt64(); - break; - } - case 26: { - ids_.AddEntriesFrom(input, _repeated_ids_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - - } - - /// - /// [Stage:Alpha] - /// [FeatureFlag:CountsAndLists] - /// - public sealed partial class CounterStatus : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CounterStatus()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.GameServer.Types.Status.Descriptor.NestedTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CounterStatus() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CounterStatus(CounterStatus other) : this() { - count_ = other.count_; - capacity_ = other.capacity_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CounterStatus Clone() { - return new CounterStatus(this); - } - - /// Field number for the "count" field. - public const int CountFieldNumber = 1; - private long count_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Count { - get { return count_; } - set { - count_ = value; - } - } - - /// Field number for the "capacity" field. - public const int CapacityFieldNumber = 2; - private long capacity_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Capacity { - get { return capacity_; } - set { - capacity_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CounterStatus); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CounterStatus other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Count != other.Count) return false; - if (Capacity != other.Capacity) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Count != 0L) hash ^= Count.GetHashCode(); - if (Capacity != 0L) hash ^= Capacity.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (Capacity != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Capacity); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Count != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); - } - if (Capacity != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Capacity); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CounterStatus other) { - if (other == null) { - return; - } - if (other.Count != 0L) { - Count = other.Count; - } - if (other.Capacity != 0L) { - Capacity = other.Capacity; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Count = input.ReadInt64(); - break; - } - case 16: { - Capacity = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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; - } - } - } - } - #endif - - } - - /// - /// [Stage:Alpha] - /// [FeatureFlag:CountsAndLists] - /// - public sealed partial class ListStatus : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListStatus()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Agones.Dev.Sdk.GameServer.Types.Status.Descriptor.NestedTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListStatus() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListStatus(ListStatus other) : this() { - capacity_ = other.capacity_; - values_ = other.values_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListStatus Clone() { - return new ListStatus(this); - } - - /// Field number for the "capacity" field. - public const int CapacityFieldNumber = 1; - private long capacity_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Capacity { - get { return capacity_; } - set { - capacity_ = value; - } - } - - /// Field number for the "values" field. - public const int ValuesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_values_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Values { - get { return values_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListStatus); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListStatus other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Capacity != other.Capacity) return false; - if(!values_.Equals(other.values_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Capacity != 0L) hash ^= Capacity.GetHashCode(); - hash ^= values_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Capacity != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Capacity); - } - values_.WriteTo(output, _repeated_values_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Capacity != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Capacity); - } - values_.WriteTo(ref output, _repeated_values_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Capacity != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Capacity); - } - size += values_.CalculateSize(_repeated_values_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListStatus other) { - if (other == null) { - return; - } - if (other.Capacity != 0L) { - Capacity = other.Capacity; - } - values_.Add(other.values_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Capacity = input.ReadInt64(); - break; - } - case 18: { - values_.AddEntriesFrom(input, _repeated_values_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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: { - Capacity = input.ReadInt64(); - break; - } - case 18: { - values_.AddEntriesFrom(ref input, _repeated_values_codec); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/sdks/csharp/sdk/generated/SdkGrpc.cs b/sdks/csharp/sdk/generated/SdkGrpc.cs deleted file mode 100644 index fbccdcce85..0000000000 --- a/sdks/csharp/sdk/generated/SdkGrpc.cs +++ /dev/null @@ -1,737 +0,0 @@ -// Copyright 2023 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. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: sdk.proto -// -// Original file comments: -// Copyright 2017 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. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Agones.Dev.Sdk { - /// - /// SDK service to be used in the GameServer SDK to the Pod Sidecar - /// - public static partial class SDK - { - static readonly string __ServiceName = "agones.dev.sdk.SDK"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - 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)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - 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()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_GameServer = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.GameServer.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_KeyValue = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.KeyValue.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_agones_dev_sdk_Duration = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Agones.Dev.Sdk.Duration.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Ready = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Ready", - __Marshaller_agones_dev_sdk_Empty, - __Marshaller_agones_dev_sdk_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Allocate = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Allocate", - __Marshaller_agones_dev_sdk_Empty, - __Marshaller_agones_dev_sdk_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Shutdown = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Shutdown", - __Marshaller_agones_dev_sdk_Empty, - __Marshaller_agones_dev_sdk_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Health = new grpc::Method( - grpc::MethodType.ClientStreaming, - __ServiceName, - "Health", - __Marshaller_agones_dev_sdk_Empty, - __Marshaller_agones_dev_sdk_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetGameServer = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetGameServer", - __Marshaller_agones_dev_sdk_Empty, - __Marshaller_agones_dev_sdk_GameServer); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_WatchGameServer = new grpc::Method( - grpc::MethodType.ServerStreaming, - __ServiceName, - "WatchGameServer", - __Marshaller_agones_dev_sdk_Empty, - __Marshaller_agones_dev_sdk_GameServer); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SetLabel = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "SetLabel", - __Marshaller_agones_dev_sdk_KeyValue, - __Marshaller_agones_dev_sdk_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SetAnnotation = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "SetAnnotation", - __Marshaller_agones_dev_sdk_KeyValue, - __Marshaller_agones_dev_sdk_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Reserve = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Reserve", - __Marshaller_agones_dev_sdk_Duration, - __Marshaller_agones_dev_sdk_Empty); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Agones.Dev.Sdk.SdkReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of SDK - [grpc::BindServiceMethod(typeof(SDK), "BindService")] - public abstract partial class SDKBase - { - /// - /// Call when the GameServer is ready - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Ready(global::Agones.Dev.Sdk.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Call to self Allocation the GameServer - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Allocate(global::Agones.Dev.Sdk.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Call when the GameServer is shutting down - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Shutdown(global::Agones.Dev.Sdk.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Send a Empty every d Duration to declare that this GameSever is healthy - /// - /// Used for reading requests from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Health(grpc::IAsyncStreamReader requestStream, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Retrieve the current GameServer data - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetGameServer(global::Agones.Dev.Sdk.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Send GameServer details whenever the GameServer is updated - /// - /// The request received from the client. - /// Used for sending responses back to the client. - /// The context of the server-side call handler being invoked. - /// A task indicating completion of the handler. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task WatchGameServer(global::Agones.Dev.Sdk.Empty request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Apply a Label to the backing GameServer metadata - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task SetLabel(global::Agones.Dev.Sdk.KeyValue request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Apply a Annotation to the backing GameServer metadata - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task SetAnnotation(global::Agones.Dev.Sdk.KeyValue request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Marks the GameServer as the Reserved state for Duration - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Reserve(global::Agones.Dev.Sdk.Duration request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for SDK - public partial class SDKClient : grpc::ClientBase - { - /// Creates a new client for SDK - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public SDKClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for SDK that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public SDKClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected SDKClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected SDKClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Call when the GameServer is ready - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty Ready(global::Agones.Dev.Sdk.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Ready(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Call when the GameServer is ready - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty Ready(global::Agones.Dev.Sdk.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Ready, null, options, request); - } - /// - /// Call when the GameServer is ready - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ReadyAsync(global::Agones.Dev.Sdk.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ReadyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Call when the GameServer is ready - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ReadyAsync(global::Agones.Dev.Sdk.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Ready, null, options, request); - } - /// - /// Call to self Allocation the GameServer - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty Allocate(global::Agones.Dev.Sdk.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Allocate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Call to self Allocation the GameServer - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty Allocate(global::Agones.Dev.Sdk.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Allocate, null, options, request); - } - /// - /// Call to self Allocation the GameServer - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AllocateAsync(global::Agones.Dev.Sdk.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AllocateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Call to self Allocation the GameServer - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AllocateAsync(global::Agones.Dev.Sdk.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Allocate, null, options, request); - } - /// - /// Call when the GameServer is shutting down - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty Shutdown(global::Agones.Dev.Sdk.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Shutdown(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Call when the GameServer is shutting down - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty Shutdown(global::Agones.Dev.Sdk.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Shutdown, null, options, request); - } - /// - /// Call when the GameServer is shutting down - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ShutdownAsync(global::Agones.Dev.Sdk.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ShutdownAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Call when the GameServer is shutting down - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ShutdownAsync(global::Agones.Dev.Sdk.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Shutdown, null, options, request); - } - /// - /// Send a Empty every d Duration to declare that this GameSever is healthy - /// - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncClientStreamingCall Health(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Health(new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Send a Empty every d Duration to declare that this GameSever is healthy - /// - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncClientStreamingCall Health(grpc::CallOptions options) - { - return CallInvoker.AsyncClientStreamingCall(__Method_Health, null, options); - } - /// - /// Retrieve the current GameServer data - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.GameServer GetGameServer(global::Agones.Dev.Sdk.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGameServer(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Retrieve the current GameServer data - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.GameServer GetGameServer(global::Agones.Dev.Sdk.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetGameServer, null, options, request); - } - /// - /// Retrieve the current GameServer data - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGameServerAsync(global::Agones.Dev.Sdk.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGameServerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Retrieve the current GameServer data - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGameServerAsync(global::Agones.Dev.Sdk.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetGameServer, null, options, request); - } - /// - /// Send GameServer details whenever the GameServer is updated - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall WatchGameServer(global::Agones.Dev.Sdk.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return WatchGameServer(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Send GameServer details whenever the GameServer is updated - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall WatchGameServer(global::Agones.Dev.Sdk.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncServerStreamingCall(__Method_WatchGameServer, null, options, request); - } - /// - /// Apply a Label to the backing GameServer metadata - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty SetLabel(global::Agones.Dev.Sdk.KeyValue request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SetLabel(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Apply a Label to the backing GameServer metadata - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty SetLabel(global::Agones.Dev.Sdk.KeyValue request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_SetLabel, null, options, request); - } - /// - /// Apply a Label to the backing GameServer metadata - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SetLabelAsync(global::Agones.Dev.Sdk.KeyValue request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SetLabelAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Apply a Label to the backing GameServer metadata - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SetLabelAsync(global::Agones.Dev.Sdk.KeyValue request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_SetLabel, null, options, request); - } - /// - /// Apply a Annotation to the backing GameServer metadata - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty SetAnnotation(global::Agones.Dev.Sdk.KeyValue request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SetAnnotation(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Apply a Annotation to the backing GameServer metadata - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty SetAnnotation(global::Agones.Dev.Sdk.KeyValue request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_SetAnnotation, null, options, request); - } - /// - /// Apply a Annotation to the backing GameServer metadata - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SetAnnotationAsync(global::Agones.Dev.Sdk.KeyValue request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SetAnnotationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Apply a Annotation to the backing GameServer metadata - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SetAnnotationAsync(global::Agones.Dev.Sdk.KeyValue request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_SetAnnotation, null, options, request); - } - /// - /// Marks the GameServer as the Reserved state for Duration - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty Reserve(global::Agones.Dev.Sdk.Duration request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Reserve(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Marks the GameServer as the Reserved state for Duration - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Agones.Dev.Sdk.Empty Reserve(global::Agones.Dev.Sdk.Duration request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Reserve, null, options, request); - } - /// - /// Marks the GameServer as the Reserved state for Duration - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ReserveAsync(global::Agones.Dev.Sdk.Duration request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ReserveAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Marks the GameServer as the Reserved state for Duration - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ReserveAsync(global::Agones.Dev.Sdk.Duration request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Reserve, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override SDKClient NewInstance(ClientBaseConfiguration configuration) - { - return new SDKClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(SDKBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_Ready, serviceImpl.Ready) - .AddMethod(__Method_Allocate, serviceImpl.Allocate) - .AddMethod(__Method_Shutdown, serviceImpl.Shutdown) - .AddMethod(__Method_Health, serviceImpl.Health) - .AddMethod(__Method_GetGameServer, serviceImpl.GetGameServer) - .AddMethod(__Method_WatchGameServer, serviceImpl.WatchGameServer) - .AddMethod(__Method_SetLabel, serviceImpl.SetLabel) - .AddMethod(__Method_SetAnnotation, serviceImpl.SetAnnotation) - .AddMethod(__Method_Reserve, serviceImpl.Reserve).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, SDKBase serviceImpl) - { - serviceBinder.AddMethod(__Method_Ready, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Ready)); - serviceBinder.AddMethod(__Method_Allocate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Allocate)); - serviceBinder.AddMethod(__Method_Shutdown, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Shutdown)); - serviceBinder.AddMethod(__Method_Health, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod(serviceImpl.Health)); - serviceBinder.AddMethod(__Method_GetGameServer, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGameServer)); - serviceBinder.AddMethod(__Method_WatchGameServer, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.WatchGameServer)); - serviceBinder.AddMethod(__Method_SetLabel, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetLabel)); - serviceBinder.AddMethod(__Method_SetAnnotation, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetAnnotation)); - serviceBinder.AddMethod(__Method_Reserve, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Reserve)); - } - - } -} -#endregion diff --git a/sdks/csharp/test/AgonesAlphaSDKClientTests.cs b/sdks/csharp/test/AgonesAlphaSDKClientTests.cs index d4fd517e5c..141696143c 100644 --- a/sdks/csharp/test/AgonesAlphaSDKClientTests.cs +++ b/sdks/csharp/test/AgonesAlphaSDKClientTests.cs @@ -14,13 +14,13 @@ using Agones.Dev.Sdk.Alpha; using Grpc.Core; -using Grpc.Core.Testing; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System; +using Grpc.Net.Client; using Microsoft.Extensions.Logging; namespace Agones.Tests @@ -34,9 +34,8 @@ public async Task GetPlayerCapacity_Sends_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = new Count() { Count_ = 1 }; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - - mockClient.Setup(m => m.GetPlayerCapacityAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.GetPlayerCapacityAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (Empty _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); mockSdk.alpha.client = mockClient.Object; var result = await mockSdk.Alpha().GetPlayerCapacityAsync(); @@ -49,9 +48,8 @@ public async Task SetPlayerCapacity_Sends_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = StatusCode.OK; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - - mockClient.Setup(m => m.SetPlayerCapacityAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.SetPlayerCapacityAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (Count _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => new Status(expected, ""), () => new Metadata(), () => { })); mockSdk.alpha.client = mockClient.Object; var result = await mockSdk.Alpha().SetPlayerCapacityAsync(1); @@ -64,9 +62,12 @@ public async Task PlayerConnect_Sends_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = new Bool() { Bool_ = true }; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - mockClient.Setup(m => m.PlayerConnectAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.PlayerConnectAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (PlayerID _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Bool + { + Bool_ = true + }), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); mockSdk.alpha.client = mockClient.Object; var result = await mockSdk.Alpha().PlayerConnectAsync("test"); @@ -79,9 +80,12 @@ public async Task PlayerDisconnect_Sends_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = new Bool() { Bool_ = true }; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - mockClient.Setup(m => m.PlayerDisconnectAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.PlayerDisconnectAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (PlayerID _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Bool + { + Bool_ = true + }), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); mockSdk.alpha.client = mockClient.Object; var result = await mockSdk.Alpha().PlayerDisconnectAsync("test"); @@ -94,9 +98,8 @@ public async Task GetPlayerCount_Sends_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = new Count() { Count_ = 1 }; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - - mockClient.Setup(m => m.GetPlayerCountAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.GetPlayerCountAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (Empty _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); mockSdk.alpha.client = mockClient.Object; var result = await mockSdk.Alpha().GetPlayerCountAsync(); @@ -109,9 +112,8 @@ public async Task IsPlayerConnected_Sends_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = new Bool() { Bool_ = true }; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - - mockClient.Setup(m => m.IsPlayerConnectedAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.IsPlayerConnectedAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (PlayerID _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); mockSdk.alpha.client = mockClient.Object; var result = await mockSdk.Alpha().IsPlayerConnectedAsync("test"); @@ -125,9 +127,8 @@ public async Task GetConnectedPlayers_Sends_OK() var mockSdk = new AgonesSDK(); var expected = new List { "player1", "player2" }; var playerList = new PlayerIDList() { List = { expected } }; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(playerList), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - - mockClient.Setup(m => m.GetConnectedPlayersAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.GetConnectedPlayersAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (Empty _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(playerList), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); mockSdk.alpha.client = mockClient.Object; var result = await mockSdk.Alpha().GetConnectedPlayersAsync(); @@ -138,7 +139,8 @@ public async Task GetConnectedPlayers_Sends_OK() public void InstantiateWithParameters_OK() { var mockSdk = new AgonesSDK(); - var mockChannel = new Channel(mockSdk.Host, mockSdk.Port, ChannelCredentials.Insecure); + //var mockChannel = new Channel(mockSdk.Host, mockSdk.Port, ChannelCredentials.Insecure); + var mockChannel = GrpcChannel.ForAddress($"http://{mockSdk.Host}:{mockSdk.Port}"); ILogger mockLogger = new Mock().Object; CancellationTokenSource mockCancellationTokenSource = new Mock().Object; bool exceptionOccured = false; diff --git a/sdks/csharp/test/AgonesSDKClientTests.cs b/sdks/csharp/test/AgonesSDKClientTests.cs index 37494353e4..04d1b4eb4c 100644 --- a/sdks/csharp/test/AgonesSDKClientTests.cs +++ b/sdks/csharp/test/AgonesSDKClientTests.cs @@ -14,7 +14,6 @@ using Agones.Dev.Sdk; using Grpc.Core; -using Grpc.Core.Testing; using System.Threading; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -33,9 +32,8 @@ public async Task Ready_Mock_Returns_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = StatusCode.OK; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - - mockClient.Setup(m => m.ReadyAsync(It.IsAny(), It.IsAny() , It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.ReadyAsync(It.IsAny(), It.IsAny() , It.IsAny(), It.IsAny())).Returns( + (Empty _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => new Status(expected, ""), () => new Metadata(), () => { })); mockSdk.client = mockClient.Object; var result = await mockSdk.ReadyAsync(); @@ -48,9 +46,8 @@ public async Task Allocate_Mock_Returns_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = StatusCode.OK; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - - mockClient.Setup(m => m.AllocateAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.AllocateAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (Empty _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => new Status(expected, ""), () => new Metadata(), () => { })); mockSdk.client = mockClient.Object; var result = await mockSdk.AllocateAsync(); @@ -63,9 +60,8 @@ public async Task Reserve_Returns_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = StatusCode.OK; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - - mockClient.Setup(m => m.ReserveAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.ReserveAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (Duration _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => new Status(expected, ""), () => new Metadata(), () => { })); mockSdk.client = mockClient.Object; var result = await mockSdk.ReserveAsync(30); @@ -77,12 +73,12 @@ public async Task Reserve_Sends_OK() { var mockClient = new Mock(); var mockSdk = new AgonesSDK(); - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); var expectedDuration = new Duration(); expectedDuration.Seconds = 30; Duration actualDuration = null; - mockClient.Setup(m => m.ReserveAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall) + mockClient.Setup(m => m.ReserveAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (Duration _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })) .Callback( (Duration dur, Metadata md, DateTime? dt, CancellationToken ct) => { actualDuration = dur; @@ -99,9 +95,9 @@ public async Task GetGameServer_Returns_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = new GameServer(); - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - mockClient.Setup(m => m.GetGameServerAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.GetGameServerAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (Empty _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); mockSdk.client = mockClient.Object; var result = await mockSdk.GetGameServerAsync(); @@ -129,10 +125,11 @@ public async Task WatchGameServer_Returns_OK() var mockSdk = new AgonesSDK(); var expectedWatchReturn = new GameServer(); GameServer actualWatchReturn = null; - var serverStream = TestCalls.AsyncServerStreamingCall(mockResponseStream.Object, Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - mockClient.Setup(m => m.WatchGameServer(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(serverStream); - mockResponseStream.Setup(m => m.Current).Returns(expectedWatchReturn); + mockClient.Setup(m => m.WatchGameServer(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (Empty _, Metadata _, DateTime? _, CancellationToken _) => new AsyncServerStreamingCall(mockResponseStream.Object, Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); + mockResponseStream.Setup(m => m.Current).Returns( + () => expectedWatchReturn); mockResponseStream.SetupSequence(m => m.MoveNext(It.IsAny())) .Returns(Task.FromResult(true)) .Returns(Task.FromResult(false)); @@ -160,9 +157,8 @@ public async Task Shutdown_Returns_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = StatusCode.OK; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - - mockClient.Setup(m => m.ShutdownAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.ShutdownAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (Empty _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); mockSdk.client = mockClient.Object; var result = await mockSdk.ShutDownAsync(); @@ -175,9 +171,8 @@ public async Task SetLabel_Returns_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = StatusCode.OK; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - - mockClient.Setup(m => m.SetLabelAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.SetLabelAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (KeyValue _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); mockSdk.client = mockClient.Object; var result = await mockSdk.SetLabelAsync("",""); @@ -189,13 +184,12 @@ public async Task SetLabel_Sends_OK() { var mockClient = new Mock(); var mockSdk = new AgonesSDK(); - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); KeyValue expectedKeyValue = new KeyValue(); expectedKeyValue.Key = "Test"; expectedKeyValue.Value = "Test"; KeyValue actualKeyValue = null; - - mockClient.Setup(m => m.SetLabelAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall) + mockClient.Setup(m => m.SetLabelAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (KeyValue _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })) .Callback( (KeyValue kv, Metadata md,DateTime? dt, CancellationToken ct) => { actualKeyValue = kv; }); @@ -211,9 +205,8 @@ public async Task SetAnnotation_Returns_OK() var mockClient = new Mock(); var mockSdk = new AgonesSDK(); var expected = StatusCode.OK; - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); - - mockClient.Setup(m => m.SetAnnotationAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall); + mockClient.Setup(m => m.SetAnnotationAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (KeyValue _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); mockSdk.client = mockClient.Object; var result = await mockSdk.SetAnnotationAsync("", ""); @@ -225,13 +218,13 @@ public async Task SetAnnotation_Sends_OK() { var mockClient = new Mock(); var mockSdk = new AgonesSDK(); - var fakeCall = TestCalls.AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { }); KeyValue expectedKeyValue = new KeyValue(); expectedKeyValue.Key = "Test"; expectedKeyValue.Value = "Test"; KeyValue actualKeyValue = null; - mockClient.Setup(m => m.SetAnnotationAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(fakeCall) + mockClient.Setup(m => m.SetAnnotationAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( + (KeyValue _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })) .Callback( (KeyValue kv, Metadata md, DateTime? dt, CancellationToken ct) => { actualKeyValue = kv; diff --git a/sdks/csharp/test/csharp-sdk-test.csproj b/sdks/csharp/test/csharp-sdk-test.csproj index 156ab6345d..33ae571668 100644 --- a/sdks/csharp/test/csharp-sdk-test.csproj +++ b/sdks/csharp/test/csharp-sdk-test.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net7.0 false @@ -13,8 +13,7 @@ - - +