From 067464cf070ee88312189749c3f9484327637b51 Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Mon, 4 Sep 2023 08:27:35 +0100 Subject: [PATCH] feat: Add more events This adds events for: - AlloyDb - Datastore - GKE Hub - Metastore - NetworkConnectivity - NetworkManagement - Notebooks - Redis - VM Migration - Video - Vision AI --- .../Cloud/AlloyDb/V1/BackupEventData.g.cs | 30 + .../Cloud/AlloyDb/V1/ClusterEventData.g.cs | 30 + .../Cloud/AlloyDb/V1/Data.g.cs | 8549 +++++++ .../Cloud/AlloyDb/V1/ExtensionAttributes.g.cs | 65 + .../Cloud/AlloyDb/V1/InstanceEventData.g.cs | 30 + .../Cloud/Datastore/V1/Data.g.cs | 3274 +++ .../Cloud/Datastore/V1/EntityEventData.g.cs | 33 + .../Datastore/V1/ExtensionAttributes.g.cs | 65 + .../Cloud/GkeHub/V1/Data.g.cs | 8588 +++++++ .../Cloud/GkeHub/V1/ExtensionAttributes.g.cs | 77 + .../Cloud/GkeHub/V1/FeatureEventData.g.cs | 30 + .../GkeHub/V1/MembershipBindingEventData.g.cs | 30 + .../Cloud/GkeHub/V1/MembershipEventData.g.cs | 30 + .../Cloud/GkeHub/V1/ScopeEventData.g.cs | 27 + .../Cloud/Metastore/V1/BackupEventData.g.cs | 27 + .../Cloud/Metastore/V1/Data.g.cs | 8436 +++++++ .../Metastore/V1/ExtensionAttributes.g.cs | 77 + .../Metastore/V1/FederationEventData.g.cs | 30 + .../Metastore/V1/MetadataImportEventData.g.cs | 27 + .../Cloud/Metastore/V1/ServiceEventData.g.cs | 30 + .../Cloud/NetworkConnectivity/V1/Data.g.cs | 7850 +++++++ .../V1/ExtensionAttributes.g.cs | 99 + .../NetworkConnectivity/V1/HubEventData.g.cs | 30 + .../V1/ServiceClassEventData.g.cs | 27 + .../V1/ServiceConnectionMapEventData.g.cs | 30 + .../V1/ServiceConnectionPolicyEventData.g.cs | 30 + .../V1/ServiceConnectionTokenEventData.g.cs | 27 + .../V1/SpokeEventData.g.cs | 30 + .../V1/ConnectivityTestEventData.g.cs | 30 + .../Cloud/NetworkManagement/V1/Data.g.cs | 12959 +++++++++++ .../V1/ExtensionAttributes.g.cs | 36 + .../Cloud/Notebooks/V1/Data.g.cs | 14523 ++++++++++++ .../Notebooks/V1/EnvironmentEventData.g.cs | 27 + .../Notebooks/V1/ExecutionEventData.g.cs | 27 + .../Notebooks/V1/ExtensionAttributes.g.cs | 84 + .../Cloud/Notebooks/V1/InstanceEventData.g.cs | 27 + .../Cloud/Notebooks/V1/RuntimeEventData.g.cs | 30 + .../Cloud/Notebooks/V1/ScheduleEventData.g.cs | 27 + .../Cloud/Redis/V1/Data.g.cs | 4041 ++++ .../Cloud/Redis/V1/ExtensionAttributes.g.cs | 36 + .../Cloud/Redis/V1/InstanceEventData.g.cs | 30 + .../VMMigration/V1/CloneJobEventData.g.cs | 24 + .../VMMigration/V1/CutoverJobEventData.g.cs | 24 + .../Cloud/VMMigration/V1/Data.g.cs | 18882 +++++++++++++++ .../V1/DatacenterConnectorEventData.g.cs | 27 + .../VMMigration/V1/ExtensionAttributes.g.cs | 132 + .../Cloud/VMMigration/V1/GroupEventData.g.cs | 30 + .../VMMigration/V1/MigratingVmEventData.g.cs | 30 + .../Cloud/VMMigration/V1/SourceEventData.g.cs | 30 + .../V1/TargetProjectEventData.g.cs | 30 + .../V1/UtilizationReportEventData.g.cs | 27 + .../Cloud/Video/Transcoder/V1/Data.g.cs | 15096 ++++++++++++ .../Transcoder/V1/ExtensionAttributes.g.cs | 47 + .../Video/Transcoder/V1/JobEventData.g.cs | 27 + .../Transcoder/V1/JobTemplateEventData.g.cs | 27 + .../Cloud/VisionAI/V1/AnalysisEventData.g.cs | 30 + .../VisionAI/V1/ApplicationEventData.g.cs | 30 + .../Cloud/VisionAI/V1/ClusterEventData.g.cs | 30 + .../Cloud/VisionAI/V1/Data.g.cs | 19347 ++++++++++++++++ .../Cloud/VisionAI/V1/DraftEventData.g.cs | 30 + .../Cloud/VisionAI/V1/EventEventData.g.cs | 30 + .../VisionAI/V1/ExtensionAttributes.g.cs | 158 + .../Cloud/VisionAI/V1/ProcessEventData.g.cs | 30 + .../Cloud/VisionAI/V1/ProcessorEventData.g.cs | 30 + .../Cloud/VisionAI/V1/SeriesEventData.g.cs | 30 + .../Cloud/VisionAI/V1/StreamEventData.g.cs | 30 + 66 files changed, 123693 insertions(+) create mode 100644 src/Google.Events.Protobuf/Cloud/AlloyDb/V1/BackupEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/AlloyDb/V1/ClusterEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/AlloyDb/V1/Data.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/AlloyDb/V1/ExtensionAttributes.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/AlloyDb/V1/InstanceEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Datastore/V1/Data.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Datastore/V1/EntityEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Datastore/V1/ExtensionAttributes.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/GkeHub/V1/Data.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/GkeHub/V1/ExtensionAttributes.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/GkeHub/V1/FeatureEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/GkeHub/V1/MembershipBindingEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/GkeHub/V1/MembershipEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/GkeHub/V1/ScopeEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Metastore/V1/BackupEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Metastore/V1/Data.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Metastore/V1/ExtensionAttributes.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Metastore/V1/FederationEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Metastore/V1/MetadataImportEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Metastore/V1/ServiceEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/Data.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ExtensionAttributes.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/HubEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceClassEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionMapEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionPolicyEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionTokenEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/SpokeEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/ConnectivityTestEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/Data.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/ExtensionAttributes.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Notebooks/V1/Data.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Notebooks/V1/EnvironmentEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Notebooks/V1/ExecutionEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Notebooks/V1/ExtensionAttributes.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Notebooks/V1/InstanceEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Notebooks/V1/RuntimeEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Notebooks/V1/ScheduleEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Redis/V1/Data.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Redis/V1/ExtensionAttributes.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Redis/V1/InstanceEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VMMigration/V1/CloneJobEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VMMigration/V1/CutoverJobEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VMMigration/V1/Data.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VMMigration/V1/DatacenterConnectorEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VMMigration/V1/ExtensionAttributes.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VMMigration/V1/GroupEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VMMigration/V1/MigratingVmEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VMMigration/V1/SourceEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VMMigration/V1/TargetProjectEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VMMigration/V1/UtilizationReportEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Video/Transcoder/V1/Data.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Video/Transcoder/V1/ExtensionAttributes.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Video/Transcoder/V1/JobEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/Video/Transcoder/V1/JobTemplateEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VisionAI/V1/AnalysisEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VisionAI/V1/ApplicationEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VisionAI/V1/ClusterEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VisionAI/V1/Data.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VisionAI/V1/DraftEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VisionAI/V1/EventEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VisionAI/V1/ExtensionAttributes.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VisionAI/V1/ProcessEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VisionAI/V1/ProcessorEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VisionAI/V1/SeriesEventData.g.cs create mode 100644 src/Google.Events.Protobuf/Cloud/VisionAI/V1/StreamEventData.g.cs diff --git a/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/BackupEventData.g.cs b/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/BackupEventData.g.cs new file mode 100644 index 0000000..4bc39c3 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/BackupEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.AlloyDb.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class BackupEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.alloydb.backup.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.alloydb.backup.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.alloydb.backup.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/ClusterEventData.g.cs b/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/ClusterEventData.g.cs new file mode 100644 index 0000000..699f420 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/ClusterEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.AlloyDb.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class ClusterEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.alloydb.cluster.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.alloydb.cluster.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.alloydb.cluster.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/Data.g.cs b/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/Data.g.cs new file mode 100644 index 0000000..2939ee6 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/Data.g.cs @@ -0,0 +1,8549 @@ +// Copyright 2023, 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 +// +// https://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. + +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/alloydb/v1/data.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 Google.Events.Protobuf.Cloud.AlloyDb.V1 { + + /// Holder for reflection information generated from google/events/cloud/alloydb/v1/data.proto + public static partial class DataReflection { + + #region Descriptor + /// File descriptor for google/events/cloud/alloydb/v1/data.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cilnb29nbGUvZXZlbnRzL2Nsb3VkL2FsbG95ZGIvdjEvZGF0YS5wcm90bxIe", + "Z29vZ2xlLmV2ZW50cy5jbG91ZC5hbGxveWRiLnYxGh5nb29nbGUvcHJvdG9i", + "dWYvZHVyYXRpb24ucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAu", + "cHJvdG8aG2dvb2dsZS90eXBlL2RheW9md2Vlay5wcm90bxobZ29vZ2xlL3R5", + "cGUvdGltZW9mZGF5LnByb3RvIi4KDFVzZXJQYXNzd29yZBIMCgR1c2VyGAEg", + "ASgJEhAKCHBhc3N3b3JkGAIgASgJItsBCg9NaWdyYXRpb25Tb3VyY2USEQoJ", + "aG9zdF9wb3J0GAEgASgJEhQKDHJlZmVyZW5jZV9pZBgCIAEoCRJYCgtzb3Vy", + "Y2VfdHlwZRgDIAEoDjJDLmdvb2dsZS5ldmVudHMuY2xvdWQuYWxsb3lkYi52", + "MS5NaWdyYXRpb25Tb3VyY2UuTWlncmF0aW9uU291cmNlVHlwZSJFChNNaWdy", + "YXRpb25Tb3VyY2VUeXBlEiUKIU1JR1JBVElPTl9TT1VSQ0VfVFlQRV9VTlNQ", + "RUNJRklFRBAAEgcKA0RNUxABIigKEEVuY3J5cHRpb25Db25maWcSFAoMa21z", + "X2tleV9uYW1lGAEgASgJItYBCg5FbmNyeXB0aW9uSW5mbxJMCg9lbmNyeXB0", + "aW9uX3R5cGUYASABKA4yMy5nb29nbGUuZXZlbnRzLmNsb3VkLmFsbG95ZGIu", + "djEuRW5jcnlwdGlvbkluZm8uVHlwZRIYChBrbXNfa2V5X3ZlcnNpb25zGAIg", + "AygJIlwKBFR5cGUSFAoQVFlQRV9VTlNQRUNJRklFRBAAEh0KGUdPT0dMRV9E", + "RUZBVUxUX0VOQ1JZUFRJT04QARIfChtDVVNUT01FUl9NQU5BR0VEX0VOQ1JZ", + "UFRJT04QAiK8AgoJU3NsQ29uZmlnEkMKCHNzbF9tb2RlGAEgASgOMjEuZ29v", + "Z2xlLmV2ZW50cy5jbG91ZC5hbGxveWRiLnYxLlNzbENvbmZpZy5Tc2xNb2Rl", + "EkUKCWNhX3NvdXJjZRgCIAEoDjIyLmdvb2dsZS5ldmVudHMuY2xvdWQuYWxs", + "b3lkYi52MS5Tc2xDb25maWcuQ2FTb3VyY2UiZQoHU3NsTW9kZRIYChRTU0xf", + "TU9ERV9VTlNQRUNJRklFRBAAEhIKDlNTTF9NT0RFX0FMTE9XEAESFAoQU1NM", + "X01PREVfUkVRVUlSRRACEhYKElNTTF9NT0RFX1ZFUklGWV9DQRADIjwKCENh", + "U291cmNlEhkKFUNBX1NPVVJDRV9VTlNQRUNJRklFRBAAEhUKEUNBX1NPVVJD", + "RV9NQU5BR0VEEAEigwcKFUF1dG9tYXRlZEJhY2t1cFBvbGljeRJfCg93ZWVr", + "bHlfc2NoZWR1bGUYAiABKAsyRC5nb29nbGUuZXZlbnRzLmNsb3VkLmFsbG95", + "ZGIudjEuQXV0b21hdGVkQmFja3VwUG9saWN5LldlZWtseVNjaGVkdWxlSAAS", + "aAoUdGltZV9iYXNlZF9yZXRlbnRpb24YBCABKAsySC5nb29nbGUuZXZlbnRz", + "LmNsb3VkLmFsbG95ZGIudjEuQXV0b21hdGVkQmFja3VwUG9saWN5LlRpbWVC", + "YXNlZFJldGVudGlvbkgBEnAKGHF1YW50aXR5X2Jhc2VkX3JldGVudGlvbhgF", + "IAEoCzJMLmdvb2dsZS5ldmVudHMuY2xvdWQuYWxsb3lkYi52MS5BdXRvbWF0", + "ZWRCYWNrdXBQb2xpY3kuUXVhbnRpdHlCYXNlZFJldGVudGlvbkgBEhQKB2Vu", + "YWJsZWQYASABKAhIAogBARIwCg1iYWNrdXBfd2luZG93GAMgASgLMhkuZ29v", + "Z2xlLnByb3RvYnVmLkR1cmF0aW9uEksKEWVuY3J5cHRpb25fY29uZmlnGAgg", + "ASgLMjAuZ29vZ2xlLmV2ZW50cy5jbG91ZC5hbGxveWRiLnYxLkVuY3J5cHRp", + "b25Db25maWcSEAoIbG9jYXRpb24YBiABKAkSUQoGbGFiZWxzGAcgAygLMkEu", + "Z29vZ2xlLmV2ZW50cy5jbG91ZC5hbGxveWRiLnYxLkF1dG9tYXRlZEJhY2t1", + "cFBvbGljeS5MYWJlbHNFbnRyeRprCg5XZWVrbHlTY2hlZHVsZRIrCgtzdGFy", + "dF90aW1lcxgBIAMoCzIWLmdvb2dsZS50eXBlLlRpbWVPZkRheRIsCgxkYXlz", + "X29mX3dlZWsYAiADKA4yFi5nb29nbGUudHlwZS5EYXlPZldlZWsaSQoSVGlt", + "ZUJhc2VkUmV0ZW50aW9uEjMKEHJldGVudGlvbl9wZXJpb2QYASABKAsyGS5n", + "b29nbGUucHJvdG9idWYuRHVyYXRpb24aJwoWUXVhbnRpdHlCYXNlZFJldGVu", + "dGlvbhINCgVjb3VudBgBIAEoBRotCgtMYWJlbHNFbnRyeRILCgNrZXkYASAB", + "KAkSDQoFdmFsdWUYAiABKAk6AjgBQgoKCHNjaGVkdWxlQgsKCXJldGVudGlv", + "bkIKCghfZW5hYmxlZCI3CgxCYWNrdXBTb3VyY2USEgoKYmFja3VwX3VpZBgC", + "IAEoCRITCgtiYWNrdXBfbmFtZRgBIAEoCSKEDQoHQ2x1c3RlchJFCg1iYWNr", + "dXBfc291cmNlGA8gASgLMiwuZ29vZ2xlLmV2ZW50cy5jbG91ZC5hbGxveWRi", + "LnYxLkJhY2t1cFNvdXJjZUgAEksKEG1pZ3JhdGlvbl9zb3VyY2UYECABKAsy", + "Ly5nb29nbGUuZXZlbnRzLmNsb3VkLmFsbG95ZGIudjEuTWlncmF0aW9uU291", + "cmNlSAASDAoEbmFtZRgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSCwoD", + "dWlkGAMgASgJEi8KC2NyZWF0ZV90aW1lGAQgASgLMhouZ29vZ2xlLnByb3Rv", + "YnVmLlRpbWVzdGFtcBIvCgt1cGRhdGVfdGltZRgFIAEoCzIaLmdvb2dsZS5w", + "cm90b2J1Zi5UaW1lc3RhbXASLwoLZGVsZXRlX3RpbWUYBiABKAsyGi5nb29n", + "bGUucHJvdG9idWYuVGltZXN0YW1wEkMKBmxhYmVscxgHIAMoCzIzLmdvb2ds", + "ZS5ldmVudHMuY2xvdWQuYWxsb3lkYi52MS5DbHVzdGVyLkxhYmVsc0VudHJ5", + "EjwKBXN0YXRlGAggASgOMi0uZ29vZ2xlLmV2ZW50cy5jbG91ZC5hbGxveWRi", + "LnYxLkNsdXN0ZXIuU3RhdGUSSQoMY2x1c3Rlcl90eXBlGBggASgOMjMuZ29v", + "Z2xlLmV2ZW50cy5jbG91ZC5hbGxveWRiLnYxLkNsdXN0ZXIuQ2x1c3RlclR5", + "cGUSSQoQZGF0YWJhc2VfdmVyc2lvbhgJIAEoDjIvLmdvb2dsZS5ldmVudHMu", + "Y2xvdWQuYWxsb3lkYi52MS5EYXRhYmFzZVZlcnNpb24SDwoHbmV0d29yaxgK", + "IAEoCRIMCgRldGFnGAsgASgJEk0KC2Fubm90YXRpb25zGAwgAygLMjguZ29v", + "Z2xlLmV2ZW50cy5jbG91ZC5hbGxveWRiLnYxLkNsdXN0ZXIuQW5ub3RhdGlv", + "bnNFbnRyeRITCgtyZWNvbmNpbGluZxgNIAEoCBJWChdhdXRvbWF0ZWRfYmFj", + "a3VwX3BvbGljeRgRIAEoCzI1Lmdvb2dsZS5ldmVudHMuY2xvdWQuYWxsb3lk", + "Yi52MS5BdXRvbWF0ZWRCYWNrdXBQb2xpY3kSPQoKc3NsX2NvbmZpZxgSIAEo", + "CzIpLmdvb2dsZS5ldmVudHMuY2xvdWQuYWxsb3lkYi52MS5Tc2xDb25maWcS", + "SwoRZW5jcnlwdGlvbl9jb25maWcYEyABKAsyMC5nb29nbGUuZXZlbnRzLmNs", + "b3VkLmFsbG95ZGIudjEuRW5jcnlwdGlvbkNvbmZpZxJHCg9lbmNyeXB0aW9u", + "X2luZm8YFCABKAsyLi5nb29nbGUuZXZlbnRzLmNsb3VkLmFsbG95ZGIudjEu", + "RW5jcnlwdGlvbkluZm8SUQoQc2Vjb25kYXJ5X2NvbmZpZxgWIAEoCzI3Lmdv", + "b2dsZS5ldmVudHMuY2xvdWQuYWxsb3lkYi52MS5DbHVzdGVyLlNlY29uZGFy", + "eUNvbmZpZxJNCg5wcmltYXJ5X2NvbmZpZxgXIAEoCzI1Lmdvb2dsZS5ldmVu", + "dHMuY2xvdWQuYWxsb3lkYi52MS5DbHVzdGVyLlByaW1hcnlDb25maWcaLwoP", + "U2Vjb25kYXJ5Q29uZmlnEhwKFHByaW1hcnlfY2x1c3Rlcl9uYW1lGAEgASgJ", + "GjAKDVByaW1hcnlDb25maWcSHwoXc2Vjb25kYXJ5X2NsdXN0ZXJfbmFtZXMY", + "ASADKAkaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIg", + "ASgJOgI4ARoyChBBbm5vdGF0aW9uc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2", + "YWx1ZRgCIAEoCToCOAEinAEKBVN0YXRlEhUKEVNUQVRFX1VOU1BFQ0lGSUVE", + "EAASCQoFUkVBRFkQARILCgdTVE9QUEVEEAISCQoFRU1QVFkQAxIMCghDUkVB", + "VElORxAEEgwKCERFTEVUSU5HEAUSCgoGRkFJTEVEEAYSEQoNQk9PVFNUUkFQ", + "UElORxAHEg8KC01BSU5URU5BTkNFEAgSDQoJUFJPTU9USU5HEAkiRwoLQ2x1", + "c3RlclR5cGUSHAoYQ0xVU1RFUl9UWVBFX1VOU1BFQ0lGSUVEEAASCwoHUFJJ", + "TUFSWRABEg0KCVNFQ09OREFSWRACQggKBnNvdXJjZSLPDwoISW5zdGFuY2US", + "DAoEbmFtZRgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSCwoDdWlkGAMg", + "ASgJEi8KC2NyZWF0ZV90aW1lGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRp", + "bWVzdGFtcBIvCgt1cGRhdGVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1", + "Zi5UaW1lc3RhbXASLwoLZGVsZXRlX3RpbWUYBiABKAsyGi5nb29nbGUucHJv", + "dG9idWYuVGltZXN0YW1wEkQKBmxhYmVscxgHIAMoCzI0Lmdvb2dsZS5ldmVu", + "dHMuY2xvdWQuYWxsb3lkYi52MS5JbnN0YW5jZS5MYWJlbHNFbnRyeRI9CgVz", + "dGF0ZRgIIAEoDjIuLmdvb2dsZS5ldmVudHMuY2xvdWQuYWxsb3lkYi52MS5J", + "bnN0YW5jZS5TdGF0ZRJMCg1pbnN0YW5jZV90eXBlGAkgASgOMjUuZ29vZ2xl", + "LmV2ZW50cy5jbG91ZC5hbGxveWRiLnYxLkluc3RhbmNlLkluc3RhbmNlVHlw", + "ZRJOCg5tYWNoaW5lX2NvbmZpZxgKIAEoCzI2Lmdvb2dsZS5ldmVudHMuY2xv", + "dWQuYWxsb3lkYi52MS5JbnN0YW5jZS5NYWNoaW5lQ29uZmlnElQKEWF2YWls", + "YWJpbGl0eV90eXBlGAsgASgOMjkuZ29vZ2xlLmV2ZW50cy5jbG91ZC5hbGxv", + "eWRiLnYxLkluc3RhbmNlLkF2YWlsYWJpbGl0eVR5cGUSEAoIZ2NlX3pvbmUY", + "DCABKAkSUwoOZGF0YWJhc2VfZmxhZ3MYDSADKAsyOy5nb29nbGUuZXZlbnRz", + "LmNsb3VkLmFsbG95ZGIudjEuSW5zdGFuY2UuRGF0YWJhc2VGbGFnc0VudHJ5", + "EkQKDXdyaXRhYmxlX25vZGUYEyABKAsyLS5nb29nbGUuZXZlbnRzLmNsb3Vk", + "LmFsbG95ZGIudjEuSW5zdGFuY2UuTm9kZRI8CgVub2RlcxgUIAMoCzItLmdv", + "b2dsZS5ldmVudHMuY2xvdWQuYWxsb3lkYi52MS5JbnN0YW5jZS5Ob2RlEmMK", + "FXF1ZXJ5X2luc2lnaHRzX2NvbmZpZxgVIAEoCzJELmdvb2dsZS5ldmVudHMu", + "Y2xvdWQuYWxsb3lkYi52MS5JbnN0YW5jZS5RdWVyeUluc2lnaHRzSW5zdGFu", + "Y2VDb25maWcSUQoQcmVhZF9wb29sX2NvbmZpZxgOIAEoCzI3Lmdvb2dsZS5l", + "dmVudHMuY2xvdWQuYWxsb3lkYi52MS5JbnN0YW5jZS5SZWFkUG9vbENvbmZp", + "ZxISCgppcF9hZGRyZXNzGA8gASgJEhMKC3JlY29uY2lsaW5nGBAgASgIEgwK", + "BGV0YWcYESABKAkSTgoLYW5ub3RhdGlvbnMYEiADKAsyOS5nb29nbGUuZXZl", + "bnRzLmNsb3VkLmFsbG95ZGIudjEuSW5zdGFuY2UuQW5ub3RhdGlvbnNFbnRy", + "eRoiCg1NYWNoaW5lQ29uZmlnEhEKCWNwdV9jb3VudBgBIAEoBRo+CgROb2Rl", + "Eg8KB3pvbmVfaWQYASABKAkSCgoCaWQYAiABKAkSCgoCaXAYAyABKAkSDQoF", + "c3RhdGUYBCABKAka+gEKG1F1ZXJ5SW5zaWdodHNJbnN0YW5jZUNvbmZpZxIk", + "ChdyZWNvcmRfYXBwbGljYXRpb25fdGFncxgCIAEoCEgAiAEBEiIKFXJlY29y", + "ZF9jbGllbnRfYWRkcmVzcxgDIAEoCEgBiAEBEhsKE3F1ZXJ5X3N0cmluZ19s", + "ZW5ndGgYBCABKA0SIwoWcXVlcnlfcGxhbnNfcGVyX21pbnV0ZRgFIAEoDUgC", + "iAEBQhoKGF9yZWNvcmRfYXBwbGljYXRpb25fdGFnc0IYChZfcmVjb3JkX2Ns", + "aWVudF9hZGRyZXNzQhkKF19xdWVyeV9wbGFuc19wZXJfbWludXRlGiQKDlJl", + "YWRQb29sQ29uZmlnEhIKCm5vZGVfY291bnQYASABKAUaLQoLTGFiZWxzRW50", + "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARo0ChJEYXRhYmFz", + "ZUZsYWdzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARoy", + "ChBBbm5vdGF0aW9uc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEo", + "CToCOAEikQEKBVN0YXRlEhUKEVNUQVRFX1VOU1BFQ0lGSUVEEAASCQoFUkVB", + "RFkQARILCgdTVE9QUEVEEAISDAoIQ1JFQVRJTkcQAxIMCghERUxFVElORxAE", + "Eg8KC01BSU5URU5BTkNFEAUSCgoGRkFJTEVEEAYSEQoNQk9PVFNUUkFQUElO", + "RxAIEg0KCVBST01PVElORxAJIlgKDEluc3RhbmNlVHlwZRIdChlJTlNUQU5D", + "RV9UWVBFX1VOU1BFQ0lGSUVEEAASCwoHUFJJTUFSWRABEg0KCVJFQURfUE9P", + "TBACEg0KCVNFQ09OREFSWRADIk4KEEF2YWlsYWJpbGl0eVR5cGUSIQodQVZB", + "SUxBQklMSVRZX1RZUEVfVU5TUEVDSUZJRUQQABIJCgVaT05BTBABEgwKCFJF", + "R0lPTkFMEAIilggKBkJhY2t1cBIMCgRuYW1lGAEgASgJEhQKDGRpc3BsYXlf", + "bmFtZRgCIAEoCRILCgN1aWQYAyABKAkSLwoLY3JlYXRlX3RpbWUYBCABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC3VwZGF0ZV90aW1lGAUg", + "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgtkZWxldGVfdGlt", + "ZRgPIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASQgoGbGFiZWxz", + "GAYgAygLMjIuZ29vZ2xlLmV2ZW50cy5jbG91ZC5hbGxveWRiLnYxLkJhY2t1", + "cC5MYWJlbHNFbnRyeRI7CgVzdGF0ZRgHIAEoDjIsLmdvb2dsZS5ldmVudHMu", + "Y2xvdWQuYWxsb3lkYi52MS5CYWNrdXAuU3RhdGUSOQoEdHlwZRgIIAEoDjIr", + "Lmdvb2dsZS5ldmVudHMuY2xvdWQuYWxsb3lkYi52MS5CYWNrdXAuVHlwZRIT", + "CgtkZXNjcmlwdGlvbhgJIAEoCRITCgtjbHVzdGVyX3VpZBgSIAEoCRIUCgxj", + "bHVzdGVyX25hbWUYCiABKAkSEwoLcmVjb25jaWxpbmcYCyABKAgSSwoRZW5j", + "cnlwdGlvbl9jb25maWcYDCABKAsyMC5nb29nbGUuZXZlbnRzLmNsb3VkLmFs", + "bG95ZGIudjEuRW5jcnlwdGlvbkNvbmZpZxJHCg9lbmNyeXB0aW9uX2luZm8Y", + "DSABKAsyLi5nb29nbGUuZXZlbnRzLmNsb3VkLmFsbG95ZGIudjEuRW5jcnlw", + "dGlvbkluZm8SDAoEZXRhZxgOIAEoCRJMCgthbm5vdGF0aW9ucxgQIAMoCzI3", + "Lmdvb2dsZS5ldmVudHMuY2xvdWQuYWxsb3lkYi52MS5CYWNrdXAuQW5ub3Rh", + "dGlvbnNFbnRyeRISCgpzaXplX2J5dGVzGBEgASgDEi8KC2V4cGlyeV90aW1l", + "GBMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBotCgtMYWJlbHNF", + "bnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBGjIKEEFubm90", + "YXRpb25zRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJR", + "CgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgkKBVJFQURZEAESDAoI", + "Q1JFQVRJTkcQAhIKCgZGQUlMRUQQAxIMCghERUxFVElORxAEIkoKBFR5cGUS", + "FAoQVFlQRV9VTlNQRUNJRklFRBAAEg0KCU9OX0RFTUFORBABEg0KCUFVVE9N", + "QVRFRBACEg4KCkNPTlRJTlVPVVMQAyJfChFJbnN0YW5jZUV2ZW50RGF0YRI+", + "CgdwYXlsb2FkGAEgASgLMiguZ29vZ2xlLmV2ZW50cy5jbG91ZC5hbGxveWRi", + "LnYxLkluc3RhbmNlSACIAQFCCgoIX3BheWxvYWQiWwoPQmFja3VwRXZlbnRE", + "YXRhEjwKB3BheWxvYWQYASABKAsyJi5nb29nbGUuZXZlbnRzLmNsb3VkLmFs", + "bG95ZGIudjEuQmFja3VwSACIAQFCCgoIX3BheWxvYWQiXQoQQ2x1c3RlckV2", + "ZW50RGF0YRI9CgdwYXlsb2FkGAEgASgLMicuZ29vZ2xlLmV2ZW50cy5jbG91", + "ZC5hbGxveWRiLnYxLkNsdXN0ZXJIAIgBAUIKCghfcGF5bG9hZCpVCg9EYXRh", + "YmFzZVZlcnNpb24SIAocREFUQUJBU0VfVkVSU0lPTl9VTlNQRUNJRklFRBAA", + "Eg8KC1BPU1RHUkVTXzEzEAESDwoLUE9TVEdSRVNfMTQQAkJwqgInR29vZ2xl", + "LkV2ZW50cy5Qcm90b2J1Zi5DbG91ZC5BbGxveURiLlYxygIeR29vZ2xlXEV2", + "ZW50c1xDbG91ZFxBbGxveURiXFYx6gIiR29vZ2xlOjpFdmVudHM6OkNsb3Vk", + "OjpBbGxveURCOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Type.DayofweekReflection.Descriptor, global::Google.Type.TimeofdayReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.DatabaseVersion), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.UserPassword), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.UserPassword.Parser, new[]{ "User", "Password" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Parser, new[]{ "HostPort", "ReferenceId", "SourceType" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Types.MigrationSourceType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig.Parser, new[]{ "KmsKeyName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Parser, new[]{ "EncryptionType", "KmsKeyVersions" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Types.Type) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Parser, new[]{ "SslMode", "CaSource" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.SslMode), typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.CaSource) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Parser, new[]{ "WeeklySchedule", "TimeBasedRetention", "QuantityBasedRetention", "Enabled", "BackupWindow", "EncryptionConfig", "Location", "Labels" }, new[]{ "Schedule", "Retention", "Enabled" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule.Parser, new[]{ "StartTimes", "DaysOfWeek" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.TimeBasedRetention), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.TimeBasedRetention.Parser, new[]{ "RetentionPeriod" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.QuantityBasedRetention), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.QuantityBasedRetention.Parser, new[]{ "Count" }, null, null, null, null), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.BackupSource), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.BackupSource.Parser, new[]{ "BackupUid", "BackupName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Parser, new[]{ "BackupSource", "MigrationSource", "Name", "DisplayName", "Uid", "CreateTime", "UpdateTime", "DeleteTime", "Labels", "State", "ClusterType", "DatabaseVersion", "Network", "Etag", "Annotations", "Reconciling", "AutomatedBackupPolicy", "SslConfig", "EncryptionConfig", "EncryptionInfo", "SecondaryConfig", "PrimaryConfig" }, new[]{ "Source" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.State), typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.ClusterType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.SecondaryConfig), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.SecondaryConfig.Parser, new[]{ "PrimaryClusterName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.PrimaryConfig), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.PrimaryConfig.Parser, new[]{ "SecondaryClusterNames" }, null, null, null, null), + null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Parser, new[]{ "Name", "DisplayName", "Uid", "CreateTime", "UpdateTime", "DeleteTime", "Labels", "State", "InstanceType", "MachineConfig", "AvailabilityType", "GceZone", "DatabaseFlags", "WritableNode", "Nodes", "QueryInsightsConfig", "ReadPoolConfig", "IpAddress", "Reconciling", "Etag", "Annotations" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.State), typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.InstanceType), typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.AvailabilityType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.MachineConfig), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.MachineConfig.Parser, new[]{ "CpuCount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.Node), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.Node.Parser, new[]{ "ZoneId", "Id", "Ip", "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig.Parser, new[]{ "RecordApplicationTags", "RecordClientAddress", "QueryStringLength", "QueryPlansPerMinute" }, new[]{ "RecordApplicationTags", "RecordClientAddress", "QueryPlansPerMinute" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.ReadPoolConfig), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.ReadPoolConfig.Parser, new[]{ "NodeCount" }, null, null, null, null), + null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Parser, new[]{ "Name", "DisplayName", "Uid", "CreateTime", "UpdateTime", "DeleteTime", "Labels", "State", "Type", "Description", "ClusterUid", "ClusterName", "Reconciling", "EncryptionConfig", "EncryptionInfo", "Etag", "Annotations", "SizeBytes", "ExpiryTime" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.State), typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.Type) }, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.InstanceEventData), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.InstanceEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.BackupEventData), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.BackupEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.AlloyDb.V1.ClusterEventData), global::Google.Events.Protobuf.Cloud.AlloyDb.V1.ClusterEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// The supported database engine versions. + /// + public enum DatabaseVersion { + /// + /// This is an unknown database version. + /// + [pbr::OriginalName("DATABASE_VERSION_UNSPECIFIED")] Unspecified = 0, + /// + /// DEPRECATED - The database version is Postgres 13. + /// + [pbr::OriginalName("POSTGRES_13")] Postgres13 = 1, + /// + /// The database version is Postgres 14. + /// + [pbr::OriginalName("POSTGRES_14")] Postgres14 = 2, + } + + #endregion + + #region Messages + /// + /// The username/password for a database user. Used for specifying initial + /// users at cluster creation time. + /// + public sealed partial class UserPassword : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserPassword()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 UserPassword() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserPassword(UserPassword other) : this() { + user_ = other.user_; + password_ = other.password_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserPassword Clone() { + return new UserPassword(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private string user_ = ""; + /// + /// The database username. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string User { + get { return user_; } + set { + user_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "password" field. + public const int PasswordFieldNumber = 2; + private string password_ = ""; + /// + /// The initial password for the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Password { + get { return password_; } + set { + password_ = 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 UserPassword); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserPassword other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (User != other.User) return false; + if (Password != other.Password) 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 (User.Length != 0) hash ^= User.GetHashCode(); + if (Password.Length != 0) hash ^= Password.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 (User.Length != 0) { + output.WriteRawTag(10); + output.WriteString(User); + } + if (Password.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Password); + } + 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 (User.Length != 0) { + output.WriteRawTag(10); + output.WriteString(User); + } + if (Password.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Password); + } + 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 (User.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(User); + } + if (Password.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserPassword other) { + if (other == null) { + return; + } + if (other.User.Length != 0) { + User = other.User; + } + if (other.Password.Length != 0) { + Password = other.Password; + } + _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: { + User = input.ReadString(); + break; + } + case 18: { + Password = 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: { + User = input.ReadString(); + break; + } + case 18: { + Password = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Subset of the source instance configuration that is available when reading + /// the cluster resource. + /// + public sealed partial class MigrationSource : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MigrationSource()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 MigrationSource() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigrationSource(MigrationSource other) : this() { + hostPort_ = other.hostPort_; + referenceId_ = other.referenceId_; + sourceType_ = other.sourceType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigrationSource Clone() { + return new MigrationSource(this); + } + + /// Field number for the "host_port" field. + public const int HostPortFieldNumber = 1; + private string hostPort_ = ""; + /// + /// Output only. The host and port of the on-premises instance in host:port + /// format + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HostPort { + get { return hostPort_; } + set { + hostPort_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reference_id" field. + public const int ReferenceIdFieldNumber = 2; + private string referenceId_ = ""; + /// + /// Output only. Place holder for the external source identifier(e.g DMS job + /// name) that created the cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReferenceId { + get { return referenceId_; } + set { + referenceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_type" field. + public const int SourceTypeFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Types.MigrationSourceType sourceType_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Types.MigrationSourceType.Unspecified; + /// + /// Output only. Type of migration source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Types.MigrationSourceType SourceType { + get { return sourceType_; } + set { + sourceType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MigrationSource); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MigrationSource other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (HostPort != other.HostPort) return false; + if (ReferenceId != other.ReferenceId) return false; + if (SourceType != other.SourceType) 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 (HostPort.Length != 0) hash ^= HostPort.GetHashCode(); + if (ReferenceId.Length != 0) hash ^= ReferenceId.GetHashCode(); + if (SourceType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Types.MigrationSourceType.Unspecified) hash ^= SourceType.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 (HostPort.Length != 0) { + output.WriteRawTag(10); + output.WriteString(HostPort); + } + if (ReferenceId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ReferenceId); + } + if (SourceType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Types.MigrationSourceType.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) SourceType); + } + 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 (HostPort.Length != 0) { + output.WriteRawTag(10); + output.WriteString(HostPort); + } + if (ReferenceId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ReferenceId); + } + if (SourceType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Types.MigrationSourceType.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) SourceType); + } + 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 (HostPort.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HostPort); + } + if (ReferenceId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReferenceId); + } + if (SourceType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Types.MigrationSourceType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SourceType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MigrationSource other) { + if (other == null) { + return; + } + if (other.HostPort.Length != 0) { + HostPort = other.HostPort; + } + if (other.ReferenceId.Length != 0) { + ReferenceId = other.ReferenceId; + } + if (other.SourceType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Types.MigrationSourceType.Unspecified) { + SourceType = other.SourceType; + } + _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: { + HostPort = input.ReadString(); + break; + } + case 18: { + ReferenceId = input.ReadString(); + break; + } + case 24: { + SourceType = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Types.MigrationSourceType) input.ReadEnum(); + 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: { + HostPort = input.ReadString(); + break; + } + case 18: { + ReferenceId = input.ReadString(); + break; + } + case 24: { + SourceType = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource.Types.MigrationSourceType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MigrationSource message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Denote the type of migration source that created this cluster. + /// + public enum MigrationSourceType { + /// + /// Migration source is unknown. + /// + [pbr::OriginalName("MIGRATION_SOURCE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// DMS source means the cluster was created via DMS migration job. + /// + [pbr::OriginalName("DMS")] Dms = 1, + } + + } + #endregion + + } + + /// + /// EncryptionConfig describes the encryption config of a cluster or a backup + /// that is encrypted with a CMEK (customer-managed encryption key). + /// + public sealed partial class EncryptionConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptionConfig()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 EncryptionConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionConfig(EncryptionConfig other) : this() { + kmsKeyName_ = other.kmsKeyName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionConfig Clone() { + return new EncryptionConfig(this); + } + + /// Field number for the "kms_key_name" field. + public const int KmsKeyNameFieldNumber = 1; + private string kmsKeyName_ = ""; + /// + /// The fully-qualified resource name of the KMS key. + /// Each Cloud KMS key is regionalized and has the following format: + /// projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KmsKeyName { + get { return kmsKeyName_; } + set { + kmsKeyName_ = 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 EncryptionConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EncryptionConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KmsKeyName != other.KmsKeyName) 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 (KmsKeyName.Length != 0) hash ^= KmsKeyName.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 (KmsKeyName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKeyName); + } + 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 (KmsKeyName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKeyName); + } + 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 (KmsKeyName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KmsKeyName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EncryptionConfig other) { + if (other == null) { + return; + } + if (other.KmsKeyName.Length != 0) { + KmsKeyName = other.KmsKeyName; + } + _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: { + KmsKeyName = 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: { + KmsKeyName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// EncryptionInfo describes the encryption information of a cluster or a backup. + /// + public sealed partial class EncryptionInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptionInfo()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 EncryptionInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionInfo(EncryptionInfo other) : this() { + encryptionType_ = other.encryptionType_; + kmsKeyVersions_ = other.kmsKeyVersions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionInfo Clone() { + return new EncryptionInfo(this); + } + + /// Field number for the "encryption_type" field. + public const int EncryptionTypeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Types.Type encryptionType_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Types.Type.Unspecified; + /// + /// Output only. Type of encryption. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Types.Type EncryptionType { + get { return encryptionType_; } + set { + encryptionType_ = value; + } + } + + /// Field number for the "kms_key_versions" field. + public const int KmsKeyVersionsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_kmsKeyVersions_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField kmsKeyVersions_ = new pbc::RepeatedField(); + /// + /// Output only. Cloud KMS key versions that are being used to protect the + /// database or the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField KmsKeyVersions { + get { return kmsKeyVersions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EncryptionInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EncryptionInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EncryptionType != other.EncryptionType) return false; + if(!kmsKeyVersions_.Equals(other.kmsKeyVersions_)) 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 (EncryptionType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Types.Type.Unspecified) hash ^= EncryptionType.GetHashCode(); + hash ^= kmsKeyVersions_.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 (EncryptionType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Types.Type.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) EncryptionType); + } + kmsKeyVersions_.WriteTo(output, _repeated_kmsKeyVersions_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 (EncryptionType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Types.Type.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) EncryptionType); + } + kmsKeyVersions_.WriteTo(ref output, _repeated_kmsKeyVersions_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 (EncryptionType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Types.Type.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EncryptionType); + } + size += kmsKeyVersions_.CalculateSize(_repeated_kmsKeyVersions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EncryptionInfo other) { + if (other == null) { + return; + } + if (other.EncryptionType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Types.Type.Unspecified) { + EncryptionType = other.EncryptionType; + } + kmsKeyVersions_.Add(other.kmsKeyVersions_); + _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: { + EncryptionType = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Types.Type) input.ReadEnum(); + break; + } + case 18: { + kmsKeyVersions_.AddEntriesFrom(input, _repeated_kmsKeyVersions_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: { + EncryptionType = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo.Types.Type) input.ReadEnum(); + break; + } + case 18: { + kmsKeyVersions_.AddEntriesFrom(ref input, _repeated_kmsKeyVersions_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the EncryptionInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible encryption types. + /// + public enum Type { + /// + /// Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION. + /// + [pbr::OriginalName("TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The data is encrypted at rest with a key that is fully managed by Google. + /// No key version will be populated. This is the default state. + /// + [pbr::OriginalName("GOOGLE_DEFAULT_ENCRYPTION")] GoogleDefaultEncryption = 1, + /// + /// The data is encrypted at rest with a key that is managed by the customer. + /// KMS key versions will be populated. + /// + [pbr::OriginalName("CUSTOMER_MANAGED_ENCRYPTION")] CustomerManagedEncryption = 2, + } + + } + #endregion + + } + + /// + /// SSL configuration for an AlloyDB Cluster. + /// + public sealed partial class SslConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SslConfig()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 SslConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SslConfig(SslConfig other) : this() { + sslMode_ = other.sslMode_; + caSource_ = other.caSource_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SslConfig Clone() { + return new SslConfig(this); + } + + /// Field number for the "ssl_mode" field. + public const int SslModeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.SslMode sslMode_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.SslMode.Unspecified; + /// + /// Optional. SSL mode. Specifies client-server SSL/TLS connection behavior. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.SslMode SslMode { + get { return sslMode_; } + set { + sslMode_ = value; + } + } + + /// Field number for the "ca_source" field. + public const int CaSourceFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.CaSource caSource_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.CaSource.Unspecified; + /// + /// Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is + /// supported currently, and is the default value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.CaSource CaSource { + get { return caSource_; } + set { + caSource_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SslConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SslConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SslMode != other.SslMode) return false; + if (CaSource != other.CaSource) 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 (SslMode != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.SslMode.Unspecified) hash ^= SslMode.GetHashCode(); + if (CaSource != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.CaSource.Unspecified) hash ^= CaSource.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 (SslMode != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.SslMode.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) SslMode); + } + if (CaSource != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.CaSource.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) CaSource); + } + 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 (SslMode != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.SslMode.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) SslMode); + } + if (CaSource != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.CaSource.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) CaSource); + } + 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 (SslMode != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.SslMode.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SslMode); + } + if (CaSource != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.CaSource.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CaSource); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SslConfig other) { + if (other == null) { + return; + } + if (other.SslMode != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.SslMode.Unspecified) { + SslMode = other.SslMode; + } + if (other.CaSource != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.CaSource.Unspecified) { + CaSource = other.CaSource; + } + _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: { + SslMode = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.SslMode) input.ReadEnum(); + break; + } + case 16: { + CaSource = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.CaSource) input.ReadEnum(); + 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: { + SslMode = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.SslMode) input.ReadEnum(); + break; + } + case 16: { + CaSource = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig.Types.CaSource) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the SslConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// SSL mode options. + /// + public enum SslMode { + /// + /// SSL mode not specified. Defaults to SSL_MODE_ALLOW. + /// + [pbr::OriginalName("SSL_MODE_UNSPECIFIED")] Unspecified = 0, + /// + /// SSL connections are optional. CA verification not enforced. + /// + [pbr::OriginalName("SSL_MODE_ALLOW")] Allow = 1, + /// + /// SSL connections are required. CA verification not enforced. + /// Clients may use locally self-signed certificates (default psql client + /// behavior). + /// + [pbr::OriginalName("SSL_MODE_REQUIRE")] Require = 2, + /// + /// SSL connections are required. CA verification enforced. + /// Clients must have certificates signed by a Cluster CA, e.g. via + /// GenerateClientCertificate. + /// + [pbr::OriginalName("SSL_MODE_VERIFY_CA")] VerifyCa = 3, + } + + /// + /// Certificate Authority (CA) source for SSL/TLS certificates. + /// + public enum CaSource { + /// + /// Certificate Authority (CA) source not specified. Defaults to + /// CA_SOURCE_MANAGED. + /// + [pbr::OriginalName("CA_SOURCE_UNSPECIFIED")] Unspecified = 0, + /// + /// Certificate Authority (CA) managed by the AlloyDB Cluster. + /// + [pbr::OriginalName("CA_SOURCE_MANAGED")] Managed = 1, + } + + } + #endregion + + } + + /// + /// Message describing the user-specified automated backup policy. + /// + /// All fields in the automated backup policy are optional. Defaults for each + /// field are provided if they are not set. + /// + public sealed partial class AutomatedBackupPolicy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AutomatedBackupPolicy()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 AutomatedBackupPolicy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutomatedBackupPolicy(AutomatedBackupPolicy other) : this() { + _hasBits0 = other._hasBits0; + enabled_ = other.enabled_; + backupWindow_ = other.backupWindow_ != null ? other.backupWindow_.Clone() : null; + encryptionConfig_ = other.encryptionConfig_ != null ? other.encryptionConfig_.Clone() : null; + location_ = other.location_; + labels_ = other.labels_.Clone(); + switch (other.ScheduleCase) { + case ScheduleOneofCase.WeeklySchedule: + WeeklySchedule = other.WeeklySchedule.Clone(); + break; + } + + switch (other.RetentionCase) { + case RetentionOneofCase.TimeBasedRetention: + TimeBasedRetention = other.TimeBasedRetention.Clone(); + break; + case RetentionOneofCase.QuantityBasedRetention: + QuantityBasedRetention = other.QuantityBasedRetention.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutomatedBackupPolicy Clone() { + return new AutomatedBackupPolicy(this); + } + + /// Field number for the "weekly_schedule" field. + public const int WeeklyScheduleFieldNumber = 2; + /// + /// Weekly schedule for the Backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule WeeklySchedule { + get { return scheduleCase_ == ScheduleOneofCase.WeeklySchedule ? (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule) schedule_ : null; } + set { + schedule_ = value; + scheduleCase_ = value == null ? ScheduleOneofCase.None : ScheduleOneofCase.WeeklySchedule; + } + } + + /// Field number for the "time_based_retention" field. + public const int TimeBasedRetentionFieldNumber = 4; + /// + /// Time-based Backup retention policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.TimeBasedRetention TimeBasedRetention { + get { return retentionCase_ == RetentionOneofCase.TimeBasedRetention ? (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.TimeBasedRetention) retention_ : null; } + set { + retention_ = value; + retentionCase_ = value == null ? RetentionOneofCase.None : RetentionOneofCase.TimeBasedRetention; + } + } + + /// Field number for the "quantity_based_retention" field. + public const int QuantityBasedRetentionFieldNumber = 5; + /// + /// Quantity-based Backup retention policy to retain recent backups. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.QuantityBasedRetention QuantityBasedRetention { + get { return retentionCase_ == RetentionOneofCase.QuantityBasedRetention ? (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.QuantityBasedRetention) retention_ : null; } + set { + retention_ = value; + retentionCase_ = value == null ? RetentionOneofCase.None : RetentionOneofCase.QuantityBasedRetention; + } + } + + /// Field number for the "enabled" field. + public const int EnabledFieldNumber = 1; + private readonly static bool EnabledDefaultValue = false; + + private bool enabled_; + /// + /// Whether automated automated backups are enabled. If not set, defaults to + /// true. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Enabled { + get { if ((_hasBits0 & 1) != 0) { return enabled_; } else { return EnabledDefaultValue; } } + set { + _hasBits0 |= 1; + enabled_ = value; + } + } + /// Gets whether the "enabled" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnabled { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "enabled" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnabled() { + _hasBits0 &= ~1; + } + + /// Field number for the "backup_window" field. + public const int BackupWindowFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Duration backupWindow_; + /// + /// The length of the time window during which a backup can be + /// taken. If a backup does not succeed within this time window, it will be + /// canceled and considered failed. + /// + /// The backup window must be at least 5 minutes long. There is no upper bound + /// on the window. If not set, it defaults to 1 hour. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration BackupWindow { + get { return backupWindow_; } + set { + backupWindow_ = value; + } + } + + /// Field number for the "encryption_config" field. + public const int EncryptionConfigFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig encryptionConfig_; + /// + /// Optional. The encryption config can be specified to encrypt the + /// backups with a customer-managed encryption key (CMEK). When this field is + /// not specified, the backup will then use default encryption scheme to + /// protect the user data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig EncryptionConfig { + get { return encryptionConfig_; } + set { + encryptionConfig_ = value; + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 6; + private string location_ = ""; + /// + /// The location where the backup will be stored. Currently, the only supported + /// option is to store the backup in the same region as the cluster. + /// + /// If empty, defaults to the region of the cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Location { + get { return location_; } + set { + location_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 58); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Labels to apply to backups created using this configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + private object schedule_; + /// Enum of possible cases for the "schedule" oneof. + public enum ScheduleOneofCase { + None = 0, + WeeklySchedule = 2, + } + private ScheduleOneofCase scheduleCase_ = ScheduleOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScheduleOneofCase ScheduleCase { + get { return scheduleCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSchedule() { + scheduleCase_ = ScheduleOneofCase.None; + schedule_ = null; + } + + private object retention_; + /// Enum of possible cases for the "retention" oneof. + public enum RetentionOneofCase { + None = 0, + TimeBasedRetention = 4, + QuantityBasedRetention = 5, + } + private RetentionOneofCase retentionCase_ = RetentionOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RetentionOneofCase RetentionCase { + get { return retentionCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRetention() { + retentionCase_ = RetentionOneofCase.None; + retention_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AutomatedBackupPolicy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AutomatedBackupPolicy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(WeeklySchedule, other.WeeklySchedule)) return false; + if (!object.Equals(TimeBasedRetention, other.TimeBasedRetention)) return false; + if (!object.Equals(QuantityBasedRetention, other.QuantityBasedRetention)) return false; + if (Enabled != other.Enabled) return false; + if (!object.Equals(BackupWindow, other.BackupWindow)) return false; + if (!object.Equals(EncryptionConfig, other.EncryptionConfig)) return false; + if (Location != other.Location) return false; + if (!Labels.Equals(other.Labels)) return false; + if (ScheduleCase != other.ScheduleCase) return false; + if (RetentionCase != other.RetentionCase) 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 (scheduleCase_ == ScheduleOneofCase.WeeklySchedule) hash ^= WeeklySchedule.GetHashCode(); + if (retentionCase_ == RetentionOneofCase.TimeBasedRetention) hash ^= TimeBasedRetention.GetHashCode(); + if (retentionCase_ == RetentionOneofCase.QuantityBasedRetention) hash ^= QuantityBasedRetention.GetHashCode(); + if (HasEnabled) hash ^= Enabled.GetHashCode(); + if (backupWindow_ != null) hash ^= BackupWindow.GetHashCode(); + if (encryptionConfig_ != null) hash ^= EncryptionConfig.GetHashCode(); + if (Location.Length != 0) hash ^= Location.GetHashCode(); + hash ^= Labels.GetHashCode(); + hash ^= (int) scheduleCase_; + hash ^= (int) retentionCase_; + 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 (HasEnabled) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (scheduleCase_ == ScheduleOneofCase.WeeklySchedule) { + output.WriteRawTag(18); + output.WriteMessage(WeeklySchedule); + } + if (backupWindow_ != null) { + output.WriteRawTag(26); + output.WriteMessage(BackupWindow); + } + if (retentionCase_ == RetentionOneofCase.TimeBasedRetention) { + output.WriteRawTag(34); + output.WriteMessage(TimeBasedRetention); + } + if (retentionCase_ == RetentionOneofCase.QuantityBasedRetention) { + output.WriteRawTag(42); + output.WriteMessage(QuantityBasedRetention); + } + if (Location.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Location); + } + labels_.WriteTo(output, _map_labels_codec); + if (encryptionConfig_ != null) { + output.WriteRawTag(66); + output.WriteMessage(EncryptionConfig); + } + 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 (HasEnabled) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (scheduleCase_ == ScheduleOneofCase.WeeklySchedule) { + output.WriteRawTag(18); + output.WriteMessage(WeeklySchedule); + } + if (backupWindow_ != null) { + output.WriteRawTag(26); + output.WriteMessage(BackupWindow); + } + if (retentionCase_ == RetentionOneofCase.TimeBasedRetention) { + output.WriteRawTag(34); + output.WriteMessage(TimeBasedRetention); + } + if (retentionCase_ == RetentionOneofCase.QuantityBasedRetention) { + output.WriteRawTag(42); + output.WriteMessage(QuantityBasedRetention); + } + if (Location.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Location); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (encryptionConfig_ != null) { + output.WriteRawTag(66); + output.WriteMessage(EncryptionConfig); + } + 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 (scheduleCase_ == ScheduleOneofCase.WeeklySchedule) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WeeklySchedule); + } + if (retentionCase_ == RetentionOneofCase.TimeBasedRetention) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeBasedRetention); + } + if (retentionCase_ == RetentionOneofCase.QuantityBasedRetention) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuantityBasedRetention); + } + if (HasEnabled) { + size += 1 + 1; + } + if (backupWindow_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackupWindow); + } + if (encryptionConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EncryptionConfig); + } + if (Location.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Location); + } + 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(AutomatedBackupPolicy other) { + if (other == null) { + return; + } + if (other.HasEnabled) { + Enabled = other.Enabled; + } + if (other.backupWindow_ != null) { + if (backupWindow_ == null) { + BackupWindow = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + BackupWindow.MergeFrom(other.BackupWindow); + } + if (other.encryptionConfig_ != null) { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig(); + } + EncryptionConfig.MergeFrom(other.EncryptionConfig); + } + if (other.Location.Length != 0) { + Location = other.Location; + } + labels_.MergeFrom(other.labels_); + switch (other.ScheduleCase) { + case ScheduleOneofCase.WeeklySchedule: + if (WeeklySchedule == null) { + WeeklySchedule = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule(); + } + WeeklySchedule.MergeFrom(other.WeeklySchedule); + break; + } + + switch (other.RetentionCase) { + case RetentionOneofCase.TimeBasedRetention: + if (TimeBasedRetention == null) { + TimeBasedRetention = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.TimeBasedRetention(); + } + TimeBasedRetention.MergeFrom(other.TimeBasedRetention); + break; + case RetentionOneofCase.QuantityBasedRetention: + if (QuantityBasedRetention == null) { + QuantityBasedRetention = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.QuantityBasedRetention(); + } + QuantityBasedRetention.MergeFrom(other.QuantityBasedRetention); + break; + } + + _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: { + Enabled = input.ReadBool(); + break; + } + case 18: { + global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule subBuilder = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule(); + if (scheduleCase_ == ScheduleOneofCase.WeeklySchedule) { + subBuilder.MergeFrom(WeeklySchedule); + } + input.ReadMessage(subBuilder); + WeeklySchedule = subBuilder; + break; + } + case 26: { + if (backupWindow_ == null) { + BackupWindow = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(BackupWindow); + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.TimeBasedRetention subBuilder = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.TimeBasedRetention(); + if (retentionCase_ == RetentionOneofCase.TimeBasedRetention) { + subBuilder.MergeFrom(TimeBasedRetention); + } + input.ReadMessage(subBuilder); + TimeBasedRetention = subBuilder; + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.QuantityBasedRetention subBuilder = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.QuantityBasedRetention(); + if (retentionCase_ == RetentionOneofCase.QuantityBasedRetention) { + subBuilder.MergeFrom(QuantityBasedRetention); + } + input.ReadMessage(subBuilder); + QuantityBasedRetention = subBuilder; + break; + } + case 50: { + Location = input.ReadString(); + break; + } + case 58: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 66: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + 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: { + Enabled = input.ReadBool(); + break; + } + case 18: { + global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule subBuilder = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule(); + if (scheduleCase_ == ScheduleOneofCase.WeeklySchedule) { + subBuilder.MergeFrom(WeeklySchedule); + } + input.ReadMessage(subBuilder); + WeeklySchedule = subBuilder; + break; + } + case 26: { + if (backupWindow_ == null) { + BackupWindow = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(BackupWindow); + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.TimeBasedRetention subBuilder = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.TimeBasedRetention(); + if (retentionCase_ == RetentionOneofCase.TimeBasedRetention) { + subBuilder.MergeFrom(TimeBasedRetention); + } + input.ReadMessage(subBuilder); + TimeBasedRetention = subBuilder; + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.QuantityBasedRetention subBuilder = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.QuantityBasedRetention(); + if (retentionCase_ == RetentionOneofCase.QuantityBasedRetention) { + subBuilder.MergeFrom(QuantityBasedRetention); + } + input.ReadMessage(subBuilder); + QuantityBasedRetention = subBuilder; + break; + } + case 50: { + Location = input.ReadString(); + break; + } + case 58: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 66: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AutomatedBackupPolicy message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// A weekly schedule starts a backup at prescribed start times within a + /// day, for the specified days of the week. + /// + /// The weekly schedule message is flexible and can be used to create many + /// types of schedules. For example, to have a daily backup that starts at + /// 22:00, configure the `start_times` field to have one element "22:00" and + /// the `days_of_week` field to have all seven days of the week. + /// + public sealed partial class WeeklySchedule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WeeklySchedule()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.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 WeeklySchedule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WeeklySchedule(WeeklySchedule other) : this() { + startTimes_ = other.startTimes_.Clone(); + daysOfWeek_ = other.daysOfWeek_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WeeklySchedule Clone() { + return new WeeklySchedule(this); + } + + /// Field number for the "start_times" field. + public const int StartTimesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_startTimes_codec + = pb::FieldCodec.ForMessage(10, global::Google.Type.TimeOfDay.Parser); + private readonly pbc::RepeatedField startTimes_ = new pbc::RepeatedField(); + /// + /// The times during the day to start a backup. The start times are assumed + /// to be in UTC and to be an exact hour (e.g., 04:00:00). + /// + /// If no start times are provided, a single fixed start time is chosen + /// arbitrarily. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField StartTimes { + get { return startTimes_; } + } + + /// Field number for the "days_of_week" field. + public const int DaysOfWeekFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_daysOfWeek_codec + = pb::FieldCodec.ForEnum(18, x => (int) x, x => (global::Google.Type.DayOfWeek) x); + private readonly pbc::RepeatedField daysOfWeek_ = new pbc::RepeatedField(); + /// + /// The days of the week to perform a backup. + /// + /// If this field is left empty, the default of every day of the week is + /// used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DaysOfWeek { + get { return daysOfWeek_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WeeklySchedule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WeeklySchedule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!startTimes_.Equals(other.startTimes_)) return false; + if(!daysOfWeek_.Equals(other.daysOfWeek_)) 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 ^= startTimes_.GetHashCode(); + hash ^= daysOfWeek_.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 + startTimes_.WriteTo(output, _repeated_startTimes_codec); + daysOfWeek_.WriteTo(output, _repeated_daysOfWeek_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) { + startTimes_.WriteTo(ref output, _repeated_startTimes_codec); + daysOfWeek_.WriteTo(ref output, _repeated_daysOfWeek_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 += startTimes_.CalculateSize(_repeated_startTimes_codec); + size += daysOfWeek_.CalculateSize(_repeated_daysOfWeek_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WeeklySchedule other) { + if (other == null) { + return; + } + startTimes_.Add(other.startTimes_); + daysOfWeek_.Add(other.daysOfWeek_); + _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: { + startTimes_.AddEntriesFrom(input, _repeated_startTimes_codec); + break; + } + case 18: + case 16: { + daysOfWeek_.AddEntriesFrom(input, _repeated_daysOfWeek_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: { + startTimes_.AddEntriesFrom(ref input, _repeated_startTimes_codec); + break; + } + case 18: + case 16: { + daysOfWeek_.AddEntriesFrom(ref input, _repeated_daysOfWeek_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A time based retention policy specifies that all backups within a certain + /// time period should be retained. + /// + public sealed partial class TimeBasedRetention : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TimeBasedRetention()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.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 TimeBasedRetention() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeBasedRetention(TimeBasedRetention other) : this() { + retentionPeriod_ = other.retentionPeriod_ != null ? other.retentionPeriod_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeBasedRetention Clone() { + return new TimeBasedRetention(this); + } + + /// Field number for the "retention_period" field. + public const int RetentionPeriodFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration retentionPeriod_; + /// + /// The retention period. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration RetentionPeriod { + get { return retentionPeriod_; } + set { + retentionPeriod_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TimeBasedRetention); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TimeBasedRetention other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RetentionPeriod, other.RetentionPeriod)) 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 (retentionPeriod_ != null) hash ^= RetentionPeriod.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 (retentionPeriod_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RetentionPeriod); + } + 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 (retentionPeriod_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RetentionPeriod); + } + 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 (retentionPeriod_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RetentionPeriod); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TimeBasedRetention other) { + if (other == null) { + return; + } + if (other.retentionPeriod_ != null) { + if (retentionPeriod_ == null) { + RetentionPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + RetentionPeriod.MergeFrom(other.RetentionPeriod); + } + _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 (retentionPeriod_ == null) { + RetentionPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(RetentionPeriod); + 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 (retentionPeriod_ == null) { + RetentionPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(RetentionPeriod); + break; + } + } + } + } + #endif + + } + + /// + /// A quantity based policy specifies that a certain number of the most recent + /// successful backups should be retained. + /// + public sealed partial class QuantityBasedRetention : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QuantityBasedRetention()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy.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 QuantityBasedRetention() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public QuantityBasedRetention(QuantityBasedRetention other) : this() { + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public QuantityBasedRetention Clone() { + return new QuantityBasedRetention(this); + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 1; + private int count_; + /// + /// The number of backups to retain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int 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 QuantityBasedRetention); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(QuantityBasedRetention 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 != 0) 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 != 0) { + output.WriteRawTag(8); + output.WriteInt32(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 != 0) { + output.WriteRawTag(8); + output.WriteInt32(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 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(QuantityBasedRetention other) { + if (other == null) { + return; + } + if (other.Count != 0) { + 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.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: { + Count = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Message describing a BackupSource. + /// + public sealed partial class BackupSource : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BackupSource()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 BackupSource() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackupSource(BackupSource other) : this() { + backupUid_ = other.backupUid_; + backupName_ = other.backupName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackupSource Clone() { + return new BackupSource(this); + } + + /// Field number for the "backup_uid" field. + public const int BackupUidFieldNumber = 2; + private string backupUid_ = ""; + /// + /// Output only. The system-generated UID of the backup which was used to + /// create this resource. The UID is generated when the backup is created, and + /// it is retained until the backup is deleted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BackupUid { + get { return backupUid_; } + set { + backupUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "backup_name" field. + public const int BackupNameFieldNumber = 1; + private string backupName_ = ""; + /// + /// Required. The name of the backup resource with the format: + /// * projects/{project}/locations/{region}/backups/{backup_id} + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BackupName { + get { return backupName_; } + set { + backupName_ = 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 BackupSource); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BackupSource other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BackupUid != other.BackupUid) return false; + if (BackupName != other.BackupName) 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 (BackupUid.Length != 0) hash ^= BackupUid.GetHashCode(); + if (BackupName.Length != 0) hash ^= BackupName.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 (BackupName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(BackupName); + } + if (BackupUid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BackupUid); + } + 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 (BackupName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(BackupName); + } + if (BackupUid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BackupUid); + } + 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 (BackupUid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BackupUid); + } + if (BackupName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BackupName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BackupSource other) { + if (other == null) { + return; + } + if (other.BackupUid.Length != 0) { + BackupUid = other.BackupUid; + } + if (other.BackupName.Length != 0) { + BackupName = other.BackupName; + } + _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: { + BackupName = input.ReadString(); + break; + } + case 18: { + BackupUid = 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: { + BackupName = input.ReadString(); + break; + } + case 18: { + BackupUid = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A cluster is a collection of regional AlloyDB resources. It can include a + /// primary instance and one or more read pool instances. + /// All cluster resources share a storage layer, which scales as needed. + /// + public sealed partial class Cluster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Cluster()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 Cluster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Cluster(Cluster other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + uid_ = other.uid_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + deleteTime_ = other.deleteTime_ != null ? other.deleteTime_.Clone() : null; + labels_ = other.labels_.Clone(); + state_ = other.state_; + clusterType_ = other.clusterType_; + databaseVersion_ = other.databaseVersion_; + network_ = other.network_; + etag_ = other.etag_; + annotations_ = other.annotations_.Clone(); + reconciling_ = other.reconciling_; + automatedBackupPolicy_ = other.automatedBackupPolicy_ != null ? other.automatedBackupPolicy_.Clone() : null; + sslConfig_ = other.sslConfig_ != null ? other.sslConfig_.Clone() : null; + encryptionConfig_ = other.encryptionConfig_ != null ? other.encryptionConfig_.Clone() : null; + encryptionInfo_ = other.encryptionInfo_ != null ? other.encryptionInfo_.Clone() : null; + secondaryConfig_ = other.secondaryConfig_ != null ? other.secondaryConfig_.Clone() : null; + primaryConfig_ = other.primaryConfig_ != null ? other.primaryConfig_.Clone() : null; + switch (other.SourceCase) { + case SourceOneofCase.BackupSource: + BackupSource = other.BackupSource.Clone(); + break; + case SourceOneofCase.MigrationSource: + MigrationSource = other.MigrationSource.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Cluster Clone() { + return new Cluster(this); + } + + /// Field number for the "backup_source" field. + public const int BackupSourceFieldNumber = 15; + /// + /// Output only. Cluster created from backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.BackupSource BackupSource { + get { return sourceCase_ == SourceOneofCase.BackupSource ? (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.BackupSource) source_ : null; } + set { + source_ = value; + sourceCase_ = value == null ? SourceOneofCase.None : SourceOneofCase.BackupSource; + } + } + + /// Field number for the "migration_source" field. + public const int MigrationSourceFieldNumber = 16; + /// + /// Output only. Cluster created via DMS migration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource MigrationSource { + get { return sourceCase_ == SourceOneofCase.MigrationSource ? (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource) source_ : null; } + set { + source_ = value; + sourceCase_ = value == null ? SourceOneofCase.None : SourceOneofCase.MigrationSource; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The name of the cluster resource with the format: + /// * projects/{project}/locations/{region}/clusters/{cluster_id} + /// where the cluster ID segment should satisfy the regex expression + /// `[a-z0-9-]+`. For more details see https://google.aip.dev/122. + /// The prefix of the cluster resource name is the name of the parent resource: + /// * projects/{project}/locations/{region} + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// User-settable and human-readable display name for the Cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 3; + private string uid_ = ""; + /// + /// Output only. The system-generated UID of the resource. The UID is assigned + /// when the resource is created, and it is retained until it is deleted. + /// + [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 "create_time" field. + public const int CreateTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Create time stamp + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Update time stamp + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "delete_time" field. + public const int DeleteTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp deleteTime_; + /// + /// Output only. Delete time stamp + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp DeleteTime { + get { return deleteTime_; } + set { + deleteTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 58); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Labels as key value pairs + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.State state_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.State.Unspecified; + /// + /// Output only. The current serving state of the cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "cluster_type" field. + public const int ClusterTypeFieldNumber = 24; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.ClusterType clusterType_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.ClusterType.Unspecified; + /// + /// Output only. The type of the cluster. This is an output-only field and it's + /// populated at the Cluster creation time or the Cluster promotion + /// time. The cluster type is determined by which RPC was used to create + /// the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.ClusterType ClusterType { + get { return clusterType_; } + set { + clusterType_ = value; + } + } + + /// Field number for the "database_version" field. + public const int DatabaseVersionFieldNumber = 9; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.DatabaseVersion databaseVersion_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.DatabaseVersion.Unspecified; + /// + /// Output only. The database engine major version. This is an output-only + /// field and it's populated at the Cluster creation time. This field cannot be + /// changed after cluster creation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.DatabaseVersion DatabaseVersion { + get { return databaseVersion_; } + set { + databaseVersion_ = value; + } + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 10; + private string network_ = ""; + /// + /// Required. The resource link for the VPC network in which cluster resources + /// are created and from which they are accessible via Private IP. The network + /// must belong to the same project as the cluster. It is specified in the + /// form: "projects/{project_number}/global/networks/{network_id}". This is + /// required to create a cluster. It can be updated, but it cannot be removed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Network { + get { return network_; } + set { + network_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 11; + private string etag_ = ""; + /// + /// For Resource freshness validation (https://google.aip.dev/154) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "annotations" field. + public const int AnnotationsFieldNumber = 12; + private static readonly pbc::MapField.Codec _map_annotations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 98); + private readonly pbc::MapField annotations_ = new pbc::MapField(); + /// + /// Annotations to allow client tools to store small amount of arbitrary data. + /// This is distinct from labels. + /// https://google.aip.dev/128 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Annotations { + get { return annotations_; } + } + + /// Field number for the "reconciling" field. + public const int ReconcilingFieldNumber = 13; + private bool reconciling_; + /// + /// Output only. Reconciling (https://google.aip.dev/128#reconciliation). + /// Set to true if the current state of Cluster does not match the user's + /// intended state, and the service is actively updating the resource to + /// reconcile them. This can happen due to user-triggered updates or + /// system actions like failover or maintenance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Reconciling { + get { return reconciling_; } + set { + reconciling_ = value; + } + } + + /// Field number for the "automated_backup_policy" field. + public const int AutomatedBackupPolicyFieldNumber = 17; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy automatedBackupPolicy_; + /// + /// The automated backup policy for this cluster. + /// + /// If no policy is provided then the default policy will be used. If backups + /// are supported for the cluster, the default policy takes one backup a day, + /// has a backup window of 1 hour, and retains backups for 14 days. + /// For more information on the defaults, consult the + /// documentation for the message type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy AutomatedBackupPolicy { + get { return automatedBackupPolicy_; } + set { + automatedBackupPolicy_ = value; + } + } + + /// Field number for the "ssl_config" field. + public const int SslConfigFieldNumber = 18; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig sslConfig_; + /// + /// SSL configuration for this AlloyDB Cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig SslConfig { + get { return sslConfig_; } + set { + sslConfig_ = value; + } + } + + /// Field number for the "encryption_config" field. + public const int EncryptionConfigFieldNumber = 19; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig encryptionConfig_; + /// + /// Optional. The encryption config can be specified to encrypt the data disks + /// and other persistent data resources of a cluster with a + /// customer-managed encryption key (CMEK). When this field is not + /// specified, the cluster will then use default encryption scheme to + /// protect the user data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig EncryptionConfig { + get { return encryptionConfig_; } + set { + encryptionConfig_ = value; + } + } + + /// Field number for the "encryption_info" field. + public const int EncryptionInfoFieldNumber = 20; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo encryptionInfo_; + /// + /// Output only. The encryption information for the cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo EncryptionInfo { + get { return encryptionInfo_; } + set { + encryptionInfo_ = value; + } + } + + /// Field number for the "secondary_config" field. + public const int SecondaryConfigFieldNumber = 22; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.SecondaryConfig secondaryConfig_; + /// + /// Cross Region replication config specific to SECONDARY cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.SecondaryConfig SecondaryConfig { + get { return secondaryConfig_; } + set { + secondaryConfig_ = value; + } + } + + /// Field number for the "primary_config" field. + public const int PrimaryConfigFieldNumber = 23; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.PrimaryConfig primaryConfig_; + /// + /// Output only. Cross Region replication config specific to PRIMARY cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.PrimaryConfig PrimaryConfig { + get { return primaryConfig_; } + set { + primaryConfig_ = value; + } + } + + private object source_; + /// Enum of possible cases for the "source" oneof. + public enum SourceOneofCase { + None = 0, + BackupSource = 15, + MigrationSource = 16, + } + private SourceOneofCase sourceCase_ = SourceOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourceOneofCase SourceCase { + get { return sourceCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSource() { + sourceCase_ = SourceOneofCase.None; + source_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Cluster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Cluster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BackupSource, other.BackupSource)) return false; + if (!object.Equals(MigrationSource, other.MigrationSource)) return false; + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (Uid != other.Uid) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(DeleteTime, other.DeleteTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (State != other.State) return false; + if (ClusterType != other.ClusterType) return false; + if (DatabaseVersion != other.DatabaseVersion) return false; + if (Network != other.Network) return false; + if (Etag != other.Etag) return false; + if (!Annotations.Equals(other.Annotations)) return false; + if (Reconciling != other.Reconciling) return false; + if (!object.Equals(AutomatedBackupPolicy, other.AutomatedBackupPolicy)) return false; + if (!object.Equals(SslConfig, other.SslConfig)) return false; + if (!object.Equals(EncryptionConfig, other.EncryptionConfig)) return false; + if (!object.Equals(EncryptionInfo, other.EncryptionInfo)) return false; + if (!object.Equals(SecondaryConfig, other.SecondaryConfig)) return false; + if (!object.Equals(PrimaryConfig, other.PrimaryConfig)) return false; + if (SourceCase != other.SourceCase) 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 (sourceCase_ == SourceOneofCase.BackupSource) hash ^= BackupSource.GetHashCode(); + if (sourceCase_ == SourceOneofCase.MigrationSource) hash ^= MigrationSource.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uid.Length != 0) hash ^= Uid.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (deleteTime_ != null) hash ^= DeleteTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (ClusterType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.ClusterType.Unspecified) hash ^= ClusterType.GetHashCode(); + if (DatabaseVersion != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.DatabaseVersion.Unspecified) hash ^= DatabaseVersion.GetHashCode(); + if (Network.Length != 0) hash ^= Network.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + hash ^= Annotations.GetHashCode(); + if (Reconciling != false) hash ^= Reconciling.GetHashCode(); + if (automatedBackupPolicy_ != null) hash ^= AutomatedBackupPolicy.GetHashCode(); + if (sslConfig_ != null) hash ^= SslConfig.GetHashCode(); + if (encryptionConfig_ != null) hash ^= EncryptionConfig.GetHashCode(); + if (encryptionInfo_ != null) hash ^= EncryptionInfo.GetHashCode(); + if (secondaryConfig_ != null) hash ^= SecondaryConfig.GetHashCode(); + if (primaryConfig_ != null) hash ^= PrimaryConfig.GetHashCode(); + hash ^= (int) sourceCase_; + 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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Uid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(DeleteTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.State.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + if (DatabaseVersion != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.DatabaseVersion.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) DatabaseVersion); + } + if (Network.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Network); + } + if (Etag.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Etag); + } + annotations_.WriteTo(output, _map_annotations_codec); + if (Reconciling != false) { + output.WriteRawTag(104); + output.WriteBool(Reconciling); + } + if (sourceCase_ == SourceOneofCase.BackupSource) { + output.WriteRawTag(122); + output.WriteMessage(BackupSource); + } + if (sourceCase_ == SourceOneofCase.MigrationSource) { + output.WriteRawTag(130, 1); + output.WriteMessage(MigrationSource); + } + if (automatedBackupPolicy_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(AutomatedBackupPolicy); + } + if (sslConfig_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(SslConfig); + } + if (encryptionConfig_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(EncryptionConfig); + } + if (encryptionInfo_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(EncryptionInfo); + } + if (secondaryConfig_ != null) { + output.WriteRawTag(178, 1); + output.WriteMessage(SecondaryConfig); + } + if (primaryConfig_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(PrimaryConfig); + } + if (ClusterType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.ClusterType.Unspecified) { + output.WriteRawTag(192, 1); + output.WriteEnum((int) ClusterType); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Uid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(DeleteTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.State.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + if (DatabaseVersion != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.DatabaseVersion.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) DatabaseVersion); + } + if (Network.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Network); + } + if (Etag.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Etag); + } + annotations_.WriteTo(ref output, _map_annotations_codec); + if (Reconciling != false) { + output.WriteRawTag(104); + output.WriteBool(Reconciling); + } + if (sourceCase_ == SourceOneofCase.BackupSource) { + output.WriteRawTag(122); + output.WriteMessage(BackupSource); + } + if (sourceCase_ == SourceOneofCase.MigrationSource) { + output.WriteRawTag(130, 1); + output.WriteMessage(MigrationSource); + } + if (automatedBackupPolicy_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(AutomatedBackupPolicy); + } + if (sslConfig_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(SslConfig); + } + if (encryptionConfig_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(EncryptionConfig); + } + if (encryptionInfo_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(EncryptionInfo); + } + if (secondaryConfig_ != null) { + output.WriteRawTag(178, 1); + output.WriteMessage(SecondaryConfig); + } + if (primaryConfig_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(PrimaryConfig); + } + if (ClusterType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.ClusterType.Unspecified) { + output.WriteRawTag(192, 1); + output.WriteEnum((int) ClusterType); + } + 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 (sourceCase_ == SourceOneofCase.BackupSource) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackupSource); + } + if (sourceCase_ == SourceOneofCase.MigrationSource) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MigrationSource); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (deleteTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeleteTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (ClusterType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.ClusterType.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ClusterType); + } + if (DatabaseVersion != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.DatabaseVersion.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DatabaseVersion); + } + if (Network.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Network); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + size += annotations_.CalculateSize(_map_annotations_codec); + if (Reconciling != false) { + size += 1 + 1; + } + if (automatedBackupPolicy_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AutomatedBackupPolicy); + } + if (sslConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SslConfig); + } + if (encryptionConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(EncryptionConfig); + } + if (encryptionInfo_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(EncryptionInfo); + } + if (secondaryConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SecondaryConfig); + } + if (primaryConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(PrimaryConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Cluster other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uid.Length != 0) { + Uid = other.Uid; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.deleteTime_ != null) { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + DeleteTime.MergeFrom(other.DeleteTime); + } + labels_.MergeFrom(other.labels_); + if (other.State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.State.Unspecified) { + State = other.State; + } + if (other.ClusterType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.ClusterType.Unspecified) { + ClusterType = other.ClusterType; + } + if (other.DatabaseVersion != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.DatabaseVersion.Unspecified) { + DatabaseVersion = other.DatabaseVersion; + } + if (other.Network.Length != 0) { + Network = other.Network; + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + annotations_.MergeFrom(other.annotations_); + if (other.Reconciling != false) { + Reconciling = other.Reconciling; + } + if (other.automatedBackupPolicy_ != null) { + if (automatedBackupPolicy_ == null) { + AutomatedBackupPolicy = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy(); + } + AutomatedBackupPolicy.MergeFrom(other.AutomatedBackupPolicy); + } + if (other.sslConfig_ != null) { + if (sslConfig_ == null) { + SslConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig(); + } + SslConfig.MergeFrom(other.SslConfig); + } + if (other.encryptionConfig_ != null) { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig(); + } + EncryptionConfig.MergeFrom(other.EncryptionConfig); + } + if (other.encryptionInfo_ != null) { + if (encryptionInfo_ == null) { + EncryptionInfo = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo(); + } + EncryptionInfo.MergeFrom(other.EncryptionInfo); + } + if (other.secondaryConfig_ != null) { + if (secondaryConfig_ == null) { + SecondaryConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.SecondaryConfig(); + } + SecondaryConfig.MergeFrom(other.SecondaryConfig); + } + if (other.primaryConfig_ != null) { + if (primaryConfig_ == null) { + PrimaryConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.PrimaryConfig(); + } + PrimaryConfig.MergeFrom(other.PrimaryConfig); + } + switch (other.SourceCase) { + case SourceOneofCase.BackupSource: + if (BackupSource == null) { + BackupSource = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.BackupSource(); + } + BackupSource.MergeFrom(other.BackupSource); + break; + case SourceOneofCase.MigrationSource: + if (MigrationSource == null) { + MigrationSource = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource(); + } + MigrationSource.MergeFrom(other.MigrationSource); + break; + } + + _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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Uid = input.ReadString(); + break; + } + case 34: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 42: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 50: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 58: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 64: { + State = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.State) input.ReadEnum(); + break; + } + case 72: { + DatabaseVersion = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.DatabaseVersion) input.ReadEnum(); + break; + } + case 82: { + Network = input.ReadString(); + break; + } + case 90: { + Etag = input.ReadString(); + break; + } + case 98: { + annotations_.AddEntriesFrom(input, _map_annotations_codec); + break; + } + case 104: { + Reconciling = input.ReadBool(); + break; + } + case 122: { + global::Google.Events.Protobuf.Cloud.AlloyDb.V1.BackupSource subBuilder = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.BackupSource(); + if (sourceCase_ == SourceOneofCase.BackupSource) { + subBuilder.MergeFrom(BackupSource); + } + input.ReadMessage(subBuilder); + BackupSource = subBuilder; + break; + } + case 130: { + global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource subBuilder = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource(); + if (sourceCase_ == SourceOneofCase.MigrationSource) { + subBuilder.MergeFrom(MigrationSource); + } + input.ReadMessage(subBuilder); + MigrationSource = subBuilder; + break; + } + case 138: { + if (automatedBackupPolicy_ == null) { + AutomatedBackupPolicy = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy(); + } + input.ReadMessage(AutomatedBackupPolicy); + break; + } + case 146: { + if (sslConfig_ == null) { + SslConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig(); + } + input.ReadMessage(SslConfig); + break; + } + case 154: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 162: { + if (encryptionInfo_ == null) { + EncryptionInfo = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo(); + } + input.ReadMessage(EncryptionInfo); + break; + } + case 178: { + if (secondaryConfig_ == null) { + SecondaryConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.SecondaryConfig(); + } + input.ReadMessage(SecondaryConfig); + break; + } + case 186: { + if (primaryConfig_ == null) { + PrimaryConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.PrimaryConfig(); + } + input.ReadMessage(PrimaryConfig); + break; + } + case 192: { + ClusterType = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.ClusterType) input.ReadEnum(); + 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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Uid = input.ReadString(); + break; + } + case 34: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 42: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 50: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 58: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 64: { + State = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.State) input.ReadEnum(); + break; + } + case 72: { + DatabaseVersion = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.DatabaseVersion) input.ReadEnum(); + break; + } + case 82: { + Network = input.ReadString(); + break; + } + case 90: { + Etag = input.ReadString(); + break; + } + case 98: { + annotations_.AddEntriesFrom(ref input, _map_annotations_codec); + break; + } + case 104: { + Reconciling = input.ReadBool(); + break; + } + case 122: { + global::Google.Events.Protobuf.Cloud.AlloyDb.V1.BackupSource subBuilder = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.BackupSource(); + if (sourceCase_ == SourceOneofCase.BackupSource) { + subBuilder.MergeFrom(BackupSource); + } + input.ReadMessage(subBuilder); + BackupSource = subBuilder; + break; + } + case 130: { + global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource subBuilder = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.MigrationSource(); + if (sourceCase_ == SourceOneofCase.MigrationSource) { + subBuilder.MergeFrom(MigrationSource); + } + input.ReadMessage(subBuilder); + MigrationSource = subBuilder; + break; + } + case 138: { + if (automatedBackupPolicy_ == null) { + AutomatedBackupPolicy = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.AutomatedBackupPolicy(); + } + input.ReadMessage(AutomatedBackupPolicy); + break; + } + case 146: { + if (sslConfig_ == null) { + SslConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.SslConfig(); + } + input.ReadMessage(SslConfig); + break; + } + case 154: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 162: { + if (encryptionInfo_ == null) { + EncryptionInfo = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo(); + } + input.ReadMessage(EncryptionInfo); + break; + } + case 178: { + if (secondaryConfig_ == null) { + SecondaryConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.SecondaryConfig(); + } + input.ReadMessage(SecondaryConfig); + break; + } + case 186: { + if (primaryConfig_ == null) { + PrimaryConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.PrimaryConfig(); + } + input.ReadMessage(PrimaryConfig); + break; + } + case 192: { + ClusterType = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.Types.ClusterType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Cluster message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Cluster State + /// + public enum State { + /// + /// The state of the cluster is unknown. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The cluster is active and running. + /// + [pbr::OriginalName("READY")] Ready = 1, + /// + /// The cluster is stopped. All instances in the cluster are stopped. + /// Customers can start a stopped cluster at any point and all their + /// instances will come back to life with same names and IP resources. In + /// this state, customer pays for storage. + /// Associated backups could also be present in a stopped cluster. + /// + [pbr::OriginalName("STOPPED")] Stopped = 2, + /// + /// The cluster is empty and has no associated resources. + /// All instances, associated storage and backups have been deleted. + /// + [pbr::OriginalName("EMPTY")] Empty = 3, + /// + /// The cluster is being created. + /// + [pbr::OriginalName("CREATING")] Creating = 4, + /// + /// The cluster is being deleted. + /// + [pbr::OriginalName("DELETING")] Deleting = 5, + /// + /// The creation of the cluster failed. + /// + [pbr::OriginalName("FAILED")] Failed = 6, + /// + /// The cluster is bootstrapping with data from some other source. + /// Direct mutations to the cluster (e.g. adding read pool) are not allowed. + /// + [pbr::OriginalName("BOOTSTRAPPING")] Bootstrapping = 7, + /// + /// The cluster is under maintenance. AlloyDB regularly performs maintenance + /// and upgrades on customer clusters. Updates on the cluster are + /// not allowed while the cluster is in this state. + /// + [pbr::OriginalName("MAINTENANCE")] Maintenance = 8, + /// + /// The cluster is being promoted. + /// + [pbr::OriginalName("PROMOTING")] Promoting = 9, + } + + /// + /// Type of Cluster + /// + public enum ClusterType { + /// + /// The type of the cluster is unknown. + /// + [pbr::OriginalName("CLUSTER_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Primary cluster that support read and write operations. + /// + [pbr::OriginalName("PRIMARY")] Primary = 1, + /// + /// Secondary cluster that is replicating from another region. + /// This only supports read. + /// + [pbr::OriginalName("SECONDARY")] Secondary = 2, + } + + /// + /// Configuration information for the secondary cluster. This should be set + /// if and only if the cluster is of type SECONDARY. + /// + public sealed partial class SecondaryConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SecondaryConfig()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.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 SecondaryConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecondaryConfig(SecondaryConfig other) : this() { + primaryClusterName_ = other.primaryClusterName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecondaryConfig Clone() { + return new SecondaryConfig(this); + } + + /// Field number for the "primary_cluster_name" field. + public const int PrimaryClusterNameFieldNumber = 1; + private string primaryClusterName_ = ""; + /// + /// The name of the primary cluster name with the format: + /// * projects/{project}/locations/{region}/clusters/{cluster_id} + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PrimaryClusterName { + get { return primaryClusterName_; } + set { + primaryClusterName_ = 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 SecondaryConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SecondaryConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PrimaryClusterName != other.PrimaryClusterName) 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 (PrimaryClusterName.Length != 0) hash ^= PrimaryClusterName.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 (PrimaryClusterName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PrimaryClusterName); + } + 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 (PrimaryClusterName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PrimaryClusterName); + } + 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 (PrimaryClusterName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PrimaryClusterName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SecondaryConfig other) { + if (other == null) { + return; + } + if (other.PrimaryClusterName.Length != 0) { + PrimaryClusterName = other.PrimaryClusterName; + } + _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: { + PrimaryClusterName = 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: { + PrimaryClusterName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Configuration for the primary cluster. It has the list of clusters that are + /// replicating from this cluster. This should be set if and only if the + /// cluster is of type PRIMARY. + /// + public sealed partial class PrimaryConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PrimaryConfig()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster.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 PrimaryConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PrimaryConfig(PrimaryConfig other) : this() { + secondaryClusterNames_ = other.secondaryClusterNames_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PrimaryConfig Clone() { + return new PrimaryConfig(this); + } + + /// Field number for the "secondary_cluster_names" field. + public const int SecondaryClusterNamesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_secondaryClusterNames_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField secondaryClusterNames_ = new pbc::RepeatedField(); + /// + /// Output only. Names of the clusters that are replicating from this + /// cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SecondaryClusterNames { + get { return secondaryClusterNames_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PrimaryConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PrimaryConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!secondaryClusterNames_.Equals(other.secondaryClusterNames_)) 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 ^= secondaryClusterNames_.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 + secondaryClusterNames_.WriteTo(output, _repeated_secondaryClusterNames_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) { + secondaryClusterNames_.WriteTo(ref output, _repeated_secondaryClusterNames_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 += secondaryClusterNames_.CalculateSize(_repeated_secondaryClusterNames_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PrimaryConfig other) { + if (other == null) { + return; + } + secondaryClusterNames_.Add(other.secondaryClusterNames_); + _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: { + secondaryClusterNames_.AddEntriesFrom(input, _repeated_secondaryClusterNames_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: { + secondaryClusterNames_.AddEntriesFrom(ref input, _repeated_secondaryClusterNames_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// An Instance is a computing unit that an end customer can connect to. + /// It's the main unit of computing resources in AlloyDB. + /// + public sealed partial class Instance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Instance()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 Instance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Instance(Instance other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + uid_ = other.uid_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + deleteTime_ = other.deleteTime_ != null ? other.deleteTime_.Clone() : null; + labels_ = other.labels_.Clone(); + state_ = other.state_; + instanceType_ = other.instanceType_; + machineConfig_ = other.machineConfig_ != null ? other.machineConfig_.Clone() : null; + availabilityType_ = other.availabilityType_; + gceZone_ = other.gceZone_; + databaseFlags_ = other.databaseFlags_.Clone(); + writableNode_ = other.writableNode_ != null ? other.writableNode_.Clone() : null; + nodes_ = other.nodes_.Clone(); + queryInsightsConfig_ = other.queryInsightsConfig_ != null ? other.queryInsightsConfig_.Clone() : null; + readPoolConfig_ = other.readPoolConfig_ != null ? other.readPoolConfig_.Clone() : null; + ipAddress_ = other.ipAddress_; + reconciling_ = other.reconciling_; + etag_ = other.etag_; + annotations_ = other.annotations_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Instance Clone() { + return new Instance(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The name of the instance resource with the format: + /// * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} + /// where the cluster and instance ID segments should satisfy the regex + /// expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of + /// lowercase letters, numbers, and dashes, starting with a letter, and ending + /// with a letter or number. For more details see https://google.aip.dev/122. + /// The prefix of the instance resource name is the name of the parent + /// resource: + /// * projects/{project}/locations/{region}/clusters/{cluster_id} + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// User-settable and human-readable display name for the Instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 3; + private string uid_ = ""; + /// + /// Output only. The system-generated UID of the resource. The UID is assigned + /// when the resource is created, and it is retained until it is deleted. + /// + [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 "create_time" field. + public const int CreateTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Create time stamp + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Update time stamp + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "delete_time" field. + public const int DeleteTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp deleteTime_; + /// + /// Output only. Delete time stamp + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp DeleteTime { + get { return deleteTime_; } + set { + deleteTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 58); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Labels as key value pairs + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.State state_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.State.Unspecified; + /// + /// Output only. The current serving state of the instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "instance_type" field. + public const int InstanceTypeFieldNumber = 9; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.InstanceType instanceType_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.InstanceType.Unspecified; + /// + /// Required. The type of the instance. Specified at creation time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.InstanceType InstanceType { + get { return instanceType_; } + set { + instanceType_ = value; + } + } + + /// Field number for the "machine_config" field. + public const int MachineConfigFieldNumber = 10; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.MachineConfig machineConfig_; + /// + /// Configurations for the machines that host the underlying + /// database engine. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.MachineConfig MachineConfig { + get { return machineConfig_; } + set { + machineConfig_ = value; + } + } + + /// Field number for the "availability_type" field. + public const int AvailabilityTypeFieldNumber = 11; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.AvailabilityType availabilityType_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.AvailabilityType.Unspecified; + /// + /// Availability type of an Instance. + /// If empty, defaults to REGIONAL for primary instances. + /// For read pools, availability_type is always UNSPECIFIED. Instances in the + /// read pools are evenly distributed across available zones within the region + /// (i.e. read pools with more than one node will have a node in at + /// least two zones). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.AvailabilityType AvailabilityType { + get { return availabilityType_; } + set { + availabilityType_ = value; + } + } + + /// Field number for the "gce_zone" field. + public const int GceZoneFieldNumber = 12; + private string gceZone_ = ""; + /// + /// The Compute Engine zone that the instance should serve from, per + /// https://cloud.google.com/compute/docs/regions-zones + /// This can ONLY be specified for ZONAL instances. + /// If present for a REGIONAL instance, an error will be thrown. + /// If this is absent for a ZONAL instance, instance is created in a random + /// zone with available capacity. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GceZone { + get { return gceZone_; } + set { + gceZone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "database_flags" field. + public const int DatabaseFlagsFieldNumber = 13; + private static readonly pbc::MapField.Codec _map_databaseFlags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 106); + private readonly pbc::MapField databaseFlags_ = new pbc::MapField(); + /// + /// Database flags. Set at instance level. + /// * They are copied from primary instance on read instance creation. + /// * Read instances can set new or override existing flags that are relevant + /// for reads, e.g. for enabling columnar cache on a read instance. Flags + /// set on read instance may or may not be present on primary. + /// + /// This is a list of "key": "value" pairs. + /// "key": The name of the flag. These flags are passed at instance setup time, + /// so include both server options and system variables for Postgres. Flags are + /// specified with underscores, not hyphens. + /// "value": The value of the flag. Booleans are set to **on** for true + /// and **off** for false. This field must be omitted if the flag + /// doesn't take a value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField DatabaseFlags { + get { return databaseFlags_; } + } + + /// Field number for the "writable_node" field. + public const int WritableNodeFieldNumber = 19; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.Node writableNode_; + /// + /// Output only. This is set for the read-write VM of the PRIMARY instance + /// only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.Node WritableNode { + get { return writableNode_; } + set { + writableNode_ = value; + } + } + + /// Field number for the "nodes" field. + public const int NodesFieldNumber = 20; + private static readonly pb::FieldCodec _repeated_nodes_codec + = pb::FieldCodec.ForMessage(162, global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.Node.Parser); + private readonly pbc::RepeatedField nodes_ = new pbc::RepeatedField(); + /// + /// Output only. List of available read-only VMs in this instance, including + /// the standby for a PRIMARY instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Nodes { + get { return nodes_; } + } + + /// Field number for the "query_insights_config" field. + public const int QueryInsightsConfigFieldNumber = 21; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig queryInsightsConfig_; + /// + /// Configuration for query insights. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig QueryInsightsConfig { + get { return queryInsightsConfig_; } + set { + queryInsightsConfig_ = value; + } + } + + /// Field number for the "read_pool_config" field. + public const int ReadPoolConfigFieldNumber = 14; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.ReadPoolConfig readPoolConfig_; + /// + /// Read pool specific config. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.ReadPoolConfig ReadPoolConfig { + get { return readPoolConfig_; } + set { + readPoolConfig_ = value; + } + } + + /// Field number for the "ip_address" field. + public const int IpAddressFieldNumber = 15; + private string ipAddress_ = ""; + /// + /// Output only. The IP address for the Instance. + /// This is the connection endpoint for an end-user application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IpAddress { + get { return ipAddress_; } + set { + ipAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reconciling" field. + public const int ReconcilingFieldNumber = 16; + private bool reconciling_; + /// + /// Output only. Reconciling (https://google.aip.dev/128#reconciliation). + /// Set to true if the current state of Instance does not match the user's + /// intended state, and the service is actively updating the resource to + /// reconcile them. This can happen due to user-triggered updates or + /// system actions like failover or maintenance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Reconciling { + get { return reconciling_; } + set { + reconciling_ = value; + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 17; + private string etag_ = ""; + /// + /// For Resource freshness validation (https://google.aip.dev/154) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "annotations" field. + public const int AnnotationsFieldNumber = 18; + private static readonly pbc::MapField.Codec _map_annotations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 146); + private readonly pbc::MapField annotations_ = new pbc::MapField(); + /// + /// Annotations to allow client tools to store small amount of arbitrary data. + /// This is distinct from labels. + /// https://google.aip.dev/128 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Annotations { + get { return annotations_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Instance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Instance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (Uid != other.Uid) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(DeleteTime, other.DeleteTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (State != other.State) return false; + if (InstanceType != other.InstanceType) return false; + if (!object.Equals(MachineConfig, other.MachineConfig)) return false; + if (AvailabilityType != other.AvailabilityType) return false; + if (GceZone != other.GceZone) return false; + if (!DatabaseFlags.Equals(other.DatabaseFlags)) return false; + if (!object.Equals(WritableNode, other.WritableNode)) return false; + if(!nodes_.Equals(other.nodes_)) return false; + if (!object.Equals(QueryInsightsConfig, other.QueryInsightsConfig)) return false; + if (!object.Equals(ReadPoolConfig, other.ReadPoolConfig)) return false; + if (IpAddress != other.IpAddress) return false; + if (Reconciling != other.Reconciling) return false; + if (Etag != other.Etag) return false; + if (!Annotations.Equals(other.Annotations)) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uid.Length != 0) hash ^= Uid.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (deleteTime_ != null) hash ^= DeleteTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (InstanceType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.InstanceType.Unspecified) hash ^= InstanceType.GetHashCode(); + if (machineConfig_ != null) hash ^= MachineConfig.GetHashCode(); + if (AvailabilityType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.AvailabilityType.Unspecified) hash ^= AvailabilityType.GetHashCode(); + if (GceZone.Length != 0) hash ^= GceZone.GetHashCode(); + hash ^= DatabaseFlags.GetHashCode(); + if (writableNode_ != null) hash ^= WritableNode.GetHashCode(); + hash ^= nodes_.GetHashCode(); + if (queryInsightsConfig_ != null) hash ^= QueryInsightsConfig.GetHashCode(); + if (readPoolConfig_ != null) hash ^= ReadPoolConfig.GetHashCode(); + if (IpAddress.Length != 0) hash ^= IpAddress.GetHashCode(); + if (Reconciling != false) hash ^= Reconciling.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + hash ^= Annotations.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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Uid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(DeleteTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.State.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + if (InstanceType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.InstanceType.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) InstanceType); + } + if (machineConfig_ != null) { + output.WriteRawTag(82); + output.WriteMessage(MachineConfig); + } + if (AvailabilityType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.AvailabilityType.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) AvailabilityType); + } + if (GceZone.Length != 0) { + output.WriteRawTag(98); + output.WriteString(GceZone); + } + databaseFlags_.WriteTo(output, _map_databaseFlags_codec); + if (readPoolConfig_ != null) { + output.WriteRawTag(114); + output.WriteMessage(ReadPoolConfig); + } + if (IpAddress.Length != 0) { + output.WriteRawTag(122); + output.WriteString(IpAddress); + } + if (Reconciling != false) { + output.WriteRawTag(128, 1); + output.WriteBool(Reconciling); + } + if (Etag.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Etag); + } + annotations_.WriteTo(output, _map_annotations_codec); + if (writableNode_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(WritableNode); + } + nodes_.WriteTo(output, _repeated_nodes_codec); + if (queryInsightsConfig_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(QueryInsightsConfig); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Uid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(DeleteTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.State.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + if (InstanceType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.InstanceType.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) InstanceType); + } + if (machineConfig_ != null) { + output.WriteRawTag(82); + output.WriteMessage(MachineConfig); + } + if (AvailabilityType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.AvailabilityType.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) AvailabilityType); + } + if (GceZone.Length != 0) { + output.WriteRawTag(98); + output.WriteString(GceZone); + } + databaseFlags_.WriteTo(ref output, _map_databaseFlags_codec); + if (readPoolConfig_ != null) { + output.WriteRawTag(114); + output.WriteMessage(ReadPoolConfig); + } + if (IpAddress.Length != 0) { + output.WriteRawTag(122); + output.WriteString(IpAddress); + } + if (Reconciling != false) { + output.WriteRawTag(128, 1); + output.WriteBool(Reconciling); + } + if (Etag.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Etag); + } + annotations_.WriteTo(ref output, _map_annotations_codec); + if (writableNode_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(WritableNode); + } + nodes_.WriteTo(ref output, _repeated_nodes_codec); + if (queryInsightsConfig_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(QueryInsightsConfig); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (deleteTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeleteTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (InstanceType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.InstanceType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InstanceType); + } + if (machineConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MachineConfig); + } + if (AvailabilityType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.AvailabilityType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvailabilityType); + } + if (GceZone.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GceZone); + } + size += databaseFlags_.CalculateSize(_map_databaseFlags_codec); + if (writableNode_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(WritableNode); + } + size += nodes_.CalculateSize(_repeated_nodes_codec); + if (queryInsightsConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(QueryInsightsConfig); + } + if (readPoolConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReadPoolConfig); + } + if (IpAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IpAddress); + } + if (Reconciling != false) { + size += 2 + 1; + } + if (Etag.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + size += annotations_.CalculateSize(_map_annotations_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Instance other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uid.Length != 0) { + Uid = other.Uid; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.deleteTime_ != null) { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + DeleteTime.MergeFrom(other.DeleteTime); + } + labels_.MergeFrom(other.labels_); + if (other.State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.State.Unspecified) { + State = other.State; + } + if (other.InstanceType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.InstanceType.Unspecified) { + InstanceType = other.InstanceType; + } + if (other.machineConfig_ != null) { + if (machineConfig_ == null) { + MachineConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.MachineConfig(); + } + MachineConfig.MergeFrom(other.MachineConfig); + } + if (other.AvailabilityType != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.AvailabilityType.Unspecified) { + AvailabilityType = other.AvailabilityType; + } + if (other.GceZone.Length != 0) { + GceZone = other.GceZone; + } + databaseFlags_.MergeFrom(other.databaseFlags_); + if (other.writableNode_ != null) { + if (writableNode_ == null) { + WritableNode = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.Node(); + } + WritableNode.MergeFrom(other.WritableNode); + } + nodes_.Add(other.nodes_); + if (other.queryInsightsConfig_ != null) { + if (queryInsightsConfig_ == null) { + QueryInsightsConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig(); + } + QueryInsightsConfig.MergeFrom(other.QueryInsightsConfig); + } + if (other.readPoolConfig_ != null) { + if (readPoolConfig_ == null) { + ReadPoolConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.ReadPoolConfig(); + } + ReadPoolConfig.MergeFrom(other.ReadPoolConfig); + } + if (other.IpAddress.Length != 0) { + IpAddress = other.IpAddress; + } + if (other.Reconciling != false) { + Reconciling = other.Reconciling; + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + annotations_.MergeFrom(other.annotations_); + _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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Uid = input.ReadString(); + break; + } + case 34: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 42: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 50: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 58: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 64: { + State = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.State) input.ReadEnum(); + break; + } + case 72: { + InstanceType = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.InstanceType) input.ReadEnum(); + break; + } + case 82: { + if (machineConfig_ == null) { + MachineConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.MachineConfig(); + } + input.ReadMessage(MachineConfig); + break; + } + case 88: { + AvailabilityType = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.AvailabilityType) input.ReadEnum(); + break; + } + case 98: { + GceZone = input.ReadString(); + break; + } + case 106: { + databaseFlags_.AddEntriesFrom(input, _map_databaseFlags_codec); + break; + } + case 114: { + if (readPoolConfig_ == null) { + ReadPoolConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.ReadPoolConfig(); + } + input.ReadMessage(ReadPoolConfig); + break; + } + case 122: { + IpAddress = input.ReadString(); + break; + } + case 128: { + Reconciling = input.ReadBool(); + break; + } + case 138: { + Etag = input.ReadString(); + break; + } + case 146: { + annotations_.AddEntriesFrom(input, _map_annotations_codec); + break; + } + case 154: { + if (writableNode_ == null) { + WritableNode = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.Node(); + } + input.ReadMessage(WritableNode); + break; + } + case 162: { + nodes_.AddEntriesFrom(input, _repeated_nodes_codec); + break; + } + case 170: { + if (queryInsightsConfig_ == null) { + QueryInsightsConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig(); + } + input.ReadMessage(QueryInsightsConfig); + 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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Uid = input.ReadString(); + break; + } + case 34: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 42: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 50: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 58: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 64: { + State = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.State) input.ReadEnum(); + break; + } + case 72: { + InstanceType = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.InstanceType) input.ReadEnum(); + break; + } + case 82: { + if (machineConfig_ == null) { + MachineConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.MachineConfig(); + } + input.ReadMessage(MachineConfig); + break; + } + case 88: { + AvailabilityType = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.AvailabilityType) input.ReadEnum(); + break; + } + case 98: { + GceZone = input.ReadString(); + break; + } + case 106: { + databaseFlags_.AddEntriesFrom(ref input, _map_databaseFlags_codec); + break; + } + case 114: { + if (readPoolConfig_ == null) { + ReadPoolConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.ReadPoolConfig(); + } + input.ReadMessage(ReadPoolConfig); + break; + } + case 122: { + IpAddress = input.ReadString(); + break; + } + case 128: { + Reconciling = input.ReadBool(); + break; + } + case 138: { + Etag = input.ReadString(); + break; + } + case 146: { + annotations_.AddEntriesFrom(ref input, _map_annotations_codec); + break; + } + case 154: { + if (writableNode_ == null) { + WritableNode = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.Node(); + } + input.ReadMessage(WritableNode); + break; + } + case 162: { + nodes_.AddEntriesFrom(ref input, _repeated_nodes_codec); + break; + } + case 170: { + if (queryInsightsConfig_ == null) { + QueryInsightsConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig(); + } + input.ReadMessage(QueryInsightsConfig); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Instance message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Instance State + /// + public enum State { + /// + /// The state of the instance is unknown. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The instance is active and running. + /// + [pbr::OriginalName("READY")] Ready = 1, + /// + /// The instance is stopped. Instance name and IP resources are preserved. + /// + [pbr::OriginalName("STOPPED")] Stopped = 2, + /// + /// The instance is being created. + /// + [pbr::OriginalName("CREATING")] Creating = 3, + /// + /// The instance is being deleted. + /// + [pbr::OriginalName("DELETING")] Deleting = 4, + /// + /// The instance is down for maintenance. + /// + [pbr::OriginalName("MAINTENANCE")] Maintenance = 5, + /// + /// The creation of the instance failed or a fatal error occurred during + /// an operation on the instance. + /// Note: Instances in this state would tried to be auto-repaired. And + /// Customers should be able to restart, update or delete these instances. + /// + [pbr::OriginalName("FAILED")] Failed = 6, + /// + /// Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that + /// index unused in case that state also needs to exposed via consumer apis + /// in future. + /// The instance has been configured to sync data from some other source. + /// + [pbr::OriginalName("BOOTSTRAPPING")] Bootstrapping = 8, + /// + /// The instance is being promoted. + /// + [pbr::OriginalName("PROMOTING")] Promoting = 9, + } + + /// + /// Type of an Instance + /// + public enum InstanceType { + /// + /// The type of the instance is unknown. + /// + [pbr::OriginalName("INSTANCE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// PRIMARY instances support read and write operations. + /// + [pbr::OriginalName("PRIMARY")] Primary = 1, + /// + /// READ POOL instances support read operations only. Each read pool instance + /// consists of one or more homogeneous nodes. + /// * Read pool of size 1 can only have zonal availability. + /// * Read pools with node count of 2 or more can have regional + /// availability (nodes are present in 2 or more zones in a region). + /// + [pbr::OriginalName("READ_POOL")] ReadPool = 2, + /// + /// SECONDARY instances support read operations only. SECONDARY instance + /// is a cross-region read replica + /// + [pbr::OriginalName("SECONDARY")] Secondary = 3, + } + + /// + /// The Availability type of an instance. Potential values: + /// - ZONAL: The instance serves data from only one zone. Outages in that + /// zone affect instance availability. + /// - REGIONAL: The instance can serve data from more than one zone in a + /// region (it is highly available). + /// + public enum AvailabilityType { + /// + /// This is an unknown Availability type. + /// + [pbr::OriginalName("AVAILABILITY_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Zonal available instance. + /// + [pbr::OriginalName("ZONAL")] Zonal = 1, + /// + /// Regional (or Highly) available instance. + /// + [pbr::OriginalName("REGIONAL")] Regional = 2, + } + + /// + /// MachineConfig describes the configuration of a machine. + /// + public sealed partial class MachineConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MachineConfig()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.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 MachineConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MachineConfig(MachineConfig other) : this() { + cpuCount_ = other.cpuCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MachineConfig Clone() { + return new MachineConfig(this); + } + + /// Field number for the "cpu_count" field. + public const int CpuCountFieldNumber = 1; + private int cpuCount_; + /// + /// The number of CPU's in the VM instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CpuCount { + get { return cpuCount_; } + set { + cpuCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MachineConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MachineConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CpuCount != other.CpuCount) 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 (CpuCount != 0) hash ^= CpuCount.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 (CpuCount != 0) { + output.WriteRawTag(8); + output.WriteInt32(CpuCount); + } + 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 (CpuCount != 0) { + output.WriteRawTag(8); + output.WriteInt32(CpuCount); + } + 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 (CpuCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CpuCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MachineConfig other) { + if (other == null) { + return; + } + if (other.CpuCount != 0) { + CpuCount = other.CpuCount; + } + _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: { + CpuCount = 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: { + CpuCount = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Details of a single node in the instance. + /// Nodes in an AlloyDB instance are ephemereal, they can change during + /// update, failover, autohealing and resize operations. + /// + public sealed partial class Node : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Node()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.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 Node() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Node(Node other) : this() { + zoneId_ = other.zoneId_; + id_ = other.id_; + ip_ = other.ip_; + state_ = other.state_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Node Clone() { + return new Node(this); + } + + /// Field number for the "zone_id" field. + public const int ZoneIdFieldNumber = 1; + private string zoneId_ = ""; + /// + /// The Compute Engine zone of the VM e.g. "us-central1-b". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ZoneId { + get { return zoneId_; } + set { + zoneId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 2; + private string id_ = ""; + /// + /// The identifier of the VM e.g. "test-read-0601-407e52be-ms3l". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ip" field. + public const int IpFieldNumber = 3; + private string ip_ = ""; + /// + /// The private IP address of the VM e.g. "10.57.0.34". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ip { + get { return ip_; } + set { + ip_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private string state_ = ""; + /// + /// Determined by state of the compute VM and postgres-service health. + /// Compute VM state can have values listed in + /// https://cloud.google.com/compute/docs/instances/instance-life-cycle and + /// postgres-service health can have values: HEALTHY and UNHEALTHY. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string State { + get { return state_; } + set { + state_ = 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 Node); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Node other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ZoneId != other.ZoneId) return false; + if (Id != other.Id) return false; + if (Ip != other.Ip) return false; + if (State != other.State) 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 (ZoneId.Length != 0) hash ^= ZoneId.GetHashCode(); + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Ip.Length != 0) hash ^= Ip.GetHashCode(); + if (State.Length != 0) hash ^= State.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 (ZoneId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ZoneId); + } + if (Id.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Id); + } + if (Ip.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Ip); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + 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 (ZoneId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ZoneId); + } + if (Id.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Id); + } + if (Ip.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Ip); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + 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 (ZoneId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ZoneId); + } + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Ip.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Ip); + } + if (State.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Node other) { + if (other == null) { + return; + } + if (other.ZoneId.Length != 0) { + ZoneId = other.ZoneId; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Ip.Length != 0) { + Ip = other.Ip; + } + if (other.State.Length != 0) { + State = other.State; + } + _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: { + ZoneId = input.ReadString(); + break; + } + case 18: { + Id = input.ReadString(); + break; + } + case 26: { + Ip = input.ReadString(); + break; + } + case 34: { + State = 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: { + ZoneId = input.ReadString(); + break; + } + case 18: { + Id = input.ReadString(); + break; + } + case 26: { + Ip = input.ReadString(); + break; + } + case 34: { + State = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// QueryInsights Instance specific configuration. + /// + public sealed partial class QueryInsightsInstanceConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryInsightsInstanceConfig()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [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::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.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 QueryInsightsInstanceConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public QueryInsightsInstanceConfig(QueryInsightsInstanceConfig other) : this() { + _hasBits0 = other._hasBits0; + recordApplicationTags_ = other.recordApplicationTags_; + recordClientAddress_ = other.recordClientAddress_; + queryStringLength_ = other.queryStringLength_; + queryPlansPerMinute_ = other.queryPlansPerMinute_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public QueryInsightsInstanceConfig Clone() { + return new QueryInsightsInstanceConfig(this); + } + + /// Field number for the "record_application_tags" field. + public const int RecordApplicationTagsFieldNumber = 2; + private readonly static bool RecordApplicationTagsDefaultValue = false; + + private bool recordApplicationTags_; + /// + /// Record application tags for an instance. + /// This flag is turned "on" by default. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RecordApplicationTags { + get { if ((_hasBits0 & 1) != 0) { return recordApplicationTags_; } else { return RecordApplicationTagsDefaultValue; } } + set { + _hasBits0 |= 1; + recordApplicationTags_ = value; + } + } + /// Gets whether the "record_application_tags" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRecordApplicationTags { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "record_application_tags" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRecordApplicationTags() { + _hasBits0 &= ~1; + } + + /// Field number for the "record_client_address" field. + public const int RecordClientAddressFieldNumber = 3; + private readonly static bool RecordClientAddressDefaultValue = false; + + private bool recordClientAddress_; + /// + /// Record client address for an instance. Client address is PII information. + /// This flag is turned "on" by default. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RecordClientAddress { + get { if ((_hasBits0 & 2) != 0) { return recordClientAddress_; } else { return RecordClientAddressDefaultValue; } } + set { + _hasBits0 |= 2; + recordClientAddress_ = value; + } + } + /// Gets whether the "record_client_address" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRecordClientAddress { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "record_client_address" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRecordClientAddress() { + _hasBits0 &= ~2; + } + + /// Field number for the "query_string_length" field. + public const int QueryStringLengthFieldNumber = 4; + private uint queryStringLength_; + /// + /// Query string length. The default value is 1024. + /// Any integer between 256 and 4500 is considered valid. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint QueryStringLength { + get { return queryStringLength_; } + set { + queryStringLength_ = value; + } + } + + /// Field number for the "query_plans_per_minute" field. + public const int QueryPlansPerMinuteFieldNumber = 5; + private readonly static uint QueryPlansPerMinuteDefaultValue = 0; + + private uint queryPlansPerMinute_; + /// + /// Number of query execution plans captured by Insights per minute + /// for all queries combined. The default value is 5. + /// Any integer between 0 and 20 is considered valid. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint QueryPlansPerMinute { + get { if ((_hasBits0 & 4) != 0) { return queryPlansPerMinute_; } else { return QueryPlansPerMinuteDefaultValue; } } + set { + _hasBits0 |= 4; + queryPlansPerMinute_ = value; + } + } + /// Gets whether the "query_plans_per_minute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQueryPlansPerMinute { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "query_plans_per_minute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQueryPlansPerMinute() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as QueryInsightsInstanceConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(QueryInsightsInstanceConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RecordApplicationTags != other.RecordApplicationTags) return false; + if (RecordClientAddress != other.RecordClientAddress) return false; + if (QueryStringLength != other.QueryStringLength) return false; + if (QueryPlansPerMinute != other.QueryPlansPerMinute) 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 (HasRecordApplicationTags) hash ^= RecordApplicationTags.GetHashCode(); + if (HasRecordClientAddress) hash ^= RecordClientAddress.GetHashCode(); + if (QueryStringLength != 0) hash ^= QueryStringLength.GetHashCode(); + if (HasQueryPlansPerMinute) hash ^= QueryPlansPerMinute.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 (HasRecordApplicationTags) { + output.WriteRawTag(16); + output.WriteBool(RecordApplicationTags); + } + if (HasRecordClientAddress) { + output.WriteRawTag(24); + output.WriteBool(RecordClientAddress); + } + if (QueryStringLength != 0) { + output.WriteRawTag(32); + output.WriteUInt32(QueryStringLength); + } + if (HasQueryPlansPerMinute) { + output.WriteRawTag(40); + output.WriteUInt32(QueryPlansPerMinute); + } + 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 (HasRecordApplicationTags) { + output.WriteRawTag(16); + output.WriteBool(RecordApplicationTags); + } + if (HasRecordClientAddress) { + output.WriteRawTag(24); + output.WriteBool(RecordClientAddress); + } + if (QueryStringLength != 0) { + output.WriteRawTag(32); + output.WriteUInt32(QueryStringLength); + } + if (HasQueryPlansPerMinute) { + output.WriteRawTag(40); + output.WriteUInt32(QueryPlansPerMinute); + } + 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 (HasRecordApplicationTags) { + size += 1 + 1; + } + if (HasRecordClientAddress) { + size += 1 + 1; + } + if (QueryStringLength != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(QueryStringLength); + } + if (HasQueryPlansPerMinute) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(QueryPlansPerMinute); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(QueryInsightsInstanceConfig other) { + if (other == null) { + return; + } + if (other.HasRecordApplicationTags) { + RecordApplicationTags = other.RecordApplicationTags; + } + if (other.HasRecordClientAddress) { + RecordClientAddress = other.RecordClientAddress; + } + if (other.QueryStringLength != 0) { + QueryStringLength = other.QueryStringLength; + } + if (other.HasQueryPlansPerMinute) { + QueryPlansPerMinute = other.QueryPlansPerMinute; + } + _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 16: { + RecordApplicationTags = input.ReadBool(); + break; + } + case 24: { + RecordClientAddress = input.ReadBool(); + break; + } + case 32: { + QueryStringLength = input.ReadUInt32(); + break; + } + case 40: { + QueryPlansPerMinute = input.ReadUInt32(); + 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 16: { + RecordApplicationTags = input.ReadBool(); + break; + } + case 24: { + RecordClientAddress = input.ReadBool(); + break; + } + case 32: { + QueryStringLength = input.ReadUInt32(); + break; + } + case 40: { + QueryPlansPerMinute = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Configuration for a read pool instance. + /// + public sealed partial class ReadPoolConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReadPoolConfig()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance.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 ReadPoolConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReadPoolConfig(ReadPoolConfig other) : this() { + nodeCount_ = other.nodeCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReadPoolConfig Clone() { + return new ReadPoolConfig(this); + } + + /// Field number for the "node_count" field. + public const int NodeCountFieldNumber = 1; + private int nodeCount_; + /// + /// Read capacity, i.e. number of nodes in a read pool instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NodeCount { + get { return nodeCount_; } + set { + nodeCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReadPoolConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReadPoolConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NodeCount != other.NodeCount) 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 (NodeCount != 0) hash ^= NodeCount.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 (NodeCount != 0) { + output.WriteRawTag(8); + output.WriteInt32(NodeCount); + } + 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 (NodeCount != 0) { + output.WriteRawTag(8); + output.WriteInt32(NodeCount); + } + 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 (NodeCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NodeCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReadPoolConfig other) { + if (other == null) { + return; + } + if (other.NodeCount != 0) { + NodeCount = other.NodeCount; + } + _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: { + NodeCount = 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: { + NodeCount = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Message describing Backup object + /// + public sealed partial class Backup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Backup()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 Backup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Backup(Backup other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + uid_ = other.uid_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + deleteTime_ = other.deleteTime_ != null ? other.deleteTime_.Clone() : null; + labels_ = other.labels_.Clone(); + state_ = other.state_; + type_ = other.type_; + description_ = other.description_; + clusterUid_ = other.clusterUid_; + clusterName_ = other.clusterName_; + reconciling_ = other.reconciling_; + encryptionConfig_ = other.encryptionConfig_ != null ? other.encryptionConfig_.Clone() : null; + encryptionInfo_ = other.encryptionInfo_ != null ? other.encryptionInfo_.Clone() : null; + etag_ = other.etag_; + annotations_ = other.annotations_.Clone(); + sizeBytes_ = other.sizeBytes_; + expiryTime_ = other.expiryTime_ != null ? other.expiryTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Backup Clone() { + return new Backup(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The name of the backup resource with the format: + /// * projects/{project}/locations/{region}/backups/{backup_id} + /// where the cluster and backup ID segments should satisfy the regex + /// expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of + /// lowercase letters, numbers, and dashes, starting with a letter, and ending + /// with a letter or number. For more details see https://google.aip.dev/122. + /// The prefix of the backup resource name is the name of the parent + /// resource: + /// * projects/{project}/locations/{region} + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// User-settable and human-readable display name for the Backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 3; + private string uid_ = ""; + /// + /// Output only. The system-generated UID of the resource. The UID is assigned + /// when the resource is created, and it is retained until it is deleted. + /// + [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 "create_time" field. + public const int CreateTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Create time stamp + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Update time stamp + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "delete_time" field. + public const int DeleteTimeFieldNumber = 15; + private global::Google.Protobuf.WellKnownTypes.Timestamp deleteTime_; + /// + /// Output only. Delete time stamp + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp DeleteTime { + get { return deleteTime_; } + set { + deleteTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 50); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Labels as key value pairs + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 7; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.State state_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.State.Unspecified; + /// + /// Output only. The current state of the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.Type type_ = global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.Type.Unspecified; + /// + /// The backup type, which suggests the trigger for the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.Type Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 9; + private string description_ = ""; + /// + /// User-provided description of the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cluster_uid" field. + public const int ClusterUidFieldNumber = 18; + private string clusterUid_ = ""; + /// + /// Output only. The system-generated UID of the cluster which was used to + /// create this resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClusterUid { + get { return clusterUid_; } + set { + clusterUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cluster_name" field. + public const int ClusterNameFieldNumber = 10; + private string clusterName_ = ""; + /// + /// Required. The full resource name of the backup source cluster + /// (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClusterName { + get { return clusterName_; } + set { + clusterName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reconciling" field. + public const int ReconcilingFieldNumber = 11; + private bool reconciling_; + /// + /// Output only. Reconciling (https://google.aip.dev/128#reconciliation), if + /// true, indicates that the service is actively updating the resource. This + /// can happen due to user-triggered updates or system actions like failover or + /// maintenance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Reconciling { + get { return reconciling_; } + set { + reconciling_ = value; + } + } + + /// Field number for the "encryption_config" field. + public const int EncryptionConfigFieldNumber = 12; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig encryptionConfig_; + /// + /// Optional. The encryption config can be specified to encrypt the + /// backup with a customer-managed encryption key (CMEK). When this field is + /// not specified, the backup will then use default encryption scheme to + /// protect the user data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig EncryptionConfig { + get { return encryptionConfig_; } + set { + encryptionConfig_ = value; + } + } + + /// Field number for the "encryption_info" field. + public const int EncryptionInfoFieldNumber = 13; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo encryptionInfo_; + /// + /// Output only. The encryption information for the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo EncryptionInfo { + get { return encryptionInfo_; } + set { + encryptionInfo_ = value; + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 14; + private string etag_ = ""; + /// + /// For Resource freshness validation (https://google.aip.dev/154) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "annotations" field. + public const int AnnotationsFieldNumber = 16; + private static readonly pbc::MapField.Codec _map_annotations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 130); + private readonly pbc::MapField annotations_ = new pbc::MapField(); + /// + /// Annotations to allow client tools to store small amount of arbitrary data. + /// This is distinct from labels. + /// https://google.aip.dev/128 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Annotations { + get { return annotations_; } + } + + /// Field number for the "size_bytes" field. + public const int SizeBytesFieldNumber = 17; + private long sizeBytes_; + /// + /// Output only. The size of the backup in bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SizeBytes { + get { return sizeBytes_; } + set { + sizeBytes_ = value; + } + } + + /// Field number for the "expiry_time" field. + public const int ExpiryTimeFieldNumber = 19; + private global::Google.Protobuf.WellKnownTypes.Timestamp expiryTime_; + /// + /// Output only. The time at which after the backup is eligible to be garbage + /// collected. It is the duration specified by the backup's retention policy, + /// added to the backup's create_time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiryTime { + get { return expiryTime_; } + set { + expiryTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Backup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Backup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (Uid != other.Uid) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(DeleteTime, other.DeleteTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (State != other.State) return false; + if (Type != other.Type) return false; + if (Description != other.Description) return false; + if (ClusterUid != other.ClusterUid) return false; + if (ClusterName != other.ClusterName) return false; + if (Reconciling != other.Reconciling) return false; + if (!object.Equals(EncryptionConfig, other.EncryptionConfig)) return false; + if (!object.Equals(EncryptionInfo, other.EncryptionInfo)) return false; + if (Etag != other.Etag) return false; + if (!Annotations.Equals(other.Annotations)) return false; + if (SizeBytes != other.SizeBytes) return false; + if (!object.Equals(ExpiryTime, other.ExpiryTime)) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uid.Length != 0) hash ^= Uid.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (deleteTime_ != null) hash ^= DeleteTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (Type != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.Type.Unspecified) hash ^= Type.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (ClusterUid.Length != 0) hash ^= ClusterUid.GetHashCode(); + if (ClusterName.Length != 0) hash ^= ClusterName.GetHashCode(); + if (Reconciling != false) hash ^= Reconciling.GetHashCode(); + if (encryptionConfig_ != null) hash ^= EncryptionConfig.GetHashCode(); + if (encryptionInfo_ != null) hash ^= EncryptionInfo.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + hash ^= Annotations.GetHashCode(); + if (SizeBytes != 0L) hash ^= SizeBytes.GetHashCode(); + if (expiryTime_ != null) hash ^= ExpiryTime.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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Uid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.State.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) State); + } + if (Type != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.Type.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) Type); + } + if (Description.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Description); + } + if (ClusterName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ClusterName); + } + if (Reconciling != false) { + output.WriteRawTag(88); + output.WriteBool(Reconciling); + } + if (encryptionConfig_ != null) { + output.WriteRawTag(98); + output.WriteMessage(EncryptionConfig); + } + if (encryptionInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(EncryptionInfo); + } + if (Etag.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Etag); + } + if (deleteTime_ != null) { + output.WriteRawTag(122); + output.WriteMessage(DeleteTime); + } + annotations_.WriteTo(output, _map_annotations_codec); + if (SizeBytes != 0L) { + output.WriteRawTag(136, 1); + output.WriteInt64(SizeBytes); + } + if (ClusterUid.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(ClusterUid); + } + if (expiryTime_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(ExpiryTime); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Uid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.State.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) State); + } + if (Type != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.Type.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) Type); + } + if (Description.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Description); + } + if (ClusterName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ClusterName); + } + if (Reconciling != false) { + output.WriteRawTag(88); + output.WriteBool(Reconciling); + } + if (encryptionConfig_ != null) { + output.WriteRawTag(98); + output.WriteMessage(EncryptionConfig); + } + if (encryptionInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(EncryptionInfo); + } + if (Etag.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Etag); + } + if (deleteTime_ != null) { + output.WriteRawTag(122); + output.WriteMessage(DeleteTime); + } + annotations_.WriteTo(ref output, _map_annotations_codec); + if (SizeBytes != 0L) { + output.WriteRawTag(136, 1); + output.WriteInt64(SizeBytes); + } + if (ClusterUid.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(ClusterUid); + } + if (expiryTime_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(ExpiryTime); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (deleteTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeleteTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (Type != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.Type.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (ClusterUid.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ClusterUid); + } + if (ClusterName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClusterName); + } + if (Reconciling != false) { + size += 1 + 1; + } + if (encryptionConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EncryptionConfig); + } + if (encryptionInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EncryptionInfo); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + size += annotations_.CalculateSize(_map_annotations_codec); + if (SizeBytes != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(SizeBytes); + } + if (expiryTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExpiryTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Backup other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uid.Length != 0) { + Uid = other.Uid; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.deleteTime_ != null) { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + DeleteTime.MergeFrom(other.DeleteTime); + } + labels_.MergeFrom(other.labels_); + if (other.State != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.State.Unspecified) { + State = other.State; + } + if (other.Type != global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.Type.Unspecified) { + Type = other.Type; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.ClusterUid.Length != 0) { + ClusterUid = other.ClusterUid; + } + if (other.ClusterName.Length != 0) { + ClusterName = other.ClusterName; + } + if (other.Reconciling != false) { + Reconciling = other.Reconciling; + } + if (other.encryptionConfig_ != null) { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig(); + } + EncryptionConfig.MergeFrom(other.EncryptionConfig); + } + if (other.encryptionInfo_ != null) { + if (encryptionInfo_ == null) { + EncryptionInfo = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo(); + } + EncryptionInfo.MergeFrom(other.EncryptionInfo); + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + annotations_.MergeFrom(other.annotations_); + if (other.SizeBytes != 0L) { + SizeBytes = other.SizeBytes; + } + if (other.expiryTime_ != null) { + if (expiryTime_ == null) { + ExpiryTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpiryTime.MergeFrom(other.ExpiryTime); + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Uid = input.ReadString(); + break; + } + case 34: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 42: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 50: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 56: { + State = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.State) input.ReadEnum(); + break; + } + case 64: { + Type = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.Type) input.ReadEnum(); + break; + } + case 74: { + Description = input.ReadString(); + break; + } + case 82: { + ClusterName = input.ReadString(); + break; + } + case 88: { + Reconciling = input.ReadBool(); + break; + } + case 98: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 106: { + if (encryptionInfo_ == null) { + EncryptionInfo = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo(); + } + input.ReadMessage(EncryptionInfo); + break; + } + case 114: { + Etag = input.ReadString(); + break; + } + case 122: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 130: { + annotations_.AddEntriesFrom(input, _map_annotations_codec); + break; + } + case 136: { + SizeBytes = input.ReadInt64(); + break; + } + case 146: { + ClusterUid = input.ReadString(); + break; + } + case 154: { + if (expiryTime_ == null) { + ExpiryTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiryTime); + 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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Uid = input.ReadString(); + break; + } + case 34: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 42: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 50: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 56: { + State = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.State) input.ReadEnum(); + break; + } + case 64: { + Type = (global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup.Types.Type) input.ReadEnum(); + break; + } + case 74: { + Description = input.ReadString(); + break; + } + case 82: { + ClusterName = input.ReadString(); + break; + } + case 88: { + Reconciling = input.ReadBool(); + break; + } + case 98: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 106: { + if (encryptionInfo_ == null) { + EncryptionInfo = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.EncryptionInfo(); + } + input.ReadMessage(EncryptionInfo); + break; + } + case 114: { + Etag = input.ReadString(); + break; + } + case 122: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 130: { + annotations_.AddEntriesFrom(ref input, _map_annotations_codec); + break; + } + case 136: { + SizeBytes = input.ReadInt64(); + break; + } + case 146: { + ClusterUid = input.ReadString(); + break; + } + case 154: { + if (expiryTime_ == null) { + ExpiryTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiryTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Backup message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Backup State + /// + public enum State { + /// + /// The state of the backup is unknown. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The backup is ready. + /// + [pbr::OriginalName("READY")] Ready = 1, + /// + /// The backup is creating. + /// + [pbr::OriginalName("CREATING")] Creating = 2, + /// + /// The backup failed. + /// + [pbr::OriginalName("FAILED")] Failed = 3, + /// + /// The backup is being deleted. + /// + [pbr::OriginalName("DELETING")] Deleting = 4, + } + + /// + /// Backup Type + /// + public enum Type { + /// + /// Backup Type is unknown. + /// + [pbr::OriginalName("TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// ON_DEMAND backups that were triggered by the customer (e.g., not + /// AUTOMATED). + /// + [pbr::OriginalName("ON_DEMAND")] OnDemand = 1, + /// + /// AUTOMATED backups triggered by the automated backups scheduler pursuant + /// to an automated backup policy. + /// + [pbr::OriginalName("AUTOMATED")] Automated = 2, + /// + /// CONTINUOUS backups triggered by the automated backups scheduler + /// due to a continuous backup policy. + /// + [pbr::OriginalName("CONTINUOUS")] Continuous = 3, + } + + } + #endregion + + } + + /// + /// The data within all Instance events. + /// + public sealed partial class InstanceEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InstanceEventData()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 InstanceEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InstanceEventData(InstanceEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InstanceEventData Clone() { + return new InstanceEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance payload_; + /// + /// Optional. The Instance event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InstanceEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InstanceEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InstanceEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Instance(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Backup events. + /// + public sealed partial class BackupEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BackupEventData()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 BackupEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackupEventData(BackupEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackupEventData Clone() { + return new BackupEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup payload_; + /// + /// Optional. The Backup event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BackupEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BackupEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BackupEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Backup(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Cluster events. + /// + public sealed partial class ClusterEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClusterEventData()); + 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::Google.Events.Protobuf.Cloud.AlloyDb.V1.DataReflection.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 ClusterEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClusterEventData(ClusterEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClusterEventData Clone() { + return new ClusterEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster payload_; + /// + /// Optional. The Cluster event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClusterEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClusterEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClusterEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.AlloyDb.V1.Cluster(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/ExtensionAttributes.g.cs b/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/ExtensionAttributes.g.cs new file mode 100644 index 0000000..7f27499 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/ExtensionAttributes.g.cs @@ -0,0 +1,65 @@ +// Copyright 2023, 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 +// +// https://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. + +using CloudNative.CloudEvents; + +namespace Google.Events.Protobuf.Cloud.AlloyDb.V1 +{ + /// Extension attributes for Google.Events.Protobuf.Cloud.AlloyDb.V1 events. + public static class ExtensionAttributes + { + /// + /// The resource ID of the Backup triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.alloydb.backup.v1.created + /// google.cloud.alloydb.backup.v1.updated + /// google.cloud.alloydb.backup.v1.deleted + /// + /// + public static CloudEventAttribute Backup { get; } = CloudEventAttribute.CreateExtension("backup", CloudEventAttributeType.String); + + /// + /// The resource ID of the Cluster triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.alloydb.cluster.v1.created + /// google.cloud.alloydb.cluster.v1.updated + /// google.cloud.alloydb.cluster.v1.deleted + /// google.cloud.alloydb.instance.v1.created + /// google.cloud.alloydb.instance.v1.updated + /// google.cloud.alloydb.instance.v1.deleted + /// + /// + public static CloudEventAttribute Cluster { get; } = CloudEventAttribute.CreateExtension("cluster", CloudEventAttributeType.String); + + /// + /// The resource ID of the Instance triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.alloydb.instance.v1.created + /// google.cloud.alloydb.instance.v1.updated + /// google.cloud.alloydb.instance.v1.deleted + /// + /// + public static CloudEventAttribute Instance { get; } = CloudEventAttribute.CreateExtension("instance", CloudEventAttributeType.String); + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/InstanceEventData.g.cs b/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/InstanceEventData.g.cs new file mode 100644 index 0000000..fcde062 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/AlloyDb/V1/InstanceEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.AlloyDb.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class InstanceEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.alloydb.instance.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.alloydb.instance.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.alloydb.instance.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Datastore/V1/Data.g.cs b/src/Google.Events.Protobuf/Cloud/Datastore/V1/Data.g.cs new file mode 100644 index 0000000..c89d77d --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Datastore/V1/Data.g.cs @@ -0,0 +1,3274 @@ +// Copyright 2023, 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 +// +// https://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. + +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/datastore/v1/data.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 Google.Events.Protobuf.Cloud.Datastore.V1 { + + /// Holder for reflection information generated from google/events/cloud/datastore/v1/data.proto + public static partial class DataReflection { + + #region Descriptor + /// File descriptor for google/events/cloud/datastore/v1/data.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Citnb29nbGUvZXZlbnRzL2Nsb3VkL2RhdGFzdG9yZS92MS9kYXRhLnByb3Rv", + "EiBnb29nbGUuZXZlbnRzLmNsb3VkLmRhdGFzdG9yZS52MRocZ29vZ2xlL3By", + "b3RvYnVmL3N0cnVjdC5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFt", + "cC5wcm90bxoYZ29vZ2xlL3R5cGUvbGF0bG5nLnByb3RvItgBCg9FbnRpdHlF", + "dmVudERhdGESPQoFdmFsdWUYASABKAsyLi5nb29nbGUuZXZlbnRzLmNsb3Vk", + "LmRhdGFzdG9yZS52MS5FbnRpdHlSZXN1bHQSQQoJb2xkX3ZhbHVlGAIgASgL", + "Mi4uZ29vZ2xlLmV2ZW50cy5jbG91ZC5kYXRhc3RvcmUudjEuRW50aXR5UmVz", + "dWx0EkMKC3VwZGF0ZV9tYXNrGAMgASgLMi4uZ29vZ2xlLmV2ZW50cy5jbG91", + "ZC5kYXRhc3RvcmUudjEuUHJvcGVydHlNYXNrIiYKDFByb3BlcnR5TWFzaxIW", + "Cg5wcm9wZXJ0eV9wYXRocxgBIAMoCSKeAgoMRW50aXR5UmVzdWx0EjgKBmVu", + "dGl0eRgBIAEoCzIoLmdvb2dsZS5ldmVudHMuY2xvdWQuZGF0YXN0b3JlLnYx", + "LkVudGl0eRIPCgd2ZXJzaW9uGAQgASgDEi8KC2NyZWF0ZV90aW1lGAYgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgt1cGRhdGVfdGltZRgF", + "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDgoGY3Vyc29yGAMg", + "ASgMIlEKClJlc3VsdFR5cGUSGwoXUkVTVUxUX1RZUEVfVU5TUEVDSUZJRUQQ", + "ABIICgRGVUxMEAESDgoKUFJPSkVDVElPThACEgwKCEtFWV9PTkxZEAMiTAoL", + "UGFydGl0aW9uSWQSEgoKcHJvamVjdF9pZBgCIAEoCRITCgtkYXRhYmFzZV9p", + "ZBgDIAEoCRIUCgxuYW1lc3BhY2VfaWQYBCABKAki0QEKA0tleRJDCgxwYXJ0", + "aXRpb25faWQYASABKAsyLS5nb29nbGUuZXZlbnRzLmNsb3VkLmRhdGFzdG9y", + "ZS52MS5QYXJ0aXRpb25JZBI/CgRwYXRoGAIgAygLMjEuZ29vZ2xlLmV2ZW50", + "cy5jbG91ZC5kYXRhc3RvcmUudjEuS2V5LlBhdGhFbGVtZW50GkQKC1BhdGhF", + "bGVtZW50EgwKBGtpbmQYASABKAkSDAoCaWQYAiABKANIABIOCgRuYW1lGAMg", + "ASgJSABCCQoHaWRfdHlwZSJFCgpBcnJheVZhbHVlEjcKBnZhbHVlcxgBIAMo", + "CzInLmdvb2dsZS5ldmVudHMuY2xvdWQuZGF0YXN0b3JlLnYxLlZhbHVlIpgE", + "CgVWYWx1ZRIwCgpudWxsX3ZhbHVlGAsgASgOMhouZ29vZ2xlLnByb3RvYnVm", + "Lk51bGxWYWx1ZUgAEhcKDWJvb2xlYW5fdmFsdWUYASABKAhIABIXCg1pbnRl", + "Z2VyX3ZhbHVlGAIgASgDSAASFgoMZG91YmxlX3ZhbHVlGAMgASgBSAASNQoP", + "dGltZXN0YW1wX3ZhbHVlGAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", + "dGFtcEgAEjoKCWtleV92YWx1ZRgFIAEoCzIlLmdvb2dsZS5ldmVudHMuY2xv", + "dWQuZGF0YXN0b3JlLnYxLktleUgAEhYKDHN0cmluZ192YWx1ZRgRIAEoCUgA", + "EhQKCmJsb2JfdmFsdWUYEiABKAxIABIuCg9nZW9fcG9pbnRfdmFsdWUYCCAB", + "KAsyEy5nb29nbGUudHlwZS5MYXRMbmdIABJACgxlbnRpdHlfdmFsdWUYBiAB", + "KAsyKC5nb29nbGUuZXZlbnRzLmNsb3VkLmRhdGFzdG9yZS52MS5FbnRpdHlI", + "ABJDCgthcnJheV92YWx1ZRgJIAEoCzIsLmdvb2dsZS5ldmVudHMuY2xvdWQu", + "ZGF0YXN0b3JlLnYxLkFycmF5VmFsdWVIABIPCgdtZWFuaW5nGA4gASgFEhwK", + "FGV4Y2x1ZGVfZnJvbV9pbmRleGVzGBMgASgIQgwKCnZhbHVlX3R5cGUi5gEK", + "BkVudGl0eRIyCgNrZXkYASABKAsyJS5nb29nbGUuZXZlbnRzLmNsb3VkLmRh", + "dGFzdG9yZS52MS5LZXkSTAoKcHJvcGVydGllcxgDIAMoCzI4Lmdvb2dsZS5l", + "dmVudHMuY2xvdWQuZGF0YXN0b3JlLnYxLkVudGl0eS5Qcm9wZXJ0aWVzRW50", + "cnkaWgoPUHJvcGVydGllc0VudHJ5EgsKA2tleRgBIAEoCRI2CgV2YWx1ZRgC", + "IAEoCzInLmdvb2dsZS5ldmVudHMuY2xvdWQuZGF0YXN0b3JlLnYxLlZhbHVl", + "OgI4AUJ4UAGqAilHb29nbGUuRXZlbnRzLlByb3RvYnVmLkNsb3VkLkRhdGFz", + "dG9yZS5WMcoCIEdvb2dsZVxFdmVudHNcQ2xvdWRcRGF0YXN0b3JlXFYx6gIk", + "R29vZ2xlOjpFdmVudHM6OkNsb3VkOjpEYXRhc3RvcmU6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Type.LatlngReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityEventData), global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityEventData.Parser, new[]{ "Value", "OldValue", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Datastore.V1.PropertyMask), global::Google.Events.Protobuf.Cloud.Datastore.V1.PropertyMask.Parser, new[]{ "PropertyPaths" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult), global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult.Parser, new[]{ "Entity", "Version", "CreateTime", "UpdateTime", "Cursor" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult.Types.ResultType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Datastore.V1.PartitionId), global::Google.Events.Protobuf.Cloud.Datastore.V1.PartitionId.Parser, new[]{ "ProjectId", "DatabaseId", "NamespaceId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Datastore.V1.Key), global::Google.Events.Protobuf.Cloud.Datastore.V1.Key.Parser, new[]{ "PartitionId", "Path" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Datastore.V1.Key.Types.PathElement), global::Google.Events.Protobuf.Cloud.Datastore.V1.Key.Types.PathElement.Parser, new[]{ "Kind", "Id", "Name" }, new[]{ "IdType" }, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Datastore.V1.ArrayValue), global::Google.Events.Protobuf.Cloud.Datastore.V1.ArrayValue.Parser, new[]{ "Values" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Datastore.V1.Value), global::Google.Events.Protobuf.Cloud.Datastore.V1.Value.Parser, new[]{ "NullValue", "BooleanValue", "IntegerValue", "DoubleValue", "TimestampValue", "KeyValue", "StringValue", "BlobValue", "GeoPointValue", "EntityValue", "ArrayValue", "Meaning", "ExcludeFromIndexes" }, new[]{ "ValueType" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity), global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity.Parser, new[]{ "Key", "Properties" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + /// + /// The data within all Firestore in Datastore Mode entity events. + /// + public sealed partial class EntityEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntityEventData()); + 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::Google.Events.Protobuf.Cloud.Datastore.V1.DataReflection.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 EntityEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityEventData(EntityEventData other) : this() { + value_ = other.value_ != null ? other.value_.Clone() : null; + oldValue_ = other.oldValue_ != null ? other.oldValue_.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 EntityEventData Clone() { + return new EntityEventData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult value_; + /// + /// An EntityResult object containing a post-operation entity snapshot. + /// This is not populated for delete events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult Value { + get { return value_; } + set { + value_ = value; + } + } + + /// Field number for the "old_value" field. + public const int OldValueFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult oldValue_; + /// + /// An EntityResult object containing a pre-operation entity snapshot. + /// This is only populated for update and delete events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult OldValue { + get { return oldValue_; } + set { + oldValue_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.Datastore.V1.PropertyMask updateMask_; + /// + /// A PropertyMask object that lists changed properties. + /// This is only populated for update events.. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Datastore.V1.PropertyMask 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 EntityEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EntityEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Value, other.Value)) return false; + if (!object.Equals(OldValue, other.OldValue)) 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 (value_ != null) hash ^= Value.GetHashCode(); + if (oldValue_ != null) hash ^= OldValue.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 (value_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Value); + } + if (oldValue_ != null) { + output.WriteRawTag(18); + output.WriteMessage(OldValue); + } + if (updateMask_ != null) { + output.WriteRawTag(26); + 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 (value_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Value); + } + if (oldValue_ != null) { + output.WriteRawTag(18); + output.WriteMessage(OldValue); + } + if (updateMask_ != null) { + output.WriteRawTag(26); + 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 (value_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + } + if (oldValue_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OldValue); + } + 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(EntityEventData other) { + if (other == null) { + return; + } + if (other.value_ != null) { + if (value_ == null) { + Value = new global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult(); + } + Value.MergeFrom(other.Value); + } + if (other.oldValue_ != null) { + if (oldValue_ == null) { + OldValue = new global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult(); + } + OldValue.MergeFrom(other.OldValue); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Events.Protobuf.Cloud.Datastore.V1.PropertyMask(); + } + 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 (value_ == null) { + Value = new global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult(); + } + input.ReadMessage(Value); + break; + } + case 18: { + if (oldValue_ == null) { + OldValue = new global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult(); + } + input.ReadMessage(OldValue); + break; + } + case 26: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Events.Protobuf.Cloud.Datastore.V1.PropertyMask(); + } + 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 (value_ == null) { + Value = new global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult(); + } + input.ReadMessage(Value); + break; + } + case 18: { + if (oldValue_ == null) { + OldValue = new global::Google.Events.Protobuf.Cloud.Datastore.V1.EntityResult(); + } + input.ReadMessage(OldValue); + break; + } + case 26: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Events.Protobuf.Cloud.Datastore.V1.PropertyMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// A set of property paths on an entity. + /// + public sealed partial class PropertyMask : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropertyMask()); + 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::Google.Events.Protobuf.Cloud.Datastore.V1.DataReflection.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 PropertyMask() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PropertyMask(PropertyMask other) : this() { + propertyPaths_ = other.propertyPaths_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PropertyMask Clone() { + return new PropertyMask(this); + } + + /// Field number for the "property_paths" field. + public const int PropertyPathsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_propertyPaths_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField propertyPaths_ = new pbc::RepeatedField(); + /// + /// The list of property paths in the mask. + /// This is not populated for delete events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PropertyPaths { + get { return propertyPaths_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PropertyMask); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PropertyMask other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!propertyPaths_.Equals(other.propertyPaths_)) 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 ^= propertyPaths_.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 + propertyPaths_.WriteTo(output, _repeated_propertyPaths_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) { + propertyPaths_.WriteTo(ref output, _repeated_propertyPaths_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 += propertyPaths_.CalculateSize(_repeated_propertyPaths_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PropertyMask other) { + if (other == null) { + return; + } + propertyPaths_.Add(other.propertyPaths_); + _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: { + propertyPaths_.AddEntriesFrom(input, _repeated_propertyPaths_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: { + propertyPaths_.AddEntriesFrom(ref input, _repeated_propertyPaths_codec); + break; + } + } + } + } + #endif + + } + + /// + /// The result of fetching an entity from Datastore. + /// + public sealed partial class EntityResult : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntityResult()); + 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::Google.Events.Protobuf.Cloud.Datastore.V1.DataReflection.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 EntityResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityResult(EntityResult other) : this() { + entity_ = other.entity_ != null ? other.entity_.Clone() : null; + version_ = other.version_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + cursor_ = other.cursor_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityResult Clone() { + return new EntityResult(this); + } + + /// Field number for the "entity" field. + public const int EntityFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity entity_; + /// + /// The resulting entity. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity Entity { + get { return entity_; } + set { + entity_ = value; + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 4; + private long version_; + /// + /// The version of the entity, a strictly positive number that monotonically + /// increases with changes to the entity. + /// + /// This field is set for + /// [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. + /// + /// For [missing][google.datastore.v1.LookupResponse.missing] entities in + /// `LookupResponse`, this is the version of the snapshot that was used to look + /// up the entity, and it is always set except for eventually consistent reads. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Version { + get { return version_; } + set { + version_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// The time at which the entity was created. + /// This field is set for + /// [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. + /// If this entity is missing, this field will not be set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// The time at which the entity was last changed. + /// This field is set for + /// [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. + /// If this entity is missing, this field will not be set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "cursor" field. + public const int CursorFieldNumber = 3; + private pb::ByteString cursor_ = pb::ByteString.Empty; + /// + /// A cursor that points to the position after the result entity. + /// Set only when the `EntityResult` is part of a `QueryResultBatch` message. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Cursor { + get { return cursor_; } + set { + cursor_ = 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 EntityResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EntityResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Entity, other.Entity)) return false; + if (Version != other.Version) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (Cursor != other.Cursor) 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 (entity_ != null) hash ^= Entity.GetHashCode(); + if (Version != 0L) hash ^= Version.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (Cursor.Length != 0) hash ^= Cursor.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 (entity_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Entity); + } + if (Cursor.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Cursor); + } + if (Version != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Version); + } + if (updateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateTime); + } + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + 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 (entity_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Entity); + } + if (Cursor.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Cursor); + } + if (Version != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Version); + } + if (updateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateTime); + } + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + 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 (entity_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Entity); + } + if (Version != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Version); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (Cursor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Cursor); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EntityResult other) { + if (other == null) { + return; + } + if (other.entity_ != null) { + if (entity_ == null) { + Entity = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity(); + } + Entity.MergeFrom(other.Entity); + } + if (other.Version != 0L) { + Version = other.Version; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.Cursor.Length != 0) { + Cursor = other.Cursor; + } + _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 (entity_ == null) { + Entity = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity(); + } + input.ReadMessage(Entity); + break; + } + case 26: { + Cursor = input.ReadBytes(); + break; + } + case 32: { + Version = input.ReadInt64(); + break; + } + case 42: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + 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 (entity_ == null) { + Entity = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity(); + } + input.ReadMessage(Entity); + break; + } + case 26: { + Cursor = input.ReadBytes(); + break; + } + case 32: { + Version = input.ReadInt64(); + break; + } + case 42: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the EntityResult message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Specifies what data the 'entity' field contains. + /// A `ResultType` is either implied (for example, in `LookupResponse.missing` + /// from `datastore.proto`, it is always `KEY_ONLY`) or specified by context + /// (for example, in message `QueryResultBatch`, field `entity_result_type` + /// specifies a `ResultType` for all the values in field `entity_results`). + /// + public enum ResultType { + /// + /// Unspecified. This value is never used. + /// + [pbr::OriginalName("RESULT_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The key and properties. + /// + [pbr::OriginalName("FULL")] Full = 1, + /// + /// A projected subset of properties. The entity may have no key. + /// + [pbr::OriginalName("PROJECTION")] Projection = 2, + /// + /// Only the key. + /// + [pbr::OriginalName("KEY_ONLY")] KeyOnly = 3, + } + + } + #endregion + + } + + /// + /// A partition ID identifies a grouping of entities. The grouping is always + /// by project and namespace, however the namespace ID may be empty. + /// + /// A partition ID contains several dimensions: + /// project ID and namespace ID. + /// + /// Partition dimensions: + /// + /// - May be `""`. + /// - Must be valid UTF-8 bytes. + /// - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` + /// If the value of any dimension matches regex `__.*__`, the partition is + /// reserved/read-only. + /// A reserved/read-only partition ID is forbidden in certain documented + /// contexts. + /// + /// Foreign partition IDs (in which the project ID does + /// not match the context project ID ) are discouraged. + /// Reads and writes of foreign partition IDs may fail if the project is not in + /// an active state. + /// + public sealed partial class PartitionId : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PartitionId()); + 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::Google.Events.Protobuf.Cloud.Datastore.V1.DataReflection.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 PartitionId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PartitionId(PartitionId other) : this() { + projectId_ = other.projectId_; + databaseId_ = other.databaseId_; + namespaceId_ = other.namespaceId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PartitionId Clone() { + return new PartitionId(this); + } + + /// Field number for the "project_id" field. + public const int ProjectIdFieldNumber = 2; + private string projectId_ = ""; + /// + /// The ID of the project to which the entities belong. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ProjectId { + get { return projectId_; } + set { + projectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "database_id" field. + public const int DatabaseIdFieldNumber = 3; + private string databaseId_ = ""; + /// + /// If not empty, the ID of the database to which the entities + /// belong. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DatabaseId { + get { return databaseId_; } + set { + databaseId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "namespace_id" field. + public const int NamespaceIdFieldNumber = 4; + private string namespaceId_ = ""; + /// + /// If not empty, the ID of the namespace to which the entities belong. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NamespaceId { + get { return namespaceId_; } + set { + namespaceId_ = 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 PartitionId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PartitionId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ProjectId != other.ProjectId) return false; + if (DatabaseId != other.DatabaseId) return false; + if (NamespaceId != other.NamespaceId) 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 (ProjectId.Length != 0) hash ^= ProjectId.GetHashCode(); + if (DatabaseId.Length != 0) hash ^= DatabaseId.GetHashCode(); + if (NamespaceId.Length != 0) hash ^= NamespaceId.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 (ProjectId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ProjectId); + } + if (DatabaseId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DatabaseId); + } + if (NamespaceId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(NamespaceId); + } + 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 (ProjectId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ProjectId); + } + if (DatabaseId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DatabaseId); + } + if (NamespaceId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(NamespaceId); + } + 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 (ProjectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectId); + } + if (DatabaseId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DatabaseId); + } + if (NamespaceId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NamespaceId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PartitionId other) { + if (other == null) { + return; + } + if (other.ProjectId.Length != 0) { + ProjectId = other.ProjectId; + } + if (other.DatabaseId.Length != 0) { + DatabaseId = other.DatabaseId; + } + if (other.NamespaceId.Length != 0) { + NamespaceId = other.NamespaceId; + } + _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 18: { + ProjectId = input.ReadString(); + break; + } + case 26: { + DatabaseId = input.ReadString(); + break; + } + case 34: { + NamespaceId = 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 18: { + ProjectId = input.ReadString(); + break; + } + case 26: { + DatabaseId = input.ReadString(); + break; + } + case 34: { + NamespaceId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A unique identifier for an entity. + /// If a key's partition ID or any of its path kinds or names are + /// reserved/read-only, the key is reserved/read-only. + /// A reserved/read-only key is forbidden in certain documented contexts. + /// + public sealed partial class Key : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Key()); + 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::Google.Events.Protobuf.Cloud.Datastore.V1.DataReflection.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 Key() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Key(Key other) : this() { + partitionId_ = other.partitionId_ != null ? other.partitionId_.Clone() : null; + path_ = other.path_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Key Clone() { + return new Key(this); + } + + /// Field number for the "partition_id" field. + public const int PartitionIdFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Datastore.V1.PartitionId partitionId_; + /// + /// Entities are partitioned into subsets, currently identified by a project + /// ID and namespace ID. + /// Queries are scoped to a single partition. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Datastore.V1.PartitionId PartitionId { + get { return partitionId_; } + set { + partitionId_ = value; + } + } + + /// Field number for the "path" field. + public const int PathFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_path_codec + = pb::FieldCodec.ForMessage(18, global::Google.Events.Protobuf.Cloud.Datastore.V1.Key.Types.PathElement.Parser); + private readonly pbc::RepeatedField path_ = new pbc::RepeatedField(); + /// + /// The entity path. + /// An entity path consists of one or more elements composed of a kind and a + /// string or numerical identifier, which identify entities. The first + /// element identifies a _root entity_, the second element identifies + /// a _child_ of the root entity, the third element identifies a child of the + /// second entity, and so forth. The entities identified by all prefixes of + /// the path are called the element's _ancestors_. + /// + /// An entity path is always fully complete: *all* of the entity's ancestors + /// are required to be in the path along with the entity identifier itself. + /// The only exception is that in some documented cases, the identifier in the + /// last path element (for the entity) itself may be omitted. For example, + /// the last path element of the key of `Mutation.insert` may have no + /// identifier. + /// + /// A path can never be empty, and a path can have at most 100 elements. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Path { + get { return path_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Key); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Key other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(PartitionId, other.PartitionId)) return false; + if(!path_.Equals(other.path_)) 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 (partitionId_ != null) hash ^= PartitionId.GetHashCode(); + hash ^= path_.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 (partitionId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(PartitionId); + } + path_.WriteTo(output, _repeated_path_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 (partitionId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(PartitionId); + } + path_.WriteTo(ref output, _repeated_path_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 (partitionId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartitionId); + } + size += path_.CalculateSize(_repeated_path_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Key other) { + if (other == null) { + return; + } + if (other.partitionId_ != null) { + if (partitionId_ == null) { + PartitionId = new global::Google.Events.Protobuf.Cloud.Datastore.V1.PartitionId(); + } + PartitionId.MergeFrom(other.PartitionId); + } + path_.Add(other.path_); + _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 (partitionId_ == null) { + PartitionId = new global::Google.Events.Protobuf.Cloud.Datastore.V1.PartitionId(); + } + input.ReadMessage(PartitionId); + break; + } + case 18: { + path_.AddEntriesFrom(input, _repeated_path_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: { + if (partitionId_ == null) { + PartitionId = new global::Google.Events.Protobuf.Cloud.Datastore.V1.PartitionId(); + } + input.ReadMessage(PartitionId); + break; + } + case 18: { + path_.AddEntriesFrom(ref input, _repeated_path_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Key message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// A (kind, ID/name) pair used to construct a key path. + /// + /// If either name or ID is set, the element is complete. + /// If neither is set, the element is incomplete. + /// + public sealed partial class PathElement : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PathElement()); + 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::Google.Events.Protobuf.Cloud.Datastore.V1.Key.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 PathElement() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PathElement(PathElement other) : this() { + kind_ = other.kind_; + switch (other.IdTypeCase) { + case IdTypeOneofCase.Id: + Id = other.Id; + break; + case IdTypeOneofCase.Name: + Name = other.Name; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PathElement Clone() { + return new PathElement(this); + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 1; + private string kind_ = ""; + /// + /// The kind of the entity. + /// + /// A kind matching regex `__.*__` is reserved/read-only. + /// A kind must not contain more than 1500 bytes when UTF-8 encoded. + /// Cannot be `""`. + /// + /// Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are + /// encoded as `__bytes<X>__` where `<X>` is the base-64 encoding of the + /// bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Kind { + get { return kind_; } + set { + kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 2; + /// + /// The auto-allocated ID of the entity. + /// + /// Never equal to zero. Values less than zero are discouraged and may not + /// be supported in the future. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return HasId ? (long) idType_ : 0L; } + set { + idType_ = value; + idTypeCase_ = IdTypeOneofCase.Id; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return idTypeCase_ == IdTypeOneofCase.Id; } + } + /// Clears the value of the oneof if it's currently set to "id" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + if (HasId) { + ClearIdType(); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + /// + /// The name of the entity. + /// + /// A name matching regex `__.*__` is reserved/read-only. + /// A name must not be more than 1500 bytes when UTF-8 encoded. + /// Cannot be `""`. + /// + /// Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are + /// encoded as `__bytes<X>__` where `<X>` is the base-64 encoding of the + /// bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return HasName ? (string) idType_ : ""; } + set { + idType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + idTypeCase_ = IdTypeOneofCase.Name; + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return idTypeCase_ == IdTypeOneofCase.Name; } + } + /// Clears the value of the oneof if it's currently set to "name" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + if (HasName) { + ClearIdType(); + } + } + + private object idType_; + /// Enum of possible cases for the "id_type" oneof. + public enum IdTypeOneofCase { + None = 0, + Id = 2, + Name = 3, + } + private IdTypeOneofCase idTypeCase_ = IdTypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IdTypeOneofCase IdTypeCase { + get { return idTypeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIdType() { + idTypeCase_ = IdTypeOneofCase.None; + idType_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PathElement); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PathElement other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Kind != other.Kind) return false; + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (IdTypeCase != other.IdTypeCase) 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 (Kind.Length != 0) hash ^= Kind.GetHashCode(); + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + hash ^= (int) idTypeCase_; + 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 (Kind.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Kind); + } + if (HasId) { + output.WriteRawTag(16); + output.WriteInt64(Id); + } + if (HasName) { + output.WriteRawTag(26); + 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 (Kind.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Kind); + } + if (HasId) { + output.WriteRawTag(16); + output.WriteInt64(Id); + } + if (HasName) { + output.WriteRawTag(26); + 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 (Kind.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); + } + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (HasName) { + 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(PathElement other) { + if (other == null) { + return; + } + if (other.Kind.Length != 0) { + Kind = other.Kind; + } + switch (other.IdTypeCase) { + case IdTypeOneofCase.Id: + Id = other.Id; + break; + case IdTypeOneofCase.Name: + Name = other.Name; + break; + } + + _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: { + Kind = input.ReadString(); + break; + } + case 16: { + Id = input.ReadInt64(); + break; + } + case 26: { + 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: { + Kind = input.ReadString(); + break; + } + case 16: { + Id = input.ReadInt64(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// An array value. + /// + public sealed partial class ArrayValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ArrayValue()); + 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::Google.Events.Protobuf.Cloud.Datastore.V1.DataReflection.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 ArrayValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ArrayValue(ArrayValue other) : this() { + values_ = other.values_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ArrayValue Clone() { + return new ArrayValue(this); + } + + /// Field number for the "values" field. + public const int ValuesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_values_codec + = pb::FieldCodec.ForMessage(10, global::Google.Events.Protobuf.Cloud.Datastore.V1.Value.Parser); + private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); + /// + /// Values in the array. + /// The order of values in an array is preserved as long as all values have + /// identical settings for 'exclude_from_indexes'. + /// + [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 ArrayValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ArrayValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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; + 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 + 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) { + 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; + 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(ArrayValue other) { + if (other == null) { + return; + } + 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: { + 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: { + values_.AddEntriesFrom(ref input, _repeated_values_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A message that can hold any of the supported value types and associated + /// metadata. + /// + public sealed partial class Value : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Value()); + 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::Google.Events.Protobuf.Cloud.Datastore.V1.DataReflection.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 Value() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Value(Value other) : this() { + meaning_ = other.meaning_; + excludeFromIndexes_ = other.excludeFromIndexes_; + switch (other.ValueTypeCase) { + case ValueTypeOneofCase.NullValue: + NullValue = other.NullValue; + break; + case ValueTypeOneofCase.BooleanValue: + BooleanValue = other.BooleanValue; + break; + case ValueTypeOneofCase.IntegerValue: + IntegerValue = other.IntegerValue; + break; + case ValueTypeOneofCase.DoubleValue: + DoubleValue = other.DoubleValue; + break; + case ValueTypeOneofCase.TimestampValue: + TimestampValue = other.TimestampValue.Clone(); + break; + case ValueTypeOneofCase.KeyValue: + KeyValue = other.KeyValue.Clone(); + break; + case ValueTypeOneofCase.StringValue: + StringValue = other.StringValue; + break; + case ValueTypeOneofCase.BlobValue: + BlobValue = other.BlobValue; + break; + case ValueTypeOneofCase.GeoPointValue: + GeoPointValue = other.GeoPointValue.Clone(); + break; + case ValueTypeOneofCase.EntityValue: + EntityValue = other.EntityValue.Clone(); + break; + case ValueTypeOneofCase.ArrayValue: + ArrayValue = other.ArrayValue.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Value Clone() { + return new Value(this); + } + + /// Field number for the "null_value" field. + public const int NullValueFieldNumber = 11; + /// + /// A null value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.NullValue NullValue { + get { return HasNullValue ? (global::Google.Protobuf.WellKnownTypes.NullValue) valueType_ : global::Google.Protobuf.WellKnownTypes.NullValue.NullValue; } + set { + valueType_ = value; + valueTypeCase_ = ValueTypeOneofCase.NullValue; + } + } + /// Gets whether the "null_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNullValue { + get { return valueTypeCase_ == ValueTypeOneofCase.NullValue; } + } + /// Clears the value of the oneof if it's currently set to "null_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNullValue() { + if (HasNullValue) { + ClearValueType(); + } + } + + /// Field number for the "boolean_value" field. + public const int BooleanValueFieldNumber = 1; + /// + /// A boolean value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool BooleanValue { + get { return HasBooleanValue ? (bool) valueType_ : false; } + set { + valueType_ = value; + valueTypeCase_ = ValueTypeOneofCase.BooleanValue; + } + } + /// Gets whether the "boolean_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBooleanValue { + get { return valueTypeCase_ == ValueTypeOneofCase.BooleanValue; } + } + /// Clears the value of the oneof if it's currently set to "boolean_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBooleanValue() { + if (HasBooleanValue) { + ClearValueType(); + } + } + + /// Field number for the "integer_value" field. + public const int IntegerValueFieldNumber = 2; + /// + /// An integer value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long IntegerValue { + get { return HasIntegerValue ? (long) valueType_ : 0L; } + set { + valueType_ = value; + valueTypeCase_ = ValueTypeOneofCase.IntegerValue; + } + } + /// Gets whether the "integer_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIntegerValue { + get { return valueTypeCase_ == ValueTypeOneofCase.IntegerValue; } + } + /// Clears the value of the oneof if it's currently set to "integer_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIntegerValue() { + if (HasIntegerValue) { + ClearValueType(); + } + } + + /// Field number for the "double_value" field. + public const int DoubleValueFieldNumber = 3; + /// + /// A double value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double DoubleValue { + get { return HasDoubleValue ? (double) valueType_ : 0D; } + set { + valueType_ = value; + valueTypeCase_ = ValueTypeOneofCase.DoubleValue; + } + } + /// Gets whether the "double_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDoubleValue { + get { return valueTypeCase_ == ValueTypeOneofCase.DoubleValue; } + } + /// Clears the value of the oneof if it's currently set to "double_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDoubleValue() { + if (HasDoubleValue) { + ClearValueType(); + } + } + + /// Field number for the "timestamp_value" field. + public const int TimestampValueFieldNumber = 10; + /// + /// A timestamp value. + /// When stored in the Datastore, precise only to microseconds; + /// any additional precision is rounded down. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampValue { + get { return valueTypeCase_ == ValueTypeOneofCase.TimestampValue ? (global::Google.Protobuf.WellKnownTypes.Timestamp) valueType_ : null; } + set { + valueType_ = value; + valueTypeCase_ = value == null ? ValueTypeOneofCase.None : ValueTypeOneofCase.TimestampValue; + } + } + + /// Field number for the "key_value" field. + public const int KeyValueFieldNumber = 5; + /// + /// A key value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Datastore.V1.Key KeyValue { + get { return valueTypeCase_ == ValueTypeOneofCase.KeyValue ? (global::Google.Events.Protobuf.Cloud.Datastore.V1.Key) valueType_ : null; } + set { + valueType_ = value; + valueTypeCase_ = value == null ? ValueTypeOneofCase.None : ValueTypeOneofCase.KeyValue; + } + } + + /// Field number for the "string_value" field. + public const int StringValueFieldNumber = 17; + /// + /// A UTF-8 encoded string value. + /// When `exclude_from_indexes` is false (it is indexed) , may have at most + /// 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StringValue { + get { return HasStringValue ? (string) valueType_ : ""; } + set { + valueType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + valueTypeCase_ = ValueTypeOneofCase.StringValue; + } + } + /// Gets whether the "string_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStringValue { + get { return valueTypeCase_ == ValueTypeOneofCase.StringValue; } + } + /// Clears the value of the oneof if it's currently set to "string_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStringValue() { + if (HasStringValue) { + ClearValueType(); + } + } + + /// Field number for the "blob_value" field. + public const int BlobValueFieldNumber = 18; + /// + /// A blob value. + /// May have at most 1,000,000 bytes. + /// When `exclude_from_indexes` is false, may have at most 1500 bytes. + /// In JSON requests, must be base64-encoded. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString BlobValue { + get { return HasBlobValue ? (pb::ByteString) valueType_ : pb::ByteString.Empty; } + set { + valueType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + valueTypeCase_ = ValueTypeOneofCase.BlobValue; + } + } + /// Gets whether the "blob_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlobValue { + get { return valueTypeCase_ == ValueTypeOneofCase.BlobValue; } + } + /// Clears the value of the oneof if it's currently set to "blob_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlobValue() { + if (HasBlobValue) { + ClearValueType(); + } + } + + /// Field number for the "geo_point_value" field. + public const int GeoPointValueFieldNumber = 8; + /// + /// A geo point value representing a point on the surface of Earth. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.LatLng GeoPointValue { + get { return valueTypeCase_ == ValueTypeOneofCase.GeoPointValue ? (global::Google.Type.LatLng) valueType_ : null; } + set { + valueType_ = value; + valueTypeCase_ = value == null ? ValueTypeOneofCase.None : ValueTypeOneofCase.GeoPointValue; + } + } + + /// Field number for the "entity_value" field. + public const int EntityValueFieldNumber = 6; + /// + /// An entity value. + /// + /// - May have no key. + /// - May have a key with an incomplete key path. + /// - May have a reserved/read-only key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity EntityValue { + get { return valueTypeCase_ == ValueTypeOneofCase.EntityValue ? (global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity) valueType_ : null; } + set { + valueType_ = value; + valueTypeCase_ = value == null ? ValueTypeOneofCase.None : ValueTypeOneofCase.EntityValue; + } + } + + /// Field number for the "array_value" field. + public const int ArrayValueFieldNumber = 9; + /// + /// An array value. + /// Cannot contain another array value. + /// A `Value` instance that sets field `array_value` must not set fields + /// `meaning` or `exclude_from_indexes`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Datastore.V1.ArrayValue ArrayValue { + get { return valueTypeCase_ == ValueTypeOneofCase.ArrayValue ? (global::Google.Events.Protobuf.Cloud.Datastore.V1.ArrayValue) valueType_ : null; } + set { + valueType_ = value; + valueTypeCase_ = value == null ? ValueTypeOneofCase.None : ValueTypeOneofCase.ArrayValue; + } + } + + /// Field number for the "meaning" field. + public const int MeaningFieldNumber = 14; + private int meaning_; + /// + /// The `meaning` field should only be populated for backwards compatibility. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Meaning { + get { return meaning_; } + set { + meaning_ = value; + } + } + + /// Field number for the "exclude_from_indexes" field. + public const int ExcludeFromIndexesFieldNumber = 19; + private bool excludeFromIndexes_; + /// + /// If the value should be excluded from all indexes including those defined + /// explicitly. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ExcludeFromIndexes { + get { return excludeFromIndexes_; } + set { + excludeFromIndexes_ = value; + } + } + + private object valueType_; + /// Enum of possible cases for the "value_type" oneof. + public enum ValueTypeOneofCase { + None = 0, + NullValue = 11, + BooleanValue = 1, + IntegerValue = 2, + DoubleValue = 3, + TimestampValue = 10, + KeyValue = 5, + StringValue = 17, + BlobValue = 18, + GeoPointValue = 8, + EntityValue = 6, + ArrayValue = 9, + } + private ValueTypeOneofCase valueTypeCase_ = ValueTypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueTypeOneofCase ValueTypeCase { + get { return valueTypeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValueType() { + valueTypeCase_ = ValueTypeOneofCase.None; + valueType_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Value); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Value other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NullValue != other.NullValue) return false; + if (BooleanValue != other.BooleanValue) return false; + if (IntegerValue != other.IntegerValue) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false; + if (!object.Equals(TimestampValue, other.TimestampValue)) return false; + if (!object.Equals(KeyValue, other.KeyValue)) return false; + if (StringValue != other.StringValue) return false; + if (BlobValue != other.BlobValue) return false; + if (!object.Equals(GeoPointValue, other.GeoPointValue)) return false; + if (!object.Equals(EntityValue, other.EntityValue)) return false; + if (!object.Equals(ArrayValue, other.ArrayValue)) return false; + if (Meaning != other.Meaning) return false; + if (ExcludeFromIndexes != other.ExcludeFromIndexes) return false; + if (ValueTypeCase != other.ValueTypeCase) 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 (HasNullValue) hash ^= NullValue.GetHashCode(); + if (HasBooleanValue) hash ^= BooleanValue.GetHashCode(); + if (HasIntegerValue) hash ^= IntegerValue.GetHashCode(); + if (HasDoubleValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleValue); + if (valueTypeCase_ == ValueTypeOneofCase.TimestampValue) hash ^= TimestampValue.GetHashCode(); + if (valueTypeCase_ == ValueTypeOneofCase.KeyValue) hash ^= KeyValue.GetHashCode(); + if (HasStringValue) hash ^= StringValue.GetHashCode(); + if (HasBlobValue) hash ^= BlobValue.GetHashCode(); + if (valueTypeCase_ == ValueTypeOneofCase.GeoPointValue) hash ^= GeoPointValue.GetHashCode(); + if (valueTypeCase_ == ValueTypeOneofCase.EntityValue) hash ^= EntityValue.GetHashCode(); + if (valueTypeCase_ == ValueTypeOneofCase.ArrayValue) hash ^= ArrayValue.GetHashCode(); + if (Meaning != 0) hash ^= Meaning.GetHashCode(); + if (ExcludeFromIndexes != false) hash ^= ExcludeFromIndexes.GetHashCode(); + hash ^= (int) valueTypeCase_; + 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 (HasBooleanValue) { + output.WriteRawTag(8); + output.WriteBool(BooleanValue); + } + if (HasIntegerValue) { + output.WriteRawTag(16); + output.WriteInt64(IntegerValue); + } + if (HasDoubleValue) { + output.WriteRawTag(25); + output.WriteDouble(DoubleValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.KeyValue) { + output.WriteRawTag(42); + output.WriteMessage(KeyValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.EntityValue) { + output.WriteRawTag(50); + output.WriteMessage(EntityValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.GeoPointValue) { + output.WriteRawTag(66); + output.WriteMessage(GeoPointValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.ArrayValue) { + output.WriteRawTag(74); + output.WriteMessage(ArrayValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.TimestampValue) { + output.WriteRawTag(82); + output.WriteMessage(TimestampValue); + } + if (HasNullValue) { + output.WriteRawTag(88); + output.WriteEnum((int) NullValue); + } + if (Meaning != 0) { + output.WriteRawTag(112); + output.WriteInt32(Meaning); + } + if (HasStringValue) { + output.WriteRawTag(138, 1); + output.WriteString(StringValue); + } + if (HasBlobValue) { + output.WriteRawTag(146, 1); + output.WriteBytes(BlobValue); + } + if (ExcludeFromIndexes != false) { + output.WriteRawTag(152, 1); + output.WriteBool(ExcludeFromIndexes); + } + 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 (HasBooleanValue) { + output.WriteRawTag(8); + output.WriteBool(BooleanValue); + } + if (HasIntegerValue) { + output.WriteRawTag(16); + output.WriteInt64(IntegerValue); + } + if (HasDoubleValue) { + output.WriteRawTag(25); + output.WriteDouble(DoubleValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.KeyValue) { + output.WriteRawTag(42); + output.WriteMessage(KeyValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.EntityValue) { + output.WriteRawTag(50); + output.WriteMessage(EntityValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.GeoPointValue) { + output.WriteRawTag(66); + output.WriteMessage(GeoPointValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.ArrayValue) { + output.WriteRawTag(74); + output.WriteMessage(ArrayValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.TimestampValue) { + output.WriteRawTag(82); + output.WriteMessage(TimestampValue); + } + if (HasNullValue) { + output.WriteRawTag(88); + output.WriteEnum((int) NullValue); + } + if (Meaning != 0) { + output.WriteRawTag(112); + output.WriteInt32(Meaning); + } + if (HasStringValue) { + output.WriteRawTag(138, 1); + output.WriteString(StringValue); + } + if (HasBlobValue) { + output.WriteRawTag(146, 1); + output.WriteBytes(BlobValue); + } + if (ExcludeFromIndexes != false) { + output.WriteRawTag(152, 1); + output.WriteBool(ExcludeFromIndexes); + } + 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 (HasNullValue) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NullValue); + } + if (HasBooleanValue) { + size += 1 + 1; + } + if (HasIntegerValue) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntegerValue); + } + if (HasDoubleValue) { + size += 1 + 8; + } + if (valueTypeCase_ == ValueTypeOneofCase.TimestampValue) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.KeyValue) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyValue); + } + if (HasStringValue) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(StringValue); + } + if (HasBlobValue) { + size += 2 + pb::CodedOutputStream.ComputeBytesSize(BlobValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.GeoPointValue) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GeoPointValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.EntityValue) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityValue); + } + if (valueTypeCase_ == ValueTypeOneofCase.ArrayValue) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ArrayValue); + } + if (Meaning != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Meaning); + } + if (ExcludeFromIndexes != false) { + size += 2 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Value other) { + if (other == null) { + return; + } + if (other.Meaning != 0) { + Meaning = other.Meaning; + } + if (other.ExcludeFromIndexes != false) { + ExcludeFromIndexes = other.ExcludeFromIndexes; + } + switch (other.ValueTypeCase) { + case ValueTypeOneofCase.NullValue: + NullValue = other.NullValue; + break; + case ValueTypeOneofCase.BooleanValue: + BooleanValue = other.BooleanValue; + break; + case ValueTypeOneofCase.IntegerValue: + IntegerValue = other.IntegerValue; + break; + case ValueTypeOneofCase.DoubleValue: + DoubleValue = other.DoubleValue; + break; + case ValueTypeOneofCase.TimestampValue: + if (TimestampValue == null) { + TimestampValue = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + TimestampValue.MergeFrom(other.TimestampValue); + break; + case ValueTypeOneofCase.KeyValue: + if (KeyValue == null) { + KeyValue = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Key(); + } + KeyValue.MergeFrom(other.KeyValue); + break; + case ValueTypeOneofCase.StringValue: + StringValue = other.StringValue; + break; + case ValueTypeOneofCase.BlobValue: + BlobValue = other.BlobValue; + break; + case ValueTypeOneofCase.GeoPointValue: + if (GeoPointValue == null) { + GeoPointValue = new global::Google.Type.LatLng(); + } + GeoPointValue.MergeFrom(other.GeoPointValue); + break; + case ValueTypeOneofCase.EntityValue: + if (EntityValue == null) { + EntityValue = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity(); + } + EntityValue.MergeFrom(other.EntityValue); + break; + case ValueTypeOneofCase.ArrayValue: + if (ArrayValue == null) { + ArrayValue = new global::Google.Events.Protobuf.Cloud.Datastore.V1.ArrayValue(); + } + ArrayValue.MergeFrom(other.ArrayValue); + break; + } + + _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: { + BooleanValue = input.ReadBool(); + break; + } + case 16: { + IntegerValue = input.ReadInt64(); + break; + } + case 25: { + DoubleValue = input.ReadDouble(); + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.Datastore.V1.Key subBuilder = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Key(); + if (valueTypeCase_ == ValueTypeOneofCase.KeyValue) { + subBuilder.MergeFrom(KeyValue); + } + input.ReadMessage(subBuilder); + KeyValue = subBuilder; + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity subBuilder = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity(); + if (valueTypeCase_ == ValueTypeOneofCase.EntityValue) { + subBuilder.MergeFrom(EntityValue); + } + input.ReadMessage(subBuilder); + EntityValue = subBuilder; + break; + } + case 66: { + global::Google.Type.LatLng subBuilder = new global::Google.Type.LatLng(); + if (valueTypeCase_ == ValueTypeOneofCase.GeoPointValue) { + subBuilder.MergeFrom(GeoPointValue); + } + input.ReadMessage(subBuilder); + GeoPointValue = subBuilder; + break; + } + case 74: { + global::Google.Events.Protobuf.Cloud.Datastore.V1.ArrayValue subBuilder = new global::Google.Events.Protobuf.Cloud.Datastore.V1.ArrayValue(); + if (valueTypeCase_ == ValueTypeOneofCase.ArrayValue) { + subBuilder.MergeFrom(ArrayValue); + } + input.ReadMessage(subBuilder); + ArrayValue = subBuilder; + break; + } + case 82: { + global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (valueTypeCase_ == ValueTypeOneofCase.TimestampValue) { + subBuilder.MergeFrom(TimestampValue); + } + input.ReadMessage(subBuilder); + TimestampValue = subBuilder; + break; + } + case 88: { + valueType_ = input.ReadEnum(); + valueTypeCase_ = ValueTypeOneofCase.NullValue; + break; + } + case 112: { + Meaning = input.ReadInt32(); + break; + } + case 138: { + StringValue = input.ReadString(); + break; + } + case 146: { + BlobValue = input.ReadBytes(); + break; + } + case 152: { + ExcludeFromIndexes = 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: { + BooleanValue = input.ReadBool(); + break; + } + case 16: { + IntegerValue = input.ReadInt64(); + break; + } + case 25: { + DoubleValue = input.ReadDouble(); + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.Datastore.V1.Key subBuilder = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Key(); + if (valueTypeCase_ == ValueTypeOneofCase.KeyValue) { + subBuilder.MergeFrom(KeyValue); + } + input.ReadMessage(subBuilder); + KeyValue = subBuilder; + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity subBuilder = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Entity(); + if (valueTypeCase_ == ValueTypeOneofCase.EntityValue) { + subBuilder.MergeFrom(EntityValue); + } + input.ReadMessage(subBuilder); + EntityValue = subBuilder; + break; + } + case 66: { + global::Google.Type.LatLng subBuilder = new global::Google.Type.LatLng(); + if (valueTypeCase_ == ValueTypeOneofCase.GeoPointValue) { + subBuilder.MergeFrom(GeoPointValue); + } + input.ReadMessage(subBuilder); + GeoPointValue = subBuilder; + break; + } + case 74: { + global::Google.Events.Protobuf.Cloud.Datastore.V1.ArrayValue subBuilder = new global::Google.Events.Protobuf.Cloud.Datastore.V1.ArrayValue(); + if (valueTypeCase_ == ValueTypeOneofCase.ArrayValue) { + subBuilder.MergeFrom(ArrayValue); + } + input.ReadMessage(subBuilder); + ArrayValue = subBuilder; + break; + } + case 82: { + global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (valueTypeCase_ == ValueTypeOneofCase.TimestampValue) { + subBuilder.MergeFrom(TimestampValue); + } + input.ReadMessage(subBuilder); + TimestampValue = subBuilder; + break; + } + case 88: { + valueType_ = input.ReadEnum(); + valueTypeCase_ = ValueTypeOneofCase.NullValue; + break; + } + case 112: { + Meaning = input.ReadInt32(); + break; + } + case 138: { + StringValue = input.ReadString(); + break; + } + case 146: { + BlobValue = input.ReadBytes(); + break; + } + case 152: { + ExcludeFromIndexes = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// A Datastore data object. + /// + /// Must not exceed 1 MiB - 4 bytes. + /// + public sealed partial class Entity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entity()); + 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::Google.Events.Protobuf.Cloud.Datastore.V1.DataReflection.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 Entity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Entity(Entity other) : this() { + key_ = other.key_ != null ? other.key_.Clone() : null; + properties_ = other.properties_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Entity Clone() { + return new Entity(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Datastore.V1.Key key_; + /// + /// The entity's key. + /// + /// An entity must have a key, unless otherwise documented (for example, + /// an entity in `Value.entity_value` may have no key). + /// An entity's kind is its key path's last element's kind, + /// or null if it has no key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Datastore.V1.Key Key { + get { return key_; } + set { + key_ = value; + } + } + + /// Field number for the "properties" field. + public const int PropertiesFieldNumber = 3; + private static readonly pbc::MapField.Codec _map_properties_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Events.Protobuf.Cloud.Datastore.V1.Value.Parser), 26); + private readonly pbc::MapField properties_ = new pbc::MapField(); + /// + /// The entity's properties. + /// The map's keys are property names. + /// A property name matching regex `__.*__` is reserved. + /// A reserved property name is forbidden in certain documented contexts. + /// The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot + /// be empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Properties { + get { return properties_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Entity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Entity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Key, other.Key)) return false; + if (!Properties.Equals(other.Properties)) 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_ != null) hash ^= Key.GetHashCode(); + hash ^= Properties.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_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Key); + } + properties_.WriteTo(output, _map_properties_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 (key_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Key); + } + properties_.WriteTo(ref output, _map_properties_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 (key_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key); + } + size += properties_.CalculateSize(_map_properties_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Entity other) { + if (other == null) { + return; + } + if (other.key_ != null) { + if (key_ == null) { + Key = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Key(); + } + Key.MergeFrom(other.Key); + } + properties_.MergeFrom(other.properties_); + _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 (key_ == null) { + Key = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Key(); + } + input.ReadMessage(Key); + break; + } + case 26: { + properties_.AddEntriesFrom(input, _map_properties_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: { + if (key_ == null) { + Key = new global::Google.Events.Protobuf.Cloud.Datastore.V1.Key(); + } + input.ReadMessage(Key); + break; + } + case 26: { + properties_.AddEntriesFrom(ref input, _map_properties_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Google.Events.Protobuf/Cloud/Datastore/V1/EntityEventData.g.cs b/src/Google.Events.Protobuf/Cloud/Datastore/V1/EntityEventData.g.cs new file mode 100644 index 0000000..f3e4651 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Datastore/V1/EntityEventData.g.cs @@ -0,0 +1,33 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.Datastore.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class EntityEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.datastore.entity.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.datastore.entity.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.datastore.entity.v1.deleted"; + + /// CloudEvent type for the 'written' event. + public const string WrittenCloudEventType = "google.cloud.datastore.entity.v1.written"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Datastore/V1/ExtensionAttributes.g.cs b/src/Google.Events.Protobuf/Cloud/Datastore/V1/ExtensionAttributes.g.cs new file mode 100644 index 0000000..d79a171 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Datastore/V1/ExtensionAttributes.g.cs @@ -0,0 +1,65 @@ +// Copyright 2023, 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 +// +// https://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. + +using CloudNative.CloudEvents; + +namespace Google.Events.Protobuf.Cloud.Datastore.V1 +{ + /// Extension attributes for Google.Events.Protobuf.Cloud.Datastore.V1 events. + public static class ExtensionAttributes + { + /// + /// The Firestore database name. The default database name is "(default)". + /// + /// This is used by the following events: + /// + /// + /// google.cloud.datastore.entity.v1.created + /// google.cloud.datastore.entity.v1.updated + /// google.cloud.datastore.entity.v1.deleted + /// google.cloud.datastore.entity.v1.written + /// + /// + public static CloudEventAttribute Database { get; } = CloudEventAttribute.CreateExtension("database", CloudEventAttributeType.String); + + /// + /// Pattern to match for the resource. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.datastore.entity.v1.created + /// google.cloud.datastore.entity.v1.updated + /// google.cloud.datastore.entity.v1.deleted + /// google.cloud.datastore.entity.v1.written + /// + /// + public static CloudEventAttribute Entity { get; } = CloudEventAttribute.CreateExtension("entity", CloudEventAttributeType.String); + + /// + /// The Firestore database namespace. The default namespace is "(default)". + /// + /// This is used by the following events: + /// + /// + /// google.cloud.datastore.entity.v1.created + /// google.cloud.datastore.entity.v1.updated + /// google.cloud.datastore.entity.v1.deleted + /// google.cloud.datastore.entity.v1.written + /// + /// + public static CloudEventAttribute Namespace { get; } = CloudEventAttribute.CreateExtension("namespace", CloudEventAttributeType.String); + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/GkeHub/V1/Data.g.cs b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/Data.g.cs new file mode 100644 index 0000000..8aeb9e3 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/Data.g.cs @@ -0,0 +1,8588 @@ +// Copyright 2023, 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 +// +// https://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. + +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/gkehub/v1/data.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 Google.Events.Protobuf.Cloud.GkeHub.V1 { + + /// Holder for reflection information generated from google/events/cloud/gkehub/v1/data.proto + public static partial class DataReflection { + + #region Descriptor + /// File descriptor for google/events/cloud/gkehub/v1/data.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cihnb29nbGUvZXZlbnRzL2Nsb3VkL2drZWh1Yi92MS9kYXRhLnByb3RvEh1n", + "b29nbGUuZXZlbnRzLmNsb3VkLmdrZWh1Yi52MRofZ29vZ2xlL3Byb3RvYnVm", + "L3RpbWVzdGFtcC5wcm90byKqBgoHRmVhdHVyZRIMCgRuYW1lGAEgASgJEkIK", + "BmxhYmVscxgCIAMoCzIyLmdvb2dsZS5ldmVudHMuY2xvdWQuZ2tlaHViLnYx", + "LkZlYXR1cmUuTGFiZWxzRW50cnkSSwoOcmVzb3VyY2Vfc3RhdGUYAyABKAsy", + "My5nb29nbGUuZXZlbnRzLmNsb3VkLmdrZWh1Yi52MS5GZWF0dXJlUmVzb3Vy", + "Y2VTdGF0ZRJACgVzdGF0ZRgGIAEoCzIxLmdvb2dsZS5ldmVudHMuY2xvdWQu", + "Z2tlaHViLnYxLkNvbW1vbkZlYXR1cmVTdGF0ZRJXChFtZW1iZXJzaGlwX3N0", + "YXRlcxgHIAMoCzI8Lmdvb2dsZS5ldmVudHMuY2xvdWQuZ2tlaHViLnYxLkZl", + "YXR1cmUuTWVtYmVyc2hpcFN0YXRlc0VudHJ5Ei8KC2NyZWF0ZV90aW1lGAgg", + "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgt1cGRhdGVfdGlt", + "ZRgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLZGVsZXRl", + "X3RpbWUYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEk0KDHNj", + "b3BlX3N0YXRlcxgNIAMoCzI3Lmdvb2dsZS5ldmVudHMuY2xvdWQuZ2tlaHVi", + "LnYxLkZlYXR1cmUuU2NvcGVTdGF0ZXNFbnRyeRotCgtMYWJlbHNFbnRyeRIL", + "CgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBGm4KFU1lbWJlcnNoaXBT", + "dGF0ZXNFbnRyeRILCgNrZXkYASABKAkSRAoFdmFsdWUYAiABKAsyNS5nb29n", + "bGUuZXZlbnRzLmNsb3VkLmdrZWh1Yi52MS5NZW1iZXJzaGlwRmVhdHVyZVN0", + "YXRlOgI4ARpkChBTY29wZVN0YXRlc0VudHJ5EgsKA2tleRgBIAEoCRI/CgV2", + "YWx1ZRgCIAEoCzIwLmdvb2dsZS5ldmVudHMuY2xvdWQuZ2tlaHViLnYxLlNj", + "b3BlRmVhdHVyZVN0YXRlOgI4ASLNAQoURmVhdHVyZVJlc291cmNlU3RhdGUS", + "SAoFc3RhdGUYASABKA4yOS5nb29nbGUuZXZlbnRzLmNsb3VkLmdrZWh1Yi52", + "MS5GZWF0dXJlUmVzb3VyY2VTdGF0ZS5TdGF0ZSJrCgVTdGF0ZRIVChFTVEFU", + "RV9VTlNQRUNJRklFRBAAEgwKCEVOQUJMSU5HEAESCgoGQUNUSVZFEAISDQoJ", + "RElTQUJMSU5HEAMSDAoIVVBEQVRJTkcQBBIUChBTRVJWSUNFX1VQREFUSU5H", + "EAUi0gEKDEZlYXR1cmVTdGF0ZRI+CgRjb2RlGAEgASgOMjAuZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC5na2VodWIudjEuRmVhdHVyZVN0YXRlLkNvZGUSEwoLZGVz", + "Y3JpcHRpb24YAiABKAkSLwoLdXBkYXRlX3RpbWUYAyABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wIjwKBENvZGUSFAoQQ09ERV9VTlNQRUNJRklF", + "RBAAEgYKAk9LEAESCwoHV0FSTklORxACEgkKBUVSUk9SEAMiUAoSQ29tbW9u", + "RmVhdHVyZVN0YXRlEjoKBXN0YXRlGAEgASgLMisuZ29vZ2xlLmV2ZW50cy5j", + "bG91ZC5na2VodWIudjEuRmVhdHVyZVN0YXRlIk8KEVNjb3BlRmVhdHVyZVN0", + "YXRlEjoKBXN0YXRlGAEgASgLMisuZ29vZ2xlLmV2ZW50cy5jbG91ZC5na2Vo", + "dWIudjEuRmVhdHVyZVN0YXRlIlQKFk1lbWJlcnNoaXBGZWF0dXJlU3RhdGUS", + "OgoFc3RhdGUYASABKAsyKy5nb29nbGUuZXZlbnRzLmNsb3VkLmdrZWh1Yi52", + "MS5GZWF0dXJlU3RhdGUi+AEKBVNjb3BlEgwKBG5hbWUYASABKAkSCwoDdWlk", + "GAIgASgJEi8KC2NyZWF0ZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcBIvCgt1cGRhdGVfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90", + "b2J1Zi5UaW1lc3RhbXASLwoLZGVsZXRlX3RpbWUYBSABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wEkEKBXN0YXRlGAYgASgLMjIuZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC5na2VodWIudjEuU2NvcGVMaWZlY3ljbGVTdGF0ZSKvAQoT", + "U2NvcGVMaWZlY3ljbGVTdGF0ZRJFCgRjb2RlGAEgASgOMjcuZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC5na2VodWIudjEuU2NvcGVMaWZlY3ljbGVTdGF0ZS5Db2Rl", + "IlEKBENvZGUSFAoQQ09ERV9VTlNQRUNJRklFRBAAEgwKCENSRUFUSU5HEAES", + "CQoFUkVBRFkQAhIMCghERUxFVElORxADEgwKCFVQREFUSU5HEAQivAIKEU1l", + "bWJlcnNoaXBCaW5kaW5nEg8KBXNjb3BlGAMgASgJSAASDwoFZmxlZXQYBCAB", + "KAhIABIMCgRuYW1lGAEgASgJEgsKA3VpZBgCIAEoCRIvCgtjcmVhdGVfdGlt", + "ZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLdXBkYXRl", + "X3RpbWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC2Rl", + "bGV0ZV90aW1lGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBJN", + "CgVzdGF0ZRgIIAEoCzI+Lmdvb2dsZS5ldmVudHMuY2xvdWQuZ2tlaHViLnYx", + "Lk1lbWJlcnNoaXBCaW5kaW5nTGlmZWN5Y2xlU3RhdGVCCAoGdGFyZ2V0IscB", + "Ch9NZW1iZXJzaGlwQmluZGluZ0xpZmVjeWNsZVN0YXRlElEKBGNvZGUYASAB", + "KA4yQy5nb29nbGUuZXZlbnRzLmNsb3VkLmdrZWh1Yi52MS5NZW1iZXJzaGlw", + "QmluZGluZ0xpZmVjeWNsZVN0YXRlLkNvZGUiUQoEQ29kZRIUChBDT0RFX1VO", + "U1BFQ0lGSUVEEAASDAoIQ1JFQVRJTkcQARIJCgVSRUFEWRACEgwKCERFTEVU", + "SU5HEAMSDAoIVVBEQVRJTkcQBCLlBAoKTWVtYmVyc2hpcBJFCghlbmRwb2lu", + "dBgEIAEoCzIxLmdvb2dsZS5ldmVudHMuY2xvdWQuZ2tlaHViLnYxLk1lbWJl", + "cnNoaXBFbmRwb2ludEgAEgwKBG5hbWUYASABKAkSRQoGbGFiZWxzGAIgAygL", + "MjUuZ29vZ2xlLmV2ZW50cy5jbG91ZC5na2VodWIudjEuTWVtYmVyc2hpcC5M", + "YWJlbHNFbnRyeRITCgtkZXNjcmlwdGlvbhgDIAEoCRI9CgVzdGF0ZRgFIAEo", + "CzIuLmdvb2dsZS5ldmVudHMuY2xvdWQuZ2tlaHViLnYxLk1lbWJlcnNoaXBT", + "dGF0ZRIvCgtjcmVhdGVfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXASLwoLdXBkYXRlX3RpbWUYByABKAsyGi5nb29nbGUucHJvdG9i", + "dWYuVGltZXN0YW1wEi8KC2RlbGV0ZV90aW1lGAggASgLMhouZ29vZ2xlLnBy", + "b3RvYnVmLlRpbWVzdGFtcBITCgtleHRlcm5hbF9pZBgJIAEoCRI4ChRsYXN0", + "X2Nvbm5lY3Rpb25fdGltZRgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXASEQoJdW5pcXVlX2lkGAsgASgJEjsKCWF1dGhvcml0eRgMIAEoCzIo", + "Lmdvb2dsZS5ldmVudHMuY2xvdWQuZ2tlaHViLnYxLkF1dGhvcml0eRotCgtM", + "YWJlbHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBQgYK", + "BHR5cGUiwgQKEk1lbWJlcnNoaXBFbmRwb2ludBJACgtna2VfY2x1c3RlchgB", + "IAEoCzIpLmdvb2dsZS5ldmVudHMuY2xvdWQuZ2tlaHViLnYxLkdrZUNsdXN0", + "ZXJIABJHCg9vbl9wcmVtX2NsdXN0ZXIYBCABKAsyLC5nb29nbGUuZXZlbnRz", + "LmNsb3VkLmdrZWh1Yi52MS5PblByZW1DbHVzdGVySAASTwoTbXVsdGlfY2xv", + "dWRfY2x1c3RlchgFIAEoCzIwLmdvb2dsZS5ldmVudHMuY2xvdWQuZ2tlaHVi", + "LnYxLk11bHRpQ2xvdWRDbHVzdGVySAASQgoMZWRnZV9jbHVzdGVyGAYgASgL", + "MiouZ29vZ2xlLmV2ZW50cy5jbG91ZC5na2VodWIudjEuRWRnZUNsdXN0ZXJI", + "ABJMChFhcHBsaWFuY2VfY2x1c3RlchgHIAEoCzIvLmdvb2dsZS5ldmVudHMu", + "Y2xvdWQuZ2tlaHViLnYxLkFwcGxpYW5jZUNsdXN0ZXJIABJOChNrdWJlcm5l", + "dGVzX21ldGFkYXRhGAIgASgLMjEuZ29vZ2xlLmV2ZW50cy5jbG91ZC5na2Vo", + "dWIudjEuS3ViZXJuZXRlc01ldGFkYXRhEk4KE2t1YmVybmV0ZXNfcmVzb3Vy", + "Y2UYAyABKAsyMS5nb29nbGUuZXZlbnRzLmNsb3VkLmdrZWh1Yi52MS5LdWJl", + "cm5ldGVzUmVzb3VyY2USFgoOZ29vZ2xlX21hbmFnZWQYCCABKAhCBgoEdHlw", + "ZSL5AQoSS3ViZXJuZXRlc1Jlc291cmNlEk0KFG1lbWJlcnNoaXBfcmVzb3Vy", + "Y2VzGAIgAygLMi8uZ29vZ2xlLmV2ZW50cy5jbG91ZC5na2VodWIudjEuUmVz", + "b3VyY2VNYW5pZmVzdBJKChFjb25uZWN0X3Jlc291cmNlcxgDIAMoCzIvLmdv", + "b2dsZS5ldmVudHMuY2xvdWQuZ2tlaHViLnYxLlJlc291cmNlTWFuaWZlc3QS", + "SAoQcmVzb3VyY2Vfb3B0aW9ucxgEIAEoCzIuLmdvb2dsZS5ldmVudHMuY2xv", + "dWQuZ2tlaHViLnYxLlJlc291cmNlT3B0aW9ucyJUCg9SZXNvdXJjZU9wdGlv", + "bnMSFwoPY29ubmVjdF92ZXJzaW9uGAEgASgJEhMKC3YxYmV0YTFfY3JkGAIg", + "ASgIEhMKC2s4c192ZXJzaW9uGAMgASgJIjwKEFJlc291cmNlTWFuaWZlc3QS", + "EAoIbWFuaWZlc3QYASABKAkSFgoOY2x1c3Rlcl9zY29wZWQYAiABKAgiPAoK", + "R2tlQ2x1c3RlchIVCg1yZXNvdXJjZV9saW5rGAEgASgJEhcKD2NsdXN0ZXJf", + "bWlzc2luZxgCIAEoCCKHAgoNT25QcmVtQ2x1c3RlchIVCg1yZXNvdXJjZV9s", + "aW5rGAEgASgJEhcKD2NsdXN0ZXJfbWlzc2luZxgCIAEoCBIVCg1hZG1pbl9j", + "bHVzdGVyGAMgASgIEk4KDGNsdXN0ZXJfdHlwZRgEIAEoDjI4Lmdvb2dsZS5l", + "dmVudHMuY2xvdWQuZ2tlaHViLnYxLk9uUHJlbUNsdXN0ZXIuQ2x1c3RlclR5", + "cGUiXwoLQ2x1c3RlclR5cGUSGwoXQ0xVU1RFUlRZUEVfVU5TUEVDSUZJRUQQ", + "ABINCglCT09UU1RSQVAQARIKCgZIWUJSSUQQAhIOCgpTVEFOREFMT05FEAMS", + "CAoEVVNFUhAEIkMKEU11bHRpQ2xvdWRDbHVzdGVyEhUKDXJlc291cmNlX2xp", + "bmsYASABKAkSFwoPY2x1c3Rlcl9taXNzaW5nGAIgASgIIiQKC0VkZ2VDbHVz", + "dGVyEhUKDXJlc291cmNlX2xpbmsYASABKAkiKQoQQXBwbGlhbmNlQ2x1c3Rl", + "chIVCg1yZXNvdXJjZV9saW5rGAEgASgJIsEBChJLdWJlcm5ldGVzTWV0YWRh", + "dGESJQoda3ViZXJuZXRlc19hcGlfc2VydmVyX3ZlcnNpb24YASABKAkSGAoQ", + "bm9kZV9wcm92aWRlcl9pZBgCIAEoCRISCgpub2RlX2NvdW50GAMgASgFEhIK", + "CnZjcHVfY291bnQYBCABKAUSEQoJbWVtb3J5X21iGAUgASgFEi8KC3VwZGF0", + "ZV90aW1lGGQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCK9AQoP", + "TWVtYmVyc2hpcFN0YXRlEkEKBGNvZGUYASABKA4yMy5nb29nbGUuZXZlbnRz", + "LmNsb3VkLmdrZWh1Yi52MS5NZW1iZXJzaGlwU3RhdGUuQ29kZSJnCgRDb2Rl", + "EhQKEENPREVfVU5TUEVDSUZJRUQQABIMCghDUkVBVElORxABEgkKBVJFQURZ", + "EAISDAoIREVMRVRJTkcQAxIMCghVUERBVElORxAEEhQKEFNFUlZJQ0VfVVBE", + "QVRJTkcQBSJpCglBdXRob3JpdHkSDgoGaXNzdWVyGAEgASgJEh4KFndvcmts", + "b2FkX2lkZW50aXR5X3Bvb2wYAiABKAkSGQoRaWRlbnRpdHlfcHJvdmlkZXIY", + "AyABKAkSEQoJb2lkY19qd2tzGAQgASgMIlgKDlNjb3BlRXZlbnREYXRhEjoK", + "B3BheWxvYWQYASABKAsyJC5nb29nbGUuZXZlbnRzLmNsb3VkLmdrZWh1Yi52", + "MS5TY29wZUgAiAEBQgoKCF9wYXlsb2FkImIKE01lbWJlcnNoaXBFdmVudERh", + "dGESPwoHcGF5bG9hZBgBIAEoCzIpLmdvb2dsZS5ldmVudHMuY2xvdWQuZ2tl", + "aHViLnYxLk1lbWJlcnNoaXBIAIgBAUIKCghfcGF5bG9hZCJcChBGZWF0dXJl", + "RXZlbnREYXRhEjwKB3BheWxvYWQYASABKAsyJi5nb29nbGUuZXZlbnRzLmNs", + "b3VkLmdrZWh1Yi52MS5GZWF0dXJlSACIAQFCCgoIX3BheWxvYWQicAoaTWVt", + "YmVyc2hpcEJpbmRpbmdFdmVudERhdGESRgoHcGF5bG9hZBgBIAEoCzIwLmdv", + "b2dsZS5ldmVudHMuY2xvdWQuZ2tlaHViLnYxLk1lbWJlcnNoaXBCaW5kaW5n", + "SACIAQFCCgoIX3BheWxvYWRCbaoCJkdvb2dsZS5FdmVudHMuUHJvdG9idWYu", + "Q2xvdWQuR2tlSHViLlYxygIdR29vZ2xlXEV2ZW50c1xDbG91ZFxHa2VIdWJc", + "VjHqAiFHb29nbGU6OkV2ZW50czo6Q2xvdWQ6OkdrZUh1Yjo6VjFiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.Feature), global::Google.Events.Protobuf.Cloud.GkeHub.V1.Feature.Parser, new[]{ "Name", "Labels", "ResourceState", "State", "MembershipStates", "CreateTime", "UpdateTime", "DeleteTime", "ScopeStates" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState), global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Parser, new[]{ "State" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState), global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Parser, new[]{ "Code", "Description", "UpdateTime" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Types.Code) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.CommonFeatureState), global::Google.Events.Protobuf.Cloud.GkeHub.V1.CommonFeatureState.Parser, new[]{ "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeFeatureState), global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeFeatureState.Parser, new[]{ "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipFeatureState), global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipFeatureState.Parser, new[]{ "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.Scope), global::Google.Events.Protobuf.Cloud.GkeHub.V1.Scope.Parser, new[]{ "Name", "Uid", "CreateTime", "UpdateTime", "DeleteTime", "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState), global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Parser, new[]{ "Code" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Types.Code) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBinding), global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBinding.Parser, new[]{ "Scope", "Fleet", "Name", "Uid", "CreateTime", "UpdateTime", "DeleteTime", "State" }, new[]{ "Target" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState), global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Parser, new[]{ "Code" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Types.Code) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.Membership), global::Google.Events.Protobuf.Cloud.GkeHub.V1.Membership.Parser, new[]{ "Endpoint", "Name", "Labels", "Description", "State", "CreateTime", "UpdateTime", "DeleteTime", "ExternalId", "LastConnectionTime", "UniqueId", "Authority" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipEndpoint), global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipEndpoint.Parser, new[]{ "GkeCluster", "OnPremCluster", "MultiCloudCluster", "EdgeCluster", "ApplianceCluster", "KubernetesMetadata", "KubernetesResource", "GoogleManaged" }, new[]{ "Type" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesResource), global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesResource.Parser, new[]{ "MembershipResources", "ConnectResources", "ResourceOptions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.ResourceOptions), global::Google.Events.Protobuf.Cloud.GkeHub.V1.ResourceOptions.Parser, new[]{ "ConnectVersion", "V1Beta1Crd", "K8SVersion" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.ResourceManifest), global::Google.Events.Protobuf.Cloud.GkeHub.V1.ResourceManifest.Parser, new[]{ "Manifest", "ClusterScoped" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.GkeCluster), global::Google.Events.Protobuf.Cloud.GkeHub.V1.GkeCluster.Parser, new[]{ "ResourceLink", "ClusterMissing" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster), global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Parser, new[]{ "ResourceLink", "ClusterMissing", "AdminCluster", "ClusterType" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Types.ClusterType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.MultiCloudCluster), global::Google.Events.Protobuf.Cloud.GkeHub.V1.MultiCloudCluster.Parser, new[]{ "ResourceLink", "ClusterMissing" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.EdgeCluster), global::Google.Events.Protobuf.Cloud.GkeHub.V1.EdgeCluster.Parser, new[]{ "ResourceLink" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.ApplianceCluster), global::Google.Events.Protobuf.Cloud.GkeHub.V1.ApplianceCluster.Parser, new[]{ "ResourceLink" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesMetadata), global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesMetadata.Parser, new[]{ "KubernetesApiServerVersion", "NodeProviderId", "NodeCount", "VcpuCount", "MemoryMb", "UpdateTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState), global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Parser, new[]{ "Code" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Types.Code) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.Authority), global::Google.Events.Protobuf.Cloud.GkeHub.V1.Authority.Parser, new[]{ "Issuer", "WorkloadIdentityPool", "IdentityProvider", "OidcJwks" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeEventData), global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipEventData), global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureEventData), global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingEventData), global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Feature represents the settings and status of any Hub Feature. + /// + public sealed partial class Feature : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Feature()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 Feature() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Feature(Feature other) : this() { + name_ = other.name_; + labels_ = other.labels_.Clone(); + resourceState_ = other.resourceState_ != null ? other.resourceState_.Clone() : null; + state_ = other.state_ != null ? other.state_.Clone() : null; + membershipStates_ = other.membershipStates_.Clone(); + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + deleteTime_ = other.deleteTime_ != null ? other.deleteTime_.Clone() : null; + scopeStates_ = other.scopeStates_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Feature Clone() { + return new Feature(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The full, unique name of this Feature resource in the format + /// `projects/*/locations/*/features/*`. + /// + [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 "labels" field. + public const int LabelsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// GCP labels for this Feature. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "resource_state" field. + public const int ResourceStateFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState resourceState_; + /// + /// Output only. State of the Feature resource itself. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState ResourceState { + get { return resourceState_; } + set { + resourceState_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 6; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.CommonFeatureState state_; + /// + /// Output only. The Hub-wide Feature state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.CommonFeatureState State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "membership_states" field. + public const int MembershipStatesFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_membershipStates_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipFeatureState.Parser), 58); + private readonly pbc::MapField membershipStates_ = new pbc::MapField(); + /// + /// Output only. Membership-specific Feature status. If this Feature does + /// report any per-Membership status, this field may be unused. + /// + /// The keys indicate which Membership the state is for, in the form: + /// + /// `projects/{p}/locations/{l}/memberships/{m}` + /// + /// Where {p} is the project number, {l} is a valid location and {m} is a valid + /// Membership in this project at that location. {p} MUST match the Feature's + /// project number. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MembershipStates { + get { return membershipStates_; } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. When the Feature resource was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. When the Feature resource was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "delete_time" field. + public const int DeleteTimeFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp deleteTime_; + /// + /// Output only. When the Feature resource was deleted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp DeleteTime { + get { return deleteTime_; } + set { + deleteTime_ = value; + } + } + + /// Field number for the "scope_states" field. + public const int ScopeStatesFieldNumber = 13; + private static readonly pbc::MapField.Codec _map_scopeStates_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeFeatureState.Parser), 106); + private readonly pbc::MapField scopeStates_ = new pbc::MapField(); + /// + /// Output only. Scope-specific Feature status. If this Feature does + /// report any per-Scope status, this field may be unused. + /// + /// The keys indicate which Scope the state is for, in the form: + /// + /// `projects/{p}/locations/global/scopes/{s}` + /// + /// Where {p} is the project, {s} is a valid Scope in this project. + /// {p} WILL match the Feature's project. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ScopeStates { + get { return scopeStates_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Feature); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Feature other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!Labels.Equals(other.Labels)) return false; + if (!object.Equals(ResourceState, other.ResourceState)) return false; + if (!object.Equals(State, other.State)) return false; + if (!MembershipStates.Equals(other.MembershipStates)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(DeleteTime, other.DeleteTime)) return false; + if (!ScopeStates.Equals(other.ScopeStates)) 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(); + hash ^= Labels.GetHashCode(); + if (resourceState_ != null) hash ^= ResourceState.GetHashCode(); + if (state_ != null) hash ^= State.GetHashCode(); + hash ^= MembershipStates.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (deleteTime_ != null) hash ^= DeleteTime.GetHashCode(); + hash ^= ScopeStates.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); + } + labels_.WriteTo(output, _map_labels_codec); + if (resourceState_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ResourceState); + } + if (state_ != null) { + output.WriteRawTag(50); + output.WriteMessage(State); + } + membershipStates_.WriteTo(output, _map_membershipStates_codec); + if (createTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(DeleteTime); + } + scopeStates_.WriteTo(output, _map_scopeStates_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); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (resourceState_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ResourceState); + } + if (state_ != null) { + output.WriteRawTag(50); + output.WriteMessage(State); + } + membershipStates_.WriteTo(ref output, _map_membershipStates_codec); + if (createTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(DeleteTime); + } + scopeStates_.WriteTo(ref output, _map_scopeStates_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); + } + size += labels_.CalculateSize(_map_labels_codec); + if (resourceState_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResourceState); + } + if (state_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + size += membershipStates_.CalculateSize(_map_membershipStates_codec); + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (deleteTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeleteTime); + } + size += scopeStates_.CalculateSize(_map_scopeStates_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Feature other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + labels_.MergeFrom(other.labels_); + if (other.resourceState_ != null) { + if (resourceState_ == null) { + ResourceState = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState(); + } + ResourceState.MergeFrom(other.ResourceState); + } + if (other.state_ != null) { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.CommonFeatureState(); + } + State.MergeFrom(other.State); + } + membershipStates_.MergeFrom(other.membershipStates_); + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.deleteTime_ != null) { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + DeleteTime.MergeFrom(other.DeleteTime); + } + scopeStates_.MergeFrom(other.scopeStates_); + _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: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 26: { + if (resourceState_ == null) { + ResourceState = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState(); + } + input.ReadMessage(ResourceState); + break; + } + case 50: { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.CommonFeatureState(); + } + input.ReadMessage(State); + break; + } + case 58: { + membershipStates_.AddEntriesFrom(input, _map_membershipStates_codec); + break; + } + case 66: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 74: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 82: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 106: { + scopeStates_.AddEntriesFrom(input, _map_scopeStates_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: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 26: { + if (resourceState_ == null) { + ResourceState = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState(); + } + input.ReadMessage(ResourceState); + break; + } + case 50: { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.CommonFeatureState(); + } + input.ReadMessage(State); + break; + } + case 58: { + membershipStates_.AddEntriesFrom(ref input, _map_membershipStates_codec); + break; + } + case 66: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 74: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 82: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 106: { + scopeStates_.AddEntriesFrom(ref input, _map_scopeStates_codec); + break; + } + } + } + } + #endif + + } + + /// + /// FeatureResourceState describes the state of a Feature *resource* in the + /// GkeHub API. See `FeatureState` for the "running state" of the Feature in the + /// Hub and across Memberships. + /// + public sealed partial class FeatureResourceState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeatureResourceState()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 FeatureResourceState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FeatureResourceState(FeatureResourceState other) : this() { + state_ = other.state_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FeatureResourceState Clone() { + return new FeatureResourceState(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Types.State state_ = global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Types.State.Unspecified; + /// + /// The current state of the Feature resource in the Hub API. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FeatureResourceState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FeatureResourceState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) 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 != global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Types.State.Unspecified) hash ^= State.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 != global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Types.State.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + 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 != global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Types.State.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + 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 != global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FeatureResourceState other) { + if (other == null) { + return; + } + if (other.State != global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Types.State.Unspecified) { + State = other.State; + } + _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: { + State = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Types.State) input.ReadEnum(); + 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: { + State = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureResourceState.Types.State) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the FeatureResourceState message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// State describes the lifecycle status of a Feature. + /// + public enum State { + /// + /// State is unknown or not set. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The Feature is being enabled, and the Feature resource is being created. + /// Once complete, the corresponding Feature will be enabled in this Hub. + /// + [pbr::OriginalName("ENABLING")] Enabling = 1, + /// + /// The Feature is enabled in this Hub, and the Feature resource is fully + /// available. + /// + [pbr::OriginalName("ACTIVE")] Active = 2, + /// + /// The Feature is being disabled in this Hub, and the Feature resource + /// is being deleted. + /// + [pbr::OriginalName("DISABLING")] Disabling = 3, + /// + /// The Feature resource is being updated. + /// + [pbr::OriginalName("UPDATING")] Updating = 4, + /// + /// The Feature resource is being updated by the Hub Service. + /// + [pbr::OriginalName("SERVICE_UPDATING")] ServiceUpdating = 5, + } + + } + #endregion + + } + + /// + /// FeatureState describes the high-level state of a Feature. It may be used to + /// describe a Feature's state at the environ-level, or per-membershop, depending + /// on the context. + /// + public sealed partial class FeatureState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeatureState()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 FeatureState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FeatureState(FeatureState other) : this() { + code_ = other.code_; + description_ = other.description_; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FeatureState Clone() { + return new FeatureState(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Types.Code code_ = global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Types.Code.Unspecified; + /// + /// The high-level, machine-readable status of this Feature. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Types.Code Code { + get { return code_; } + set { + code_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 2; + private string description_ = ""; + /// + /// A human-readable description of the current status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// The time this status and any related Feature-specific details were updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FeatureState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FeatureState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (Description != other.Description) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Types.Code.Unspecified) hash ^= Code.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Types.Code.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Types.Code.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Types.Code.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FeatureState other) { + if (other == null) { + return; + } + if (other.Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Types.Code.Unspecified) { + Code = other.Code; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + _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: { + Code = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Types.Code) input.ReadEnum(); + break; + } + case 18: { + Description = input.ReadString(); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + 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: { + Code = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState.Types.Code) input.ReadEnum(); + break; + } + case 18: { + Description = input.ReadString(); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the FeatureState message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Code represents a machine-readable, high-level status of the Feature. + /// + public enum Code { + /// + /// Unknown or not set. + /// + [pbr::OriginalName("CODE_UNSPECIFIED")] Unspecified = 0, + /// + /// The Feature is operating normally. + /// + [pbr::OriginalName("OK")] Ok = 1, + /// + /// The Feature has encountered an issue, and is operating in a degraded + /// state. The Feature may need intervention to return to normal operation. + /// See the description and any associated Feature-specific details for more + /// information. + /// + [pbr::OriginalName("WARNING")] Warning = 2, + /// + /// The Feature is not operating or is in a severely degraded state. + /// The Feature may need intervention to return to normal operation. + /// See the description and any associated Feature-specific details for more + /// information. + /// + [pbr::OriginalName("ERROR")] Error = 3, + } + + } + #endregion + + } + + /// + /// CommonFeatureState contains Hub-wide Feature status information. + /// + public sealed partial class CommonFeatureState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonFeatureState()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 CommonFeatureState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonFeatureState(CommonFeatureState other) : this() { + state_ = other.state_ != null ? other.state_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonFeatureState Clone() { + return new CommonFeatureState(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState state_; + /// + /// Output only. The "running state" of the Feature in this Hub. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonFeatureState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonFeatureState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(State, other.State)) 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_ != null) hash ^= State.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_ != null) { + output.WriteRawTag(10); + output.WriteMessage(State); + } + 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_ != null) { + output.WriteRawTag(10); + output.WriteMessage(State); + } + 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_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonFeatureState other) { + if (other == null) { + return; + } + if (other.state_ != null) { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState(); + } + State.MergeFrom(other.State); + } + _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 (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState(); + } + input.ReadMessage(State); + 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 (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState(); + } + input.ReadMessage(State); + break; + } + } + } + } + #endif + + } + + /// + /// ScopeFeatureState contains Scope-wide Feature status information. + /// + public sealed partial class ScopeFeatureState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScopeFeatureState()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 ScopeFeatureState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScopeFeatureState(ScopeFeatureState other) : this() { + state_ = other.state_ != null ? other.state_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScopeFeatureState Clone() { + return new ScopeFeatureState(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState state_; + /// + /// Output only. The "running state" of the Feature in this Scope. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScopeFeatureState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScopeFeatureState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(State, other.State)) 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_ != null) hash ^= State.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_ != null) { + output.WriteRawTag(10); + output.WriteMessage(State); + } + 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_ != null) { + output.WriteRawTag(10); + output.WriteMessage(State); + } + 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_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScopeFeatureState other) { + if (other == null) { + return; + } + if (other.state_ != null) { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState(); + } + State.MergeFrom(other.State); + } + _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 (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState(); + } + input.ReadMessage(State); + 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 (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState(); + } + input.ReadMessage(State); + break; + } + } + } + } + #endif + + } + + /// + /// MembershipFeatureState contains Feature status information for a single + /// Membership. + /// + public sealed partial class MembershipFeatureState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MembershipFeatureState()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 MembershipFeatureState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipFeatureState(MembershipFeatureState other) : this() { + state_ = other.state_ != null ? other.state_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipFeatureState Clone() { + return new MembershipFeatureState(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState state_; + /// + /// The high-level state of this Feature for a single membership. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MembershipFeatureState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MembershipFeatureState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(State, other.State)) 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_ != null) hash ^= State.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_ != null) { + output.WriteRawTag(10); + output.WriteMessage(State); + } + 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_ != null) { + output.WriteRawTag(10); + output.WriteMessage(State); + } + 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_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MembershipFeatureState other) { + if (other == null) { + return; + } + if (other.state_ != null) { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState(); + } + State.MergeFrom(other.State); + } + _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 (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState(); + } + input.ReadMessage(State); + 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 (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.FeatureState(); + } + input.ReadMessage(State); + break; + } + } + } + } + #endif + + } + + /// + /// Scope represents a Scope in a Fleet. + /// + public sealed partial class Scope : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Scope()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 Scope() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Scope(Scope other) : this() { + name_ = other.name_; + uid_ = other.uid_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + deleteTime_ = other.deleteTime_ != null ? other.deleteTime_.Clone() : null; + state_ = other.state_ != null ? other.state_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Scope Clone() { + return new Scope(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The resource name for the scope + /// `projects/{project}/locations/{location}/scopes/{scope}` + /// + [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 "uid" field. + public const int UidFieldNumber = 2; + private string uid_ = ""; + /// + /// Output only. Google-generated UUID for this resource. This is unique across + /// all scope resources. If a scope resource is deleted and another resource + /// with the same name is created, it gets a different 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 "create_time" field. + public const int CreateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. When the scope was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. When the scope was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "delete_time" field. + public const int DeleteTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp deleteTime_; + /// + /// Output only. When the scope was deleted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp DeleteTime { + get { return deleteTime_; } + set { + deleteTime_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 6; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState state_; + /// + /// Output only. State of the scope resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Scope); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Scope other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Uid != other.Uid) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(DeleteTime, other.DeleteTime)) return false; + if (!object.Equals(State, other.State)) 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 (Uid.Length != 0) hash ^= Uid.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (deleteTime_ != null) hash ^= DeleteTime.GetHashCode(); + if (state_ != null) hash ^= State.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 (Uid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DeleteTime); + } + if (state_ != null) { + output.WriteRawTag(50); + output.WriteMessage(State); + } + 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 (Uid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DeleteTime); + } + if (state_ != null) { + output.WriteRawTag(50); + output.WriteMessage(State); + } + 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 (Uid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (deleteTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeleteTime); + } + if (state_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Scope other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Uid.Length != 0) { + Uid = other.Uid; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.deleteTime_ != null) { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + DeleteTime.MergeFrom(other.DeleteTime); + } + if (other.state_ != null) { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState(); + } + State.MergeFrom(other.State); + } + _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: { + Uid = input.ReadString(); + break; + } + case 26: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 34: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 42: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 50: { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState(); + } + input.ReadMessage(State); + 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: { + Uid = input.ReadString(); + break; + } + case 26: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 34: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 42: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 50: { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState(); + } + input.ReadMessage(State); + break; + } + } + } + } + #endif + + } + + /// + /// ScopeLifecycleState describes the state of a Scope resource. + /// + public sealed partial class ScopeLifecycleState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScopeLifecycleState()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 ScopeLifecycleState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScopeLifecycleState(ScopeLifecycleState other) : this() { + code_ = other.code_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScopeLifecycleState Clone() { + return new ScopeLifecycleState(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Types.Code code_ = global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Types.Code.Unspecified; + /// + /// Output only. The current state of the scope resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Types.Code Code { + get { return code_; } + set { + code_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScopeLifecycleState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScopeLifecycleState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Types.Code.Unspecified) hash ^= Code.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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Types.Code.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Types.Code.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Types.Code.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScopeLifecycleState other) { + if (other == null) { + return; + } + if (other.Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Types.Code.Unspecified) { + Code = other.Code; + } + _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: { + Code = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Types.Code) input.ReadEnum(); + 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: { + Code = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.ScopeLifecycleState.Types.Code) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ScopeLifecycleState message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Code describes the state of a Scope resource. + /// + public enum Code { + /// + /// The code is not set. + /// + [pbr::OriginalName("CODE_UNSPECIFIED")] Unspecified = 0, + /// + /// The scope is being created. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// The scope active. + /// + [pbr::OriginalName("READY")] Ready = 2, + /// + /// The scope is being deleted. + /// + [pbr::OriginalName("DELETING")] Deleting = 3, + /// + /// The scope is being updated. + /// + [pbr::OriginalName("UPDATING")] Updating = 4, + } + + } + #endregion + + } + + /// + /// MembershipBinding is a subresource of a Membership, representing + /// what Fleet Scopes (or other, future Fleet resources) a Membership is bound + /// to. + /// + public sealed partial class MembershipBinding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MembershipBinding()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 MembershipBinding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipBinding(MembershipBinding other) : this() { + name_ = other.name_; + uid_ = other.uid_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + deleteTime_ = other.deleteTime_ != null ? other.deleteTime_.Clone() : null; + state_ = other.state_ != null ? other.state_.Clone() : null; + switch (other.TargetCase) { + case TargetOneofCase.Scope: + Scope = other.Scope; + break; + case TargetOneofCase.Fleet: + Fleet = other.Fleet; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipBinding Clone() { + return new MembershipBinding(this); + } + + /// Field number for the "scope" field. + public const int ScopeFieldNumber = 3; + /// + /// A Workspace resource name in the format + /// `projects/*/locations/*/scopes/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Scope { + get { return HasScope ? (string) target_ : ""; } + set { + target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + targetCase_ = TargetOneofCase.Scope; + } + } + /// Gets whether the "scope" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasScope { + get { return targetCase_ == TargetOneofCase.Scope; } + } + /// Clears the value of the oneof if it's currently set to "scope" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearScope() { + if (HasScope) { + ClearTarget(); + } + } + + /// Field number for the "fleet" field. + public const int FleetFieldNumber = 4; + /// + /// Whether the membershipbinding is Fleet-wide; true means that this + /// Membership should be bound to all Namespaces in this entire Fleet. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Fleet { + get { return HasFleet ? (bool) target_ : false; } + set { + target_ = value; + targetCase_ = TargetOneofCase.Fleet; + } + } + /// Gets whether the "fleet" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFleet { + get { return targetCase_ == TargetOneofCase.Fleet; } + } + /// Clears the value of the oneof if it's currently set to "fleet" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFleet() { + if (HasFleet) { + ClearTarget(); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The resource name for the membershipbinding itself + /// `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}` + /// + [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 "uid" field. + public const int UidFieldNumber = 2; + private string uid_ = ""; + /// + /// Output only. Google-generated UUID for this resource. This is unique across + /// all membershipbinding resources. If a membershipbinding resource is deleted + /// and another resource with the same name is created, it gets a different + /// 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 "create_time" field. + public const int CreateTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. When the membership binding was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. When the membership binding was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "delete_time" field. + public const int DeleteTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp deleteTime_; + /// + /// Output only. When the membership binding was deleted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp DeleteTime { + get { return deleteTime_; } + set { + deleteTime_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState state_; + /// + /// Output only. State of the membership binding resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState State { + get { return state_; } + set { + state_ = value; + } + } + + private object target_; + /// Enum of possible cases for the "target" oneof. + public enum TargetOneofCase { + None = 0, + Scope = 3, + Fleet = 4, + } + private TargetOneofCase targetCase_ = TargetOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TargetOneofCase TargetCase { + get { return targetCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTarget() { + targetCase_ = TargetOneofCase.None; + target_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MembershipBinding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MembershipBinding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Scope != other.Scope) return false; + if (Fleet != other.Fleet) return false; + if (Name != other.Name) return false; + if (Uid != other.Uid) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(DeleteTime, other.DeleteTime)) return false; + if (!object.Equals(State, other.State)) return false; + if (TargetCase != other.TargetCase) 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 (HasScope) hash ^= Scope.GetHashCode(); + if (HasFleet) hash ^= Fleet.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Uid.Length != 0) hash ^= Uid.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (deleteTime_ != null) hash ^= DeleteTime.GetHashCode(); + if (state_ != null) hash ^= State.GetHashCode(); + hash ^= (int) targetCase_; + 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 (Uid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uid); + } + if (HasScope) { + output.WriteRawTag(26); + output.WriteString(Scope); + } + if (HasFleet) { + output.WriteRawTag(32); + output.WriteBool(Fleet); + } + if (createTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(DeleteTime); + } + if (state_ != null) { + output.WriteRawTag(66); + output.WriteMessage(State); + } + 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 (Uid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uid); + } + if (HasScope) { + output.WriteRawTag(26); + output.WriteString(Scope); + } + if (HasFleet) { + output.WriteRawTag(32); + output.WriteBool(Fleet); + } + if (createTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(DeleteTime); + } + if (state_ != null) { + output.WriteRawTag(66); + output.WriteMessage(State); + } + 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 (HasScope) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Scope); + } + if (HasFleet) { + size += 1 + 1; + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Uid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (deleteTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeleteTime); + } + if (state_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MembershipBinding other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Uid.Length != 0) { + Uid = other.Uid; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.deleteTime_ != null) { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + DeleteTime.MergeFrom(other.DeleteTime); + } + if (other.state_ != null) { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState(); + } + State.MergeFrom(other.State); + } + switch (other.TargetCase) { + case TargetOneofCase.Scope: + Scope = other.Scope; + break; + case TargetOneofCase.Fleet: + Fleet = other.Fleet; + break; + } + + _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: { + Uid = input.ReadString(); + break; + } + case 26: { + Scope = input.ReadString(); + break; + } + case 32: { + Fleet = input.ReadBool(); + break; + } + case 42: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 58: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 66: { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState(); + } + input.ReadMessage(State); + 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: { + Uid = input.ReadString(); + break; + } + case 26: { + Scope = input.ReadString(); + break; + } + case 32: { + Fleet = input.ReadBool(); + break; + } + case 42: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 58: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 66: { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState(); + } + input.ReadMessage(State); + break; + } + } + } + } + #endif + + } + + /// + /// MembershipBindingLifecycleState describes the state of a Binding resource. + /// + public sealed partial class MembershipBindingLifecycleState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MembershipBindingLifecycleState()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 MembershipBindingLifecycleState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipBindingLifecycleState(MembershipBindingLifecycleState other) : this() { + code_ = other.code_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipBindingLifecycleState Clone() { + return new MembershipBindingLifecycleState(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Types.Code code_ = global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Types.Code.Unspecified; + /// + /// Output only. The current state of the MembershipBinding resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Types.Code Code { + get { return code_; } + set { + code_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MembershipBindingLifecycleState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MembershipBindingLifecycleState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Types.Code.Unspecified) hash ^= Code.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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Types.Code.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Types.Code.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Types.Code.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MembershipBindingLifecycleState other) { + if (other == null) { + return; + } + if (other.Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Types.Code.Unspecified) { + Code = other.Code; + } + _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: { + Code = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Types.Code) input.ReadEnum(); + 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: { + Code = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBindingLifecycleState.Types.Code) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MembershipBindingLifecycleState message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Code describes the state of a MembershipBinding resource. + /// + public enum Code { + /// + /// The code is not set. + /// + [pbr::OriginalName("CODE_UNSPECIFIED")] Unspecified = 0, + /// + /// The membershipbinding is being created. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// The membershipbinding active. + /// + [pbr::OriginalName("READY")] Ready = 2, + /// + /// The membershipbinding is being deleted. + /// + [pbr::OriginalName("DELETING")] Deleting = 3, + /// + /// The membershipbinding is being updated. + /// + [pbr::OriginalName("UPDATING")] Updating = 4, + } + + } + #endregion + + } + + /// + /// Membership contains information about a member cluster. + /// + public sealed partial class Membership : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Membership()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 Membership() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Membership(Membership other) : this() { + name_ = other.name_; + labels_ = other.labels_.Clone(); + description_ = other.description_; + state_ = other.state_ != null ? other.state_.Clone() : null; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + deleteTime_ = other.deleteTime_ != null ? other.deleteTime_.Clone() : null; + externalId_ = other.externalId_; + lastConnectionTime_ = other.lastConnectionTime_ != null ? other.lastConnectionTime_.Clone() : null; + uniqueId_ = other.uniqueId_; + authority_ = other.authority_ != null ? other.authority_.Clone() : null; + switch (other.TypeCase) { + case TypeOneofCase.Endpoint: + Endpoint = other.Endpoint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Membership Clone() { + return new Membership(this); + } + + /// Field number for the "endpoint" field. + public const int EndpointFieldNumber = 4; + /// + /// Optional. Endpoint information to reach this member. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipEndpoint Endpoint { + get { return typeCase_ == TypeOneofCase.Endpoint ? (global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipEndpoint) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Endpoint; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The full, unique name of this Membership resource in the + /// format `projects/*/locations/*/memberships/{membership_id}`, set during + /// creation. + /// + /// `membership_id` must be a valid RFC 1123 compliant DNS label: + /// + /// 1. At most 63 characters in length + /// 2. It must consist of lower case alphanumeric characters or `-` + /// 3. It must start and end with an alphanumeric character + /// + /// Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + /// with a maximum length of 63 characters. + /// + [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 "labels" field. + public const int LabelsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Optional. GCP labels for this membership. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Output only. Description of this membership, limited to 63 characters. + /// Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*` + /// + /// This field is present for legacy purposes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState state_; + /// + /// Output only. State of the Membership resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. When the Membership was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. When the Membership was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "delete_time" field. + public const int DeleteTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp deleteTime_; + /// + /// Output only. When the Membership was deleted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp DeleteTime { + get { return deleteTime_; } + set { + deleteTime_ = value; + } + } + + /// Field number for the "external_id" field. + public const int ExternalIdFieldNumber = 9; + private string externalId_ = ""; + /// + /// Optional. An externally-generated and managed ID for this Membership. This + /// ID may be modified after creation, but this is not recommended. + /// + /// The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*` + /// + /// If this Membership represents a Kubernetes cluster, this value should be + /// set to the UID of the `kube-system` namespace object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExternalId { + get { return externalId_; } + set { + externalId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "last_connection_time" field. + public const int LastConnectionTimeFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastConnectionTime_; + /// + /// Output only. For clusters using Connect, the timestamp of the most recent + /// connection established with Google Cloud. This time is updated every + /// several minutes, not continuously. For clusters that do not use GKE + /// Connect, or that have never connected successfully, this field will be + /// unset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastConnectionTime { + get { return lastConnectionTime_; } + set { + lastConnectionTime_ = value; + } + } + + /// Field number for the "unique_id" field. + public const int UniqueIdFieldNumber = 11; + private string uniqueId_ = ""; + /// + /// Output only. Google-generated UUID for this resource. This is unique across + /// all Membership resources. If a Membership resource is deleted and another + /// resource with the same name is created, it gets a different unique_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UniqueId { + get { return uniqueId_; } + set { + uniqueId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "authority" field. + public const int AuthorityFieldNumber = 12; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.Authority authority_; + /// + /// Optional. How to identify workloads from this Membership. + /// See the documentation on Workload Identity for more details: + /// https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.Authority Authority { + get { return authority_; } + set { + authority_ = value; + } + } + + private object type_; + /// Enum of possible cases for the "type" oneof. + public enum TypeOneofCase { + None = 0, + Endpoint = 4, + } + private TypeOneofCase typeCase_ = TypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TypeOneofCase TypeCase { + get { return typeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + typeCase_ = TypeOneofCase.None; + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Membership); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Membership other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Endpoint, other.Endpoint)) return false; + if (Name != other.Name) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Description != other.Description) return false; + if (!object.Equals(State, other.State)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(DeleteTime, other.DeleteTime)) return false; + if (ExternalId != other.ExternalId) return false; + if (!object.Equals(LastConnectionTime, other.LastConnectionTime)) return false; + if (UniqueId != other.UniqueId) return false; + if (!object.Equals(Authority, other.Authority)) return false; + if (TypeCase != other.TypeCase) 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 (typeCase_ == TypeOneofCase.Endpoint) hash ^= Endpoint.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (state_ != null) hash ^= State.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (deleteTime_ != null) hash ^= DeleteTime.GetHashCode(); + if (ExternalId.Length != 0) hash ^= ExternalId.GetHashCode(); + if (lastConnectionTime_ != null) hash ^= LastConnectionTime.GetHashCode(); + if (UniqueId.Length != 0) hash ^= UniqueId.GetHashCode(); + if (authority_ != null) hash ^= Authority.GetHashCode(); + hash ^= (int) typeCase_; + 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); + } + labels_.WriteTo(output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (typeCase_ == TypeOneofCase.Endpoint) { + output.WriteRawTag(34); + output.WriteMessage(Endpoint); + } + if (state_ != null) { + output.WriteRawTag(42); + output.WriteMessage(State); + } + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(DeleteTime); + } + if (ExternalId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ExternalId); + } + if (lastConnectionTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(LastConnectionTime); + } + if (UniqueId.Length != 0) { + output.WriteRawTag(90); + output.WriteString(UniqueId); + } + if (authority_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Authority); + } + 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); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (typeCase_ == TypeOneofCase.Endpoint) { + output.WriteRawTag(34); + output.WriteMessage(Endpoint); + } + if (state_ != null) { + output.WriteRawTag(42); + output.WriteMessage(State); + } + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(DeleteTime); + } + if (ExternalId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ExternalId); + } + if (lastConnectionTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(LastConnectionTime); + } + if (UniqueId.Length != 0) { + output.WriteRawTag(90); + output.WriteString(UniqueId); + } + if (authority_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Authority); + } + 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 (typeCase_ == TypeOneofCase.Endpoint) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Endpoint); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (state_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(State); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (deleteTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeleteTime); + } + if (ExternalId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalId); + } + if (lastConnectionTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastConnectionTime); + } + if (UniqueId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UniqueId); + } + if (authority_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Authority); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Membership other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + labels_.MergeFrom(other.labels_); + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.state_ != null) { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState(); + } + State.MergeFrom(other.State); + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.deleteTime_ != null) { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + DeleteTime.MergeFrom(other.DeleteTime); + } + if (other.ExternalId.Length != 0) { + ExternalId = other.ExternalId; + } + if (other.lastConnectionTime_ != null) { + if (lastConnectionTime_ == null) { + LastConnectionTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastConnectionTime.MergeFrom(other.LastConnectionTime); + } + if (other.UniqueId.Length != 0) { + UniqueId = other.UniqueId; + } + if (other.authority_ != null) { + if (authority_ == null) { + Authority = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Authority(); + } + Authority.MergeFrom(other.Authority); + } + switch (other.TypeCase) { + case TypeOneofCase.Endpoint: + if (Endpoint == null) { + Endpoint = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipEndpoint(); + } + Endpoint.MergeFrom(other.Endpoint); + break; + } + + _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: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipEndpoint subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipEndpoint(); + if (typeCase_ == TypeOneofCase.Endpoint) { + subBuilder.MergeFrom(Endpoint); + } + input.ReadMessage(subBuilder); + Endpoint = subBuilder; + break; + } + case 42: { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState(); + } + input.ReadMessage(State); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 58: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 66: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 74: { + ExternalId = input.ReadString(); + break; + } + case 82: { + if (lastConnectionTime_ == null) { + LastConnectionTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastConnectionTime); + break; + } + case 90: { + UniqueId = input.ReadString(); + break; + } + case 98: { + if (authority_ == null) { + Authority = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Authority(); + } + input.ReadMessage(Authority); + 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: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipEndpoint subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipEndpoint(); + if (typeCase_ == TypeOneofCase.Endpoint) { + subBuilder.MergeFrom(Endpoint); + } + input.ReadMessage(subBuilder); + Endpoint = subBuilder; + break; + } + case 42: { + if (state_ == null) { + State = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState(); + } + input.ReadMessage(State); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 58: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 66: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 74: { + ExternalId = input.ReadString(); + break; + } + case 82: { + if (lastConnectionTime_ == null) { + LastConnectionTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastConnectionTime); + break; + } + case 90: { + UniqueId = input.ReadString(); + break; + } + case 98: { + if (authority_ == null) { + Authority = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Authority(); + } + input.ReadMessage(Authority); + break; + } + } + } + } + #endif + + } + + /// + /// MembershipEndpoint contains information needed to contact a Kubernetes API, + /// endpoint and any additional Kubernetes metadata. + /// + public sealed partial class MembershipEndpoint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MembershipEndpoint()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 MembershipEndpoint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipEndpoint(MembershipEndpoint other) : this() { + kubernetesMetadata_ = other.kubernetesMetadata_ != null ? other.kubernetesMetadata_.Clone() : null; + kubernetesResource_ = other.kubernetesResource_ != null ? other.kubernetesResource_.Clone() : null; + googleManaged_ = other.googleManaged_; + switch (other.TypeCase) { + case TypeOneofCase.GkeCluster: + GkeCluster = other.GkeCluster.Clone(); + break; + case TypeOneofCase.OnPremCluster: + OnPremCluster = other.OnPremCluster.Clone(); + break; + case TypeOneofCase.MultiCloudCluster: + MultiCloudCluster = other.MultiCloudCluster.Clone(); + break; + case TypeOneofCase.EdgeCluster: + EdgeCluster = other.EdgeCluster.Clone(); + break; + case TypeOneofCase.ApplianceCluster: + ApplianceCluster = other.ApplianceCluster.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipEndpoint Clone() { + return new MembershipEndpoint(this); + } + + /// Field number for the "gke_cluster" field. + public const int GkeClusterFieldNumber = 1; + /// + /// Optional. Specific information for a GKE-on-GCP cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.GkeCluster GkeCluster { + get { return typeCase_ == TypeOneofCase.GkeCluster ? (global::Google.Events.Protobuf.Cloud.GkeHub.V1.GkeCluster) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.GkeCluster; + } + } + + /// Field number for the "on_prem_cluster" field. + public const int OnPremClusterFieldNumber = 4; + /// + /// Optional. Specific information for a GKE On-Prem cluster. An onprem + /// user-cluster who has no resourceLink is not allowed to use this field, it + /// should have a nil "type" instead. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster OnPremCluster { + get { return typeCase_ == TypeOneofCase.OnPremCluster ? (global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.OnPremCluster; + } + } + + /// Field number for the "multi_cloud_cluster" field. + public const int MultiCloudClusterFieldNumber = 5; + /// + /// Optional. Specific information for a GKE Multi-Cloud cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.MultiCloudCluster MultiCloudCluster { + get { return typeCase_ == TypeOneofCase.MultiCloudCluster ? (global::Google.Events.Protobuf.Cloud.GkeHub.V1.MultiCloudCluster) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.MultiCloudCluster; + } + } + + /// Field number for the "edge_cluster" field. + public const int EdgeClusterFieldNumber = 6; + /// + /// Optional. Specific information for a Google Edge cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.EdgeCluster EdgeCluster { + get { return typeCase_ == TypeOneofCase.EdgeCluster ? (global::Google.Events.Protobuf.Cloud.GkeHub.V1.EdgeCluster) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.EdgeCluster; + } + } + + /// Field number for the "appliance_cluster" field. + public const int ApplianceClusterFieldNumber = 7; + /// + /// Optional. Specific information for a GDC Edge Appliance cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.ApplianceCluster ApplianceCluster { + get { return typeCase_ == TypeOneofCase.ApplianceCluster ? (global::Google.Events.Protobuf.Cloud.GkeHub.V1.ApplianceCluster) type_ : null; } + set { + type_ = value; + typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.ApplianceCluster; + } + } + + /// Field number for the "kubernetes_metadata" field. + public const int KubernetesMetadataFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesMetadata kubernetesMetadata_; + /// + /// Output only. Useful Kubernetes-specific metadata. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesMetadata KubernetesMetadata { + get { return kubernetesMetadata_; } + set { + kubernetesMetadata_ = value; + } + } + + /// Field number for the "kubernetes_resource" field. + public const int KubernetesResourceFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesResource kubernetesResource_; + /// + /// Optional. The in-cluster Kubernetes Resources that should be applied for a + /// correctly registered cluster, in the steady state. These resources: + /// + /// * Ensure that the cluster is exclusively registered to one and only one + /// Hub Membership. + /// * Propagate Workload Pool Information available in the Membership + /// Authority field. + /// * Ensure proper initial configuration of default Hub Features. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesResource KubernetesResource { + get { return kubernetesResource_; } + set { + kubernetesResource_ = value; + } + } + + /// Field number for the "google_managed" field. + public const int GoogleManagedFieldNumber = 8; + private bool googleManaged_; + /// + /// Output only. Whether the lifecycle of this membership is managed by a + /// google cluster platform service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool GoogleManaged { + get { return googleManaged_; } + set { + googleManaged_ = value; + } + } + + private object type_; + /// Enum of possible cases for the "type" oneof. + public enum TypeOneofCase { + None = 0, + GkeCluster = 1, + OnPremCluster = 4, + MultiCloudCluster = 5, + EdgeCluster = 6, + ApplianceCluster = 7, + } + private TypeOneofCase typeCase_ = TypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TypeOneofCase TypeCase { + get { return typeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + typeCase_ = TypeOneofCase.None; + type_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MembershipEndpoint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MembershipEndpoint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GkeCluster, other.GkeCluster)) return false; + if (!object.Equals(OnPremCluster, other.OnPremCluster)) return false; + if (!object.Equals(MultiCloudCluster, other.MultiCloudCluster)) return false; + if (!object.Equals(EdgeCluster, other.EdgeCluster)) return false; + if (!object.Equals(ApplianceCluster, other.ApplianceCluster)) return false; + if (!object.Equals(KubernetesMetadata, other.KubernetesMetadata)) return false; + if (!object.Equals(KubernetesResource, other.KubernetesResource)) return false; + if (GoogleManaged != other.GoogleManaged) return false; + if (TypeCase != other.TypeCase) 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 (typeCase_ == TypeOneofCase.GkeCluster) hash ^= GkeCluster.GetHashCode(); + if (typeCase_ == TypeOneofCase.OnPremCluster) hash ^= OnPremCluster.GetHashCode(); + if (typeCase_ == TypeOneofCase.MultiCloudCluster) hash ^= MultiCloudCluster.GetHashCode(); + if (typeCase_ == TypeOneofCase.EdgeCluster) hash ^= EdgeCluster.GetHashCode(); + if (typeCase_ == TypeOneofCase.ApplianceCluster) hash ^= ApplianceCluster.GetHashCode(); + if (kubernetesMetadata_ != null) hash ^= KubernetesMetadata.GetHashCode(); + if (kubernetesResource_ != null) hash ^= KubernetesResource.GetHashCode(); + if (GoogleManaged != false) hash ^= GoogleManaged.GetHashCode(); + hash ^= (int) typeCase_; + 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 (typeCase_ == TypeOneofCase.GkeCluster) { + output.WriteRawTag(10); + output.WriteMessage(GkeCluster); + } + if (kubernetesMetadata_ != null) { + output.WriteRawTag(18); + output.WriteMessage(KubernetesMetadata); + } + if (kubernetesResource_ != null) { + output.WriteRawTag(26); + output.WriteMessage(KubernetesResource); + } + if (typeCase_ == TypeOneofCase.OnPremCluster) { + output.WriteRawTag(34); + output.WriteMessage(OnPremCluster); + } + if (typeCase_ == TypeOneofCase.MultiCloudCluster) { + output.WriteRawTag(42); + output.WriteMessage(MultiCloudCluster); + } + if (typeCase_ == TypeOneofCase.EdgeCluster) { + output.WriteRawTag(50); + output.WriteMessage(EdgeCluster); + } + if (typeCase_ == TypeOneofCase.ApplianceCluster) { + output.WriteRawTag(58); + output.WriteMessage(ApplianceCluster); + } + if (GoogleManaged != false) { + output.WriteRawTag(64); + output.WriteBool(GoogleManaged); + } + 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 (typeCase_ == TypeOneofCase.GkeCluster) { + output.WriteRawTag(10); + output.WriteMessage(GkeCluster); + } + if (kubernetesMetadata_ != null) { + output.WriteRawTag(18); + output.WriteMessage(KubernetesMetadata); + } + if (kubernetesResource_ != null) { + output.WriteRawTag(26); + output.WriteMessage(KubernetesResource); + } + if (typeCase_ == TypeOneofCase.OnPremCluster) { + output.WriteRawTag(34); + output.WriteMessage(OnPremCluster); + } + if (typeCase_ == TypeOneofCase.MultiCloudCluster) { + output.WriteRawTag(42); + output.WriteMessage(MultiCloudCluster); + } + if (typeCase_ == TypeOneofCase.EdgeCluster) { + output.WriteRawTag(50); + output.WriteMessage(EdgeCluster); + } + if (typeCase_ == TypeOneofCase.ApplianceCluster) { + output.WriteRawTag(58); + output.WriteMessage(ApplianceCluster); + } + if (GoogleManaged != false) { + output.WriteRawTag(64); + output.WriteBool(GoogleManaged); + } + 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 (typeCase_ == TypeOneofCase.GkeCluster) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GkeCluster); + } + if (typeCase_ == TypeOneofCase.OnPremCluster) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OnPremCluster); + } + if (typeCase_ == TypeOneofCase.MultiCloudCluster) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiCloudCluster); + } + if (typeCase_ == TypeOneofCase.EdgeCluster) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EdgeCluster); + } + if (typeCase_ == TypeOneofCase.ApplianceCluster) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApplianceCluster); + } + if (kubernetesMetadata_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KubernetesMetadata); + } + if (kubernetesResource_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KubernetesResource); + } + if (GoogleManaged != 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(MembershipEndpoint other) { + if (other == null) { + return; + } + if (other.kubernetesMetadata_ != null) { + if (kubernetesMetadata_ == null) { + KubernetesMetadata = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesMetadata(); + } + KubernetesMetadata.MergeFrom(other.KubernetesMetadata); + } + if (other.kubernetesResource_ != null) { + if (kubernetesResource_ == null) { + KubernetesResource = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesResource(); + } + KubernetesResource.MergeFrom(other.KubernetesResource); + } + if (other.GoogleManaged != false) { + GoogleManaged = other.GoogleManaged; + } + switch (other.TypeCase) { + case TypeOneofCase.GkeCluster: + if (GkeCluster == null) { + GkeCluster = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.GkeCluster(); + } + GkeCluster.MergeFrom(other.GkeCluster); + break; + case TypeOneofCase.OnPremCluster: + if (OnPremCluster == null) { + OnPremCluster = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster(); + } + OnPremCluster.MergeFrom(other.OnPremCluster); + break; + case TypeOneofCase.MultiCloudCluster: + if (MultiCloudCluster == null) { + MultiCloudCluster = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MultiCloudCluster(); + } + MultiCloudCluster.MergeFrom(other.MultiCloudCluster); + break; + case TypeOneofCase.EdgeCluster: + if (EdgeCluster == null) { + EdgeCluster = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.EdgeCluster(); + } + EdgeCluster.MergeFrom(other.EdgeCluster); + break; + case TypeOneofCase.ApplianceCluster: + if (ApplianceCluster == null) { + ApplianceCluster = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.ApplianceCluster(); + } + ApplianceCluster.MergeFrom(other.ApplianceCluster); + break; + } + + _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: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.GkeCluster subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.GkeCluster(); + if (typeCase_ == TypeOneofCase.GkeCluster) { + subBuilder.MergeFrom(GkeCluster); + } + input.ReadMessage(subBuilder); + GkeCluster = subBuilder; + break; + } + case 18: { + if (kubernetesMetadata_ == null) { + KubernetesMetadata = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesMetadata(); + } + input.ReadMessage(KubernetesMetadata); + break; + } + case 26: { + if (kubernetesResource_ == null) { + KubernetesResource = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesResource(); + } + input.ReadMessage(KubernetesResource); + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster(); + if (typeCase_ == TypeOneofCase.OnPremCluster) { + subBuilder.MergeFrom(OnPremCluster); + } + input.ReadMessage(subBuilder); + OnPremCluster = subBuilder; + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.MultiCloudCluster subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MultiCloudCluster(); + if (typeCase_ == TypeOneofCase.MultiCloudCluster) { + subBuilder.MergeFrom(MultiCloudCluster); + } + input.ReadMessage(subBuilder); + MultiCloudCluster = subBuilder; + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.EdgeCluster subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.EdgeCluster(); + if (typeCase_ == TypeOneofCase.EdgeCluster) { + subBuilder.MergeFrom(EdgeCluster); + } + input.ReadMessage(subBuilder); + EdgeCluster = subBuilder; + break; + } + case 58: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.ApplianceCluster subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.ApplianceCluster(); + if (typeCase_ == TypeOneofCase.ApplianceCluster) { + subBuilder.MergeFrom(ApplianceCluster); + } + input.ReadMessage(subBuilder); + ApplianceCluster = subBuilder; + break; + } + case 64: { + GoogleManaged = 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 10: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.GkeCluster subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.GkeCluster(); + if (typeCase_ == TypeOneofCase.GkeCluster) { + subBuilder.MergeFrom(GkeCluster); + } + input.ReadMessage(subBuilder); + GkeCluster = subBuilder; + break; + } + case 18: { + if (kubernetesMetadata_ == null) { + KubernetesMetadata = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesMetadata(); + } + input.ReadMessage(KubernetesMetadata); + break; + } + case 26: { + if (kubernetesResource_ == null) { + KubernetesResource = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.KubernetesResource(); + } + input.ReadMessage(KubernetesResource); + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster(); + if (typeCase_ == TypeOneofCase.OnPremCluster) { + subBuilder.MergeFrom(OnPremCluster); + } + input.ReadMessage(subBuilder); + OnPremCluster = subBuilder; + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.MultiCloudCluster subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MultiCloudCluster(); + if (typeCase_ == TypeOneofCase.MultiCloudCluster) { + subBuilder.MergeFrom(MultiCloudCluster); + } + input.ReadMessage(subBuilder); + MultiCloudCluster = subBuilder; + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.EdgeCluster subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.EdgeCluster(); + if (typeCase_ == TypeOneofCase.EdgeCluster) { + subBuilder.MergeFrom(EdgeCluster); + } + input.ReadMessage(subBuilder); + EdgeCluster = subBuilder; + break; + } + case 58: { + global::Google.Events.Protobuf.Cloud.GkeHub.V1.ApplianceCluster subBuilder = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.ApplianceCluster(); + if (typeCase_ == TypeOneofCase.ApplianceCluster) { + subBuilder.MergeFrom(ApplianceCluster); + } + input.ReadMessage(subBuilder); + ApplianceCluster = subBuilder; + break; + } + case 64: { + GoogleManaged = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// KubernetesResource contains the YAML manifests and configuration for + /// Membership Kubernetes resources in the cluster. After CreateMembership or + /// UpdateMembership, these resources should be re-applied in the cluster. + /// + public sealed partial class KubernetesResource : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KubernetesResource()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 KubernetesResource() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KubernetesResource(KubernetesResource other) : this() { + membershipResources_ = other.membershipResources_.Clone(); + connectResources_ = other.connectResources_.Clone(); + resourceOptions_ = other.resourceOptions_ != null ? other.resourceOptions_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KubernetesResource Clone() { + return new KubernetesResource(this); + } + + /// Field number for the "membership_resources" field. + public const int MembershipResourcesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_membershipResources_codec + = pb::FieldCodec.ForMessage(18, global::Google.Events.Protobuf.Cloud.GkeHub.V1.ResourceManifest.Parser); + private readonly pbc::RepeatedField membershipResources_ = new pbc::RepeatedField(); + /// + /// Output only. Additional Kubernetes resources that need to be applied to the + /// cluster after Membership creation, and after every update. + /// + /// This field is only populated in the Membership returned from a successful + /// long-running operation from CreateMembership or UpdateMembership. It is not + /// populated during normal GetMembership or ListMemberships requests. To get + /// the resource manifest after the initial registration, the caller should + /// make a UpdateMembership call with an empty field mask. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MembershipResources { + get { return membershipResources_; } + } + + /// Field number for the "connect_resources" field. + public const int ConnectResourcesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_connectResources_codec + = pb::FieldCodec.ForMessage(26, global::Google.Events.Protobuf.Cloud.GkeHub.V1.ResourceManifest.Parser); + private readonly pbc::RepeatedField connectResources_ = new pbc::RepeatedField(); + /// + /// Output only. The Kubernetes resources for installing the GKE Connect agent + /// + /// This field is only populated in the Membership returned from a successful + /// long-running operation from CreateMembership or UpdateMembership. It is not + /// populated during normal GetMembership or ListMemberships requests. To get + /// the resource manifest after the initial registration, the caller should + /// make a UpdateMembership call with an empty field mask. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ConnectResources { + get { return connectResources_; } + } + + /// Field number for the "resource_options" field. + public const int ResourceOptionsFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.ResourceOptions resourceOptions_; + /// + /// Optional. Options for Kubernetes resource generation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.ResourceOptions ResourceOptions { + get { return resourceOptions_; } + set { + resourceOptions_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as KubernetesResource); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KubernetesResource other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!membershipResources_.Equals(other.membershipResources_)) return false; + if(!connectResources_.Equals(other.connectResources_)) return false; + if (!object.Equals(ResourceOptions, other.ResourceOptions)) 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 ^= membershipResources_.GetHashCode(); + hash ^= connectResources_.GetHashCode(); + if (resourceOptions_ != null) hash ^= ResourceOptions.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 + membershipResources_.WriteTo(output, _repeated_membershipResources_codec); + connectResources_.WriteTo(output, _repeated_connectResources_codec); + if (resourceOptions_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ResourceOptions); + } + 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) { + membershipResources_.WriteTo(ref output, _repeated_membershipResources_codec); + connectResources_.WriteTo(ref output, _repeated_connectResources_codec); + if (resourceOptions_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ResourceOptions); + } + 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 += membershipResources_.CalculateSize(_repeated_membershipResources_codec); + size += connectResources_.CalculateSize(_repeated_connectResources_codec); + if (resourceOptions_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResourceOptions); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KubernetesResource other) { + if (other == null) { + return; + } + membershipResources_.Add(other.membershipResources_); + connectResources_.Add(other.connectResources_); + if (other.resourceOptions_ != null) { + if (resourceOptions_ == null) { + ResourceOptions = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.ResourceOptions(); + } + ResourceOptions.MergeFrom(other.ResourceOptions); + } + _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 18: { + membershipResources_.AddEntriesFrom(input, _repeated_membershipResources_codec); + break; + } + case 26: { + connectResources_.AddEntriesFrom(input, _repeated_connectResources_codec); + break; + } + case 34: { + if (resourceOptions_ == null) { + ResourceOptions = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.ResourceOptions(); + } + input.ReadMessage(ResourceOptions); + 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 18: { + membershipResources_.AddEntriesFrom(ref input, _repeated_membershipResources_codec); + break; + } + case 26: { + connectResources_.AddEntriesFrom(ref input, _repeated_connectResources_codec); + break; + } + case 34: { + if (resourceOptions_ == null) { + ResourceOptions = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.ResourceOptions(); + } + input.ReadMessage(ResourceOptions); + break; + } + } + } + } + #endif + + } + + /// + /// ResourceOptions represent options for Kubernetes resource generation. + /// + public sealed partial class ResourceOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceOptions()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.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 ResourceOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceOptions(ResourceOptions other) : this() { + connectVersion_ = other.connectVersion_; + v1Beta1Crd_ = other.v1Beta1Crd_; + k8SVersion_ = other.k8SVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceOptions Clone() { + return new ResourceOptions(this); + } + + /// Field number for the "connect_version" field. + public const int ConnectVersionFieldNumber = 1; + private string connectVersion_ = ""; + /// + /// Optional. The Connect agent version to use for connect_resources. Defaults + /// to the latest GKE Connect version. The version must be a currently + /// supported version, obsolete versions will be rejected. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConnectVersion { + get { return connectVersion_; } + set { + connectVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "v1beta1_crd" field. + public const int V1Beta1CrdFieldNumber = 2; + private bool v1Beta1Crd_; + /// + /// Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for + /// CustomResourceDefinition resources. + /// This option should be set for clusters with Kubernetes apiserver versions + /// <1.16. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool V1Beta1Crd { + get { return v1Beta1Crd_; } + set { + v1Beta1Crd_ = value; + } + } + + /// Field number for the "k8s_version" field. + public const int K8SVersionFieldNumber = 3; + private string k8SVersion_ = ""; + /// + /// Optional. Major version of the Kubernetes cluster. This is only used to + /// determine which version to use for the CustomResourceDefinition resources, + /// `apiextensions/v1beta1` or`apiextensions/v1`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string K8SVersion { + get { return k8SVersion_; } + set { + k8SVersion_ = 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 ResourceOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResourceOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ConnectVersion != other.ConnectVersion) return false; + if (V1Beta1Crd != other.V1Beta1Crd) return false; + if (K8SVersion != other.K8SVersion) 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 (ConnectVersion.Length != 0) hash ^= ConnectVersion.GetHashCode(); + if (V1Beta1Crd != false) hash ^= V1Beta1Crd.GetHashCode(); + if (K8SVersion.Length != 0) hash ^= K8SVersion.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 (ConnectVersion.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ConnectVersion); + } + if (V1Beta1Crd != false) { + output.WriteRawTag(16); + output.WriteBool(V1Beta1Crd); + } + if (K8SVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(K8SVersion); + } + 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 (ConnectVersion.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ConnectVersion); + } + if (V1Beta1Crd != false) { + output.WriteRawTag(16); + output.WriteBool(V1Beta1Crd); + } + if (K8SVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(K8SVersion); + } + 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 (ConnectVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConnectVersion); + } + if (V1Beta1Crd != false) { + size += 1 + 1; + } + if (K8SVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(K8SVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResourceOptions other) { + if (other == null) { + return; + } + if (other.ConnectVersion.Length != 0) { + ConnectVersion = other.ConnectVersion; + } + if (other.V1Beta1Crd != false) { + V1Beta1Crd = other.V1Beta1Crd; + } + if (other.K8SVersion.Length != 0) { + K8SVersion = other.K8SVersion; + } + _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: { + ConnectVersion = input.ReadString(); + break; + } + case 16: { + V1Beta1Crd = input.ReadBool(); + break; + } + case 26: { + K8SVersion = 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: { + ConnectVersion = input.ReadString(); + break; + } + case 16: { + V1Beta1Crd = input.ReadBool(); + break; + } + case 26: { + K8SVersion = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// ResourceManifest represents a single Kubernetes resource to be applied to + /// the cluster. + /// + public sealed partial class ResourceManifest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceManifest()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[14]; } + } + + [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 ResourceManifest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceManifest(ResourceManifest other) : this() { + manifest_ = other.manifest_; + clusterScoped_ = other.clusterScoped_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResourceManifest Clone() { + return new ResourceManifest(this); + } + + /// Field number for the "manifest" field. + public const int ManifestFieldNumber = 1; + private string manifest_ = ""; + /// + /// YAML manifest of the resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Manifest { + get { return manifest_; } + set { + manifest_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cluster_scoped" field. + public const int ClusterScopedFieldNumber = 2; + private bool clusterScoped_; + /// + /// Whether the resource provided in the manifest is `cluster_scoped`. + /// If unset, the manifest is assumed to be namespace scoped. + /// + /// This field is used for REST mapping when applying the resource in a + /// cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ClusterScoped { + get { return clusterScoped_; } + set { + clusterScoped_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResourceManifest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResourceManifest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Manifest != other.Manifest) return false; + if (ClusterScoped != other.ClusterScoped) 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 (Manifest.Length != 0) hash ^= Manifest.GetHashCode(); + if (ClusterScoped != false) hash ^= ClusterScoped.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 (Manifest.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Manifest); + } + if (ClusterScoped != false) { + output.WriteRawTag(16); + output.WriteBool(ClusterScoped); + } + 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 (Manifest.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Manifest); + } + if (ClusterScoped != false) { + output.WriteRawTag(16); + output.WriteBool(ClusterScoped); + } + 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 (Manifest.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Manifest); + } + if (ClusterScoped != 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(ResourceManifest other) { + if (other == null) { + return; + } + if (other.Manifest.Length != 0) { + Manifest = other.Manifest; + } + if (other.ClusterScoped != false) { + ClusterScoped = other.ClusterScoped; + } + _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: { + Manifest = input.ReadString(); + break; + } + case 16: { + ClusterScoped = 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 10: { + Manifest = input.ReadString(); + break; + } + case 16: { + ClusterScoped = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// GkeCluster contains information specific to GKE clusters. + /// + public sealed partial class GkeCluster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GkeCluster()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[15]; } + } + + [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 GkeCluster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GkeCluster(GkeCluster other) : this() { + resourceLink_ = other.resourceLink_; + clusterMissing_ = other.clusterMissing_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GkeCluster Clone() { + return new GkeCluster(this); + } + + /// Field number for the "resource_link" field. + public const int ResourceLinkFieldNumber = 1; + private string resourceLink_ = ""; + /// + /// Immutable. Self-link of the GCP resource for the GKE cluster. For example: + /// + /// //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster + /// + /// Zonal clusters are also supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceLink { + get { return resourceLink_; } + set { + resourceLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cluster_missing" field. + public const int ClusterMissingFieldNumber = 2; + private bool clusterMissing_; + /// + /// Output only. If cluster_missing is set then it denotes that the GKE cluster + /// no longer exists in the GKE Control Plane. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ClusterMissing { + get { return clusterMissing_; } + set { + clusterMissing_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GkeCluster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GkeCluster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ResourceLink != other.ResourceLink) return false; + if (ClusterMissing != other.ClusterMissing) 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 (ResourceLink.Length != 0) hash ^= ResourceLink.GetHashCode(); + if (ClusterMissing != false) hash ^= ClusterMissing.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 (ResourceLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceLink); + } + if (ClusterMissing != false) { + output.WriteRawTag(16); + output.WriteBool(ClusterMissing); + } + 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 (ResourceLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceLink); + } + if (ClusterMissing != false) { + output.WriteRawTag(16); + output.WriteBool(ClusterMissing); + } + 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 (ResourceLink.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceLink); + } + if (ClusterMissing != 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(GkeCluster other) { + if (other == null) { + return; + } + if (other.ResourceLink.Length != 0) { + ResourceLink = other.ResourceLink; + } + if (other.ClusterMissing != false) { + ClusterMissing = other.ClusterMissing; + } + _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: { + ResourceLink = input.ReadString(); + break; + } + case 16: { + ClusterMissing = 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 10: { + ResourceLink = input.ReadString(); + break; + } + case 16: { + ClusterMissing = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// OnPremCluster contains information specific to GKE On-Prem clusters. + /// + public sealed partial class OnPremCluster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OnPremCluster()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[16]; } + } + + [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 OnPremCluster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnPremCluster(OnPremCluster other) : this() { + resourceLink_ = other.resourceLink_; + clusterMissing_ = other.clusterMissing_; + adminCluster_ = other.adminCluster_; + clusterType_ = other.clusterType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnPremCluster Clone() { + return new OnPremCluster(this); + } + + /// Field number for the "resource_link" field. + public const int ResourceLinkFieldNumber = 1; + private string resourceLink_ = ""; + /// + /// Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For + /// example: + /// + /// //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster + /// //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceLink { + get { return resourceLink_; } + set { + resourceLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cluster_missing" field. + public const int ClusterMissingFieldNumber = 2; + private bool clusterMissing_; + /// + /// Output only. If cluster_missing is set then it denotes that + /// API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no + /// longer exists. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ClusterMissing { + get { return clusterMissing_; } + set { + clusterMissing_ = value; + } + } + + /// Field number for the "admin_cluster" field. + public const int AdminClusterFieldNumber = 3; + private bool adminCluster_; + /// + /// Immutable. Whether the cluster is an admin cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AdminCluster { + get { return adminCluster_; } + set { + adminCluster_ = value; + } + } + + /// Field number for the "cluster_type" field. + public const int ClusterTypeFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Types.ClusterType clusterType_ = global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Types.ClusterType.Unspecified; + /// + /// Immutable. The on prem cluster's type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Types.ClusterType ClusterType { + get { return clusterType_; } + set { + clusterType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OnPremCluster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OnPremCluster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ResourceLink != other.ResourceLink) return false; + if (ClusterMissing != other.ClusterMissing) return false; + if (AdminCluster != other.AdminCluster) return false; + if (ClusterType != other.ClusterType) 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 (ResourceLink.Length != 0) hash ^= ResourceLink.GetHashCode(); + if (ClusterMissing != false) hash ^= ClusterMissing.GetHashCode(); + if (AdminCluster != false) hash ^= AdminCluster.GetHashCode(); + if (ClusterType != global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Types.ClusterType.Unspecified) hash ^= ClusterType.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 (ResourceLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceLink); + } + if (ClusterMissing != false) { + output.WriteRawTag(16); + output.WriteBool(ClusterMissing); + } + if (AdminCluster != false) { + output.WriteRawTag(24); + output.WriteBool(AdminCluster); + } + if (ClusterType != global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Types.ClusterType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) ClusterType); + } + 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 (ResourceLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceLink); + } + if (ClusterMissing != false) { + output.WriteRawTag(16); + output.WriteBool(ClusterMissing); + } + if (AdminCluster != false) { + output.WriteRawTag(24); + output.WriteBool(AdminCluster); + } + if (ClusterType != global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Types.ClusterType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) ClusterType); + } + 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 (ResourceLink.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceLink); + } + if (ClusterMissing != false) { + size += 1 + 1; + } + if (AdminCluster != false) { + size += 1 + 1; + } + if (ClusterType != global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Types.ClusterType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ClusterType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OnPremCluster other) { + if (other == null) { + return; + } + if (other.ResourceLink.Length != 0) { + ResourceLink = other.ResourceLink; + } + if (other.ClusterMissing != false) { + ClusterMissing = other.ClusterMissing; + } + if (other.AdminCluster != false) { + AdminCluster = other.AdminCluster; + } + if (other.ClusterType != global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Types.ClusterType.Unspecified) { + ClusterType = other.ClusterType; + } + _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: { + ResourceLink = input.ReadString(); + break; + } + case 16: { + ClusterMissing = input.ReadBool(); + break; + } + case 24: { + AdminCluster = input.ReadBool(); + break; + } + case 32: { + ClusterType = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Types.ClusterType) input.ReadEnum(); + 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: { + ResourceLink = input.ReadString(); + break; + } + case 16: { + ClusterMissing = input.ReadBool(); + break; + } + case 24: { + AdminCluster = input.ReadBool(); + break; + } + case 32: { + ClusterType = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.OnPremCluster.Types.ClusterType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the OnPremCluster message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// ClusterType describes on prem cluster's type. + /// + public enum ClusterType { + /// + /// The ClusterType is not set. + /// + [pbr::OriginalName("CLUSTERTYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The ClusterType is bootstrap cluster. + /// + [pbr::OriginalName("BOOTSTRAP")] Bootstrap = 1, + /// + /// The ClusterType is baremetal hybrid cluster. + /// + [pbr::OriginalName("HYBRID")] Hybrid = 2, + /// + /// The ClusterType is baremetal standalone cluster. + /// + [pbr::OriginalName("STANDALONE")] Standalone = 3, + /// + /// The ClusterType is user cluster. + /// + [pbr::OriginalName("USER")] User = 4, + } + + } + #endregion + + } + + /// + /// MultiCloudCluster contains information specific to GKE Multi-Cloud clusters. + /// + public sealed partial class MultiCloudCluster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MultiCloudCluster()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[17]; } + } + + [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 MultiCloudCluster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MultiCloudCluster(MultiCloudCluster other) : this() { + resourceLink_ = other.resourceLink_; + clusterMissing_ = other.clusterMissing_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MultiCloudCluster Clone() { + return new MultiCloudCluster(this); + } + + /// Field number for the "resource_link" field. + public const int ResourceLinkFieldNumber = 1; + private string resourceLink_ = ""; + /// + /// Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. + /// For example: + /// + /// //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster + /// //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster + /// //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/attachedClusters/my-cluster + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceLink { + get { return resourceLink_; } + set { + resourceLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cluster_missing" field. + public const int ClusterMissingFieldNumber = 2; + private bool clusterMissing_; + /// + /// Output only. If cluster_missing is set then it denotes that + /// API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster + /// no longer exists. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ClusterMissing { + get { return clusterMissing_; } + set { + clusterMissing_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MultiCloudCluster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MultiCloudCluster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ResourceLink != other.ResourceLink) return false; + if (ClusterMissing != other.ClusterMissing) 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 (ResourceLink.Length != 0) hash ^= ResourceLink.GetHashCode(); + if (ClusterMissing != false) hash ^= ClusterMissing.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 (ResourceLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceLink); + } + if (ClusterMissing != false) { + output.WriteRawTag(16); + output.WriteBool(ClusterMissing); + } + 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 (ResourceLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceLink); + } + if (ClusterMissing != false) { + output.WriteRawTag(16); + output.WriteBool(ClusterMissing); + } + 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 (ResourceLink.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceLink); + } + if (ClusterMissing != 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(MultiCloudCluster other) { + if (other == null) { + return; + } + if (other.ResourceLink.Length != 0) { + ResourceLink = other.ResourceLink; + } + if (other.ClusterMissing != false) { + ClusterMissing = other.ClusterMissing; + } + _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: { + ResourceLink = input.ReadString(); + break; + } + case 16: { + ClusterMissing = 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 10: { + ResourceLink = input.ReadString(); + break; + } + case 16: { + ClusterMissing = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// EdgeCluster contains information specific to Google Edge Clusters. + /// + public sealed partial class EdgeCluster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EdgeCluster()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[18]; } + } + + [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 EdgeCluster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EdgeCluster(EdgeCluster other) : this() { + resourceLink_ = other.resourceLink_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EdgeCluster Clone() { + return new EdgeCluster(this); + } + + /// Field number for the "resource_link" field. + public const int ResourceLinkFieldNumber = 1; + private string resourceLink_ = ""; + /// + /// Immutable. Self-link of the GCP resource for the Edge Cluster. For + /// example: + /// + /// //edgecontainer.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceLink { + get { return resourceLink_; } + set { + resourceLink_ = 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 EdgeCluster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EdgeCluster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ResourceLink != other.ResourceLink) 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 (ResourceLink.Length != 0) hash ^= ResourceLink.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 (ResourceLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceLink); + } + 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 (ResourceLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceLink); + } + 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 (ResourceLink.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceLink); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EdgeCluster other) { + if (other == null) { + return; + } + if (other.ResourceLink.Length != 0) { + ResourceLink = other.ResourceLink; + } + _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: { + ResourceLink = 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: { + ResourceLink = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// ApplianceCluster contains information specific to GDC Edge Appliance + /// Clusters. + /// + public sealed partial class ApplianceCluster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApplianceCluster()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[19]; } + } + + [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 ApplianceCluster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApplianceCluster(ApplianceCluster other) : this() { + resourceLink_ = other.resourceLink_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApplianceCluster Clone() { + return new ApplianceCluster(this); + } + + /// Field number for the "resource_link" field. + public const int ResourceLinkFieldNumber = 1; + private string resourceLink_ = ""; + /// + /// Immutable. Self-link of the GCP resource for the Appliance Cluster. For + /// example: + /// + /// //transferappliance.googleapis.com/projects/my-project/locations/us-west1-a/appliances/my-appliance + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceLink { + get { return resourceLink_; } + set { + resourceLink_ = 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 ApplianceCluster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ApplianceCluster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ResourceLink != other.ResourceLink) 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 (ResourceLink.Length != 0) hash ^= ResourceLink.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 (ResourceLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceLink); + } + 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 (ResourceLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceLink); + } + 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 (ResourceLink.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceLink); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ApplianceCluster other) { + if (other == null) { + return; + } + if (other.ResourceLink.Length != 0) { + ResourceLink = other.ResourceLink; + } + _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: { + ResourceLink = 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: { + ResourceLink = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// KubernetesMetadata provides informational metadata for Memberships + /// representing Kubernetes clusters. + /// + public sealed partial class KubernetesMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KubernetesMetadata()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[20]; } + } + + [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 KubernetesMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KubernetesMetadata(KubernetesMetadata other) : this() { + kubernetesApiServerVersion_ = other.kubernetesApiServerVersion_; + nodeProviderId_ = other.nodeProviderId_; + nodeCount_ = other.nodeCount_; + vcpuCount_ = other.vcpuCount_; + memoryMb_ = other.memoryMb_; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KubernetesMetadata Clone() { + return new KubernetesMetadata(this); + } + + /// Field number for the "kubernetes_api_server_version" field. + public const int KubernetesApiServerVersionFieldNumber = 1; + private string kubernetesApiServerVersion_ = ""; + /// + /// Output only. Kubernetes API server version string as reported by + /// `/version`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KubernetesApiServerVersion { + get { return kubernetesApiServerVersion_; } + set { + kubernetesApiServerVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "node_provider_id" field. + public const int NodeProviderIdFieldNumber = 2; + private string nodeProviderId_ = ""; + /// + /// Output only. Node providerID as reported by the first node in the list of + /// nodes on the Kubernetes endpoint. On Kubernetes platforms that support + /// zero-node clusters (like GKE-on-GCP), the node_count will be zero and the + /// node_provider_id will be empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeProviderId { + get { return nodeProviderId_; } + set { + nodeProviderId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "node_count" field. + public const int NodeCountFieldNumber = 3; + private int nodeCount_; + /// + /// Output only. Node count as reported by Kubernetes nodes resources. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NodeCount { + get { return nodeCount_; } + set { + nodeCount_ = value; + } + } + + /// Field number for the "vcpu_count" field. + public const int VcpuCountFieldNumber = 4; + private int vcpuCount_; + /// + /// Output only. vCPU count as reported by Kubernetes nodes resources. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VcpuCount { + get { return vcpuCount_; } + set { + vcpuCount_ = value; + } + } + + /// Field number for the "memory_mb" field. + public const int MemoryMbFieldNumber = 5; + private int memoryMb_; + /// + /// Output only. The total memory capacity as reported by the sum of all + /// Kubernetes nodes resources, defined in MB. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MemoryMb { + get { return memoryMb_; } + set { + memoryMb_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 100; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time at which these details were last updated. This + /// update_time is different from the Membership-level update_time since + /// EndpointDetails are updated internally for API consumers. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as KubernetesMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KubernetesMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KubernetesApiServerVersion != other.KubernetesApiServerVersion) return false; + if (NodeProviderId != other.NodeProviderId) return false; + if (NodeCount != other.NodeCount) return false; + if (VcpuCount != other.VcpuCount) return false; + if (MemoryMb != other.MemoryMb) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) 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 (KubernetesApiServerVersion.Length != 0) hash ^= KubernetesApiServerVersion.GetHashCode(); + if (NodeProviderId.Length != 0) hash ^= NodeProviderId.GetHashCode(); + if (NodeCount != 0) hash ^= NodeCount.GetHashCode(); + if (VcpuCount != 0) hash ^= VcpuCount.GetHashCode(); + if (MemoryMb != 0) hash ^= MemoryMb.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.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 (KubernetesApiServerVersion.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KubernetesApiServerVersion); + } + if (NodeProviderId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NodeProviderId); + } + if (NodeCount != 0) { + output.WriteRawTag(24); + output.WriteInt32(NodeCount); + } + if (VcpuCount != 0) { + output.WriteRawTag(32); + output.WriteInt32(VcpuCount); + } + if (MemoryMb != 0) { + output.WriteRawTag(40); + output.WriteInt32(MemoryMb); + } + if (updateTime_ != null) { + output.WriteRawTag(162, 6); + output.WriteMessage(UpdateTime); + } + 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 (KubernetesApiServerVersion.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KubernetesApiServerVersion); + } + if (NodeProviderId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NodeProviderId); + } + if (NodeCount != 0) { + output.WriteRawTag(24); + output.WriteInt32(NodeCount); + } + if (VcpuCount != 0) { + output.WriteRawTag(32); + output.WriteInt32(VcpuCount); + } + if (MemoryMb != 0) { + output.WriteRawTag(40); + output.WriteInt32(MemoryMb); + } + if (updateTime_ != null) { + output.WriteRawTag(162, 6); + output.WriteMessage(UpdateTime); + } + 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 (KubernetesApiServerVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KubernetesApiServerVersion); + } + if (NodeProviderId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeProviderId); + } + if (NodeCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NodeCount); + } + if (VcpuCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(VcpuCount); + } + if (MemoryMb != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MemoryMb); + } + if (updateTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KubernetesMetadata other) { + if (other == null) { + return; + } + if (other.KubernetesApiServerVersion.Length != 0) { + KubernetesApiServerVersion = other.KubernetesApiServerVersion; + } + if (other.NodeProviderId.Length != 0) { + NodeProviderId = other.NodeProviderId; + } + if (other.NodeCount != 0) { + NodeCount = other.NodeCount; + } + if (other.VcpuCount != 0) { + VcpuCount = other.VcpuCount; + } + if (other.MemoryMb != 0) { + MemoryMb = other.MemoryMb; + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + _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: { + KubernetesApiServerVersion = input.ReadString(); + break; + } + case 18: { + NodeProviderId = input.ReadString(); + break; + } + case 24: { + NodeCount = input.ReadInt32(); + break; + } + case 32: { + VcpuCount = input.ReadInt32(); + break; + } + case 40: { + MemoryMb = input.ReadInt32(); + break; + } + case 802: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + 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: { + KubernetesApiServerVersion = input.ReadString(); + break; + } + case 18: { + NodeProviderId = input.ReadString(); + break; + } + case 24: { + NodeCount = input.ReadInt32(); + break; + } + case 32: { + VcpuCount = input.ReadInt32(); + break; + } + case 40: { + MemoryMb = input.ReadInt32(); + break; + } + case 802: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + } + #endif + + } + + /// + /// MembershipState describes the state of a Membership resource. + /// + public sealed partial class MembershipState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MembershipState()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[21]; } + } + + [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 MembershipState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipState(MembershipState other) : this() { + code_ = other.code_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipState Clone() { + return new MembershipState(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Types.Code code_ = global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Types.Code.Unspecified; + /// + /// Output only. The current state of the Membership resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Types.Code Code { + get { return code_; } + set { + code_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MembershipState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MembershipState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Types.Code.Unspecified) hash ^= Code.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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Types.Code.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Types.Code.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + 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 (Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Types.Code.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MembershipState other) { + if (other == null) { + return; + } + if (other.Code != global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Types.Code.Unspecified) { + Code = other.Code; + } + _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: { + Code = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Types.Code) input.ReadEnum(); + 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: { + Code = (global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipState.Types.Code) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MembershipState message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Code describes the state of a Membership resource. + /// + public enum Code { + /// + /// The code is not set. + /// + [pbr::OriginalName("CODE_UNSPECIFIED")] Unspecified = 0, + /// + /// The cluster is being registered. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// The cluster is registered. + /// + [pbr::OriginalName("READY")] Ready = 2, + /// + /// The cluster is being unregistered. + /// + [pbr::OriginalName("DELETING")] Deleting = 3, + /// + /// The Membership is being updated. + /// + [pbr::OriginalName("UPDATING")] Updating = 4, + /// + /// The Membership is being updated by the Hub Service. + /// + [pbr::OriginalName("SERVICE_UPDATING")] ServiceUpdating = 5, + } + + } + #endregion + + } + + /// + /// Authority encodes how Google will recognize identities from this Membership. + /// See the workload identity documentation for more details: + /// https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity + /// + public sealed partial class Authority : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Authority()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[22]; } + } + + [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 Authority() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Authority(Authority other) : this() { + issuer_ = other.issuer_; + workloadIdentityPool_ = other.workloadIdentityPool_; + identityProvider_ = other.identityProvider_; + oidcJwks_ = other.oidcJwks_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Authority Clone() { + return new Authority(this); + } + + /// Field number for the "issuer" field. + public const int IssuerFieldNumber = 1; + private string issuer_ = ""; + /// + /// Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with + /// `https://` and be a valid URL with length <2000 characters. + /// + /// If set, then Google will allow valid OIDC tokens from this issuer to + /// authenticate within the workload_identity_pool. OIDC discovery will be + /// performed on this URI to validate tokens from the issuer. + /// + /// Clearing `issuer` disables Workload Identity. `issuer` cannot be directly + /// modified; it must be cleared (and Workload Identity disabled) before using + /// a new issuer (and re-enabling Workload Identity). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Issuer { + get { return issuer_; } + set { + issuer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "workload_identity_pool" field. + public const int WorkloadIdentityPoolFieldNumber = 2; + private string workloadIdentityPool_ = ""; + /// + /// Output only. The name of the workload identity pool in which `issuer` will + /// be recognized. + /// + /// There is a single Workload Identity Pool per Hub that is shared + /// between all Memberships that belong to that Hub. For a Hub hosted in + /// {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, + /// although this is subject to change in newer versions of this API. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string WorkloadIdentityPool { + get { return workloadIdentityPool_; } + set { + workloadIdentityPool_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "identity_provider" field. + public const int IdentityProviderFieldNumber = 3; + private string identityProvider_ = ""; + /// + /// Output only. An identity provider that reflects the `issuer` in the + /// workload identity pool. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IdentityProvider { + get { return identityProvider_; } + set { + identityProvider_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "oidc_jwks" field. + public const int OidcJwksFieldNumber = 4; + private pb::ByteString oidcJwks_ = pb::ByteString.Empty; + /// + /// Optional. OIDC verification keys for this Membership in JWKS format (RFC + /// 7517). + /// + /// When this field is set, OIDC discovery will NOT be performed on `issuer`, + /// and instead OIDC tokens will be validated using this field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString OidcJwks { + get { return oidcJwks_; } + set { + oidcJwks_ = 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 Authority); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Authority other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Issuer != other.Issuer) return false; + if (WorkloadIdentityPool != other.WorkloadIdentityPool) return false; + if (IdentityProvider != other.IdentityProvider) return false; + if (OidcJwks != other.OidcJwks) 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 (Issuer.Length != 0) hash ^= Issuer.GetHashCode(); + if (WorkloadIdentityPool.Length != 0) hash ^= WorkloadIdentityPool.GetHashCode(); + if (IdentityProvider.Length != 0) hash ^= IdentityProvider.GetHashCode(); + if (OidcJwks.Length != 0) hash ^= OidcJwks.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 (Issuer.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Issuer); + } + if (WorkloadIdentityPool.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WorkloadIdentityPool); + } + if (IdentityProvider.Length != 0) { + output.WriteRawTag(26); + output.WriteString(IdentityProvider); + } + if (OidcJwks.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(OidcJwks); + } + 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 (Issuer.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Issuer); + } + if (WorkloadIdentityPool.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WorkloadIdentityPool); + } + if (IdentityProvider.Length != 0) { + output.WriteRawTag(26); + output.WriteString(IdentityProvider); + } + if (OidcJwks.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(OidcJwks); + } + 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 (Issuer.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Issuer); + } + if (WorkloadIdentityPool.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(WorkloadIdentityPool); + } + if (IdentityProvider.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentityProvider); + } + if (OidcJwks.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(OidcJwks); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Authority other) { + if (other == null) { + return; + } + if (other.Issuer.Length != 0) { + Issuer = other.Issuer; + } + if (other.WorkloadIdentityPool.Length != 0) { + WorkloadIdentityPool = other.WorkloadIdentityPool; + } + if (other.IdentityProvider.Length != 0) { + IdentityProvider = other.IdentityProvider; + } + if (other.OidcJwks.Length != 0) { + OidcJwks = other.OidcJwks; + } + _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: { + Issuer = input.ReadString(); + break; + } + case 18: { + WorkloadIdentityPool = input.ReadString(); + break; + } + case 26: { + IdentityProvider = input.ReadString(); + break; + } + case 34: { + OidcJwks = input.ReadBytes(); + 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: { + Issuer = input.ReadString(); + break; + } + case 18: { + WorkloadIdentityPool = input.ReadString(); + break; + } + case 26: { + IdentityProvider = input.ReadString(); + break; + } + case 34: { + OidcJwks = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Scope events. + /// + public sealed partial class ScopeEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScopeEventData()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[23]; } + } + + [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 ScopeEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScopeEventData(ScopeEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScopeEventData Clone() { + return new ScopeEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.Scope payload_; + /// + /// Optional. The Scope event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.Scope Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScopeEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScopeEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScopeEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Scope(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Scope(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Scope(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Membership events. + /// + public sealed partial class MembershipEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MembershipEventData()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[24]; } + } + + [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 MembershipEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipEventData(MembershipEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipEventData Clone() { + return new MembershipEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.Membership payload_; + /// + /// Optional. The Membership event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.Membership Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MembershipEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MembershipEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MembershipEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Membership(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Membership(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Membership(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Feature events. + /// + public sealed partial class FeatureEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeatureEventData()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[25]; } + } + + [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 FeatureEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FeatureEventData(FeatureEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FeatureEventData Clone() { + return new FeatureEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.Feature payload_; + /// + /// Optional. The Feature event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.Feature Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FeatureEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FeatureEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FeatureEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Feature(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Feature(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.Feature(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all MembershipBinding events. + /// + public sealed partial class MembershipBindingEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MembershipBindingEventData()); + 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::Google.Events.Protobuf.Cloud.GkeHub.V1.DataReflection.Descriptor.MessageTypes[26]; } + } + + [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 MembershipBindingEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipBindingEventData(MembershipBindingEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MembershipBindingEventData Clone() { + return new MembershipBindingEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBinding payload_; + /// + /// Optional. The MembershipBinding event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBinding Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MembershipBindingEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MembershipBindingEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MembershipBindingEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBinding(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBinding(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.GkeHub.V1.MembershipBinding(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Google.Events.Protobuf/Cloud/GkeHub/V1/ExtensionAttributes.g.cs b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/ExtensionAttributes.g.cs new file mode 100644 index 0000000..faa5156 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/ExtensionAttributes.g.cs @@ -0,0 +1,77 @@ +// Copyright 2023, 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 +// +// https://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. + +using CloudNative.CloudEvents; + +namespace Google.Events.Protobuf.Cloud.GkeHub.V1 +{ + /// Extension attributes for Google.Events.Protobuf.Cloud.GkeHub.V1 events. + public static class ExtensionAttributes + { + /// + /// The resource ID of the Feature triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.gkehub.feature.v1.created + /// google.cloud.gkehub.feature.v1.deleted + /// google.cloud.gkehub.feature.v1.updated + /// + /// + public static CloudEventAttribute Feature { get; } = CloudEventAttribute.CreateExtension("feature", CloudEventAttributeType.String); + + /// + /// The resource ID of the Membership triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.gkehub.membership.v1.created + /// google.cloud.gkehub.membership.v1.deleted + /// google.cloud.gkehub.membership.v1.updated + /// google.cloud.gkehub.membershipBinding.v1.created + /// google.cloud.gkehub.membershipBinding.v1.updated + /// google.cloud.gkehub.membershipBinding.v1.deleted + /// + /// + public static CloudEventAttribute Membership { get; } = CloudEventAttribute.CreateExtension("membership", CloudEventAttributeType.String); + + /// + /// The resource ID of the MembershipBinding triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.gkehub.membershipBinding.v1.created + /// google.cloud.gkehub.membershipBinding.v1.updated + /// google.cloud.gkehub.membershipBinding.v1.deleted + /// + /// + public static CloudEventAttribute MembershipBinding { get; } = CloudEventAttribute.CreateExtension("membershipbinding", CloudEventAttributeType.String); + + /// + /// The resource ID of the Scope triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.gkehub.scope.v1.created + /// google.cloud.gkehub.scope.v1.deleted + /// + /// + public static CloudEventAttribute Scope { get; } = CloudEventAttribute.CreateExtension("scope", CloudEventAttributeType.String); + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/GkeHub/V1/FeatureEventData.g.cs b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/FeatureEventData.g.cs new file mode 100644 index 0000000..4a80b0d --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/FeatureEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.GkeHub.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class FeatureEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.gkehub.feature.v1.created"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.gkehub.feature.v1.deleted"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.gkehub.feature.v1.updated"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/GkeHub/V1/MembershipBindingEventData.g.cs b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/MembershipBindingEventData.g.cs new file mode 100644 index 0000000..effa3dd --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/MembershipBindingEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.GkeHub.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class MembershipBindingEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.gkehub.membershipBinding.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.gkehub.membershipBinding.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.gkehub.membershipBinding.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/GkeHub/V1/MembershipEventData.g.cs b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/MembershipEventData.g.cs new file mode 100644 index 0000000..fd6c728 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/MembershipEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.GkeHub.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class MembershipEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.gkehub.membership.v1.created"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.gkehub.membership.v1.deleted"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.gkehub.membership.v1.updated"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/GkeHub/V1/ScopeEventData.g.cs b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/ScopeEventData.g.cs new file mode 100644 index 0000000..61377bd --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/GkeHub/V1/ScopeEventData.g.cs @@ -0,0 +1,27 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.GkeHub.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class ScopeEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.gkehub.scope.v1.created"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.gkehub.scope.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Metastore/V1/BackupEventData.g.cs b/src/Google.Events.Protobuf/Cloud/Metastore/V1/BackupEventData.g.cs new file mode 100644 index 0000000..01145ed --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Metastore/V1/BackupEventData.g.cs @@ -0,0 +1,27 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.Metastore.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class BackupEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.metastore.backup.v1.created"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.metastore.backup.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Metastore/V1/Data.g.cs b/src/Google.Events.Protobuf/Cloud/Metastore/V1/Data.g.cs new file mode 100644 index 0000000..3fde0c5 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Metastore/V1/Data.g.cs @@ -0,0 +1,8436 @@ +// Copyright 2023, 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 +// +// https://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. + +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/metastore/v1/data.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 Google.Events.Protobuf.Cloud.Metastore.V1 { + + /// Holder for reflection information generated from google/events/cloud/metastore/v1/data.proto + public static partial class DataReflection { + + #region Descriptor + /// File descriptor for google/events/cloud/metastore/v1/data.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Citnb29nbGUvZXZlbnRzL2Nsb3VkL21ldGFzdG9yZS92MS9kYXRhLnByb3Rv", + "EiBnb29nbGUuZXZlbnRzLmNsb3VkLm1ldGFzdG9yZS52MRofZ29vZ2xlL3By", + "b3RvYnVmL3RpbWVzdGFtcC5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dyYXBw", + "ZXJzLnByb3RvGhtnb29nbGUvdHlwZS9kYXlvZndlZWsucHJvdG8iswUKCkZl", + "ZGVyYXRpb24SDAoEbmFtZRgBIAEoCRIvCgtjcmVhdGVfdGltZRgCIAEoCzIa", + "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLdXBkYXRlX3RpbWUYAyAB", + "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEkgKBmxhYmVscxgEIAMo", + "CzI4Lmdvb2dsZS5ldmVudHMuY2xvdWQubWV0YXN0b3JlLnYxLkZlZGVyYXRp", + "b24uTGFiZWxzRW50cnkSDwoHdmVyc2lvbhgFIAEoCRJfChJiYWNrZW5kX21l", + "dGFzdG9yZXMYBiADKAsyQy5nb29nbGUuZXZlbnRzLmNsb3VkLm1ldGFzdG9y", + "ZS52MS5GZWRlcmF0aW9uLkJhY2tlbmRNZXRhc3RvcmVzRW50cnkSFAoMZW5k", + "cG9pbnRfdXJpGAcgASgJEkEKBXN0YXRlGAggASgOMjIuZ29vZ2xlLmV2ZW50", + "cy5jbG91ZC5tZXRhc3RvcmUudjEuRmVkZXJhdGlvbi5TdGF0ZRIVCg1zdGF0", + "ZV9tZXNzYWdlGAkgASgJEgsKA3VpZBgKIAEoCRotCgtMYWJlbHNFbnRyeRIL", + "CgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBGmwKFkJhY2tlbmRNZXRh", + "c3RvcmVzRW50cnkSCwoDa2V5GAEgASgFEkEKBXZhbHVlGAIgASgLMjIuZ29v", + "Z2xlLmV2ZW50cy5jbG91ZC5tZXRhc3RvcmUudjEuQmFja2VuZE1ldGFzdG9y", + "ZToCOAEiXwoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABIMCghDUkVB", + "VElORxABEgoKBkFDVElWRRACEgwKCFVQREFUSU5HEAMSDAoIREVMRVRJTkcQ", + "BBIJCgVFUlJPUhAFIsMBChBCYWNrZW5kTWV0YXN0b3JlEgwKBG5hbWUYASAB", + "KAkSWAoObWV0YXN0b3JlX3R5cGUYAiABKA4yQC5nb29nbGUuZXZlbnRzLmNs", + "b3VkLm1ldGFzdG9yZS52MS5CYWNrZW5kTWV0YXN0b3JlLk1ldGFzdG9yZVR5", + "cGUiRwoNTWV0YXN0b3JlVHlwZRIeChpNRVRBU1RPUkVfVFlQRV9VTlNQRUNJ", + "RklFRBAAEhYKEkRBVEFQUk9DX01FVEFTVE9SRRADIqAMCgdTZXJ2aWNlElYK", + "FWhpdmVfbWV0YXN0b3JlX2NvbmZpZxgFIAEoCzI1Lmdvb2dsZS5ldmVudHMu", + "Y2xvdWQubWV0YXN0b3JlLnYxLkhpdmVNZXRhc3RvcmVDb25maWdIABIMCgRu", + "YW1lGAEgASgJEi8KC2NyZWF0ZV90aW1lGAIgASgLMhouZ29vZ2xlLnByb3Rv", + "YnVmLlRpbWVzdGFtcBIvCgt1cGRhdGVfdGltZRgDIAEoCzIaLmdvb2dsZS5w", + "cm90b2J1Zi5UaW1lc3RhbXASRQoGbGFiZWxzGAQgAygLMjUuZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC5tZXRhc3RvcmUudjEuU2VydmljZS5MYWJlbHNFbnRyeRIP", + "CgduZXR3b3JrGAcgASgJEhQKDGVuZHBvaW50X3VyaRgIIAEoCRIMCgRwb3J0", + "GAkgASgFEj4KBXN0YXRlGAogASgOMi8uZ29vZ2xlLmV2ZW50cy5jbG91ZC5t", + "ZXRhc3RvcmUudjEuU2VydmljZS5TdGF0ZRIVCg1zdGF0ZV9tZXNzYWdlGAsg", + "ASgJEhgKEGFydGlmYWN0X2djc191cmkYDCABKAkSPAoEdGllchgNIAEoDjIu", + "Lmdvb2dsZS5ldmVudHMuY2xvdWQubWV0YXN0b3JlLnYxLlNlcnZpY2UuVGll", + "chJPChJtYWludGVuYW5jZV93aW5kb3cYDyABKAsyMy5nb29nbGUuZXZlbnRz", + "LmNsb3VkLm1ldGFzdG9yZS52MS5NYWludGVuYW5jZVdpbmRvdxILCgN1aWQY", + "ECABKAkSYgocbWV0YWRhdGFfbWFuYWdlbWVudF9hY3Rpdml0eRgRIAEoCzI8", + "Lmdvb2dsZS5ldmVudHMuY2xvdWQubWV0YXN0b3JlLnYxLk1ldGFkYXRhTWFu", + "YWdlbWVudEFjdGl2aXR5ElEKD3JlbGVhc2VfY2hhbm5lbBgTIAEoDjI4Lmdv", + "b2dsZS5ldmVudHMuY2xvdWQubWV0YXN0b3JlLnYxLlNlcnZpY2UuUmVsZWFz", + "ZUNoYW5uZWwSTQoRZW5jcnlwdGlvbl9jb25maWcYFCABKAsyMi5nb29nbGUu", + "ZXZlbnRzLmNsb3VkLm1ldGFzdG9yZS52MS5FbmNyeXB0aW9uQ29uZmlnEkcK", + "Dm5ldHdvcmtfY29uZmlnGBUgASgLMi8uZ29vZ2xlLmV2ZW50cy5jbG91ZC5t", + "ZXRhc3RvcmUudjEuTmV0d29ya0NvbmZpZxJNCg1kYXRhYmFzZV90eXBlGBYg", + "ASgOMjYuZ29vZ2xlLmV2ZW50cy5jbG91ZC5tZXRhc3RvcmUudjEuU2Vydmlj", + "ZS5EYXRhYmFzZVR5cGUSSwoQdGVsZW1ldHJ5X2NvbmZpZxgXIAEoCzIxLmdv", + "b2dsZS5ldmVudHMuY2xvdWQubWV0YXN0b3JlLnYxLlRlbGVtZXRyeUNvbmZp", + "ZxJHCg5zY2FsaW5nX2NvbmZpZxgYIAEoCzIvLmdvb2dsZS5ldmVudHMuY2xv", + "dWQubWV0YXN0b3JlLnYxLlNjYWxpbmdDb25maWcaLQoLTGFiZWxzRW50cnkS", + "CwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJ+CgVTdGF0ZRIVChFT", + "VEFURV9VTlNQRUNJRklFRBAAEgwKCENSRUFUSU5HEAESCgoGQUNUSVZFEAIS", + "DgoKU1VTUEVORElORxADEg0KCVNVU1BFTkRFRBAEEgwKCFVQREFUSU5HEAUS", + "DAoIREVMRVRJTkcQBhIJCgVFUlJPUhAHIjsKBFRpZXISFAoQVElFUl9VTlNQ", + "RUNJRklFRBAAEg0KCURFVkVMT1BFUhABEg4KCkVOVEVSUFJJU0UQAyJJCg5S", + "ZWxlYXNlQ2hhbm5lbBIfChtSRUxFQVNFX0NIQU5ORUxfVU5TUEVDSUZJRUQQ", + "ABIKCgZDQU5BUlkQARIKCgZTVEFCTEUQAiJFCgxEYXRhYmFzZVR5cGUSHQoZ", + "REFUQUJBU0VfVFlQRV9VTlNQRUNJRklFRBAAEgkKBU1ZU1FMEAESCwoHU1BB", + "Tk5FUhACQhIKEG1ldGFzdG9yZV9jb25maWcicgoRTWFpbnRlbmFuY2VXaW5k", + "b3cSMAoLaG91cl9vZl9kYXkYASABKAsyGy5nb29nbGUucHJvdG9idWYuSW50", + "MzJWYWx1ZRIrCgtkYXlfb2Zfd2VlaxgCIAEoDjIWLmdvb2dsZS50eXBlLkRh", + "eU9mV2VlayLtAwoTSGl2ZU1ldGFzdG9yZUNvbmZpZxIPCgd2ZXJzaW9uGAEg", + "ASgJEmQKEGNvbmZpZ19vdmVycmlkZXMYAiADKAsySi5nb29nbGUuZXZlbnRz", + "LmNsb3VkLm1ldGFzdG9yZS52MS5IaXZlTWV0YXN0b3JlQ29uZmlnLkNvbmZp", + "Z092ZXJyaWRlc0VudHJ5EkkKD2tlcmJlcm9zX2NvbmZpZxgDIAEoCzIwLmdv", + "b2dsZS5ldmVudHMuY2xvdWQubWV0YXN0b3JlLnYxLktlcmJlcm9zQ29uZmln", + "EmgKEmF1eGlsaWFyeV92ZXJzaW9ucxgFIAMoCzJMLmdvb2dsZS5ldmVudHMu", + "Y2xvdWQubWV0YXN0b3JlLnYxLkhpdmVNZXRhc3RvcmVDb25maWcuQXV4aWxp", + "YXJ5VmVyc2lvbnNFbnRyeRo2ChRDb25maWdPdmVycmlkZXNFbnRyeRILCgNr", + "ZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBGnIKFkF1eGlsaWFyeVZlcnNp", + "b25zRW50cnkSCwoDa2V5GAEgASgJEkcKBXZhbHVlGAIgASgLMjguZ29vZ2xl", + "LmV2ZW50cy5jbG91ZC5tZXRhc3RvcmUudjEuQXV4aWxpYXJ5VmVyc2lvbkNv", + "bmZpZzoCOAEiegoOS2VyYmVyb3NDb25maWcSOAoGa2V5dGFiGAEgASgLMigu", + "Z29vZ2xlLmV2ZW50cy5jbG91ZC5tZXRhc3RvcmUudjEuU2VjcmV0EhEKCXBy", + "aW5jaXBhbBgCIAEoCRIbChNrcmI1X2NvbmZpZ19nY3NfdXJpGAMgASgJIikK", + "BlNlY3JldBIWCgxjbG91ZF9zZWNyZXQYAiABKAlIAEIHCgV2YWx1ZSIjChBF", + "bmNyeXB0aW9uQ29uZmlnEg8KB2ttc19rZXkYASABKAkikwIKFkF1eGlsaWFy", + "eVZlcnNpb25Db25maWcSDwoHdmVyc2lvbhgBIAEoCRJnChBjb25maWdfb3Zl", + "cnJpZGVzGAIgAygLMk0uZ29vZ2xlLmV2ZW50cy5jbG91ZC5tZXRhc3RvcmUu", + "djEuQXV4aWxpYXJ5VmVyc2lvbkNvbmZpZy5Db25maWdPdmVycmlkZXNFbnRy", + "eRJHCg5uZXR3b3JrX2NvbmZpZxgDIAEoCzIvLmdvb2dsZS5ldmVudHMuY2xv", + "dWQubWV0YXN0b3JlLnYxLk5ldHdvcmtDb25maWcaNgoUQ29uZmlnT3ZlcnJp", + "ZGVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASKkAQoN", + "TmV0d29ya0NvbmZpZxJLCgljb25zdW1lcnMYASADKAsyOC5nb29nbGUuZXZl", + "bnRzLmNsb3VkLm1ldGFzdG9yZS52MS5OZXR3b3JrQ29uZmlnLkNvbnN1bWVy", + "GkYKCENvbnN1bWVyEhQKCnN1Ym5ldHdvcmsYASABKAlIABIUCgxlbmRwb2lu", + "dF91cmkYAyABKAlCDgoMdnBjX3Jlc291cmNlIqEBCg9UZWxlbWV0cnlDb25m", + "aWcSTwoKbG9nX2Zvcm1hdBgBIAEoDjI7Lmdvb2dsZS5ldmVudHMuY2xvdWQu", + "bWV0YXN0b3JlLnYxLlRlbGVtZXRyeUNvbmZpZy5Mb2dGb3JtYXQiPQoJTG9n", + "Rm9ybWF0EhoKFkxPR19GT1JNQVRfVU5TUEVDSUZJRUQQABIKCgZMRUdBQ1kQ", + "ARIICgRKU09OEAIipQEKGk1ldGFkYXRhTWFuYWdlbWVudEFjdGl2aXR5EkoK", + "EG1ldGFkYXRhX2V4cG9ydHMYASADKAsyMC5nb29nbGUuZXZlbnRzLmNsb3Vk", + "Lm1ldGFzdG9yZS52MS5NZXRhZGF0YUV4cG9ydBI7CghyZXN0b3JlcxgCIAMo", + "CzIpLmdvb2dsZS5ldmVudHMuY2xvdWQubWV0YXN0b3JlLnYxLlJlc3RvcmUi", + "4wUKDk1ldGFkYXRhSW1wb3J0ElYKDWRhdGFiYXNlX2R1bXAYBiABKAsyPS5n", + "b29nbGUuZXZlbnRzLmNsb3VkLm1ldGFzdG9yZS52MS5NZXRhZGF0YUltcG9y", + "dC5EYXRhYmFzZUR1bXBIABIMCgRuYW1lGAEgASgJEhMKC2Rlc2NyaXB0aW9u", + "GAIgASgJEi8KC2NyZWF0ZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcBIvCgt1cGRhdGVfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90", + "b2J1Zi5UaW1lc3RhbXASLAoIZW5kX3RpbWUYByABKAsyGi5nb29nbGUucHJv", + "dG9idWYuVGltZXN0YW1wEkUKBXN0YXRlGAUgASgOMjYuZ29vZ2xlLmV2ZW50", + "cy5jbG91ZC5tZXRhc3RvcmUudjEuTWV0YWRhdGFJbXBvcnQuU3RhdGUanAIK", + "DERhdGFiYXNlRHVtcBJhCg1kYXRhYmFzZV90eXBlGAEgASgOMkouZ29vZ2xl", + "LmV2ZW50cy5jbG91ZC5tZXRhc3RvcmUudjEuTWV0YWRhdGFJbXBvcnQuRGF0", + "YWJhc2VEdW1wLkRhdGFiYXNlVHlwZRIPCgdnY3NfdXJpGAIgASgJEhcKD3Nv", + "dXJjZV9kYXRhYmFzZRgDIAEoCRJFCgR0eXBlGAQgASgOMjcuZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC5tZXRhc3RvcmUudjEuRGF0YWJhc2VEdW1wU3BlYy5UeXBl", + "IjgKDERhdGFiYXNlVHlwZRIdChlEQVRBQkFTRV9UWVBFX1VOU1BFQ0lGSUVE", + "EAASCQoFTVlTUUwQASJUCgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAA", + "EgsKB1JVTk5JTkcQARINCglTVUNDRUVERUQQAhIMCghVUERBVElORxADEgoK", + "BkZBSUxFRBAEQgoKCG1ldGFkYXRhIo8DCg5NZXRhZGF0YUV4cG9ydBIdChNk", + "ZXN0aW5hdGlvbl9nY3NfdXJpGAQgASgJSAASLgoKc3RhcnRfdGltZRgBIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLAoIZW5kX3RpbWUYAiAB", + "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEkUKBXN0YXRlGAMgASgO", + "MjYuZ29vZ2xlLmV2ZW50cy5jbG91ZC5tZXRhc3RvcmUudjEuTWV0YWRhdGFF", + "eHBvcnQuU3RhdGUSUwoSZGF0YWJhc2VfZHVtcF90eXBlGAUgASgOMjcuZ29v", + "Z2xlLmV2ZW50cy5jbG91ZC5tZXRhc3RvcmUudjEuRGF0YWJhc2VEdW1wU3Bl", + "Yy5UeXBlIlUKBVN0YXRlEhUKEVNUQVRFX1VOU1BFQ0lGSUVEEAASCwoHUlVO", + "TklORxABEg0KCVNVQ0NFRURFRBACEgoKBkZBSUxFRBADEg0KCUNBTkNFTExF", + "RBAEQg0KC2Rlc3RpbmF0aW9uIo0DCgZCYWNrdXASDAoEbmFtZRgBIAEoCRIv", + "CgtjcmVhdGVfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXASLAoIZW5kX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", + "YW1wEj0KBXN0YXRlGAQgASgOMi4uZ29vZ2xlLmV2ZW50cy5jbG91ZC5tZXRh", + "c3RvcmUudjEuQmFja3VwLlN0YXRlEkMKEHNlcnZpY2VfcmV2aXNpb24YBSAB", + "KAsyKS5nb29nbGUuZXZlbnRzLmNsb3VkLm1ldGFzdG9yZS52MS5TZXJ2aWNl", + "EhMKC2Rlc2NyaXB0aW9uGAYgASgJEhoKEnJlc3RvcmluZ19zZXJ2aWNlcxgH", + "IAMoCSJhCgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgwKCENSRUFU", + "SU5HEAESDAoIREVMRVRJTkcQAhIKCgZBQ1RJVkUQAxIKCgZGQUlMRUQQBBIN", + "CglSRVNUT1JJTkcQBSKuAwoHUmVzdG9yZRIuCgpzdGFydF90aW1lGAEgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIsCghlbmRfdGltZRgCIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASPgoFc3RhdGUYAyABKA4y", + "Ly5nb29nbGUuZXZlbnRzLmNsb3VkLm1ldGFzdG9yZS52MS5SZXN0b3JlLlN0", + "YXRlEg4KBmJhY2t1cBgEIAEoCRJDCgR0eXBlGAUgASgOMjUuZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC5tZXRhc3RvcmUudjEuUmVzdG9yZS5SZXN0b3JlVHlwZRIP", + "CgdkZXRhaWxzGAYgASgJIlUKBVN0YXRlEhUKEVNUQVRFX1VOU1BFQ0lGSUVE", + "EAASCwoHUlVOTklORxABEg0KCVNVQ0NFRURFRBACEgoKBkZBSUxFRBADEg0K", + "CUNBTkNFTExFRBAEIkgKC1Jlc3RvcmVUeXBlEhwKGFJFU1RPUkVfVFlQRV9V", + "TlNQRUNJRklFRBAAEggKBEZVTEwQARIRCg1NRVRBREFUQV9PTkxZEAIihAIK", + "DVNjYWxpbmdDb25maWcSVQoNaW5zdGFuY2Vfc2l6ZRgBIAEoDjI8Lmdvb2ds", + "ZS5ldmVudHMuY2xvdWQubWV0YXN0b3JlLnYxLlNjYWxpbmdDb25maWcuSW5z", + "dGFuY2VTaXplSAASGAoOc2NhbGluZ19mYWN0b3IYAiABKAJIACJxCgxJbnN0", + "YW5jZVNpemUSHQoZSU5TVEFOQ0VfU0laRV9VTlNQRUNJRklFRBAAEg8KC0VY", + "VFJBX1NNQUxMEAESCQoFU01BTEwQAhIKCgZNRURJVU0QAxIJCgVMQVJHRRAE", + "Eg8KC0VYVFJBX0xBUkdFEAVCDwoNc2NhbGluZ19tb2RlbCJFChBEYXRhYmFz", + "ZUR1bXBTcGVjIjEKBFR5cGUSFAoQVFlQRV9VTlNQRUNJRklFRBAAEgkKBU1Z", + "U1FMEAESCAoEQVZSTxACIlwKF01ldGFkYXRhSW1wb3J0RXZlbnREYXRhEkEK", + "B3BheWxvYWQYASABKAsyMC5nb29nbGUuZXZlbnRzLmNsb3VkLm1ldGFzdG9y", + "ZS52MS5NZXRhZGF0YUltcG9ydCJlChNGZWRlcmF0aW9uRXZlbnREYXRhEkIK", + "B3BheWxvYWQYASABKAsyLC5nb29nbGUuZXZlbnRzLmNsb3VkLm1ldGFzdG9y", + "ZS52MS5GZWRlcmF0aW9uSACIAQFCCgoIX3BheWxvYWQiXQoPQmFja3VwRXZl", + "bnREYXRhEj4KB3BheWxvYWQYASABKAsyKC5nb29nbGUuZXZlbnRzLmNsb3Vk", + "Lm1ldGFzdG9yZS52MS5CYWNrdXBIAIgBAUIKCghfcGF5bG9hZCJfChBTZXJ2", + "aWNlRXZlbnREYXRhEj8KB3BheWxvYWQYASABKAsyKS5nb29nbGUuZXZlbnRz", + "LmNsb3VkLm1ldGFzdG9yZS52MS5TZXJ2aWNlSACIAQFCCgoIX3BheWxvYWRC", + "dqoCKUdvb2dsZS5FdmVudHMuUHJvdG9idWYuQ2xvdWQuTWV0YXN0b3JlLlYx", + "ygIgR29vZ2xlXEV2ZW50c1xDbG91ZFxNZXRhc3RvcmVcVjHqAiRHb29nbGU6", + "OkV2ZW50czo6Q2xvdWQ6Ok1ldGFzdG9yZTo6VjFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Type.DayofweekReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation), global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "Labels", "Version", "BackendMetastores", "EndpointUri", "State", "StateMessage", "Uid" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore), global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Parser, new[]{ "Name", "MetastoreType" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Types.MetastoreType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Service), global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Parser, new[]{ "HiveMetastoreConfig", "Name", "CreateTime", "UpdateTime", "Labels", "Network", "EndpointUri", "Port", "State", "StateMessage", "ArtifactGcsUri", "Tier", "MaintenanceWindow", "Uid", "MetadataManagementActivity", "ReleaseChannel", "EncryptionConfig", "NetworkConfig", "DatabaseType", "TelemetryConfig", "ScalingConfig" }, new[]{ "MetastoreConfig" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.State), typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.Tier), typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.ReleaseChannel), typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.DatabaseType) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.MaintenanceWindow), global::Google.Events.Protobuf.Cloud.Metastore.V1.MaintenanceWindow.Parser, new[]{ "HourOfDay", "DayOfWeek" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.HiveMetastoreConfig), global::Google.Events.Protobuf.Cloud.Metastore.V1.HiveMetastoreConfig.Parser, new[]{ "Version", "ConfigOverrides", "KerberosConfig", "AuxiliaryVersions" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.KerberosConfig), global::Google.Events.Protobuf.Cloud.Metastore.V1.KerberosConfig.Parser, new[]{ "Keytab", "Principal", "Krb5ConfigGcsUri" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Secret), global::Google.Events.Protobuf.Cloud.Metastore.V1.Secret.Parser, new[]{ "CloudSecret" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.EncryptionConfig), global::Google.Events.Protobuf.Cloud.Metastore.V1.EncryptionConfig.Parser, new[]{ "KmsKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.AuxiliaryVersionConfig), global::Google.Events.Protobuf.Cloud.Metastore.V1.AuxiliaryVersionConfig.Parser, new[]{ "Version", "ConfigOverrides", "NetworkConfig" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig), global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig.Parser, new[]{ "Consumers" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig.Types.Consumer), global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig.Types.Consumer.Parser, new[]{ "Subnetwork", "EndpointUri" }, new[]{ "VpcResource" }, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig), global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Parser, new[]{ "LogFormat" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Types.LogFormat) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataManagementActivity), global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataManagementActivity.Parser, new[]{ "MetadataExports", "Restores" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport), global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Parser, new[]{ "DatabaseDump", "Name", "Description", "CreateTime", "UpdateTime", "EndTime", "State" }, new[]{ "Metadata" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump), global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Parser, new[]{ "DatabaseType", "GcsUri", "SourceDatabase", "Type" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Types.DatabaseType) }, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport), global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Parser, new[]{ "DestinationGcsUri", "StartTime", "EndTime", "State", "DatabaseDumpType" }, new[]{ "Destination" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup), global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Parser, new[]{ "Name", "CreateTime", "EndTime", "State", "ServiceRevision", "Description", "RestoringServices" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore), global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Parser, new[]{ "StartTime", "EndTime", "State", "Backup", "Type", "Details" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.State), typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.RestoreType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.ScalingConfig), global::Google.Events.Protobuf.Cloud.Metastore.V1.ScalingConfig.Parser, new[]{ "InstanceSize", "ScalingFactor" }, new[]{ "ScalingModel" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.ScalingConfig.Types.InstanceSize) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec), global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Parser, null, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImportEventData), global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImportEventData.Parser, new[]{ "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.FederationEventData), global::Google.Events.Protobuf.Cloud.Metastore.V1.FederationEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.BackupEventData), global::Google.Events.Protobuf.Cloud.Metastore.V1.BackupEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Metastore.V1.ServiceEventData), global::Google.Events.Protobuf.Cloud.Metastore.V1.ServiceEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Represents a federation of multiple backend metastores. + /// + public sealed partial class Federation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Federation()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 Federation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Federation(Federation other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + version_ = other.version_; + backendMetastores_ = other.backendMetastores_.Clone(); + endpointUri_ = other.endpointUri_; + state_ = other.state_; + stateMessage_ = other.stateMessage_; + uid_ = other.uid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Federation Clone() { + return new Federation(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The relative resource name of the federation, of the + /// form: + /// projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + [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 "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time when the metastore federation was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time when the metastore federation was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// User-defined labels for the metastore federation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 5; + private string version_ = ""; + /// + /// Immutable. The Apache Hive metastore version of the federation. All backend + /// metastore versions must be compatible with the federation version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "backend_metastores" field. + public const int BackendMetastoresFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_backendMetastores_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Parser), 50); + private readonly pbc::MapField backendMetastores_ = new pbc::MapField(); + /// + /// A map from `BackendMetastore` rank to `BackendMetastore`s from which the + /// federation service serves metadata at query time. The map key represents + /// the order in which `BackendMetastore`s should be evaluated to resolve + /// database names at query time and should be greater than or equal to zero. A + /// `BackendMetastore` with a lower number will be evaluated before a + /// `BackendMetastore` with a higher number. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField BackendMetastores { + get { return backendMetastores_; } + } + + /// Field number for the "endpoint_uri" field. + public const int EndpointUriFieldNumber = 7; + private string endpointUri_ = ""; + /// + /// Output only. The federation endpoint. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndpointUri { + get { return endpointUri_; } + set { + endpointUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Types.State state_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Types.State.Unspecified; + /// + /// Output only. The current state of the federation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "state_message" field. + public const int StateMessageFieldNumber = 9; + private string stateMessage_ = ""; + /// + /// Output only. Additional information about the current state of the + /// metastore federation, if available. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StateMessage { + get { return stateMessage_; } + set { + stateMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 10; + private string uid_ = ""; + /// + /// Output only. The globally unique resource identifier of the metastore + /// federation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uid { + get { return uid_; } + set { + uid_ = 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 Federation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Federation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Version != other.Version) return false; + if (!BackendMetastores.Equals(other.BackendMetastores)) return false; + if (EndpointUri != other.EndpointUri) return false; + if (State != other.State) return false; + if (StateMessage != other.StateMessage) return false; + if (Uid != other.Uid) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + hash ^= BackendMetastores.GetHashCode(); + if (EndpointUri.Length != 0) hash ^= EndpointUri.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (StateMessage.Length != 0) hash ^= StateMessage.GetHashCode(); + if (Uid.Length != 0) hash ^= Uid.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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (Version.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Version); + } + backendMetastores_.WriteTo(output, _map_backendMetastores_codec); + if (EndpointUri.Length != 0) { + output.WriteRawTag(58); + output.WriteString(EndpointUri); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Types.State.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + if (StateMessage.Length != 0) { + output.WriteRawTag(74); + output.WriteString(StateMessage); + } + if (Uid.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Uid); + } + 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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (Version.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Version); + } + backendMetastores_.WriteTo(ref output, _map_backendMetastores_codec); + if (EndpointUri.Length != 0) { + output.WriteRawTag(58); + output.WriteString(EndpointUri); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Types.State.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + if (StateMessage.Length != 0) { + output.WriteRawTag(74); + output.WriteString(StateMessage); + } + if (Uid.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Uid); + } + 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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + size += backendMetastores_.CalculateSize(_map_backendMetastores_codec); + if (EndpointUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndpointUri); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (StateMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StateMessage); + } + if (Uid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Federation other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + if (other.Version.Length != 0) { + Version = other.Version; + } + backendMetastores_.MergeFrom(other.backendMetastores_); + if (other.EndpointUri.Length != 0) { + EndpointUri = other.EndpointUri; + } + if (other.State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Types.State.Unspecified) { + State = other.State; + } + if (other.StateMessage.Length != 0) { + StateMessage = other.StateMessage; + } + if (other.Uid.Length != 0) { + Uid = other.Uid; + } + _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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + Version = input.ReadString(); + break; + } + case 50: { + backendMetastores_.AddEntriesFrom(input, _map_backendMetastores_codec); + break; + } + case 58: { + EndpointUri = input.ReadString(); + break; + } + case 64: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Types.State) input.ReadEnum(); + break; + } + case 74: { + StateMessage = input.ReadString(); + break; + } + case 82: { + Uid = 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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + Version = input.ReadString(); + break; + } + case 50: { + backendMetastores_.AddEntriesFrom(ref input, _map_backendMetastores_codec); + break; + } + case 58: { + EndpointUri = input.ReadString(); + break; + } + case 64: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation.Types.State) input.ReadEnum(); + break; + } + case 74: { + StateMessage = input.ReadString(); + break; + } + case 82: { + Uid = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Federation message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The current state of the federation. + /// + public enum State { + /// + /// The state of the metastore federation is unknown. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The metastore federation is in the process of being created. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// The metastore federation is running and ready to serve queries. + /// + [pbr::OriginalName("ACTIVE")] Active = 2, + /// + /// The metastore federation is being updated. It remains usable but cannot + /// accept additional update requests or be deleted at this time. + /// + [pbr::OriginalName("UPDATING")] Updating = 3, + /// + /// The metastore federation is undergoing deletion. It cannot be used. + /// + [pbr::OriginalName("DELETING")] Deleting = 4, + /// + /// The metastore federation has encountered an error and cannot be used. The + /// metastore federation should be deleted. + /// + [pbr::OriginalName("ERROR")] Error = 5, + } + + } + #endregion + + } + + /// + /// Represents a backend metastore for the federation. + /// + public sealed partial class BackendMetastore : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BackendMetastore()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 BackendMetastore() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackendMetastore(BackendMetastore other) : this() { + name_ = other.name_; + metastoreType_ = other.metastoreType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackendMetastore Clone() { + return new BackendMetastore(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The relative resource name of the metastore that is being federated. + /// The formats of the relative resource names for the currently supported + /// metastores are listed below: + /// + /// * BigQuery + /// * `projects/{project_id}` + /// * Dataproc Metastore + /// * `projects/{project_id}/locations/{location}/services/{service_id}` + /// + [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 "metastore_type" field. + public const int MetastoreTypeFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Types.MetastoreType metastoreType_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Types.MetastoreType.Unspecified; + /// + /// The type of the backend metastore. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Types.MetastoreType MetastoreType { + get { return metastoreType_; } + set { + metastoreType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BackendMetastore); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BackendMetastore other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (MetastoreType != other.MetastoreType) 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 (MetastoreType != global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Types.MetastoreType.Unspecified) hash ^= MetastoreType.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 (MetastoreType != global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Types.MetastoreType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) MetastoreType); + } + 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 (MetastoreType != global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Types.MetastoreType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) MetastoreType); + } + 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 (MetastoreType != global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Types.MetastoreType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MetastoreType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BackendMetastore other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.MetastoreType != global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Types.MetastoreType.Unspecified) { + MetastoreType = other.MetastoreType; + } + _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: { + MetastoreType = (global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Types.MetastoreType) input.ReadEnum(); + 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: { + MetastoreType = (global::Google.Events.Protobuf.Cloud.Metastore.V1.BackendMetastore.Types.MetastoreType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the BackendMetastore message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type of the backend metastore. + /// + public enum MetastoreType { + /// + /// The metastore type is not set. + /// + [pbr::OriginalName("METASTORE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The backend metastore is Dataproc Metastore. + /// + [pbr::OriginalName("DATAPROC_METASTORE")] DataprocMetastore = 3, + } + + } + #endregion + + } + + /// + /// A managed metastore service that serves metadata queries. + /// + public sealed partial class Service : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Service()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 Service() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Service(Service other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + network_ = other.network_; + endpointUri_ = other.endpointUri_; + port_ = other.port_; + state_ = other.state_; + stateMessage_ = other.stateMessage_; + artifactGcsUri_ = other.artifactGcsUri_; + tier_ = other.tier_; + maintenanceWindow_ = other.maintenanceWindow_ != null ? other.maintenanceWindow_.Clone() : null; + uid_ = other.uid_; + metadataManagementActivity_ = other.metadataManagementActivity_ != null ? other.metadataManagementActivity_.Clone() : null; + releaseChannel_ = other.releaseChannel_; + encryptionConfig_ = other.encryptionConfig_ != null ? other.encryptionConfig_.Clone() : null; + networkConfig_ = other.networkConfig_ != null ? other.networkConfig_.Clone() : null; + databaseType_ = other.databaseType_; + telemetryConfig_ = other.telemetryConfig_ != null ? other.telemetryConfig_.Clone() : null; + scalingConfig_ = other.scalingConfig_ != null ? other.scalingConfig_.Clone() : null; + switch (other.MetastoreConfigCase) { + case MetastoreConfigOneofCase.HiveMetastoreConfig: + HiveMetastoreConfig = other.HiveMetastoreConfig.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Service Clone() { + return new Service(this); + } + + /// Field number for the "hive_metastore_config" field. + public const int HiveMetastoreConfigFieldNumber = 5; + /// + /// Configuration information specific to running Hive metastore + /// software as the metastore service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.HiveMetastoreConfig HiveMetastoreConfig { + get { return metastoreConfigCase_ == MetastoreConfigOneofCase.HiveMetastoreConfig ? (global::Google.Events.Protobuf.Cloud.Metastore.V1.HiveMetastoreConfig) metastoreConfig_ : null; } + set { + metastoreConfig_ = value; + metastoreConfigCase_ = value == null ? MetastoreConfigOneofCase.None : MetastoreConfigOneofCase.HiveMetastoreConfig; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The relative resource name of the metastore service, in the + /// following format: + /// + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. + /// + [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 "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time when the metastore service was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time when the metastore service was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// User-defined labels for the metastore service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 7; + private string network_ = ""; + /// + /// Immutable. The relative resource name of the VPC network on which the + /// instance can be accessed. It is specified in the following form: + /// + /// `projects/{project_number}/global/networks/{network_id}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Network { + get { return network_; } + set { + network_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "endpoint_uri" field. + public const int EndpointUriFieldNumber = 8; + private string endpointUri_ = ""; + /// + /// Output only. The URI of the endpoint used to access the metastore service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndpointUri { + get { return endpointUri_; } + set { + endpointUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "port" field. + public const int PortFieldNumber = 9; + private int port_; + /// + /// The TCP port at which the metastore service is reached. Default: 9083. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Port { + get { return port_; } + set { + port_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 10; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.State state_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.State.Unspecified; + /// + /// Output only. The current state of the metastore service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "state_message" field. + public const int StateMessageFieldNumber = 11; + private string stateMessage_ = ""; + /// + /// Output only. Additional information about the current state of the + /// metastore service, if available. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StateMessage { + get { return stateMessage_; } + set { + stateMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "artifact_gcs_uri" field. + public const int ArtifactGcsUriFieldNumber = 12; + private string artifactGcsUri_ = ""; + /// + /// Output only. A Cloud Storage URI (starting with `gs://`) that specifies + /// where artifacts related to the metastore service are stored. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ArtifactGcsUri { + get { return artifactGcsUri_; } + set { + artifactGcsUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tier" field. + public const int TierFieldNumber = 13; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.Tier tier_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.Tier.Unspecified; + /// + /// The tier of the service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.Tier Tier { + get { return tier_; } + set { + tier_ = value; + } + } + + /// Field number for the "maintenance_window" field. + public const int MaintenanceWindowFieldNumber = 15; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.MaintenanceWindow maintenanceWindow_; + /// + /// The one hour maintenance window of the metastore service. This specifies + /// when the service can be restarted for maintenance purposes in UTC time. + /// Maintenance window is not needed for services with the SPANNER + /// database type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.MaintenanceWindow MaintenanceWindow { + get { return maintenanceWindow_; } + set { + maintenanceWindow_ = value; + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 16; + private string uid_ = ""; + /// + /// Output only. The globally unique resource identifier of the metastore + /// service. + /// + [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 "metadata_management_activity" field. + public const int MetadataManagementActivityFieldNumber = 17; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataManagementActivity metadataManagementActivity_; + /// + /// Output only. The metadata management activities of the metastore service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataManagementActivity MetadataManagementActivity { + get { return metadataManagementActivity_; } + set { + metadataManagementActivity_ = value; + } + } + + /// Field number for the "release_channel" field. + public const int ReleaseChannelFieldNumber = 19; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.ReleaseChannel releaseChannel_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.ReleaseChannel.Unspecified; + /// + /// Immutable. The release channel of the service. + /// If unspecified, defaults to `STABLE`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.ReleaseChannel ReleaseChannel { + get { return releaseChannel_; } + set { + releaseChannel_ = value; + } + } + + /// Field number for the "encryption_config" field. + public const int EncryptionConfigFieldNumber = 20; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.EncryptionConfig encryptionConfig_; + /// + /// Immutable. Information used to configure the Dataproc Metastore service to + /// encrypt customer data at rest. Cannot be updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.EncryptionConfig EncryptionConfig { + get { return encryptionConfig_; } + set { + encryptionConfig_ = value; + } + } + + /// Field number for the "network_config" field. + public const int NetworkConfigFieldNumber = 21; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig networkConfig_; + /// + /// The configuration specifying the network settings for the + /// Dataproc Metastore service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig NetworkConfig { + get { return networkConfig_; } + set { + networkConfig_ = value; + } + } + + /// Field number for the "database_type" field. + public const int DatabaseTypeFieldNumber = 22; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.DatabaseType databaseType_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.DatabaseType.Unspecified; + /// + /// Immutable. The database type that the Metastore service stores its data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.DatabaseType DatabaseType { + get { return databaseType_; } + set { + databaseType_ = value; + } + } + + /// Field number for the "telemetry_config" field. + public const int TelemetryConfigFieldNumber = 23; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig telemetryConfig_; + /// + /// The configuration specifying telemetry settings for the Dataproc Metastore + /// service. If unspecified defaults to `JSON`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig TelemetryConfig { + get { return telemetryConfig_; } + set { + telemetryConfig_ = value; + } + } + + /// Field number for the "scaling_config" field. + public const int ScalingConfigFieldNumber = 24; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.ScalingConfig scalingConfig_; + /// + /// Scaling configuration of the metastore service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.ScalingConfig ScalingConfig { + get { return scalingConfig_; } + set { + scalingConfig_ = value; + } + } + + private object metastoreConfig_; + /// Enum of possible cases for the "metastore_config" oneof. + public enum MetastoreConfigOneofCase { + None = 0, + HiveMetastoreConfig = 5, + } + private MetastoreConfigOneofCase metastoreConfigCase_ = MetastoreConfigOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetastoreConfigOneofCase MetastoreConfigCase { + get { return metastoreConfigCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMetastoreConfig() { + metastoreConfigCase_ = MetastoreConfigOneofCase.None; + metastoreConfig_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Service); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Service other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(HiveMetastoreConfig, other.HiveMetastoreConfig)) return false; + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Network != other.Network) return false; + if (EndpointUri != other.EndpointUri) return false; + if (Port != other.Port) return false; + if (State != other.State) return false; + if (StateMessage != other.StateMessage) return false; + if (ArtifactGcsUri != other.ArtifactGcsUri) return false; + if (Tier != other.Tier) return false; + if (!object.Equals(MaintenanceWindow, other.MaintenanceWindow)) return false; + if (Uid != other.Uid) return false; + if (!object.Equals(MetadataManagementActivity, other.MetadataManagementActivity)) return false; + if (ReleaseChannel != other.ReleaseChannel) return false; + if (!object.Equals(EncryptionConfig, other.EncryptionConfig)) return false; + if (!object.Equals(NetworkConfig, other.NetworkConfig)) return false; + if (DatabaseType != other.DatabaseType) return false; + if (!object.Equals(TelemetryConfig, other.TelemetryConfig)) return false; + if (!object.Equals(ScalingConfig, other.ScalingConfig)) return false; + if (MetastoreConfigCase != other.MetastoreConfigCase) 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 (metastoreConfigCase_ == MetastoreConfigOneofCase.HiveMetastoreConfig) hash ^= HiveMetastoreConfig.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Network.Length != 0) hash ^= Network.GetHashCode(); + if (EndpointUri.Length != 0) hash ^= EndpointUri.GetHashCode(); + if (Port != 0) hash ^= Port.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (StateMessage.Length != 0) hash ^= StateMessage.GetHashCode(); + if (ArtifactGcsUri.Length != 0) hash ^= ArtifactGcsUri.GetHashCode(); + if (Tier != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.Tier.Unspecified) hash ^= Tier.GetHashCode(); + if (maintenanceWindow_ != null) hash ^= MaintenanceWindow.GetHashCode(); + if (Uid.Length != 0) hash ^= Uid.GetHashCode(); + if (metadataManagementActivity_ != null) hash ^= MetadataManagementActivity.GetHashCode(); + if (ReleaseChannel != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.ReleaseChannel.Unspecified) hash ^= ReleaseChannel.GetHashCode(); + if (encryptionConfig_ != null) hash ^= EncryptionConfig.GetHashCode(); + if (networkConfig_ != null) hash ^= NetworkConfig.GetHashCode(); + if (DatabaseType != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.DatabaseType.Unspecified) hash ^= DatabaseType.GetHashCode(); + if (telemetryConfig_ != null) hash ^= TelemetryConfig.GetHashCode(); + if (scalingConfig_ != null) hash ^= ScalingConfig.GetHashCode(); + hash ^= (int) metastoreConfigCase_; + 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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (metastoreConfigCase_ == MetastoreConfigOneofCase.HiveMetastoreConfig) { + output.WriteRawTag(42); + output.WriteMessage(HiveMetastoreConfig); + } + if (Network.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Network); + } + if (EndpointUri.Length != 0) { + output.WriteRawTag(66); + output.WriteString(EndpointUri); + } + if (Port != 0) { + output.WriteRawTag(72); + output.WriteInt32(Port); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.State.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) State); + } + if (StateMessage.Length != 0) { + output.WriteRawTag(90); + output.WriteString(StateMessage); + } + if (ArtifactGcsUri.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ArtifactGcsUri); + } + if (Tier != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.Tier.Unspecified) { + output.WriteRawTag(104); + output.WriteEnum((int) Tier); + } + if (maintenanceWindow_ != null) { + output.WriteRawTag(122); + output.WriteMessage(MaintenanceWindow); + } + if (Uid.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Uid); + } + if (metadataManagementActivity_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(MetadataManagementActivity); + } + if (ReleaseChannel != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.ReleaseChannel.Unspecified) { + output.WriteRawTag(152, 1); + output.WriteEnum((int) ReleaseChannel); + } + if (encryptionConfig_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(EncryptionConfig); + } + if (networkConfig_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(NetworkConfig); + } + if (DatabaseType != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.DatabaseType.Unspecified) { + output.WriteRawTag(176, 1); + output.WriteEnum((int) DatabaseType); + } + if (telemetryConfig_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(TelemetryConfig); + } + if (scalingConfig_ != null) { + output.WriteRawTag(194, 1); + output.WriteMessage(ScalingConfig); + } + 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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (metastoreConfigCase_ == MetastoreConfigOneofCase.HiveMetastoreConfig) { + output.WriteRawTag(42); + output.WriteMessage(HiveMetastoreConfig); + } + if (Network.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Network); + } + if (EndpointUri.Length != 0) { + output.WriteRawTag(66); + output.WriteString(EndpointUri); + } + if (Port != 0) { + output.WriteRawTag(72); + output.WriteInt32(Port); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.State.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) State); + } + if (StateMessage.Length != 0) { + output.WriteRawTag(90); + output.WriteString(StateMessage); + } + if (ArtifactGcsUri.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ArtifactGcsUri); + } + if (Tier != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.Tier.Unspecified) { + output.WriteRawTag(104); + output.WriteEnum((int) Tier); + } + if (maintenanceWindow_ != null) { + output.WriteRawTag(122); + output.WriteMessage(MaintenanceWindow); + } + if (Uid.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Uid); + } + if (metadataManagementActivity_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(MetadataManagementActivity); + } + if (ReleaseChannel != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.ReleaseChannel.Unspecified) { + output.WriteRawTag(152, 1); + output.WriteEnum((int) ReleaseChannel); + } + if (encryptionConfig_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(EncryptionConfig); + } + if (networkConfig_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(NetworkConfig); + } + if (DatabaseType != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.DatabaseType.Unspecified) { + output.WriteRawTag(176, 1); + output.WriteEnum((int) DatabaseType); + } + if (telemetryConfig_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(TelemetryConfig); + } + if (scalingConfig_ != null) { + output.WriteRawTag(194, 1); + output.WriteMessage(ScalingConfig); + } + 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 (metastoreConfigCase_ == MetastoreConfigOneofCase.HiveMetastoreConfig) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HiveMetastoreConfig); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Network.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Network); + } + if (EndpointUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndpointUri); + } + if (Port != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (StateMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StateMessage); + } + if (ArtifactGcsUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ArtifactGcsUri); + } + if (Tier != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.Tier.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Tier); + } + if (maintenanceWindow_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaintenanceWindow); + } + if (Uid.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Uid); + } + if (metadataManagementActivity_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MetadataManagementActivity); + } + if (ReleaseChannel != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.ReleaseChannel.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ReleaseChannel); + } + if (encryptionConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(EncryptionConfig); + } + if (networkConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(NetworkConfig); + } + if (DatabaseType != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.DatabaseType.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DatabaseType); + } + if (telemetryConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TelemetryConfig); + } + if (scalingConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ScalingConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Service other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + if (other.Network.Length != 0) { + Network = other.Network; + } + if (other.EndpointUri.Length != 0) { + EndpointUri = other.EndpointUri; + } + if (other.Port != 0) { + Port = other.Port; + } + if (other.State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.State.Unspecified) { + State = other.State; + } + if (other.StateMessage.Length != 0) { + StateMessage = other.StateMessage; + } + if (other.ArtifactGcsUri.Length != 0) { + ArtifactGcsUri = other.ArtifactGcsUri; + } + if (other.Tier != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.Tier.Unspecified) { + Tier = other.Tier; + } + if (other.maintenanceWindow_ != null) { + if (maintenanceWindow_ == null) { + MaintenanceWindow = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MaintenanceWindow(); + } + MaintenanceWindow.MergeFrom(other.MaintenanceWindow); + } + if (other.Uid.Length != 0) { + Uid = other.Uid; + } + if (other.metadataManagementActivity_ != null) { + if (metadataManagementActivity_ == null) { + MetadataManagementActivity = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataManagementActivity(); + } + MetadataManagementActivity.MergeFrom(other.MetadataManagementActivity); + } + if (other.ReleaseChannel != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.ReleaseChannel.Unspecified) { + ReleaseChannel = other.ReleaseChannel; + } + if (other.encryptionConfig_ != null) { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.EncryptionConfig(); + } + EncryptionConfig.MergeFrom(other.EncryptionConfig); + } + if (other.networkConfig_ != null) { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig(); + } + NetworkConfig.MergeFrom(other.NetworkConfig); + } + if (other.DatabaseType != global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.DatabaseType.Unspecified) { + DatabaseType = other.DatabaseType; + } + if (other.telemetryConfig_ != null) { + if (telemetryConfig_ == null) { + TelemetryConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig(); + } + TelemetryConfig.MergeFrom(other.TelemetryConfig); + } + if (other.scalingConfig_ != null) { + if (scalingConfig_ == null) { + ScalingConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.ScalingConfig(); + } + ScalingConfig.MergeFrom(other.ScalingConfig); + } + switch (other.MetastoreConfigCase) { + case MetastoreConfigOneofCase.HiveMetastoreConfig: + if (HiveMetastoreConfig == null) { + HiveMetastoreConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.HiveMetastoreConfig(); + } + HiveMetastoreConfig.MergeFrom(other.HiveMetastoreConfig); + break; + } + + _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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.Metastore.V1.HiveMetastoreConfig subBuilder = new global::Google.Events.Protobuf.Cloud.Metastore.V1.HiveMetastoreConfig(); + if (metastoreConfigCase_ == MetastoreConfigOneofCase.HiveMetastoreConfig) { + subBuilder.MergeFrom(HiveMetastoreConfig); + } + input.ReadMessage(subBuilder); + HiveMetastoreConfig = subBuilder; + break; + } + case 58: { + Network = input.ReadString(); + break; + } + case 66: { + EndpointUri = input.ReadString(); + break; + } + case 72: { + Port = input.ReadInt32(); + break; + } + case 80: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.State) input.ReadEnum(); + break; + } + case 90: { + StateMessage = input.ReadString(); + break; + } + case 98: { + ArtifactGcsUri = input.ReadString(); + break; + } + case 104: { + Tier = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.Tier) input.ReadEnum(); + break; + } + case 122: { + if (maintenanceWindow_ == null) { + MaintenanceWindow = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MaintenanceWindow(); + } + input.ReadMessage(MaintenanceWindow); + break; + } + case 130: { + Uid = input.ReadString(); + break; + } + case 138: { + if (metadataManagementActivity_ == null) { + MetadataManagementActivity = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataManagementActivity(); + } + input.ReadMessage(MetadataManagementActivity); + break; + } + case 152: { + ReleaseChannel = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.ReleaseChannel) input.ReadEnum(); + break; + } + case 162: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 170: { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig(); + } + input.ReadMessage(NetworkConfig); + break; + } + case 176: { + DatabaseType = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.DatabaseType) input.ReadEnum(); + break; + } + case 186: { + if (telemetryConfig_ == null) { + TelemetryConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig(); + } + input.ReadMessage(TelemetryConfig); + break; + } + case 194: { + if (scalingConfig_ == null) { + ScalingConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.ScalingConfig(); + } + input.ReadMessage(ScalingConfig); + 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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.Metastore.V1.HiveMetastoreConfig subBuilder = new global::Google.Events.Protobuf.Cloud.Metastore.V1.HiveMetastoreConfig(); + if (metastoreConfigCase_ == MetastoreConfigOneofCase.HiveMetastoreConfig) { + subBuilder.MergeFrom(HiveMetastoreConfig); + } + input.ReadMessage(subBuilder); + HiveMetastoreConfig = subBuilder; + break; + } + case 58: { + Network = input.ReadString(); + break; + } + case 66: { + EndpointUri = input.ReadString(); + break; + } + case 72: { + Port = input.ReadInt32(); + break; + } + case 80: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.State) input.ReadEnum(); + break; + } + case 90: { + StateMessage = input.ReadString(); + break; + } + case 98: { + ArtifactGcsUri = input.ReadString(); + break; + } + case 104: { + Tier = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.Tier) input.ReadEnum(); + break; + } + case 122: { + if (maintenanceWindow_ == null) { + MaintenanceWindow = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MaintenanceWindow(); + } + input.ReadMessage(MaintenanceWindow); + break; + } + case 130: { + Uid = input.ReadString(); + break; + } + case 138: { + if (metadataManagementActivity_ == null) { + MetadataManagementActivity = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataManagementActivity(); + } + input.ReadMessage(MetadataManagementActivity); + break; + } + case 152: { + ReleaseChannel = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.ReleaseChannel) input.ReadEnum(); + break; + } + case 162: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 170: { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig(); + } + input.ReadMessage(NetworkConfig); + break; + } + case 176: { + DatabaseType = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Service.Types.DatabaseType) input.ReadEnum(); + break; + } + case 186: { + if (telemetryConfig_ == null) { + TelemetryConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig(); + } + input.ReadMessage(TelemetryConfig); + break; + } + case 194: { + if (scalingConfig_ == null) { + ScalingConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.ScalingConfig(); + } + input.ReadMessage(ScalingConfig); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Service message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The current state of the metastore service. + /// + public enum State { + /// + /// The state of the metastore service is unknown. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The metastore service is in the process of being created. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// The metastore service is running and ready to serve queries. + /// + [pbr::OriginalName("ACTIVE")] Active = 2, + /// + /// The metastore service is entering suspension. Its query-serving + /// availability may cease unexpectedly. + /// + [pbr::OriginalName("SUSPENDING")] Suspending = 3, + /// + /// The metastore service is suspended and unable to serve queries. + /// + [pbr::OriginalName("SUSPENDED")] Suspended = 4, + /// + /// The metastore service is being updated. It remains usable but cannot + /// accept additional update requests or be deleted at this time. + /// + [pbr::OriginalName("UPDATING")] Updating = 5, + /// + /// The metastore service is undergoing deletion. It cannot be used. + /// + [pbr::OriginalName("DELETING")] Deleting = 6, + /// + /// The metastore service has encountered an error and cannot be used. The + /// metastore service should be deleted. + /// + [pbr::OriginalName("ERROR")] Error = 7, + } + + /// + /// Available service tiers. + /// + public enum Tier { + /// + /// The tier is not set. + /// + [pbr::OriginalName("TIER_UNSPECIFIED")] Unspecified = 0, + /// + /// The developer tier provides limited scalability and no fault tolerance. + /// Good for low-cost proof-of-concept. + /// + [pbr::OriginalName("DEVELOPER")] Developer = 1, + /// + /// The enterprise tier provides multi-zone high availability, and sufficient + /// scalability for enterprise-level Dataproc Metastore workloads. + /// + [pbr::OriginalName("ENTERPRISE")] Enterprise = 3, + } + + /// + /// Release channels bundle features of varying levels of stability. Newer + /// features may be introduced initially into less stable release channels and + /// can be automatically promoted into more stable release channels. + /// + public enum ReleaseChannel { + /// + /// Release channel is not specified. + /// + [pbr::OriginalName("RELEASE_CHANNEL_UNSPECIFIED")] Unspecified = 0, + /// + /// The `CANARY` release channel contains the newest features, which may be + /// unstable and subject to unresolved issues with no known workarounds. + /// Services using the `CANARY` release channel are not subject to any SLAs. + /// + [pbr::OriginalName("CANARY")] Canary = 1, + /// + /// The `STABLE` release channel contains features that are considered stable + /// and have been validated for production use. + /// + [pbr::OriginalName("STABLE")] Stable = 2, + } + + /// + /// The backend database type for the metastore service. + /// + public enum DatabaseType { + /// + /// The DATABASE_TYPE is not set. + /// + [pbr::OriginalName("DATABASE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// MySQL is used to persist the metastore data. + /// + [pbr::OriginalName("MYSQL")] Mysql = 1, + /// + /// Spanner is used to persist the metastore data. + /// + [pbr::OriginalName("SPANNER")] Spanner = 2, + } + + } + #endregion + + } + + /// + /// Maintenance window. This specifies when Dataproc Metastore + /// may perform system maintenance operation to the service. + /// + public sealed partial class MaintenanceWindow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MaintenanceWindow()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 MaintenanceWindow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MaintenanceWindow(MaintenanceWindow other) : this() { + HourOfDay = other.HourOfDay; + dayOfWeek_ = other.dayOfWeek_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MaintenanceWindow Clone() { + return new MaintenanceWindow(this); + } + + /// Field number for the "hour_of_day" field. + public const int HourOfDayFieldNumber = 1; + private static readonly pb::FieldCodec _single_hourOfDay_codec = pb::FieldCodec.ForStructWrapper(10); + private int? hourOfDay_; + /// + /// The hour of day (0-23) when the window starts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int? HourOfDay { + get { return hourOfDay_; } + set { + hourOfDay_ = value; + } + } + + + /// Field number for the "day_of_week" field. + public const int DayOfWeekFieldNumber = 2; + private global::Google.Type.DayOfWeek dayOfWeek_ = global::Google.Type.DayOfWeek.Unspecified; + /// + /// The day of week, when the window starts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.DayOfWeek DayOfWeek { + get { return dayOfWeek_; } + set { + dayOfWeek_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MaintenanceWindow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MaintenanceWindow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (HourOfDay != other.HourOfDay) return false; + if (DayOfWeek != other.DayOfWeek) 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 (hourOfDay_ != null) hash ^= HourOfDay.GetHashCode(); + if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) hash ^= DayOfWeek.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 (hourOfDay_ != null) { + _single_hourOfDay_codec.WriteTagAndValue(output, HourOfDay); + } + if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) DayOfWeek); + } + 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 (hourOfDay_ != null) { + _single_hourOfDay_codec.WriteTagAndValue(ref output, HourOfDay); + } + if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) DayOfWeek); + } + 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 (hourOfDay_ != null) { + size += _single_hourOfDay_codec.CalculateSizeWithTag(HourOfDay); + } + if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DayOfWeek); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MaintenanceWindow other) { + if (other == null) { + return; + } + if (other.hourOfDay_ != null) { + if (hourOfDay_ == null || other.HourOfDay != 0) { + HourOfDay = other.HourOfDay; + } + } + if (other.DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { + DayOfWeek = other.DayOfWeek; + } + _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: { + int? value = _single_hourOfDay_codec.Read(input); + if (hourOfDay_ == null || value != 0) { + HourOfDay = value; + } + break; + } + case 16: { + DayOfWeek = (global::Google.Type.DayOfWeek) input.ReadEnum(); + 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: { + int? value = _single_hourOfDay_codec.Read(ref input); + if (hourOfDay_ == null || value != 0) { + HourOfDay = value; + } + break; + } + case 16: { + DayOfWeek = (global::Google.Type.DayOfWeek) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// Specifies configuration information specific to running Hive metastore + /// software as the metastore service. + /// + public sealed partial class HiveMetastoreConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HiveMetastoreConfig()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 HiveMetastoreConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HiveMetastoreConfig(HiveMetastoreConfig other) : this() { + version_ = other.version_; + configOverrides_ = other.configOverrides_.Clone(); + kerberosConfig_ = other.kerberosConfig_ != null ? other.kerberosConfig_.Clone() : null; + auxiliaryVersions_ = other.auxiliaryVersions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HiveMetastoreConfig Clone() { + return new HiveMetastoreConfig(this); + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 1; + private string version_ = ""; + /// + /// Immutable. The Hive metastore schema version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "config_overrides" field. + public const int ConfigOverridesFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_configOverrides_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField configOverrides_ = new pbc::MapField(); + /// + /// A mapping of Hive metastore configuration key-value pairs to apply to the + /// Hive metastore (configured in `hive-site.xml`). The mappings + /// override system defaults (some keys cannot be overridden). These + /// overrides are also applied to auxiliary versions and can be further + /// customized in the auxiliary version's `AuxiliaryVersionConfig`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ConfigOverrides { + get { return configOverrides_; } + } + + /// Field number for the "kerberos_config" field. + public const int KerberosConfigFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.KerberosConfig kerberosConfig_; + /// + /// Information used to configure the Hive metastore service as a service + /// principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` + /// method and specify this field's path + /// (`hive_metastore_config.kerberos_config`) in the request's `update_mask` + /// while omitting this field from the request's `service`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.KerberosConfig KerberosConfig { + get { return kerberosConfig_; } + set { + kerberosConfig_ = value; + } + } + + /// Field number for the "auxiliary_versions" field. + public const int AuxiliaryVersionsFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_auxiliaryVersions_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Events.Protobuf.Cloud.Metastore.V1.AuxiliaryVersionConfig.Parser), 42); + private readonly pbc::MapField auxiliaryVersions_ = new pbc::MapField(); + /// + /// A mapping of Hive metastore version to the auxiliary version + /// configuration. When specified, a secondary Hive metastore service is + /// created along with the primary service. All auxiliary versions must be less + /// than the service's primary version. The key is the auxiliary service name + /// and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This + /// means that the first character must be a lowercase letter, and all the + /// following characters must be hyphens, lowercase letters, or digits, except + /// the last character, which cannot be a hyphen. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField AuxiliaryVersions { + get { return auxiliaryVersions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HiveMetastoreConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HiveMetastoreConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Version != other.Version) return false; + if (!ConfigOverrides.Equals(other.ConfigOverrides)) return false; + if (!object.Equals(KerberosConfig, other.KerberosConfig)) return false; + if (!AuxiliaryVersions.Equals(other.AuxiliaryVersions)) 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 (Version.Length != 0) hash ^= Version.GetHashCode(); + hash ^= ConfigOverrides.GetHashCode(); + if (kerberosConfig_ != null) hash ^= KerberosConfig.GetHashCode(); + hash ^= AuxiliaryVersions.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 (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + configOverrides_.WriteTo(output, _map_configOverrides_codec); + if (kerberosConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(KerberosConfig); + } + auxiliaryVersions_.WriteTo(output, _map_auxiliaryVersions_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 (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + configOverrides_.WriteTo(ref output, _map_configOverrides_codec); + if (kerberosConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(KerberosConfig); + } + auxiliaryVersions_.WriteTo(ref output, _map_auxiliaryVersions_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 (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + size += configOverrides_.CalculateSize(_map_configOverrides_codec); + if (kerberosConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KerberosConfig); + } + size += auxiliaryVersions_.CalculateSize(_map_auxiliaryVersions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HiveMetastoreConfig other) { + if (other == null) { + return; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + configOverrides_.MergeFrom(other.configOverrides_); + if (other.kerberosConfig_ != null) { + if (kerberosConfig_ == null) { + KerberosConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.KerberosConfig(); + } + KerberosConfig.MergeFrom(other.KerberosConfig); + } + auxiliaryVersions_.MergeFrom(other.auxiliaryVersions_); + _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: { + Version = input.ReadString(); + break; + } + case 18: { + configOverrides_.AddEntriesFrom(input, _map_configOverrides_codec); + break; + } + case 26: { + if (kerberosConfig_ == null) { + KerberosConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.KerberosConfig(); + } + input.ReadMessage(KerberosConfig); + break; + } + case 42: { + auxiliaryVersions_.AddEntriesFrom(input, _map_auxiliaryVersions_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: { + Version = input.ReadString(); + break; + } + case 18: { + configOverrides_.AddEntriesFrom(ref input, _map_configOverrides_codec); + break; + } + case 26: { + if (kerberosConfig_ == null) { + KerberosConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.KerberosConfig(); + } + input.ReadMessage(KerberosConfig); + break; + } + case 42: { + auxiliaryVersions_.AddEntriesFrom(ref input, _map_auxiliaryVersions_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Configuration information for a Kerberos principal. + /// + public sealed partial class KerberosConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KerberosConfig()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 KerberosConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KerberosConfig(KerberosConfig other) : this() { + keytab_ = other.keytab_ != null ? other.keytab_.Clone() : null; + principal_ = other.principal_; + krb5ConfigGcsUri_ = other.krb5ConfigGcsUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KerberosConfig Clone() { + return new KerberosConfig(this); + } + + /// Field number for the "keytab" field. + public const int KeytabFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Secret keytab_; + /// + /// A Kerberos keytab file that can be used to authenticate a service principal + /// with a Kerberos Key Distribution Center (KDC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Secret Keytab { + get { return keytab_; } + set { + keytab_ = value; + } + } + + /// Field number for the "principal" field. + public const int PrincipalFieldNumber = 2; + private string principal_ = ""; + /// + /// A Kerberos principal that exists in the both the keytab the KDC + /// to authenticate as. A typical principal is of the form + /// `primary/instance@REALM`, but there is no exact format. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Principal { + get { return principal_; } + set { + principal_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "krb5_config_gcs_uri" field. + public const int Krb5ConfigGcsUriFieldNumber = 3; + private string krb5ConfigGcsUri_ = ""; + /// + /// A Cloud Storage URI that specifies the path to a + /// krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, + /// although the file does not need to be named krb5.conf explicitly. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Krb5ConfigGcsUri { + get { return krb5ConfigGcsUri_; } + set { + krb5ConfigGcsUri_ = 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 KerberosConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KerberosConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Keytab, other.Keytab)) return false; + if (Principal != other.Principal) return false; + if (Krb5ConfigGcsUri != other.Krb5ConfigGcsUri) 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 (keytab_ != null) hash ^= Keytab.GetHashCode(); + if (Principal.Length != 0) hash ^= Principal.GetHashCode(); + if (Krb5ConfigGcsUri.Length != 0) hash ^= Krb5ConfigGcsUri.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 (keytab_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Keytab); + } + if (Principal.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Principal); + } + if (Krb5ConfigGcsUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Krb5ConfigGcsUri); + } + 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 (keytab_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Keytab); + } + if (Principal.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Principal); + } + if (Krb5ConfigGcsUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Krb5ConfigGcsUri); + } + 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 (keytab_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Keytab); + } + if (Principal.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Principal); + } + if (Krb5ConfigGcsUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Krb5ConfigGcsUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KerberosConfig other) { + if (other == null) { + return; + } + if (other.keytab_ != null) { + if (keytab_ == null) { + Keytab = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Secret(); + } + Keytab.MergeFrom(other.Keytab); + } + if (other.Principal.Length != 0) { + Principal = other.Principal; + } + if (other.Krb5ConfigGcsUri.Length != 0) { + Krb5ConfigGcsUri = other.Krb5ConfigGcsUri; + } + _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 (keytab_ == null) { + Keytab = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Secret(); + } + input.ReadMessage(Keytab); + break; + } + case 18: { + Principal = input.ReadString(); + break; + } + case 26: { + Krb5ConfigGcsUri = 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: { + if (keytab_ == null) { + Keytab = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Secret(); + } + input.ReadMessage(Keytab); + break; + } + case 18: { + Principal = input.ReadString(); + break; + } + case 26: { + Krb5ConfigGcsUri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A securely stored value. + /// + public sealed partial class Secret : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Secret()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 Secret() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Secret(Secret other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.CloudSecret: + CloudSecret = other.CloudSecret; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Secret Clone() { + return new Secret(this); + } + + /// Field number for the "cloud_secret" field. + public const int CloudSecretFieldNumber = 2; + /// + /// The relative resource name of a Secret Manager secret version, in the + /// following form: + /// + /// `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CloudSecret { + get { return HasCloudSecret ? (string) value_ : ""; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + valueCase_ = ValueOneofCase.CloudSecret; + } + } + /// Gets whether the "cloud_secret" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCloudSecret { + get { return valueCase_ == ValueOneofCase.CloudSecret; } + } + /// Clears the value of the oneof if it's currently set to "cloud_secret" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCloudSecret() { + if (HasCloudSecret) { + ClearValue(); + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + CloudSecret = 2, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Secret); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Secret other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CloudSecret != other.CloudSecret) return false; + if (ValueCase != other.ValueCase) 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 (HasCloudSecret) hash ^= CloudSecret.GetHashCode(); + hash ^= (int) valueCase_; + 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 (HasCloudSecret) { + output.WriteRawTag(18); + output.WriteString(CloudSecret); + } + 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 (HasCloudSecret) { + output.WriteRawTag(18); + output.WriteString(CloudSecret); + } + 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 (HasCloudSecret) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CloudSecret); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Secret other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.CloudSecret: + CloudSecret = other.CloudSecret; + break; + } + + _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 18: { + CloudSecret = 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 18: { + CloudSecret = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Encryption settings for the service. + /// + public sealed partial class EncryptionConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptionConfig()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 EncryptionConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionConfig(EncryptionConfig other) : this() { + kmsKey_ = other.kmsKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionConfig Clone() { + return new EncryptionConfig(this); + } + + /// Field number for the "kms_key" field. + public const int KmsKeyFieldNumber = 1; + private string kmsKey_ = ""; + /// + /// The fully qualified customer provided Cloud KMS key name to use for + /// customer data encryption, in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KmsKey { + get { return kmsKey_; } + set { + kmsKey_ = 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 EncryptionConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EncryptionConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KmsKey != other.KmsKey) 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 (KmsKey.Length != 0) hash ^= KmsKey.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 (KmsKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKey); + } + 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 (KmsKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKey); + } + 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 (KmsKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KmsKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EncryptionConfig other) { + if (other == null) { + return; + } + if (other.KmsKey.Length != 0) { + KmsKey = other.KmsKey; + } + _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: { + KmsKey = 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: { + KmsKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Configuration information for the auxiliary service versions. + /// + public sealed partial class AuxiliaryVersionConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuxiliaryVersionConfig()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 AuxiliaryVersionConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuxiliaryVersionConfig(AuxiliaryVersionConfig other) : this() { + version_ = other.version_; + configOverrides_ = other.configOverrides_.Clone(); + networkConfig_ = other.networkConfig_ != null ? other.networkConfig_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuxiliaryVersionConfig Clone() { + return new AuxiliaryVersionConfig(this); + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 1; + private string version_ = ""; + /// + /// The Hive metastore version of the auxiliary service. It must be less + /// than the primary Hive metastore service's version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "config_overrides" field. + public const int ConfigOverridesFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_configOverrides_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField configOverrides_ = new pbc::MapField(); + /// + /// A mapping of Hive metastore configuration key-value pairs to apply to the + /// auxiliary Hive metastore (configured in `hive-site.xml`) in addition to + /// the primary version's overrides. If keys are present in both the auxiliary + /// version's overrides and the primary version's overrides, the value from + /// the auxiliary version's overrides takes precedence. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ConfigOverrides { + get { return configOverrides_; } + } + + /// Field number for the "network_config" field. + public const int NetworkConfigFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig networkConfig_; + /// + /// Output only. The network configuration contains the endpoint URI(s) of the + /// auxiliary Hive metastore service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig NetworkConfig { + get { return networkConfig_; } + set { + networkConfig_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AuxiliaryVersionConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AuxiliaryVersionConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Version != other.Version) return false; + if (!ConfigOverrides.Equals(other.ConfigOverrides)) return false; + if (!object.Equals(NetworkConfig, other.NetworkConfig)) 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 (Version.Length != 0) hash ^= Version.GetHashCode(); + hash ^= ConfigOverrides.GetHashCode(); + if (networkConfig_ != null) hash ^= NetworkConfig.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 (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + configOverrides_.WriteTo(output, _map_configOverrides_codec); + if (networkConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(NetworkConfig); + } + 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 (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + configOverrides_.WriteTo(ref output, _map_configOverrides_codec); + if (networkConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(NetworkConfig); + } + 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 (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + size += configOverrides_.CalculateSize(_map_configOverrides_codec); + if (networkConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NetworkConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AuxiliaryVersionConfig other) { + if (other == null) { + return; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + configOverrides_.MergeFrom(other.configOverrides_); + if (other.networkConfig_ != null) { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig(); + } + NetworkConfig.MergeFrom(other.NetworkConfig); + } + _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: { + Version = input.ReadString(); + break; + } + case 18: { + configOverrides_.AddEntriesFrom(input, _map_configOverrides_codec); + break; + } + case 26: { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig(); + } + input.ReadMessage(NetworkConfig); + 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: { + Version = input.ReadString(); + break; + } + case 18: { + configOverrides_.AddEntriesFrom(ref input, _map_configOverrides_codec); + break; + } + case 26: { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig(); + } + input.ReadMessage(NetworkConfig); + break; + } + } + } + } + #endif + + } + + /// + /// Network configuration for the Dataproc Metastore service. + /// + public sealed partial class NetworkConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NetworkConfig()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 NetworkConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NetworkConfig(NetworkConfig other) : this() { + consumers_ = other.consumers_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NetworkConfig Clone() { + return new NetworkConfig(this); + } + + /// Field number for the "consumers" field. + public const int ConsumersFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_consumers_codec + = pb::FieldCodec.ForMessage(10, global::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig.Types.Consumer.Parser); + private readonly pbc::RepeatedField consumers_ = new pbc::RepeatedField(); + /// + /// Immutable. The consumer-side network configuration for the Dataproc + /// Metastore instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Consumers { + get { return consumers_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NetworkConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NetworkConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!consumers_.Equals(other.consumers_)) 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 ^= consumers_.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 + consumers_.WriteTo(output, _repeated_consumers_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) { + consumers_.WriteTo(ref output, _repeated_consumers_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 += consumers_.CalculateSize(_repeated_consumers_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NetworkConfig other) { + if (other == null) { + return; + } + consumers_.Add(other.consumers_); + _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: { + consumers_.AddEntriesFrom(input, _repeated_consumers_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: { + consumers_.AddEntriesFrom(ref input, _repeated_consumers_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the NetworkConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Contains information of the customer's network configurations. + /// + public sealed partial class Consumer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Consumer()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.NetworkConfig.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 Consumer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Consumer(Consumer other) : this() { + endpointUri_ = other.endpointUri_; + switch (other.VpcResourceCase) { + case VpcResourceOneofCase.Subnetwork: + Subnetwork = other.Subnetwork; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Consumer Clone() { + return new Consumer(this); + } + + /// Field number for the "subnetwork" field. + public const int SubnetworkFieldNumber = 1; + /// + /// Immutable. The subnetwork of the customer project from which an IP + /// address is reserved and used as the Dataproc Metastore service's + /// endpoint. It is accessible to hosts in the subnet and to all + /// hosts in a subnet in the same region and same network. There must + /// be at least one IP address available in the subnet's primary range. The + /// subnet is specified in the following form: + /// + /// `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Subnetwork { + get { return HasSubnetwork ? (string) vpcResource_ : ""; } + set { + vpcResource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + vpcResourceCase_ = VpcResourceOneofCase.Subnetwork; + } + } + /// Gets whether the "subnetwork" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSubnetwork { + get { return vpcResourceCase_ == VpcResourceOneofCase.Subnetwork; } + } + /// Clears the value of the oneof if it's currently set to "subnetwork" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSubnetwork() { + if (HasSubnetwork) { + ClearVpcResource(); + } + } + + /// Field number for the "endpoint_uri" field. + public const int EndpointUriFieldNumber = 3; + private string endpointUri_ = ""; + /// + /// Output only. The URI of the endpoint used to access the metastore + /// service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndpointUri { + get { return endpointUri_; } + set { + endpointUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object vpcResource_; + /// Enum of possible cases for the "vpc_resource" oneof. + public enum VpcResourceOneofCase { + None = 0, + Subnetwork = 1, + } + private VpcResourceOneofCase vpcResourceCase_ = VpcResourceOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VpcResourceOneofCase VpcResourceCase { + get { return vpcResourceCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearVpcResource() { + vpcResourceCase_ = VpcResourceOneofCase.None; + vpcResource_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Consumer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Consumer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Subnetwork != other.Subnetwork) return false; + if (EndpointUri != other.EndpointUri) return false; + if (VpcResourceCase != other.VpcResourceCase) 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 (HasSubnetwork) hash ^= Subnetwork.GetHashCode(); + if (EndpointUri.Length != 0) hash ^= EndpointUri.GetHashCode(); + hash ^= (int) vpcResourceCase_; + 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 (HasSubnetwork) { + output.WriteRawTag(10); + output.WriteString(Subnetwork); + } + if (EndpointUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(EndpointUri); + } + 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 (HasSubnetwork) { + output.WriteRawTag(10); + output.WriteString(Subnetwork); + } + if (EndpointUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(EndpointUri); + } + 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 (HasSubnetwork) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Subnetwork); + } + if (EndpointUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndpointUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Consumer other) { + if (other == null) { + return; + } + if (other.EndpointUri.Length != 0) { + EndpointUri = other.EndpointUri; + } + switch (other.VpcResourceCase) { + case VpcResourceOneofCase.Subnetwork: + Subnetwork = other.Subnetwork; + break; + } + + _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: { + Subnetwork = input.ReadString(); + break; + } + case 26: { + EndpointUri = 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: { + Subnetwork = input.ReadString(); + break; + } + case 26: { + EndpointUri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Telemetry Configuration for the Dataproc Metastore service. + /// + public sealed partial class TelemetryConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TelemetryConfig()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 TelemetryConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TelemetryConfig(TelemetryConfig other) : this() { + logFormat_ = other.logFormat_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TelemetryConfig Clone() { + return new TelemetryConfig(this); + } + + /// Field number for the "log_format" field. + public const int LogFormatFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Types.LogFormat logFormat_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Types.LogFormat.Unspecified; + /// + /// The output format of the Dataproc Metastore service's logs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Types.LogFormat LogFormat { + get { return logFormat_; } + set { + logFormat_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TelemetryConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TelemetryConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LogFormat != other.LogFormat) 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 (LogFormat != global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Types.LogFormat.Unspecified) hash ^= LogFormat.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 (LogFormat != global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Types.LogFormat.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) LogFormat); + } + 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 (LogFormat != global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Types.LogFormat.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) LogFormat); + } + 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 (LogFormat != global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Types.LogFormat.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LogFormat); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TelemetryConfig other) { + if (other == null) { + return; + } + if (other.LogFormat != global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Types.LogFormat.Unspecified) { + LogFormat = other.LogFormat; + } + _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: { + LogFormat = (global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Types.LogFormat) input.ReadEnum(); + 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: { + LogFormat = (global::Google.Events.Protobuf.Cloud.Metastore.V1.TelemetryConfig.Types.LogFormat) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the TelemetryConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum LogFormat { + /// + /// The LOG_FORMAT is not set. + /// + [pbr::OriginalName("LOG_FORMAT_UNSPECIFIED")] Unspecified = 0, + /// + /// Logging output uses the legacy `textPayload` format. + /// + [pbr::OriginalName("LEGACY")] Legacy = 1, + /// + /// Logging output uses the `jsonPayload` format. + /// + [pbr::OriginalName("JSON")] Json = 2, + } + + } + #endregion + + } + + /// + /// The metadata management activities of the metastore service. + /// + public sealed partial class MetadataManagementActivity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetadataManagementActivity()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 MetadataManagementActivity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetadataManagementActivity(MetadataManagementActivity other) : this() { + metadataExports_ = other.metadataExports_.Clone(); + restores_ = other.restores_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetadataManagementActivity Clone() { + return new MetadataManagementActivity(this); + } + + /// Field number for the "metadata_exports" field. + public const int MetadataExportsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_metadataExports_codec + = pb::FieldCodec.ForMessage(10, global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Parser); + private readonly pbc::RepeatedField metadataExports_ = new pbc::RepeatedField(); + /// + /// Output only. The latest metadata exports of the metastore service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MetadataExports { + get { return metadataExports_; } + } + + /// Field number for the "restores" field. + public const int RestoresFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_restores_codec + = pb::FieldCodec.ForMessage(18, global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Parser); + private readonly pbc::RepeatedField restores_ = new pbc::RepeatedField(); + /// + /// Output only. The latest restores of the metastore service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Restores { + get { return restores_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MetadataManagementActivity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MetadataManagementActivity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!metadataExports_.Equals(other.metadataExports_)) return false; + if(!restores_.Equals(other.restores_)) 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 ^= metadataExports_.GetHashCode(); + hash ^= restores_.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 + metadataExports_.WriteTo(output, _repeated_metadataExports_codec); + restores_.WriteTo(output, _repeated_restores_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) { + metadataExports_.WriteTo(ref output, _repeated_metadataExports_codec); + restores_.WriteTo(ref output, _repeated_restores_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 += metadataExports_.CalculateSize(_repeated_metadataExports_codec); + size += restores_.CalculateSize(_repeated_restores_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MetadataManagementActivity other) { + if (other == null) { + return; + } + metadataExports_.Add(other.metadataExports_); + restores_.Add(other.restores_); + _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: { + metadataExports_.AddEntriesFrom(input, _repeated_metadataExports_codec); + break; + } + case 18: { + restores_.AddEntriesFrom(input, _repeated_restores_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: { + metadataExports_.AddEntriesFrom(ref input, _repeated_metadataExports_codec); + break; + } + case 18: { + restores_.AddEntriesFrom(ref input, _repeated_restores_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A metastore resource that imports metadata. + /// + public sealed partial class MetadataImport : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetadataImport()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 MetadataImport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetadataImport(MetadataImport other) : this() { + name_ = other.name_; + description_ = other.description_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + state_ = other.state_; + switch (other.MetadataCase) { + case MetadataOneofCase.DatabaseDump: + DatabaseDump = other.DatabaseDump.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetadataImport Clone() { + return new MetadataImport(this); + } + + /// Field number for the "database_dump" field. + public const int DatabaseDumpFieldNumber = 6; + /// + /// Immutable. A database dump from a pre-existing metastore's database. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump DatabaseDump { + get { return metadataCase_ == MetadataOneofCase.DatabaseDump ? (global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump) metadata_ : null; } + set { + metadata_ = value; + metadataCase_ = value == null ? MetadataOneofCase.None : MetadataOneofCase.DatabaseDump; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The relative resource name of the metadata import, of the form: + /// + /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. + /// + [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 "description" field. + public const int DescriptionFieldNumber = 2; + private string description_ = ""; + /// + /// The description of the metadata import. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time when the metadata import was started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time when the metadata import was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The time when the metadata import finished. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.State state_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.State.Unspecified; + /// + /// Output only. The current state of the metadata import. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + private object metadata_; + /// Enum of possible cases for the "metadata" oneof. + public enum MetadataOneofCase { + None = 0, + DatabaseDump = 6, + } + private MetadataOneofCase metadataCase_ = MetadataOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetadataOneofCase MetadataCase { + get { return metadataCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMetadata() { + metadataCase_ = MetadataOneofCase.None; + metadata_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MetadataImport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MetadataImport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DatabaseDump, other.DatabaseDump)) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (State != other.State) return false; + if (MetadataCase != other.MetadataCase) 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 (metadataCase_ == MetadataOneofCase.DatabaseDump) hash ^= DatabaseDump.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.State.Unspecified) hash ^= State.GetHashCode(); + hash ^= (int) metadataCase_; + 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 (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (createTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(UpdateTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.State.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) State); + } + if (metadataCase_ == MetadataOneofCase.DatabaseDump) { + output.WriteRawTag(50); + output.WriteMessage(DatabaseDump); + } + if (endTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(EndTime); + } + 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 (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (createTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(UpdateTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.State.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) State); + } + if (metadataCase_ == MetadataOneofCase.DatabaseDump) { + output.WriteRawTag(50); + output.WriteMessage(DatabaseDump); + } + if (endTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(EndTime); + } + 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 (metadataCase_ == MetadataOneofCase.DatabaseDump) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DatabaseDump); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MetadataImport other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.State != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.State.Unspecified) { + State = other.State; + } + switch (other.MetadataCase) { + case MetadataOneofCase.DatabaseDump: + if (DatabaseDump == null) { + DatabaseDump = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump(); + } + DatabaseDump.MergeFrom(other.DatabaseDump); + break; + } + + _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: { + Description = input.ReadString(); + break; + } + case 26: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 34: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 40: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.State) input.ReadEnum(); + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump subBuilder = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump(); + if (metadataCase_ == MetadataOneofCase.DatabaseDump) { + subBuilder.MergeFrom(DatabaseDump); + } + input.ReadMessage(subBuilder); + DatabaseDump = subBuilder; + break; + } + case 58: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + 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: { + Description = input.ReadString(); + break; + } + case 26: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 34: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 40: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.State) input.ReadEnum(); + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump subBuilder = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump(); + if (metadataCase_ == MetadataOneofCase.DatabaseDump) { + subBuilder.MergeFrom(DatabaseDump); + } + input.ReadMessage(subBuilder); + DatabaseDump = subBuilder; + break; + } + case 58: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MetadataImport message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The current state of the metadata import. + /// + public enum State { + /// + /// The state of the metadata import is unknown. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The metadata import is running. + /// + [pbr::OriginalName("RUNNING")] Running = 1, + /// + /// The metadata import completed successfully. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 2, + /// + /// The metadata import is being updated. + /// + [pbr::OriginalName("UPDATING")] Updating = 3, + /// + /// The metadata import failed, and attempted metadata changes were rolled + /// back. + /// + [pbr::OriginalName("FAILED")] Failed = 4, + } + + /// + /// A specification of the location of and metadata about a database dump from + /// a relational database management system. + /// + public sealed partial class DatabaseDump : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DatabaseDump()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.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 DatabaseDump() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatabaseDump(DatabaseDump other) : this() { + databaseType_ = other.databaseType_; + gcsUri_ = other.gcsUri_; + sourceDatabase_ = other.sourceDatabase_; + type_ = other.type_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatabaseDump Clone() { + return new DatabaseDump(this); + } + + /// Field number for the "database_type" field. + public const int DatabaseTypeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Types.DatabaseType databaseType_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Types.DatabaseType.Unspecified; + /// + /// The type of the database. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Types.DatabaseType DatabaseType { + get { return databaseType_; } + set { + databaseType_ = value; + } + } + + /// Field number for the "gcs_uri" field. + public const int GcsUriFieldNumber = 2; + private string gcsUri_ = ""; + /// + /// A Cloud Storage object or folder URI that specifies the source from which + /// to import metadata. It must begin with `gs://`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GcsUri { + get { return gcsUri_; } + set { + gcsUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_database" field. + public const int SourceDatabaseFieldNumber = 3; + private string sourceDatabase_ = ""; + /// + /// The name of the source database. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceDatabase { + get { return sourceDatabase_; } + set { + sourceDatabase_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type type_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified; + /// + /// Optional. The type of the database dump. If unspecified, defaults to + /// `MYSQL`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type Type { + get { return type_; } + set { + type_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DatabaseDump); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DatabaseDump other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DatabaseType != other.DatabaseType) return false; + if (GcsUri != other.GcsUri) return false; + if (SourceDatabase != other.SourceDatabase) return false; + if (Type != other.Type) 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 (DatabaseType != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Types.DatabaseType.Unspecified) hash ^= DatabaseType.GetHashCode(); + if (GcsUri.Length != 0) hash ^= GcsUri.GetHashCode(); + if (SourceDatabase.Length != 0) hash ^= SourceDatabase.GetHashCode(); + if (Type != global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified) hash ^= Type.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 (DatabaseType != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Types.DatabaseType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) DatabaseType); + } + if (GcsUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GcsUri); + } + if (SourceDatabase.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SourceDatabase); + } + if (Type != global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + 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 (DatabaseType != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Types.DatabaseType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) DatabaseType); + } + if (GcsUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GcsUri); + } + if (SourceDatabase.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SourceDatabase); + } + if (Type != global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + 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 (DatabaseType != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Types.DatabaseType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DatabaseType); + } + if (GcsUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GcsUri); + } + if (SourceDatabase.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceDatabase); + } + if (Type != global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DatabaseDump other) { + if (other == null) { + return; + } + if (other.DatabaseType != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Types.DatabaseType.Unspecified) { + DatabaseType = other.DatabaseType; + } + if (other.GcsUri.Length != 0) { + GcsUri = other.GcsUri; + } + if (other.SourceDatabase.Length != 0) { + SourceDatabase = other.SourceDatabase; + } + if (other.Type != global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified) { + Type = other.Type; + } + _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: { + DatabaseType = (global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Types.DatabaseType) input.ReadEnum(); + break; + } + case 18: { + GcsUri = input.ReadString(); + break; + } + case 26: { + SourceDatabase = input.ReadString(); + break; + } + case 32: { + Type = (global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type) input.ReadEnum(); + 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: { + DatabaseType = (global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport.Types.DatabaseDump.Types.DatabaseType) input.ReadEnum(); + break; + } + case 18: { + GcsUri = input.ReadString(); + break; + } + case 26: { + SourceDatabase = input.ReadString(); + break; + } + case 32: { + Type = (global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the DatabaseDump message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type of the database. + /// + public enum DatabaseType { + /// + /// The type of the source database is unknown. + /// + [pbr::OriginalName("DATABASE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The type of the source database is MySQL. + /// + [pbr::OriginalName("MYSQL")] Mysql = 1, + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// The details of a metadata export operation. + /// + public sealed partial class MetadataExport : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetadataExport()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.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 MetadataExport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetadataExport(MetadataExport other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + state_ = other.state_; + databaseDumpType_ = other.databaseDumpType_; + switch (other.DestinationCase) { + case DestinationOneofCase.DestinationGcsUri: + DestinationGcsUri = other.DestinationGcsUri; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetadataExport Clone() { + return new MetadataExport(this); + } + + /// Field number for the "destination_gcs_uri" field. + public const int DestinationGcsUriFieldNumber = 4; + /// + /// Output only. A Cloud Storage URI of a folder that metadata are exported + /// to, in the form of + /// `gs://<bucket_name>/<path_inside_bucket>/<export_folder>`, where + /// `<export_folder>` is automatically generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DestinationGcsUri { + get { return HasDestinationGcsUri ? (string) destination_ : ""; } + set { + destination_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + destinationCase_ = DestinationOneofCase.DestinationGcsUri; + } + } + /// Gets whether the "destination_gcs_uri" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDestinationGcsUri { + get { return destinationCase_ == DestinationOneofCase.DestinationGcsUri; } + } + /// Clears the value of the oneof if it's currently set to "destination_gcs_uri" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDestinationGcsUri() { + if (HasDestinationGcsUri) { + ClearDestination(); + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Output only. The time when the export started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The time when the export ended. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Types.State state_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Types.State.Unspecified; + /// + /// Output only. The current state of the export. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "database_dump_type" field. + public const int DatabaseDumpTypeFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type databaseDumpType_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified; + /// + /// Output only. The type of the database dump. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type DatabaseDumpType { + get { return databaseDumpType_; } + set { + databaseDumpType_ = value; + } + } + + private object destination_; + /// Enum of possible cases for the "destination" oneof. + public enum DestinationOneofCase { + None = 0, + DestinationGcsUri = 4, + } + private DestinationOneofCase destinationCase_ = DestinationOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DestinationOneofCase DestinationCase { + get { return destinationCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDestination() { + destinationCase_ = DestinationOneofCase.None; + destination_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MetadataExport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MetadataExport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DestinationGcsUri != other.DestinationGcsUri) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (State != other.State) return false; + if (DatabaseDumpType != other.DatabaseDumpType) return false; + if (DestinationCase != other.DestinationCase) 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 (HasDestinationGcsUri) hash ^= DestinationGcsUri.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (DatabaseDumpType != global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified) hash ^= DatabaseDumpType.GetHashCode(); + hash ^= (int) destinationCase_; + 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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Types.State.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (HasDestinationGcsUri) { + output.WriteRawTag(34); + output.WriteString(DestinationGcsUri); + } + if (DatabaseDumpType != global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) DatabaseDumpType); + } + 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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Types.State.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (HasDestinationGcsUri) { + output.WriteRawTag(34); + output.WriteString(DestinationGcsUri); + } + if (DatabaseDumpType != global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) DatabaseDumpType); + } + 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 (HasDestinationGcsUri) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationGcsUri); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (DatabaseDumpType != global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DatabaseDumpType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MetadataExport other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.State != global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Types.State.Unspecified) { + State = other.State; + } + if (other.DatabaseDumpType != global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type.Unspecified) { + DatabaseDumpType = other.DatabaseDumpType; + } + switch (other.DestinationCase) { + case DestinationOneofCase.DestinationGcsUri: + DestinationGcsUri = other.DestinationGcsUri; + break; + } + + _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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 24: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Types.State) input.ReadEnum(); + break; + } + case 34: { + DestinationGcsUri = input.ReadString(); + break; + } + case 40: { + DatabaseDumpType = (global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type) input.ReadEnum(); + 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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 24: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataExport.Types.State) input.ReadEnum(); + break; + } + case 34: { + DestinationGcsUri = input.ReadString(); + break; + } + case 40: { + DatabaseDumpType = (global::Google.Events.Protobuf.Cloud.Metastore.V1.DatabaseDumpSpec.Types.Type) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MetadataExport message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The current state of the metadata export. + /// + public enum State { + /// + /// The state of the metadata export is unknown. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The metadata export is running. + /// + [pbr::OriginalName("RUNNING")] Running = 1, + /// + /// The metadata export completed successfully. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 2, + /// + /// The metadata export failed. + /// + [pbr::OriginalName("FAILED")] Failed = 3, + /// + /// The metadata export is cancelled. + /// + [pbr::OriginalName("CANCELLED")] Cancelled = 4, + } + + } + #endregion + + } + + /// + /// The details of a backup resource. + /// + public sealed partial class Backup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Backup()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.Descriptor.MessageTypes[14]; } + } + + [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 Backup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Backup(Backup other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + state_ = other.state_; + serviceRevision_ = other.serviceRevision_ != null ? other.serviceRevision_.Clone() : null; + description_ = other.description_; + restoringServices_ = other.restoringServices_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Backup Clone() { + return new Backup(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The relative resource name of the backup, in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + /// + [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 "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time when the backup was started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The time when the backup finished creating. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Types.State state_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Types.State.Unspecified; + /// + /// Output only. The current state of the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "service_revision" field. + public const int ServiceRevisionFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Service serviceRevision_; + /// + /// Output only. The revision of the service at the time of backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Service ServiceRevision { + get { return serviceRevision_; } + set { + serviceRevision_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 6; + private string description_ = ""; + /// + /// The description of the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "restoring_services" field. + public const int RestoringServicesFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_restoringServices_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField restoringServices_ = new pbc::RepeatedField(); + /// + /// Output only. Services that are restoring from the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RestoringServices { + get { return restoringServices_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Backup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Backup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (State != other.State) return false; + if (!object.Equals(ServiceRevision, other.ServiceRevision)) return false; + if (Description != other.Description) return false; + if(!restoringServices_.Equals(other.restoringServices_)) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (serviceRevision_ != null) hash ^= ServiceRevision.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + hash ^= restoringServices_.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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (serviceRevision_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ServiceRevision); + } + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); + } + restoringServices_.WriteTo(output, _repeated_restoringServices_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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (serviceRevision_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ServiceRevision); + } + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); + } + restoringServices_.WriteTo(ref output, _repeated_restoringServices_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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (serviceRevision_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServiceRevision); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + size += restoringServices_.CalculateSize(_repeated_restoringServices_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Backup other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Types.State.Unspecified) { + State = other.State; + } + if (other.serviceRevision_ != null) { + if (serviceRevision_ == null) { + ServiceRevision = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Service(); + } + ServiceRevision.MergeFrom(other.ServiceRevision); + } + if (other.Description.Length != 0) { + Description = other.Description; + } + restoringServices_.Add(other.restoringServices_); + _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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 32: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Types.State) input.ReadEnum(); + break; + } + case 42: { + if (serviceRevision_ == null) { + ServiceRevision = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Service(); + } + input.ReadMessage(ServiceRevision); + break; + } + case 50: { + Description = input.ReadString(); + break; + } + case 58: { + restoringServices_.AddEntriesFrom(input, _repeated_restoringServices_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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 32: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup.Types.State) input.ReadEnum(); + break; + } + case 42: { + if (serviceRevision_ == null) { + ServiceRevision = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Service(); + } + input.ReadMessage(ServiceRevision); + break; + } + case 50: { + Description = input.ReadString(); + break; + } + case 58: { + restoringServices_.AddEntriesFrom(ref input, _repeated_restoringServices_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Backup message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The current state of the backup. + /// + public enum State { + /// + /// The state of the backup is unknown. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The backup is being created. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// The backup is being deleted. + /// + [pbr::OriginalName("DELETING")] Deleting = 2, + /// + /// The backup is active and ready to use. + /// + [pbr::OriginalName("ACTIVE")] Active = 3, + /// + /// The backup failed. + /// + [pbr::OriginalName("FAILED")] Failed = 4, + /// + /// The backup is being restored. + /// + [pbr::OriginalName("RESTORING")] Restoring = 5, + } + + } + #endregion + + } + + /// + /// The details of a metadata restore operation. + /// + public sealed partial class Restore : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Restore()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.Descriptor.MessageTypes[15]; } + } + + [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 Restore() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Restore(Restore other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + state_ = other.state_; + backup_ = other.backup_; + type_ = other.type_; + details_ = other.details_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Restore Clone() { + return new Restore(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Output only. The time when the restore started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The time when the restore ended. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.State state_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.State.Unspecified; + /// + /// Output only. The current state of the restore. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "backup" field. + public const int BackupFieldNumber = 4; + private string backup_ = ""; + /// + /// Output only. The relative resource name of the metastore service backup to + /// restore from, in the following form: + /// + /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Backup { + get { return backup_; } + set { + backup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.RestoreType type_ = global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.RestoreType.Unspecified; + /// + /// Output only. The type of restore. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.RestoreType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "details" field. + public const int DetailsFieldNumber = 6; + private string details_ = ""; + /// + /// Output only. The restore details containing the revision of the service to + /// be restored to, in format of JSON. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Details { + get { return details_; } + set { + details_ = 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 Restore); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Restore other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (State != other.State) return false; + if (Backup != other.Backup) return false; + if (Type != other.Type) return false; + if (Details != other.Details) 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 (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (Backup.Length != 0) hash ^= Backup.GetHashCode(); + if (Type != global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.RestoreType.Unspecified) hash ^= Type.GetHashCode(); + if (Details.Length != 0) hash ^= Details.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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.State.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (Backup.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Backup); + } + if (Type != global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.RestoreType.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) Type); + } + if (Details.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Details); + } + 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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.State.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (Backup.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Backup); + } + if (Type != global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.RestoreType.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) Type); + } + if (Details.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Details); + } + 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 (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (Backup.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Backup); + } + if (Type != global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.RestoreType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (Details.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Details); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Restore other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.State != global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.State.Unspecified) { + State = other.State; + } + if (other.Backup.Length != 0) { + Backup = other.Backup; + } + if (other.Type != global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.RestoreType.Unspecified) { + Type = other.Type; + } + if (other.Details.Length != 0) { + Details = other.Details; + } + _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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 24: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.State) input.ReadEnum(); + break; + } + case 34: { + Backup = input.ReadString(); + break; + } + case 40: { + Type = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.RestoreType) input.ReadEnum(); + break; + } + case 50: { + Details = 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: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 24: { + State = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.State) input.ReadEnum(); + break; + } + case 34: { + Backup = input.ReadString(); + break; + } + case 40: { + Type = (global::Google.Events.Protobuf.Cloud.Metastore.V1.Restore.Types.RestoreType) input.ReadEnum(); + break; + } + case 50: { + Details = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Restore message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The current state of the restore. + /// + public enum State { + /// + /// The state of the metadata restore is unknown. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The metadata restore is running. + /// + [pbr::OriginalName("RUNNING")] Running = 1, + /// + /// The metadata restore completed successfully. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 2, + /// + /// The metadata restore failed. + /// + [pbr::OriginalName("FAILED")] Failed = 3, + /// + /// The metadata restore is cancelled. + /// + [pbr::OriginalName("CANCELLED")] Cancelled = 4, + } + + /// + /// The type of restore. If unspecified, defaults to `METADATA_ONLY`. + /// + public enum RestoreType { + /// + /// The restore type is unknown. + /// + [pbr::OriginalName("RESTORE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The service's metadata and configuration are restored. + /// + [pbr::OriginalName("FULL")] Full = 1, + /// + /// Only the service's metadata is restored. + /// + [pbr::OriginalName("METADATA_ONLY")] MetadataOnly = 2, + } + + } + #endregion + + } + + /// + /// Represents the scaling configuration of a metastore service. + /// + public sealed partial class ScalingConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScalingConfig()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.Descriptor.MessageTypes[16]; } + } + + [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 ScalingConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScalingConfig(ScalingConfig other) : this() { + switch (other.ScalingModelCase) { + case ScalingModelOneofCase.InstanceSize: + InstanceSize = other.InstanceSize; + break; + case ScalingModelOneofCase.ScalingFactor: + ScalingFactor = other.ScalingFactor; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScalingConfig Clone() { + return new ScalingConfig(this); + } + + /// Field number for the "instance_size" field. + public const int InstanceSizeFieldNumber = 1; + /// + /// An enum of readable instance sizes, with each instance size mapping to a + /// float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.ScalingConfig.Types.InstanceSize InstanceSize { + get { return HasInstanceSize ? (global::Google.Events.Protobuf.Cloud.Metastore.V1.ScalingConfig.Types.InstanceSize) scalingModel_ : global::Google.Events.Protobuf.Cloud.Metastore.V1.ScalingConfig.Types.InstanceSize.Unspecified; } + set { + scalingModel_ = value; + scalingModelCase_ = ScalingModelOneofCase.InstanceSize; + } + } + /// Gets whether the "instance_size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInstanceSize { + get { return scalingModelCase_ == ScalingModelOneofCase.InstanceSize; } + } + /// Clears the value of the oneof if it's currently set to "instance_size" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInstanceSize() { + if (HasInstanceSize) { + ClearScalingModel(); + } + } + + /// Field number for the "scaling_factor" field. + public const int ScalingFactorFieldNumber = 2; + /// + /// Scaling factor, increments of 0.1 for values less than 1.0, and + /// increments of 1.0 for values greater than 1.0. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float ScalingFactor { + get { return HasScalingFactor ? (float) scalingModel_ : 0F; } + set { + scalingModel_ = value; + scalingModelCase_ = ScalingModelOneofCase.ScalingFactor; + } + } + /// Gets whether the "scaling_factor" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasScalingFactor { + get { return scalingModelCase_ == ScalingModelOneofCase.ScalingFactor; } + } + /// Clears the value of the oneof if it's currently set to "scaling_factor" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearScalingFactor() { + if (HasScalingFactor) { + ClearScalingModel(); + } + } + + private object scalingModel_; + /// Enum of possible cases for the "scaling_model" oneof. + public enum ScalingModelOneofCase { + None = 0, + InstanceSize = 1, + ScalingFactor = 2, + } + private ScalingModelOneofCase scalingModelCase_ = ScalingModelOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScalingModelOneofCase ScalingModelCase { + get { return scalingModelCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearScalingModel() { + scalingModelCase_ = ScalingModelOneofCase.None; + scalingModel_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScalingConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScalingConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (InstanceSize != other.InstanceSize) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ScalingFactor, other.ScalingFactor)) return false; + if (ScalingModelCase != other.ScalingModelCase) 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 (HasInstanceSize) hash ^= InstanceSize.GetHashCode(); + if (HasScalingFactor) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ScalingFactor); + hash ^= (int) scalingModelCase_; + 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 (HasInstanceSize) { + output.WriteRawTag(8); + output.WriteEnum((int) InstanceSize); + } + if (HasScalingFactor) { + output.WriteRawTag(21); + output.WriteFloat(ScalingFactor); + } + 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 (HasInstanceSize) { + output.WriteRawTag(8); + output.WriteEnum((int) InstanceSize); + } + if (HasScalingFactor) { + output.WriteRawTag(21); + output.WriteFloat(ScalingFactor); + } + 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 (HasInstanceSize) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InstanceSize); + } + if (HasScalingFactor) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScalingConfig other) { + if (other == null) { + return; + } + switch (other.ScalingModelCase) { + case ScalingModelOneofCase.InstanceSize: + InstanceSize = other.InstanceSize; + break; + case ScalingModelOneofCase.ScalingFactor: + ScalingFactor = other.ScalingFactor; + break; + } + + _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: { + scalingModel_ = input.ReadEnum(); + scalingModelCase_ = ScalingModelOneofCase.InstanceSize; + break; + } + case 21: { + ScalingFactor = input.ReadFloat(); + 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: { + scalingModel_ = input.ReadEnum(); + scalingModelCase_ = ScalingModelOneofCase.InstanceSize; + break; + } + case 21: { + ScalingFactor = input.ReadFloat(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ScalingConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Metastore instance sizes. + /// + public enum InstanceSize { + /// + /// Unspecified instance size + /// + [pbr::OriginalName("INSTANCE_SIZE_UNSPECIFIED")] Unspecified = 0, + /// + /// Extra small instance size, maps to a scaling factor of 0.1. + /// + [pbr::OriginalName("EXTRA_SMALL")] ExtraSmall = 1, + /// + /// Small instance size, maps to a scaling factor of 0.5. + /// + [pbr::OriginalName("SMALL")] Small = 2, + /// + /// Medium instance size, maps to a scaling factor of 1.0. + /// + [pbr::OriginalName("MEDIUM")] Medium = 3, + /// + /// Large instance size, maps to a scaling factor of 3.0. + /// + [pbr::OriginalName("LARGE")] Large = 4, + /// + /// Extra large instance size, maps to a scaling factor of 6.0. + /// + [pbr::OriginalName("EXTRA_LARGE")] ExtraLarge = 5, + } + + } + #endregion + + } + + /// + /// The specification of database dump to import from or export to. + /// + public sealed partial class DatabaseDumpSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DatabaseDumpSpec()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.Descriptor.MessageTypes[17]; } + } + + [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 DatabaseDumpSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatabaseDumpSpec(DatabaseDumpSpec other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatabaseDumpSpec Clone() { + return new DatabaseDumpSpec(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DatabaseDumpSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DatabaseDumpSpec 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(DatabaseDumpSpec 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 + + #region Nested types + /// Container for nested types declared in the DatabaseDumpSpec message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type of the database dump. + /// + public enum Type { + /// + /// The type of the database dump is unknown. + /// + [pbr::OriginalName("TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Database dump is a MySQL dump file. + /// + [pbr::OriginalName("MYSQL")] Mysql = 1, + /// + /// Database dump contains Avro files. + /// + [pbr::OriginalName("AVRO")] Avro = 2, + } + + } + #endregion + + } + + /// + /// The data within all MetadataImport events. + /// + public sealed partial class MetadataImportEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetadataImportEventData()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.Descriptor.MessageTypes[18]; } + } + + [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 MetadataImportEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetadataImportEventData(MetadataImportEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetadataImportEventData Clone() { + return new MetadataImportEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport payload_; + /// + /// The MetadataImport event payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MetadataImportEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MetadataImportEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MetadataImportEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.MetadataImport(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Federation events. + /// + public sealed partial class FederationEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FederationEventData()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.Descriptor.MessageTypes[19]; } + } + + [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 FederationEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FederationEventData(FederationEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FederationEventData Clone() { + return new FederationEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation payload_; + /// + /// Optional. The Federation event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FederationEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FederationEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FederationEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Federation(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Backup events. + /// + public sealed partial class BackupEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BackupEventData()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.Descriptor.MessageTypes[20]; } + } + + [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 BackupEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackupEventData(BackupEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackupEventData Clone() { + return new BackupEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup payload_; + /// + /// Optional. The Backup event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BackupEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BackupEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BackupEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Backup(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Service events. + /// + public sealed partial class ServiceEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceEventData()); + 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::Google.Events.Protobuf.Cloud.Metastore.V1.DataReflection.Descriptor.MessageTypes[21]; } + } + + [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 ServiceEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceEventData(ServiceEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceEventData Clone() { + return new ServiceEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Metastore.V1.Service payload_; + /// + /// Optional. The Service event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Metastore.V1.Service Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServiceEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Service(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Service(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Metastore.V1.Service(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Google.Events.Protobuf/Cloud/Metastore/V1/ExtensionAttributes.g.cs b/src/Google.Events.Protobuf/Cloud/Metastore/V1/ExtensionAttributes.g.cs new file mode 100644 index 0000000..8477ac1 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Metastore/V1/ExtensionAttributes.g.cs @@ -0,0 +1,77 @@ +// Copyright 2023, 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 +// +// https://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. + +using CloudNative.CloudEvents; + +namespace Google.Events.Protobuf.Cloud.Metastore.V1 +{ + /// Extension attributes for Google.Events.Protobuf.Cloud.Metastore.V1 events. + public static class ExtensionAttributes + { + /// + /// The resource ID of the Backup triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.metastore.backup.v1.created + /// google.cloud.metastore.backup.v1.deleted + /// + /// + public static CloudEventAttribute Backup { get; } = CloudEventAttribute.CreateExtension("backup", CloudEventAttributeType.String); + + /// + /// The resource ID of the Federation triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.metastore.federation.v1.created + /// google.cloud.metastore.federation.v1.updated + /// google.cloud.metastore.federation.v1.deleted + /// + /// + public static CloudEventAttribute Federation { get; } = CloudEventAttribute.CreateExtension("federation", CloudEventAttributeType.String); + + /// + /// The resource ID of the MetadataImport triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.metastore.metadataImport.v1.created + /// google.cloud.metastore.metadataImport.v1.updated + /// + /// + public static CloudEventAttribute MetadataImport { get; } = CloudEventAttribute.CreateExtension("metadataimport", CloudEventAttributeType.String); + + /// + /// The resource ID of the Service triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.metastore.service.v1.created + /// google.cloud.metastore.service.v1.updated + /// google.cloud.metastore.service.v1.deleted + /// google.cloud.metastore.metadataImport.v1.created + /// google.cloud.metastore.metadataImport.v1.updated + /// google.cloud.metastore.backup.v1.created + /// google.cloud.metastore.backup.v1.deleted + /// + /// + public static CloudEventAttribute Service { get; } = CloudEventAttribute.CreateExtension("service", CloudEventAttributeType.String); + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Metastore/V1/FederationEventData.g.cs b/src/Google.Events.Protobuf/Cloud/Metastore/V1/FederationEventData.g.cs new file mode 100644 index 0000000..831f1af --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Metastore/V1/FederationEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.Metastore.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class FederationEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.metastore.federation.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.metastore.federation.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.metastore.federation.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Metastore/V1/MetadataImportEventData.g.cs b/src/Google.Events.Protobuf/Cloud/Metastore/V1/MetadataImportEventData.g.cs new file mode 100644 index 0000000..c534e0c --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Metastore/V1/MetadataImportEventData.g.cs @@ -0,0 +1,27 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.Metastore.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class MetadataImportEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.metastore.metadataImport.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.metastore.metadataImport.v1.updated"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Metastore/V1/ServiceEventData.g.cs b/src/Google.Events.Protobuf/Cloud/Metastore/V1/ServiceEventData.g.cs new file mode 100644 index 0000000..d8dd2e1 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Metastore/V1/ServiceEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.Metastore.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class ServiceEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.metastore.service.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.metastore.service.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.metastore.service.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/Data.g.cs b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/Data.g.cs new file mode 100644 index 0000000..2f95f48 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/Data.g.cs @@ -0,0 +1,7850 @@ +// Copyright 2023, 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 +// +// https://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. + +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/networkconnectivity/v1/data.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 Google.Events.Protobuf.Cloud.NetworkConnectivity.V1 { + + /// Holder for reflection information generated from google/events/cloud/networkconnectivity/v1/data.proto + public static partial class DataReflection { + + #region Descriptor + /// File descriptor for google/events/cloud/networkconnectivity/v1/data.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjVnb29nbGUvZXZlbnRzL2Nsb3VkL25ldHdvcmtjb25uZWN0aXZpdHkvdjEv", + "ZGF0YS5wcm90bxIqZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrY29ubmVj", + "dGl2aXR5LnYxGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGhdn", + "b29nbGUvcnBjL3N0YXR1cy5wcm90byK3DAoUU2VydmljZUNvbm5lY3Rpb25N", + "YXASDAoEbmFtZRgBIAEoCRIvCgtjcmVhdGVfdGltZRgCIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLdXBkYXRlX3RpbWUYAyABKAsyGi5n", + "b29nbGUucHJvdG9idWYuVGltZXN0YW1wElwKBmxhYmVscxgEIAMoCzJMLmdv", + "b2dsZS5ldmVudHMuY2xvdWQubmV0d29ya2Nvbm5lY3Rpdml0eS52MS5TZXJ2", + "aWNlQ29ubmVjdGlvbk1hcC5MYWJlbHNFbnRyeRITCgtkZXNjcmlwdGlvbhgF", + "IAEoCRIVCg1zZXJ2aWNlX2NsYXNzGAcgASgJEhkKEXNlcnZpY2VfY2xhc3Nf", + "dXJpGAwgASgJElIKDmluZnJhc3RydWN0dXJlGAggASgOMjouZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC5uZXR3b3JrY29ubmVjdGl2aXR5LnYxLkluZnJhc3RydWN0", + "dXJlEnAKFHByb2R1Y2VyX3BzY19jb25maWdzGAkgAygLMlIuZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC5uZXR3b3JrY29ubmVjdGl2aXR5LnYxLlNlcnZpY2VDb25u", + "ZWN0aW9uTWFwLlByb2R1Y2VyUHNjQ29uZmlnEnAKFGNvbnN1bWVyX3BzY19j", + "b25maWdzGAogAygLMlIuZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrY29u", + "bmVjdGl2aXR5LnYxLlNlcnZpY2VDb25uZWN0aW9uTWFwLkNvbnN1bWVyUHNj", + "Q29uZmlnEngKGGNvbnN1bWVyX3BzY19jb25uZWN0aW9ucxgLIAMoCzJWLmdv", + "b2dsZS5ldmVudHMuY2xvdWQubmV0d29ya2Nvbm5lY3Rpdml0eS52MS5TZXJ2", + "aWNlQ29ubmVjdGlvbk1hcC5Db25zdW1lclBzY0Nvbm5lY3Rpb24aMwoRUHJv", + "ZHVjZXJQc2NDb25maWcSHgoWc2VydmljZV9hdHRhY2htZW50X3VyaRgBIAEo", + "CRqHAgoRQ29uc3VtZXJQc2NDb25maWcSDwoHcHJvamVjdBgBIAEoCRIPCgdu", + "ZXR3b3JrGAIgASgJEh0KFWRpc2FibGVfZ2xvYmFsX2FjY2VzcxgDIAEoCBJn", + "CgVzdGF0ZRgEIAEoDjJYLmdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29ya2Nv", + "bm5lY3Rpdml0eS52MS5TZXJ2aWNlQ29ubmVjdGlvbk1hcC5Db25zdW1lclBz", + "Y0NvbmZpZy5TdGF0ZSJICgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAA", + "EgkKBVZBTElEEAESHQoZQ09OTkVDVElPTl9QT0xJQ1lfTUlTU0lORxACGukD", + "ChVDb25zdW1lclBzY0Nvbm5lY3Rpb24SHgoWc2VydmljZV9hdHRhY2htZW50", + "X3VyaRgBIAEoCRJrCgVzdGF0ZRgCIAEoDjJcLmdvb2dsZS5ldmVudHMuY2xv", + "dWQubmV0d29ya2Nvbm5lY3Rpdml0eS52MS5TZXJ2aWNlQ29ubmVjdGlvbk1h", + "cC5Db25zdW1lclBzY0Nvbm5lY3Rpb24uU3RhdGUSDwoHcHJvamVjdBgDIAEo", + "CRIPCgduZXR3b3JrGAQgASgJEhkKEXBzY19jb25uZWN0aW9uX2lkGAUgASgJ", + "EgoKAmlwGAYgASgJElMKCmVycm9yX3R5cGUYByABKA4yPy5nb29nbGUuZXZl", + "bnRzLmNsb3VkLm5ldHdvcmtjb25uZWN0aXZpdHkudjEuQ29ubmVjdGlvbkVy", + "cm9yVHlwZRIhCgVlcnJvchgIIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzEhUK", + "DWdjZV9vcGVyYXRpb24YCSABKAkSFwoPZm9yd2FyZGluZ19ydWxlGAogASgJ", + "IlIKBVN0YXRlEhUKEVNUQVRFX1VOU1BFQ0lGSUVEEAASCgoGQUNUSVZFEAES", + "CgoGRkFJTEVEEAISDAoIQ1JFQVRJTkcQAxIMCghERUxFVElORxAEGi0KC0xh", + "YmVsc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEigAkK", + "F1NlcnZpY2VDb25uZWN0aW9uUG9saWN5EgwKBG5hbWUYASABKAkSLwoLY3Jl", + "YXRlX3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8K", + "C3VwZGF0ZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", + "cBJfCgZsYWJlbHMYBCADKAsyTy5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdv", + "cmtjb25uZWN0aXZpdHkudjEuU2VydmljZUNvbm5lY3Rpb25Qb2xpY3kuTGFi", + "ZWxzRW50cnkSEwoLZGVzY3JpcHRpb24YBSABKAkSDwoHbmV0d29yaxgGIAEo", + "CRIVCg1zZXJ2aWNlX2NsYXNzGAcgASgJElIKDmluZnJhc3RydWN0dXJlGAgg", + "ASgOMjouZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrY29ubmVjdGl2aXR5", + "LnYxLkluZnJhc3RydWN0dXJlEmEKCnBzY19jb25maWcYCSABKAsyTS5nb29n", + "bGUuZXZlbnRzLmNsb3VkLm5ldHdvcmtjb25uZWN0aXZpdHkudjEuU2Vydmlj", + "ZUNvbm5lY3Rpb25Qb2xpY3kuUHNjQ29uZmlnEmoKD3BzY19jb25uZWN0aW9u", + "cxgKIAMoCzJRLmdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29ya2Nvbm5lY3Rp", + "dml0eS52MS5TZXJ2aWNlQ29ubmVjdGlvblBvbGljeS5Qc2NDb25uZWN0aW9u", + "Gj4KCVBzY0NvbmZpZxITCgtzdWJuZXR3b3JrcxgBIAMoCRISCgVsaW1pdBgC", + "IAEoA0gAiAEBQggKBl9saW1pdBrwAgoNUHNjQ29ubmVjdGlvbhJYCgVzdGF0", + "ZRgBIAEoDjJJLmdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29ya2Nvbm5lY3Rp", + "dml0eS52MS5TZXJ2aWNlQ29ubmVjdGlvblBvbGljeS5TdGF0ZRIgChhjb25z", + "dW1lcl9mb3J3YXJkaW5nX3J1bGUYAiABKAkSGAoQY29uc3VtZXJfYWRkcmVz", + "cxgDIAEoCRJTCgplcnJvcl90eXBlGAQgASgOMj8uZ29vZ2xlLmV2ZW50cy5j", + "bG91ZC5uZXR3b3JrY29ubmVjdGl2aXR5LnYxLkNvbm5lY3Rpb25FcnJvclR5", + "cGUSIQoFZXJyb3IYBSABKAsyEi5nb29nbGUucnBjLlN0YXR1cxIVCg1nY2Vf", + "b3BlcmF0aW9uGAYgASgJEh8KF2NvbnN1bWVyX3RhcmdldF9wcm9qZWN0GAcg", + "ASgJEhkKEXBzY19jb25uZWN0aW9uX2lkGAggASgJGi0KC0xhYmVsc0VudHJ5", + "EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiUgoFU3RhdGUSFQoR", + "U1RBVEVfVU5TUEVDSUZJRUQQABIKCgZBQ1RJVkUQARIKCgZGQUlMRUQQAhIM", + "CghDUkVBVElORxADEgwKCERFTEVUSU5HEAQi0AIKDFNlcnZpY2VDbGFzcxIM", + "CgRuYW1lGAEgASgJEhUKDXNlcnZpY2VfY2xhc3MYByABKAkSLwoLY3JlYXRl", + "X3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC3Vw", + "ZGF0ZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBJU", + "CgZsYWJlbHMYBCADKAsyRC5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmtj", + "b25uZWN0aXZpdHkudjEuU2VydmljZUNsYXNzLkxhYmVsc0VudHJ5EhMKC2Rl", + "c2NyaXB0aW9uGAUgASgJEh8KF3NlcnZpY2VfY29ubmVjdGlvbl9tYXBzGAYg", + "AygJGi0KC0xhYmVsc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEo", + "CToCOAEivQIKFlNlcnZpY2VDb25uZWN0aW9uVG9rZW4SDAoEbmFtZRgBIAEo", + "CRIvCgtjcmVhdGVfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXASLwoLdXBkYXRlX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wEl4KBmxhYmVscxgEIAMoCzJOLmdvb2dsZS5ldmVudHMuY2xv", + "dWQubmV0d29ya2Nvbm5lY3Rpdml0eS52MS5TZXJ2aWNlQ29ubmVjdGlvblRv", + "a2VuLkxhYmVsc0VudHJ5EhMKC2Rlc2NyaXB0aW9uGAUgASgJEg8KB25ldHdv", + "cmsYBiABKAkaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVl", + "GAIgASgJOgI4ASKpAwoDSHViEgwKBG5hbWUYASABKAkSLwoLY3JlYXRlX3Rp", + "bWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC3VwZGF0", + "ZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBJLCgZs", + "YWJlbHMYBCADKAsyOy5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmtjb25u", + "ZWN0aXZpdHkudjEuSHViLkxhYmVsc0VudHJ5EhMKC2Rlc2NyaXB0aW9uGAUg", + "ASgJEhEKCXVuaXF1ZV9pZBgIIAEoCRJACgVzdGF0ZRgJIAEoDjIxLmdvb2ds", + "ZS5ldmVudHMuY2xvdWQubmV0d29ya2Nvbm5lY3Rpdml0eS52MS5TdGF0ZRJM", + "Cgxyb3V0aW5nX3ZwY3MYCiADKAsyNi5nb29nbGUuZXZlbnRzLmNsb3VkLm5l", + "dHdvcmtjb25uZWN0aXZpdHkudjEuUm91dGluZ1ZQQxotCgtMYWJlbHNFbnRy", + "eRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIlUKClJvdXRpbmdW", + "UEMSCwoDdXJpGAEgASgJEjoKMnJlcXVpcmVkX2Zvcl9uZXdfc2l0ZV90b19z", + "aXRlX2RhdGFfdHJhbnNmZXJfc3Bva2VzGAIgASgIIrEFCgVTcG9rZRIMCgRu", + "YW1lGAEgASgJEi8KC2NyZWF0ZV90aW1lGAIgASgLMhouZ29vZ2xlLnByb3Rv", + "YnVmLlRpbWVzdGFtcBIvCgt1cGRhdGVfdGltZRgDIAEoCzIaLmdvb2dsZS5w", + "cm90b2J1Zi5UaW1lc3RhbXASTQoGbGFiZWxzGAQgAygLMj0uZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC5uZXR3b3JrY29ubmVjdGl2aXR5LnYxLlNwb2tlLkxhYmVs", + "c0VudHJ5EhMKC2Rlc2NyaXB0aW9uGAUgASgJEgsKA2h1YhgGIAEoCRJYChJs", + "aW5rZWRfdnBuX3R1bm5lbHMYESABKAsyPC5nb29nbGUuZXZlbnRzLmNsb3Vk", + "Lm5ldHdvcmtjb25uZWN0aXZpdHkudjEuTGlua2VkVnBuVHVubmVscxJyCh9s", + "aW5rZWRfaW50ZXJjb25uZWN0X2F0dGFjaG1lbnRzGBIgASgLMkkuZ29vZ2xl", + "LmV2ZW50cy5jbG91ZC5uZXR3b3JrY29ubmVjdGl2aXR5LnYxLkxpbmtlZElu", + "dGVyY29ubmVjdEF0dGFjaG1lbnRzEnUKIWxpbmtlZF9yb3V0ZXJfYXBwbGlh", + "bmNlX2luc3RhbmNlcxgTIAEoCzJKLmdvb2dsZS5ldmVudHMuY2xvdWQubmV0", + "d29ya2Nvbm5lY3Rpdml0eS52MS5MaW5rZWRSb3V0ZXJBcHBsaWFuY2VJbnN0", + "YW5jZXMSEQoJdW5pcXVlX2lkGAsgASgJEkAKBXN0YXRlGA8gASgOMjEuZ29v", + "Z2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrY29ubmVjdGl2aXR5LnYxLlN0YXRl", + "Gi0KC0xhYmVsc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToC", + "OAEiWQoQTGlua2VkVnBuVHVubmVscxIMCgR1cmlzGAEgAygJEiIKGnNpdGVf", + "dG9fc2l0ZV9kYXRhX3RyYW5zZmVyGAIgASgIEhMKC3ZwY19uZXR3b3JrGAMg", + "ASgJImYKHUxpbmtlZEludGVyY29ubmVjdEF0dGFjaG1lbnRzEgwKBHVyaXMY", + "ASADKAkSIgoac2l0ZV90b19zaXRlX2RhdGFfdHJhbnNmZXIYAiABKAgSEwoL", + "dnBjX25ldHdvcmsYAyABKAkisQEKHkxpbmtlZFJvdXRlckFwcGxpYW5jZUlu", + "c3RhbmNlcxJWCglpbnN0YW5jZXMYASADKAsyQy5nb29nbGUuZXZlbnRzLmNs", + "b3VkLm5ldHdvcmtjb25uZWN0aXZpdHkudjEuUm91dGVyQXBwbGlhbmNlSW5z", + "dGFuY2USIgoac2l0ZV90b19zaXRlX2RhdGFfdHJhbnNmZXIYAiABKAgSEwoL", + "dnBjX25ldHdvcmsYAyABKAkiRgoXUm91dGVyQXBwbGlhbmNlSW5zdGFuY2US", + "FwoPdmlydHVhbF9tYWNoaW5lGAEgASgJEhIKCmlwX2FkZHJlc3MYAyABKAki", + "cwoVU2VydmljZUNsYXNzRXZlbnREYXRhEk4KB3BheWxvYWQYASABKAsyOC5n", + "b29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmtjb25uZWN0aXZpdHkudjEuU2Vy", + "dmljZUNsYXNzSACIAQFCCgoIX3BheWxvYWQihwEKH1NlcnZpY2VDb25uZWN0", + "aW9uVG9rZW5FdmVudERhdGESWAoHcGF5bG9hZBgBIAEoCzJCLmdvb2dsZS5l", + "dmVudHMuY2xvdWQubmV0d29ya2Nvbm5lY3Rpdml0eS52MS5TZXJ2aWNlQ29u", + "bmVjdGlvblRva2VuSACIAQFCCgoIX3BheWxvYWQigwEKHVNlcnZpY2VDb25u", + "ZWN0aW9uTWFwRXZlbnREYXRhElYKB3BheWxvYWQYASABKAsyQC5nb29nbGUu", + "ZXZlbnRzLmNsb3VkLm5ldHdvcmtjb25uZWN0aXZpdHkudjEuU2VydmljZUNv", + "bm5lY3Rpb25NYXBIAIgBAUIKCghfcGF5bG9hZCJhCgxIdWJFdmVudERhdGES", + "RQoHcGF5bG9hZBgBIAEoCzIvLmdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29y", + "a2Nvbm5lY3Rpdml0eS52MS5IdWJIAIgBAUIKCghfcGF5bG9hZCJlCg5TcG9r", + "ZUV2ZW50RGF0YRJHCgdwYXlsb2FkGAEgASgLMjEuZ29vZ2xlLmV2ZW50cy5j", + "bG91ZC5uZXR3b3JrY29ubmVjdGl2aXR5LnYxLlNwb2tlSACIAQFCCgoIX3Bh", + "eWxvYWQiiQEKIFNlcnZpY2VDb25uZWN0aW9uUG9saWN5RXZlbnREYXRhElkK", + "B3BheWxvYWQYASABKAsyQy5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmtj", + "b25uZWN0aXZpdHkudjEuU2VydmljZUNvbm5lY3Rpb25Qb2xpY3lIAIgBAUIK", + "CghfcGF5bG9hZCo5Cg5JbmZyYXN0cnVjdHVyZRIeChpJTkZSQVNUUlVDVFVS", + "RV9VTlNQRUNJRklFRBAAEgcKA1BTQxABKoIBChNDb25uZWN0aW9uRXJyb3JU", + "eXBlEiUKIUNPTk5FQ1RJT05fRVJST1JfVFlQRV9VTlNQRUNJRklFRBAAEhIK", + "DkVSUk9SX0lOVEVSTkFMEAESFwoTRVJST1JfQ09OU1VNRVJfU0lERRACEhcK", + "E0VSUk9SX1BST0RVQ0VSX1NJREUQAypUCgVTdGF0ZRIVChFTVEFURV9VTlNQ", + "RUNJRklFRBAAEgwKCENSRUFUSU5HEAESCgoGQUNUSVZFEAISDAoIREVMRVRJ", + "TkcQAxIMCghVUERBVElORxAGQpQBqgIzR29vZ2xlLkV2ZW50cy5Qcm90b2J1", + "Zi5DbG91ZC5OZXR3b3JrQ29ubmVjdGl2aXR5LlYxygIqR29vZ2xlXEV2ZW50", + "c1xDbG91ZFxOZXR3b3JrQ29ubmVjdGl2aXR5XFYx6gIuR29vZ2xlOjpFdmVu", + "dHM6OkNsb3VkOjpOZXR3b3JrQ29ubmVjdGl2aXR5OjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure), typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType), typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "Labels", "Description", "ServiceClass", "ServiceClassUri", "Infrastructure", "ProducerPscConfigs", "ConsumerPscConfigs", "ConsumerPscConnections" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ProducerPscConfig), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ProducerPscConfig.Parser, new[]{ "ServiceAttachmentUri" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Parser, new[]{ "Project", "Network", "DisableGlobalAccess", "State" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Parser, new[]{ "ServiceAttachmentUri", "State", "Project", "Network", "PscConnectionId", "Ip", "ErrorType", "Error", "GceOperation", "ForwardingRule" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Types.State) }, null, null), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "Labels", "Description", "Network", "ServiceClass", "Infrastructure", "PscConfig", "PscConnections" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig.Parser, new[]{ "Subnetworks", "Limit" }, new[]{ "Limit" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConnection), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConnection.Parser, new[]{ "State", "ConsumerForwardingRule", "ConsumerAddress", "ErrorType", "Error", "GceOperation", "ConsumerTargetProject", "PscConnectionId" }, null, null, null, null), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceClass), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceClass.Parser, new[]{ "Name", "ServiceClass_", "CreateTime", "UpdateTime", "Labels", "Description", "ServiceConnectionMaps" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionToken), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionToken.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "Labels", "Description", "Network" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Hub), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Hub.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "Labels", "Description", "UniqueId", "State", "RoutingVpcs" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.RoutingVPC), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.RoutingVPC.Parser, new[]{ "Uri", "RequiredForNewSiteToSiteDataTransferSpokes" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Spoke), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Spoke.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "Labels", "Description", "Hub", "LinkedVpnTunnels", "LinkedInterconnectAttachments", "LinkedRouterApplianceInstances", "UniqueId", "State" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedVpnTunnels), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedVpnTunnels.Parser, new[]{ "Uris", "SiteToSiteDataTransfer", "VpcNetwork" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedInterconnectAttachments), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedInterconnectAttachments.Parser, new[]{ "Uris", "SiteToSiteDataTransfer", "VpcNetwork" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedRouterApplianceInstances), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedRouterApplianceInstances.Parser, new[]{ "Instances", "SiteToSiteDataTransfer", "VpcNetwork" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.RouterApplianceInstance), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.RouterApplianceInstance.Parser, new[]{ "VirtualMachine", "IpAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceClassEventData), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceClassEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionTokenEventData), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionTokenEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMapEventData), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMapEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.HubEventData), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.HubEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.SpokeEventData), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.SpokeEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicyEventData), global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicyEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// The infrastructure used for connections between consumers/producers. + /// + public enum Infrastructure { + /// + /// An invalid infrastructure as the default case. + /// + [pbr::OriginalName("INFRASTRUCTURE_UNSPECIFIED")] Unspecified = 0, + /// + /// Private Service Connect is used for connections. + /// + [pbr::OriginalName("PSC")] Psc = 1, + } + + /// + /// The error type indicates whether a connection error is consumer facing, + /// producer facing or system internal. + /// + public enum ConnectionErrorType { + /// + /// An invalid error type as the default case. + /// + [pbr::OriginalName("CONNECTION_ERROR_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The error is due to Service Automation system internal. + /// + [pbr::OriginalName("ERROR_INTERNAL")] ErrorInternal = 1, + /// + /// The error is due to the setup on consumer side. + /// + [pbr::OriginalName("ERROR_CONSUMER_SIDE")] ErrorConsumerSide = 2, + /// + /// The error is due to the setup on producer side. + /// + [pbr::OriginalName("ERROR_PRODUCER_SIDE")] ErrorProducerSide = 3, + } + + /// + /// The State enum represents the lifecycle stage of a Network Connectivity + /// Center resource. + /// + public enum State { + /// + /// No state information available + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The resource's create operation is in progress. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// The resource is active + /// + [pbr::OriginalName("ACTIVE")] Active = 2, + /// + /// The resource's delete operation is in progress. + /// + [pbr::OriginalName("DELETING")] Deleting = 3, + /// + /// The resource's update operation is in progress. + /// + [pbr::OriginalName("UPDATING")] Updating = 6, + } + + #endregion + + #region Messages + /// + /// The ServiceConnectionMap resource. + /// Next id: 14 + /// + public sealed partial class ServiceConnectionMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceConnectionMap()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 ServiceConnectionMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionMap(ServiceConnectionMap other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + description_ = other.description_; + serviceClass_ = other.serviceClass_; + serviceClassUri_ = other.serviceClassUri_; + infrastructure_ = other.infrastructure_; + producerPscConfigs_ = other.producerPscConfigs_.Clone(); + consumerPscConfigs_ = other.consumerPscConfigs_.Clone(); + consumerPscConnections_ = other.consumerPscConnections_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionMap Clone() { + return new ServiceConnectionMap(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The name of a ServiceConnectionMap. + /// Format: + /// projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} + /// See: https://google.aip.dev/122#fields-representing-resource-names + /// + [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 "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Time when the ServiceConnectionMap was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Time when the ServiceConnectionMap was updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// User-defined labels. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private string description_ = ""; + /// + /// A description of this resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_class" field. + public const int ServiceClassFieldNumber = 7; + private string serviceClass_ = ""; + /// + /// The service class identifier this ServiceConnectionMap is for. + /// The user of ServiceConnectionMap create API needs to have + /// networkconnecitivty.serviceclasses.use iam permission for the service + /// class. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceClass { + get { return serviceClass_; } + set { + serviceClass_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_class_uri" field. + public const int ServiceClassUriFieldNumber = 12; + private string serviceClassUri_ = ""; + /// + /// Output only. The service class uri this ServiceConnectionMap is for. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceClassUri { + get { return serviceClassUri_; } + set { + serviceClassUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "infrastructure" field. + public const int InfrastructureFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure infrastructure_ = global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified; + /// + /// Output only. The infrastructure used for connections between + /// consumers/producers. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure Infrastructure { + get { return infrastructure_; } + set { + infrastructure_ = value; + } + } + + /// Field number for the "producer_psc_configs" field. + public const int ProducerPscConfigsFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_producerPscConfigs_codec + = pb::FieldCodec.ForMessage(74, global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ProducerPscConfig.Parser); + private readonly pbc::RepeatedField producerPscConfigs_ = new pbc::RepeatedField(); + /// + /// The PSC configurations on producer side. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ProducerPscConfigs { + get { return producerPscConfigs_; } + } + + /// Field number for the "consumer_psc_configs" field. + public const int ConsumerPscConfigsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_consumerPscConfigs_codec + = pb::FieldCodec.ForMessage(82, global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Parser); + private readonly pbc::RepeatedField consumerPscConfigs_ = new pbc::RepeatedField(); + /// + /// The PSC configurations on consumer side. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ConsumerPscConfigs { + get { return consumerPscConfigs_; } + } + + /// Field number for the "consumer_psc_connections" field. + public const int ConsumerPscConnectionsFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_consumerPscConnections_codec + = pb::FieldCodec.ForMessage(90, global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Parser); + private readonly pbc::RepeatedField consumerPscConnections_ = new pbc::RepeatedField(); + /// + /// Output only. PSC connection details on consumer side. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ConsumerPscConnections { + get { return consumerPscConnections_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServiceConnectionMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceConnectionMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Description != other.Description) return false; + if (ServiceClass != other.ServiceClass) return false; + if (ServiceClassUri != other.ServiceClassUri) return false; + if (Infrastructure != other.Infrastructure) return false; + if(!producerPscConfigs_.Equals(other.producerPscConfigs_)) return false; + if(!consumerPscConfigs_.Equals(other.consumerPscConfigs_)) return false; + if(!consumerPscConnections_.Equals(other.consumerPscConnections_)) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (ServiceClass.Length != 0) hash ^= ServiceClass.GetHashCode(); + if (ServiceClassUri.Length != 0) hash ^= ServiceClassUri.GetHashCode(); + if (Infrastructure != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified) hash ^= Infrastructure.GetHashCode(); + hash ^= producerPscConfigs_.GetHashCode(); + hash ^= consumerPscConfigs_.GetHashCode(); + hash ^= consumerPscConnections_.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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (ServiceClass.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ServiceClass); + } + if (Infrastructure != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) Infrastructure); + } + producerPscConfigs_.WriteTo(output, _repeated_producerPscConfigs_codec); + consumerPscConfigs_.WriteTo(output, _repeated_consumerPscConfigs_codec); + consumerPscConnections_.WriteTo(output, _repeated_consumerPscConnections_codec); + if (ServiceClassUri.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ServiceClassUri); + } + 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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (ServiceClass.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ServiceClass); + } + if (Infrastructure != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) Infrastructure); + } + producerPscConfigs_.WriteTo(ref output, _repeated_producerPscConfigs_codec); + consumerPscConfigs_.WriteTo(ref output, _repeated_consumerPscConfigs_codec); + consumerPscConnections_.WriteTo(ref output, _repeated_consumerPscConnections_codec); + if (ServiceClassUri.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ServiceClassUri); + } + 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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (ServiceClass.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceClass); + } + if (ServiceClassUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceClassUri); + } + if (Infrastructure != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Infrastructure); + } + size += producerPscConfigs_.CalculateSize(_repeated_producerPscConfigs_codec); + size += consumerPscConfigs_.CalculateSize(_repeated_consumerPscConfigs_codec); + size += consumerPscConnections_.CalculateSize(_repeated_consumerPscConnections_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceConnectionMap other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.ServiceClass.Length != 0) { + ServiceClass = other.ServiceClass; + } + if (other.ServiceClassUri.Length != 0) { + ServiceClassUri = other.ServiceClassUri; + } + if (other.Infrastructure != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified) { + Infrastructure = other.Infrastructure; + } + producerPscConfigs_.Add(other.producerPscConfigs_); + consumerPscConfigs_.Add(other.consumerPscConfigs_); + consumerPscConnections_.Add(other.consumerPscConnections_); + _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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 58: { + ServiceClass = input.ReadString(); + break; + } + case 64: { + Infrastructure = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure) input.ReadEnum(); + break; + } + case 74: { + producerPscConfigs_.AddEntriesFrom(input, _repeated_producerPscConfigs_codec); + break; + } + case 82: { + consumerPscConfigs_.AddEntriesFrom(input, _repeated_consumerPscConfigs_codec); + break; + } + case 90: { + consumerPscConnections_.AddEntriesFrom(input, _repeated_consumerPscConnections_codec); + break; + } + case 98: { + ServiceClassUri = 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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 58: { + ServiceClass = input.ReadString(); + break; + } + case 64: { + Infrastructure = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure) input.ReadEnum(); + break; + } + case 74: { + producerPscConfigs_.AddEntriesFrom(ref input, _repeated_producerPscConfigs_codec); + break; + } + case 82: { + consumerPscConfigs_.AddEntriesFrom(ref input, _repeated_consumerPscConfigs_codec); + break; + } + case 90: { + consumerPscConnections_.AddEntriesFrom(ref input, _repeated_consumerPscConnections_codec); + break; + } + case 98: { + ServiceClassUri = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ServiceConnectionMap message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The PSC configurations on producer side. + /// + public sealed partial class ProducerPscConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProducerPscConfig()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.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 ProducerPscConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProducerPscConfig(ProducerPscConfig other) : this() { + serviceAttachmentUri_ = other.serviceAttachmentUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProducerPscConfig Clone() { + return new ProducerPscConfig(this); + } + + /// Field number for the "service_attachment_uri" field. + public const int ServiceAttachmentUriFieldNumber = 1; + private string serviceAttachmentUri_ = ""; + /// + /// The resource path of a service attachment. + /// Example: + /// projects/{projectNumOrId}/regions/{region}/serviceAttachments/{resourceId}. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAttachmentUri { + get { return serviceAttachmentUri_; } + set { + serviceAttachmentUri_ = 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 ProducerPscConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ProducerPscConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServiceAttachmentUri != other.ServiceAttachmentUri) 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 (ServiceAttachmentUri.Length != 0) hash ^= ServiceAttachmentUri.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 (ServiceAttachmentUri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAttachmentUri); + } + 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 (ServiceAttachmentUri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAttachmentUri); + } + 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 (ServiceAttachmentUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAttachmentUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ProducerPscConfig other) { + if (other == null) { + return; + } + if (other.ServiceAttachmentUri.Length != 0) { + ServiceAttachmentUri = other.ServiceAttachmentUri; + } + _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: { + ServiceAttachmentUri = 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: { + ServiceAttachmentUri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Allow the producer to specify which consumers can connect to it. + /// + public sealed partial class ConsumerPscConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConsumerPscConfig()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.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 ConsumerPscConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConsumerPscConfig(ConsumerPscConfig other) : this() { + project_ = other.project_; + network_ = other.network_; + disableGlobalAccess_ = other.disableGlobalAccess_; + state_ = other.state_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConsumerPscConfig Clone() { + return new ConsumerPscConfig(this); + } + + /// Field number for the "project" field. + public const int ProjectFieldNumber = 1; + private string project_ = ""; + /// + /// The consumer project where PSC connections are allowed to be created in. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Project { + get { return project_; } + set { + project_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 2; + private string network_ = ""; + /// + /// The resource path of the consumer network where PSC connections are + /// allowed to be created in. Note, this network does not need be in the + /// ConsumerPscConfig.project in the case of SharedVPC. + /// Example: + /// projects/{projectNumOrId}/global/networks/{networkId}. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Network { + get { return network_; } + set { + network_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "disable_global_access" field. + public const int DisableGlobalAccessFieldNumber = 3; + private bool disableGlobalAccess_; + /// + /// This is used in PSC consumer ForwardingRule to control whether the PSC + /// endpoint can be accessed from another region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DisableGlobalAccess { + get { return disableGlobalAccess_; } + set { + disableGlobalAccess_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Types.State state_ = global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Types.State.Unspecified; + /// + /// Output only. Overall state of PSC Connections management for this + /// consumer psc config. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConsumerPscConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConsumerPscConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Project != other.Project) return false; + if (Network != other.Network) return false; + if (DisableGlobalAccess != other.DisableGlobalAccess) return false; + if (State != other.State) 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 (Project.Length != 0) hash ^= Project.GetHashCode(); + if (Network.Length != 0) hash ^= Network.GetHashCode(); + if (DisableGlobalAccess != false) hash ^= DisableGlobalAccess.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Types.State.Unspecified) hash ^= State.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 (Project.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Project); + } + if (Network.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Network); + } + if (DisableGlobalAccess != false) { + output.WriteRawTag(24); + output.WriteBool(DisableGlobalAccess); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + 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 (Project.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Project); + } + if (Network.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Network); + } + if (DisableGlobalAccess != false) { + output.WriteRawTag(24); + output.WriteBool(DisableGlobalAccess); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + 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 (Project.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Project); + } + if (Network.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Network); + } + if (DisableGlobalAccess != false) { + size += 1 + 1; + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConsumerPscConfig other) { + if (other == null) { + return; + } + if (other.Project.Length != 0) { + Project = other.Project; + } + if (other.Network.Length != 0) { + Network = other.Network; + } + if (other.DisableGlobalAccess != false) { + DisableGlobalAccess = other.DisableGlobalAccess; + } + if (other.State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Types.State.Unspecified) { + State = other.State; + } + _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: { + Project = input.ReadString(); + break; + } + case 18: { + Network = input.ReadString(); + break; + } + case 24: { + DisableGlobalAccess = input.ReadBool(); + break; + } + case 32: { + State = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Types.State) input.ReadEnum(); + 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: { + Project = input.ReadString(); + break; + } + case 18: { + Network = input.ReadString(); + break; + } + case 24: { + DisableGlobalAccess = input.ReadBool(); + break; + } + case 32: { + State = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig.Types.State) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ConsumerPscConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// PSC Consumer Config State. + /// + public enum State { + /// + /// Default state, when Connection Map is created initially. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// Set when policy and map configuration is valid, + /// and their matching can lead to allowing creation of PSC Connections + /// subject to other constraints like connections limit. + /// + [pbr::OriginalName("VALID")] Valid = 1, + /// + /// No Service Connection Policy found for this network and Service + /// Class + /// + [pbr::OriginalName("CONNECTION_POLICY_MISSING")] ConnectionPolicyMissing = 2, + } + + } + #endregion + + } + + /// + /// PSC connection details on consumer side. + /// + public sealed partial class ConsumerPscConnection : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConsumerPscConnection()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.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 ConsumerPscConnection() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConsumerPscConnection(ConsumerPscConnection other) : this() { + serviceAttachmentUri_ = other.serviceAttachmentUri_; + state_ = other.state_; + project_ = other.project_; + network_ = other.network_; + pscConnectionId_ = other.pscConnectionId_; + ip_ = other.ip_; + errorType_ = other.errorType_; + error_ = other.error_ != null ? other.error_.Clone() : null; + gceOperation_ = other.gceOperation_; + forwardingRule_ = other.forwardingRule_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConsumerPscConnection Clone() { + return new ConsumerPscConnection(this); + } + + /// Field number for the "service_attachment_uri" field. + public const int ServiceAttachmentUriFieldNumber = 1; + private string serviceAttachmentUri_ = ""; + /// + /// The URI of a service attachment which is the target of the PSC + /// connection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAttachmentUri { + get { return serviceAttachmentUri_; } + set { + serviceAttachmentUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Types.State state_ = global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Types.State.Unspecified; + /// + /// The state of the PSC connection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "project" field. + public const int ProjectFieldNumber = 3; + private string project_ = ""; + /// + /// The consumer project whose PSC forwarding rule is connected to the + /// service attachments in this service connection map. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Project { + get { return project_; } + set { + project_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 4; + private string network_ = ""; + /// + /// The consumer network whose PSC forwarding rule is connected to the + /// service attachments in this service connection map. + /// Note that the network could be on a different project (shared VPC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Network { + get { return network_; } + set { + network_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "psc_connection_id" field. + public const int PscConnectionIdFieldNumber = 5; + private string pscConnectionId_ = ""; + /// + /// The PSC connection id of the PSC forwarding rule connected + /// to the service attachments in this service connection map. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PscConnectionId { + get { return pscConnectionId_; } + set { + pscConnectionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ip" field. + public const int IpFieldNumber = 6; + private string ip_ = ""; + /// + /// The IP literal allocated on the consumer network for the PSC forwarding + /// rule that is created to connect to the producer service attachment in + /// this service connection map. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ip { + get { return ip_; } + set { + ip_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "error_type" field. + public const int ErrorTypeFieldNumber = 7; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType errorType_ = global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified; + /// + /// The error type indicates whether the error is consumer facing, producer + /// facing or system internal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType ErrorType { + get { return errorType_; } + set { + errorType_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 8; + private global::Google.Rpc.Status error_; + /// + /// The most recent error during operating this connection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "gce_operation" field. + public const int GceOperationFieldNumber = 9; + private string gceOperation_ = ""; + /// + /// The last Compute Engine operation to setup PSC connection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GceOperation { + get { return gceOperation_; } + set { + gceOperation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "forwarding_rule" field. + public const int ForwardingRuleFieldNumber = 10; + private string forwardingRule_ = ""; + /// + /// The URI of the consumer forwarding rule created. + /// Example: + /// projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ForwardingRule { + get { return forwardingRule_; } + set { + forwardingRule_ = 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 ConsumerPscConnection); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConsumerPscConnection other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServiceAttachmentUri != other.ServiceAttachmentUri) return false; + if (State != other.State) return false; + if (Project != other.Project) return false; + if (Network != other.Network) return false; + if (PscConnectionId != other.PscConnectionId) return false; + if (Ip != other.Ip) return false; + if (ErrorType != other.ErrorType) return false; + if (!object.Equals(Error, other.Error)) return false; + if (GceOperation != other.GceOperation) return false; + if (ForwardingRule != other.ForwardingRule) 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 (ServiceAttachmentUri.Length != 0) hash ^= ServiceAttachmentUri.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (Project.Length != 0) hash ^= Project.GetHashCode(); + if (Network.Length != 0) hash ^= Network.GetHashCode(); + if (PscConnectionId.Length != 0) hash ^= PscConnectionId.GetHashCode(); + if (Ip.Length != 0) hash ^= Ip.GetHashCode(); + if (ErrorType != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified) hash ^= ErrorType.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + if (GceOperation.Length != 0) hash ^= GceOperation.GetHashCode(); + if (ForwardingRule.Length != 0) hash ^= ForwardingRule.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 (ServiceAttachmentUri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAttachmentUri); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Types.State.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (Project.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Project); + } + if (Network.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Network); + } + if (PscConnectionId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PscConnectionId); + } + if (Ip.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Ip); + } + if (ErrorType != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) ErrorType); + } + if (error_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Error); + } + if (GceOperation.Length != 0) { + output.WriteRawTag(74); + output.WriteString(GceOperation); + } + if (ForwardingRule.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ForwardingRule); + } + 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 (ServiceAttachmentUri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAttachmentUri); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Types.State.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (Project.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Project); + } + if (Network.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Network); + } + if (PscConnectionId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PscConnectionId); + } + if (Ip.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Ip); + } + if (ErrorType != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) ErrorType); + } + if (error_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Error); + } + if (GceOperation.Length != 0) { + output.WriteRawTag(74); + output.WriteString(GceOperation); + } + if (ForwardingRule.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ForwardingRule); + } + 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 (ServiceAttachmentUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAttachmentUri); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (Project.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Project); + } + if (Network.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Network); + } + if (PscConnectionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PscConnectionId); + } + if (Ip.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Ip); + } + if (ErrorType != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ErrorType); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (GceOperation.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GceOperation); + } + if (ForwardingRule.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ForwardingRule); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConsumerPscConnection other) { + if (other == null) { + return; + } + if (other.ServiceAttachmentUri.Length != 0) { + ServiceAttachmentUri = other.ServiceAttachmentUri; + } + if (other.State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Types.State.Unspecified) { + State = other.State; + } + if (other.Project.Length != 0) { + Project = other.Project; + } + if (other.Network.Length != 0) { + Network = other.Network; + } + if (other.PscConnectionId.Length != 0) { + PscConnectionId = other.PscConnectionId; + } + if (other.Ip.Length != 0) { + Ip = other.Ip; + } + if (other.ErrorType != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified) { + ErrorType = other.ErrorType; + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + if (other.GceOperation.Length != 0) { + GceOperation = other.GceOperation; + } + if (other.ForwardingRule.Length != 0) { + ForwardingRule = other.ForwardingRule; + } + _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: { + ServiceAttachmentUri = input.ReadString(); + break; + } + case 16: { + State = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Types.State) input.ReadEnum(); + break; + } + case 26: { + Project = input.ReadString(); + break; + } + case 34: { + Network = input.ReadString(); + break; + } + case 42: { + PscConnectionId = input.ReadString(); + break; + } + case 50: { + Ip = input.ReadString(); + break; + } + case 56: { + ErrorType = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType) input.ReadEnum(); + break; + } + case 66: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 74: { + GceOperation = input.ReadString(); + break; + } + case 82: { + ForwardingRule = 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: { + ServiceAttachmentUri = input.ReadString(); + break; + } + case 16: { + State = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConnection.Types.State) input.ReadEnum(); + break; + } + case 26: { + Project = input.ReadString(); + break; + } + case 34: { + Network = input.ReadString(); + break; + } + case 42: { + PscConnectionId = input.ReadString(); + break; + } + case 50: { + Ip = input.ReadString(); + break; + } + case 56: { + ErrorType = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType) input.ReadEnum(); + break; + } + case 66: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 74: { + GceOperation = input.ReadString(); + break; + } + case 82: { + ForwardingRule = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ConsumerPscConnection message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The state of the PSC connection. + /// + public enum State { + /// + /// An invalid state as the default case. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The connection is fully established and ready to use. + /// + [pbr::OriginalName("ACTIVE")] Active = 1, + /// + /// The connection is not functional since some resources on the connection + /// fail to be created. + /// + [pbr::OriginalName("FAILED")] Failed = 2, + /// + /// The connection is being created. + /// + [pbr::OriginalName("CREATING")] Creating = 3, + /// + /// The connection is being deleted. + /// + [pbr::OriginalName("DELETING")] Deleting = 4, + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// The ServiceConnectionPolicy resource. + /// Next id: 11 + /// + public sealed partial class ServiceConnectionPolicy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceConnectionPolicy()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 ServiceConnectionPolicy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionPolicy(ServiceConnectionPolicy other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + description_ = other.description_; + network_ = other.network_; + serviceClass_ = other.serviceClass_; + infrastructure_ = other.infrastructure_; + pscConfig_ = other.pscConfig_ != null ? other.pscConfig_.Clone() : null; + pscConnections_ = other.pscConnections_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionPolicy Clone() { + return new ServiceConnectionPolicy(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The name of a ServiceConnectionPolicy. + /// Format: + /// projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} + /// See: https://google.aip.dev/122#fields-representing-resource-names + /// + [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 "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Time when the ServiceConnectionMap was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Time when the ServiceConnectionMap was updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// User-defined labels. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private string description_ = ""; + /// + /// A description of this resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 6; + private string network_ = ""; + /// + /// The resource path of the consumer network. + /// Example: + /// - projects/{projectNumOrId}/global/networks/{resourceId}. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Network { + get { return network_; } + set { + network_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_class" field. + public const int ServiceClassFieldNumber = 7; + private string serviceClass_ = ""; + /// + /// The service class identifier for which this ServiceConnectionPolicy is for. + /// The service class identifier is a unique, symbolic representation of a + /// ServiceClass. It is provided by the Service Producer. Google services have + /// a prefix of gcp. For example, gcp-cloud-sql. 3rd party services do not. For + /// example, test-service-a3dfcx. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceClass { + get { return serviceClass_; } + set { + serviceClass_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "infrastructure" field. + public const int InfrastructureFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure infrastructure_ = global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified; + /// + /// Output only. The type of underlying resources used to create the + /// connection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure Infrastructure { + get { return infrastructure_; } + set { + infrastructure_ = value; + } + } + + /// Field number for the "psc_config" field. + public const int PscConfigFieldNumber = 9; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig pscConfig_; + /// + /// Configuration used for Private Service Connect connections. Used when + /// Infrastructure is PSC. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig PscConfig { + get { return pscConfig_; } + set { + pscConfig_ = value; + } + } + + /// Field number for the "psc_connections" field. + public const int PscConnectionsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_pscConnections_codec + = pb::FieldCodec.ForMessage(82, global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConnection.Parser); + private readonly pbc::RepeatedField pscConnections_ = new pbc::RepeatedField(); + /// + /// Output only. [Output only] Information about each Private Service Connect + /// connection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PscConnections { + get { return pscConnections_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServiceConnectionPolicy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceConnectionPolicy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Description != other.Description) return false; + if (Network != other.Network) return false; + if (ServiceClass != other.ServiceClass) return false; + if (Infrastructure != other.Infrastructure) return false; + if (!object.Equals(PscConfig, other.PscConfig)) return false; + if(!pscConnections_.Equals(other.pscConnections_)) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (Network.Length != 0) hash ^= Network.GetHashCode(); + if (ServiceClass.Length != 0) hash ^= ServiceClass.GetHashCode(); + if (Infrastructure != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified) hash ^= Infrastructure.GetHashCode(); + if (pscConfig_ != null) hash ^= PscConfig.GetHashCode(); + hash ^= pscConnections_.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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (Network.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Network); + } + if (ServiceClass.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ServiceClass); + } + if (Infrastructure != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) Infrastructure); + } + if (pscConfig_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PscConfig); + } + pscConnections_.WriteTo(output, _repeated_pscConnections_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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (Network.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Network); + } + if (ServiceClass.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ServiceClass); + } + if (Infrastructure != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) Infrastructure); + } + if (pscConfig_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PscConfig); + } + pscConnections_.WriteTo(ref output, _repeated_pscConnections_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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (Network.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Network); + } + if (ServiceClass.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceClass); + } + if (Infrastructure != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Infrastructure); + } + if (pscConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PscConfig); + } + size += pscConnections_.CalculateSize(_repeated_pscConnections_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceConnectionPolicy other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.Network.Length != 0) { + Network = other.Network; + } + if (other.ServiceClass.Length != 0) { + ServiceClass = other.ServiceClass; + } + if (other.Infrastructure != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure.Unspecified) { + Infrastructure = other.Infrastructure; + } + if (other.pscConfig_ != null) { + if (pscConfig_ == null) { + PscConfig = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig(); + } + PscConfig.MergeFrom(other.PscConfig); + } + pscConnections_.Add(other.pscConnections_); + _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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 50: { + Network = input.ReadString(); + break; + } + case 58: { + ServiceClass = input.ReadString(); + break; + } + case 64: { + Infrastructure = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure) input.ReadEnum(); + break; + } + case 74: { + if (pscConfig_ == null) { + PscConfig = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig(); + } + input.ReadMessage(PscConfig); + break; + } + case 82: { + pscConnections_.AddEntriesFrom(input, _repeated_pscConnections_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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 50: { + Network = input.ReadString(); + break; + } + case 58: { + ServiceClass = input.ReadString(); + break; + } + case 64: { + Infrastructure = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Infrastructure) input.ReadEnum(); + break; + } + case 74: { + if (pscConfig_ == null) { + PscConfig = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig(); + } + input.ReadMessage(PscConfig); + break; + } + case 82: { + pscConnections_.AddEntriesFrom(ref input, _repeated_pscConnections_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ServiceConnectionPolicy message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The state of the PSC connection. + /// + public enum State { + /// + /// An invalid state as the default case. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The connection is fully established and ready to use. + /// + [pbr::OriginalName("ACTIVE")] Active = 1, + /// + /// The connection is not functional since some resources on the connection + /// fail to be created. + /// + [pbr::OriginalName("FAILED")] Failed = 2, + /// + /// The connection is being created. + /// + [pbr::OriginalName("CREATING")] Creating = 3, + /// + /// The connection is being deleted. + /// + [pbr::OriginalName("DELETING")] Deleting = 4, + } + + /// + /// Configuration used for Private Service Connect connections. Used when + /// Infrastructure is PSC. + /// + public sealed partial class PscConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PscConfig()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.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 PscConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PscConfig(PscConfig other) : this() { + _hasBits0 = other._hasBits0; + subnetworks_ = other.subnetworks_.Clone(); + limit_ = other.limit_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PscConfig Clone() { + return new PscConfig(this); + } + + /// Field number for the "subnetworks" field. + public const int SubnetworksFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_subnetworks_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField subnetworks_ = new pbc::RepeatedField(); + /// + /// The resource paths of subnetworks to use for IP address management. + /// Example: + /// projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Subnetworks { + get { return subnetworks_; } + } + + /// Field number for the "limit" field. + public const int LimitFieldNumber = 2; + private readonly static long LimitDefaultValue = 0L; + + private long limit_; + /// + /// Optional. Max number of PSC connections for this policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Limit { + get { if ((_hasBits0 & 1) != 0) { return limit_; } else { return LimitDefaultValue; } } + set { + _hasBits0 |= 1; + limit_ = value; + } + } + /// Gets whether the "limit" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLimit { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "limit" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLimit() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PscConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PscConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!subnetworks_.Equals(other.subnetworks_)) return false; + if (Limit != other.Limit) 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 ^= subnetworks_.GetHashCode(); + if (HasLimit) hash ^= Limit.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 + subnetworks_.WriteTo(output, _repeated_subnetworks_codec); + if (HasLimit) { + output.WriteRawTag(16); + output.WriteInt64(Limit); + } + 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) { + subnetworks_.WriteTo(ref output, _repeated_subnetworks_codec); + if (HasLimit) { + output.WriteRawTag(16); + output.WriteInt64(Limit); + } + 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 += subnetworks_.CalculateSize(_repeated_subnetworks_codec); + if (HasLimit) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PscConfig other) { + if (other == null) { + return; + } + subnetworks_.Add(other.subnetworks_); + if (other.HasLimit) { + Limit = other.Limit; + } + _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: { + subnetworks_.AddEntriesFrom(input, _repeated_subnetworks_codec); + break; + } + case 16: { + Limit = 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: { + subnetworks_.AddEntriesFrom(ref input, _repeated_subnetworks_codec); + break; + } + case 16: { + Limit = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Information about a specific Private Service Connect connection. + /// + public sealed partial class PscConnection : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PscConnection()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.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 PscConnection() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PscConnection(PscConnection other) : this() { + state_ = other.state_; + consumerForwardingRule_ = other.consumerForwardingRule_; + consumerAddress_ = other.consumerAddress_; + errorType_ = other.errorType_; + error_ = other.error_ != null ? other.error_.Clone() : null; + gceOperation_ = other.gceOperation_; + consumerTargetProject_ = other.consumerTargetProject_; + pscConnectionId_ = other.pscConnectionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PscConnection Clone() { + return new PscConnection(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.State state_ = global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.State.Unspecified; + /// + /// State of the PSC Connection + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "consumer_forwarding_rule" field. + public const int ConsumerForwardingRuleFieldNumber = 2; + private string consumerForwardingRule_ = ""; + /// + /// The resource reference of the PSC Forwarding Rule within the consumer + /// VPC. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConsumerForwardingRule { + get { return consumerForwardingRule_; } + set { + consumerForwardingRule_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "consumer_address" field. + public const int ConsumerAddressFieldNumber = 3; + private string consumerAddress_ = ""; + /// + /// The resource reference of the consumer address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConsumerAddress { + get { return consumerAddress_; } + set { + consumerAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "error_type" field. + public const int ErrorTypeFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType errorType_ = global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified; + /// + /// The error type indicates whether the error is consumer facing, producer + /// facing or system internal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType ErrorType { + get { return errorType_; } + set { + errorType_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 5; + private global::Google.Rpc.Status error_; + /// + /// The most recent error during operating this connection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "gce_operation" field. + public const int GceOperationFieldNumber = 6; + private string gceOperation_ = ""; + /// + /// The last Compute Engine operation to setup PSC connection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GceOperation { + get { return gceOperation_; } + set { + gceOperation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "consumer_target_project" field. + public const int ConsumerTargetProjectFieldNumber = 7; + private string consumerTargetProject_ = ""; + /// + /// The project where the PSC connection is created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConsumerTargetProject { + get { return consumerTargetProject_; } + set { + consumerTargetProject_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "psc_connection_id" field. + public const int PscConnectionIdFieldNumber = 8; + private string pscConnectionId_ = ""; + /// + /// The PSC connection id of the PSC forwarding rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PscConnectionId { + get { return pscConnectionId_; } + set { + pscConnectionId_ = 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 PscConnection); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PscConnection other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) return false; + if (ConsumerForwardingRule != other.ConsumerForwardingRule) return false; + if (ConsumerAddress != other.ConsumerAddress) return false; + if (ErrorType != other.ErrorType) return false; + if (!object.Equals(Error, other.Error)) return false; + if (GceOperation != other.GceOperation) return false; + if (ConsumerTargetProject != other.ConsumerTargetProject) return false; + if (PscConnectionId != other.PscConnectionId) 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 != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (ConsumerForwardingRule.Length != 0) hash ^= ConsumerForwardingRule.GetHashCode(); + if (ConsumerAddress.Length != 0) hash ^= ConsumerAddress.GetHashCode(); + if (ErrorType != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified) hash ^= ErrorType.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + if (GceOperation.Length != 0) hash ^= GceOperation.GetHashCode(); + if (ConsumerTargetProject.Length != 0) hash ^= ConsumerTargetProject.GetHashCode(); + if (PscConnectionId.Length != 0) hash ^= PscConnectionId.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 != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.State.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + if (ConsumerForwardingRule.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ConsumerForwardingRule); + } + if (ConsumerAddress.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConsumerAddress); + } + if (ErrorType != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) ErrorType); + } + if (error_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Error); + } + if (GceOperation.Length != 0) { + output.WriteRawTag(50); + output.WriteString(GceOperation); + } + if (ConsumerTargetProject.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ConsumerTargetProject); + } + if (PscConnectionId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(PscConnectionId); + } + 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 != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.State.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + if (ConsumerForwardingRule.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ConsumerForwardingRule); + } + if (ConsumerAddress.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConsumerAddress); + } + if (ErrorType != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) ErrorType); + } + if (error_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Error); + } + if (GceOperation.Length != 0) { + output.WriteRawTag(50); + output.WriteString(GceOperation); + } + if (ConsumerTargetProject.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ConsumerTargetProject); + } + if (PscConnectionId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(PscConnectionId); + } + 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 != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (ConsumerForwardingRule.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConsumerForwardingRule); + } + if (ConsumerAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConsumerAddress); + } + if (ErrorType != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ErrorType); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (GceOperation.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GceOperation); + } + if (ConsumerTargetProject.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConsumerTargetProject); + } + if (PscConnectionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PscConnectionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PscConnection other) { + if (other == null) { + return; + } + if (other.State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.State.Unspecified) { + State = other.State; + } + if (other.ConsumerForwardingRule.Length != 0) { + ConsumerForwardingRule = other.ConsumerForwardingRule; + } + if (other.ConsumerAddress.Length != 0) { + ConsumerAddress = other.ConsumerAddress; + } + if (other.ErrorType != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType.Unspecified) { + ErrorType = other.ErrorType; + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + if (other.GceOperation.Length != 0) { + GceOperation = other.GceOperation; + } + if (other.ConsumerTargetProject.Length != 0) { + ConsumerTargetProject = other.ConsumerTargetProject; + } + if (other.PscConnectionId.Length != 0) { + PscConnectionId = other.PscConnectionId; + } + _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: { + State = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.State) input.ReadEnum(); + break; + } + case 18: { + ConsumerForwardingRule = input.ReadString(); + break; + } + case 26: { + ConsumerAddress = input.ReadString(); + break; + } + case 32: { + ErrorType = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType) input.ReadEnum(); + break; + } + case 42: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 50: { + GceOperation = input.ReadString(); + break; + } + case 58: { + ConsumerTargetProject = input.ReadString(); + break; + } + case 66: { + PscConnectionId = 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 8: { + State = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.State) input.ReadEnum(); + break; + } + case 18: { + ConsumerForwardingRule = input.ReadString(); + break; + } + case 26: { + ConsumerAddress = input.ReadString(); + break; + } + case 32: { + ErrorType = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ConnectionErrorType) input.ReadEnum(); + break; + } + case 42: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 50: { + GceOperation = input.ReadString(); + break; + } + case 58: { + ConsumerTargetProject = input.ReadString(); + break; + } + case 66: { + PscConnectionId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// The ServiceClass resource. + /// Next id: 8 + /// + public sealed partial class ServiceClass : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceClass()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 ServiceClass() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceClass(ServiceClass other) : this() { + name_ = other.name_; + serviceClass_ = other.serviceClass_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + description_ = other.description_; + serviceConnectionMaps_ = other.serviceConnectionMaps_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceClass Clone() { + return new ServiceClass(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The name of a ServiceClass resource. + /// Format: + /// projects/{project}/locations/{location}/serviceClasses/{service_class} + /// See: https://google.aip.dev/122#fields-representing-resource-names + /// + [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 "service_class" field. + public const int ServiceClass_FieldNumber = 7; + private string serviceClass_ = ""; + /// + /// Output only. The generated service class name. Use this name to refer to + /// the Service class in Service Connection Maps and Service Connection + /// Policies. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceClass_ { + get { return serviceClass_; } + set { + serviceClass_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Time when the ServiceClass was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Time when the ServiceClass was updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// User-defined labels. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private string description_ = ""; + /// + /// A description of this resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_connection_maps" field. + public const int ServiceConnectionMapsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_serviceConnectionMaps_codec + = pb::FieldCodec.ForString(50); + private readonly pbc::RepeatedField serviceConnectionMaps_ = new pbc::RepeatedField(); + /// + /// Output only. URIs of all Service Connection Maps using this service class. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ServiceConnectionMaps { + get { return serviceConnectionMaps_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServiceClass); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceClass other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (ServiceClass_ != other.ServiceClass_) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Description != other.Description) return false; + if(!serviceConnectionMaps_.Equals(other.serviceConnectionMaps_)) 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 (ServiceClass_.Length != 0) hash ^= ServiceClass_.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + hash ^= serviceConnectionMaps_.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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + serviceConnectionMaps_.WriteTo(output, _repeated_serviceConnectionMaps_codec); + if (ServiceClass_.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ServiceClass_); + } + 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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + serviceConnectionMaps_.WriteTo(ref output, _repeated_serviceConnectionMaps_codec); + if (ServiceClass_.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ServiceClass_); + } + 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 (ServiceClass_.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceClass_); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + size += serviceConnectionMaps_.CalculateSize(_repeated_serviceConnectionMaps_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceClass other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.ServiceClass_.Length != 0) { + ServiceClass_ = other.ServiceClass_; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + if (other.Description.Length != 0) { + Description = other.Description; + } + serviceConnectionMaps_.Add(other.serviceConnectionMaps_); + _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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 50: { + serviceConnectionMaps_.AddEntriesFrom(input, _repeated_serviceConnectionMaps_codec); + break; + } + case 58: { + ServiceClass_ = 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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 50: { + serviceConnectionMaps_.AddEntriesFrom(ref input, _repeated_serviceConnectionMaps_codec); + break; + } + case 58: { + ServiceClass_ = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The ServiceConnectionToken resource. + /// Next id: 9 + /// + public sealed partial class ServiceConnectionToken : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceConnectionToken()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 ServiceConnectionToken() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionToken(ServiceConnectionToken other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + description_ = other.description_; + network_ = other.network_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionToken Clone() { + return new ServiceConnectionToken(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The name of a ServiceConnectionToken. + /// Format: + /// projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} + /// See: https://google.aip.dev/122#fields-representing-resource-names + /// + [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 "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Time when the ServiceConnectionToken was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Time when the ServiceConnectionToken was updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// User-defined labels. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private string description_ = ""; + /// + /// A description of this resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 6; + private string network_ = ""; + /// + /// The resource path of the network associated with this token. + /// Example: + /// projects/{projectNumOrId}/global/networks/{resourceId}. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Network { + get { return network_; } + set { + network_ = 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 ServiceConnectionToken); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceConnectionToken other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Description != other.Description) return false; + if (Network != other.Network) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (Network.Length != 0) hash ^= Network.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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (Network.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Network); + } + 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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (Network.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Network); + } + 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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (Network.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Network); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceConnectionToken other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.Network.Length != 0) { + Network = other.Network; + } + _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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 50: { + Network = 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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 50: { + Network = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A Network Connectivity Center hub is a global management resource to which + /// you attach spokes. A single hub can contain spokes from multiple regions. + /// However, if any of a hub's spokes use the site-to-site data transfer feature, + /// the resources associated with those spokes must all be in the same VPC + /// network. Spokes that do not use site-to-site data transfer can be associated + /// with any VPC network in your project. + /// + public sealed partial class Hub : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Hub()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 Hub() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Hub(Hub other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + description_ = other.description_; + uniqueId_ = other.uniqueId_; + state_ = other.state_; + routingVpcs_ = other.routingVpcs_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Hub Clone() { + return new Hub(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The name of the hub. Hub names must be unique. They use the + /// following form: + /// `projects/{project_number}/locations/global/hubs/{hub_id}` + /// + [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 "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the hub was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time the hub was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Optional labels in key:value format. For more information about labels, see + /// [Requirements for + /// labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private string description_ = ""; + /// + /// An optional description of the hub. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "unique_id" field. + public const int UniqueIdFieldNumber = 8; + private string uniqueId_ = ""; + /// + /// Output only. The Google-generated UUID for the hub. This value is unique + /// across all hub resources. If a hub is deleted and another with the same + /// name is created, the new hub is assigned a different unique_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UniqueId { + get { return uniqueId_; } + set { + uniqueId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 9; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State state_ = global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified; + /// + /// Output only. The current lifecycle state of this hub. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "routing_vpcs" field. + public const int RoutingVpcsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_routingVpcs_codec + = pb::FieldCodec.ForMessage(82, global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.RoutingVPC.Parser); + private readonly pbc::RepeatedField routingVpcs_ = new pbc::RepeatedField(); + /// + /// The VPC networks associated with this hub's spokes. + /// + /// This field is read-only. Network Connectivity Center automatically + /// populates it based on the set of spokes attached to the hub. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RoutingVpcs { + get { return routingVpcs_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Hub); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Hub other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Description != other.Description) return false; + if (UniqueId != other.UniqueId) return false; + if (State != other.State) return false; + if(!routingVpcs_.Equals(other.routingVpcs_)) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (UniqueId.Length != 0) hash ^= UniqueId.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified) hash ^= State.GetHashCode(); + hash ^= routingVpcs_.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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (UniqueId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(UniqueId); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) State); + } + routingVpcs_.WriteTo(output, _repeated_routingVpcs_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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (UniqueId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(UniqueId); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) State); + } + routingVpcs_.WriteTo(ref output, _repeated_routingVpcs_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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (UniqueId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UniqueId); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + size += routingVpcs_.CalculateSize(_repeated_routingVpcs_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Hub other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.UniqueId.Length != 0) { + UniqueId = other.UniqueId; + } + if (other.State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified) { + State = other.State; + } + routingVpcs_.Add(other.routingVpcs_); + _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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 66: { + UniqueId = input.ReadString(); + break; + } + case 72: { + State = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State) input.ReadEnum(); + break; + } + case 82: { + routingVpcs_.AddEntriesFrom(input, _repeated_routingVpcs_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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 66: { + UniqueId = input.ReadString(); + break; + } + case 72: { + State = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State) input.ReadEnum(); + break; + } + case 82: { + routingVpcs_.AddEntriesFrom(ref input, _repeated_routingVpcs_codec); + break; + } + } + } + } + #endif + + } + + /// + /// RoutingVPC contains information about the VPC networks associated + /// with the spokes of a Network Connectivity Center hub. + /// + public sealed partial class RoutingVPC : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoutingVPC()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 RoutingVPC() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoutingVPC(RoutingVPC other) : this() { + uri_ = other.uri_; + requiredForNewSiteToSiteDataTransferSpokes_ = other.requiredForNewSiteToSiteDataTransferSpokes_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoutingVPC Clone() { + return new RoutingVPC(this); + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 1; + private string uri_ = ""; + /// + /// The URI of the VPC network. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "required_for_new_site_to_site_data_transfer_spokes" field. + public const int RequiredForNewSiteToSiteDataTransferSpokesFieldNumber = 2; + private bool requiredForNewSiteToSiteDataTransferSpokes_; + /// + /// Output only. If true, indicates that this VPC network is currently + /// associated with spokes that use the data transfer feature (spokes where the + /// site_to_site_data_transfer field is set to true). If you create new spokes + /// that use data transfer, they must be associated with this VPC network. At + /// most, one VPC network will have this field set to true. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RequiredForNewSiteToSiteDataTransferSpokes { + get { return requiredForNewSiteToSiteDataTransferSpokes_; } + set { + requiredForNewSiteToSiteDataTransferSpokes_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoutingVPC); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoutingVPC other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uri != other.Uri) return false; + if (RequiredForNewSiteToSiteDataTransferSpokes != other.RequiredForNewSiteToSiteDataTransferSpokes) 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 (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (RequiredForNewSiteToSiteDataTransferSpokes != false) hash ^= RequiredForNewSiteToSiteDataTransferSpokes.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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + if (RequiredForNewSiteToSiteDataTransferSpokes != false) { + output.WriteRawTag(16); + output.WriteBool(RequiredForNewSiteToSiteDataTransferSpokes); + } + 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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + if (RequiredForNewSiteToSiteDataTransferSpokes != false) { + output.WriteRawTag(16); + output.WriteBool(RequiredForNewSiteToSiteDataTransferSpokes); + } + 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 (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (RequiredForNewSiteToSiteDataTransferSpokes != 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(RoutingVPC other) { + if (other == null) { + return; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.RequiredForNewSiteToSiteDataTransferSpokes != false) { + RequiredForNewSiteToSiteDataTransferSpokes = other.RequiredForNewSiteToSiteDataTransferSpokes; + } + _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: { + Uri = input.ReadString(); + break; + } + case 16: { + RequiredForNewSiteToSiteDataTransferSpokes = 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 10: { + Uri = input.ReadString(); + break; + } + case 16: { + RequiredForNewSiteToSiteDataTransferSpokes = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// A Network Connectivity Center spoke represents one or more network + /// connectivity resources. + /// + /// When you create a spoke, you associate it with a hub. You must also + /// identify a value for exactly one of the following fields: + /// + /// * linked_vpn_tunnels + /// * linked_interconnect_attachments + /// * linked_router_appliance_instances + /// + public sealed partial class Spoke : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Spoke()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 Spoke() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Spoke(Spoke other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + description_ = other.description_; + hub_ = other.hub_; + linkedVpnTunnels_ = other.linkedVpnTunnels_ != null ? other.linkedVpnTunnels_.Clone() : null; + linkedInterconnectAttachments_ = other.linkedInterconnectAttachments_ != null ? other.linkedInterconnectAttachments_.Clone() : null; + linkedRouterApplianceInstances_ = other.linkedRouterApplianceInstances_ != null ? other.linkedRouterApplianceInstances_.Clone() : null; + uniqueId_ = other.uniqueId_; + state_ = other.state_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Spoke Clone() { + return new Spoke(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The name of the spoke. Spoke names must be unique. They use the + /// following form: + /// `projects/{project_number}/locations/{region}/spokes/{spoke_id}` + /// + [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 "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the spoke was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time the spoke was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Optional labels in key:value format. For more information about labels, see + /// [Requirements for + /// labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private string description_ = ""; + /// + /// An optional description of the spoke. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "hub" field. + public const int HubFieldNumber = 6; + private string hub_ = ""; + /// + /// Immutable. The name of the hub that this spoke is attached to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Hub { + get { return hub_; } + set { + hub_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "linked_vpn_tunnels" field. + public const int LinkedVpnTunnelsFieldNumber = 17; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedVpnTunnels linkedVpnTunnels_; + /// + /// VPN tunnels that are associated with the spoke. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedVpnTunnels LinkedVpnTunnels { + get { return linkedVpnTunnels_; } + set { + linkedVpnTunnels_ = value; + } + } + + /// Field number for the "linked_interconnect_attachments" field. + public const int LinkedInterconnectAttachmentsFieldNumber = 18; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedInterconnectAttachments linkedInterconnectAttachments_; + /// + /// VLAN attachments that are associated with the spoke. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedInterconnectAttachments LinkedInterconnectAttachments { + get { return linkedInterconnectAttachments_; } + set { + linkedInterconnectAttachments_ = value; + } + } + + /// Field number for the "linked_router_appliance_instances" field. + public const int LinkedRouterApplianceInstancesFieldNumber = 19; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; + /// + /// Router appliance instances that are associated with the spoke. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedRouterApplianceInstances LinkedRouterApplianceInstances { + get { return linkedRouterApplianceInstances_; } + set { + linkedRouterApplianceInstances_ = value; + } + } + + /// Field number for the "unique_id" field. + public const int UniqueIdFieldNumber = 11; + private string uniqueId_ = ""; + /// + /// Output only. The Google-generated UUID for the spoke. This value is unique + /// across all spoke resources. If a spoke is deleted and another with the same + /// name is created, the new spoke is assigned a different unique_id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UniqueId { + get { return uniqueId_; } + set { + uniqueId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 15; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State state_ = global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified; + /// + /// Output only. The current lifecycle state of this spoke. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Spoke); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Spoke other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Description != other.Description) return false; + if (Hub != other.Hub) return false; + if (!object.Equals(LinkedVpnTunnels, other.LinkedVpnTunnels)) return false; + if (!object.Equals(LinkedInterconnectAttachments, other.LinkedInterconnectAttachments)) return false; + if (!object.Equals(LinkedRouterApplianceInstances, other.LinkedRouterApplianceInstances)) return false; + if (UniqueId != other.UniqueId) return false; + if (State != other.State) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (Hub.Length != 0) hash ^= Hub.GetHashCode(); + if (linkedVpnTunnels_ != null) hash ^= LinkedVpnTunnels.GetHashCode(); + if (linkedInterconnectAttachments_ != null) hash ^= LinkedInterconnectAttachments.GetHashCode(); + if (linkedRouterApplianceInstances_ != null) hash ^= LinkedRouterApplianceInstances.GetHashCode(); + if (UniqueId.Length != 0) hash ^= UniqueId.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified) hash ^= State.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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (Hub.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Hub); + } + if (UniqueId.Length != 0) { + output.WriteRawTag(90); + output.WriteString(UniqueId); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified) { + output.WriteRawTag(120); + output.WriteEnum((int) State); + } + if (linkedVpnTunnels_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(LinkedVpnTunnels); + } + if (linkedInterconnectAttachments_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(LinkedInterconnectAttachments); + } + if (linkedRouterApplianceInstances_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(LinkedRouterApplianceInstances); + } + 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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (Hub.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Hub); + } + if (UniqueId.Length != 0) { + output.WriteRawTag(90); + output.WriteString(UniqueId); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified) { + output.WriteRawTag(120); + output.WriteEnum((int) State); + } + if (linkedVpnTunnels_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(LinkedVpnTunnels); + } + if (linkedInterconnectAttachments_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(LinkedInterconnectAttachments); + } + if (linkedRouterApplianceInstances_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(LinkedRouterApplianceInstances); + } + 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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (Hub.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Hub); + } + if (linkedVpnTunnels_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(LinkedVpnTunnels); + } + if (linkedInterconnectAttachments_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(LinkedInterconnectAttachments); + } + if (linkedRouterApplianceInstances_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(LinkedRouterApplianceInstances); + } + if (UniqueId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UniqueId); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Spoke other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.Hub.Length != 0) { + Hub = other.Hub; + } + if (other.linkedVpnTunnels_ != null) { + if (linkedVpnTunnels_ == null) { + LinkedVpnTunnels = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedVpnTunnels(); + } + LinkedVpnTunnels.MergeFrom(other.LinkedVpnTunnels); + } + if (other.linkedInterconnectAttachments_ != null) { + if (linkedInterconnectAttachments_ == null) { + LinkedInterconnectAttachments = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedInterconnectAttachments(); + } + LinkedInterconnectAttachments.MergeFrom(other.LinkedInterconnectAttachments); + } + if (other.linkedRouterApplianceInstances_ != null) { + if (linkedRouterApplianceInstances_ == null) { + LinkedRouterApplianceInstances = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedRouterApplianceInstances(); + } + LinkedRouterApplianceInstances.MergeFrom(other.LinkedRouterApplianceInstances); + } + if (other.UniqueId.Length != 0) { + UniqueId = other.UniqueId; + } + if (other.State != global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State.Unspecified) { + State = other.State; + } + _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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 50: { + Hub = input.ReadString(); + break; + } + case 90: { + UniqueId = input.ReadString(); + break; + } + case 120: { + State = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State) input.ReadEnum(); + break; + } + case 138: { + if (linkedVpnTunnels_ == null) { + LinkedVpnTunnels = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedVpnTunnels(); + } + input.ReadMessage(LinkedVpnTunnels); + break; + } + case 146: { + if (linkedInterconnectAttachments_ == null) { + LinkedInterconnectAttachments = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedInterconnectAttachments(); + } + input.ReadMessage(LinkedInterconnectAttachments); + break; + } + case 154: { + if (linkedRouterApplianceInstances_ == null) { + LinkedRouterApplianceInstances = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedRouterApplianceInstances(); + } + input.ReadMessage(LinkedRouterApplianceInstances); + 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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 50: { + Hub = input.ReadString(); + break; + } + case 90: { + UniqueId = input.ReadString(); + break; + } + case 120: { + State = (global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.State) input.ReadEnum(); + break; + } + case 138: { + if (linkedVpnTunnels_ == null) { + LinkedVpnTunnels = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedVpnTunnels(); + } + input.ReadMessage(LinkedVpnTunnels); + break; + } + case 146: { + if (linkedInterconnectAttachments_ == null) { + LinkedInterconnectAttachments = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedInterconnectAttachments(); + } + input.ReadMessage(LinkedInterconnectAttachments); + break; + } + case 154: { + if (linkedRouterApplianceInstances_ == null) { + LinkedRouterApplianceInstances = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.LinkedRouterApplianceInstances(); + } + input.ReadMessage(LinkedRouterApplianceInstances); + break; + } + } + } + } + #endif + + } + + /// + /// A collection of Cloud VPN tunnel resources. These resources should be + /// redundant HA VPN tunnels that all advertise the same prefixes to Google + /// Cloud. Alternatively, in a passive/active configuration, all tunnels + /// should be capable of advertising the same prefixes. + /// + public sealed partial class LinkedVpnTunnels : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LinkedVpnTunnels()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 LinkedVpnTunnels() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LinkedVpnTunnels(LinkedVpnTunnels other) : this() { + uris_ = other.uris_.Clone(); + siteToSiteDataTransfer_ = other.siteToSiteDataTransfer_; + vpcNetwork_ = other.vpcNetwork_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LinkedVpnTunnels Clone() { + return new LinkedVpnTunnels(this); + } + + /// Field number for the "uris" field. + public const int UrisFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_uris_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField uris_ = new pbc::RepeatedField(); + /// + /// The URIs of linked VPN tunnel resources. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Uris { + get { return uris_; } + } + + /// Field number for the "site_to_site_data_transfer" field. + public const int SiteToSiteDataTransferFieldNumber = 2; + private bool siteToSiteDataTransfer_; + /// + /// A value that controls whether site-to-site data transfer is enabled for + /// these resources. Data transfer is available only in [supported + /// locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SiteToSiteDataTransfer { + get { return siteToSiteDataTransfer_; } + set { + siteToSiteDataTransfer_ = value; + } + } + + /// Field number for the "vpc_network" field. + public const int VpcNetworkFieldNumber = 3; + private string vpcNetwork_ = ""; + /// + /// Output only. The VPC network where these VPN tunnels are located. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VpcNetwork { + get { return vpcNetwork_; } + set { + vpcNetwork_ = 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 LinkedVpnTunnels); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LinkedVpnTunnels other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!uris_.Equals(other.uris_)) return false; + if (SiteToSiteDataTransfer != other.SiteToSiteDataTransfer) return false; + if (VpcNetwork != other.VpcNetwork) 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 ^= uris_.GetHashCode(); + if (SiteToSiteDataTransfer != false) hash ^= SiteToSiteDataTransfer.GetHashCode(); + if (VpcNetwork.Length != 0) hash ^= VpcNetwork.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 + uris_.WriteTo(output, _repeated_uris_codec); + if (SiteToSiteDataTransfer != false) { + output.WriteRawTag(16); + output.WriteBool(SiteToSiteDataTransfer); + } + if (VpcNetwork.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VpcNetwork); + } + 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) { + uris_.WriteTo(ref output, _repeated_uris_codec); + if (SiteToSiteDataTransfer != false) { + output.WriteRawTag(16); + output.WriteBool(SiteToSiteDataTransfer); + } + if (VpcNetwork.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VpcNetwork); + } + 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 += uris_.CalculateSize(_repeated_uris_codec); + if (SiteToSiteDataTransfer != false) { + size += 1 + 1; + } + if (VpcNetwork.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VpcNetwork); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LinkedVpnTunnels other) { + if (other == null) { + return; + } + uris_.Add(other.uris_); + if (other.SiteToSiteDataTransfer != false) { + SiteToSiteDataTransfer = other.SiteToSiteDataTransfer; + } + if (other.VpcNetwork.Length != 0) { + VpcNetwork = other.VpcNetwork; + } + _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: { + uris_.AddEntriesFrom(input, _repeated_uris_codec); + break; + } + case 16: { + SiteToSiteDataTransfer = input.ReadBool(); + break; + } + case 26: { + VpcNetwork = 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: { + uris_.AddEntriesFrom(ref input, _repeated_uris_codec); + break; + } + case 16: { + SiteToSiteDataTransfer = input.ReadBool(); + break; + } + case 26: { + VpcNetwork = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A collection of VLAN attachment resources. These resources should + /// be redundant attachments that all advertise the same prefixes to Google + /// Cloud. Alternatively, in active/passive configurations, all attachments + /// should be capable of advertising the same prefixes. + /// + public sealed partial class LinkedInterconnectAttachments : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LinkedInterconnectAttachments()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 LinkedInterconnectAttachments() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LinkedInterconnectAttachments(LinkedInterconnectAttachments other) : this() { + uris_ = other.uris_.Clone(); + siteToSiteDataTransfer_ = other.siteToSiteDataTransfer_; + vpcNetwork_ = other.vpcNetwork_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LinkedInterconnectAttachments Clone() { + return new LinkedInterconnectAttachments(this); + } + + /// Field number for the "uris" field. + public const int UrisFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_uris_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField uris_ = new pbc::RepeatedField(); + /// + /// The URIs of linked interconnect attachment resources + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Uris { + get { return uris_; } + } + + /// Field number for the "site_to_site_data_transfer" field. + public const int SiteToSiteDataTransferFieldNumber = 2; + private bool siteToSiteDataTransfer_; + /// + /// A value that controls whether site-to-site data transfer is enabled for + /// these resources. Data transfer is available only in [supported + /// locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SiteToSiteDataTransfer { + get { return siteToSiteDataTransfer_; } + set { + siteToSiteDataTransfer_ = value; + } + } + + /// Field number for the "vpc_network" field. + public const int VpcNetworkFieldNumber = 3; + private string vpcNetwork_ = ""; + /// + /// Output only. The VPC network where these VLAN attachments are located. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VpcNetwork { + get { return vpcNetwork_; } + set { + vpcNetwork_ = 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 LinkedInterconnectAttachments); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LinkedInterconnectAttachments other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!uris_.Equals(other.uris_)) return false; + if (SiteToSiteDataTransfer != other.SiteToSiteDataTransfer) return false; + if (VpcNetwork != other.VpcNetwork) 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 ^= uris_.GetHashCode(); + if (SiteToSiteDataTransfer != false) hash ^= SiteToSiteDataTransfer.GetHashCode(); + if (VpcNetwork.Length != 0) hash ^= VpcNetwork.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 + uris_.WriteTo(output, _repeated_uris_codec); + if (SiteToSiteDataTransfer != false) { + output.WriteRawTag(16); + output.WriteBool(SiteToSiteDataTransfer); + } + if (VpcNetwork.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VpcNetwork); + } + 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) { + uris_.WriteTo(ref output, _repeated_uris_codec); + if (SiteToSiteDataTransfer != false) { + output.WriteRawTag(16); + output.WriteBool(SiteToSiteDataTransfer); + } + if (VpcNetwork.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VpcNetwork); + } + 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 += uris_.CalculateSize(_repeated_uris_codec); + if (SiteToSiteDataTransfer != false) { + size += 1 + 1; + } + if (VpcNetwork.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VpcNetwork); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LinkedInterconnectAttachments other) { + if (other == null) { + return; + } + uris_.Add(other.uris_); + if (other.SiteToSiteDataTransfer != false) { + SiteToSiteDataTransfer = other.SiteToSiteDataTransfer; + } + if (other.VpcNetwork.Length != 0) { + VpcNetwork = other.VpcNetwork; + } + _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: { + uris_.AddEntriesFrom(input, _repeated_uris_codec); + break; + } + case 16: { + SiteToSiteDataTransfer = input.ReadBool(); + break; + } + case 26: { + VpcNetwork = 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: { + uris_.AddEntriesFrom(ref input, _repeated_uris_codec); + break; + } + case 16: { + SiteToSiteDataTransfer = input.ReadBool(); + break; + } + case 26: { + VpcNetwork = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A collection of router appliance instances. If you configure multiple router + /// appliance instances to receive data from the same set of sites outside of + /// Google Cloud, we recommend that you associate those instances with the same + /// spoke. + /// + public sealed partial class LinkedRouterApplianceInstances : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LinkedRouterApplianceInstances()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 LinkedRouterApplianceInstances() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LinkedRouterApplianceInstances(LinkedRouterApplianceInstances other) : this() { + instances_ = other.instances_.Clone(); + siteToSiteDataTransfer_ = other.siteToSiteDataTransfer_; + vpcNetwork_ = other.vpcNetwork_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LinkedRouterApplianceInstances Clone() { + return new LinkedRouterApplianceInstances(this); + } + + /// Field number for the "instances" field. + public const int InstancesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_instances_codec + = pb::FieldCodec.ForMessage(10, global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.RouterApplianceInstance.Parser); + private readonly pbc::RepeatedField instances_ = new pbc::RepeatedField(); + /// + /// The list of router appliance instances. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Instances { + get { return instances_; } + } + + /// Field number for the "site_to_site_data_transfer" field. + public const int SiteToSiteDataTransferFieldNumber = 2; + private bool siteToSiteDataTransfer_; + /// + /// A value that controls whether site-to-site data transfer is enabled for + /// these resources. Data transfer is available only in [supported + /// locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SiteToSiteDataTransfer { + get { return siteToSiteDataTransfer_; } + set { + siteToSiteDataTransfer_ = value; + } + } + + /// Field number for the "vpc_network" field. + public const int VpcNetworkFieldNumber = 3; + private string vpcNetwork_ = ""; + /// + /// Output only. The VPC network where these router appliance instances are + /// located. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VpcNetwork { + get { return vpcNetwork_; } + set { + vpcNetwork_ = 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 LinkedRouterApplianceInstances); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LinkedRouterApplianceInstances other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!instances_.Equals(other.instances_)) return false; + if (SiteToSiteDataTransfer != other.SiteToSiteDataTransfer) return false; + if (VpcNetwork != other.VpcNetwork) 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 ^= instances_.GetHashCode(); + if (SiteToSiteDataTransfer != false) hash ^= SiteToSiteDataTransfer.GetHashCode(); + if (VpcNetwork.Length != 0) hash ^= VpcNetwork.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 + instances_.WriteTo(output, _repeated_instances_codec); + if (SiteToSiteDataTransfer != false) { + output.WriteRawTag(16); + output.WriteBool(SiteToSiteDataTransfer); + } + if (VpcNetwork.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VpcNetwork); + } + 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) { + instances_.WriteTo(ref output, _repeated_instances_codec); + if (SiteToSiteDataTransfer != false) { + output.WriteRawTag(16); + output.WriteBool(SiteToSiteDataTransfer); + } + if (VpcNetwork.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VpcNetwork); + } + 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 += instances_.CalculateSize(_repeated_instances_codec); + if (SiteToSiteDataTransfer != false) { + size += 1 + 1; + } + if (VpcNetwork.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VpcNetwork); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LinkedRouterApplianceInstances other) { + if (other == null) { + return; + } + instances_.Add(other.instances_); + if (other.SiteToSiteDataTransfer != false) { + SiteToSiteDataTransfer = other.SiteToSiteDataTransfer; + } + if (other.VpcNetwork.Length != 0) { + VpcNetwork = other.VpcNetwork; + } + _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: { + instances_.AddEntriesFrom(input, _repeated_instances_codec); + break; + } + case 16: { + SiteToSiteDataTransfer = input.ReadBool(); + break; + } + case 26: { + VpcNetwork = 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: { + instances_.AddEntriesFrom(ref input, _repeated_instances_codec); + break; + } + case 16: { + SiteToSiteDataTransfer = input.ReadBool(); + break; + } + case 26: { + VpcNetwork = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A router appliance instance is a Compute Engine virtual machine (VM) instance + /// that acts as a BGP speaker. A router appliance instance is specified by the + /// URI of the VM and the internal IP address of one of the VM's network + /// interfaces. + /// + public sealed partial class RouterApplianceInstance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RouterApplianceInstance()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 RouterApplianceInstance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RouterApplianceInstance(RouterApplianceInstance other) : this() { + virtualMachine_ = other.virtualMachine_; + ipAddress_ = other.ipAddress_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RouterApplianceInstance Clone() { + return new RouterApplianceInstance(this); + } + + /// Field number for the "virtual_machine" field. + public const int VirtualMachineFieldNumber = 1; + private string virtualMachine_ = ""; + /// + /// The URI of the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VirtualMachine { + get { return virtualMachine_; } + set { + virtualMachine_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ip_address" field. + public const int IpAddressFieldNumber = 3; + private string ipAddress_ = ""; + /// + /// The IP address on the VM to use for peering. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IpAddress { + get { return ipAddress_; } + set { + ipAddress_ = 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 RouterApplianceInstance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RouterApplianceInstance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (VirtualMachine != other.VirtualMachine) return false; + if (IpAddress != other.IpAddress) 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 (VirtualMachine.Length != 0) hash ^= VirtualMachine.GetHashCode(); + if (IpAddress.Length != 0) hash ^= IpAddress.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 (VirtualMachine.Length != 0) { + output.WriteRawTag(10); + output.WriteString(VirtualMachine); + } + if (IpAddress.Length != 0) { + output.WriteRawTag(26); + output.WriteString(IpAddress); + } + 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 (VirtualMachine.Length != 0) { + output.WriteRawTag(10); + output.WriteString(VirtualMachine); + } + if (IpAddress.Length != 0) { + output.WriteRawTag(26); + output.WriteString(IpAddress); + } + 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 (VirtualMachine.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VirtualMachine); + } + if (IpAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IpAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RouterApplianceInstance other) { + if (other == null) { + return; + } + if (other.VirtualMachine.Length != 0) { + VirtualMachine = other.VirtualMachine; + } + if (other.IpAddress.Length != 0) { + IpAddress = other.IpAddress; + } + _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: { + VirtualMachine = input.ReadString(); + break; + } + case 26: { + IpAddress = 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: { + VirtualMachine = input.ReadString(); + break; + } + case 26: { + IpAddress = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all ServiceClass events. + /// + public sealed partial class ServiceClassEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceClassEventData()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 ServiceClassEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceClassEventData(ServiceClassEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceClassEventData Clone() { + return new ServiceClassEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceClass payload_; + /// + /// Optional. The ServiceClass event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceClass Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServiceClassEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceClassEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceClassEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceClass(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceClass(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceClass(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all ServiceConnectionToken events. + /// + public sealed partial class ServiceConnectionTokenEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceConnectionTokenEventData()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 ServiceConnectionTokenEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionTokenEventData(ServiceConnectionTokenEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionTokenEventData Clone() { + return new ServiceConnectionTokenEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionToken payload_; + /// + /// Optional. The ServiceConnectionToken event payload. Unset for deletion + /// events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionToken Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServiceConnectionTokenEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceConnectionTokenEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceConnectionTokenEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionToken(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionToken(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionToken(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all ServiceConnectionMap events. + /// + public sealed partial class ServiceConnectionMapEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceConnectionMapEventData()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.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 ServiceConnectionMapEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionMapEventData(ServiceConnectionMapEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionMapEventData Clone() { + return new ServiceConnectionMapEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap payload_; + /// + /// Optional. The ServiceConnectionMap event payload. Unset for deletion + /// events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServiceConnectionMapEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceConnectionMapEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceConnectionMapEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionMap(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Hub events. + /// + public sealed partial class HubEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HubEventData()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.Descriptor.MessageTypes[14]; } + } + + [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 HubEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HubEventData(HubEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HubEventData Clone() { + return new HubEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Hub payload_; + /// + /// Optional. The Hub event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Hub Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HubEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HubEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HubEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Hub(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Hub(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Hub(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Spoke events. + /// + public sealed partial class SpokeEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpokeEventData()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.Descriptor.MessageTypes[15]; } + } + + [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 SpokeEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SpokeEventData(SpokeEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SpokeEventData Clone() { + return new SpokeEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Spoke payload_; + /// + /// Optional. The Spoke event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Spoke Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SpokeEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SpokeEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SpokeEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Spoke(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Spoke(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.Spoke(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all ServiceConnectionPolicy events. + /// + public sealed partial class ServiceConnectionPolicyEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceConnectionPolicyEventData()); + 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::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.DataReflection.Descriptor.MessageTypes[16]; } + } + + [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 ServiceConnectionPolicyEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionPolicyEventData(ServiceConnectionPolicyEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceConnectionPolicyEventData Clone() { + return new ServiceConnectionPolicyEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy payload_; + /// + /// Optional. The ServiceConnectionPolicy event payload. Unset for deletion + /// events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServiceConnectionPolicyEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceConnectionPolicyEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceConnectionPolicyEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ExtensionAttributes.g.cs b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ExtensionAttributes.g.cs new file mode 100644 index 0000000..e477746 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ExtensionAttributes.g.cs @@ -0,0 +1,99 @@ +// Copyright 2023, 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 +// +// https://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. + +using CloudNative.CloudEvents; + +namespace Google.Events.Protobuf.Cloud.NetworkConnectivity.V1 +{ + /// Extension attributes for Google.Events.Protobuf.Cloud.NetworkConnectivity.V1 events. + public static class ExtensionAttributes + { + /// + /// The resource ID of the Hub triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.networkconnectivity.hub.v1.created + /// google.cloud.networkconnectivity.hub.v1.updated + /// google.cloud.networkconnectivity.hub.v1.deleted + /// + /// + public static CloudEventAttribute Hub { get; } = CloudEventAttribute.CreateExtension("hub", CloudEventAttributeType.String); + + /// + /// The resource ID of the ServiceClass triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.networkconnectivity.serviceClass.v1.updated + /// google.cloud.networkconnectivity.serviceClass.v1.deleted + /// + /// + public static CloudEventAttribute ServiceClass { get; } = CloudEventAttribute.CreateExtension("serviceclass", CloudEventAttributeType.String); + + /// + /// The resource ID of the ServiceConnectionMap triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.networkconnectivity.serviceConnectionMap.v1.created + /// google.cloud.networkconnectivity.serviceConnectionMap.v1.updated + /// google.cloud.networkconnectivity.serviceConnectionMap.v1.deleted + /// + /// + public static CloudEventAttribute ServiceConnectionMap { get; } = CloudEventAttribute.CreateExtension("serviceconnectionmap", CloudEventAttributeType.String); + + /// + /// The resource ID of the ServiceConnectionPolicy triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.networkconnectivity.serviceConnectionPolicy.v1.created + /// google.cloud.networkconnectivity.serviceConnectionPolicy.v1.updated + /// google.cloud.networkconnectivity.serviceConnectionPolicy.v1.deleted + /// + /// + public static CloudEventAttribute ServiceConnectionPolicy { get; } = CloudEventAttribute.CreateExtension("serviceconnectionpolicy", CloudEventAttributeType.String); + + /// + /// The resource ID of the ServiceConnectionToken triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.networkconnectivity.serviceConnectionToken.v1.created + /// google.cloud.networkconnectivity.serviceConnectionToken.v1.deleted + /// + /// + public static CloudEventAttribute ServiceConnectionToken { get; } = CloudEventAttribute.CreateExtension("serviceconnectiontoken", CloudEventAttributeType.String); + + /// + /// The resource ID of the Spoke triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.networkconnectivity.spoke.v1.created + /// google.cloud.networkconnectivity.spoke.v1.updated + /// google.cloud.networkconnectivity.spoke.v1.deleted + /// + /// + public static CloudEventAttribute Spoke { get; } = CloudEventAttribute.CreateExtension("spoke", CloudEventAttributeType.String); + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/HubEventData.g.cs b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/HubEventData.g.cs new file mode 100644 index 0000000..daf8264 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/HubEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.NetworkConnectivity.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class HubEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.networkconnectivity.hub.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.networkconnectivity.hub.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.networkconnectivity.hub.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceClassEventData.g.cs b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceClassEventData.g.cs new file mode 100644 index 0000000..8548580 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceClassEventData.g.cs @@ -0,0 +1,27 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.NetworkConnectivity.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class ServiceClassEventData + { + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.networkconnectivity.serviceClass.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.networkconnectivity.serviceClass.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionMapEventData.g.cs b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionMapEventData.g.cs new file mode 100644 index 0000000..35ecaa0 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionMapEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.NetworkConnectivity.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class ServiceConnectionMapEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.networkconnectivity.serviceConnectionMap.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.networkconnectivity.serviceConnectionMap.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.networkconnectivity.serviceConnectionMap.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionPolicyEventData.g.cs b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionPolicyEventData.g.cs new file mode 100644 index 0000000..91b98a0 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionPolicyEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.NetworkConnectivity.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class ServiceConnectionPolicyEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.networkconnectivity.serviceConnectionPolicy.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.networkconnectivity.serviceConnectionPolicy.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.networkconnectivity.serviceConnectionPolicy.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionTokenEventData.g.cs b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionTokenEventData.g.cs new file mode 100644 index 0000000..15d3c72 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/ServiceConnectionTokenEventData.g.cs @@ -0,0 +1,27 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.NetworkConnectivity.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class ServiceConnectionTokenEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.networkconnectivity.serviceConnectionToken.v1.created"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.networkconnectivity.serviceConnectionToken.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/SpokeEventData.g.cs b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/SpokeEventData.g.cs new file mode 100644 index 0000000..9cf25ca --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/NetworkConnectivity/V1/SpokeEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.NetworkConnectivity.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class SpokeEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.networkconnectivity.spoke.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.networkconnectivity.spoke.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.networkconnectivity.spoke.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/ConnectivityTestEventData.g.cs b/src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/ConnectivityTestEventData.g.cs new file mode 100644 index 0000000..a25448c --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/ConnectivityTestEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.NetworkManagement.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class ConnectivityTestEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.networkmanagement.connectivityTest.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.networkmanagement.connectivityTest.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.networkmanagement.connectivityTest.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/Data.g.cs b/src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/Data.g.cs new file mode 100644 index 0000000..16c3467 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/Data.g.cs @@ -0,0 +1,12959 @@ +// Copyright 2023, 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 +// +// https://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. + +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/networkmanagement/v1/data.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 Google.Events.Protobuf.Cloud.NetworkManagement.V1 { + + /// Holder for reflection information generated from google/events/cloud/networkmanagement/v1/data.proto + public static partial class DataReflection { + + #region Descriptor + /// File descriptor for google/events/cloud/networkmanagement/v1/data.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjNnb29nbGUvZXZlbnRzL2Nsb3VkL25ldHdvcmttYW5hZ2VtZW50L3YxL2Rh", + "dGEucHJvdG8SKGdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29ya21hbmFnZW1l", + "bnQudjEaH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aF2dvb2ds", + "ZS9ycGMvc3RhdHVzLnByb3RvIpUBCgVUcmFjZRJNCg1lbmRwb2ludF9pbmZv", + "GAEgASgLMjYuZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVu", + "dC52MS5FbmRwb2ludEluZm8SPQoFc3RlcHMYAiADKAsyLi5nb29nbGUuZXZl", + "bnRzLmNsb3VkLm5ldHdvcmttYW5hZ2VtZW50LnYxLlN0ZXAivhMKBFN0ZXAS", + "EwoLZGVzY3JpcHRpb24YASABKAkSQwoFc3RhdGUYAiABKA4yNC5nb29nbGUu", + "ZXZlbnRzLmNsb3VkLm5ldHdvcmttYW5hZ2VtZW50LnYxLlN0ZXAuU3RhdGUS", + "EwoLY2F1c2VzX2Ryb3AYAyABKAgSEgoKcHJvamVjdF9pZBgEIAEoCRJKCghp", + "bnN0YW5jZRgFIAEoCzI2Lmdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29ya21h", + "bmFnZW1lbnQudjEuSW5zdGFuY2VJbmZvSAASSgoIZmlyZXdhbGwYBiABKAsy", + "Ni5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmttYW5hZ2VtZW50LnYxLkZp", + "cmV3YWxsSW5mb0gAEkQKBXJvdXRlGAcgASgLMjMuZ29vZ2xlLmV2ZW50cy5j", + "bG91ZC5uZXR3b3JrbWFuYWdlbWVudC52MS5Sb3V0ZUluZm9IABJKCghlbmRw", + "b2ludBgIIAEoCzI2Lmdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29ya21hbmFn", + "ZW1lbnQudjEuRW5kcG9pbnRJbmZvSAASVQoOZ29vZ2xlX3NlcnZpY2UYGCAB", + "KAsyOy5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmttYW5hZ2VtZW50LnYx", + "Lkdvb2dsZVNlcnZpY2VJbmZvSAASVwoPZm9yd2FyZGluZ19ydWxlGAkgASgL", + "MjwuZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVudC52MS5G", + "b3J3YXJkaW5nUnVsZUluZm9IABJPCgt2cG5fZ2F0ZXdheRgKIAEoCzI4Lmdv", + "b2dsZS5ldmVudHMuY2xvdWQubmV0d29ya21hbmFnZW1lbnQudjEuVnBuR2F0", + "ZXdheUluZm9IABJNCgp2cG5fdHVubmVsGAsgASgLMjcuZ29vZ2xlLmV2ZW50", + "cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVudC52MS5WcG5UdW5uZWxJbmZvSAAS", + "UwoNdnBjX2Nvbm5lY3RvchgVIAEoCzI6Lmdvb2dsZS5ldmVudHMuY2xvdWQu", + "bmV0d29ya21hbmFnZW1lbnQudjEuVnBjQ29ubmVjdG9ySW5mb0gAEkgKB2Rl", + "bGl2ZXIYDCABKAsyNS5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmttYW5h", + "Z2VtZW50LnYxLkRlbGl2ZXJJbmZvSAASSAoHZm9yd2FyZBgNIAEoCzI1Lmdv", + "b2dsZS5ldmVudHMuY2xvdWQubmV0d29ya21hbmFnZW1lbnQudjEuRm9yd2Fy", + "ZEluZm9IABJECgVhYm9ydBgOIAEoCzIzLmdvb2dsZS5ldmVudHMuY2xvdWQu", + "bmV0d29ya21hbmFnZW1lbnQudjEuQWJvcnRJbmZvSAASQgoEZHJvcBgPIAEo", + "CzIyLmdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29ya21hbmFnZW1lbnQudjEu", + "RHJvcEluZm9IABJTCg1sb2FkX2JhbGFuY2VyGBAgASgLMjouZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVudC52MS5Mb2FkQmFsYW5jZXJJ", + "bmZvSAASSAoHbmV0d29yaxgRIAEoCzI1Lmdvb2dsZS5ldmVudHMuY2xvdWQu", + "bmV0d29ya21hbmFnZW1lbnQudjEuTmV0d29ya0luZm9IABJNCgpna2VfbWFz", + "dGVyGBIgASgLMjcuZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrbWFuYWdl", + "bWVudC52MS5HS0VNYXN0ZXJJbmZvSAASXAoSY2xvdWRfc3FsX2luc3RhbmNl", + "GBMgASgLMj4uZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVu", + "dC52MS5DbG91ZFNRTEluc3RhbmNlSW5mb0gAElUKDmNsb3VkX2Z1bmN0aW9u", + "GBQgASgLMjsuZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVu", + "dC52MS5DbG91ZEZ1bmN0aW9uSW5mb0gAElwKEmFwcF9lbmdpbmVfdmVyc2lv", + "bhgWIAEoCzI+Lmdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29ya21hbmFnZW1l", + "bnQudjEuQXBwRW5naW5lVmVyc2lvbkluZm9IABJcChJjbG91ZF9ydW5fcmV2", + "aXNpb24YFyABKAsyPi5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmttYW5h", + "Z2VtZW50LnYxLkNsb3VkUnVuUmV2aXNpb25JbmZvSAAi2QUKBVN0YXRlEhUK", + "EVNUQVRFX1VOU1BFQ0lGSUVEEAASFwoTU1RBUlRfRlJPTV9JTlNUQU5DRRAB", + "EhcKE1NUQVJUX0ZST01fSU5URVJORVQQAhIdChlTVEFSVF9GUk9NX0dPT0dM", + "RV9TRVJWSUNFEBsSHgoaU1RBUlRfRlJPTV9QUklWQVRFX05FVFdPUksQAxIZ", + "ChVTVEFSVF9GUk9NX0dLRV9NQVNURVIQFRIhCh1TVEFSVF9GUk9NX0NMT1VE", + "X1NRTF9JTlNUQU5DRRAWEh0KGVNUQVJUX0ZST01fQ0xPVURfRlVOQ1RJT04Q", + "FxIhCh1TVEFSVF9GUk9NX0FQUF9FTkdJTkVfVkVSU0lPThAZEiEKHVNUQVJU", + "X0ZST01fQ0xPVURfUlVOX1JFVklTSU9OEBoSHwobQVBQTFlfSU5HUkVTU19G", + "SVJFV0FMTF9SVUxFEAQSHgoaQVBQTFlfRUdSRVNTX0ZJUkVXQUxMX1JVTEUQ", + "BRIPCgtBUFBMWV9ST1VURRAGEhkKFUFQUExZX0ZPUldBUkRJTkdfUlVMRRAH", + "EhUKEVNQT09GSU5HX0FQUFJPVkVEEAgSFgoSQVJSSVZFX0FUX0lOU1RBTkNF", + "EAkSJAogQVJSSVZFX0FUX0lOVEVSTkFMX0xPQURfQkFMQU5DRVIQChIkCiBB", + "UlJJVkVfQVRfRVhURVJOQUxfTE9BRF9CQUxBTkNFUhALEhkKFUFSUklWRV9B", + "VF9WUE5fR0FURVdBWRAMEhgKFEFSUklWRV9BVF9WUE5fVFVOTkVMEA0SGwoX", + "QVJSSVZFX0FUX1ZQQ19DT05ORUNUT1IQGBIHCgNOQVQQDhIUChBQUk9YWV9D", + "T05ORUNUSU9OEA8SCwoHREVMSVZFUhAQEggKBERST1AQERILCgdGT1JXQVJE", + "EBISCQoFQUJPUlQQExIdChlWSUVXRVJfUEVSTUlTU0lPTl9NSVNTSU5HEBRC", + "CwoJc3RlcF9pbmZvIrIBCgxJbnN0YW5jZUluZm8SFAoMZGlzcGxheV9uYW1l", + "GAEgASgJEgsKA3VyaRgCIAEoCRIRCglpbnRlcmZhY2UYAyABKAkSEwoLbmV0", + "d29ya191cmkYBCABKAkSEwoLaW50ZXJuYWxfaXAYBSABKAkSEwoLZXh0ZXJu", + "YWxfaXAYBiABKAkSFAoMbmV0d29ya190YWdzGAcgAygJEhcKD3NlcnZpY2Vf", + "YWNjb3VudBgIIAEoCSJKCgtOZXR3b3JrSW5mbxIUCgxkaXNwbGF5X25hbWUY", + "ASABKAkSCwoDdXJpGAIgASgJEhgKEG1hdGNoZWRfaXBfcmFuZ2UYBCABKAki", + "jwQKDEZpcmV3YWxsSW5mbxIUCgxkaXNwbGF5X25hbWUYASABKAkSCwoDdXJp", + "GAIgASgJEhEKCWRpcmVjdGlvbhgDIAEoCRIOCgZhY3Rpb24YBCABKAkSEAoI", + "cHJpb3JpdHkYBSABKAUSEwoLbmV0d29ya191cmkYBiABKAkSEwoLdGFyZ2V0", + "X3RhZ3MYByADKAkSHwoXdGFyZ2V0X3NlcnZpY2VfYWNjb3VudHMYCCADKAkS", + "DgoGcG9saWN5GAkgASgJEmMKEmZpcmV3YWxsX3J1bGVfdHlwZRgKIAEoDjJH", + "Lmdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29ya21hbmFnZW1lbnQudjEuRmly", + "ZXdhbGxJbmZvLkZpcmV3YWxsUnVsZVR5cGUi5gEKEEZpcmV3YWxsUnVsZVR5", + "cGUSIgoeRklSRVdBTExfUlVMRV9UWVBFX1VOU1BFQ0lGSUVEEAASJQohSElF", + "UkFSQ0hJQ0FMX0ZJUkVXQUxMX1BPTElDWV9SVUxFEAESFQoRVlBDX0ZJUkVX", + "QUxMX1JVTEUQAhIdChlJTVBMSUVEX1ZQQ19GSVJFV0FMTF9SVUxFEAMSLwor", + "U0VSVkVSTEVTU19WUENfQUNDRVNTX01BTkFHRURfRklSRVdBTExfUlVMRRAE", + "EiAKHE5FVFdPUktfRklSRVdBTExfUE9MSUNZX1JVTEUQBSLzBgoJUm91dGVJ", + "bmZvElEKCnJvdXRlX3R5cGUYCCABKA4yPS5nb29nbGUuZXZlbnRzLmNsb3Vk", + "Lm5ldHdvcmttYW5hZ2VtZW50LnYxLlJvdXRlSW5mby5Sb3V0ZVR5cGUSVgoN", + "bmV4dF9ob3BfdHlwZRgJIAEoDjI/Lmdvb2dsZS5ldmVudHMuY2xvdWQubmV0", + "d29ya21hbmFnZW1lbnQudjEuUm91dGVJbmZvLk5leHRIb3BUeXBlEhQKDGRp", + "c3BsYXlfbmFtZRgBIAEoCRILCgN1cmkYAiABKAkSFQoNZGVzdF9pcF9yYW5n", + "ZRgDIAEoCRIQCghuZXh0X2hvcBgEIAEoCRITCgtuZXR3b3JrX3VyaRgFIAEo", + "CRIQCghwcmlvcml0eRgGIAEoBRIVCg1pbnN0YW5jZV90YWdzGAcgAygJEhQK", + "DHNyY19pcF9yYW5nZRgKIAEoCRIYChBkZXN0X3BvcnRfcmFuZ2VzGAsgAygJ", + "EhcKD3NyY19wb3J0X3JhbmdlcxgMIAMoCRIRCglwcm90b2NvbHMYDSADKAki", + "mwEKCVJvdXRlVHlwZRIaChZST1VURV9UWVBFX1VOU1BFQ0lGSUVEEAASCgoG", + "U1VCTkVUEAESCgoGU1RBVElDEAISCwoHRFlOQU1JQxADEhIKDlBFRVJJTkdf", + "U1VCTkVUEAQSEgoOUEVFUklOR19TVEFUSUMQBRITCg9QRUVSSU5HX0RZTkFN", + "SUMQBhIQCgxQT0xJQ1lfQkFTRUQQByK2AgoLTmV4dEhvcFR5cGUSHQoZTkVY", + "VF9IT1BfVFlQRV9VTlNQRUNJRklFRBAAEg8KC05FWFRfSE9QX0lQEAESFQoR", + "TkVYVF9IT1BfSU5TVEFOQ0UQAhIUChBORVhUX0hPUF9ORVRXT1JLEAMSFAoQ", + "TkVYVF9IT1BfUEVFUklORxAEEhkKFU5FWFRfSE9QX0lOVEVSQ09OTkVDVBAF", + "EhcKE05FWFRfSE9QX1ZQTl9UVU5ORUwQBhIYChRORVhUX0hPUF9WUE5fR0FU", + "RVdBWRAHEh0KGU5FWFRfSE9QX0lOVEVSTkVUX0dBVEVXQVkQCBIWChJORVhU", + "X0hPUF9CTEFDS0hPTEUQCRIQCgxORVhUX0hPUF9JTEIQChIdChlORVhUX0hP", + "UF9ST1VURVJfQVBQTElBTkNFEAsiigIKEUdvb2dsZVNlcnZpY2VJbmZvEhEK", + "CXNvdXJjZV9pcBgBIAEoCRJqChNnb29nbGVfc2VydmljZV90eXBlGAIgASgO", + "Mk0uZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVudC52MS5H", + "b29nbGVTZXJ2aWNlSW5mby5Hb29nbGVTZXJ2aWNlVHlwZSJ2ChFHb29nbGVT", + "ZXJ2aWNlVHlwZRIjCh9HT09HTEVfU0VSVklDRV9UWVBFX1VOU1BFQ0lGSUVE", + "EAASBwoDSUFQEAESJAogR0ZFX1BST1hZX09SX0hFQUxUSF9DSEVDS19QUk9C", + "RVIQAhINCglDTE9VRF9ETlMQAyKfAQoSRm9yd2FyZGluZ1J1bGVJbmZvEhQK", + "DGRpc3BsYXlfbmFtZRgBIAEoCRILCgN1cmkYAiABKAkSGAoQbWF0Y2hlZF9w", + "cm90b2NvbBgDIAEoCRIaChJtYXRjaGVkX3BvcnRfcmFuZ2UYBiABKAkSCwoD", + "dmlwGAQgASgJEg4KBnRhcmdldBgFIAEoCRITCgtuZXR3b3JrX3VyaRgHIAEo", + "CSLTBAoQTG9hZEJhbGFuY2VySW5mbxJnChJsb2FkX2JhbGFuY2VyX3R5cGUY", + "ASABKA4ySy5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmttYW5hZ2VtZW50", + "LnYxLkxvYWRCYWxhbmNlckluZm8uTG9hZEJhbGFuY2VyVHlwZRIYChBoZWFs", + "dGhfY2hlY2tfdXJpGAIgASgJEk8KCGJhY2tlbmRzGAMgAygLMj0uZ29vZ2xl", + "LmV2ZW50cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVudC52MS5Mb2FkQmFsYW5j", + "ZXJCYWNrZW5kElwKDGJhY2tlbmRfdHlwZRgEIAEoDjJGLmdvb2dsZS5ldmVu", + "dHMuY2xvdWQubmV0d29ya21hbmFnZW1lbnQudjEuTG9hZEJhbGFuY2VySW5m", + "by5CYWNrZW5kVHlwZRITCgtiYWNrZW5kX3VyaRgFIAEoCSKPAQoQTG9hZEJh", + "bGFuY2VyVHlwZRIiCh5MT0FEX0JBTEFOQ0VSX1RZUEVfVU5TUEVDSUZJRUQQ", + "ABIUChBJTlRFUk5BTF9UQ1BfVURQEAESEwoPTkVUV09SS19UQ1BfVURQEAIS", + "DgoKSFRUUF9QUk9YWRADEg0KCVRDUF9QUk9YWRAEEg0KCVNTTF9QUk9YWRAF", + "ImYKC0JhY2tlbmRUeXBlEhwKGEJBQ0tFTkRfVFlQRV9VTlNQRUNJRklFRBAA", + "EhMKD0JBQ0tFTkRfU0VSVklDRRABEg8KC1RBUkdFVF9QT09MEAISEwoPVEFS", + "R0VUX0lOU1RBTkNFEAMi/QIKE0xvYWRCYWxhbmNlckJhY2tlbmQSFAoMZGlz", + "cGxheV9uYW1lGAEgASgJEgsKA3VyaRgCIAEoCRJ7ChtoZWFsdGhfY2hlY2tf", + "ZmlyZXdhbGxfc3RhdGUYAyABKA4yVi5nb29nbGUuZXZlbnRzLmNsb3VkLm5l", + "dHdvcmttYW5hZ2VtZW50LnYxLkxvYWRCYWxhbmNlckJhY2tlbmQuSGVhbHRo", + "Q2hlY2tGaXJld2FsbFN0YXRlEiwKJGhlYWx0aF9jaGVja19hbGxvd2luZ19m", + "aXJld2FsbF9ydWxlcxgEIAMoCRIsCiRoZWFsdGhfY2hlY2tfYmxvY2tpbmdf", + "ZmlyZXdhbGxfcnVsZXMYBSADKAkiagoYSGVhbHRoQ2hlY2tGaXJld2FsbFN0", + "YXRlEisKJ0hFQUxUSF9DSEVDS19GSVJFV0FMTF9TVEFURV9VTlNQRUNJRklF", + "RBAAEg4KCkNPTkZJR1VSRUQQARIRCg1NSVNDT05GSUdVUkVEEAIihAEKDlZw", + "bkdhdGV3YXlJbmZvEhQKDGRpc3BsYXlfbmFtZRgBIAEoCRILCgN1cmkYAiAB", + "KAkSEwoLbmV0d29ya191cmkYAyABKAkSEgoKaXBfYWRkcmVzcxgEIAEoCRIW", + "Cg52cG5fdHVubmVsX3VyaRgFIAEoCRIOCgZyZWdpb24YBiABKAki9QIKDVZw", + "blR1bm5lbEluZm8SFAoMZGlzcGxheV9uYW1lGAEgASgJEgsKA3VyaRgCIAEo", + "CRIWCg5zb3VyY2VfZ2F0ZXdheRgDIAEoCRIWCg5yZW1vdGVfZ2F0ZXdheRgE", + "IAEoCRIZChFyZW1vdGVfZ2F0ZXdheV9pcBgFIAEoCRIZChFzb3VyY2VfZ2F0", + "ZXdheV9pcBgGIAEoCRITCgtuZXR3b3JrX3VyaRgHIAEoCRIOCgZyZWdpb24Y", + "CCABKAkSWQoMcm91dGluZ190eXBlGAkgASgOMkMuZ29vZ2xlLmV2ZW50cy5j", + "bG91ZC5uZXR3b3JrbWFuYWdlbWVudC52MS5WcG5UdW5uZWxJbmZvLlJvdXRp", + "bmdUeXBlIlsKC1JvdXRpbmdUeXBlEhwKGFJPVVRJTkdfVFlQRV9VTlNQRUNJ", + "RklFRBAAEg8KC1JPVVRFX0JBU0VEEAESEAoMUE9MSUNZX0JBU0VEEAISCwoH", + "RFlOQU1JQxADIrcBCgxFbmRwb2ludEluZm8SEQoJc291cmNlX2lwGAEgASgJ", + "EhYKDmRlc3RpbmF0aW9uX2lwGAIgASgJEhAKCHByb3RvY29sGAMgASgJEhMK", + "C3NvdXJjZV9wb3J0GAQgASgFEhgKEGRlc3RpbmF0aW9uX3BvcnQYBSABKAUS", + "GgoSc291cmNlX25ldHdvcmtfdXJpGAYgASgJEh8KF2Rlc3RpbmF0aW9uX25l", + "dHdvcmtfdXJpGAcgASgJIqcCCgtEZWxpdmVySW5mbxJMCgZ0YXJnZXQYASAB", + "KA4yPC5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmttYW5hZ2VtZW50LnYx", + "LkRlbGl2ZXJJbmZvLlRhcmdldBIUCgxyZXNvdXJjZV91cmkYAiABKAkiswEK", + "BlRhcmdldBIWChJUQVJHRVRfVU5TUEVDSUZJRUQQABIMCghJTlNUQU5DRRAB", + "EgwKCElOVEVSTkVUEAISDgoKR09PR0xFX0FQSRADEg4KCkdLRV9NQVNURVIQ", + "BBIWChJDTE9VRF9TUUxfSU5TVEFOQ0UQBRIZChVQU0NfUFVCTElTSEVEX1NF", + "UlZJQ0UQBhISCg5QU0NfR09PR0xFX0FQSRAHEg4KClBTQ19WUENfU0MQCCKp", + "AgoLRm9yd2FyZEluZm8STAoGdGFyZ2V0GAEgASgOMjwuZ29vZ2xlLmV2ZW50", + "cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVudC52MS5Gb3J3YXJkSW5mby5UYXJn", + "ZXQSFAoMcmVzb3VyY2VfdXJpGAIgASgJIrUBCgZUYXJnZXQSFgoSVEFSR0VU", + "X1VOU1BFQ0lGSUVEEAASDwoLUEVFUklOR19WUEMQARIPCgtWUE5fR0FURVdB", + "WRACEhAKDElOVEVSQ09OTkVDVBADEg4KCkdLRV9NQVNURVIQBBIiCh5JTVBP", + "UlRFRF9DVVNUT01fUk9VVEVfTkVYVF9IT1AQBRIWChJDTE9VRF9TUUxfSU5T", + "VEFOQ0UQBhITCg9BTk9USEVSX1BST0pFQ1QQByKBBQoJQWJvcnRJbmZvEkgK", + "BWNhdXNlGAEgASgOMjkuZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrbWFu", + "YWdlbWVudC52MS5BYm9ydEluZm8uQ2F1c2USFAoMcmVzb3VyY2VfdXJpGAIg", + "ASgJEiMKG3Byb2plY3RzX21pc3NpbmdfcGVybWlzc2lvbhgDIAMoCSLuAwoF", + "Q2F1c2USFQoRQ0FVU0VfVU5TUEVDSUZJRUQQABITCg9VTktOT1dOX05FVFdP", + "UksQARIOCgpVTktOT1dOX0lQEAISEwoPVU5LTk9XTl9QUk9KRUNUEAMSFQoR", + "UEVSTUlTU0lPTl9ERU5JRUQQBBIWChJOT19TT1VSQ0VfTE9DQVRJT04QBRIU", + "ChBJTlZBTElEX0FSR1VNRU5UEAYSEgoOTk9fRVhURVJOQUxfSVAQBxIaChZV", + "TklOVEVOREVEX0RFU1RJTkFUSU9OEAgSEgoOVFJBQ0VfVE9PX0xPTkcQCRIS", + "Cg5JTlRFUk5BTF9FUlJPUhAKEh0KGVNPVVJDRV9FTkRQT0lOVF9OT1RfRk9V", + "TkQQCxIdChlNSVNNQVRDSEVEX1NPVVJDRV9ORVRXT1JLEAwSIgoeREVTVElO", + "QVRJT05fRU5EUE9JTlRfTk9UX0ZPVU5EEA0SIgoeTUlTTUFUQ0hFRF9ERVNU", + "SU5BVElPTl9ORVRXT1JLEA4SDwoLVU5TVVBQT1JURUQQDxIZChVNSVNNQVRD", + "SEVEX0lQX1ZFUlNJT04QEBImCiJHS0VfS09OTkVDVElWSVRZX1BST1hZX1VO", + "U1VQUE9SVEVEEBESHQoZUkVTT1VSQ0VfQ09ORklHX05PVF9GT1VORBASIswL", + "CghEcm9wSW5mbxJHCgVjYXVzZRgBIAEoDjI4Lmdvb2dsZS5ldmVudHMuY2xv", + "dWQubmV0d29ya21hbmFnZW1lbnQudjEuRHJvcEluZm8uQ2F1c2USFAoMcmVz", + "b3VyY2VfdXJpGAIgASgJIuAKCgVDYXVzZRIVChFDQVVTRV9VTlNQRUNJRklF", + "RBAAEhwKGFVOS05PV05fRVhURVJOQUxfQUREUkVTUxABEhkKFUZPUkVJR05f", + "SVBfRElTQUxMT1dFRBACEhEKDUZJUkVXQUxMX1JVTEUQAxIMCghOT19ST1VU", + "RRAEEhMKD1JPVVRFX0JMQUNLSE9MRRAFEhcKE1JPVVRFX1dST05HX05FVFdP", + "UksQBhIfChtQUklWQVRFX1RSQUZGSUNfVE9fSU5URVJORVQQBxIkCiBQUklW", + "QVRFX0dPT0dMRV9BQ0NFU1NfRElTQUxMT1dFRBAIEhcKE05PX0VYVEVSTkFM", + "X0FERFJFU1MQCRIcChhVTktOT1dOX0lOVEVSTkFMX0FERFJFU1MQChIcChhG", + "T1JXQVJESU5HX1JVTEVfTUlTTUFUQ0gQCxIjCh9GT1JXQVJESU5HX1JVTEVf", + "UkVHSU9OX01JU01BVENIEBkSIAocRk9SV0FSRElOR19SVUxFX05PX0lOU1RB", + "TkNFUxAMEjgKNEZJUkVXQUxMX0JMT0NLSU5HX0xPQURfQkFMQU5DRVJfQkFD", + "S0VORF9IRUFMVEhfQ0hFQ0sQDRIYChRJTlNUQU5DRV9OT1RfUlVOTklORxAO", + "EhsKF0dLRV9DTFVTVEVSX05PVF9SVU5OSU5HEBsSIgoeQ0xPVURfU1FMX0lO", + "U1RBTkNFX05PVF9SVU5OSU5HEBwSGAoUVFJBRkZJQ19UWVBFX0JMT0NLRUQQ", + "DxIiCh5HS0VfTUFTVEVSX1VOQVVUSE9SSVpFRF9BQ0NFU1MQEBIqCiZDTE9V", + "RF9TUUxfSU5TVEFOQ0VfVU5BVVRIT1JJWkVEX0FDQ0VTUxAREh4KGkRST1BQ", + "RURfSU5TSURFX0dLRV9TRVJWSUNFEBISJAogRFJPUFBFRF9JTlNJREVfQ0xP", + "VURfU1FMX1NFUlZJQ0UQExIlCiFHT09HTEVfTUFOQUdFRF9TRVJWSUNFX05P", + "X1BFRVJJTkcQFBIqCiZHT09HTEVfTUFOQUdFRF9TRVJWSUNFX05PX1BTQ19F", + "TkRQT0lOVBAmEhwKGEdLRV9QU0NfRU5EUE9JTlRfTUlTU0lORxAkEiQKIENM", + "T1VEX1NRTF9JTlNUQU5DRV9OT19JUF9BRERSRVNTEBUSJQohR0tFX0NPTlRS", + "T0xfUExBTkVfUkVHSU9OX01JU01BVENIEB4SMwovUFVCTElDX0dLRV9DT05U", + "Uk9MX1BMQU5FX1RPX1BSSVZBVEVfREVTVElOQVRJT04QHxIeChpHS0VfQ09O", + "VFJPTF9QTEFORV9OT19ST1VURRAgEjoKNkNMT1VEX1NRTF9JTlNUQU5DRV9O", + "T1RfQ09ORklHVVJFRF9GT1JfRVhURVJOQUxfVFJBRkZJQxAhEjQKMFBVQkxJ", + "Q19DTE9VRF9TUUxfSU5TVEFOQ0VfVE9fUFJJVkFURV9ERVNUSU5BVElPThAi", + "Eh8KG0NMT1VEX1NRTF9JTlNUQU5DRV9OT19ST1VURRAjEh0KGUNMT1VEX0ZV", + "TkNUSU9OX05PVF9BQ1RJVkUQFhIZChVWUENfQ09OTkVDVE9SX05PVF9TRVQQ", + "FxIdChlWUENfQ09OTkVDVE9SX05PVF9SVU5OSU5HEBgSHwobUFNDX0NPTk5F", + "Q1RJT05fTk9UX0FDQ0VQVEVEEBoSIAocQ0xPVURfUlVOX1JFVklTSU9OX05P", + "VF9SRUFEWRAdEicKI0RST1BQRURfSU5TSURFX1BTQ19TRVJWSUNFX1BST0RV", + "Q0VSECUSJQohTE9BRF9CQUxBTkNFUl9IQVNfTk9fUFJPWFlfU1VCTkVUECci", + "awoNR0tFTWFzdGVySW5mbxITCgtjbHVzdGVyX3VyaRgCIAEoCRIbChNjbHVz", + "dGVyX25ldHdvcmtfdXJpGAQgASgJEhMKC2ludGVybmFsX2lwGAUgASgJEhMK", + "C2V4dGVybmFsX2lwGAYgASgJIogBChRDbG91ZFNRTEluc3RhbmNlSW5mbxIU", + "CgxkaXNwbGF5X25hbWUYASABKAkSCwoDdXJpGAIgASgJEhMKC25ldHdvcmtf", + "dXJpGAQgASgJEhMKC2ludGVybmFsX2lwGAUgASgJEhMKC2V4dGVybmFsX2lw", + "GAYgASgJEg4KBnJlZ2lvbhgHIAEoCSJcChFDbG91ZEZ1bmN0aW9uSW5mbxIU", + "CgxkaXNwbGF5X25hbWUYASABKAkSCwoDdXJpGAIgASgJEhAKCGxvY2F0aW9u", + "GAMgASgJEhIKCnZlcnNpb25faWQYBCABKAMiYAoUQ2xvdWRSdW5SZXZpc2lv", + "bkluZm8SFAoMZGlzcGxheV9uYW1lGAEgASgJEgsKA3VyaRgCIAEoCRIQCghs", + "b2NhdGlvbhgEIAEoCRITCgtzZXJ2aWNlX3VyaRgFIAEoCSJfChRBcHBFbmdp", + "bmVWZXJzaW9uSW5mbxIUCgxkaXNwbGF5X25hbWUYASABKAkSCwoDdXJpGAIg", + "ASgJEg8KB3J1bnRpbWUYAyABKAkSEwoLZW52aXJvbm1lbnQYBCABKAkiRwoQ", + "VnBjQ29ubmVjdG9ySW5mbxIUCgxkaXNwbGF5X25hbWUYASABKAkSCwoDdXJp", + "GAIgASgJEhAKCGxvY2F0aW9uGAMgASgJIsoEChBDb25uZWN0aXZpdHlUZXN0", + "EgwKBG5hbWUYASABKAkSEwoLZGVzY3JpcHRpb24YAiABKAkSQgoGc291cmNl", + "GAMgASgLMjIuZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVu", + "dC52MS5FbmRwb2ludBJHCgtkZXN0aW5hdGlvbhgEIAEoCzIyLmdvb2dsZS5l", + "dmVudHMuY2xvdWQubmV0d29ya21hbmFnZW1lbnQudjEuRW5kcG9pbnQSEAoI", + "cHJvdG9jb2wYBSABKAkSGAoQcmVsYXRlZF9wcm9qZWN0cxgGIAMoCRIUCgxk", + "aXNwbGF5X25hbWUYByABKAkSVgoGbGFiZWxzGAggAygLMkYuZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVudC52MS5Db25uZWN0aXZpdHlU", + "ZXN0LkxhYmVsc0VudHJ5Ei8KC2NyZWF0ZV90aW1lGAogASgLMhouZ29vZ2xl", + "LnByb3RvYnVmLlRpbWVzdGFtcBIvCgt1cGRhdGVfdGltZRgLIAEoCzIaLmdv", + "b2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASWwoUcmVhY2hhYmlsaXR5X2RldGFp", + "bHMYDCABKAsyPS5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmttYW5hZ2Vt", + "ZW50LnYxLlJlYWNoYWJpbGl0eURldGFpbHMaLQoLTGFiZWxzRW50cnkSCwoD", + "a2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASLwBQoIRW5kcG9pbnQSEgoK", + "aXBfYWRkcmVzcxgBIAEoCRIMCgRwb3J0GAIgASgFEhAKCGluc3RhbmNlGAMg", + "ASgJEhoKEmdrZV9tYXN0ZXJfY2x1c3RlchgHIAEoCRIaChJjbG91ZF9zcWxf", + "aW5zdGFuY2UYCCABKAkSYAoOY2xvdWRfZnVuY3Rpb24YCiABKAsySC5nb29n", + "bGUuZXZlbnRzLmNsb3VkLm5ldHdvcmttYW5hZ2VtZW50LnYxLkVuZHBvaW50", + "LkNsb3VkRnVuY3Rpb25FbmRwb2ludBJnChJhcHBfZW5naW5lX3ZlcnNpb24Y", + "CyABKAsySy5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdvcmttYW5hZ2VtZW50", + "LnYxLkVuZHBvaW50LkFwcEVuZ2luZVZlcnNpb25FbmRwb2ludBJnChJjbG91", + "ZF9ydW5fcmV2aXNpb24YDCABKAsySy5nb29nbGUuZXZlbnRzLmNsb3VkLm5l", + "dHdvcmttYW5hZ2VtZW50LnYxLkVuZHBvaW50LkNsb3VkUnVuUmV2aXNpb25F", + "bmRwb2ludBIPCgduZXR3b3JrGAQgASgJElQKDG5ldHdvcmtfdHlwZRgFIAEo", + "DjI+Lmdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29ya21hbmFnZW1lbnQudjEu", + "RW5kcG9pbnQuTmV0d29ya1R5cGUSEgoKcHJvamVjdF9pZBgGIAEoCRokChVD", + "bG91ZEZ1bmN0aW9uRW5kcG9pbnQSCwoDdXJpGAEgASgJGicKGEFwcEVuZ2lu", + "ZVZlcnNpb25FbmRwb2ludBILCgN1cmkYASABKAkaJwoYQ2xvdWRSdW5SZXZp", + "c2lvbkVuZHBvaW50EgsKA3VyaRgBIAEoCSJRCgtOZXR3b3JrVHlwZRIcChhO", + "RVRXT1JLX1RZUEVfVU5TUEVDSUZJRUQQABIPCgtHQ1BfTkVUV09SSxABEhMK", + "D05PTl9HQ1BfTkVUV09SSxACIuMCChNSZWFjaGFiaWxpdHlEZXRhaWxzElQK", + "BnJlc3VsdBgBIAEoDjJELmdvb2dsZS5ldmVudHMuY2xvdWQubmV0d29ya21h", + "bmFnZW1lbnQudjEuUmVhY2hhYmlsaXR5RGV0YWlscy5SZXN1bHQSLwoLdmVy", + "aWZ5X3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiEK", + "BWVycm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSPwoGdHJhY2VzGAUg", + "AygLMi8uZ29vZ2xlLmV2ZW50cy5jbG91ZC5uZXR3b3JrbWFuYWdlbWVudC52", + "MS5UcmFjZSJhCgZSZXN1bHQSFgoSUkVTVUxUX1VOU1BFQ0lGSUVEEAASDQoJ", + "UkVBQ0hBQkxFEAESDwoLVU5SRUFDSEFCTEUQAhINCglBTUJJR1VPVVMQBBIQ", + "CgxVTkRFVEVSTUlORUQQBSJ5ChlDb25uZWN0aXZpdHlUZXN0RXZlbnREYXRh", + "ElAKB3BheWxvYWQYASABKAsyOi5nb29nbGUuZXZlbnRzLmNsb3VkLm5ldHdv", + "cmttYW5hZ2VtZW50LnYxLkNvbm5lY3Rpdml0eVRlc3RIAIgBAUIKCghfcGF5", + "bG9hZEKOAaoCMUdvb2dsZS5FdmVudHMuUHJvdG9idWYuQ2xvdWQuTmV0d29y", + "a01hbmFnZW1lbnQuVjHKAihHb29nbGVcRXZlbnRzXENsb3VkXE5ldHdvcmtN", + "YW5hZ2VtZW50XFYx6gIsR29vZ2xlOjpFdmVudHM6OkNsb3VkOjpOZXR3b3Jr", + "TWFuYWdlbWVudDo6VjFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Trace), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Trace.Parser, new[]{ "EndpointInfo", "Steps" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Parser, new[]{ "Description", "State", "CausesDrop", "ProjectId", "Instance", "Firewall", "Route", "Endpoint", "GoogleService", "ForwardingRule", "VpnGateway", "VpnTunnel", "VpcConnector", "Deliver", "Forward", "Abort", "Drop", "LoadBalancer", "Network", "GkeMaster", "CloudSqlInstance", "CloudFunction", "AppEngineVersion", "CloudRunRevision" }, new[]{ "StepInfo" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.InstanceInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.InstanceInfo.Parser, new[]{ "DisplayName", "Uri", "Interface", "NetworkUri", "InternalIp", "ExternalIp", "NetworkTags", "ServiceAccount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.NetworkInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.NetworkInfo.Parser, new[]{ "DisplayName", "Uri", "MatchedIpRange" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Parser, new[]{ "DisplayName", "Uri", "Direction", "Action", "Priority", "NetworkUri", "TargetTags", "TargetServiceAccounts", "Policy", "FirewallRuleType" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Types.FirewallRuleType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Parser, new[]{ "RouteType", "NextHopType", "DisplayName", "Uri", "DestIpRange", "NextHop", "NetworkUri", "Priority", "InstanceTags", "SrcIpRange", "DestPortRanges", "SrcPortRanges", "Protocols" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.RouteType), typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.NextHopType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Parser, new[]{ "SourceIp", "GoogleServiceType" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Types.GoogleServiceType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardingRuleInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardingRuleInfo.Parser, new[]{ "DisplayName", "Uri", "MatchedProtocol", "MatchedPortRange", "Vip", "Target", "NetworkUri" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Parser, new[]{ "LoadBalancerType", "HealthCheckUri", "Backends", "BackendType", "BackendUri" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.LoadBalancerType), typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.BackendType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Parser, new[]{ "DisplayName", "Uri", "HealthCheckFirewallState", "HealthCheckAllowingFirewallRules", "HealthCheckBlockingFirewallRules" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Types.HealthCheckFirewallState) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnGatewayInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnGatewayInfo.Parser, new[]{ "DisplayName", "Uri", "NetworkUri", "IpAddress", "VpnTunnelUri", "Region" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Parser, new[]{ "DisplayName", "Uri", "SourceGateway", "RemoteGateway", "RemoteGatewayIp", "SourceGatewayIp", "NetworkUri", "Region", "RoutingType" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Types.RoutingType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo.Parser, new[]{ "SourceIp", "DestinationIp", "Protocol", "SourcePort", "DestinationPort", "SourceNetworkUri", "DestinationNetworkUri" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Parser, new[]{ "Target", "ResourceUri" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Types.Target) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Parser, new[]{ "Target", "ResourceUri" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Types.Target) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Parser, new[]{ "Cause", "ResourceUri", "ProjectsMissingPermission" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Types.Cause) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Parser, new[]{ "Cause", "ResourceUri" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Types.Cause) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GKEMasterInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GKEMasterInfo.Parser, new[]{ "ClusterUri", "ClusterNetworkUri", "InternalIp", "ExternalIp" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudSQLInstanceInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudSQLInstanceInfo.Parser, new[]{ "DisplayName", "Uri", "NetworkUri", "InternalIp", "ExternalIp", "Region" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudFunctionInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudFunctionInfo.Parser, new[]{ "DisplayName", "Uri", "Location", "VersionId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudRunRevisionInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudRunRevisionInfo.Parser, new[]{ "DisplayName", "Uri", "Location", "ServiceUri" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AppEngineVersionInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AppEngineVersionInfo.Parser, new[]{ "DisplayName", "Uri", "Runtime", "Environment" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpcConnectorInfo), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpcConnectorInfo.Parser, new[]{ "DisplayName", "Uri", "Location" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ConnectivityTest), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ConnectivityTest.Parser, new[]{ "Name", "Description", "Source", "Destination", "Protocol", "RelatedProjects", "DisplayName", "Labels", "CreateTime", "UpdateTime", "ReachabilityDetails" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Parser, new[]{ "IpAddress", "Port", "Instance", "GkeMasterCluster", "CloudSqlInstance", "CloudFunction", "AppEngineVersion", "CloudRunRevision", "Network", "NetworkType", "ProjectId" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudFunctionEndpoint), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudFunctionEndpoint.Parser, new[]{ "Uri" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.AppEngineVersionEndpoint), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.AppEngineVersionEndpoint.Parser, new[]{ "Uri" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudRunRevisionEndpoint), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudRunRevisionEndpoint.Parser, new[]{ "Uri" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Parser, new[]{ "Result", "VerifyTime", "Error", "Traces" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ConnectivityTestEventData), global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ConnectivityTestEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Trace represents one simulated packet forwarding path. + /// + /// * Each trace contains multiple ordered steps. + /// * Each step is in a particular state with associated configuration. + /// * State is categorized as final or non-final states. + /// * Each final state has a reason associated. + /// * Each trace must end with a final state (the last step). + /// ``` + /// |---------------------Trace----------------------| + /// Step1(State) Step2(State) --- StepN(State(final)) + /// ``` + /// + public sealed partial class Trace : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Trace()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 Trace() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Trace(Trace other) : this() { + endpointInfo_ = other.endpointInfo_ != null ? other.endpointInfo_.Clone() : null; + steps_ = other.steps_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Trace Clone() { + return new Trace(this); + } + + /// Field number for the "endpoint_info" field. + public const int EndpointInfoFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo endpointInfo_; + /// + /// Derived from the source and destination endpoints definition specified by + /// user request, and validated by the data plane model. + /// If there are multiple traces starting from different source locations, then + /// the endpoint_info may be different between traces. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo EndpointInfo { + get { return endpointInfo_; } + set { + endpointInfo_ = value; + } + } + + /// Field number for the "steps" field. + public const int StepsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_steps_codec + = pb::FieldCodec.ForMessage(18, global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Parser); + private readonly pbc::RepeatedField steps_ = new pbc::RepeatedField(); + /// + /// A trace of a test contains multiple steps from the initial state to the + /// final state (delivered, dropped, forwarded, or aborted). + /// + /// The steps are ordered by the processing sequence within the simulated + /// network state machine. It is critical to preserve the order of the steps + /// and avoid reordering or sorting them. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Steps { + get { return steps_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Trace); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Trace other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EndpointInfo, other.EndpointInfo)) return false; + if(!steps_.Equals(other.steps_)) 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 (endpointInfo_ != null) hash ^= EndpointInfo.GetHashCode(); + hash ^= steps_.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 (endpointInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(EndpointInfo); + } + steps_.WriteTo(output, _repeated_steps_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 (endpointInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(EndpointInfo); + } + steps_.WriteTo(ref output, _repeated_steps_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 (endpointInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndpointInfo); + } + size += steps_.CalculateSize(_repeated_steps_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Trace other) { + if (other == null) { + return; + } + if (other.endpointInfo_ != null) { + if (endpointInfo_ == null) { + EndpointInfo = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo(); + } + EndpointInfo.MergeFrom(other.EndpointInfo); + } + steps_.Add(other.steps_); + _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 (endpointInfo_ == null) { + EndpointInfo = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo(); + } + input.ReadMessage(EndpointInfo); + break; + } + case 18: { + steps_.AddEntriesFrom(input, _repeated_steps_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: { + if (endpointInfo_ == null) { + EndpointInfo = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo(); + } + input.ReadMessage(EndpointInfo); + break; + } + case 18: { + steps_.AddEntriesFrom(ref input, _repeated_steps_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A simulated forwarding path is composed of multiple steps. + /// Each step has a well-defined state and an associated configuration. + /// + public sealed partial class Step : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Step()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 Step() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Step(Step other) : this() { + description_ = other.description_; + state_ = other.state_; + causesDrop_ = other.causesDrop_; + projectId_ = other.projectId_; + switch (other.StepInfoCase) { + case StepInfoOneofCase.Instance: + Instance = other.Instance.Clone(); + break; + case StepInfoOneofCase.Firewall: + Firewall = other.Firewall.Clone(); + break; + case StepInfoOneofCase.Route: + Route = other.Route.Clone(); + break; + case StepInfoOneofCase.Endpoint: + Endpoint = other.Endpoint.Clone(); + break; + case StepInfoOneofCase.GoogleService: + GoogleService = other.GoogleService.Clone(); + break; + case StepInfoOneofCase.ForwardingRule: + ForwardingRule = other.ForwardingRule.Clone(); + break; + case StepInfoOneofCase.VpnGateway: + VpnGateway = other.VpnGateway.Clone(); + break; + case StepInfoOneofCase.VpnTunnel: + VpnTunnel = other.VpnTunnel.Clone(); + break; + case StepInfoOneofCase.VpcConnector: + VpcConnector = other.VpcConnector.Clone(); + break; + case StepInfoOneofCase.Deliver: + Deliver = other.Deliver.Clone(); + break; + case StepInfoOneofCase.Forward: + Forward = other.Forward.Clone(); + break; + case StepInfoOneofCase.Abort: + Abort = other.Abort.Clone(); + break; + case StepInfoOneofCase.Drop: + Drop = other.Drop.Clone(); + break; + case StepInfoOneofCase.LoadBalancer: + LoadBalancer = other.LoadBalancer.Clone(); + break; + case StepInfoOneofCase.Network: + Network = other.Network.Clone(); + break; + case StepInfoOneofCase.GkeMaster: + GkeMaster = other.GkeMaster.Clone(); + break; + case StepInfoOneofCase.CloudSqlInstance: + CloudSqlInstance = other.CloudSqlInstance.Clone(); + break; + case StepInfoOneofCase.CloudFunction: + CloudFunction = other.CloudFunction.Clone(); + break; + case StepInfoOneofCase.AppEngineVersion: + AppEngineVersion = other.AppEngineVersion.Clone(); + break; + case StepInfoOneofCase.CloudRunRevision: + CloudRunRevision = other.CloudRunRevision.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Step Clone() { + return new Step(this); + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 1; + private string description_ = ""; + /// + /// A description of the step. Usually this is a summary of the state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Types.State state_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Types.State.Unspecified; + /// + /// Each step is in one of the pre-defined states. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "causes_drop" field. + public const int CausesDropFieldNumber = 3; + private bool causesDrop_; + /// + /// This is a step that leads to the final state Drop. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CausesDrop { + get { return causesDrop_; } + set { + causesDrop_ = value; + } + } + + /// Field number for the "project_id" field. + public const int ProjectIdFieldNumber = 4; + private string projectId_ = ""; + /// + /// Project ID that contains the configuration this step is validating. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ProjectId { + get { return projectId_; } + set { + projectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "instance" field. + public const int InstanceFieldNumber = 5; + /// + /// Display information of a Compute Engine instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.InstanceInfo Instance { + get { return stepInfoCase_ == StepInfoOneofCase.Instance ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.InstanceInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.Instance; + } + } + + /// Field number for the "firewall" field. + public const int FirewallFieldNumber = 6; + /// + /// Display information of a Compute Engine firewall rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo Firewall { + get { return stepInfoCase_ == StepInfoOneofCase.Firewall ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.Firewall; + } + } + + /// Field number for the "route" field. + public const int RouteFieldNumber = 7; + /// + /// Display information of a Compute Engine route. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo Route { + get { return stepInfoCase_ == StepInfoOneofCase.Route ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.Route; + } + } + + /// Field number for the "endpoint" field. + public const int EndpointFieldNumber = 8; + /// + /// Display information of the source and destination under analysis. + /// The endpoint information in an intermediate state may differ with the + /// initial input, as it might be modified by state like NAT, + /// or Connection Proxy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo Endpoint { + get { return stepInfoCase_ == StepInfoOneofCase.Endpoint ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.Endpoint; + } + } + + /// Field number for the "google_service" field. + public const int GoogleServiceFieldNumber = 24; + /// + /// Display information of a Google service + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo GoogleService { + get { return stepInfoCase_ == StepInfoOneofCase.GoogleService ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.GoogleService; + } + } + + /// Field number for the "forwarding_rule" field. + public const int ForwardingRuleFieldNumber = 9; + /// + /// Display information of a Compute Engine forwarding rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardingRuleInfo ForwardingRule { + get { return stepInfoCase_ == StepInfoOneofCase.ForwardingRule ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardingRuleInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.ForwardingRule; + } + } + + /// Field number for the "vpn_gateway" field. + public const int VpnGatewayFieldNumber = 10; + /// + /// Display information of a Compute Engine VPN gateway. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnGatewayInfo VpnGateway { + get { return stepInfoCase_ == StepInfoOneofCase.VpnGateway ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnGatewayInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.VpnGateway; + } + } + + /// Field number for the "vpn_tunnel" field. + public const int VpnTunnelFieldNumber = 11; + /// + /// Display information of a Compute Engine VPN tunnel. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo VpnTunnel { + get { return stepInfoCase_ == StepInfoOneofCase.VpnTunnel ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.VpnTunnel; + } + } + + /// Field number for the "vpc_connector" field. + public const int VpcConnectorFieldNumber = 21; + /// + /// Display information of a VPC connector. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpcConnectorInfo VpcConnector { + get { return stepInfoCase_ == StepInfoOneofCase.VpcConnector ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpcConnectorInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.VpcConnector; + } + } + + /// Field number for the "deliver" field. + public const int DeliverFieldNumber = 12; + /// + /// Display information of the final state "deliver" and reason. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo Deliver { + get { return stepInfoCase_ == StepInfoOneofCase.Deliver ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.Deliver; + } + } + + /// Field number for the "forward" field. + public const int ForwardFieldNumber = 13; + /// + /// Display information of the final state "forward" and reason. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo Forward { + get { return stepInfoCase_ == StepInfoOneofCase.Forward ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.Forward; + } + } + + /// Field number for the "abort" field. + public const int AbortFieldNumber = 14; + /// + /// Display information of the final state "abort" and reason. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo Abort { + get { return stepInfoCase_ == StepInfoOneofCase.Abort ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.Abort; + } + } + + /// Field number for the "drop" field. + public const int DropFieldNumber = 15; + /// + /// Display information of the final state "drop" and reason. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo Drop { + get { return stepInfoCase_ == StepInfoOneofCase.Drop ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.Drop; + } + } + + /// Field number for the "load_balancer" field. + public const int LoadBalancerFieldNumber = 16; + /// + /// Display information of the load balancers. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo LoadBalancer { + get { return stepInfoCase_ == StepInfoOneofCase.LoadBalancer ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.LoadBalancer; + } + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 17; + /// + /// Display information of a Google Cloud network. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.NetworkInfo Network { + get { return stepInfoCase_ == StepInfoOneofCase.Network ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.NetworkInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.Network; + } + } + + /// Field number for the "gke_master" field. + public const int GkeMasterFieldNumber = 18; + /// + /// Display information of a Google Kubernetes Engine cluster master. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GKEMasterInfo GkeMaster { + get { return stepInfoCase_ == StepInfoOneofCase.GkeMaster ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GKEMasterInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.GkeMaster; + } + } + + /// Field number for the "cloud_sql_instance" field. + public const int CloudSqlInstanceFieldNumber = 19; + /// + /// Display information of a Cloud SQL instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudSQLInstanceInfo CloudSqlInstance { + get { return stepInfoCase_ == StepInfoOneofCase.CloudSqlInstance ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudSQLInstanceInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.CloudSqlInstance; + } + } + + /// Field number for the "cloud_function" field. + public const int CloudFunctionFieldNumber = 20; + /// + /// Display information of a Cloud Function. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudFunctionInfo CloudFunction { + get { return stepInfoCase_ == StepInfoOneofCase.CloudFunction ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudFunctionInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.CloudFunction; + } + } + + /// Field number for the "app_engine_version" field. + public const int AppEngineVersionFieldNumber = 22; + /// + /// Display information of an App Engine service version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AppEngineVersionInfo AppEngineVersion { + get { return stepInfoCase_ == StepInfoOneofCase.AppEngineVersion ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AppEngineVersionInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.AppEngineVersion; + } + } + + /// Field number for the "cloud_run_revision" field. + public const int CloudRunRevisionFieldNumber = 23; + /// + /// Display information of a Cloud Run revision. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudRunRevisionInfo CloudRunRevision { + get { return stepInfoCase_ == StepInfoOneofCase.CloudRunRevision ? (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudRunRevisionInfo) stepInfo_ : null; } + set { + stepInfo_ = value; + stepInfoCase_ = value == null ? StepInfoOneofCase.None : StepInfoOneofCase.CloudRunRevision; + } + } + + private object stepInfo_; + /// Enum of possible cases for the "step_info" oneof. + public enum StepInfoOneofCase { + None = 0, + Instance = 5, + Firewall = 6, + Route = 7, + Endpoint = 8, + GoogleService = 24, + ForwardingRule = 9, + VpnGateway = 10, + VpnTunnel = 11, + VpcConnector = 21, + Deliver = 12, + Forward = 13, + Abort = 14, + Drop = 15, + LoadBalancer = 16, + Network = 17, + GkeMaster = 18, + CloudSqlInstance = 19, + CloudFunction = 20, + AppEngineVersion = 22, + CloudRunRevision = 23, + } + private StepInfoOneofCase stepInfoCase_ = StepInfoOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StepInfoOneofCase StepInfoCase { + get { return stepInfoCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStepInfo() { + stepInfoCase_ = StepInfoOneofCase.None; + stepInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Step); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Step other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Description != other.Description) return false; + if (State != other.State) return false; + if (CausesDrop != other.CausesDrop) return false; + if (ProjectId != other.ProjectId) return false; + if (!object.Equals(Instance, other.Instance)) return false; + if (!object.Equals(Firewall, other.Firewall)) return false; + if (!object.Equals(Route, other.Route)) return false; + if (!object.Equals(Endpoint, other.Endpoint)) return false; + if (!object.Equals(GoogleService, other.GoogleService)) return false; + if (!object.Equals(ForwardingRule, other.ForwardingRule)) return false; + if (!object.Equals(VpnGateway, other.VpnGateway)) return false; + if (!object.Equals(VpnTunnel, other.VpnTunnel)) return false; + if (!object.Equals(VpcConnector, other.VpcConnector)) return false; + if (!object.Equals(Deliver, other.Deliver)) return false; + if (!object.Equals(Forward, other.Forward)) return false; + if (!object.Equals(Abort, other.Abort)) return false; + if (!object.Equals(Drop, other.Drop)) return false; + if (!object.Equals(LoadBalancer, other.LoadBalancer)) return false; + if (!object.Equals(Network, other.Network)) return false; + if (!object.Equals(GkeMaster, other.GkeMaster)) return false; + if (!object.Equals(CloudSqlInstance, other.CloudSqlInstance)) return false; + if (!object.Equals(CloudFunction, other.CloudFunction)) return false; + if (!object.Equals(AppEngineVersion, other.AppEngineVersion)) return false; + if (!object.Equals(CloudRunRevision, other.CloudRunRevision)) return false; + if (StepInfoCase != other.StepInfoCase) 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 (Description.Length != 0) hash ^= Description.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (CausesDrop != false) hash ^= CausesDrop.GetHashCode(); + if (ProjectId.Length != 0) hash ^= ProjectId.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.Instance) hash ^= Instance.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.Firewall) hash ^= Firewall.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.Route) hash ^= Route.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.Endpoint) hash ^= Endpoint.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.GoogleService) hash ^= GoogleService.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.ForwardingRule) hash ^= ForwardingRule.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.VpnGateway) hash ^= VpnGateway.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.VpnTunnel) hash ^= VpnTunnel.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.VpcConnector) hash ^= VpcConnector.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.Deliver) hash ^= Deliver.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.Forward) hash ^= Forward.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.Abort) hash ^= Abort.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.Drop) hash ^= Drop.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.LoadBalancer) hash ^= LoadBalancer.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.Network) hash ^= Network.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.GkeMaster) hash ^= GkeMaster.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.CloudSqlInstance) hash ^= CloudSqlInstance.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.CloudFunction) hash ^= CloudFunction.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.AppEngineVersion) hash ^= AppEngineVersion.GetHashCode(); + if (stepInfoCase_ == StepInfoOneofCase.CloudRunRevision) hash ^= CloudRunRevision.GetHashCode(); + hash ^= (int) stepInfoCase_; + 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 (Description.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Description); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Types.State.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (CausesDrop != false) { + output.WriteRawTag(24); + output.WriteBool(CausesDrop); + } + if (ProjectId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ProjectId); + } + if (stepInfoCase_ == StepInfoOneofCase.Instance) { + output.WriteRawTag(42); + output.WriteMessage(Instance); + } + if (stepInfoCase_ == StepInfoOneofCase.Firewall) { + output.WriteRawTag(50); + output.WriteMessage(Firewall); + } + if (stepInfoCase_ == StepInfoOneofCase.Route) { + output.WriteRawTag(58); + output.WriteMessage(Route); + } + if (stepInfoCase_ == StepInfoOneofCase.Endpoint) { + output.WriteRawTag(66); + output.WriteMessage(Endpoint); + } + if (stepInfoCase_ == StepInfoOneofCase.ForwardingRule) { + output.WriteRawTag(74); + output.WriteMessage(ForwardingRule); + } + if (stepInfoCase_ == StepInfoOneofCase.VpnGateway) { + output.WriteRawTag(82); + output.WriteMessage(VpnGateway); + } + if (stepInfoCase_ == StepInfoOneofCase.VpnTunnel) { + output.WriteRawTag(90); + output.WriteMessage(VpnTunnel); + } + if (stepInfoCase_ == StepInfoOneofCase.Deliver) { + output.WriteRawTag(98); + output.WriteMessage(Deliver); + } + if (stepInfoCase_ == StepInfoOneofCase.Forward) { + output.WriteRawTag(106); + output.WriteMessage(Forward); + } + if (stepInfoCase_ == StepInfoOneofCase.Abort) { + output.WriteRawTag(114); + output.WriteMessage(Abort); + } + if (stepInfoCase_ == StepInfoOneofCase.Drop) { + output.WriteRawTag(122); + output.WriteMessage(Drop); + } + if (stepInfoCase_ == StepInfoOneofCase.LoadBalancer) { + output.WriteRawTag(130, 1); + output.WriteMessage(LoadBalancer); + } + if (stepInfoCase_ == StepInfoOneofCase.Network) { + output.WriteRawTag(138, 1); + output.WriteMessage(Network); + } + if (stepInfoCase_ == StepInfoOneofCase.GkeMaster) { + output.WriteRawTag(146, 1); + output.WriteMessage(GkeMaster); + } + if (stepInfoCase_ == StepInfoOneofCase.CloudSqlInstance) { + output.WriteRawTag(154, 1); + output.WriteMessage(CloudSqlInstance); + } + if (stepInfoCase_ == StepInfoOneofCase.CloudFunction) { + output.WriteRawTag(162, 1); + output.WriteMessage(CloudFunction); + } + if (stepInfoCase_ == StepInfoOneofCase.VpcConnector) { + output.WriteRawTag(170, 1); + output.WriteMessage(VpcConnector); + } + if (stepInfoCase_ == StepInfoOneofCase.AppEngineVersion) { + output.WriteRawTag(178, 1); + output.WriteMessage(AppEngineVersion); + } + if (stepInfoCase_ == StepInfoOneofCase.CloudRunRevision) { + output.WriteRawTag(186, 1); + output.WriteMessage(CloudRunRevision); + } + if (stepInfoCase_ == StepInfoOneofCase.GoogleService) { + output.WriteRawTag(194, 1); + output.WriteMessage(GoogleService); + } + 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 (Description.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Description); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Types.State.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (CausesDrop != false) { + output.WriteRawTag(24); + output.WriteBool(CausesDrop); + } + if (ProjectId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ProjectId); + } + if (stepInfoCase_ == StepInfoOneofCase.Instance) { + output.WriteRawTag(42); + output.WriteMessage(Instance); + } + if (stepInfoCase_ == StepInfoOneofCase.Firewall) { + output.WriteRawTag(50); + output.WriteMessage(Firewall); + } + if (stepInfoCase_ == StepInfoOneofCase.Route) { + output.WriteRawTag(58); + output.WriteMessage(Route); + } + if (stepInfoCase_ == StepInfoOneofCase.Endpoint) { + output.WriteRawTag(66); + output.WriteMessage(Endpoint); + } + if (stepInfoCase_ == StepInfoOneofCase.ForwardingRule) { + output.WriteRawTag(74); + output.WriteMessage(ForwardingRule); + } + if (stepInfoCase_ == StepInfoOneofCase.VpnGateway) { + output.WriteRawTag(82); + output.WriteMessage(VpnGateway); + } + if (stepInfoCase_ == StepInfoOneofCase.VpnTunnel) { + output.WriteRawTag(90); + output.WriteMessage(VpnTunnel); + } + if (stepInfoCase_ == StepInfoOneofCase.Deliver) { + output.WriteRawTag(98); + output.WriteMessage(Deliver); + } + if (stepInfoCase_ == StepInfoOneofCase.Forward) { + output.WriteRawTag(106); + output.WriteMessage(Forward); + } + if (stepInfoCase_ == StepInfoOneofCase.Abort) { + output.WriteRawTag(114); + output.WriteMessage(Abort); + } + if (stepInfoCase_ == StepInfoOneofCase.Drop) { + output.WriteRawTag(122); + output.WriteMessage(Drop); + } + if (stepInfoCase_ == StepInfoOneofCase.LoadBalancer) { + output.WriteRawTag(130, 1); + output.WriteMessage(LoadBalancer); + } + if (stepInfoCase_ == StepInfoOneofCase.Network) { + output.WriteRawTag(138, 1); + output.WriteMessage(Network); + } + if (stepInfoCase_ == StepInfoOneofCase.GkeMaster) { + output.WriteRawTag(146, 1); + output.WriteMessage(GkeMaster); + } + if (stepInfoCase_ == StepInfoOneofCase.CloudSqlInstance) { + output.WriteRawTag(154, 1); + output.WriteMessage(CloudSqlInstance); + } + if (stepInfoCase_ == StepInfoOneofCase.CloudFunction) { + output.WriteRawTag(162, 1); + output.WriteMessage(CloudFunction); + } + if (stepInfoCase_ == StepInfoOneofCase.VpcConnector) { + output.WriteRawTag(170, 1); + output.WriteMessage(VpcConnector); + } + if (stepInfoCase_ == StepInfoOneofCase.AppEngineVersion) { + output.WriteRawTag(178, 1); + output.WriteMessage(AppEngineVersion); + } + if (stepInfoCase_ == StepInfoOneofCase.CloudRunRevision) { + output.WriteRawTag(186, 1); + output.WriteMessage(CloudRunRevision); + } + if (stepInfoCase_ == StepInfoOneofCase.GoogleService) { + output.WriteRawTag(194, 1); + output.WriteMessage(GoogleService); + } + 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 (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (State != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (CausesDrop != false) { + size += 1 + 1; + } + if (ProjectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectId); + } + if (stepInfoCase_ == StepInfoOneofCase.Instance) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Instance); + } + if (stepInfoCase_ == StepInfoOneofCase.Firewall) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Firewall); + } + if (stepInfoCase_ == StepInfoOneofCase.Route) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Route); + } + if (stepInfoCase_ == StepInfoOneofCase.Endpoint) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Endpoint); + } + if (stepInfoCase_ == StepInfoOneofCase.GoogleService) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GoogleService); + } + if (stepInfoCase_ == StepInfoOneofCase.ForwardingRule) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForwardingRule); + } + if (stepInfoCase_ == StepInfoOneofCase.VpnGateway) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VpnGateway); + } + if (stepInfoCase_ == StepInfoOneofCase.VpnTunnel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VpnTunnel); + } + if (stepInfoCase_ == StepInfoOneofCase.VpcConnector) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(VpcConnector); + } + if (stepInfoCase_ == StepInfoOneofCase.Deliver) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Deliver); + } + if (stepInfoCase_ == StepInfoOneofCase.Forward) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward); + } + if (stepInfoCase_ == StepInfoOneofCase.Abort) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Abort); + } + if (stepInfoCase_ == StepInfoOneofCase.Drop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Drop); + } + if (stepInfoCase_ == StepInfoOneofCase.LoadBalancer) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(LoadBalancer); + } + if (stepInfoCase_ == StepInfoOneofCase.Network) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Network); + } + if (stepInfoCase_ == StepInfoOneofCase.GkeMaster) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GkeMaster); + } + if (stepInfoCase_ == StepInfoOneofCase.CloudSqlInstance) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CloudSqlInstance); + } + if (stepInfoCase_ == StepInfoOneofCase.CloudFunction) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CloudFunction); + } + if (stepInfoCase_ == StepInfoOneofCase.AppEngineVersion) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AppEngineVersion); + } + if (stepInfoCase_ == StepInfoOneofCase.CloudRunRevision) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CloudRunRevision); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Step other) { + if (other == null) { + return; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.State != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Types.State.Unspecified) { + State = other.State; + } + if (other.CausesDrop != false) { + CausesDrop = other.CausesDrop; + } + if (other.ProjectId.Length != 0) { + ProjectId = other.ProjectId; + } + switch (other.StepInfoCase) { + case StepInfoOneofCase.Instance: + if (Instance == null) { + Instance = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.InstanceInfo(); + } + Instance.MergeFrom(other.Instance); + break; + case StepInfoOneofCase.Firewall: + if (Firewall == null) { + Firewall = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo(); + } + Firewall.MergeFrom(other.Firewall); + break; + case StepInfoOneofCase.Route: + if (Route == null) { + Route = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo(); + } + Route.MergeFrom(other.Route); + break; + case StepInfoOneofCase.Endpoint: + if (Endpoint == null) { + Endpoint = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo(); + } + Endpoint.MergeFrom(other.Endpoint); + break; + case StepInfoOneofCase.GoogleService: + if (GoogleService == null) { + GoogleService = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo(); + } + GoogleService.MergeFrom(other.GoogleService); + break; + case StepInfoOneofCase.ForwardingRule: + if (ForwardingRule == null) { + ForwardingRule = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardingRuleInfo(); + } + ForwardingRule.MergeFrom(other.ForwardingRule); + break; + case StepInfoOneofCase.VpnGateway: + if (VpnGateway == null) { + VpnGateway = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnGatewayInfo(); + } + VpnGateway.MergeFrom(other.VpnGateway); + break; + case StepInfoOneofCase.VpnTunnel: + if (VpnTunnel == null) { + VpnTunnel = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo(); + } + VpnTunnel.MergeFrom(other.VpnTunnel); + break; + case StepInfoOneofCase.VpcConnector: + if (VpcConnector == null) { + VpcConnector = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpcConnectorInfo(); + } + VpcConnector.MergeFrom(other.VpcConnector); + break; + case StepInfoOneofCase.Deliver: + if (Deliver == null) { + Deliver = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo(); + } + Deliver.MergeFrom(other.Deliver); + break; + case StepInfoOneofCase.Forward: + if (Forward == null) { + Forward = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo(); + } + Forward.MergeFrom(other.Forward); + break; + case StepInfoOneofCase.Abort: + if (Abort == null) { + Abort = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo(); + } + Abort.MergeFrom(other.Abort); + break; + case StepInfoOneofCase.Drop: + if (Drop == null) { + Drop = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo(); + } + Drop.MergeFrom(other.Drop); + break; + case StepInfoOneofCase.LoadBalancer: + if (LoadBalancer == null) { + LoadBalancer = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo(); + } + LoadBalancer.MergeFrom(other.LoadBalancer); + break; + case StepInfoOneofCase.Network: + if (Network == null) { + Network = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.NetworkInfo(); + } + Network.MergeFrom(other.Network); + break; + case StepInfoOneofCase.GkeMaster: + if (GkeMaster == null) { + GkeMaster = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GKEMasterInfo(); + } + GkeMaster.MergeFrom(other.GkeMaster); + break; + case StepInfoOneofCase.CloudSqlInstance: + if (CloudSqlInstance == null) { + CloudSqlInstance = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudSQLInstanceInfo(); + } + CloudSqlInstance.MergeFrom(other.CloudSqlInstance); + break; + case StepInfoOneofCase.CloudFunction: + if (CloudFunction == null) { + CloudFunction = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudFunctionInfo(); + } + CloudFunction.MergeFrom(other.CloudFunction); + break; + case StepInfoOneofCase.AppEngineVersion: + if (AppEngineVersion == null) { + AppEngineVersion = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AppEngineVersionInfo(); + } + AppEngineVersion.MergeFrom(other.AppEngineVersion); + break; + case StepInfoOneofCase.CloudRunRevision: + if (CloudRunRevision == null) { + CloudRunRevision = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudRunRevisionInfo(); + } + CloudRunRevision.MergeFrom(other.CloudRunRevision); + break; + } + + _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: { + Description = input.ReadString(); + break; + } + case 16: { + State = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Types.State) input.ReadEnum(); + break; + } + case 24: { + CausesDrop = input.ReadBool(); + break; + } + case 34: { + ProjectId = input.ReadString(); + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.InstanceInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.InstanceInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Instance) { + subBuilder.MergeFrom(Instance); + } + input.ReadMessage(subBuilder); + Instance = subBuilder; + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Firewall) { + subBuilder.MergeFrom(Firewall); + } + input.ReadMessage(subBuilder); + Firewall = subBuilder; + break; + } + case 58: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Route) { + subBuilder.MergeFrom(Route); + } + input.ReadMessage(subBuilder); + Route = subBuilder; + break; + } + case 66: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Endpoint) { + subBuilder.MergeFrom(Endpoint); + } + input.ReadMessage(subBuilder); + Endpoint = subBuilder; + break; + } + case 74: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardingRuleInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardingRuleInfo(); + if (stepInfoCase_ == StepInfoOneofCase.ForwardingRule) { + subBuilder.MergeFrom(ForwardingRule); + } + input.ReadMessage(subBuilder); + ForwardingRule = subBuilder; + break; + } + case 82: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnGatewayInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnGatewayInfo(); + if (stepInfoCase_ == StepInfoOneofCase.VpnGateway) { + subBuilder.MergeFrom(VpnGateway); + } + input.ReadMessage(subBuilder); + VpnGateway = subBuilder; + break; + } + case 90: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo(); + if (stepInfoCase_ == StepInfoOneofCase.VpnTunnel) { + subBuilder.MergeFrom(VpnTunnel); + } + input.ReadMessage(subBuilder); + VpnTunnel = subBuilder; + break; + } + case 98: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Deliver) { + subBuilder.MergeFrom(Deliver); + } + input.ReadMessage(subBuilder); + Deliver = subBuilder; + break; + } + case 106: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Forward) { + subBuilder.MergeFrom(Forward); + } + input.ReadMessage(subBuilder); + Forward = subBuilder; + break; + } + case 114: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Abort) { + subBuilder.MergeFrom(Abort); + } + input.ReadMessage(subBuilder); + Abort = subBuilder; + break; + } + case 122: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Drop) { + subBuilder.MergeFrom(Drop); + } + input.ReadMessage(subBuilder); + Drop = subBuilder; + break; + } + case 130: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo(); + if (stepInfoCase_ == StepInfoOneofCase.LoadBalancer) { + subBuilder.MergeFrom(LoadBalancer); + } + input.ReadMessage(subBuilder); + LoadBalancer = subBuilder; + break; + } + case 138: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.NetworkInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.NetworkInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Network) { + subBuilder.MergeFrom(Network); + } + input.ReadMessage(subBuilder); + Network = subBuilder; + break; + } + case 146: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GKEMasterInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GKEMasterInfo(); + if (stepInfoCase_ == StepInfoOneofCase.GkeMaster) { + subBuilder.MergeFrom(GkeMaster); + } + input.ReadMessage(subBuilder); + GkeMaster = subBuilder; + break; + } + case 154: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudSQLInstanceInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudSQLInstanceInfo(); + if (stepInfoCase_ == StepInfoOneofCase.CloudSqlInstance) { + subBuilder.MergeFrom(CloudSqlInstance); + } + input.ReadMessage(subBuilder); + CloudSqlInstance = subBuilder; + break; + } + case 162: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudFunctionInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudFunctionInfo(); + if (stepInfoCase_ == StepInfoOneofCase.CloudFunction) { + subBuilder.MergeFrom(CloudFunction); + } + input.ReadMessage(subBuilder); + CloudFunction = subBuilder; + break; + } + case 170: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpcConnectorInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpcConnectorInfo(); + if (stepInfoCase_ == StepInfoOneofCase.VpcConnector) { + subBuilder.MergeFrom(VpcConnector); + } + input.ReadMessage(subBuilder); + VpcConnector = subBuilder; + break; + } + case 178: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AppEngineVersionInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AppEngineVersionInfo(); + if (stepInfoCase_ == StepInfoOneofCase.AppEngineVersion) { + subBuilder.MergeFrom(AppEngineVersion); + } + input.ReadMessage(subBuilder); + AppEngineVersion = subBuilder; + break; + } + case 186: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudRunRevisionInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudRunRevisionInfo(); + if (stepInfoCase_ == StepInfoOneofCase.CloudRunRevision) { + subBuilder.MergeFrom(CloudRunRevision); + } + input.ReadMessage(subBuilder); + CloudRunRevision = subBuilder; + break; + } + case 194: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo(); + if (stepInfoCase_ == StepInfoOneofCase.GoogleService) { + subBuilder.MergeFrom(GoogleService); + } + input.ReadMessage(subBuilder); + GoogleService = subBuilder; + 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: { + Description = input.ReadString(); + break; + } + case 16: { + State = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Step.Types.State) input.ReadEnum(); + break; + } + case 24: { + CausesDrop = input.ReadBool(); + break; + } + case 34: { + ProjectId = input.ReadString(); + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.InstanceInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.InstanceInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Instance) { + subBuilder.MergeFrom(Instance); + } + input.ReadMessage(subBuilder); + Instance = subBuilder; + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Firewall) { + subBuilder.MergeFrom(Firewall); + } + input.ReadMessage(subBuilder); + Firewall = subBuilder; + break; + } + case 58: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Route) { + subBuilder.MergeFrom(Route); + } + input.ReadMessage(subBuilder); + Route = subBuilder; + break; + } + case 66: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.EndpointInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Endpoint) { + subBuilder.MergeFrom(Endpoint); + } + input.ReadMessage(subBuilder); + Endpoint = subBuilder; + break; + } + case 74: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardingRuleInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardingRuleInfo(); + if (stepInfoCase_ == StepInfoOneofCase.ForwardingRule) { + subBuilder.MergeFrom(ForwardingRule); + } + input.ReadMessage(subBuilder); + ForwardingRule = subBuilder; + break; + } + case 82: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnGatewayInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnGatewayInfo(); + if (stepInfoCase_ == StepInfoOneofCase.VpnGateway) { + subBuilder.MergeFrom(VpnGateway); + } + input.ReadMessage(subBuilder); + VpnGateway = subBuilder; + break; + } + case 90: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo(); + if (stepInfoCase_ == StepInfoOneofCase.VpnTunnel) { + subBuilder.MergeFrom(VpnTunnel); + } + input.ReadMessage(subBuilder); + VpnTunnel = subBuilder; + break; + } + case 98: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Deliver) { + subBuilder.MergeFrom(Deliver); + } + input.ReadMessage(subBuilder); + Deliver = subBuilder; + break; + } + case 106: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Forward) { + subBuilder.MergeFrom(Forward); + } + input.ReadMessage(subBuilder); + Forward = subBuilder; + break; + } + case 114: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Abort) { + subBuilder.MergeFrom(Abort); + } + input.ReadMessage(subBuilder); + Abort = subBuilder; + break; + } + case 122: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Drop) { + subBuilder.MergeFrom(Drop); + } + input.ReadMessage(subBuilder); + Drop = subBuilder; + break; + } + case 130: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo(); + if (stepInfoCase_ == StepInfoOneofCase.LoadBalancer) { + subBuilder.MergeFrom(LoadBalancer); + } + input.ReadMessage(subBuilder); + LoadBalancer = subBuilder; + break; + } + case 138: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.NetworkInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.NetworkInfo(); + if (stepInfoCase_ == StepInfoOneofCase.Network) { + subBuilder.MergeFrom(Network); + } + input.ReadMessage(subBuilder); + Network = subBuilder; + break; + } + case 146: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GKEMasterInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GKEMasterInfo(); + if (stepInfoCase_ == StepInfoOneofCase.GkeMaster) { + subBuilder.MergeFrom(GkeMaster); + } + input.ReadMessage(subBuilder); + GkeMaster = subBuilder; + break; + } + case 154: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudSQLInstanceInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudSQLInstanceInfo(); + if (stepInfoCase_ == StepInfoOneofCase.CloudSqlInstance) { + subBuilder.MergeFrom(CloudSqlInstance); + } + input.ReadMessage(subBuilder); + CloudSqlInstance = subBuilder; + break; + } + case 162: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudFunctionInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudFunctionInfo(); + if (stepInfoCase_ == StepInfoOneofCase.CloudFunction) { + subBuilder.MergeFrom(CloudFunction); + } + input.ReadMessage(subBuilder); + CloudFunction = subBuilder; + break; + } + case 170: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpcConnectorInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpcConnectorInfo(); + if (stepInfoCase_ == StepInfoOneofCase.VpcConnector) { + subBuilder.MergeFrom(VpcConnector); + } + input.ReadMessage(subBuilder); + VpcConnector = subBuilder; + break; + } + case 178: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AppEngineVersionInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AppEngineVersionInfo(); + if (stepInfoCase_ == StepInfoOneofCase.AppEngineVersion) { + subBuilder.MergeFrom(AppEngineVersion); + } + input.ReadMessage(subBuilder); + AppEngineVersion = subBuilder; + break; + } + case 186: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudRunRevisionInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.CloudRunRevisionInfo(); + if (stepInfoCase_ == StepInfoOneofCase.CloudRunRevision) { + subBuilder.MergeFrom(CloudRunRevision); + } + input.ReadMessage(subBuilder); + CloudRunRevision = subBuilder; + break; + } + case 194: { + global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo subBuilder = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo(); + if (stepInfoCase_ == StepInfoOneofCase.GoogleService) { + subBuilder.MergeFrom(GoogleService); + } + input.ReadMessage(subBuilder); + GoogleService = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Step message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Type of states that are defined in the network state machine. + /// Each step in the packet trace is in a specific state. + /// + public enum State { + /// + /// Unspecified state. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// Initial state: packet originating from a Compute Engine instance. + /// An InstanceInfo is populated with starting instance information. + /// + [pbr::OriginalName("START_FROM_INSTANCE")] StartFromInstance = 1, + /// + /// Initial state: packet originating from the internet. + /// The endpoint information is populated. + /// + [pbr::OriginalName("START_FROM_INTERNET")] StartFromInternet = 2, + /// + /// Initial state: packet originating from a Google service. Some Google + /// services, such as health check probers or Identity Aware Proxy use + /// special routes, outside VPC routing configuration to reach Compute Engine + /// Instances. + /// + [pbr::OriginalName("START_FROM_GOOGLE_SERVICE")] StartFromGoogleService = 27, + /// + /// Initial state: packet originating from a VPC or on-premises network + /// with internal source IP. + /// If the source is a VPC network visible to the user, a NetworkInfo + /// is populated with details of the network. + /// + [pbr::OriginalName("START_FROM_PRIVATE_NETWORK")] StartFromPrivateNetwork = 3, + /// + /// Initial state: packet originating from a Google Kubernetes Engine cluster + /// master. A GKEMasterInfo is populated with starting instance information. + /// + [pbr::OriginalName("START_FROM_GKE_MASTER")] StartFromGkeMaster = 21, + /// + /// Initial state: packet originating from a Cloud SQL instance. + /// A CloudSQLInstanceInfo is populated with starting instance information. + /// + [pbr::OriginalName("START_FROM_CLOUD_SQL_INSTANCE")] StartFromCloudSqlInstance = 22, + /// + /// Initial state: packet originating from a Cloud Function. + /// A CloudFunctionInfo is populated with starting function information. + /// + [pbr::OriginalName("START_FROM_CLOUD_FUNCTION")] StartFromCloudFunction = 23, + /// + /// Initial state: packet originating from an App Engine service version. + /// An AppEngineVersionInfo is populated with starting version information. + /// + [pbr::OriginalName("START_FROM_APP_ENGINE_VERSION")] StartFromAppEngineVersion = 25, + /// + /// Initial state: packet originating from a Cloud Run revision. + /// A CloudRunRevisionInfo is populated with starting revision information. + /// + [pbr::OriginalName("START_FROM_CLOUD_RUN_REVISION")] StartFromCloudRunRevision = 26, + /// + /// Config checking state: verify ingress firewall rule. + /// + [pbr::OriginalName("APPLY_INGRESS_FIREWALL_RULE")] ApplyIngressFirewallRule = 4, + /// + /// Config checking state: verify egress firewall rule. + /// + [pbr::OriginalName("APPLY_EGRESS_FIREWALL_RULE")] ApplyEgressFirewallRule = 5, + /// + /// Config checking state: verify route. + /// + [pbr::OriginalName("APPLY_ROUTE")] ApplyRoute = 6, + /// + /// Config checking state: match forwarding rule. + /// + [pbr::OriginalName("APPLY_FORWARDING_RULE")] ApplyForwardingRule = 7, + /// + /// Config checking state: packet sent or received under foreign IP + /// address and allowed. + /// + [pbr::OriginalName("SPOOFING_APPROVED")] SpoofingApproved = 8, + /// + /// Forwarding state: arriving at a Compute Engine instance. + /// + [pbr::OriginalName("ARRIVE_AT_INSTANCE")] ArriveAtInstance = 9, + /// + /// Forwarding state: arriving at a Compute Engine internal load balancer. + /// + [pbr::OriginalName("ARRIVE_AT_INTERNAL_LOAD_BALANCER")] ArriveAtInternalLoadBalancer = 10, + /// + /// Forwarding state: arriving at a Compute Engine external load balancer. + /// + [pbr::OriginalName("ARRIVE_AT_EXTERNAL_LOAD_BALANCER")] ArriveAtExternalLoadBalancer = 11, + /// + /// Forwarding state: arriving at a Cloud VPN gateway. + /// + [pbr::OriginalName("ARRIVE_AT_VPN_GATEWAY")] ArriveAtVpnGateway = 12, + /// + /// Forwarding state: arriving at a Cloud VPN tunnel. + /// + [pbr::OriginalName("ARRIVE_AT_VPN_TUNNEL")] ArriveAtVpnTunnel = 13, + /// + /// Forwarding state: arriving at a VPC connector. + /// + [pbr::OriginalName("ARRIVE_AT_VPC_CONNECTOR")] ArriveAtVpcConnector = 24, + /// + /// Transition state: packet header translated. + /// + [pbr::OriginalName("NAT")] Nat = 14, + /// + /// Transition state: original connection is terminated and a new proxied + /// connection is initiated. + /// + [pbr::OriginalName("PROXY_CONNECTION")] ProxyConnection = 15, + /// + /// Final state: packet could be delivered. + /// + [pbr::OriginalName("DELIVER")] Deliver = 16, + /// + /// Final state: packet could be dropped. + /// + [pbr::OriginalName("DROP")] Drop = 17, + /// + /// Final state: packet could be forwarded to a network with an unknown + /// configuration. + /// + [pbr::OriginalName("FORWARD")] Forward = 18, + /// + /// Final state: analysis is aborted. + /// + [pbr::OriginalName("ABORT")] Abort = 19, + /// + /// Special state: viewer of the test result does not have permission to + /// see the configuration in this step. + /// + [pbr::OriginalName("VIEWER_PERMISSION_MISSING")] ViewerPermissionMissing = 20, + } + + } + #endregion + + } + + /// + /// For display only. Metadata associated with a Compute Engine instance. + /// + public sealed partial class InstanceInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InstanceInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 InstanceInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InstanceInfo(InstanceInfo other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + interface_ = other.interface_; + networkUri_ = other.networkUri_; + internalIp_ = other.internalIp_; + externalIp_ = other.externalIp_; + networkTags_ = other.networkTags_.Clone(); + serviceAccount_ = other.serviceAccount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InstanceInfo Clone() { + return new InstanceInfo(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of a Compute Engine instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of a Compute Engine instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "interface" field. + public const int InterfaceFieldNumber = 3; + private string interface_ = ""; + /// + /// Name of the network interface of a Compute Engine instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Interface { + get { return interface_; } + set { + interface_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network_uri" field. + public const int NetworkUriFieldNumber = 4; + private string networkUri_ = ""; + /// + /// URI of a Compute Engine network. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NetworkUri { + get { return networkUri_; } + set { + networkUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "internal_ip" field. + public const int InternalIpFieldNumber = 5; + private string internalIp_ = ""; + /// + /// Internal IP address of the network interface. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InternalIp { + get { return internalIp_; } + set { + internalIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "external_ip" field. + public const int ExternalIpFieldNumber = 6; + private string externalIp_ = ""; + /// + /// External IP address of the network interface. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExternalIp { + get { return externalIp_; } + set { + externalIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network_tags" field. + public const int NetworkTagsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_networkTags_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField networkTags_ = new pbc::RepeatedField(); + /// + /// Network tags configured on the instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NetworkTags { + get { return networkTags_; } + } + + /// Field number for the "service_account" field. + public const int ServiceAccountFieldNumber = 8; + private string serviceAccount_ = ""; + /// + /// Service account authorized for the instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccount { + get { return serviceAccount_; } + set { + serviceAccount_ = 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 InstanceInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InstanceInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (Interface != other.Interface) return false; + if (NetworkUri != other.NetworkUri) return false; + if (InternalIp != other.InternalIp) return false; + if (ExternalIp != other.ExternalIp) return false; + if(!networkTags_.Equals(other.networkTags_)) return false; + if (ServiceAccount != other.ServiceAccount) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (Interface.Length != 0) hash ^= Interface.GetHashCode(); + if (NetworkUri.Length != 0) hash ^= NetworkUri.GetHashCode(); + if (InternalIp.Length != 0) hash ^= InternalIp.GetHashCode(); + if (ExternalIp.Length != 0) hash ^= ExternalIp.GetHashCode(); + hash ^= networkTags_.GetHashCode(); + if (ServiceAccount.Length != 0) hash ^= ServiceAccount.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Interface.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Interface); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(NetworkUri); + } + if (InternalIp.Length != 0) { + output.WriteRawTag(42); + output.WriteString(InternalIp); + } + if (ExternalIp.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ExternalIp); + } + networkTags_.WriteTo(output, _repeated_networkTags_codec); + if (ServiceAccount.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ServiceAccount); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Interface.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Interface); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(NetworkUri); + } + if (InternalIp.Length != 0) { + output.WriteRawTag(42); + output.WriteString(InternalIp); + } + if (ExternalIp.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ExternalIp); + } + networkTags_.WriteTo(ref output, _repeated_networkTags_codec); + if (ServiceAccount.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ServiceAccount); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (Interface.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Interface); + } + if (NetworkUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkUri); + } + if (InternalIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InternalIp); + } + if (ExternalIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalIp); + } + size += networkTags_.CalculateSize(_repeated_networkTags_codec); + if (ServiceAccount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InstanceInfo other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.Interface.Length != 0) { + Interface = other.Interface; + } + if (other.NetworkUri.Length != 0) { + NetworkUri = other.NetworkUri; + } + if (other.InternalIp.Length != 0) { + InternalIp = other.InternalIp; + } + if (other.ExternalIp.Length != 0) { + ExternalIp = other.ExternalIp; + } + networkTags_.Add(other.networkTags_); + if (other.ServiceAccount.Length != 0) { + ServiceAccount = other.ServiceAccount; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Interface = input.ReadString(); + break; + } + case 34: { + NetworkUri = input.ReadString(); + break; + } + case 42: { + InternalIp = input.ReadString(); + break; + } + case 50: { + ExternalIp = input.ReadString(); + break; + } + case 58: { + networkTags_.AddEntriesFrom(input, _repeated_networkTags_codec); + break; + } + case 66: { + ServiceAccount = 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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Interface = input.ReadString(); + break; + } + case 34: { + NetworkUri = input.ReadString(); + break; + } + case 42: { + InternalIp = input.ReadString(); + break; + } + case 50: { + ExternalIp = input.ReadString(); + break; + } + case 58: { + networkTags_.AddEntriesFrom(ref input, _repeated_networkTags_codec); + break; + } + case 66: { + ServiceAccount = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// For display only. Metadata associated with a Compute Engine network. + /// + public sealed partial class NetworkInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NetworkInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 NetworkInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NetworkInfo(NetworkInfo other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + matchedIpRange_ = other.matchedIpRange_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NetworkInfo Clone() { + return new NetworkInfo(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of a Compute Engine network. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of a Compute Engine network. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "matched_ip_range" field. + public const int MatchedIpRangeFieldNumber = 4; + private string matchedIpRange_ = ""; + /// + /// The IP range that matches the test. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MatchedIpRange { + get { return matchedIpRange_; } + set { + matchedIpRange_ = 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 NetworkInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NetworkInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (MatchedIpRange != other.MatchedIpRange) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (MatchedIpRange.Length != 0) hash ^= MatchedIpRange.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (MatchedIpRange.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MatchedIpRange); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (MatchedIpRange.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MatchedIpRange); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (MatchedIpRange.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MatchedIpRange); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NetworkInfo other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.MatchedIpRange.Length != 0) { + MatchedIpRange = other.MatchedIpRange; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 34: { + MatchedIpRange = 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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 34: { + MatchedIpRange = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// For display only. Metadata associated with a VPC firewall rule, an implied + /// VPC firewall rule, or a hierarchical firewall policy rule. + /// + public sealed partial class FirewallInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FirewallInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 FirewallInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FirewallInfo(FirewallInfo other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + direction_ = other.direction_; + action_ = other.action_; + priority_ = other.priority_; + networkUri_ = other.networkUri_; + targetTags_ = other.targetTags_.Clone(); + targetServiceAccounts_ = other.targetServiceAccounts_.Clone(); + policy_ = other.policy_; + firewallRuleType_ = other.firewallRuleType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FirewallInfo Clone() { + return new FirewallInfo(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// The display name of the VPC firewall rule. This field is not applicable + /// to hierarchical firewall policy rules. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// The URI of the VPC firewall rule. This field is not applicable to + /// implied firewall rules or hierarchical firewall policy rules. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "direction" field. + public const int DirectionFieldNumber = 3; + private string direction_ = ""; + /// + /// Possible values: INGRESS, EGRESS + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Direction { + get { return direction_; } + set { + direction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "action" field. + public const int ActionFieldNumber = 4; + private string action_ = ""; + /// + /// Possible values: ALLOW, DENY + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Action { + get { return action_; } + set { + action_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "priority" field. + public const int PriorityFieldNumber = 5; + private int priority_; + /// + /// The priority of the firewall rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Priority { + get { return priority_; } + set { + priority_ = value; + } + } + + /// Field number for the "network_uri" field. + public const int NetworkUriFieldNumber = 6; + private string networkUri_ = ""; + /// + /// The URI of the VPC network that the firewall rule is associated with. + /// This field is not applicable to hierarchical firewall policy rules. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NetworkUri { + get { return networkUri_; } + set { + networkUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target_tags" field. + public const int TargetTagsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_targetTags_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField targetTags_ = new pbc::RepeatedField(); + /// + /// The target tags defined by the VPC firewall rule. This field is not + /// applicable to hierarchical firewall policy rules. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TargetTags { + get { return targetTags_; } + } + + /// Field number for the "target_service_accounts" field. + public const int TargetServiceAccountsFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_targetServiceAccounts_codec + = pb::FieldCodec.ForString(66); + private readonly pbc::RepeatedField targetServiceAccounts_ = new pbc::RepeatedField(); + /// + /// The target service accounts specified by the firewall rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TargetServiceAccounts { + get { return targetServiceAccounts_; } + } + + /// Field number for the "policy" field. + public const int PolicyFieldNumber = 9; + private string policy_ = ""; + /// + /// The hierarchical firewall policy that this rule is associated with. + /// This field is not applicable to VPC firewall rules. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Policy { + get { return policy_; } + set { + policy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "firewall_rule_type" field. + public const int FirewallRuleTypeFieldNumber = 10; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Types.FirewallRuleType firewallRuleType_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Types.FirewallRuleType.Unspecified; + /// + /// The firewall rule's type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Types.FirewallRuleType FirewallRuleType { + get { return firewallRuleType_; } + set { + firewallRuleType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FirewallInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FirewallInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (Direction != other.Direction) return false; + if (Action != other.Action) return false; + if (Priority != other.Priority) return false; + if (NetworkUri != other.NetworkUri) return false; + if(!targetTags_.Equals(other.targetTags_)) return false; + if(!targetServiceAccounts_.Equals(other.targetServiceAccounts_)) return false; + if (Policy != other.Policy) return false; + if (FirewallRuleType != other.FirewallRuleType) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (Direction.Length != 0) hash ^= Direction.GetHashCode(); + if (Action.Length != 0) hash ^= Action.GetHashCode(); + if (Priority != 0) hash ^= Priority.GetHashCode(); + if (NetworkUri.Length != 0) hash ^= NetworkUri.GetHashCode(); + hash ^= targetTags_.GetHashCode(); + hash ^= targetServiceAccounts_.GetHashCode(); + if (Policy.Length != 0) hash ^= Policy.GetHashCode(); + if (FirewallRuleType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Types.FirewallRuleType.Unspecified) hash ^= FirewallRuleType.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Direction.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Direction); + } + if (Action.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Action); + } + if (Priority != 0) { + output.WriteRawTag(40); + output.WriteInt32(Priority); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(50); + output.WriteString(NetworkUri); + } + targetTags_.WriteTo(output, _repeated_targetTags_codec); + targetServiceAccounts_.WriteTo(output, _repeated_targetServiceAccounts_codec); + if (Policy.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Policy); + } + if (FirewallRuleType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Types.FirewallRuleType.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) FirewallRuleType); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Direction.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Direction); + } + if (Action.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Action); + } + if (Priority != 0) { + output.WriteRawTag(40); + output.WriteInt32(Priority); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(50); + output.WriteString(NetworkUri); + } + targetTags_.WriteTo(ref output, _repeated_targetTags_codec); + targetServiceAccounts_.WriteTo(ref output, _repeated_targetServiceAccounts_codec); + if (Policy.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Policy); + } + if (FirewallRuleType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Types.FirewallRuleType.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) FirewallRuleType); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (Direction.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Direction); + } + if (Action.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Action); + } + if (Priority != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priority); + } + if (NetworkUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkUri); + } + size += targetTags_.CalculateSize(_repeated_targetTags_codec); + size += targetServiceAccounts_.CalculateSize(_repeated_targetServiceAccounts_codec); + if (Policy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Policy); + } + if (FirewallRuleType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Types.FirewallRuleType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FirewallRuleType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FirewallInfo other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.Direction.Length != 0) { + Direction = other.Direction; + } + if (other.Action.Length != 0) { + Action = other.Action; + } + if (other.Priority != 0) { + Priority = other.Priority; + } + if (other.NetworkUri.Length != 0) { + NetworkUri = other.NetworkUri; + } + targetTags_.Add(other.targetTags_); + targetServiceAccounts_.Add(other.targetServiceAccounts_); + if (other.Policy.Length != 0) { + Policy = other.Policy; + } + if (other.FirewallRuleType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Types.FirewallRuleType.Unspecified) { + FirewallRuleType = other.FirewallRuleType; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Direction = input.ReadString(); + break; + } + case 34: { + Action = input.ReadString(); + break; + } + case 40: { + Priority = input.ReadInt32(); + break; + } + case 50: { + NetworkUri = input.ReadString(); + break; + } + case 58: { + targetTags_.AddEntriesFrom(input, _repeated_targetTags_codec); + break; + } + case 66: { + targetServiceAccounts_.AddEntriesFrom(input, _repeated_targetServiceAccounts_codec); + break; + } + case 74: { + Policy = input.ReadString(); + break; + } + case 80: { + FirewallRuleType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Types.FirewallRuleType) input.ReadEnum(); + 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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Direction = input.ReadString(); + break; + } + case 34: { + Action = input.ReadString(); + break; + } + case 40: { + Priority = input.ReadInt32(); + break; + } + case 50: { + NetworkUri = input.ReadString(); + break; + } + case 58: { + targetTags_.AddEntriesFrom(ref input, _repeated_targetTags_codec); + break; + } + case 66: { + targetServiceAccounts_.AddEntriesFrom(ref input, _repeated_targetServiceAccounts_codec); + break; + } + case 74: { + Policy = input.ReadString(); + break; + } + case 80: { + FirewallRuleType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.FirewallInfo.Types.FirewallRuleType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the FirewallInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The firewall rule's type. + /// + public enum FirewallRuleType { + /// + /// Unspecified type. + /// + [pbr::OriginalName("FIREWALL_RULE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Hierarchical firewall policy rule. For details, see + /// [Hierarchical firewall policies + /// overview](https://cloud.google.com/vpc/docs/firewall-policies). + /// + [pbr::OriginalName("HIERARCHICAL_FIREWALL_POLICY_RULE")] HierarchicalFirewallPolicyRule = 1, + /// + /// VPC firewall rule. For details, see + /// [VPC firewall rules + /// overview](https://cloud.google.com/vpc/docs/firewalls). + /// + [pbr::OriginalName("VPC_FIREWALL_RULE")] VpcFirewallRule = 2, + /// + /// Implied VPC firewall rule. For details, see + /// [Implied + /// rules](https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules). + /// + [pbr::OriginalName("IMPLIED_VPC_FIREWALL_RULE")] ImpliedVpcFirewallRule = 3, + /// + /// Implicit firewall rules that are managed by serverless VPC access to + /// allow ingress access. They are not visible in the Google Cloud console. + /// For details, see [VPC connector's implicit + /// rules](https://cloud.google.com/functions/docs/networking/connecting-vpc#restrict-access). + /// + [pbr::OriginalName("SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE")] ServerlessVpcAccessManagedFirewallRule = 4, + /// + /// Global network firewall policy rule. + /// For details, see [Network firewall + /// policies](https://cloud.google.com/vpc/docs/network-firewall-policies). + /// + [pbr::OriginalName("NETWORK_FIREWALL_POLICY_RULE")] NetworkFirewallPolicyRule = 5, + } + + } + #endregion + + } + + /// + /// For display only. Metadata associated with a Compute Engine route. + /// + public sealed partial class RouteInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RouteInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 RouteInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RouteInfo(RouteInfo other) : this() { + routeType_ = other.routeType_; + nextHopType_ = other.nextHopType_; + displayName_ = other.displayName_; + uri_ = other.uri_; + destIpRange_ = other.destIpRange_; + nextHop_ = other.nextHop_; + networkUri_ = other.networkUri_; + priority_ = other.priority_; + instanceTags_ = other.instanceTags_.Clone(); + srcIpRange_ = other.srcIpRange_; + destPortRanges_ = other.destPortRanges_.Clone(); + srcPortRanges_ = other.srcPortRanges_.Clone(); + protocols_ = other.protocols_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RouteInfo Clone() { + return new RouteInfo(this); + } + + /// Field number for the "route_type" field. + public const int RouteTypeFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.RouteType routeType_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.RouteType.Unspecified; + /// + /// Type of route. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.RouteType RouteType { + get { return routeType_; } + set { + routeType_ = value; + } + } + + /// Field number for the "next_hop_type" field. + public const int NextHopTypeFieldNumber = 9; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.NextHopType nextHopType_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.NextHopType.Unspecified; + /// + /// Type of next hop. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.NextHopType NextHopType { + get { return nextHopType_; } + set { + nextHopType_ = value; + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of a Compute Engine route. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of a Compute Engine route. + /// Dynamic route from cloud router does not have a URI. + /// Advertised route from Google Cloud VPC to on-premises network also does + /// not have a URI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dest_ip_range" field. + public const int DestIpRangeFieldNumber = 3; + private string destIpRange_ = ""; + /// + /// Destination IP range of the route. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DestIpRange { + get { return destIpRange_; } + set { + destIpRange_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "next_hop" field. + public const int NextHopFieldNumber = 4; + private string nextHop_ = ""; + /// + /// Next hop of the route. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextHop { + get { return nextHop_; } + set { + nextHop_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network_uri" field. + public const int NetworkUriFieldNumber = 5; + private string networkUri_ = ""; + /// + /// URI of a Compute Engine network. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NetworkUri { + get { return networkUri_; } + set { + networkUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "priority" field. + public const int PriorityFieldNumber = 6; + private int priority_; + /// + /// Priority of the route. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Priority { + get { return priority_; } + set { + priority_ = value; + } + } + + /// Field number for the "instance_tags" field. + public const int InstanceTagsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_instanceTags_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField instanceTags_ = new pbc::RepeatedField(); + /// + /// Instance tags of the route. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField InstanceTags { + get { return instanceTags_; } + } + + /// Field number for the "src_ip_range" field. + public const int SrcIpRangeFieldNumber = 10; + private string srcIpRange_ = ""; + /// + /// Source IP address range of the route. Policy based routes only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SrcIpRange { + get { return srcIpRange_; } + set { + srcIpRange_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dest_port_ranges" field. + public const int DestPortRangesFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_destPortRanges_codec + = pb::FieldCodec.ForString(90); + private readonly pbc::RepeatedField destPortRanges_ = new pbc::RepeatedField(); + /// + /// Destination port ranges of the route. Policy based routes only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DestPortRanges { + get { return destPortRanges_; } + } + + /// Field number for the "src_port_ranges" field. + public const int SrcPortRangesFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_srcPortRanges_codec + = pb::FieldCodec.ForString(98); + private readonly pbc::RepeatedField srcPortRanges_ = new pbc::RepeatedField(); + /// + /// Source port ranges of the route. Policy based routes only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SrcPortRanges { + get { return srcPortRanges_; } + } + + /// Field number for the "protocols" field. + public const int ProtocolsFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_protocols_codec + = pb::FieldCodec.ForString(106); + private readonly pbc::RepeatedField protocols_ = new pbc::RepeatedField(); + /// + /// Protocols of the route. Policy based routes only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Protocols { + get { return protocols_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RouteInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RouteInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RouteType != other.RouteType) return false; + if (NextHopType != other.NextHopType) return false; + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (DestIpRange != other.DestIpRange) return false; + if (NextHop != other.NextHop) return false; + if (NetworkUri != other.NetworkUri) return false; + if (Priority != other.Priority) return false; + if(!instanceTags_.Equals(other.instanceTags_)) return false; + if (SrcIpRange != other.SrcIpRange) return false; + if(!destPortRanges_.Equals(other.destPortRanges_)) return false; + if(!srcPortRanges_.Equals(other.srcPortRanges_)) return false; + if(!protocols_.Equals(other.protocols_)) 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 (RouteType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.RouteType.Unspecified) hash ^= RouteType.GetHashCode(); + if (NextHopType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.NextHopType.Unspecified) hash ^= NextHopType.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (DestIpRange.Length != 0) hash ^= DestIpRange.GetHashCode(); + if (NextHop.Length != 0) hash ^= NextHop.GetHashCode(); + if (NetworkUri.Length != 0) hash ^= NetworkUri.GetHashCode(); + if (Priority != 0) hash ^= Priority.GetHashCode(); + hash ^= instanceTags_.GetHashCode(); + if (SrcIpRange.Length != 0) hash ^= SrcIpRange.GetHashCode(); + hash ^= destPortRanges_.GetHashCode(); + hash ^= srcPortRanges_.GetHashCode(); + hash ^= protocols_.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (DestIpRange.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DestIpRange); + } + if (NextHop.Length != 0) { + output.WriteRawTag(34); + output.WriteString(NextHop); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(42); + output.WriteString(NetworkUri); + } + if (Priority != 0) { + output.WriteRawTag(48); + output.WriteInt32(Priority); + } + instanceTags_.WriteTo(output, _repeated_instanceTags_codec); + if (RouteType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.RouteType.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) RouteType); + } + if (NextHopType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.NextHopType.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) NextHopType); + } + if (SrcIpRange.Length != 0) { + output.WriteRawTag(82); + output.WriteString(SrcIpRange); + } + destPortRanges_.WriteTo(output, _repeated_destPortRanges_codec); + srcPortRanges_.WriteTo(output, _repeated_srcPortRanges_codec); + protocols_.WriteTo(output, _repeated_protocols_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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (DestIpRange.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DestIpRange); + } + if (NextHop.Length != 0) { + output.WriteRawTag(34); + output.WriteString(NextHop); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(42); + output.WriteString(NetworkUri); + } + if (Priority != 0) { + output.WriteRawTag(48); + output.WriteInt32(Priority); + } + instanceTags_.WriteTo(ref output, _repeated_instanceTags_codec); + if (RouteType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.RouteType.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) RouteType); + } + if (NextHopType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.NextHopType.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) NextHopType); + } + if (SrcIpRange.Length != 0) { + output.WriteRawTag(82); + output.WriteString(SrcIpRange); + } + destPortRanges_.WriteTo(ref output, _repeated_destPortRanges_codec); + srcPortRanges_.WriteTo(ref output, _repeated_srcPortRanges_codec); + protocols_.WriteTo(ref output, _repeated_protocols_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 (RouteType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.RouteType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RouteType); + } + if (NextHopType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.NextHopType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NextHopType); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (DestIpRange.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DestIpRange); + } + if (NextHop.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextHop); + } + if (NetworkUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkUri); + } + if (Priority != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priority); + } + size += instanceTags_.CalculateSize(_repeated_instanceTags_codec); + if (SrcIpRange.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SrcIpRange); + } + size += destPortRanges_.CalculateSize(_repeated_destPortRanges_codec); + size += srcPortRanges_.CalculateSize(_repeated_srcPortRanges_codec); + size += protocols_.CalculateSize(_repeated_protocols_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RouteInfo other) { + if (other == null) { + return; + } + if (other.RouteType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.RouteType.Unspecified) { + RouteType = other.RouteType; + } + if (other.NextHopType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.NextHopType.Unspecified) { + NextHopType = other.NextHopType; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.DestIpRange.Length != 0) { + DestIpRange = other.DestIpRange; + } + if (other.NextHop.Length != 0) { + NextHop = other.NextHop; + } + if (other.NetworkUri.Length != 0) { + NetworkUri = other.NetworkUri; + } + if (other.Priority != 0) { + Priority = other.Priority; + } + instanceTags_.Add(other.instanceTags_); + if (other.SrcIpRange.Length != 0) { + SrcIpRange = other.SrcIpRange; + } + destPortRanges_.Add(other.destPortRanges_); + srcPortRanges_.Add(other.srcPortRanges_); + protocols_.Add(other.protocols_); + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + DestIpRange = input.ReadString(); + break; + } + case 34: { + NextHop = input.ReadString(); + break; + } + case 42: { + NetworkUri = input.ReadString(); + break; + } + case 48: { + Priority = input.ReadInt32(); + break; + } + case 58: { + instanceTags_.AddEntriesFrom(input, _repeated_instanceTags_codec); + break; + } + case 64: { + RouteType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.RouteType) input.ReadEnum(); + break; + } + case 72: { + NextHopType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.NextHopType) input.ReadEnum(); + break; + } + case 82: { + SrcIpRange = input.ReadString(); + break; + } + case 90: { + destPortRanges_.AddEntriesFrom(input, _repeated_destPortRanges_codec); + break; + } + case 98: { + srcPortRanges_.AddEntriesFrom(input, _repeated_srcPortRanges_codec); + break; + } + case 106: { + protocols_.AddEntriesFrom(input, _repeated_protocols_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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + DestIpRange = input.ReadString(); + break; + } + case 34: { + NextHop = input.ReadString(); + break; + } + case 42: { + NetworkUri = input.ReadString(); + break; + } + case 48: { + Priority = input.ReadInt32(); + break; + } + case 58: { + instanceTags_.AddEntriesFrom(ref input, _repeated_instanceTags_codec); + break; + } + case 64: { + RouteType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.RouteType) input.ReadEnum(); + break; + } + case 72: { + NextHopType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.RouteInfo.Types.NextHopType) input.ReadEnum(); + break; + } + case 82: { + SrcIpRange = input.ReadString(); + break; + } + case 90: { + destPortRanges_.AddEntriesFrom(ref input, _repeated_destPortRanges_codec); + break; + } + case 98: { + srcPortRanges_.AddEntriesFrom(ref input, _repeated_srcPortRanges_codec); + break; + } + case 106: { + protocols_.AddEntriesFrom(ref input, _repeated_protocols_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the RouteInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Type of route: + /// + public enum RouteType { + /// + /// Unspecified type. Default value. + /// + [pbr::OriginalName("ROUTE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Route is a subnet route automatically created by the system. + /// + [pbr::OriginalName("SUBNET")] Subnet = 1, + /// + /// Static route created by the user, including the default route to the + /// internet. + /// + [pbr::OriginalName("STATIC")] Static = 2, + /// + /// Dynamic route exchanged between BGP peers. + /// + [pbr::OriginalName("DYNAMIC")] Dynamic = 3, + /// + /// A subnet route received from peering network. + /// + [pbr::OriginalName("PEERING_SUBNET")] PeeringSubnet = 4, + /// + /// A static route received from peering network. + /// + [pbr::OriginalName("PEERING_STATIC")] PeeringStatic = 5, + /// + /// A dynamic route received from peering network. + /// + [pbr::OriginalName("PEERING_DYNAMIC")] PeeringDynamic = 6, + /// + /// Policy based route. + /// + [pbr::OriginalName("POLICY_BASED")] PolicyBased = 7, + } + + /// + /// Type of next hop: + /// + public enum NextHopType { + /// + /// Unspecified type. Default value. + /// + [pbr::OriginalName("NEXT_HOP_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Next hop is an IP address. + /// + [pbr::OriginalName("NEXT_HOP_IP")] NextHopIp = 1, + /// + /// Next hop is a Compute Engine instance. + /// + [pbr::OriginalName("NEXT_HOP_INSTANCE")] NextHopInstance = 2, + /// + /// Next hop is a VPC network gateway. + /// + [pbr::OriginalName("NEXT_HOP_NETWORK")] NextHopNetwork = 3, + /// + /// Next hop is a peering VPC. + /// + [pbr::OriginalName("NEXT_HOP_PEERING")] NextHopPeering = 4, + /// + /// Next hop is an interconnect. + /// + [pbr::OriginalName("NEXT_HOP_INTERCONNECT")] NextHopInterconnect = 5, + /// + /// Next hop is a VPN tunnel. + /// + [pbr::OriginalName("NEXT_HOP_VPN_TUNNEL")] NextHopVpnTunnel = 6, + /// + /// Next hop is a VPN gateway. This scenario only happens when tracing + /// connectivity from an on-premises network to Google Cloud through a VPN. + /// The analysis simulates a packet departing from the on-premises network + /// through a VPN tunnel and arriving at a Cloud VPN gateway. + /// + [pbr::OriginalName("NEXT_HOP_VPN_GATEWAY")] NextHopVpnGateway = 7, + /// + /// Next hop is an internet gateway. + /// + [pbr::OriginalName("NEXT_HOP_INTERNET_GATEWAY")] NextHopInternetGateway = 8, + /// + /// Next hop is blackhole; that is, the next hop either does not exist or is + /// not running. + /// + [pbr::OriginalName("NEXT_HOP_BLACKHOLE")] NextHopBlackhole = 9, + /// + /// Next hop is the forwarding rule of an Internal Load Balancer. + /// + [pbr::OriginalName("NEXT_HOP_ILB")] NextHopIlb = 10, + /// + /// Next hop is a + /// [router appliance + /// instance](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/ra-overview). + /// + [pbr::OriginalName("NEXT_HOP_ROUTER_APPLIANCE")] NextHopRouterAppliance = 11, + } + + } + #endregion + + } + + /// + /// For display only. Details of a Google Service sending packets to a + /// VPC network. Although the source IP might be a publicly routable address, + /// some Google Services use special routes within Google production + /// infrastructure to reach Compute Engine Instances. + /// https://cloud.google.com/vpc/docs/routes#special_return_paths + /// + public sealed partial class GoogleServiceInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoogleServiceInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 GoogleServiceInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GoogleServiceInfo(GoogleServiceInfo other) : this() { + sourceIp_ = other.sourceIp_; + googleServiceType_ = other.googleServiceType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GoogleServiceInfo Clone() { + return new GoogleServiceInfo(this); + } + + /// Field number for the "source_ip" field. + public const int SourceIpFieldNumber = 1; + private string sourceIp_ = ""; + /// + /// Source IP address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceIp { + get { return sourceIp_; } + set { + sourceIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "google_service_type" field. + public const int GoogleServiceTypeFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Types.GoogleServiceType googleServiceType_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Types.GoogleServiceType.Unspecified; + /// + /// Recognized type of a Google Service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Types.GoogleServiceType GoogleServiceType { + get { return googleServiceType_; } + set { + googleServiceType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GoogleServiceInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GoogleServiceInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SourceIp != other.SourceIp) return false; + if (GoogleServiceType != other.GoogleServiceType) 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 (SourceIp.Length != 0) hash ^= SourceIp.GetHashCode(); + if (GoogleServiceType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Types.GoogleServiceType.Unspecified) hash ^= GoogleServiceType.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 (SourceIp.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SourceIp); + } + if (GoogleServiceType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Types.GoogleServiceType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) GoogleServiceType); + } + 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 (SourceIp.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SourceIp); + } + if (GoogleServiceType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Types.GoogleServiceType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) GoogleServiceType); + } + 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 (SourceIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceIp); + } + if (GoogleServiceType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Types.GoogleServiceType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GoogleServiceType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GoogleServiceInfo other) { + if (other == null) { + return; + } + if (other.SourceIp.Length != 0) { + SourceIp = other.SourceIp; + } + if (other.GoogleServiceType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Types.GoogleServiceType.Unspecified) { + GoogleServiceType = other.GoogleServiceType; + } + _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: { + SourceIp = input.ReadString(); + break; + } + case 16: { + GoogleServiceType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Types.GoogleServiceType) input.ReadEnum(); + 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: { + SourceIp = input.ReadString(); + break; + } + case 16: { + GoogleServiceType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.GoogleServiceInfo.Types.GoogleServiceType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the GoogleServiceInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Recognized type of a Google Service. + /// + public enum GoogleServiceType { + /// + /// Unspecified Google Service. Includes most of Google APIs and services. + /// + [pbr::OriginalName("GOOGLE_SERVICE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Identity aware proxy. + /// https://cloud.google.com/iap/docs/using-tcp-forwarding + /// + [pbr::OriginalName("IAP")] Iap = 1, + /// + /// One of two services sharing IP ranges: + /// * Load Balancer proxy + /// * Centralized Health Check prober + /// https://cloud.google.com/load-balancing/docs/firewall-rules + /// + [pbr::OriginalName("GFE_PROXY_OR_HEALTH_CHECK_PROBER")] GfeProxyOrHealthCheckProber = 2, + /// + /// Connectivity from Cloud DNS to forwarding targets or alternate name + /// servers that use private routing. + /// https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules + /// https://cloud.google.com/dns/docs/policies#firewall-rules + /// + [pbr::OriginalName("CLOUD_DNS")] CloudDns = 3, + } + + } + #endregion + + } + + /// + /// For display only. Metadata associated with a Compute Engine forwarding rule. + /// + public sealed partial class ForwardingRuleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ForwardingRuleInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 ForwardingRuleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ForwardingRuleInfo(ForwardingRuleInfo other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + matchedProtocol_ = other.matchedProtocol_; + matchedPortRange_ = other.matchedPortRange_; + vip_ = other.vip_; + target_ = other.target_; + networkUri_ = other.networkUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ForwardingRuleInfo Clone() { + return new ForwardingRuleInfo(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of a Compute Engine forwarding rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of a Compute Engine forwarding rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "matched_protocol" field. + public const int MatchedProtocolFieldNumber = 3; + private string matchedProtocol_ = ""; + /// + /// Protocol defined in the forwarding rule that matches the test. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MatchedProtocol { + get { return matchedProtocol_; } + set { + matchedProtocol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "matched_port_range" field. + public const int MatchedPortRangeFieldNumber = 6; + private string matchedPortRange_ = ""; + /// + /// Port range defined in the forwarding rule that matches the test. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MatchedPortRange { + get { return matchedPortRange_; } + set { + matchedPortRange_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "vip" field. + public const int VipFieldNumber = 4; + private string vip_ = ""; + /// + /// VIP of the forwarding rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Vip { + get { return vip_; } + set { + vip_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 5; + private string target_ = ""; + /// + /// Target type of the forwarding rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Target { + get { return target_; } + set { + target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network_uri" field. + public const int NetworkUriFieldNumber = 7; + private string networkUri_ = ""; + /// + /// Network URI. Only valid for Internal Load Balancer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NetworkUri { + get { return networkUri_; } + set { + networkUri_ = 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 ForwardingRuleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ForwardingRuleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (MatchedProtocol != other.MatchedProtocol) return false; + if (MatchedPortRange != other.MatchedPortRange) return false; + if (Vip != other.Vip) return false; + if (Target != other.Target) return false; + if (NetworkUri != other.NetworkUri) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (MatchedProtocol.Length != 0) hash ^= MatchedProtocol.GetHashCode(); + if (MatchedPortRange.Length != 0) hash ^= MatchedPortRange.GetHashCode(); + if (Vip.Length != 0) hash ^= Vip.GetHashCode(); + if (Target.Length != 0) hash ^= Target.GetHashCode(); + if (NetworkUri.Length != 0) hash ^= NetworkUri.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (MatchedProtocol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MatchedProtocol); + } + if (Vip.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Vip); + } + if (Target.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Target); + } + if (MatchedPortRange.Length != 0) { + output.WriteRawTag(50); + output.WriteString(MatchedPortRange); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(58); + output.WriteString(NetworkUri); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (MatchedProtocol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MatchedProtocol); + } + if (Vip.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Vip); + } + if (Target.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Target); + } + if (MatchedPortRange.Length != 0) { + output.WriteRawTag(50); + output.WriteString(MatchedPortRange); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(58); + output.WriteString(NetworkUri); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (MatchedProtocol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MatchedProtocol); + } + if (MatchedPortRange.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MatchedPortRange); + } + if (Vip.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Vip); + } + if (Target.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Target); + } + if (NetworkUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ForwardingRuleInfo other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.MatchedProtocol.Length != 0) { + MatchedProtocol = other.MatchedProtocol; + } + if (other.MatchedPortRange.Length != 0) { + MatchedPortRange = other.MatchedPortRange; + } + if (other.Vip.Length != 0) { + Vip = other.Vip; + } + if (other.Target.Length != 0) { + Target = other.Target; + } + if (other.NetworkUri.Length != 0) { + NetworkUri = other.NetworkUri; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + MatchedProtocol = input.ReadString(); + break; + } + case 34: { + Vip = input.ReadString(); + break; + } + case 42: { + Target = input.ReadString(); + break; + } + case 50: { + MatchedPortRange = input.ReadString(); + break; + } + case 58: { + NetworkUri = 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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + MatchedProtocol = input.ReadString(); + break; + } + case 34: { + Vip = input.ReadString(); + break; + } + case 42: { + Target = input.ReadString(); + break; + } + case 50: { + MatchedPortRange = input.ReadString(); + break; + } + case 58: { + NetworkUri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// For display only. Metadata associated with a load balancer. + /// + public sealed partial class LoadBalancerInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoadBalancerInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 LoadBalancerInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoadBalancerInfo(LoadBalancerInfo other) : this() { + loadBalancerType_ = other.loadBalancerType_; + healthCheckUri_ = other.healthCheckUri_; + backends_ = other.backends_.Clone(); + backendType_ = other.backendType_; + backendUri_ = other.backendUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoadBalancerInfo Clone() { + return new LoadBalancerInfo(this); + } + + /// Field number for the "load_balancer_type" field. + public const int LoadBalancerTypeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.LoadBalancerType loadBalancerType_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.LoadBalancerType.Unspecified; + /// + /// Type of the load balancer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.LoadBalancerType LoadBalancerType { + get { return loadBalancerType_; } + set { + loadBalancerType_ = value; + } + } + + /// Field number for the "health_check_uri" field. + public const int HealthCheckUriFieldNumber = 2; + private string healthCheckUri_ = ""; + /// + /// URI of the health check for the load balancer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HealthCheckUri { + get { return healthCheckUri_; } + set { + healthCheckUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "backends" field. + public const int BackendsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_backends_codec + = pb::FieldCodec.ForMessage(26, global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Parser); + private readonly pbc::RepeatedField backends_ = new pbc::RepeatedField(); + /// + /// Information for the loadbalancer backends. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Backends { + get { return backends_; } + } + + /// Field number for the "backend_type" field. + public const int BackendTypeFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.BackendType backendType_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.BackendType.Unspecified; + /// + /// Type of load balancer's backend configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.BackendType BackendType { + get { return backendType_; } + set { + backendType_ = value; + } + } + + /// Field number for the "backend_uri" field. + public const int BackendUriFieldNumber = 5; + private string backendUri_ = ""; + /// + /// Backend configuration URI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BackendUri { + get { return backendUri_; } + set { + backendUri_ = 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 LoadBalancerInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LoadBalancerInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LoadBalancerType != other.LoadBalancerType) return false; + if (HealthCheckUri != other.HealthCheckUri) return false; + if(!backends_.Equals(other.backends_)) return false; + if (BackendType != other.BackendType) return false; + if (BackendUri != other.BackendUri) 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 (LoadBalancerType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.LoadBalancerType.Unspecified) hash ^= LoadBalancerType.GetHashCode(); + if (HealthCheckUri.Length != 0) hash ^= HealthCheckUri.GetHashCode(); + hash ^= backends_.GetHashCode(); + if (BackendType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.BackendType.Unspecified) hash ^= BackendType.GetHashCode(); + if (BackendUri.Length != 0) hash ^= BackendUri.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 (LoadBalancerType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.LoadBalancerType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) LoadBalancerType); + } + if (HealthCheckUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(HealthCheckUri); + } + backends_.WriteTo(output, _repeated_backends_codec); + if (BackendType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.BackendType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) BackendType); + } + if (BackendUri.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BackendUri); + } + 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 (LoadBalancerType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.LoadBalancerType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) LoadBalancerType); + } + if (HealthCheckUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(HealthCheckUri); + } + backends_.WriteTo(ref output, _repeated_backends_codec); + if (BackendType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.BackendType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) BackendType); + } + if (BackendUri.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BackendUri); + } + 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 (LoadBalancerType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.LoadBalancerType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LoadBalancerType); + } + if (HealthCheckUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HealthCheckUri); + } + size += backends_.CalculateSize(_repeated_backends_codec); + if (BackendType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.BackendType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BackendType); + } + if (BackendUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BackendUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LoadBalancerInfo other) { + if (other == null) { + return; + } + if (other.LoadBalancerType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.LoadBalancerType.Unspecified) { + LoadBalancerType = other.LoadBalancerType; + } + if (other.HealthCheckUri.Length != 0) { + HealthCheckUri = other.HealthCheckUri; + } + backends_.Add(other.backends_); + if (other.BackendType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.BackendType.Unspecified) { + BackendType = other.BackendType; + } + if (other.BackendUri.Length != 0) { + BackendUri = other.BackendUri; + } + _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: { + LoadBalancerType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.LoadBalancerType) input.ReadEnum(); + break; + } + case 18: { + HealthCheckUri = input.ReadString(); + break; + } + case 26: { + backends_.AddEntriesFrom(input, _repeated_backends_codec); + break; + } + case 32: { + BackendType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.BackendType) input.ReadEnum(); + break; + } + case 42: { + BackendUri = 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 8: { + LoadBalancerType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.LoadBalancerType) input.ReadEnum(); + break; + } + case 18: { + HealthCheckUri = input.ReadString(); + break; + } + case 26: { + backends_.AddEntriesFrom(ref input, _repeated_backends_codec); + break; + } + case 32: { + BackendType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerInfo.Types.BackendType) input.ReadEnum(); + break; + } + case 42: { + BackendUri = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the LoadBalancerInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type definition for a load balancer: + /// + public enum LoadBalancerType { + /// + /// Type is unspecified. + /// + [pbr::OriginalName("LOAD_BALANCER_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Internal TCP/UDP load balancer. + /// + [pbr::OriginalName("INTERNAL_TCP_UDP")] InternalTcpUdp = 1, + /// + /// Network TCP/UDP load balancer. + /// + [pbr::OriginalName("NETWORK_TCP_UDP")] NetworkTcpUdp = 2, + /// + /// HTTP(S) proxy load balancer. + /// + [pbr::OriginalName("HTTP_PROXY")] HttpProxy = 3, + /// + /// TCP proxy load balancer. + /// + [pbr::OriginalName("TCP_PROXY")] TcpProxy = 4, + /// + /// SSL proxy load balancer. + /// + [pbr::OriginalName("SSL_PROXY")] SslProxy = 5, + } + + /// + /// The type definition for a load balancer backend configuration: + /// + public enum BackendType { + /// + /// Type is unspecified. + /// + [pbr::OriginalName("BACKEND_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Backend Service as the load balancer's backend. + /// + [pbr::OriginalName("BACKEND_SERVICE")] BackendService = 1, + /// + /// Target Pool as the load balancer's backend. + /// + [pbr::OriginalName("TARGET_POOL")] TargetPool = 2, + /// + /// Target Instance as the load balancer's backend. + /// + [pbr::OriginalName("TARGET_INSTANCE")] TargetInstance = 3, + } + + } + #endregion + + } + + /// + /// For display only. Metadata associated with a specific load balancer backend. + /// + public sealed partial class LoadBalancerBackend : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoadBalancerBackend()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 LoadBalancerBackend() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoadBalancerBackend(LoadBalancerBackend other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + healthCheckFirewallState_ = other.healthCheckFirewallState_; + healthCheckAllowingFirewallRules_ = other.healthCheckAllowingFirewallRules_.Clone(); + healthCheckBlockingFirewallRules_ = other.healthCheckBlockingFirewallRules_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoadBalancerBackend Clone() { + return new LoadBalancerBackend(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of a Compute Engine instance or network endpoint. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of a Compute Engine instance or network endpoint. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "health_check_firewall_state" field. + public const int HealthCheckFirewallStateFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Types.HealthCheckFirewallState healthCheckFirewallState_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Types.HealthCheckFirewallState.Unspecified; + /// + /// State of the health check firewall configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Types.HealthCheckFirewallState HealthCheckFirewallState { + get { return healthCheckFirewallState_; } + set { + healthCheckFirewallState_ = value; + } + } + + /// Field number for the "health_check_allowing_firewall_rules" field. + public const int HealthCheckAllowingFirewallRulesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_healthCheckAllowingFirewallRules_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField healthCheckAllowingFirewallRules_ = new pbc::RepeatedField(); + /// + /// A list of firewall rule URIs allowing probes from health check IP ranges. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HealthCheckAllowingFirewallRules { + get { return healthCheckAllowingFirewallRules_; } + } + + /// Field number for the "health_check_blocking_firewall_rules" field. + public const int HealthCheckBlockingFirewallRulesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_healthCheckBlockingFirewallRules_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField healthCheckBlockingFirewallRules_ = new pbc::RepeatedField(); + /// + /// A list of firewall rule URIs blocking probes from health check IP ranges. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HealthCheckBlockingFirewallRules { + get { return healthCheckBlockingFirewallRules_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LoadBalancerBackend); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LoadBalancerBackend other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (HealthCheckFirewallState != other.HealthCheckFirewallState) return false; + if(!healthCheckAllowingFirewallRules_.Equals(other.healthCheckAllowingFirewallRules_)) return false; + if(!healthCheckBlockingFirewallRules_.Equals(other.healthCheckBlockingFirewallRules_)) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (HealthCheckFirewallState != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Types.HealthCheckFirewallState.Unspecified) hash ^= HealthCheckFirewallState.GetHashCode(); + hash ^= healthCheckAllowingFirewallRules_.GetHashCode(); + hash ^= healthCheckBlockingFirewallRules_.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (HealthCheckFirewallState != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Types.HealthCheckFirewallState.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) HealthCheckFirewallState); + } + healthCheckAllowingFirewallRules_.WriteTo(output, _repeated_healthCheckAllowingFirewallRules_codec); + healthCheckBlockingFirewallRules_.WriteTo(output, _repeated_healthCheckBlockingFirewallRules_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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (HealthCheckFirewallState != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Types.HealthCheckFirewallState.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) HealthCheckFirewallState); + } + healthCheckAllowingFirewallRules_.WriteTo(ref output, _repeated_healthCheckAllowingFirewallRules_codec); + healthCheckBlockingFirewallRules_.WriteTo(ref output, _repeated_healthCheckBlockingFirewallRules_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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (HealthCheckFirewallState != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Types.HealthCheckFirewallState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HealthCheckFirewallState); + } + size += healthCheckAllowingFirewallRules_.CalculateSize(_repeated_healthCheckAllowingFirewallRules_codec); + size += healthCheckBlockingFirewallRules_.CalculateSize(_repeated_healthCheckBlockingFirewallRules_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LoadBalancerBackend other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.HealthCheckFirewallState != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Types.HealthCheckFirewallState.Unspecified) { + HealthCheckFirewallState = other.HealthCheckFirewallState; + } + healthCheckAllowingFirewallRules_.Add(other.healthCheckAllowingFirewallRules_); + healthCheckBlockingFirewallRules_.Add(other.healthCheckBlockingFirewallRules_); + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 24: { + HealthCheckFirewallState = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Types.HealthCheckFirewallState) input.ReadEnum(); + break; + } + case 34: { + healthCheckAllowingFirewallRules_.AddEntriesFrom(input, _repeated_healthCheckAllowingFirewallRules_codec); + break; + } + case 42: { + healthCheckBlockingFirewallRules_.AddEntriesFrom(input, _repeated_healthCheckBlockingFirewallRules_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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 24: { + HealthCheckFirewallState = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.LoadBalancerBackend.Types.HealthCheckFirewallState) input.ReadEnum(); + break; + } + case 34: { + healthCheckAllowingFirewallRules_.AddEntriesFrom(ref input, _repeated_healthCheckAllowingFirewallRules_codec); + break; + } + case 42: { + healthCheckBlockingFirewallRules_.AddEntriesFrom(ref input, _repeated_healthCheckBlockingFirewallRules_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the LoadBalancerBackend message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// State of a health check firewall configuration: + /// + public enum HealthCheckFirewallState { + /// + /// State is unspecified. Default state if not populated. + /// + [pbr::OriginalName("HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// There are configured firewall rules to allow health check probes to the + /// backend. + /// + [pbr::OriginalName("CONFIGURED")] Configured = 1, + /// + /// There are firewall rules configured to allow partial health check ranges + /// or block all health check ranges. + /// If a health check probe is sent from denied IP ranges, + /// the health check to the backend will fail. Then, the backend will be + /// marked unhealthy and will not receive traffic sent to the load balancer. + /// + [pbr::OriginalName("MISCONFIGURED")] Misconfigured = 2, + } + + } + #endregion + + } + + /// + /// For display only. Metadata associated with a Compute Engine VPN gateway. + /// + public sealed partial class VpnGatewayInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VpnGatewayInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 VpnGatewayInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VpnGatewayInfo(VpnGatewayInfo other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + networkUri_ = other.networkUri_; + ipAddress_ = other.ipAddress_; + vpnTunnelUri_ = other.vpnTunnelUri_; + region_ = other.region_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VpnGatewayInfo Clone() { + return new VpnGatewayInfo(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of a VPN gateway. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of a VPN gateway. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network_uri" field. + public const int NetworkUriFieldNumber = 3; + private string networkUri_ = ""; + /// + /// URI of a Compute Engine network where the VPN gateway is configured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NetworkUri { + get { return networkUri_; } + set { + networkUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ip_address" field. + public const int IpAddressFieldNumber = 4; + private string ipAddress_ = ""; + /// + /// IP address of the VPN gateway. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IpAddress { + get { return ipAddress_; } + set { + ipAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "vpn_tunnel_uri" field. + public const int VpnTunnelUriFieldNumber = 5; + private string vpnTunnelUri_ = ""; + /// + /// A VPN tunnel that is associated with this VPN gateway. + /// There may be multiple VPN tunnels configured on a VPN gateway, and only + /// the one relevant to the test is displayed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VpnTunnelUri { + get { return vpnTunnelUri_; } + set { + vpnTunnelUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 6; + private string region_ = ""; + /// + /// Name of a Google Cloud region where this VPN gateway is configured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Region { + get { return region_; } + set { + region_ = 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 VpnGatewayInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VpnGatewayInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (NetworkUri != other.NetworkUri) return false; + if (IpAddress != other.IpAddress) return false; + if (VpnTunnelUri != other.VpnTunnelUri) return false; + if (Region != other.Region) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (NetworkUri.Length != 0) hash ^= NetworkUri.GetHashCode(); + if (IpAddress.Length != 0) hash ^= IpAddress.GetHashCode(); + if (VpnTunnelUri.Length != 0) hash ^= VpnTunnelUri.GetHashCode(); + if (Region.Length != 0) hash ^= Region.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NetworkUri); + } + if (IpAddress.Length != 0) { + output.WriteRawTag(34); + output.WriteString(IpAddress); + } + if (VpnTunnelUri.Length != 0) { + output.WriteRawTag(42); + output.WriteString(VpnTunnelUri); + } + if (Region.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Region); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NetworkUri); + } + if (IpAddress.Length != 0) { + output.WriteRawTag(34); + output.WriteString(IpAddress); + } + if (VpnTunnelUri.Length != 0) { + output.WriteRawTag(42); + output.WriteString(VpnTunnelUri); + } + if (Region.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Region); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (NetworkUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkUri); + } + if (IpAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IpAddress); + } + if (VpnTunnelUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VpnTunnelUri); + } + if (Region.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VpnGatewayInfo other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.NetworkUri.Length != 0) { + NetworkUri = other.NetworkUri; + } + if (other.IpAddress.Length != 0) { + IpAddress = other.IpAddress; + } + if (other.VpnTunnelUri.Length != 0) { + VpnTunnelUri = other.VpnTunnelUri; + } + if (other.Region.Length != 0) { + Region = other.Region; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + NetworkUri = input.ReadString(); + break; + } + case 34: { + IpAddress = input.ReadString(); + break; + } + case 42: { + VpnTunnelUri = input.ReadString(); + break; + } + case 50: { + Region = 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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + NetworkUri = input.ReadString(); + break; + } + case 34: { + IpAddress = input.ReadString(); + break; + } + case 42: { + VpnTunnelUri = input.ReadString(); + break; + } + case 50: { + Region = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// For display only. Metadata associated with a Compute Engine VPN tunnel. + /// + public sealed partial class VpnTunnelInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VpnTunnelInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 VpnTunnelInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VpnTunnelInfo(VpnTunnelInfo other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + sourceGateway_ = other.sourceGateway_; + remoteGateway_ = other.remoteGateway_; + remoteGatewayIp_ = other.remoteGatewayIp_; + sourceGatewayIp_ = other.sourceGatewayIp_; + networkUri_ = other.networkUri_; + region_ = other.region_; + routingType_ = other.routingType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VpnTunnelInfo Clone() { + return new VpnTunnelInfo(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of a VPN tunnel. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of a VPN tunnel. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_gateway" field. + public const int SourceGatewayFieldNumber = 3; + private string sourceGateway_ = ""; + /// + /// URI of the VPN gateway at local end of the tunnel. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceGateway { + get { return sourceGateway_; } + set { + sourceGateway_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "remote_gateway" field. + public const int RemoteGatewayFieldNumber = 4; + private string remoteGateway_ = ""; + /// + /// URI of a VPN gateway at remote end of the tunnel. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RemoteGateway { + get { return remoteGateway_; } + set { + remoteGateway_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "remote_gateway_ip" field. + public const int RemoteGatewayIpFieldNumber = 5; + private string remoteGatewayIp_ = ""; + /// + /// Remote VPN gateway's IP address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RemoteGatewayIp { + get { return remoteGatewayIp_; } + set { + remoteGatewayIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_gateway_ip" field. + public const int SourceGatewayIpFieldNumber = 6; + private string sourceGatewayIp_ = ""; + /// + /// Local VPN gateway's IP address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceGatewayIp { + get { return sourceGatewayIp_; } + set { + sourceGatewayIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network_uri" field. + public const int NetworkUriFieldNumber = 7; + private string networkUri_ = ""; + /// + /// URI of a Compute Engine network where the VPN tunnel is configured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NetworkUri { + get { return networkUri_; } + set { + networkUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 8; + private string region_ = ""; + /// + /// Name of a Google Cloud region where this VPN tunnel is configured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Region { + get { return region_; } + set { + region_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "routing_type" field. + public const int RoutingTypeFieldNumber = 9; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Types.RoutingType routingType_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Types.RoutingType.Unspecified; + /// + /// Type of the routing policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Types.RoutingType RoutingType { + get { return routingType_; } + set { + routingType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VpnTunnelInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VpnTunnelInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (SourceGateway != other.SourceGateway) return false; + if (RemoteGateway != other.RemoteGateway) return false; + if (RemoteGatewayIp != other.RemoteGatewayIp) return false; + if (SourceGatewayIp != other.SourceGatewayIp) return false; + if (NetworkUri != other.NetworkUri) return false; + if (Region != other.Region) return false; + if (RoutingType != other.RoutingType) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (SourceGateway.Length != 0) hash ^= SourceGateway.GetHashCode(); + if (RemoteGateway.Length != 0) hash ^= RemoteGateway.GetHashCode(); + if (RemoteGatewayIp.Length != 0) hash ^= RemoteGatewayIp.GetHashCode(); + if (SourceGatewayIp.Length != 0) hash ^= SourceGatewayIp.GetHashCode(); + if (NetworkUri.Length != 0) hash ^= NetworkUri.GetHashCode(); + if (Region.Length != 0) hash ^= Region.GetHashCode(); + if (RoutingType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Types.RoutingType.Unspecified) hash ^= RoutingType.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (SourceGateway.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SourceGateway); + } + if (RemoteGateway.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RemoteGateway); + } + if (RemoteGatewayIp.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RemoteGatewayIp); + } + if (SourceGatewayIp.Length != 0) { + output.WriteRawTag(50); + output.WriteString(SourceGatewayIp); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(58); + output.WriteString(NetworkUri); + } + if (Region.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Region); + } + if (RoutingType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Types.RoutingType.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) RoutingType); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (SourceGateway.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SourceGateway); + } + if (RemoteGateway.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RemoteGateway); + } + if (RemoteGatewayIp.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RemoteGatewayIp); + } + if (SourceGatewayIp.Length != 0) { + output.WriteRawTag(50); + output.WriteString(SourceGatewayIp); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(58); + output.WriteString(NetworkUri); + } + if (Region.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Region); + } + if (RoutingType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Types.RoutingType.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) RoutingType); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (SourceGateway.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceGateway); + } + if (RemoteGateway.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RemoteGateway); + } + if (RemoteGatewayIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RemoteGatewayIp); + } + if (SourceGatewayIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceGatewayIp); + } + if (NetworkUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkUri); + } + if (Region.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); + } + if (RoutingType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Types.RoutingType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RoutingType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VpnTunnelInfo other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.SourceGateway.Length != 0) { + SourceGateway = other.SourceGateway; + } + if (other.RemoteGateway.Length != 0) { + RemoteGateway = other.RemoteGateway; + } + if (other.RemoteGatewayIp.Length != 0) { + RemoteGatewayIp = other.RemoteGatewayIp; + } + if (other.SourceGatewayIp.Length != 0) { + SourceGatewayIp = other.SourceGatewayIp; + } + if (other.NetworkUri.Length != 0) { + NetworkUri = other.NetworkUri; + } + if (other.Region.Length != 0) { + Region = other.Region; + } + if (other.RoutingType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Types.RoutingType.Unspecified) { + RoutingType = other.RoutingType; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + SourceGateway = input.ReadString(); + break; + } + case 34: { + RemoteGateway = input.ReadString(); + break; + } + case 42: { + RemoteGatewayIp = input.ReadString(); + break; + } + case 50: { + SourceGatewayIp = input.ReadString(); + break; + } + case 58: { + NetworkUri = input.ReadString(); + break; + } + case 66: { + Region = input.ReadString(); + break; + } + case 72: { + RoutingType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Types.RoutingType) input.ReadEnum(); + 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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + SourceGateway = input.ReadString(); + break; + } + case 34: { + RemoteGateway = input.ReadString(); + break; + } + case 42: { + RemoteGatewayIp = input.ReadString(); + break; + } + case 50: { + SourceGatewayIp = input.ReadString(); + break; + } + case 58: { + NetworkUri = input.ReadString(); + break; + } + case 66: { + Region = input.ReadString(); + break; + } + case 72: { + RoutingType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.VpnTunnelInfo.Types.RoutingType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the VpnTunnelInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Types of VPN routing policy. For details, refer to [Networks and Tunnel + /// routing](https://cloud.google.com/network-connectivity/docs/vpn/concepts/choosing-networks-routing/). + /// + public enum RoutingType { + /// + /// Unspecified type. Default value. + /// + [pbr::OriginalName("ROUTING_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Route based VPN. + /// + [pbr::OriginalName("ROUTE_BASED")] RouteBased = 1, + /// + /// Policy based routing. + /// + [pbr::OriginalName("POLICY_BASED")] PolicyBased = 2, + /// + /// Dynamic (BGP) routing. + /// + [pbr::OriginalName("DYNAMIC")] Dynamic = 3, + } + + } + #endregion + + } + + /// + /// For display only. The specification of the endpoints for the test. + /// EndpointInfo is derived from source and destination Endpoint and validated + /// by the backend data plane model. + /// + public sealed partial class EndpointInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EndpointInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 EndpointInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EndpointInfo(EndpointInfo other) : this() { + sourceIp_ = other.sourceIp_; + destinationIp_ = other.destinationIp_; + protocol_ = other.protocol_; + sourcePort_ = other.sourcePort_; + destinationPort_ = other.destinationPort_; + sourceNetworkUri_ = other.sourceNetworkUri_; + destinationNetworkUri_ = other.destinationNetworkUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EndpointInfo Clone() { + return new EndpointInfo(this); + } + + /// Field number for the "source_ip" field. + public const int SourceIpFieldNumber = 1; + private string sourceIp_ = ""; + /// + /// Source IP address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceIp { + get { return sourceIp_; } + set { + sourceIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "destination_ip" field. + public const int DestinationIpFieldNumber = 2; + private string destinationIp_ = ""; + /// + /// Destination IP address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DestinationIp { + get { return destinationIp_; } + set { + destinationIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "protocol" field. + public const int ProtocolFieldNumber = 3; + private string protocol_ = ""; + /// + /// IP protocol in string format, for example: "TCP", "UDP", "ICMP". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Protocol { + get { return protocol_; } + set { + protocol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_port" field. + public const int SourcePortFieldNumber = 4; + private int sourcePort_; + /// + /// Source port. Only valid when protocol is TCP or UDP. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SourcePort { + get { return sourcePort_; } + set { + sourcePort_ = value; + } + } + + /// Field number for the "destination_port" field. + public const int DestinationPortFieldNumber = 5; + private int destinationPort_; + /// + /// Destination port. Only valid when protocol is TCP or UDP. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DestinationPort { + get { return destinationPort_; } + set { + destinationPort_ = value; + } + } + + /// Field number for the "source_network_uri" field. + public const int SourceNetworkUriFieldNumber = 6; + private string sourceNetworkUri_ = ""; + /// + /// URI of the network where this packet originates from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceNetworkUri { + get { return sourceNetworkUri_; } + set { + sourceNetworkUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "destination_network_uri" field. + public const int DestinationNetworkUriFieldNumber = 7; + private string destinationNetworkUri_ = ""; + /// + /// URI of the network where this packet is sent to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DestinationNetworkUri { + get { return destinationNetworkUri_; } + set { + destinationNetworkUri_ = 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 EndpointInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EndpointInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SourceIp != other.SourceIp) return false; + if (DestinationIp != other.DestinationIp) return false; + if (Protocol != other.Protocol) return false; + if (SourcePort != other.SourcePort) return false; + if (DestinationPort != other.DestinationPort) return false; + if (SourceNetworkUri != other.SourceNetworkUri) return false; + if (DestinationNetworkUri != other.DestinationNetworkUri) 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 (SourceIp.Length != 0) hash ^= SourceIp.GetHashCode(); + if (DestinationIp.Length != 0) hash ^= DestinationIp.GetHashCode(); + if (Protocol.Length != 0) hash ^= Protocol.GetHashCode(); + if (SourcePort != 0) hash ^= SourcePort.GetHashCode(); + if (DestinationPort != 0) hash ^= DestinationPort.GetHashCode(); + if (SourceNetworkUri.Length != 0) hash ^= SourceNetworkUri.GetHashCode(); + if (DestinationNetworkUri.Length != 0) hash ^= DestinationNetworkUri.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 (SourceIp.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SourceIp); + } + if (DestinationIp.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DestinationIp); + } + if (Protocol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Protocol); + } + if (SourcePort != 0) { + output.WriteRawTag(32); + output.WriteInt32(SourcePort); + } + if (DestinationPort != 0) { + output.WriteRawTag(40); + output.WriteInt32(DestinationPort); + } + if (SourceNetworkUri.Length != 0) { + output.WriteRawTag(50); + output.WriteString(SourceNetworkUri); + } + if (DestinationNetworkUri.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DestinationNetworkUri); + } + 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 (SourceIp.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SourceIp); + } + if (DestinationIp.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DestinationIp); + } + if (Protocol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Protocol); + } + if (SourcePort != 0) { + output.WriteRawTag(32); + output.WriteInt32(SourcePort); + } + if (DestinationPort != 0) { + output.WriteRawTag(40); + output.WriteInt32(DestinationPort); + } + if (SourceNetworkUri.Length != 0) { + output.WriteRawTag(50); + output.WriteString(SourceNetworkUri); + } + if (DestinationNetworkUri.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DestinationNetworkUri); + } + 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 (SourceIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceIp); + } + if (DestinationIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationIp); + } + if (Protocol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Protocol); + } + if (SourcePort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SourcePort); + } + if (DestinationPort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DestinationPort); + } + if (SourceNetworkUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceNetworkUri); + } + if (DestinationNetworkUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationNetworkUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EndpointInfo other) { + if (other == null) { + return; + } + if (other.SourceIp.Length != 0) { + SourceIp = other.SourceIp; + } + if (other.DestinationIp.Length != 0) { + DestinationIp = other.DestinationIp; + } + if (other.Protocol.Length != 0) { + Protocol = other.Protocol; + } + if (other.SourcePort != 0) { + SourcePort = other.SourcePort; + } + if (other.DestinationPort != 0) { + DestinationPort = other.DestinationPort; + } + if (other.SourceNetworkUri.Length != 0) { + SourceNetworkUri = other.SourceNetworkUri; + } + if (other.DestinationNetworkUri.Length != 0) { + DestinationNetworkUri = other.DestinationNetworkUri; + } + _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: { + SourceIp = input.ReadString(); + break; + } + case 18: { + DestinationIp = input.ReadString(); + break; + } + case 26: { + Protocol = input.ReadString(); + break; + } + case 32: { + SourcePort = input.ReadInt32(); + break; + } + case 40: { + DestinationPort = input.ReadInt32(); + break; + } + case 50: { + SourceNetworkUri = input.ReadString(); + break; + } + case 58: { + DestinationNetworkUri = 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: { + SourceIp = input.ReadString(); + break; + } + case 18: { + DestinationIp = input.ReadString(); + break; + } + case 26: { + Protocol = input.ReadString(); + break; + } + case 32: { + SourcePort = input.ReadInt32(); + break; + } + case 40: { + DestinationPort = input.ReadInt32(); + break; + } + case 50: { + SourceNetworkUri = input.ReadString(); + break; + } + case 58: { + DestinationNetworkUri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Details of the final state "deliver" and associated resource. + /// + public sealed partial class DeliverInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeliverInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.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 DeliverInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeliverInfo(DeliverInfo other) : this() { + target_ = other.target_; + resourceUri_ = other.resourceUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeliverInfo Clone() { + return new DeliverInfo(this); + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Types.Target target_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Types.Target.Unspecified; + /// + /// Target type where the packet is delivered to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Types.Target Target { + get { return target_; } + set { + target_ = value; + } + } + + /// Field number for the "resource_uri" field. + public const int ResourceUriFieldNumber = 2; + private string resourceUri_ = ""; + /// + /// URI of the resource that the packet is delivered to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceUri { + get { return resourceUri_; } + set { + resourceUri_ = 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 DeliverInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeliverInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Target != other.Target) return false; + if (ResourceUri != other.ResourceUri) 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 (Target != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Types.Target.Unspecified) hash ^= Target.GetHashCode(); + if (ResourceUri.Length != 0) hash ^= ResourceUri.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 (Target != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Types.Target.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Target); + } + if (ResourceUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceUri); + } + 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 (Target != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Types.Target.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Target); + } + if (ResourceUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceUri); + } + 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 (Target != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Types.Target.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Target); + } + if (ResourceUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeliverInfo other) { + if (other == null) { + return; + } + if (other.Target != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Types.Target.Unspecified) { + Target = other.Target; + } + if (other.ResourceUri.Length != 0) { + ResourceUri = other.ResourceUri; + } + _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: { + Target = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Types.Target) input.ReadEnum(); + break; + } + case 18: { + ResourceUri = 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 8: { + Target = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DeliverInfo.Types.Target) input.ReadEnum(); + break; + } + case 18: { + ResourceUri = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the DeliverInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Deliver target types: + /// + public enum Target { + /// + /// Target not specified. + /// + [pbr::OriginalName("TARGET_UNSPECIFIED")] Unspecified = 0, + /// + /// Target is a Compute Engine instance. + /// + [pbr::OriginalName("INSTANCE")] Instance = 1, + /// + /// Target is the internet. + /// + [pbr::OriginalName("INTERNET")] Internet = 2, + /// + /// Target is a Google API. + /// + [pbr::OriginalName("GOOGLE_API")] GoogleApi = 3, + /// + /// Target is a Google Kubernetes Engine cluster master. + /// + [pbr::OriginalName("GKE_MASTER")] GkeMaster = 4, + /// + /// Target is a Cloud SQL instance. + /// + [pbr::OriginalName("CLOUD_SQL_INSTANCE")] CloudSqlInstance = 5, + /// + /// Target is a published service that uses [Private Service + /// Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services). + /// + [pbr::OriginalName("PSC_PUBLISHED_SERVICE")] PscPublishedService = 6, + /// + /// Target is all Google APIs that use [Private Service + /// Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). + /// + [pbr::OriginalName("PSC_GOOGLE_API")] PscGoogleApi = 7, + /// + /// Target is a VPC-SC that uses [Private Service + /// Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). + /// + [pbr::OriginalName("PSC_VPC_SC")] PscVpcSc = 8, + } + + } + #endregion + + } + + /// + /// Details of the final state "forward" and associated resource. + /// + public sealed partial class ForwardInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ForwardInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[14]; } + } + + [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 ForwardInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ForwardInfo(ForwardInfo other) : this() { + target_ = other.target_; + resourceUri_ = other.resourceUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ForwardInfo Clone() { + return new ForwardInfo(this); + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Types.Target target_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Types.Target.Unspecified; + /// + /// Target type where this packet is forwarded to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Types.Target Target { + get { return target_; } + set { + target_ = value; + } + } + + /// Field number for the "resource_uri" field. + public const int ResourceUriFieldNumber = 2; + private string resourceUri_ = ""; + /// + /// URI of the resource that the packet is forwarded to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceUri { + get { return resourceUri_; } + set { + resourceUri_ = 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 ForwardInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ForwardInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Target != other.Target) return false; + if (ResourceUri != other.ResourceUri) 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 (Target != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Types.Target.Unspecified) hash ^= Target.GetHashCode(); + if (ResourceUri.Length != 0) hash ^= ResourceUri.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 (Target != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Types.Target.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Target); + } + if (ResourceUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceUri); + } + 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 (Target != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Types.Target.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Target); + } + if (ResourceUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceUri); + } + 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 (Target != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Types.Target.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Target); + } + if (ResourceUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ForwardInfo other) { + if (other == null) { + return; + } + if (other.Target != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Types.Target.Unspecified) { + Target = other.Target; + } + if (other.ResourceUri.Length != 0) { + ResourceUri = other.ResourceUri; + } + _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: { + Target = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Types.Target) input.ReadEnum(); + break; + } + case 18: { + ResourceUri = 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 8: { + Target = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ForwardInfo.Types.Target) input.ReadEnum(); + break; + } + case 18: { + ResourceUri = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ForwardInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Forward target types. + /// + public enum Target { + /// + /// Target not specified. + /// + [pbr::OriginalName("TARGET_UNSPECIFIED")] Unspecified = 0, + /// + /// Forwarded to a VPC peering network. + /// + [pbr::OriginalName("PEERING_VPC")] PeeringVpc = 1, + /// + /// Forwarded to a Cloud VPN gateway. + /// + [pbr::OriginalName("VPN_GATEWAY")] VpnGateway = 2, + /// + /// Forwarded to a Cloud Interconnect connection. + /// + [pbr::OriginalName("INTERCONNECT")] Interconnect = 3, + /// + /// Forwarded to a Google Kubernetes Engine Container cluster master. + /// + [pbr::OriginalName("GKE_MASTER")] GkeMaster = 4, + /// + /// Forwarded to the next hop of a custom route imported from a peering VPC. + /// + [pbr::OriginalName("IMPORTED_CUSTOM_ROUTE_NEXT_HOP")] ImportedCustomRouteNextHop = 5, + /// + /// Forwarded to a Cloud SQL instance. + /// + [pbr::OriginalName("CLOUD_SQL_INSTANCE")] CloudSqlInstance = 6, + /// + /// Forwarded to a VPC network in another project. + /// + [pbr::OriginalName("ANOTHER_PROJECT")] AnotherProject = 7, + } + + } + #endregion + + } + + /// + /// Details of the final state "abort" and associated resource. + /// + public sealed partial class AbortInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AbortInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[15]; } + } + + [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 AbortInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AbortInfo(AbortInfo other) : this() { + cause_ = other.cause_; + resourceUri_ = other.resourceUri_; + projectsMissingPermission_ = other.projectsMissingPermission_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AbortInfo Clone() { + return new AbortInfo(this); + } + + /// Field number for the "cause" field. + public const int CauseFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Types.Cause cause_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Types.Cause.Unspecified; + /// + /// Causes that the analysis is aborted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Types.Cause Cause { + get { return cause_; } + set { + cause_ = value; + } + } + + /// Field number for the "resource_uri" field. + public const int ResourceUriFieldNumber = 2; + private string resourceUri_ = ""; + /// + /// URI of the resource that caused the abort. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceUri { + get { return resourceUri_; } + set { + resourceUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "projects_missing_permission" field. + public const int ProjectsMissingPermissionFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_projectsMissingPermission_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField projectsMissingPermission_ = new pbc::RepeatedField(); + /// + /// List of project IDs that the user has specified in the request but does + /// not have permission to access network configs. Analysis is aborted in this + /// case with the PERMISSION_DENIED cause. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ProjectsMissingPermission { + get { return projectsMissingPermission_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AbortInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AbortInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Cause != other.Cause) return false; + if (ResourceUri != other.ResourceUri) return false; + if(!projectsMissingPermission_.Equals(other.projectsMissingPermission_)) 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 (Cause != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Types.Cause.Unspecified) hash ^= Cause.GetHashCode(); + if (ResourceUri.Length != 0) hash ^= ResourceUri.GetHashCode(); + hash ^= projectsMissingPermission_.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 (Cause != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Types.Cause.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Cause); + } + if (ResourceUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceUri); + } + projectsMissingPermission_.WriteTo(output, _repeated_projectsMissingPermission_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 (Cause != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Types.Cause.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Cause); + } + if (ResourceUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceUri); + } + projectsMissingPermission_.WriteTo(ref output, _repeated_projectsMissingPermission_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 (Cause != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Types.Cause.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Cause); + } + if (ResourceUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceUri); + } + size += projectsMissingPermission_.CalculateSize(_repeated_projectsMissingPermission_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AbortInfo other) { + if (other == null) { + return; + } + if (other.Cause != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Types.Cause.Unspecified) { + Cause = other.Cause; + } + if (other.ResourceUri.Length != 0) { + ResourceUri = other.ResourceUri; + } + projectsMissingPermission_.Add(other.projectsMissingPermission_); + _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: { + Cause = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Types.Cause) input.ReadEnum(); + break; + } + case 18: { + ResourceUri = input.ReadString(); + break; + } + case 26: { + projectsMissingPermission_.AddEntriesFrom(input, _repeated_projectsMissingPermission_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: { + Cause = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.AbortInfo.Types.Cause) input.ReadEnum(); + break; + } + case 18: { + ResourceUri = input.ReadString(); + break; + } + case 26: { + projectsMissingPermission_.AddEntriesFrom(ref input, _repeated_projectsMissingPermission_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AbortInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Abort cause types: + /// + public enum Cause { + /// + /// Cause is unspecified. + /// + [pbr::OriginalName("CAUSE_UNSPECIFIED")] Unspecified = 0, + /// + /// Aborted due to unknown network. + /// The reachability analysis cannot proceed because the user does not have + /// access to the host project's network configurations, including firewall + /// rules and routes. This happens when the project is a service project and + /// the endpoints being traced are in the host project's network. + /// + [pbr::OriginalName("UNKNOWN_NETWORK")] UnknownNetwork = 1, + /// + /// Aborted because the IP address(es) are unknown. + /// + [pbr::OriginalName("UNKNOWN_IP")] UnknownIp = 2, + /// + /// Aborted because no project information can be derived from the test + /// input. + /// + [pbr::OriginalName("UNKNOWN_PROJECT")] UnknownProject = 3, + /// + /// Aborted because the user lacks the permission to access all or part of + /// the network configurations required to run the test. + /// + [pbr::OriginalName("PERMISSION_DENIED")] PermissionDenied = 4, + /// + /// Aborted because no valid source endpoint is derived from the input test + /// request. + /// + [pbr::OriginalName("NO_SOURCE_LOCATION")] NoSourceLocation = 5, + /// + /// Aborted because the source and/or destination endpoint specified in + /// the test are invalid. The possible reasons that an endpoint is + /// invalid include: malformed IP address; nonexistent instance or + /// network URI; IP address not in the range of specified network URI; and + /// instance not owning the network interface in the specified network. + /// + [pbr::OriginalName("INVALID_ARGUMENT")] InvalidArgument = 6, + /// + /// Aborted because traffic is sent from a public IP to an instance without + /// an external IP. + /// + [pbr::OriginalName("NO_EXTERNAL_IP")] NoExternalIp = 7, + /// + /// Aborted because none of the traces matches destination information + /// specified in the input test request. + /// + [pbr::OriginalName("UNINTENDED_DESTINATION")] UnintendedDestination = 8, + /// + /// Aborted because the number of steps in the trace exceeding a certain + /// limit which may be caused by routing loop. + /// + [pbr::OriginalName("TRACE_TOO_LONG")] TraceTooLong = 9, + /// + /// Aborted due to internal server error. + /// + [pbr::OriginalName("INTERNAL_ERROR")] InternalError = 10, + /// + /// Aborted because the source endpoint could not be found. + /// + [pbr::OriginalName("SOURCE_ENDPOINT_NOT_FOUND")] SourceEndpointNotFound = 11, + /// + /// Aborted because the source network does not match the source endpoint. + /// + [pbr::OriginalName("MISMATCHED_SOURCE_NETWORK")] MismatchedSourceNetwork = 12, + /// + /// Aborted because the destination endpoint could not be found. + /// + [pbr::OriginalName("DESTINATION_ENDPOINT_NOT_FOUND")] DestinationEndpointNotFound = 13, + /// + /// Aborted because the destination network does not match the destination + /// endpoint. + /// + [pbr::OriginalName("MISMATCHED_DESTINATION_NETWORK")] MismatchedDestinationNetwork = 14, + /// + /// Aborted because the test scenario is not supported. + /// + [pbr::OriginalName("UNSUPPORTED")] Unsupported = 15, + /// + /// Aborted because the source and destination resources have no common IP + /// version. + /// + [pbr::OriginalName("MISMATCHED_IP_VERSION")] MismatchedIpVersion = 16, + /// + /// Aborted because the connection between the control plane and the node of + /// the source cluster is initiated by the node and managed by the + /// Konnectivity proxy. + /// + [pbr::OriginalName("GKE_KONNECTIVITY_PROXY_UNSUPPORTED")] GkeKonnectivityProxyUnsupported = 17, + /// + /// Aborted because expected resource configuration was missing. + /// + [pbr::OriginalName("RESOURCE_CONFIG_NOT_FOUND")] ResourceConfigNotFound = 18, + } + + } + #endregion + + } + + /// + /// Details of the final state "drop" and associated resource. + /// + public sealed partial class DropInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DropInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[16]; } + } + + [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 DropInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropInfo(DropInfo other) : this() { + cause_ = other.cause_; + resourceUri_ = other.resourceUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropInfo Clone() { + return new DropInfo(this); + } + + /// Field number for the "cause" field. + public const int CauseFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Types.Cause cause_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Types.Cause.Unspecified; + /// + /// Cause that the packet is dropped. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Types.Cause Cause { + get { return cause_; } + set { + cause_ = value; + } + } + + /// Field number for the "resource_uri" field. + public const int ResourceUriFieldNumber = 2; + private string resourceUri_ = ""; + /// + /// URI of the resource that caused the drop. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceUri { + get { return resourceUri_; } + set { + resourceUri_ = 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 DropInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DropInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Cause != other.Cause) return false; + if (ResourceUri != other.ResourceUri) 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 (Cause != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Types.Cause.Unspecified) hash ^= Cause.GetHashCode(); + if (ResourceUri.Length != 0) hash ^= ResourceUri.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 (Cause != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Types.Cause.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Cause); + } + if (ResourceUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceUri); + } + 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 (Cause != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Types.Cause.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Cause); + } + if (ResourceUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceUri); + } + 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 (Cause != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Types.Cause.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Cause); + } + if (ResourceUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DropInfo other) { + if (other == null) { + return; + } + if (other.Cause != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Types.Cause.Unspecified) { + Cause = other.Cause; + } + if (other.ResourceUri.Length != 0) { + ResourceUri = other.ResourceUri; + } + _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: { + Cause = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Types.Cause) input.ReadEnum(); + break; + } + case 18: { + ResourceUri = 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 8: { + Cause = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DropInfo.Types.Cause) input.ReadEnum(); + break; + } + case 18: { + ResourceUri = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the DropInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Drop cause types: + /// + public enum Cause { + /// + /// Cause is unspecified. + /// + [pbr::OriginalName("CAUSE_UNSPECIFIED")] Unspecified = 0, + /// + /// Destination external address cannot be resolved to a known target. If + /// the address is used in a Google Cloud project, provide the project ID + /// as test input. + /// + [pbr::OriginalName("UNKNOWN_EXTERNAL_ADDRESS")] UnknownExternalAddress = 1, + /// + /// A Compute Engine instance can only send or receive a packet with a + /// foreign IP address if ip_forward is enabled. + /// + [pbr::OriginalName("FOREIGN_IP_DISALLOWED")] ForeignIpDisallowed = 2, + /// + /// Dropped due to a firewall rule, unless allowed due to connection + /// tracking. + /// + [pbr::OriginalName("FIREWALL_RULE")] FirewallRule = 3, + /// + /// Dropped due to no routes. + /// + [pbr::OriginalName("NO_ROUTE")] NoRoute = 4, + /// + /// Dropped due to invalid route. Route's next hop is a blackhole. + /// + [pbr::OriginalName("ROUTE_BLACKHOLE")] RouteBlackhole = 5, + /// + /// Packet is sent to a wrong (unintended) network. Example: you trace a + /// packet from VM1:Network1 to VM2:Network2, however, the route configured + /// in Network1 sends the packet destined for VM2's IP addresss to Network3. + /// + [pbr::OriginalName("ROUTE_WRONG_NETWORK")] RouteWrongNetwork = 6, + /// + /// Packet with internal destination address sent to the internet gateway. + /// + [pbr::OriginalName("PRIVATE_TRAFFIC_TO_INTERNET")] PrivateTrafficToInternet = 7, + /// + /// Instance with only an internal IP address tries to access Google API and + /// services, but private Google access is not enabled. + /// + [pbr::OriginalName("PRIVATE_GOOGLE_ACCESS_DISALLOWED")] PrivateGoogleAccessDisallowed = 8, + /// + /// Instance with only an internal IP address tries to access external hosts, + /// but Cloud NAT is not enabled in the subnet, unless special configurations + /// on a VM allow this connection. + /// + [pbr::OriginalName("NO_EXTERNAL_ADDRESS")] NoExternalAddress = 9, + /// + /// Destination internal address cannot be resolved to a known target. If + /// this is a shared VPC scenario, verify if the service project ID is + /// provided as test input. Otherwise, verify if the IP address is being + /// used in the project. + /// + [pbr::OriginalName("UNKNOWN_INTERNAL_ADDRESS")] UnknownInternalAddress = 10, + /// + /// Forwarding rule's protocol and ports do not match the packet header. + /// + [pbr::OriginalName("FORWARDING_RULE_MISMATCH")] ForwardingRuleMismatch = 11, + /// + /// Packet could be dropped because it was sent from a different region + /// to a regional forwarding without global access. + /// + [pbr::OriginalName("FORWARDING_RULE_REGION_MISMATCH")] ForwardingRuleRegionMismatch = 25, + /// + /// Forwarding rule does not have backends configured. + /// + [pbr::OriginalName("FORWARDING_RULE_NO_INSTANCES")] ForwardingRuleNoInstances = 12, + /// + /// Firewalls block the health check probes to the backends and cause + /// the backends to be unavailable for traffic from the load balancer. + /// For more details, see [Health check firewall + /// rules](https://cloud.google.com/load-balancing/docs/health-checks#firewall_rules). + /// + [pbr::OriginalName("FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK")] FirewallBlockingLoadBalancerBackendHealthCheck = 13, + /// + /// Packet is sent from or to a Compute Engine instance that is not in a + /// running state. + /// + [pbr::OriginalName("INSTANCE_NOT_RUNNING")] InstanceNotRunning = 14, + /// + /// Packet sent from or to a GKE cluster that is not in running state. + /// + [pbr::OriginalName("GKE_CLUSTER_NOT_RUNNING")] GkeClusterNotRunning = 27, + /// + /// Packet sent from or to a Cloud SQL instance that is not in running state. + /// + [pbr::OriginalName("CLOUD_SQL_INSTANCE_NOT_RUNNING")] CloudSqlInstanceNotRunning = 28, + /// + /// The type of traffic is blocked and the user cannot configure a firewall + /// rule to enable it. See [Always blocked + /// traffic](https://cloud.google.com/vpc/docs/firewalls#blockedtraffic) for + /// more details. + /// + [pbr::OriginalName("TRAFFIC_TYPE_BLOCKED")] TrafficTypeBlocked = 15, + /// + /// Access to Google Kubernetes Engine cluster master's endpoint is not + /// authorized. See [Access to the cluster + /// endpoints](https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#access_to_the_cluster_endpoints) + /// for more details. + /// + [pbr::OriginalName("GKE_MASTER_UNAUTHORIZED_ACCESS")] GkeMasterUnauthorizedAccess = 16, + /// + /// Access to the Cloud SQL instance endpoint is not authorized. + /// See [Authorizing with authorized + /// networks](https://cloud.google.com/sql/docs/mysql/authorize-networks) for + /// more details. + /// + [pbr::OriginalName("CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS")] CloudSqlInstanceUnauthorizedAccess = 17, + /// + /// Packet was dropped inside Google Kubernetes Engine Service. + /// + [pbr::OriginalName("DROPPED_INSIDE_GKE_SERVICE")] DroppedInsideGkeService = 18, + /// + /// Packet was dropped inside Cloud SQL Service. + /// + [pbr::OriginalName("DROPPED_INSIDE_CLOUD_SQL_SERVICE")] DroppedInsideCloudSqlService = 19, + /// + /// Packet was dropped because there is no peering between the originating + /// network and the Google Managed Services Network. + /// + [pbr::OriginalName("GOOGLE_MANAGED_SERVICE_NO_PEERING")] GoogleManagedServiceNoPeering = 20, + /// + /// Packet was dropped because the Google-managed service uses Private + /// Service Connect (PSC), but the PSC endpoint is not found in the project. + /// + [pbr::OriginalName("GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT")] GoogleManagedServiceNoPscEndpoint = 38, + /// + /// Packet was dropped because the GKE cluster uses Private Service Connect + /// (PSC), but the PSC endpoint is not found in the project. + /// + [pbr::OriginalName("GKE_PSC_ENDPOINT_MISSING")] GkePscEndpointMissing = 36, + /// + /// Packet was dropped because the Cloud SQL instance has neither a private + /// nor a public IP address. + /// + [pbr::OriginalName("CLOUD_SQL_INSTANCE_NO_IP_ADDRESS")] CloudSqlInstanceNoIpAddress = 21, + /// + /// Packet was dropped because a GKE cluster private endpoint is + /// unreachable from a region different from the cluster's region. + /// + [pbr::OriginalName("GKE_CONTROL_PLANE_REGION_MISMATCH")] GkeControlPlaneRegionMismatch = 30, + /// + /// Packet sent from a public GKE cluster control plane to a private + /// IP address. + /// + [pbr::OriginalName("PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION")] PublicGkeControlPlaneToPrivateDestination = 31, + /// + /// Packet was dropped because there is no route from a GKE cluster + /// control plane to a destination network. + /// + [pbr::OriginalName("GKE_CONTROL_PLANE_NO_ROUTE")] GkeControlPlaneNoRoute = 32, + /// + /// Packet sent from a Cloud SQL instance to an external IP address is not + /// allowed. The Cloud SQL instance is not configured to send packets to + /// external IP addresses. + /// + [pbr::OriginalName("CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC")] CloudSqlInstanceNotConfiguredForExternalTraffic = 33, + /// + /// Packet sent from a Cloud SQL instance with only a public IP address to a + /// private IP address. + /// + [pbr::OriginalName("PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION")] PublicCloudSqlInstanceToPrivateDestination = 34, + /// + /// Packet was dropped because there is no route from a Cloud SQL + /// instance to a destination network. + /// + [pbr::OriginalName("CLOUD_SQL_INSTANCE_NO_ROUTE")] CloudSqlInstanceNoRoute = 35, + /// + /// Packet could be dropped because the Cloud Function is not in an active + /// status. + /// + [pbr::OriginalName("CLOUD_FUNCTION_NOT_ACTIVE")] CloudFunctionNotActive = 22, + /// + /// Packet could be dropped because no VPC connector is set. + /// + [pbr::OriginalName("VPC_CONNECTOR_NOT_SET")] VpcConnectorNotSet = 23, + /// + /// Packet could be dropped because the VPC connector is not in a running + /// state. + /// + [pbr::OriginalName("VPC_CONNECTOR_NOT_RUNNING")] VpcConnectorNotRunning = 24, + /// + /// The Private Service Connect endpoint is in a project that is not approved + /// to connect to the service. + /// + [pbr::OriginalName("PSC_CONNECTION_NOT_ACCEPTED")] PscConnectionNotAccepted = 26, + /// + /// Packet sent from a Cloud Run revision that is not ready. + /// + [pbr::OriginalName("CLOUD_RUN_REVISION_NOT_READY")] CloudRunRevisionNotReady = 29, + /// + /// Packet was dropped inside Private Service Connect service producer. + /// + [pbr::OriginalName("DROPPED_INSIDE_PSC_SERVICE_PRODUCER")] DroppedInsidePscServiceProducer = 37, + /// + /// Packet sent to a load balancer, which requires a proxy-only subnet and + /// the subnet is not found. + /// + [pbr::OriginalName("LOAD_BALANCER_HAS_NO_PROXY_SUBNET")] LoadBalancerHasNoProxySubnet = 39, + } + + } + #endregion + + } + + /// + /// For display only. Metadata associated with a Google Kubernetes Engine (GKE) + /// cluster master. + /// + public sealed partial class GKEMasterInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GKEMasterInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[17]; } + } + + [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 GKEMasterInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GKEMasterInfo(GKEMasterInfo other) : this() { + clusterUri_ = other.clusterUri_; + clusterNetworkUri_ = other.clusterNetworkUri_; + internalIp_ = other.internalIp_; + externalIp_ = other.externalIp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GKEMasterInfo Clone() { + return new GKEMasterInfo(this); + } + + /// Field number for the "cluster_uri" field. + public const int ClusterUriFieldNumber = 2; + private string clusterUri_ = ""; + /// + /// URI of a GKE cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClusterUri { + get { return clusterUri_; } + set { + clusterUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cluster_network_uri" field. + public const int ClusterNetworkUriFieldNumber = 4; + private string clusterNetworkUri_ = ""; + /// + /// URI of a GKE cluster network. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClusterNetworkUri { + get { return clusterNetworkUri_; } + set { + clusterNetworkUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "internal_ip" field. + public const int InternalIpFieldNumber = 5; + private string internalIp_ = ""; + /// + /// Internal IP address of a GKE cluster master. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InternalIp { + get { return internalIp_; } + set { + internalIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "external_ip" field. + public const int ExternalIpFieldNumber = 6; + private string externalIp_ = ""; + /// + /// External IP address of a GKE cluster master. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExternalIp { + get { return externalIp_; } + set { + externalIp_ = 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 GKEMasterInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GKEMasterInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClusterUri != other.ClusterUri) return false; + if (ClusterNetworkUri != other.ClusterNetworkUri) return false; + if (InternalIp != other.InternalIp) return false; + if (ExternalIp != other.ExternalIp) 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 (ClusterUri.Length != 0) hash ^= ClusterUri.GetHashCode(); + if (ClusterNetworkUri.Length != 0) hash ^= ClusterNetworkUri.GetHashCode(); + if (InternalIp.Length != 0) hash ^= InternalIp.GetHashCode(); + if (ExternalIp.Length != 0) hash ^= ExternalIp.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 (ClusterUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ClusterUri); + } + if (ClusterNetworkUri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ClusterNetworkUri); + } + if (InternalIp.Length != 0) { + output.WriteRawTag(42); + output.WriteString(InternalIp); + } + if (ExternalIp.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ExternalIp); + } + 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 (ClusterUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ClusterUri); + } + if (ClusterNetworkUri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ClusterNetworkUri); + } + if (InternalIp.Length != 0) { + output.WriteRawTag(42); + output.WriteString(InternalIp); + } + if (ExternalIp.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ExternalIp); + } + 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 (ClusterUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClusterUri); + } + if (ClusterNetworkUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClusterNetworkUri); + } + if (InternalIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InternalIp); + } + if (ExternalIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalIp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GKEMasterInfo other) { + if (other == null) { + return; + } + if (other.ClusterUri.Length != 0) { + ClusterUri = other.ClusterUri; + } + if (other.ClusterNetworkUri.Length != 0) { + ClusterNetworkUri = other.ClusterNetworkUri; + } + if (other.InternalIp.Length != 0) { + InternalIp = other.InternalIp; + } + if (other.ExternalIp.Length != 0) { + ExternalIp = other.ExternalIp; + } + _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 18: { + ClusterUri = input.ReadString(); + break; + } + case 34: { + ClusterNetworkUri = input.ReadString(); + break; + } + case 42: { + InternalIp = input.ReadString(); + break; + } + case 50: { + ExternalIp = 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 18: { + ClusterUri = input.ReadString(); + break; + } + case 34: { + ClusterNetworkUri = input.ReadString(); + break; + } + case 42: { + InternalIp = input.ReadString(); + break; + } + case 50: { + ExternalIp = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// For display only. Metadata associated with a Cloud SQL instance. + /// + public sealed partial class CloudSQLInstanceInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloudSQLInstanceInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[18]; } + } + + [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 CloudSQLInstanceInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudSQLInstanceInfo(CloudSQLInstanceInfo other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + networkUri_ = other.networkUri_; + internalIp_ = other.internalIp_; + externalIp_ = other.externalIp_; + region_ = other.region_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudSQLInstanceInfo Clone() { + return new CloudSQLInstanceInfo(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of a Cloud SQL instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of a Cloud SQL instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network_uri" field. + public const int NetworkUriFieldNumber = 4; + private string networkUri_ = ""; + /// + /// URI of a Cloud SQL instance network or empty string if the instance does + /// not have one. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NetworkUri { + get { return networkUri_; } + set { + networkUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "internal_ip" field. + public const int InternalIpFieldNumber = 5; + private string internalIp_ = ""; + /// + /// Internal IP address of a Cloud SQL instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InternalIp { + get { return internalIp_; } + set { + internalIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "external_ip" field. + public const int ExternalIpFieldNumber = 6; + private string externalIp_ = ""; + /// + /// External IP address of a Cloud SQL instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExternalIp { + get { return externalIp_; } + set { + externalIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 7; + private string region_ = ""; + /// + /// Region in which the Cloud SQL instance is running. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Region { + get { return region_; } + set { + region_ = 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 CloudSQLInstanceInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloudSQLInstanceInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (NetworkUri != other.NetworkUri) return false; + if (InternalIp != other.InternalIp) return false; + if (ExternalIp != other.ExternalIp) return false; + if (Region != other.Region) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (NetworkUri.Length != 0) hash ^= NetworkUri.GetHashCode(); + if (InternalIp.Length != 0) hash ^= InternalIp.GetHashCode(); + if (ExternalIp.Length != 0) hash ^= ExternalIp.GetHashCode(); + if (Region.Length != 0) hash ^= Region.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(NetworkUri); + } + if (InternalIp.Length != 0) { + output.WriteRawTag(42); + output.WriteString(InternalIp); + } + if (ExternalIp.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ExternalIp); + } + if (Region.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Region); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (NetworkUri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(NetworkUri); + } + if (InternalIp.Length != 0) { + output.WriteRawTag(42); + output.WriteString(InternalIp); + } + if (ExternalIp.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ExternalIp); + } + if (Region.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Region); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (NetworkUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkUri); + } + if (InternalIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InternalIp); + } + if (ExternalIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalIp); + } + if (Region.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloudSQLInstanceInfo other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.NetworkUri.Length != 0) { + NetworkUri = other.NetworkUri; + } + if (other.InternalIp.Length != 0) { + InternalIp = other.InternalIp; + } + if (other.ExternalIp.Length != 0) { + ExternalIp = other.ExternalIp; + } + if (other.Region.Length != 0) { + Region = other.Region; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 34: { + NetworkUri = input.ReadString(); + break; + } + case 42: { + InternalIp = input.ReadString(); + break; + } + case 50: { + ExternalIp = input.ReadString(); + break; + } + case 58: { + Region = 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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 34: { + NetworkUri = input.ReadString(); + break; + } + case 42: { + InternalIp = input.ReadString(); + break; + } + case 50: { + ExternalIp = input.ReadString(); + break; + } + case 58: { + Region = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// For display only. Metadata associated with a Cloud Function. + /// + public sealed partial class CloudFunctionInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloudFunctionInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[19]; } + } + + [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 CloudFunctionInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudFunctionInfo(CloudFunctionInfo other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + location_ = other.location_; + versionId_ = other.versionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudFunctionInfo Clone() { + return new CloudFunctionInfo(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of a Cloud Function. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of a Cloud Function. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 3; + private string location_ = ""; + /// + /// Location in which the Cloud Function is deployed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Location { + get { return location_; } + set { + location_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "version_id" field. + public const int VersionIdFieldNumber = 4; + private long versionId_; + /// + /// Latest successfully deployed version id of the Cloud Function. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long VersionId { + get { return versionId_; } + set { + versionId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CloudFunctionInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloudFunctionInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (Location != other.Location) return false; + if (VersionId != other.VersionId) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (Location.Length != 0) hash ^= Location.GetHashCode(); + if (VersionId != 0L) hash ^= VersionId.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Location.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Location); + } + if (VersionId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(VersionId); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Location.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Location); + } + if (VersionId != 0L) { + output.WriteRawTag(32); + output.WriteInt64(VersionId); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (Location.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Location); + } + if (VersionId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(VersionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloudFunctionInfo other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.Location.Length != 0) { + Location = other.Location; + } + if (other.VersionId != 0L) { + VersionId = other.VersionId; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Location = input.ReadString(); + break; + } + case 32: { + VersionId = 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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Location = input.ReadString(); + break; + } + case 32: { + VersionId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// For display only. Metadata associated with a Cloud Run revision. + /// + public sealed partial class CloudRunRevisionInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloudRunRevisionInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[20]; } + } + + [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 CloudRunRevisionInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudRunRevisionInfo(CloudRunRevisionInfo other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + location_ = other.location_; + serviceUri_ = other.serviceUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudRunRevisionInfo Clone() { + return new CloudRunRevisionInfo(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of a Cloud Run revision. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of a Cloud Run revision. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 4; + private string location_ = ""; + /// + /// Location in which this revision is deployed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Location { + get { return location_; } + set { + location_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_uri" field. + public const int ServiceUriFieldNumber = 5; + private string serviceUri_ = ""; + /// + /// URI of Cloud Run service this revision belongs to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceUri { + get { return serviceUri_; } + set { + serviceUri_ = 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 CloudRunRevisionInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloudRunRevisionInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (Location != other.Location) return false; + if (ServiceUri != other.ServiceUri) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (Location.Length != 0) hash ^= Location.GetHashCode(); + if (ServiceUri.Length != 0) hash ^= ServiceUri.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Location.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Location); + } + if (ServiceUri.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ServiceUri); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Location.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Location); + } + if (ServiceUri.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ServiceUri); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (Location.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Location); + } + if (ServiceUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloudRunRevisionInfo other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.Location.Length != 0) { + Location = other.Location; + } + if (other.ServiceUri.Length != 0) { + ServiceUri = other.ServiceUri; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 34: { + Location = input.ReadString(); + break; + } + case 42: { + ServiceUri = 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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 34: { + Location = input.ReadString(); + break; + } + case 42: { + ServiceUri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// For display only. Metadata associated with an App Engine version. + /// + public sealed partial class AppEngineVersionInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppEngineVersionInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[21]; } + } + + [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 AppEngineVersionInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEngineVersionInfo(AppEngineVersionInfo other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + runtime_ = other.runtime_; + environment_ = other.environment_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEngineVersionInfo Clone() { + return new AppEngineVersionInfo(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of an App Engine version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of an App Engine version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "runtime" field. + public const int RuntimeFieldNumber = 3; + private string runtime_ = ""; + /// + /// Runtime of the App Engine version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Runtime { + get { return runtime_; } + set { + runtime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "environment" field. + public const int EnvironmentFieldNumber = 4; + private string environment_ = ""; + /// + /// App Engine execution environment for a version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Environment { + get { return environment_; } + set { + environment_ = 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 AppEngineVersionInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppEngineVersionInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (Runtime != other.Runtime) return false; + if (Environment != other.Environment) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (Runtime.Length != 0) hash ^= Runtime.GetHashCode(); + if (Environment.Length != 0) hash ^= Environment.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Runtime.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Runtime); + } + if (Environment.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Environment); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Runtime.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Runtime); + } + if (Environment.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Environment); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (Runtime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Runtime); + } + if (Environment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Environment); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppEngineVersionInfo other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.Runtime.Length != 0) { + Runtime = other.Runtime; + } + if (other.Environment.Length != 0) { + Environment = other.Environment; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Runtime = input.ReadString(); + break; + } + case 34: { + Environment = 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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Runtime = input.ReadString(); + break; + } + case 34: { + Environment = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// For display only. Metadata associated with a VPC connector. + /// + public sealed partial class VpcConnectorInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VpcConnectorInfo()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[22]; } + } + + [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 VpcConnectorInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VpcConnectorInfo(VpcConnectorInfo other) : this() { + displayName_ = other.displayName_; + uri_ = other.uri_; + location_ = other.location_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VpcConnectorInfo Clone() { + return new VpcConnectorInfo(this); + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 1; + private string displayName_ = ""; + /// + /// Name of a VPC connector. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of a VPC connector. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 3; + private string location_ = ""; + /// + /// Location in which the VPC connector is deployed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Location { + get { return location_; } + set { + location_ = 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 VpcConnectorInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VpcConnectorInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DisplayName != other.DisplayName) return false; + if (Uri != other.Uri) return false; + if (Location != other.Location) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (Location.Length != 0) hash ^= Location.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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Location.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Location); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DisplayName); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Location.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Location); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (Location.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Location); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VpcConnectorInfo other) { + if (other == null) { + return; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.Location.Length != 0) { + Location = other.Location; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Location = 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: { + DisplayName = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Location = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A Connectivity Test for a network reachability analysis. + /// + public sealed partial class ConnectivityTest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectivityTest()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[23]; } + } + + [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 ConnectivityTest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConnectivityTest(ConnectivityTest other) : this() { + name_ = other.name_; + description_ = other.description_; + source_ = other.source_ != null ? other.source_.Clone() : null; + destination_ = other.destination_ != null ? other.destination_.Clone() : null; + protocol_ = other.protocol_; + relatedProjects_ = other.relatedProjects_.Clone(); + displayName_ = other.displayName_; + labels_ = other.labels_.Clone(); + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + reachabilityDetails_ = other.reachabilityDetails_ != null ? other.reachabilityDetails_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConnectivityTest Clone() { + return new ConnectivityTest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Unique name of the resource using the form: + /// `projects/{project_id}/locations/global/connectivityTests/{test_id}` + /// + [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 "description" field. + public const int DescriptionFieldNumber = 2; + private string description_ = ""; + /// + /// The user-supplied description of the Connectivity Test. + /// Maximum of 512 characters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint source_; + /// + /// Required. Source specification of the Connectivity Test. + /// + /// You can use a combination of source IP address, virtual machine + /// (VM) instance, or Compute Engine network to uniquely identify + /// the source location. + /// + /// Examples: + /// If the source IP address is an internal IP address within a Google Cloud + /// Virtual Private Cloud (VPC) network, then you must also specify the VPC + /// network. Otherwise, specify the VM instance, which already contains its + /// internal IP address and VPC network information. + /// + /// If the source of the test is within an on-premises network, then you must + /// provide the destination VPC network. + /// + /// If the source endpoint is a Compute Engine VM instance with multiple + /// network interfaces, the instance itself is not sufficient to identify the + /// endpoint. So, you must also specify the source IP address or VPC network. + /// + /// A reachability analysis proceeds even if the source location is + /// ambiguous. However, the test result may include endpoints that you don't + /// intend to test. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "destination" field. + public const int DestinationFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint destination_; + /// + /// Required. Destination specification of the Connectivity Test. + /// + /// You can use a combination of destination IP address, Compute Engine + /// VM instance, or VPC network to uniquely identify the destination + /// location. + /// + /// Even if the destination IP address is not unique, the source IP + /// location is unique. Usually, the analysis can infer the destination + /// endpoint from route information. + /// + /// If the destination you specify is a VM instance and the instance has + /// multiple network interfaces, then you must also specify either + /// a destination IP address or VPC network to identify the destination + /// interface. + /// + /// A reachability analysis proceeds even if the destination location is + /// ambiguous. However, the result can include endpoints that you don't + /// intend to test. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint Destination { + get { return destination_; } + set { + destination_ = value; + } + } + + /// Field number for the "protocol" field. + public const int ProtocolFieldNumber = 5; + private string protocol_ = ""; + /// + /// IP Protocol of the test. When not provided, "TCP" is assumed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Protocol { + get { return protocol_; } + set { + protocol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "related_projects" field. + public const int RelatedProjectsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_relatedProjects_codec + = pb::FieldCodec.ForString(50); + private readonly pbc::RepeatedField relatedProjects_ = new pbc::RepeatedField(); + /// + /// Other projects that may be relevant for reachability analysis. + /// This is applicable to scenarios where a test can cross project boundaries. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RelatedProjects { + get { return relatedProjects_; } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 7; + private string displayName_ = ""; + /// + /// Output only. The display name of a Connectivity Test. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 8; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Resource labels to represent user-provided metadata. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the test was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 11; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time the test's configuration was updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "reachability_details" field. + public const int ReachabilityDetailsFieldNumber = 12; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails reachabilityDetails_; + /// + /// Output only. The reachability details of this test from the latest run. + /// The details are updated when creating a new test, updating an + /// existing test, or triggering a one-time rerun of an existing test. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails ReachabilityDetails { + get { return reachabilityDetails_; } + set { + reachabilityDetails_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConnectivityTest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConnectivityTest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (!object.Equals(Source, other.Source)) return false; + if (!object.Equals(Destination, other.Destination)) return false; + if (Protocol != other.Protocol) return false; + if(!relatedProjects_.Equals(other.relatedProjects_)) return false; + if (DisplayName != other.DisplayName) return false; + if (!Labels.Equals(other.Labels)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(ReachabilityDetails, other.ReachabilityDetails)) 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 (Description.Length != 0) hash ^= Description.GetHashCode(); + if (source_ != null) hash ^= Source.GetHashCode(); + if (destination_ != null) hash ^= Destination.GetHashCode(); + if (Protocol.Length != 0) hash ^= Protocol.GetHashCode(); + hash ^= relatedProjects_.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (reachabilityDetails_ != null) hash ^= ReachabilityDetails.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 (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (source_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Source); + } + if (destination_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Destination); + } + if (Protocol.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Protocol); + } + relatedProjects_.WriteTo(output, _repeated_relatedProjects_codec); + if (DisplayName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DisplayName); + } + labels_.WriteTo(output, _map_labels_codec); + if (createTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(UpdateTime); + } + if (reachabilityDetails_ != null) { + output.WriteRawTag(98); + output.WriteMessage(ReachabilityDetails); + } + 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 (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (source_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Source); + } + if (destination_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Destination); + } + if (Protocol.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Protocol); + } + relatedProjects_.WriteTo(ref output, _repeated_relatedProjects_codec); + if (DisplayName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DisplayName); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (createTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(UpdateTime); + } + if (reachabilityDetails_ != null) { + output.WriteRawTag(98); + output.WriteMessage(ReachabilityDetails); + } + 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 (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (source_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source); + } + if (destination_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Destination); + } + if (Protocol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Protocol); + } + size += relatedProjects_.CalculateSize(_repeated_relatedProjects_codec); + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + size += labels_.CalculateSize(_map_labels_codec); + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (reachabilityDetails_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReachabilityDetails); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConnectivityTest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.source_ != null) { + if (source_ == null) { + Source = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint(); + } + Source.MergeFrom(other.Source); + } + if (other.destination_ != null) { + if (destination_ == null) { + Destination = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint(); + } + Destination.MergeFrom(other.Destination); + } + if (other.Protocol.Length != 0) { + Protocol = other.Protocol; + } + relatedProjects_.Add(other.relatedProjects_); + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + labels_.MergeFrom(other.labels_); + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.reachabilityDetails_ != null) { + if (reachabilityDetails_ == null) { + ReachabilityDetails = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails(); + } + ReachabilityDetails.MergeFrom(other.ReachabilityDetails); + } + _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: { + Description = input.ReadString(); + break; + } + case 26: { + if (source_ == null) { + Source = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint(); + } + input.ReadMessage(Source); + break; + } + case 34: { + if (destination_ == null) { + Destination = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint(); + } + input.ReadMessage(Destination); + break; + } + case 42: { + Protocol = input.ReadString(); + break; + } + case 50: { + relatedProjects_.AddEntriesFrom(input, _repeated_relatedProjects_codec); + break; + } + case 58: { + DisplayName = input.ReadString(); + break; + } + case 66: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 82: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 90: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 98: { + if (reachabilityDetails_ == null) { + ReachabilityDetails = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails(); + } + input.ReadMessage(ReachabilityDetails); + 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: { + Description = input.ReadString(); + break; + } + case 26: { + if (source_ == null) { + Source = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint(); + } + input.ReadMessage(Source); + break; + } + case 34: { + if (destination_ == null) { + Destination = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint(); + } + input.ReadMessage(Destination); + break; + } + case 42: { + Protocol = input.ReadString(); + break; + } + case 50: { + relatedProjects_.AddEntriesFrom(ref input, _repeated_relatedProjects_codec); + break; + } + case 58: { + DisplayName = input.ReadString(); + break; + } + case 66: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 82: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 90: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 98: { + if (reachabilityDetails_ == null) { + ReachabilityDetails = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails(); + } + input.ReadMessage(ReachabilityDetails); + break; + } + } + } + } + #endif + + } + + /// + /// Source or destination of the Connectivity Test. + /// + public sealed partial class Endpoint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Endpoint()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[24]; } + } + + [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 Endpoint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Endpoint(Endpoint other) : this() { + ipAddress_ = other.ipAddress_; + port_ = other.port_; + instance_ = other.instance_; + gkeMasterCluster_ = other.gkeMasterCluster_; + cloudSqlInstance_ = other.cloudSqlInstance_; + cloudFunction_ = other.cloudFunction_ != null ? other.cloudFunction_.Clone() : null; + appEngineVersion_ = other.appEngineVersion_ != null ? other.appEngineVersion_.Clone() : null; + cloudRunRevision_ = other.cloudRunRevision_ != null ? other.cloudRunRevision_.Clone() : null; + network_ = other.network_; + networkType_ = other.networkType_; + projectId_ = other.projectId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Endpoint Clone() { + return new Endpoint(this); + } + + /// Field number for the "ip_address" field. + public const int IpAddressFieldNumber = 1; + private string ipAddress_ = ""; + /// + /// The IP address of the endpoint, which can be an external or internal IP. + /// An IPv6 address is only allowed when the test's destination is a + /// [global load balancer VIP](/load-balancing/docs/load-balancing-overview). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IpAddress { + get { return ipAddress_; } + set { + ipAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "port" field. + public const int PortFieldNumber = 2; + private int port_; + /// + /// The IP protocol port of the endpoint. + /// Only applicable when protocol is TCP or UDP. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Port { + get { return port_; } + set { + port_ = value; + } + } + + /// Field number for the "instance" field. + public const int InstanceFieldNumber = 3; + private string instance_ = ""; + /// + /// A Compute Engine instance URI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Instance { + get { return instance_; } + set { + instance_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gke_master_cluster" field. + public const int GkeMasterClusterFieldNumber = 7; + private string gkeMasterCluster_ = ""; + /// + /// A cluster URI for [Google Kubernetes Engine + /// master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GkeMasterCluster { + get { return gkeMasterCluster_; } + set { + gkeMasterCluster_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cloud_sql_instance" field. + public const int CloudSqlInstanceFieldNumber = 8; + private string cloudSqlInstance_ = ""; + /// + /// A [Cloud SQL](https://cloud.google.com/sql) instance URI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CloudSqlInstance { + get { return cloudSqlInstance_; } + set { + cloudSqlInstance_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cloud_function" field. + public const int CloudFunctionFieldNumber = 10; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudFunctionEndpoint cloudFunction_; + /// + /// A [Cloud Function](https://cloud.google.com/functions). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudFunctionEndpoint CloudFunction { + get { return cloudFunction_; } + set { + cloudFunction_ = value; + } + } + + /// Field number for the "app_engine_version" field. + public const int AppEngineVersionFieldNumber = 11; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.AppEngineVersionEndpoint appEngineVersion_; + /// + /// An [App Engine](https://cloud.google.com/appengine) [service + /// version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.AppEngineVersionEndpoint AppEngineVersion { + get { return appEngineVersion_; } + set { + appEngineVersion_ = value; + } + } + + /// Field number for the "cloud_run_revision" field. + public const int CloudRunRevisionFieldNumber = 12; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudRunRevisionEndpoint cloudRunRevision_; + /// + /// A [Cloud Run](https://cloud.google.com/run) + /// [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudRunRevisionEndpoint CloudRunRevision { + get { return cloudRunRevision_; } + set { + cloudRunRevision_ = value; + } + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 4; + private string network_ = ""; + /// + /// A Compute Engine network URI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Network { + get { return network_; } + set { + network_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network_type" field. + public const int NetworkTypeFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType networkType_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType.Unspecified; + /// + /// Type of the network where the endpoint is located. + /// Applicable only to source endpoint, as destination network type can be + /// inferred from the source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType NetworkType { + get { return networkType_; } + set { + networkType_ = value; + } + } + + /// Field number for the "project_id" field. + public const int ProjectIdFieldNumber = 6; + private string projectId_ = ""; + /// + /// Project ID where the endpoint is located. + /// The Project ID can be derived from the URI if you provide a VM instance or + /// network URI. + /// The following are two cases where you must provide the project ID: + /// 1. Only the IP address is specified, and the IP address is within a Google + /// Cloud project. + /// 2. When you are using Shared VPC and the IP address that you provide is + /// from the service project. In this case, the network that the IP address + /// resides in is defined in the host project. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ProjectId { + get { return projectId_; } + set { + projectId_ = 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 Endpoint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Endpoint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IpAddress != other.IpAddress) return false; + if (Port != other.Port) return false; + if (Instance != other.Instance) return false; + if (GkeMasterCluster != other.GkeMasterCluster) return false; + if (CloudSqlInstance != other.CloudSqlInstance) return false; + if (!object.Equals(CloudFunction, other.CloudFunction)) return false; + if (!object.Equals(AppEngineVersion, other.AppEngineVersion)) return false; + if (!object.Equals(CloudRunRevision, other.CloudRunRevision)) return false; + if (Network != other.Network) return false; + if (NetworkType != other.NetworkType) return false; + if (ProjectId != other.ProjectId) 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 (IpAddress.Length != 0) hash ^= IpAddress.GetHashCode(); + if (Port != 0) hash ^= Port.GetHashCode(); + if (Instance.Length != 0) hash ^= Instance.GetHashCode(); + if (GkeMasterCluster.Length != 0) hash ^= GkeMasterCluster.GetHashCode(); + if (CloudSqlInstance.Length != 0) hash ^= CloudSqlInstance.GetHashCode(); + if (cloudFunction_ != null) hash ^= CloudFunction.GetHashCode(); + if (appEngineVersion_ != null) hash ^= AppEngineVersion.GetHashCode(); + if (cloudRunRevision_ != null) hash ^= CloudRunRevision.GetHashCode(); + if (Network.Length != 0) hash ^= Network.GetHashCode(); + if (NetworkType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType.Unspecified) hash ^= NetworkType.GetHashCode(); + if (ProjectId.Length != 0) hash ^= ProjectId.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 (IpAddress.Length != 0) { + output.WriteRawTag(10); + output.WriteString(IpAddress); + } + if (Port != 0) { + output.WriteRawTag(16); + output.WriteInt32(Port); + } + if (Instance.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Instance); + } + if (Network.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Network); + } + if (NetworkType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) NetworkType); + } + if (ProjectId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ProjectId); + } + if (GkeMasterCluster.Length != 0) { + output.WriteRawTag(58); + output.WriteString(GkeMasterCluster); + } + if (CloudSqlInstance.Length != 0) { + output.WriteRawTag(66); + output.WriteString(CloudSqlInstance); + } + if (cloudFunction_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CloudFunction); + } + if (appEngineVersion_ != null) { + output.WriteRawTag(90); + output.WriteMessage(AppEngineVersion); + } + if (cloudRunRevision_ != null) { + output.WriteRawTag(98); + output.WriteMessage(CloudRunRevision); + } + 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 (IpAddress.Length != 0) { + output.WriteRawTag(10); + output.WriteString(IpAddress); + } + if (Port != 0) { + output.WriteRawTag(16); + output.WriteInt32(Port); + } + if (Instance.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Instance); + } + if (Network.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Network); + } + if (NetworkType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) NetworkType); + } + if (ProjectId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ProjectId); + } + if (GkeMasterCluster.Length != 0) { + output.WriteRawTag(58); + output.WriteString(GkeMasterCluster); + } + if (CloudSqlInstance.Length != 0) { + output.WriteRawTag(66); + output.WriteString(CloudSqlInstance); + } + if (cloudFunction_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CloudFunction); + } + if (appEngineVersion_ != null) { + output.WriteRawTag(90); + output.WriteMessage(AppEngineVersion); + } + if (cloudRunRevision_ != null) { + output.WriteRawTag(98); + output.WriteMessage(CloudRunRevision); + } + 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 (IpAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IpAddress); + } + if (Port != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); + } + if (Instance.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Instance); + } + if (GkeMasterCluster.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GkeMasterCluster); + } + if (CloudSqlInstance.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CloudSqlInstance); + } + if (cloudFunction_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CloudFunction); + } + if (appEngineVersion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AppEngineVersion); + } + if (cloudRunRevision_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CloudRunRevision); + } + if (Network.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Network); + } + if (NetworkType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NetworkType); + } + if (ProjectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Endpoint other) { + if (other == null) { + return; + } + if (other.IpAddress.Length != 0) { + IpAddress = other.IpAddress; + } + if (other.Port != 0) { + Port = other.Port; + } + if (other.Instance.Length != 0) { + Instance = other.Instance; + } + if (other.GkeMasterCluster.Length != 0) { + GkeMasterCluster = other.GkeMasterCluster; + } + if (other.CloudSqlInstance.Length != 0) { + CloudSqlInstance = other.CloudSqlInstance; + } + if (other.cloudFunction_ != null) { + if (cloudFunction_ == null) { + CloudFunction = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudFunctionEndpoint(); + } + CloudFunction.MergeFrom(other.CloudFunction); + } + if (other.appEngineVersion_ != null) { + if (appEngineVersion_ == null) { + AppEngineVersion = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.AppEngineVersionEndpoint(); + } + AppEngineVersion.MergeFrom(other.AppEngineVersion); + } + if (other.cloudRunRevision_ != null) { + if (cloudRunRevision_ == null) { + CloudRunRevision = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudRunRevisionEndpoint(); + } + CloudRunRevision.MergeFrom(other.CloudRunRevision); + } + if (other.Network.Length != 0) { + Network = other.Network; + } + if (other.NetworkType != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType.Unspecified) { + NetworkType = other.NetworkType; + } + if (other.ProjectId.Length != 0) { + ProjectId = other.ProjectId; + } + _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: { + IpAddress = input.ReadString(); + break; + } + case 16: { + Port = input.ReadInt32(); + break; + } + case 26: { + Instance = input.ReadString(); + break; + } + case 34: { + Network = input.ReadString(); + break; + } + case 40: { + NetworkType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType) input.ReadEnum(); + break; + } + case 50: { + ProjectId = input.ReadString(); + break; + } + case 58: { + GkeMasterCluster = input.ReadString(); + break; + } + case 66: { + CloudSqlInstance = input.ReadString(); + break; + } + case 82: { + if (cloudFunction_ == null) { + CloudFunction = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudFunctionEndpoint(); + } + input.ReadMessage(CloudFunction); + break; + } + case 90: { + if (appEngineVersion_ == null) { + AppEngineVersion = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.AppEngineVersionEndpoint(); + } + input.ReadMessage(AppEngineVersion); + break; + } + case 98: { + if (cloudRunRevision_ == null) { + CloudRunRevision = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudRunRevisionEndpoint(); + } + input.ReadMessage(CloudRunRevision); + 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: { + IpAddress = input.ReadString(); + break; + } + case 16: { + Port = input.ReadInt32(); + break; + } + case 26: { + Instance = input.ReadString(); + break; + } + case 34: { + Network = input.ReadString(); + break; + } + case 40: { + NetworkType = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType) input.ReadEnum(); + break; + } + case 50: { + ProjectId = input.ReadString(); + break; + } + case 58: { + GkeMasterCluster = input.ReadString(); + break; + } + case 66: { + CloudSqlInstance = input.ReadString(); + break; + } + case 82: { + if (cloudFunction_ == null) { + CloudFunction = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudFunctionEndpoint(); + } + input.ReadMessage(CloudFunction); + break; + } + case 90: { + if (appEngineVersion_ == null) { + AppEngineVersion = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.AppEngineVersionEndpoint(); + } + input.ReadMessage(AppEngineVersion); + break; + } + case 98: { + if (cloudRunRevision_ == null) { + CloudRunRevision = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.Types.CloudRunRevisionEndpoint(); + } + input.ReadMessage(CloudRunRevision); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Endpoint message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type definition of an endpoint's network. Use one of the + /// following choices: + /// + public enum NetworkType { + /// + /// Default type if unspecified. + /// + [pbr::OriginalName("NETWORK_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// A network hosted within Google Cloud. + /// To receive more detailed output, specify the URI for the source or + /// destination network. + /// + [pbr::OriginalName("GCP_NETWORK")] GcpNetwork = 1, + /// + /// A network hosted outside of Google Cloud. + /// This can be an on-premises network, or a network hosted by another cloud + /// provider. + /// + [pbr::OriginalName("NON_GCP_NETWORK")] NonGcpNetwork = 2, + } + + /// + /// Wrapper for Cloud Function attributes. + /// + public sealed partial class CloudFunctionEndpoint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloudFunctionEndpoint()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.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 CloudFunctionEndpoint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudFunctionEndpoint(CloudFunctionEndpoint other) : this() { + uri_ = other.uri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudFunctionEndpoint Clone() { + return new CloudFunctionEndpoint(this); + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 1; + private string uri_ = ""; + /// + /// A [Cloud Function](https://cloud.google.com/functions) name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = 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 CloudFunctionEndpoint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloudFunctionEndpoint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uri != other.Uri) 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 (Uri.Length != 0) hash ^= Uri.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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + 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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + 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 (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloudFunctionEndpoint other) { + if (other == null) { + return; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + _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: { + Uri = 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: { + Uri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Wrapper for the App Engine service version attributes. + /// + public sealed partial class AppEngineVersionEndpoint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppEngineVersionEndpoint()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.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 AppEngineVersionEndpoint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEngineVersionEndpoint(AppEngineVersionEndpoint other) : this() { + uri_ = other.uri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEngineVersionEndpoint Clone() { + return new AppEngineVersionEndpoint(this); + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 1; + private string uri_ = ""; + /// + /// An [App Engine](https://cloud.google.com/appengine) [service + /// version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + /// name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = 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 AppEngineVersionEndpoint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppEngineVersionEndpoint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uri != other.Uri) 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 (Uri.Length != 0) hash ^= Uri.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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + 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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + 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 (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppEngineVersionEndpoint other) { + if (other == null) { + return; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + _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: { + Uri = 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: { + Uri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Wrapper for Cloud Run revision attributes. + /// + public sealed partial class CloudRunRevisionEndpoint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloudRunRevisionEndpoint()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Endpoint.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 CloudRunRevisionEndpoint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudRunRevisionEndpoint(CloudRunRevisionEndpoint other) : this() { + uri_ = other.uri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudRunRevisionEndpoint Clone() { + return new CloudRunRevisionEndpoint(this); + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 1; + private string uri_ = ""; + /// + /// A [Cloud Run](https://cloud.google.com/run) + /// [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + /// URI. The format is: + /// projects/{project}/locations/{location}/revisions/{revision} + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = 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 CloudRunRevisionEndpoint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloudRunRevisionEndpoint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uri != other.Uri) 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 (Uri.Length != 0) hash ^= Uri.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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + 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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + 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 (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloudRunRevisionEndpoint other) { + if (other == null) { + return; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + _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: { + Uri = 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: { + Uri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Results of the configuration analysis from the last run of the test. + /// + public sealed partial class ReachabilityDetails : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReachabilityDetails()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[25]; } + } + + [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 ReachabilityDetails() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReachabilityDetails(ReachabilityDetails other) : this() { + result_ = other.result_; + verifyTime_ = other.verifyTime_ != null ? other.verifyTime_.Clone() : null; + error_ = other.error_ != null ? other.error_.Clone() : null; + traces_ = other.traces_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReachabilityDetails Clone() { + return new ReachabilityDetails(this); + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result result_ = global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result.Unspecified; + /// + /// The overall result of the test's configuration analysis. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result Result { + get { return result_; } + set { + result_ = value; + } + } + + /// Field number for the "verify_time" field. + public const int VerifyTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp verifyTime_; + /// + /// The time of the configuration analysis. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp VerifyTime { + get { return verifyTime_; } + set { + verifyTime_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 3; + private global::Google.Rpc.Status error_; + /// + /// The details of a failure or a cancellation of reachability analysis. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "traces" field. + public const int TracesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_traces_codec + = pb::FieldCodec.ForMessage(42, global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.Trace.Parser); + private readonly pbc::RepeatedField traces_ = new pbc::RepeatedField(); + /// + /// Result may contain a list of traces if a test has multiple possible + /// paths in the network, such as when destination endpoint is a load balancer + /// with multiple backends. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Traces { + get { return traces_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReachabilityDetails); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReachabilityDetails other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Result != other.Result) return false; + if (!object.Equals(VerifyTime, other.VerifyTime)) return false; + if (!object.Equals(Error, other.Error)) return false; + if(!traces_.Equals(other.traces_)) 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 (Result != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result.Unspecified) hash ^= Result.GetHashCode(); + if (verifyTime_ != null) hash ^= VerifyTime.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + hash ^= traces_.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 (Result != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Result); + } + if (verifyTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(VerifyTime); + } + if (error_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Error); + } + traces_.WriteTo(output, _repeated_traces_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 (Result != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Result); + } + if (verifyTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(VerifyTime); + } + if (error_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Error); + } + traces_.WriteTo(ref output, _repeated_traces_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 (Result != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Result); + } + if (verifyTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VerifyTime); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + size += traces_.CalculateSize(_repeated_traces_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReachabilityDetails other) { + if (other == null) { + return; + } + if (other.Result != global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result.Unspecified) { + Result = other.Result; + } + if (other.verifyTime_ != null) { + if (verifyTime_ == null) { + VerifyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + VerifyTime.MergeFrom(other.VerifyTime); + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + traces_.Add(other.traces_); + _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: { + Result = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result) input.ReadEnum(); + break; + } + case 18: { + if (verifyTime_ == null) { + VerifyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(VerifyTime); + break; + } + case 26: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 42: { + traces_.AddEntriesFrom(input, _repeated_traces_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: { + Result = (global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result) input.ReadEnum(); + break; + } + case 18: { + if (verifyTime_ == null) { + VerifyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(VerifyTime); + break; + } + case 26: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 42: { + traces_.AddEntriesFrom(ref input, _repeated_traces_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ReachabilityDetails message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The overall result of the test's configuration analysis. + /// + public enum Result { + /// + /// No result was specified. + /// + [pbr::OriginalName("RESULT_UNSPECIFIED")] Unspecified = 0, + /// + /// Possible scenarios are: + /// + /// * The configuration analysis determined that a packet originating from + /// the source is expected to reach the destination. + /// * The analysis didn't complete because the user lacks permission for + /// some of the resources in the trace. However, at the time the user's + /// permission became insufficient, the trace had been successful so far. + /// + [pbr::OriginalName("REACHABLE")] Reachable = 1, + /// + /// A packet originating from the source is expected to be dropped before + /// reaching the destination. + /// + [pbr::OriginalName("UNREACHABLE")] Unreachable = 2, + /// + /// The source and destination endpoints do not uniquely identify + /// the test location in the network, and the reachability result contains + /// multiple traces. For some traces, a packet could be delivered, and for + /// others, it would not be. + /// + [pbr::OriginalName("AMBIGUOUS")] Ambiguous = 4, + /// + /// The configuration analysis did not complete. Possible reasons are: + /// + /// * A permissions error occurred--for example, the user might not have + /// read permission for all of the resources named in the test. + /// * An internal error occurred. + /// * The analyzer received an invalid or unsupported argument or was unable + /// to identify a known endpoint. + /// + [pbr::OriginalName("UNDETERMINED")] Undetermined = 5, + } + + } + #endregion + + } + + /// + /// The data within all ConnectivityTest events. + /// + public sealed partial class ConnectivityTestEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectivityTestEventData()); + 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::Google.Events.Protobuf.Cloud.NetworkManagement.V1.DataReflection.Descriptor.MessageTypes[26]; } + } + + [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 ConnectivityTestEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConnectivityTestEventData(ConnectivityTestEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConnectivityTestEventData Clone() { + return new ConnectivityTestEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ConnectivityTest payload_; + /// + /// Optional. The ConnectivityTest event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ConnectivityTest Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConnectivityTestEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConnectivityTestEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConnectivityTestEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ConnectivityTest(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ConnectivityTest(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.NetworkManagement.V1.ConnectivityTest(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/ExtensionAttributes.g.cs b/src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/ExtensionAttributes.g.cs new file mode 100644 index 0000000..ccdaee4 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/NetworkManagement/V1/ExtensionAttributes.g.cs @@ -0,0 +1,36 @@ +// Copyright 2023, 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 +// +// https://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. + +using CloudNative.CloudEvents; + +namespace Google.Events.Protobuf.Cloud.NetworkManagement.V1 +{ + /// Extension attributes for Google.Events.Protobuf.Cloud.NetworkManagement.V1 events. + public static class ExtensionAttributes + { + /// + /// The resource ID of the Test triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.networkmanagement.connectivityTest.v1.created + /// google.cloud.networkmanagement.connectivityTest.v1.updated + /// google.cloud.networkmanagement.connectivityTest.v1.deleted + /// + /// + public static CloudEventAttribute Test { get; } = CloudEventAttribute.CreateExtension("test", CloudEventAttributeType.String); + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Notebooks/V1/Data.g.cs b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/Data.g.cs new file mode 100644 index 0000000..95d6974 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/Data.g.cs @@ -0,0 +1,14523 @@ +// Copyright 2023, 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 +// +// https://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. + +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/notebooks/v1/data.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 Google.Events.Protobuf.Cloud.Notebooks.V1 { + + /// Holder for reflection information generated from google/events/cloud/notebooks/v1/data.proto + public static partial class DataReflection { + + #region Descriptor + /// File descriptor for google/events/cloud/notebooks/v1/data.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Citnb29nbGUvZXZlbnRzL2Nsb3VkL25vdGVib29rcy92MS9kYXRhLnByb3Rv", + "EiBnb29nbGUuZXZlbnRzLmNsb3VkLm5vdGVib29rcy52MRofZ29vZ2xlL3By", + "b3RvYnVmL3RpbWVzdGFtcC5wcm90byKuAgoLRW52aXJvbm1lbnQSDAoEbmFt", + "ZRgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSEwoLZGVzY3JpcHRpb24Y", + "AyABKAkSPQoIdm1faW1hZ2UYBiABKAsyKS5nb29nbGUuZXZlbnRzLmNsb3Vk", + "Lm5vdGVib29rcy52MS5WbUltYWdlSAASSwoPY29udGFpbmVyX2ltYWdlGAcg", + "ASgLMjAuZ29vZ2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEuQ29udGFp", + "bmVySW1hZ2VIABIbChNwb3N0X3N0YXJ0dXBfc2NyaXB0GAggASgJEi8KC2Ny", + "ZWF0ZV90aW1lGAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIM", + "CgppbWFnZV90eXBlIlEKB1ZtSW1hZ2USDwoHcHJvamVjdBgBIAEoCRIUCgpp", + "bWFnZV9uYW1lGAIgASgJSAASFgoMaW1hZ2VfZmFtaWx5GAMgASgJSABCBwoF", + "aW1hZ2UiMQoOQ29udGFpbmVySW1hZ2USEgoKcmVwb3NpdG9yeRgBIAEoCRIL", + "CgN0YWcYAiABKAkizAcKB1J1bnRpbWUSDAoEbmFtZRgBIAEoCRJLCg92aXJ0", + "dWFsX21hY2hpbmUYAiABKAsyMC5nb29nbGUuZXZlbnRzLmNsb3VkLm5vdGVi", + "b29rcy52MS5WaXJ0dWFsTWFjaGluZUgAEj4KBXN0YXRlGAMgASgOMi8uZ29v", + "Z2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEuUnVudGltZS5TdGF0ZRJL", + "CgxoZWFsdGhfc3RhdGUYBCABKA4yNS5nb29nbGUuZXZlbnRzLmNsb3VkLm5v", + "dGVib29rcy52MS5SdW50aW1lLkhlYWx0aFN0YXRlEkwKDWFjY2Vzc19jb25m", + "aWcYBSABKAsyNS5nb29nbGUuZXZlbnRzLmNsb3VkLm5vdGVib29rcy52MS5S", + "dW50aW1lQWNjZXNzQ29uZmlnElAKD3NvZnR3YXJlX2NvbmZpZxgGIAEoCzI3", + "Lmdvb2dsZS5ldmVudHMuY2xvdWQubm90ZWJvb2tzLnYxLlJ1bnRpbWVTb2Z0", + "d2FyZUNvbmZpZxJBCgdtZXRyaWNzGAcgASgLMjAuZ29vZ2xlLmV2ZW50cy5j", + "bG91ZC5ub3RlYm9va3MudjEuUnVudGltZU1ldHJpY3MSLwoLY3JlYXRlX3Rp", + "bWUYFCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC3VwZGF0", + "ZV90aW1lGBUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBJFCgZs", + "YWJlbHMYFyADKAsyNS5nb29nbGUuZXZlbnRzLmNsb3VkLm5vdGVib29rcy52", + "MS5SdW50aW1lLkxhYmVsc0VudHJ5Gi0KC0xhYmVsc0VudHJ5EgsKA2tleRgB", + "IAEoCRINCgV2YWx1ZRgCIAEoCToCOAEilAEKBVN0YXRlEhUKEVNUQVRFX1VO", + "U1BFQ0lGSUVEEAASDAoIU1RBUlRJTkcQARIQCgxQUk9WSVNJT05JTkcQAhIK", + "CgZBQ1RJVkUQAxIMCghTVE9QUElORxAEEgsKB1NUT1BQRUQQBRIMCghERUxF", + "VElORxAGEg0KCVVQR1JBRElORxAHEhAKDElOSVRJQUxJWklORxAIIncKC0hl", + "YWx0aFN0YXRlEhwKGEhFQUxUSF9TVEFURV9VTlNQRUNJRklFRBAAEgsKB0hF", + "QUxUSFkQARINCglVTkhFQUxUSFkQAhIXChNBR0VOVF9OT1RfSU5TVEFMTEVE", + "EAMSFQoRQUdFTlRfTk9UX1JVTk5JTkcQBEIOCgxydW50aW1lX3R5cGUiqAMK", + "GFJ1bnRpbWVBY2NlbGVyYXRvckNvbmZpZxJYCgR0eXBlGAEgASgOMkouZ29v", + "Z2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEuUnVudGltZUFjY2VsZXJh", + "dG9yQ29uZmlnLkFjY2VsZXJhdG9yVHlwZRISCgpjb3JlX2NvdW50GAIgASgD", + "Ip0CCg9BY2NlbGVyYXRvclR5cGUSIAocQUNDRUxFUkFUT1JfVFlQRV9VTlNQ", + "RUNJRklFRBAAEhQKEE5WSURJQV9URVNMQV9LODAQARIVChFOVklESUFfVEVT", + "TEFfUDEwMBACEhUKEU5WSURJQV9URVNMQV9WMTAwEAMSEwoPTlZJRElBX1RF", + "U0xBX1A0EAQSEwoPTlZJRElBX1RFU0xBX1Q0EAUSFQoRTlZJRElBX1RFU0xB", + "X0ExMDAQBhIKCgZUUFVfVjIQBxIKCgZUUFVfVjMQCBIXChNOVklESUFfVEVT", + "TEFfVDRfVldTEAkSGQoVTlZJRElBX1RFU0xBX1AxMDBfVldTEAoSFwoTTlZJ", + "RElBX1RFU0xBX1A0X1ZXUxALIiMKEEVuY3J5cHRpb25Db25maWcSDwoHa21z", + "X2tleRgBIAEoCSK2AgoJTG9jYWxEaXNrEhMKC2F1dG9fZGVsZXRlGAEgASgI", + "EgwKBGJvb3QYAiABKAgSEwoLZGV2aWNlX25hbWUYAyABKAkSXAoRZ3Vlc3Rf", + "b3NfZmVhdHVyZXMYBCADKAsyQS5nb29nbGUuZXZlbnRzLmNsb3VkLm5vdGVi", + "b29rcy52MS5Mb2NhbERpc2suUnVudGltZUd1ZXN0T3NGZWF0dXJlEg0KBWlu", + "ZGV4GAUgASgFEhEKCWludGVyZmFjZRgHIAEoCRIMCgRraW5kGAggASgJEhAK", + "CGxpY2Vuc2VzGAkgAygJEgwKBG1vZGUYCiABKAkSDgoGc291cmNlGAsgASgJ", + "EgwKBHR5cGUYDCABKAkaJQoVUnVudGltZUd1ZXN0T3NGZWF0dXJlEgwKBHR5", + "cGUYASABKAkixgIKGUxvY2FsRGlza0luaXRpYWxpemVQYXJhbXMSEwoLZGVz", + "Y3JpcHRpb24YASABKAkSEQoJZGlza19uYW1lGAIgASgJEhQKDGRpc2tfc2l6", + "ZV9nYhgDIAEoAxJXCgZsYWJlbHMYBSADKAsyRy5nb29nbGUuZXZlbnRzLmNs", + "b3VkLm5vdGVib29rcy52MS5Mb2NhbERpc2tJbml0aWFsaXplUGFyYW1zLkxh", + "YmVsc0VudHJ5Gi0KC0xhYmVsc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1", + "ZRgCIAEoCToCOAEiYwoIRGlza1R5cGUSGQoVRElTS19UWVBFX1VOU1BFQ0lG", + "SUVEEAASDwoLUERfU1RBTkRBUkQQARIKCgZQRF9TU0QQAhIPCgtQRF9CQUxB", + "TkNFRBADEg4KClBEX0VYVFJFTUUQBCL9AQoTUnVudGltZUFjY2Vzc0NvbmZp", + "ZxJcCgthY2Nlc3NfdHlwZRgBIAEoDjJHLmdvb2dsZS5ldmVudHMuY2xvdWQu", + "bm90ZWJvb2tzLnYxLlJ1bnRpbWVBY2Nlc3NDb25maWcuUnVudGltZUFjY2Vz", + "c1R5cGUSFQoNcnVudGltZV9vd25lchgCIAEoCRIRCglwcm94eV91cmkYAyAB", + "KAkiXgoRUnVudGltZUFjY2Vzc1R5cGUSIwofUlVOVElNRV9BQ0NFU1NfVFlQ", + "RV9VTlNQRUNJRklFRBAAEg8KC1NJTkdMRV9VU0VSEAESEwoPU0VSVklDRV9B", + "Q0NPVU5UEAIikwYKFVJ1bnRpbWVTb2Z0d2FyZUNvbmZpZxIhChlub3RlYm9v", + "a191cGdyYWRlX3NjaGVkdWxlGAEgASgJEiUKGGVuYWJsZV9oZWFsdGhfbW9u", + "aXRvcmluZxgCIAEoCEgAiAEBEhoKDWlkbGVfc2h1dGRvd24YAyABKAhIAYgB", + "ARIdChVpZGxlX3NodXRkb3duX3RpbWVvdXQYBCABKAUSGgoSaW5zdGFsbF9n", + "cHVfZHJpdmVyGAUgASgIEh4KFmN1c3RvbV9ncHVfZHJpdmVyX3BhdGgYBiAB", + "KAkSGwoTcG9zdF9zdGFydHVwX3NjcmlwdBgHIAEoCRJBCgdrZXJuZWxzGAgg", + "AygLMjAuZ29vZ2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEuQ29udGFp", + "bmVySW1hZ2USGAoLdXBncmFkZWFibGUYCSABKAhIAogBARJ3Chxwb3N0X3N0", + "YXJ0dXBfc2NyaXB0X2JlaGF2aW9yGAogASgOMlEuZ29vZ2xlLmV2ZW50cy5j", + "bG91ZC5ub3RlYm9va3MudjEuUnVudGltZVNvZnR3YXJlQ29uZmlnLlBvc3RT", + "dGFydHVwU2NyaXB0QmVoYXZpb3ISHQoQZGlzYWJsZV90ZXJtaW5hbBgLIAEo", + "CEgDiAEBEhQKB3ZlcnNpb24YDCABKAlIBIgBARIbCg5taXhlcl9kaXNhYmxl", + "ZBgNIAEoCEgFiAEBIoABChlQb3N0U3RhcnR1cFNjcmlwdEJlaGF2aW9yEiwK", + "KFBPU1RfU1RBUlRVUF9TQ1JJUFRfQkVIQVZJT1JfVU5TUEVDSUZJRUQQABIT", + "Cg9SVU5fRVZFUllfU1RBUlQQARIgChxET1dOTE9BRF9BTkRfUlVOX0VWRVJZ", + "X1NUQVJUEAJCGwoZX2VuYWJsZV9oZWFsdGhfbW9uaXRvcmluZ0IQCg5faWRs", + "ZV9zaHV0ZG93bkIOCgxfdXBncmFkZWFibGVCEwoRX2Rpc2FibGVfdGVybWlu", + "YWxCCgoIX3ZlcnNpb25CEQoPX21peGVyX2Rpc2FibGVkIqMBCg5SdW50aW1l", + "TWV0cmljcxJbCg5zeXN0ZW1fbWV0cmljcxgBIAMoCzJDLmdvb2dsZS5ldmVu", + "dHMuY2xvdWQubm90ZWJvb2tzLnYxLlJ1bnRpbWVNZXRyaWNzLlN5c3RlbU1l", + "dHJpY3NFbnRyeRo0ChJTeXN0ZW1NZXRyaWNzRW50cnkSCwoDa2V5GAEgASgJ", + "Eg0KBXZhbHVlGAIgASgJOgI4ASJ1Ch1SdW50aW1lU2hpZWxkZWRJbnN0YW5j", + "ZUNvbmZpZxIaChJlbmFibGVfc2VjdXJlX2Jvb3QYASABKAgSEwoLZW5hYmxl", + "X3Z0cG0YAiABKAgSIwobZW5hYmxlX2ludGVncml0eV9tb25pdG9yaW5nGAMg", + "ASgIIpQBCg5WaXJ0dWFsTWFjaGluZRIVCg1pbnN0YW5jZV9uYW1lGAEgASgJ", + "EhMKC2luc3RhbmNlX2lkGAIgASgJElYKFnZpcnR1YWxfbWFjaGluZV9jb25m", + "aWcYAyABKAsyNi5nb29nbGUuZXZlbnRzLmNsb3VkLm5vdGVib29rcy52MS5W", + "aXJ0dWFsTWFjaGluZUNvbmZpZyLUCQoUVmlydHVhbE1hY2hpbmVDb25maWcS", + "DAoEem9uZRgBIAEoCRIUCgxtYWNoaW5lX3R5cGUYAiABKAkSSgoQY29udGFp", + "bmVyX2ltYWdlcxgDIAMoCzIwLmdvb2dsZS5ldmVudHMuY2xvdWQubm90ZWJv", + "b2tzLnYxLkNvbnRhaW5lckltYWdlEj4KCWRhdGFfZGlzaxgEIAEoCzIrLmdv", + "b2dsZS5ldmVudHMuY2xvdWQubm90ZWJvb2tzLnYxLkxvY2FsRGlzaxJNChFl", + "bmNyeXB0aW9uX2NvbmZpZxgFIAEoCzIyLmdvb2dsZS5ldmVudHMuY2xvdWQu", + "bm90ZWJvb2tzLnYxLkVuY3J5cHRpb25Db25maWcSYQoYc2hpZWxkZWRfaW5z", + "dGFuY2VfY29uZmlnGAYgASgLMj8uZ29vZ2xlLmV2ZW50cy5jbG91ZC5ub3Rl", + "Ym9va3MudjEuUnVudGltZVNoaWVsZGVkSW5zdGFuY2VDb25maWcSVgoSYWNj", + "ZWxlcmF0b3JfY29uZmlnGAcgASgLMjouZ29vZ2xlLmV2ZW50cy5jbG91ZC5u", + "b3RlYm9va3MudjEuUnVudGltZUFjY2VsZXJhdG9yQ29uZmlnEg8KB25ldHdv", + "cmsYCCABKAkSDgoGc3VibmV0GAkgASgJEhgKEGludGVybmFsX2lwX29ubHkY", + "CiABKAgSDAoEdGFncxgNIAMoCRJlChBndWVzdF9hdHRyaWJ1dGVzGA4gAygL", + "MksuZ29vZ2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEuVmlydHVhbE1h", + "Y2hpbmVDb25maWcuR3Vlc3RBdHRyaWJ1dGVzRW50cnkSVgoIbWV0YWRhdGEY", + "DyADKAsyRC5nb29nbGUuZXZlbnRzLmNsb3VkLm5vdGVib29rcy52MS5WaXJ0", + "dWFsTWFjaGluZUNvbmZpZy5NZXRhZGF0YUVudHJ5ElIKBmxhYmVscxgQIAMo", + "CzJCLmdvb2dsZS5ldmVudHMuY2xvdWQubm90ZWJvb2tzLnYxLlZpcnR1YWxN", + "YWNoaW5lQ29uZmlnLkxhYmVsc0VudHJ5ElAKCG5pY190eXBlGBEgASgOMj4u", + "Z29vZ2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEuVmlydHVhbE1hY2hp", + "bmVDb25maWcuTmljVHlwZRIZChFyZXNlcnZlZF9pcF9yYW5nZRgSIAEoCRJU", + "Cgpib290X2ltYWdlGBMgASgLMkAuZ29vZ2xlLmV2ZW50cy5jbG91ZC5ub3Rl", + "Ym9va3MudjEuVmlydHVhbE1hY2hpbmVDb25maWcuQm9vdEltYWdlGgsKCUJv", + "b3RJbWFnZRo2ChRHdWVzdEF0dHJpYnV0ZXNFbnRyeRILCgNrZXkYASABKAkS", + "DQoFdmFsdWUYAiABKAk6AjgBGi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEg", + "ASgJEg0KBXZhbHVlGAIgASgJOgI4ARotCgtMYWJlbHNFbnRyeRILCgNrZXkY", + "ASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIj4KB05pY1R5cGUSGAoUVU5TUEVD", + "SUZJRURfTklDX1RZUEUQABIOCgpWSVJUSU9fTkVUEAESCQoFR1ZOSUMQAiLv", + "DAoRRXhlY3V0aW9uVGVtcGxhdGUSUQoKc2NhbGVfdGllchgBIAEoDjI9Lmdv", + "b2dsZS5ldmVudHMuY2xvdWQubm90ZWJvb2tzLnYxLkV4ZWN1dGlvblRlbXBs", + "YXRlLlNjYWxlVGllchITCgttYXN0ZXJfdHlwZRgCIAEoCRJqChJhY2NlbGVy", + "YXRvcl9jb25maWcYAyABKAsyTi5nb29nbGUuZXZlbnRzLmNsb3VkLm5vdGVi", + "b29rcy52MS5FeGVjdXRpb25UZW1wbGF0ZS5TY2hlZHVsZXJBY2NlbGVyYXRv", + "ckNvbmZpZxJPCgZsYWJlbHMYBCADKAsyPy5nb29nbGUuZXZlbnRzLmNsb3Vk", + "Lm5vdGVib29rcy52MS5FeGVjdXRpb25UZW1wbGF0ZS5MYWJlbHNFbnRyeRIb", + "ChNpbnB1dF9ub3RlYm9va19maWxlGAUgASgJEhsKE2NvbnRhaW5lcl9pbWFn", + "ZV91cmkYBiABKAkSHgoWb3V0cHV0X25vdGVib29rX2ZvbGRlchgHIAEoCRIY", + "ChBwYXJhbXNfeWFtbF9maWxlGAggASgJEhIKCnBhcmFtZXRlcnMYCSABKAkS", + "FwoPc2VydmljZV9hY2NvdW50GAogASgJEk0KCGpvYl90eXBlGAsgASgOMjsu", + "Z29vZ2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEuRXhlY3V0aW9uVGVt", + "cGxhdGUuSm9iVHlwZRJlChNkYXRhcHJvY19wYXJhbWV0ZXJzGAwgASgLMkYu", + "Z29vZ2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEuRXhlY3V0aW9uVGVt", + "cGxhdGUuRGF0YXByb2NQYXJhbWV0ZXJzSAASZgoUdmVydGV4X2FpX3BhcmFt", + "ZXRlcnMYDSABKAsyRi5nb29nbGUuZXZlbnRzLmNsb3VkLm5vdGVib29rcy52", + "MS5FeGVjdXRpb25UZW1wbGF0ZS5WZXJ0ZXhBSVBhcmFtZXRlcnNIABITCgtr", + "ZXJuZWxfc3BlYxgOIAEoCRITCgt0ZW5zb3Jib2FyZBgPIAEoCRqMAQoaU2No", + "ZWR1bGVyQWNjZWxlcmF0b3JDb25maWcSWgoEdHlwZRgBIAEoDjJMLmdvb2ds", + "ZS5ldmVudHMuY2xvdWQubm90ZWJvb2tzLnYxLkV4ZWN1dGlvblRlbXBsYXRl", + "LlNjaGVkdWxlckFjY2VsZXJhdG9yVHlwZRISCgpjb3JlX2NvdW50GAIgASgD", + "GiUKEkRhdGFwcm9jUGFyYW1ldGVycxIPCgdjbHVzdGVyGAEgASgJGq8BChJW", + "ZXJ0ZXhBSVBhcmFtZXRlcnMSDwoHbmV0d29yaxgBIAEoCRJcCgNlbnYYAiAD", + "KAsyTy5nb29nbGUuZXZlbnRzLmNsb3VkLm5vdGVib29rcy52MS5FeGVjdXRp", + "b25UZW1wbGF0ZS5WZXJ0ZXhBSVBhcmFtZXRlcnMuRW52RW50cnkaKgoIRW52", + "RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARotCgtMYWJl", + "bHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBInsKCVNj", + "YWxlVGllchIaChZTQ0FMRV9USUVSX1VOU1BFQ0lGSUVEEAASCQoFQkFTSUMQ", + "ARIOCgpTVEFOREFSRF8xEAISDQoJUFJFTUlVTV8xEAMSDQoJQkFTSUNfR1BV", + "EAQSDQoJQkFTSUNfVFBVEAUSCgoGQ1VTVE9NEAYi4wEKGFNjaGVkdWxlckFj", + "Y2VsZXJhdG9yVHlwZRIqCiZTQ0hFRFVMRVJfQUNDRUxFUkFUT1JfVFlQRV9V", + "TlNQRUNJRklFRBAAEhQKEE5WSURJQV9URVNMQV9LODAQARIVChFOVklESUFf", + "VEVTTEFfUDEwMBACEhUKEU5WSURJQV9URVNMQV9WMTAwEAMSEwoPTlZJRElB", + "X1RFU0xBX1A0EAQSEwoPTlZJRElBX1RFU0xBX1Q0EAUSFQoRTlZJRElBX1RF", + "U0xBX0ExMDAQChIKCgZUUFVfVjIQBhIKCgZUUFVfVjMQByJACgdKb2JUeXBl", + "EhgKFEpPQl9UWVBFX1VOU1BFQ0lGSUVEEAASDQoJVkVSVEVYX0FJEAESDAoI", + "REFUQVBST0MQAkIQCg5qb2JfcGFyYW1ldGVycyKKBAoJRXhlY3V0aW9uEk8K", + "EmV4ZWN1dGlvbl90ZW1wbGF0ZRgBIAEoCzIzLmdvb2dsZS5ldmVudHMuY2xv", + "dWQubm90ZWJvb2tzLnYxLkV4ZWN1dGlvblRlbXBsYXRlEgwKBG5hbWUYAiAB", + "KAkSFAoMZGlzcGxheV9uYW1lGAMgASgJEhMKC2Rlc2NyaXB0aW9uGAQgASgJ", + "Ei8KC2NyZWF0ZV90aW1lGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", + "dGFtcBIvCgt1cGRhdGVfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXASQAoFc3RhdGUYByABKA4yMS5nb29nbGUuZXZlbnRzLmNsb3Vk", + "Lm5vdGVib29rcy52MS5FeGVjdXRpb24uU3RhdGUSHAoUb3V0cHV0X25vdGVi", + "b29rX2ZpbGUYCCABKAkSDwoHam9iX3VyaRgJIAEoCSKfAQoFU3RhdGUSFQoR", + "U1RBVEVfVU5TUEVDSUZJRUQQABIKCgZRVUVVRUQQARINCglQUkVQQVJJTkcQ", + "AhILCgdSVU5OSU5HEAMSDQoJU1VDQ0VFREVEEAQSCgoGRkFJTEVEEAUSDgoK", + "Q0FOQ0VMTElORxAGEg0KCUNBTkNFTExFRBAHEgsKB0VYUElSRUQQCRIQCgxJ", + "TklUSUFMSVpJTkcQCiLxAQoTUmVzZXJ2YXRpb25BZmZpbml0eRJcChhjb25z", + "dW1lX3Jlc2VydmF0aW9uX3R5cGUYASABKA4yOi5nb29nbGUuZXZlbnRzLmNs", + "b3VkLm5vdGVib29rcy52MS5SZXNlcnZhdGlvbkFmZmluaXR5LlR5cGUSCwoD", + "a2V5GAIgASgJEg4KBnZhbHVlcxgDIAMoCSJfCgRUeXBlEhQKEFRZUEVfVU5T", + "UEVDSUZJRUQQABISCg5OT19SRVNFUlZBVElPThABEhMKD0FOWV9SRVNFUlZB", + "VElPThACEhgKFFNQRUNJRklDX1JFU0VSVkFUSU9OEAMi/RgKCEluc3RhbmNl", + "EgwKBG5hbWUYASABKAkSPQoIdm1faW1hZ2UYAiABKAsyKS5nb29nbGUuZXZl", + "bnRzLmNsb3VkLm5vdGVib29rcy52MS5WbUltYWdlSAASSwoPY29udGFpbmVy", + "X2ltYWdlGAMgASgLMjAuZ29vZ2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3Mu", + "djEuQ29udGFpbmVySW1hZ2VIABIbChNwb3N0X3N0YXJ0dXBfc2NyaXB0GAQg", + "ASgJEhEKCXByb3h5X3VyaRgFIAEoCRIXCg9zZXJ2aWNlX2FjY291bnQYByAB", + "KAkSHgoWc2VydmljZV9hY2NvdW50X3Njb3BlcxgfIAMoCRIUCgxtYWNoaW5l", + "X3R5cGUYCCABKAkSWAoSYWNjZWxlcmF0b3JfY29uZmlnGAkgASgLMjwuZ29v", + "Z2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEuSW5zdGFuY2UuQWNjZWxl", + "cmF0b3JDb25maWcSPwoFc3RhdGUYCiABKA4yMC5nb29nbGUuZXZlbnRzLmNs", + "b3VkLm5vdGVib29rcy52MS5JbnN0YW5jZS5TdGF0ZRIaChJpbnN0YWxsX2dw", + "dV9kcml2ZXIYCyABKAgSHgoWY3VzdG9tX2dwdV9kcml2ZXJfcGF0aBgMIAEo", + "CRI+CgVkaXNrcxgcIAMoCzIvLmdvb2dsZS5ldmVudHMuY2xvdWQubm90ZWJv", + "b2tzLnYxLkluc3RhbmNlLkRpc2sSYwoYc2hpZWxkZWRfaW5zdGFuY2VfY29u", + "ZmlnGB4gASgLMkEuZ29vZ2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEu", + "SW5zdGFuY2UuU2hpZWxkZWRJbnN0YW5jZUNvbmZpZxIUCgxub19wdWJsaWNf", + "aXAYESABKAgSFwoPbm9fcHJveHlfYWNjZXNzGBIgASgIEg8KB25ldHdvcmsY", + "EyABKAkSDgoGc3VibmV0GBQgASgJEkYKBmxhYmVscxgVIAMoCzI2Lmdvb2ds", + "ZS5ldmVudHMuY2xvdWQubm90ZWJvb2tzLnYxLkluc3RhbmNlLkxhYmVsc0Vu", + "dHJ5EkoKCG1ldGFkYXRhGBYgAygLMjguZ29vZ2xlLmV2ZW50cy5jbG91ZC5u", + "b3RlYm9va3MudjEuSW5zdGFuY2UuTWV0YWRhdGFFbnRyeRIMCgR0YWdzGCAg", + "AygJElcKD3VwZ3JhZGVfaGlzdG9yeRgdIAMoCzI+Lmdvb2dsZS5ldmVudHMu", + "Y2xvdWQubm90ZWJvb2tzLnYxLkluc3RhbmNlLlVwZ3JhZGVIaXN0b3J5RW50", + "cnkSRAoIbmljX3R5cGUYISABKA4yMi5nb29nbGUuZXZlbnRzLmNsb3VkLm5v", + "dGVib29rcy52MS5JbnN0YW5jZS5OaWNUeXBlElMKFHJlc2VydmF0aW9uX2Fm", + "ZmluaXR5GCIgASgLMjUuZ29vZ2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3Mu", + "djEuUmVzZXJ2YXRpb25BZmZpbml0eRIPCgdjcmVhdG9yGCQgASgJEhYKDmNh", + "bl9pcF9mb3J3YXJkGCcgASgIEi8KC2NyZWF0ZV90aW1lGBcgASgLMhouZ29v", + "Z2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgt1cGRhdGVfdGltZRgYIAEoCzIa", + "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAacQoRQWNjZWxlcmF0b3JDb25m", + "aWcSSAoEdHlwZRgBIAEoDjI6Lmdvb2dsZS5ldmVudHMuY2xvdWQubm90ZWJv", + "b2tzLnYxLkluc3RhbmNlLkFjY2VsZXJhdG9yVHlwZRISCgpjb3JlX2NvdW50", + "GAIgASgDGr0CCgREaXNrEhMKC2F1dG9fZGVsZXRlGAEgASgIEgwKBGJvb3QY", + "AiABKAgSEwoLZGV2aWNlX25hbWUYAyABKAkSFAoMZGlza19zaXplX2diGAQg", + "ASgDElkKEWd1ZXN0X29zX2ZlYXR1cmVzGAUgAygLMj4uZ29vZ2xlLmV2ZW50", + "cy5jbG91ZC5ub3RlYm9va3MudjEuSW5zdGFuY2UuRGlzay5HdWVzdE9zRmVh", + "dHVyZRINCgVpbmRleBgGIAEoAxIRCglpbnRlcmZhY2UYByABKAkSDAoEa2lu", + "ZBgIIAEoCRIQCghsaWNlbnNlcxgJIAMoCRIMCgRtb2RlGAogASgJEg4KBnNv", + "dXJjZRgLIAEoCRIMCgR0eXBlGAwgASgJGh4KDkd1ZXN0T3NGZWF0dXJlEgwK", + "BHR5cGUYASABKAkabgoWU2hpZWxkZWRJbnN0YW5jZUNvbmZpZxIaChJlbmFi", + "bGVfc2VjdXJlX2Jvb3QYASABKAgSEwoLZW5hYmxlX3Z0cG0YAiABKAgSIwob", + "ZW5hYmxlX2ludGVncml0eV9tb25pdG9yaW5nGAMgASgIGoYEChNVcGdyYWRl", + "SGlzdG9yeUVudHJ5EhAKCHNuYXBzaG90GAEgASgJEhAKCHZtX2ltYWdlGAIg", + "ASgJEhcKD2NvbnRhaW5lcl9pbWFnZRgDIAEoCRIRCglmcmFtZXdvcmsYBCAB", + "KAkSDwoHdmVyc2lvbhgFIAEoCRJTCgVzdGF0ZRgGIAEoDjJELmdvb2dsZS5l", + "dmVudHMuY2xvdWQubm90ZWJvb2tzLnYxLkluc3RhbmNlLlVwZ3JhZGVIaXN0", + "b3J5RW50cnkuU3RhdGUSLwoLY3JlYXRlX3RpbWUYByABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wEhQKDHRhcmdldF9pbWFnZRgIIAEoCRJVCgZh", + "Y3Rpb24YCSABKA4yRS5nb29nbGUuZXZlbnRzLmNsb3VkLm5vdGVib29rcy52", + "MS5JbnN0YW5jZS5VcGdyYWRlSGlzdG9yeUVudHJ5LkFjdGlvbhIWCg50YXJn", + "ZXRfdmVyc2lvbhgKIAEoCSJGCgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklF", + "RBAAEgsKB1NUQVJURUQQARINCglTVUNDRUVERUQQAhIKCgZGQUlMRUQQAyI7", + "CgZBY3Rpb24SFgoSQUNUSU9OX1VOU1BFQ0lGSUVEEAASCwoHVVBHUkFERRAB", + "EgwKCFJPTExCQUNLEAIaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0K", + "BXZhbHVlGAIgASgJOgI4ARovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEo", + "CRINCgV2YWx1ZRgCIAEoCToCOAEinQIKD0FjY2VsZXJhdG9yVHlwZRIgChxB", + "Q0NFTEVSQVRPUl9UWVBFX1VOU1BFQ0lGSUVEEAASFAoQTlZJRElBX1RFU0xB", + "X0s4MBABEhUKEU5WSURJQV9URVNMQV9QMTAwEAISFQoRTlZJRElBX1RFU0xB", + "X1YxMDAQAxITCg9OVklESUFfVEVTTEFfUDQQBBITCg9OVklESUFfVEVTTEFf", + "VDQQBRIVChFOVklESUFfVEVTTEFfQTEwMBALEhcKE05WSURJQV9URVNMQV9U", + "NF9WV1MQCBIZChVOVklESUFfVEVTTEFfUDEwMF9WV1MQCRIXChNOVklESUFf", + "VEVTTEFfUDRfVldTEAoSCgoGVFBVX1YyEAYSCgoGVFBVX1YzEAciwwEKBVN0", + "YXRlEhUKEVNUQVRFX1VOU1BFQ0lGSUVEEAASDAoIU1RBUlRJTkcQARIQCgxQ", + "Uk9WSVNJT05JTkcQAhIKCgZBQ1RJVkUQAxIMCghTVE9QUElORxAEEgsKB1NU", + "T1BQRUQQBRILCgdERUxFVEVEEAYSDQoJVVBHUkFESU5HEAcSEAoMSU5JVElB", + "TElaSU5HEAgSDwoLUkVHSVNURVJJTkcQCRIOCgpTVVNQRU5ESU5HEAoSDQoJ", + "U1VTUEVOREVEEAsiYwoIRGlza1R5cGUSGQoVRElTS19UWVBFX1VOU1BFQ0lG", + "SUVEEAASDwoLUERfU1RBTkRBUkQQARIKCgZQRF9TU0QQAhIPCgtQRF9CQUxB", + "TkNFRBADEg4KClBEX0VYVFJFTUUQBCJFCg5EaXNrRW5jcnlwdGlvbhIfChtE", + "SVNLX0VOQ1JZUFRJT05fVU5TUEVDSUZJRUQQABIICgRHTUVLEAESCAoEQ01F", + "SxACIj4KB05pY1R5cGUSGAoUVU5TUEVDSUZJRURfTklDX1RZUEUQABIOCgpW", + "SVJUSU9fTkVUEAESCQoFR1ZOSUMQAkINCgtlbnZpcm9ubWVudCKjBAoIU2No", + "ZWR1bGUSDAoEbmFtZRgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSEwoL", + "ZGVzY3JpcHRpb24YAyABKAkSPwoFc3RhdGUYBCABKA4yMC5nb29nbGUuZXZl", + "bnRzLmNsb3VkLm5vdGVib29rcy52MS5TY2hlZHVsZS5TdGF0ZRIVCg1jcm9u", + "X3NjaGVkdWxlGAUgASgJEhEKCXRpbWVfem9uZRgGIAEoCRIvCgtjcmVhdGVf", + "dGltZRgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLdXBk", + "YXRlX3RpbWUYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEk8K", + "EmV4ZWN1dGlvbl90ZW1wbGF0ZRgJIAEoCzIzLmdvb2dsZS5ldmVudHMuY2xv", + "dWQubm90ZWJvb2tzLnYxLkV4ZWN1dGlvblRlbXBsYXRlEkYKEXJlY2VudF9l", + "eGVjdXRpb25zGAogAygLMisuZ29vZ2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9v", + "a3MudjEuRXhlY3V0aW9uIngKBVN0YXRlEhUKEVNUQVRFX1VOU1BFQ0lGSUVE", + "EAASCwoHRU5BQkxFRBABEgoKBlBBVVNFRBACEgwKCERJU0FCTEVEEAMSEQoN", + "VVBEQVRFX0ZBSUxFRBAEEhAKDElOSVRJQUxJWklORxAFEgwKCERFTEVUSU5H", + "EAYiXwoQUnVudGltZUV2ZW50RGF0YRI/CgdwYXlsb2FkGAEgASgLMikuZ29v", + "Z2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEuUnVudGltZUgAiAEBQgoK", + "CF9wYXlsb2FkImMKEkV4ZWN1dGlvbkV2ZW50RGF0YRJBCgdwYXlsb2FkGAEg", + "ASgLMisuZ29vZ2xlLmV2ZW50cy5jbG91ZC5ub3RlYm9va3MudjEuRXhlY3V0", + "aW9uSACIAQFCCgoIX3BheWxvYWQiYQoRSW5zdGFuY2VFdmVudERhdGESQAoH", + "cGF5bG9hZBgBIAEoCzIqLmdvb2dsZS5ldmVudHMuY2xvdWQubm90ZWJvb2tz", + "LnYxLkluc3RhbmNlSACIAQFCCgoIX3BheWxvYWQiYQoRU2NoZWR1bGVFdmVu", + "dERhdGESQAoHcGF5bG9hZBgBIAEoCzIqLmdvb2dsZS5ldmVudHMuY2xvdWQu", + "bm90ZWJvb2tzLnYxLlNjaGVkdWxlSACIAQFCCgoIX3BheWxvYWQiZwoURW52", + "aXJvbm1lbnRFdmVudERhdGESQwoHcGF5bG9hZBgBIAEoCzItLmdvb2dsZS5l", + "dmVudHMuY2xvdWQubm90ZWJvb2tzLnYxLkVudmlyb25tZW50SACIAQFCCgoI", + "X3BheWxvYWRCdqoCKUdvb2dsZS5FdmVudHMuUHJvdG9idWYuQ2xvdWQuTm90", + "ZWJvb2tzLlYxygIgR29vZ2xlXEV2ZW50c1xDbG91ZFxOb3RlYm9va3NcVjHq", + "AiRHb29nbGU6OkV2ZW50czo6Q2xvdWQ6Ok5vdGVib29rczo6VjFiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Environment), global::Google.Events.Protobuf.Cloud.Notebooks.V1.Environment.Parser, new[]{ "Name", "DisplayName", "Description", "VmImage", "ContainerImage", "PostStartupScript", "CreateTime" }, new[]{ "ImageType" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage), global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage.Parser, new[]{ "Project", "ImageName", "ImageFamily" }, new[]{ "Image" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage), global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage.Parser, new[]{ "Repository", "Tag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime), global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Parser, new[]{ "Name", "VirtualMachine", "State", "HealthState", "AccessConfig", "SoftwareConfig", "Metrics", "CreateTime", "UpdateTime", "Labels" }, new[]{ "RuntimeType" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.State), typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.HealthState) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig), global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Parser, new[]{ "Type", "CoreCount" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Types.AcceleratorType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.EncryptionConfig), global::Google.Events.Protobuf.Cloud.Notebooks.V1.EncryptionConfig.Parser, new[]{ "KmsKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDisk), global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDisk.Parser, new[]{ "AutoDelete", "Boot", "DeviceName", "GuestOsFeatures", "Index", "Interface", "Kind", "Licenses", "Mode", "Source", "Type" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDisk.Types.RuntimeGuestOsFeature), global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDisk.Types.RuntimeGuestOsFeature.Parser, new[]{ "Type" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDiskInitializeParams), global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDiskInitializeParams.Parser, new[]{ "Description", "DiskName", "DiskSizeGb", "Labels" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDiskInitializeParams.Types.DiskType) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig), global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Parser, new[]{ "AccessType", "RuntimeOwner", "ProxyUri" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Types.RuntimeAccessType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig), global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Parser, new[]{ "NotebookUpgradeSchedule", "EnableHealthMonitoring", "IdleShutdown", "IdleShutdownTimeout", "InstallGpuDriver", "CustomGpuDriverPath", "PostStartupScript", "Kernels", "Upgradeable", "PostStartupScriptBehavior", "DisableTerminal", "Version", "MixerDisabled" }, new[]{ "EnableHealthMonitoring", "IdleShutdown", "Upgradeable", "DisableTerminal", "Version", "MixerDisabled" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Types.PostStartupScriptBehavior) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeMetrics), global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeMetrics.Parser, new[]{ "SystemMetrics" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeShieldedInstanceConfig), global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeShieldedInstanceConfig.Parser, new[]{ "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachine), global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachine.Parser, new[]{ "InstanceName", "InstanceId", "VirtualMachineConfig" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig), global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Parser, new[]{ "Zone", "MachineType", "ContainerImages", "DataDisk", "EncryptionConfig", "ShieldedInstanceConfig", "AcceleratorConfig", "Network", "Subnet", "InternalIpOnly", "Tags", "GuestAttributes", "Metadata", "Labels", "NicType", "ReservedIpRange", "BootImage" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.NicType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.BootImage), global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.BootImage.Parser, null, null, null, null, null), + null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate), global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Parser, new[]{ "ScaleTier", "MasterType", "AcceleratorConfig", "Labels", "InputNotebookFile", "ContainerImageUri", "OutputNotebookFolder", "ParamsYamlFile", "Parameters", "ServiceAccount", "JobType", "DataprocParameters", "VertexAiParameters", "KernelSpec", "Tensorboard" }, new[]{ "JobParameters" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.ScaleTier), typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorType), typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.JobType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorConfig), global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorConfig.Parser, new[]{ "Type", "CoreCount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.DataprocParameters), global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.DataprocParameters.Parser, new[]{ "Cluster" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.VertexAIParameters), global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.VertexAIParameters.Parser, new[]{ "Network", "Env" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution), global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Parser, new[]{ "ExecutionTemplate", "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", "State", "OutputNotebookFile", "JobUri" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity), global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Parser, new[]{ "ConsumeReservationType", "Key", "Values" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Types.Type) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance), global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Parser, new[]{ "Name", "VmImage", "ContainerImage", "PostStartupScript", "ProxyUri", "ServiceAccount", "ServiceAccountScopes", "MachineType", "AcceleratorConfig", "State", "InstallGpuDriver", "CustomGpuDriverPath", "Disks", "ShieldedInstanceConfig", "NoPublicIp", "NoProxyAccess", "Network", "Subnet", "Labels", "Metadata", "Tags", "UpgradeHistory", "NicType", "ReservationAffinity", "Creator", "CanIpForward", "CreateTime", "UpdateTime" }, new[]{ "Environment" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorType), typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.State), typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.DiskType), typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.DiskEncryption), typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.NicType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorConfig), global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorConfig.Parser, new[]{ "Type", "CoreCount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.Disk), global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.Disk.Parser, new[]{ "AutoDelete", "Boot", "DeviceName", "DiskSizeGb", "GuestOsFeatures", "Index", "Interface", "Kind", "Licenses", "Mode", "Source", "Type" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.Disk.Types.GuestOsFeature), global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.Disk.Types.GuestOsFeature.Parser, new[]{ "Type" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.ShieldedInstanceConfig), global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.ShieldedInstanceConfig.Parser, new[]{ "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry), global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Parser, new[]{ "Snapshot", "VmImage", "ContainerImage", "Framework", "Version", "State", "CreateTime", "TargetImage", "Action", "TargetVersion" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.State), typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.Action) }, null, null), + null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule), global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Parser, new[]{ "Name", "DisplayName", "Description", "State", "CronSchedule", "TimeZone", "CreateTime", "UpdateTime", "ExecutionTemplate", "RecentExecutions" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeEventData), global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionEventData), global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.InstanceEventData), global::Google.Events.Protobuf.Cloud.Notebooks.V1.InstanceEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.ScheduleEventData), global::Google.Events.Protobuf.Cloud.Notebooks.V1.ScheduleEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Notebooks.V1.EnvironmentEventData), global::Google.Events.Protobuf.Cloud.Notebooks.V1.EnvironmentEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Definition of a software environment that is used to start a notebook + /// instance. + /// + public sealed partial class Environment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Environment()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 Environment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Environment(Environment other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + description_ = other.description_; + postStartupScript_ = other.postStartupScript_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + switch (other.ImageTypeCase) { + case ImageTypeOneofCase.VmImage: + VmImage = other.VmImage.Clone(); + break; + case ImageTypeOneofCase.ContainerImage: + ContainerImage = other.ContainerImage.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Environment Clone() { + return new Environment(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. Name of this environment. + /// Format: + /// `projects/{project_id}/locations/{location}/environments/{environment_id}` + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// Display name of this environment for the UI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// A brief description of this environment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "vm_image" field. + public const int VmImageFieldNumber = 6; + /// + /// Use a Compute Engine VM image to start the notebook instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage VmImage { + get { return imageTypeCase_ == ImageTypeOneofCase.VmImage ? (global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage) imageType_ : null; } + set { + imageType_ = value; + imageTypeCase_ = value == null ? ImageTypeOneofCase.None : ImageTypeOneofCase.VmImage; + } + } + + /// Field number for the "container_image" field. + public const int ContainerImageFieldNumber = 7; + /// + /// Use a container image to start the notebook instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage ContainerImage { + get { return imageTypeCase_ == ImageTypeOneofCase.ContainerImage ? (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage) imageType_ : null; } + set { + imageType_ = value; + imageTypeCase_ = value == null ? ImageTypeOneofCase.None : ImageTypeOneofCase.ContainerImage; + } + } + + /// Field number for the "post_startup_script" field. + public const int PostStartupScriptFieldNumber = 8; + private string postStartupScript_ = ""; + /// + /// Path to a Bash script that automatically runs after a notebook instance + /// fully boots up. The path must be a URL or + /// Cloud Storage path. Example: `"gs://path-to-file/file-name"` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PostStartupScript { + get { return postStartupScript_; } + set { + postStartupScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time at which this environment was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + private object imageType_; + /// Enum of possible cases for the "image_type" oneof. + public enum ImageTypeOneofCase { + None = 0, + VmImage = 6, + ContainerImage = 7, + } + private ImageTypeOneofCase imageTypeCase_ = ImageTypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ImageTypeOneofCase ImageTypeCase { + get { return imageTypeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearImageType() { + imageTypeCase_ = ImageTypeOneofCase.None; + imageType_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Environment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Environment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (Description != other.Description) return false; + if (!object.Equals(VmImage, other.VmImage)) return false; + if (!object.Equals(ContainerImage, other.ContainerImage)) return false; + if (PostStartupScript != other.PostStartupScript) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (ImageTypeCase != other.ImageTypeCase) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (imageTypeCase_ == ImageTypeOneofCase.VmImage) hash ^= VmImage.GetHashCode(); + if (imageTypeCase_ == ImageTypeOneofCase.ContainerImage) hash ^= ContainerImage.GetHashCode(); + if (PostStartupScript.Length != 0) hash ^= PostStartupScript.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + hash ^= (int) imageTypeCase_; + 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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (imageTypeCase_ == ImageTypeOneofCase.VmImage) { + output.WriteRawTag(50); + output.WriteMessage(VmImage); + } + if (imageTypeCase_ == ImageTypeOneofCase.ContainerImage) { + output.WriteRawTag(58); + output.WriteMessage(ContainerImage); + } + if (PostStartupScript.Length != 0) { + output.WriteRawTag(66); + output.WriteString(PostStartupScript); + } + if (createTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(CreateTime); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (imageTypeCase_ == ImageTypeOneofCase.VmImage) { + output.WriteRawTag(50); + output.WriteMessage(VmImage); + } + if (imageTypeCase_ == ImageTypeOneofCase.ContainerImage) { + output.WriteRawTag(58); + output.WriteMessage(ContainerImage); + } + if (PostStartupScript.Length != 0) { + output.WriteRawTag(66); + output.WriteString(PostStartupScript); + } + if (createTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(CreateTime); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (imageTypeCase_ == ImageTypeOneofCase.VmImage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VmImage); + } + if (imageTypeCase_ == ImageTypeOneofCase.ContainerImage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContainerImage); + } + if (PostStartupScript.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PostStartupScript); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Environment other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.PostStartupScript.Length != 0) { + PostStartupScript = other.PostStartupScript; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + switch (other.ImageTypeCase) { + case ImageTypeOneofCase.VmImage: + if (VmImage == null) { + VmImage = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage(); + } + VmImage.MergeFrom(other.VmImage); + break; + case ImageTypeOneofCase.ContainerImage: + if (ContainerImage == null) { + ContainerImage = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage(); + } + ContainerImage.MergeFrom(other.ContainerImage); + break; + } + + _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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage(); + if (imageTypeCase_ == ImageTypeOneofCase.VmImage) { + subBuilder.MergeFrom(VmImage); + } + input.ReadMessage(subBuilder); + VmImage = subBuilder; + break; + } + case 58: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage(); + if (imageTypeCase_ == ImageTypeOneofCase.ContainerImage) { + subBuilder.MergeFrom(ContainerImage); + } + input.ReadMessage(subBuilder); + ContainerImage = subBuilder; + break; + } + case 66: { + PostStartupScript = input.ReadString(); + break; + } + case 74: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + 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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage(); + if (imageTypeCase_ == ImageTypeOneofCase.VmImage) { + subBuilder.MergeFrom(VmImage); + } + input.ReadMessage(subBuilder); + VmImage = subBuilder; + break; + } + case 58: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage(); + if (imageTypeCase_ == ImageTypeOneofCase.ContainerImage) { + subBuilder.MergeFrom(ContainerImage); + } + input.ReadMessage(subBuilder); + ContainerImage = subBuilder; + break; + } + case 66: { + PostStartupScript = input.ReadString(); + break; + } + case 74: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + } + } + } + #endif + + } + + /// + /// Definition of a custom Compute Engine virtual machine image for starting a + /// notebook instance with the environment installed directly on the VM. + /// + public sealed partial class VmImage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VmImage()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 VmImage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VmImage(VmImage other) : this() { + project_ = other.project_; + switch (other.ImageCase) { + case ImageOneofCase.ImageName: + ImageName = other.ImageName; + break; + case ImageOneofCase.ImageFamily: + ImageFamily = other.ImageFamily; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VmImage Clone() { + return new VmImage(this); + } + + /// Field number for the "project" field. + public const int ProjectFieldNumber = 1; + private string project_ = ""; + /// + /// Required. The name of the Google Cloud project that this VM image belongs + /// to. Format: `{project_id}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Project { + get { return project_; } + set { + project_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "image_name" field. + public const int ImageNameFieldNumber = 2; + /// + /// Use VM image name to find the image. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ImageName { + get { return HasImageName ? (string) image_ : ""; } + set { + image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + imageCase_ = ImageOneofCase.ImageName; + } + } + /// Gets whether the "image_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasImageName { + get { return imageCase_ == ImageOneofCase.ImageName; } + } + /// Clears the value of the oneof if it's currently set to "image_name" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearImageName() { + if (HasImageName) { + ClearImage(); + } + } + + /// Field number for the "image_family" field. + public const int ImageFamilyFieldNumber = 3; + /// + /// Use this VM image family to find the image; the newest image in this + /// family will be used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ImageFamily { + get { return HasImageFamily ? (string) image_ : ""; } + set { + image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + imageCase_ = ImageOneofCase.ImageFamily; + } + } + /// Gets whether the "image_family" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasImageFamily { + get { return imageCase_ == ImageOneofCase.ImageFamily; } + } + /// Clears the value of the oneof if it's currently set to "image_family" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearImageFamily() { + if (HasImageFamily) { + ClearImage(); + } + } + + private object image_; + /// Enum of possible cases for the "image" oneof. + public enum ImageOneofCase { + None = 0, + ImageName = 2, + ImageFamily = 3, + } + private ImageOneofCase imageCase_ = ImageOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ImageOneofCase ImageCase { + get { return imageCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearImage() { + imageCase_ = ImageOneofCase.None; + image_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VmImage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VmImage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Project != other.Project) return false; + if (ImageName != other.ImageName) return false; + if (ImageFamily != other.ImageFamily) return false; + if (ImageCase != other.ImageCase) 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 (Project.Length != 0) hash ^= Project.GetHashCode(); + if (HasImageName) hash ^= ImageName.GetHashCode(); + if (HasImageFamily) hash ^= ImageFamily.GetHashCode(); + hash ^= (int) imageCase_; + 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 (Project.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Project); + } + if (HasImageName) { + output.WriteRawTag(18); + output.WriteString(ImageName); + } + if (HasImageFamily) { + output.WriteRawTag(26); + output.WriteString(ImageFamily); + } + 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 (Project.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Project); + } + if (HasImageName) { + output.WriteRawTag(18); + output.WriteString(ImageName); + } + if (HasImageFamily) { + output.WriteRawTag(26); + output.WriteString(ImageFamily); + } + 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 (Project.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Project); + } + if (HasImageName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageName); + } + if (HasImageFamily) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageFamily); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VmImage other) { + if (other == null) { + return; + } + if (other.Project.Length != 0) { + Project = other.Project; + } + switch (other.ImageCase) { + case ImageOneofCase.ImageName: + ImageName = other.ImageName; + break; + case ImageOneofCase.ImageFamily: + ImageFamily = other.ImageFamily; + break; + } + + _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: { + Project = input.ReadString(); + break; + } + case 18: { + ImageName = input.ReadString(); + break; + } + case 26: { + ImageFamily = 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: { + Project = input.ReadString(); + break; + } + case 18: { + ImageName = input.ReadString(); + break; + } + case 26: { + ImageFamily = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Definition of a container image for starting a notebook instance with the + /// environment installed in a container. + /// + public sealed partial class ContainerImage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContainerImage()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 ContainerImage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContainerImage(ContainerImage other) : this() { + repository_ = other.repository_; + tag_ = other.tag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContainerImage Clone() { + return new ContainerImage(this); + } + + /// Field number for the "repository" field. + public const int RepositoryFieldNumber = 1; + private string repository_ = ""; + /// + /// Required. The path to the container image repository. For example: + /// `gcr.io/{project_id}/{image_name}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Repository { + get { return repository_; } + set { + repository_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 2; + private string tag_ = ""; + /// + /// The tag of the container image. If not specified, this defaults + /// to the latest tag. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag { + get { return tag_; } + set { + tag_ = 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 ContainerImage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ContainerImage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Repository != other.Repository) return false; + if (Tag != other.Tag) 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 (Repository.Length != 0) hash ^= Repository.GetHashCode(); + if (Tag.Length != 0) hash ^= Tag.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 (Repository.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Repository); + } + if (Tag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Tag); + } + 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 (Repository.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Repository); + } + if (Tag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Tag); + } + 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 (Repository.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Repository); + } + if (Tag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Tag); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ContainerImage other) { + if (other == null) { + return; + } + if (other.Repository.Length != 0) { + Repository = other.Repository; + } + if (other.Tag.Length != 0) { + Tag = other.Tag; + } + _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: { + Repository = input.ReadString(); + break; + } + case 18: { + Tag = 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: { + Repository = input.ReadString(); + break; + } + case 18: { + Tag = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The definition of a Runtime for a managed notebook instance. + /// + public sealed partial class Runtime : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Runtime()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 Runtime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Runtime(Runtime other) : this() { + name_ = other.name_; + state_ = other.state_; + healthState_ = other.healthState_; + accessConfig_ = other.accessConfig_ != null ? other.accessConfig_.Clone() : null; + softwareConfig_ = other.softwareConfig_ != null ? other.softwareConfig_.Clone() : null; + metrics_ = other.metrics_ != null ? other.metrics_.Clone() : null; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + switch (other.RuntimeTypeCase) { + case RuntimeTypeOneofCase.VirtualMachine: + VirtualMachine = other.VirtualMachine.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Runtime Clone() { + return new Runtime(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The resource name of the runtime. + /// Format: + /// `projects/{project}/locations/{location}/runtimes/{runtimeId}` + /// + [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 "virtual_machine" field. + public const int VirtualMachineFieldNumber = 2; + /// + /// Use a Compute Engine VM image to start the managed notebook instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachine VirtualMachine { + get { return runtimeTypeCase_ == RuntimeTypeOneofCase.VirtualMachine ? (global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachine) runtimeType_ : null; } + set { + runtimeType_ = value; + runtimeTypeCase_ = value == null ? RuntimeTypeOneofCase.None : RuntimeTypeOneofCase.VirtualMachine; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.State state_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.State.Unspecified; + /// + /// Output only. Runtime state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "health_state" field. + public const int HealthStateFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.HealthState healthState_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.HealthState.Unspecified; + /// + /// Output only. Runtime health_state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.HealthState HealthState { + get { return healthState_; } + set { + healthState_ = value; + } + } + + /// Field number for the "access_config" field. + public const int AccessConfigFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig accessConfig_; + /// + /// The config settings for accessing runtime. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig AccessConfig { + get { return accessConfig_; } + set { + accessConfig_ = value; + } + } + + /// Field number for the "software_config" field. + public const int SoftwareConfigFieldNumber = 6; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig softwareConfig_; + /// + /// The config settings for software inside the runtime. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig SoftwareConfig { + get { return softwareConfig_; } + set { + softwareConfig_ = value; + } + } + + /// Field number for the "metrics" field. + public const int MetricsFieldNumber = 7; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeMetrics metrics_; + /// + /// Output only. Contains Runtime daemon metrics such as Service status and + /// JupyterLab stats. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeMetrics Metrics { + get { return metrics_; } + set { + metrics_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 20; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Runtime creation time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 21; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Runtime update time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 23; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 186); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Optional. The labels to associate with this Managed Notebook or Runtime. + /// Label **keys** must contain 1 to 63 characters, and must conform to + /// [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). + /// Label **values** may be empty, but, if present, must contain 1 to 63 + /// characters, and must conform to [RFC + /// 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + /// associated with a cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + private object runtimeType_; + /// Enum of possible cases for the "runtime_type" oneof. + public enum RuntimeTypeOneofCase { + None = 0, + VirtualMachine = 2, + } + private RuntimeTypeOneofCase runtimeTypeCase_ = RuntimeTypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeTypeOneofCase RuntimeTypeCase { + get { return runtimeTypeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRuntimeType() { + runtimeTypeCase_ = RuntimeTypeOneofCase.None; + runtimeType_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Runtime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Runtime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(VirtualMachine, other.VirtualMachine)) return false; + if (State != other.State) return false; + if (HealthState != other.HealthState) return false; + if (!object.Equals(AccessConfig, other.AccessConfig)) return false; + if (!object.Equals(SoftwareConfig, other.SoftwareConfig)) return false; + if (!object.Equals(Metrics, other.Metrics)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (RuntimeTypeCase != other.RuntimeTypeCase) 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 (runtimeTypeCase_ == RuntimeTypeOneofCase.VirtualMachine) hash ^= VirtualMachine.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (HealthState != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.HealthState.Unspecified) hash ^= HealthState.GetHashCode(); + if (accessConfig_ != null) hash ^= AccessConfig.GetHashCode(); + if (softwareConfig_ != null) hash ^= SoftwareConfig.GetHashCode(); + if (metrics_ != null) hash ^= Metrics.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + hash ^= (int) runtimeTypeCase_; + 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 (runtimeTypeCase_ == RuntimeTypeOneofCase.VirtualMachine) { + output.WriteRawTag(18); + output.WriteMessage(VirtualMachine); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.State.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (HealthState != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.HealthState.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) HealthState); + } + if (accessConfig_ != null) { + output.WriteRawTag(42); + output.WriteMessage(AccessConfig); + } + if (softwareConfig_ != null) { + output.WriteRawTag(50); + output.WriteMessage(SoftwareConfig); + } + if (metrics_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Metrics); + } + if (createTime_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(UpdateTime); + } + 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 (runtimeTypeCase_ == RuntimeTypeOneofCase.VirtualMachine) { + output.WriteRawTag(18); + output.WriteMessage(VirtualMachine); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.State.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (HealthState != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.HealthState.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) HealthState); + } + if (accessConfig_ != null) { + output.WriteRawTag(42); + output.WriteMessage(AccessConfig); + } + if (softwareConfig_ != null) { + output.WriteRawTag(50); + output.WriteMessage(SoftwareConfig); + } + if (metrics_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Metrics); + } + if (createTime_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(UpdateTime); + } + 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 (runtimeTypeCase_ == RuntimeTypeOneofCase.VirtualMachine) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VirtualMachine); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (HealthState != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.HealthState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HealthState); + } + if (accessConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccessConfig); + } + if (softwareConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SoftwareConfig); + } + if (metrics_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metrics); + } + if (createTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + 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(Runtime other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.State.Unspecified) { + State = other.State; + } + if (other.HealthState != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.HealthState.Unspecified) { + HealthState = other.HealthState; + } + if (other.accessConfig_ != null) { + if (accessConfig_ == null) { + AccessConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig(); + } + AccessConfig.MergeFrom(other.AccessConfig); + } + if (other.softwareConfig_ != null) { + if (softwareConfig_ == null) { + SoftwareConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig(); + } + SoftwareConfig.MergeFrom(other.SoftwareConfig); + } + if (other.metrics_ != null) { + if (metrics_ == null) { + Metrics = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeMetrics(); + } + Metrics.MergeFrom(other.Metrics); + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + switch (other.RuntimeTypeCase) { + case RuntimeTypeOneofCase.VirtualMachine: + if (VirtualMachine == null) { + VirtualMachine = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachine(); + } + VirtualMachine.MergeFrom(other.VirtualMachine); + break; + } + + _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: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachine subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachine(); + if (runtimeTypeCase_ == RuntimeTypeOneofCase.VirtualMachine) { + subBuilder.MergeFrom(VirtualMachine); + } + input.ReadMessage(subBuilder); + VirtualMachine = subBuilder; + break; + } + case 24: { + State = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.State) input.ReadEnum(); + break; + } + case 32: { + HealthState = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.HealthState) input.ReadEnum(); + break; + } + case 42: { + if (accessConfig_ == null) { + AccessConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig(); + } + input.ReadMessage(AccessConfig); + break; + } + case 50: { + if (softwareConfig_ == null) { + SoftwareConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig(); + } + input.ReadMessage(SoftwareConfig); + break; + } + case 58: { + if (metrics_ == null) { + Metrics = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeMetrics(); + } + input.ReadMessage(Metrics); + break; + } + case 162: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 170: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 186: { + 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: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachine subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachine(); + if (runtimeTypeCase_ == RuntimeTypeOneofCase.VirtualMachine) { + subBuilder.MergeFrom(VirtualMachine); + } + input.ReadMessage(subBuilder); + VirtualMachine = subBuilder; + break; + } + case 24: { + State = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.State) input.ReadEnum(); + break; + } + case 32: { + HealthState = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime.Types.HealthState) input.ReadEnum(); + break; + } + case 42: { + if (accessConfig_ == null) { + AccessConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig(); + } + input.ReadMessage(AccessConfig); + break; + } + case 50: { + if (softwareConfig_ == null) { + SoftwareConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig(); + } + input.ReadMessage(SoftwareConfig); + break; + } + case 58: { + if (metrics_ == null) { + Metrics = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeMetrics(); + } + input.ReadMessage(Metrics); + break; + } + case 162: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 170: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 186: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Runtime message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The definition of the states of this runtime. + /// + public enum State { + /// + /// State is not specified. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The compute layer is starting the runtime. It is not ready for use. + /// + [pbr::OriginalName("STARTING")] Starting = 1, + /// + /// The compute layer is installing required frameworks and registering the + /// runtime with notebook proxy. It cannot be used. + /// + [pbr::OriginalName("PROVISIONING")] Provisioning = 2, + /// + /// The runtime is currently running. It is ready for use. + /// + [pbr::OriginalName("ACTIVE")] Active = 3, + /// + /// The control logic is stopping the runtime. It cannot be used. + /// + [pbr::OriginalName("STOPPING")] Stopping = 4, + /// + /// The runtime is stopped. It cannot be used. + /// + [pbr::OriginalName("STOPPED")] Stopped = 5, + /// + /// The runtime is being deleted. It cannot be used. + /// + [pbr::OriginalName("DELETING")] Deleting = 6, + /// + /// The runtime is upgrading. It cannot be used. + /// + [pbr::OriginalName("UPGRADING")] Upgrading = 7, + /// + /// The runtime is being created and set up. It is not ready for use. + /// + [pbr::OriginalName("INITIALIZING")] Initializing = 8, + } + + /// + /// The runtime substate. + /// + public enum HealthState { + /// + /// The runtime substate is unknown. + /// + [pbr::OriginalName("HEALTH_STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The runtime is known to be in an healthy state + /// (for example, critical daemons are running) + /// Applies to ACTIVE state. + /// + [pbr::OriginalName("HEALTHY")] Healthy = 1, + /// + /// The runtime is known to be in an unhealthy state + /// (for example, critical daemons are not running) + /// Applies to ACTIVE state. + /// + [pbr::OriginalName("UNHEALTHY")] Unhealthy = 2, + /// + /// The runtime has not installed health monitoring agent. + /// Applies to ACTIVE state. + /// + [pbr::OriginalName("AGENT_NOT_INSTALLED")] AgentNotInstalled = 3, + /// + /// The runtime health monitoring agent is not running. + /// Applies to ACTIVE state. + /// + [pbr::OriginalName("AGENT_NOT_RUNNING")] AgentNotRunning = 4, + } + + } + #endregion + + } + + /// + /// Definition of the types of hardware accelerators that can be used. + /// Definition of the types of hardware accelerators that can be used. + /// See [Compute Engine + /// AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes). + /// Examples: + /// + /// * `nvidia-tesla-k80` + /// * `nvidia-tesla-p100` + /// * `nvidia-tesla-v100` + /// * `nvidia-tesla-p4` + /// * `nvidia-tesla-t4` + /// * `nvidia-tesla-a100` + /// + public sealed partial class RuntimeAcceleratorConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RuntimeAcceleratorConfig()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 RuntimeAcceleratorConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeAcceleratorConfig(RuntimeAcceleratorConfig other) : this() { + type_ = other.type_; + coreCount_ = other.coreCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeAcceleratorConfig Clone() { + return new RuntimeAcceleratorConfig(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Types.AcceleratorType type_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Types.AcceleratorType.Unspecified; + /// + /// Accelerator model. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Types.AcceleratorType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "core_count" field. + public const int CoreCountFieldNumber = 2; + private long coreCount_; + /// + /// Count of cores of this accelerator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CoreCount { + get { return coreCount_; } + set { + coreCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RuntimeAcceleratorConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RuntimeAcceleratorConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (CoreCount != other.CoreCount) 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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Types.AcceleratorType.Unspecified) hash ^= Type.GetHashCode(); + if (CoreCount != 0L) hash ^= CoreCount.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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Types.AcceleratorType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (CoreCount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(CoreCount); + } + 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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Types.AcceleratorType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (CoreCount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(CoreCount); + } + 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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Types.AcceleratorType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (CoreCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CoreCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RuntimeAcceleratorConfig other) { + if (other == null) { + return; + } + if (other.Type != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Types.AcceleratorType.Unspecified) { + Type = other.Type; + } + if (other.CoreCount != 0L) { + CoreCount = other.CoreCount; + } + _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: { + Type = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Types.AcceleratorType) input.ReadEnum(); + break; + } + case 16: { + CoreCount = 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: { + Type = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig.Types.AcceleratorType) input.ReadEnum(); + break; + } + case 16: { + CoreCount = input.ReadInt64(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the RuntimeAcceleratorConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Type of this accelerator. + /// + public enum AcceleratorType { + /// + /// Accelerator type is not specified. + /// + [pbr::OriginalName("ACCELERATOR_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Accelerator type is Nvidia Tesla K80. + /// + [pbr::OriginalName("NVIDIA_TESLA_K80")] NvidiaTeslaK80 = 1, + /// + /// Accelerator type is Nvidia Tesla P100. + /// + [pbr::OriginalName("NVIDIA_TESLA_P100")] NvidiaTeslaP100 = 2, + /// + /// Accelerator type is Nvidia Tesla V100. + /// + [pbr::OriginalName("NVIDIA_TESLA_V100")] NvidiaTeslaV100 = 3, + /// + /// Accelerator type is Nvidia Tesla P4. + /// + [pbr::OriginalName("NVIDIA_TESLA_P4")] NvidiaTeslaP4 = 4, + /// + /// Accelerator type is Nvidia Tesla T4. + /// + [pbr::OriginalName("NVIDIA_TESLA_T4")] NvidiaTeslaT4 = 5, + /// + /// Accelerator type is Nvidia Tesla A100 - 40GB. + /// + [pbr::OriginalName("NVIDIA_TESLA_A100")] NvidiaTeslaA100 = 6, + /// + /// (Coming soon) Accelerator type is TPU V2. + /// + [pbr::OriginalName("TPU_V2")] TpuV2 = 7, + /// + /// (Coming soon) Accelerator type is TPU V3. + /// + [pbr::OriginalName("TPU_V3")] TpuV3 = 8, + /// + /// Accelerator type is NVIDIA Tesla T4 Virtual Workstations. + /// + [pbr::OriginalName("NVIDIA_TESLA_T4_VWS")] NvidiaTeslaT4Vws = 9, + /// + /// Accelerator type is NVIDIA Tesla P100 Virtual Workstations. + /// + [pbr::OriginalName("NVIDIA_TESLA_P100_VWS")] NvidiaTeslaP100Vws = 10, + /// + /// Accelerator type is NVIDIA Tesla P4 Virtual Workstations. + /// + [pbr::OriginalName("NVIDIA_TESLA_P4_VWS")] NvidiaTeslaP4Vws = 11, + } + + } + #endregion + + } + + /// + /// Represents a custom encryption key configuration that can be applied to + /// a resource. This will encrypt all disks in Virtual Machine. + /// + public sealed partial class EncryptionConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptionConfig()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 EncryptionConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionConfig(EncryptionConfig other) : this() { + kmsKey_ = other.kmsKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionConfig Clone() { + return new EncryptionConfig(this); + } + + /// Field number for the "kms_key" field. + public const int KmsKeyFieldNumber = 1; + private string kmsKey_ = ""; + /// + /// The Cloud KMS resource identifier of the customer-managed encryption key + /// used to protect a resource, such as a disks. It has the following + /// format: + /// `projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/cryptoKeys/{KEY_NAME}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KmsKey { + get { return kmsKey_; } + set { + kmsKey_ = 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 EncryptionConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EncryptionConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KmsKey != other.KmsKey) 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 (KmsKey.Length != 0) hash ^= KmsKey.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 (KmsKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKey); + } + 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 (KmsKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKey); + } + 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 (KmsKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KmsKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EncryptionConfig other) { + if (other == null) { + return; + } + if (other.KmsKey.Length != 0) { + KmsKey = other.KmsKey; + } + _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: { + KmsKey = 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: { + KmsKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A Local attached disk resource. + /// + public sealed partial class LocalDisk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalDisk()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 LocalDisk() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalDisk(LocalDisk other) : this() { + autoDelete_ = other.autoDelete_; + boot_ = other.boot_; + deviceName_ = other.deviceName_; + guestOsFeatures_ = other.guestOsFeatures_.Clone(); + index_ = other.index_; + interface_ = other.interface_; + kind_ = other.kind_; + licenses_ = other.licenses_.Clone(); + mode_ = other.mode_; + source_ = other.source_; + type_ = other.type_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalDisk Clone() { + return new LocalDisk(this); + } + + /// Field number for the "auto_delete" field. + public const int AutoDeleteFieldNumber = 1; + private bool autoDelete_; + /// + /// Optional. Output only. Specifies whether the disk will be auto-deleted when + /// the instance is deleted (but not when the disk is detached from the + /// instance). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AutoDelete { + get { return autoDelete_; } + set { + autoDelete_ = value; + } + } + + /// Field number for the "boot" field. + public const int BootFieldNumber = 2; + private bool boot_; + /// + /// Optional. Output only. Indicates that this is a boot disk. The virtual + /// machine will use the first partition of the disk for its root filesystem. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Boot { + get { return boot_; } + set { + boot_ = value; + } + } + + /// Field number for the "device_name" field. + public const int DeviceNameFieldNumber = 3; + private string deviceName_ = ""; + /// + /// Optional. Output only. Specifies a unique device name + /// of your choice that is reflected into the + /// `/dev/disk/by-id/google-*` tree of a Linux operating system running within + /// the instance. This name can be used to reference the device for mounting, + /// resizing, and so on, from within the instance. + /// + /// If not specified, the server chooses a default device name to apply to this + /// disk, in the form persistent-disk-x, where x is a number assigned by Google + /// Compute Engine. This field is only applicable for persistent disks. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DeviceName { + get { return deviceName_; } + set { + deviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "guest_os_features" field. + public const int GuestOsFeaturesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_guestOsFeatures_codec + = pb::FieldCodec.ForMessage(34, global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDisk.Types.RuntimeGuestOsFeature.Parser); + private readonly pbc::RepeatedField guestOsFeatures_ = new pbc::RepeatedField(); + /// + /// Output only. Indicates a list of features to enable on the guest operating + /// system. Applicable only for bootable images. Read Enabling guest operating + /// system features to see a list of available options. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GuestOsFeatures { + get { return guestOsFeatures_; } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 5; + private int index_; + /// + /// Output only. A zero-based index to this disk, where 0 is reserved for the + /// boot disk. If you have many disks attached to an instance, each disk would + /// have a unique index number. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "interface" field. + public const int InterfaceFieldNumber = 7; + private string interface_ = ""; + /// + /// Specifies the disk interface to use for attaching this disk, which is + /// either SCSI or NVME. The default is SCSI. Persistent disks must always use + /// SCSI and the request will fail if you attempt to attach a persistent disk + /// in any other format than SCSI. Local SSDs can use either NVME or SCSI. For + /// performance characteristics of SCSI over NVMe, see Local SSD performance. + /// Valid values: + /// + /// * `NVME` + /// * `SCSI` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Interface { + get { return interface_; } + set { + interface_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 8; + private string kind_ = ""; + /// + /// Output only. Type of the resource. Always compute#attachedDisk for attached + /// disks. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Kind { + get { return kind_; } + set { + kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "licenses" field. + public const int LicensesFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_licenses_codec + = pb::FieldCodec.ForString(74); + private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); + /// + /// Output only. Any valid publicly visible licenses. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Licenses { + get { return licenses_; } + } + + /// Field number for the "mode" field. + public const int ModeFieldNumber = 10; + private string mode_ = ""; + /// + /// The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`. + /// If not specified, the default is to attach the disk in `READ_WRITE` mode. + /// Valid values: + /// + /// * `READ_ONLY` + /// * `READ_WRITE` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Mode { + get { return mode_; } + set { + mode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 11; + private string source_ = ""; + /// + /// Specifies a valid partial or full URL to an existing Persistent Disk + /// resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Source { + get { return source_; } + set { + source_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 12; + private string type_ = ""; + /// + /// Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`. If not + /// specified, the default is `PERSISTENT`. + /// Valid values: + /// + /// * `PERSISTENT` + /// * `SCRATCH` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = 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 LocalDisk); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LocalDisk other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AutoDelete != other.AutoDelete) return false; + if (Boot != other.Boot) return false; + if (DeviceName != other.DeviceName) return false; + if(!guestOsFeatures_.Equals(other.guestOsFeatures_)) return false; + if (Index != other.Index) return false; + if (Interface != other.Interface) return false; + if (Kind != other.Kind) return false; + if(!licenses_.Equals(other.licenses_)) return false; + if (Mode != other.Mode) return false; + if (Source != other.Source) return false; + if (Type != other.Type) 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 (AutoDelete != false) hash ^= AutoDelete.GetHashCode(); + if (Boot != false) hash ^= Boot.GetHashCode(); + if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); + hash ^= guestOsFeatures_.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + if (Interface.Length != 0) hash ^= Interface.GetHashCode(); + if (Kind.Length != 0) hash ^= Kind.GetHashCode(); + hash ^= licenses_.GetHashCode(); + if (Mode.Length != 0) hash ^= Mode.GetHashCode(); + if (Source.Length != 0) hash ^= Source.GetHashCode(); + if (Type.Length != 0) hash ^= Type.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 (AutoDelete != false) { + output.WriteRawTag(8); + output.WriteBool(AutoDelete); + } + if (Boot != false) { + output.WriteRawTag(16); + output.WriteBool(Boot); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + guestOsFeatures_.WriteTo(output, _repeated_guestOsFeatures_codec); + if (Index != 0) { + output.WriteRawTag(40); + output.WriteInt32(Index); + } + if (Interface.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Interface); + } + if (Kind.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Kind); + } + licenses_.WriteTo(output, _repeated_licenses_codec); + if (Mode.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Mode); + } + if (Source.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Source); + } + if (Type.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Type); + } + 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 (AutoDelete != false) { + output.WriteRawTag(8); + output.WriteBool(AutoDelete); + } + if (Boot != false) { + output.WriteRawTag(16); + output.WriteBool(Boot); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + guestOsFeatures_.WriteTo(ref output, _repeated_guestOsFeatures_codec); + if (Index != 0) { + output.WriteRawTag(40); + output.WriteInt32(Index); + } + if (Interface.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Interface); + } + if (Kind.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Kind); + } + licenses_.WriteTo(ref output, _repeated_licenses_codec); + if (Mode.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Mode); + } + if (Source.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Source); + } + if (Type.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Type); + } + 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 (AutoDelete != false) { + size += 1 + 1; + } + if (Boot != false) { + size += 1 + 1; + } + if (DeviceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); + } + size += guestOsFeatures_.CalculateSize(_repeated_guestOsFeatures_codec); + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index); + } + if (Interface.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Interface); + } + if (Kind.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); + } + size += licenses_.CalculateSize(_repeated_licenses_codec); + if (Mode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Mode); + } + if (Source.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Source); + } + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LocalDisk other) { + if (other == null) { + return; + } + if (other.AutoDelete != false) { + AutoDelete = other.AutoDelete; + } + if (other.Boot != false) { + Boot = other.Boot; + } + if (other.DeviceName.Length != 0) { + DeviceName = other.DeviceName; + } + guestOsFeatures_.Add(other.guestOsFeatures_); + if (other.Index != 0) { + Index = other.Index; + } + if (other.Interface.Length != 0) { + Interface = other.Interface; + } + if (other.Kind.Length != 0) { + Kind = other.Kind; + } + licenses_.Add(other.licenses_); + if (other.Mode.Length != 0) { + Mode = other.Mode; + } + if (other.Source.Length != 0) { + Source = other.Source; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + _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: { + AutoDelete = input.ReadBool(); + break; + } + case 16: { + Boot = input.ReadBool(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + guestOsFeatures_.AddEntriesFrom(input, _repeated_guestOsFeatures_codec); + break; + } + case 40: { + Index = input.ReadInt32(); + break; + } + case 58: { + Interface = input.ReadString(); + break; + } + case 66: { + Kind = input.ReadString(); + break; + } + case 74: { + licenses_.AddEntriesFrom(input, _repeated_licenses_codec); + break; + } + case 82: { + Mode = input.ReadString(); + break; + } + case 90: { + Source = input.ReadString(); + break; + } + case 98: { + Type = 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 8: { + AutoDelete = input.ReadBool(); + break; + } + case 16: { + Boot = input.ReadBool(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 34: { + guestOsFeatures_.AddEntriesFrom(ref input, _repeated_guestOsFeatures_codec); + break; + } + case 40: { + Index = input.ReadInt32(); + break; + } + case 58: { + Interface = input.ReadString(); + break; + } + case 66: { + Kind = input.ReadString(); + break; + } + case 74: { + licenses_.AddEntriesFrom(ref input, _repeated_licenses_codec); + break; + } + case 82: { + Mode = input.ReadString(); + break; + } + case 90: { + Source = input.ReadString(); + break; + } + case 98: { + Type = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the LocalDisk message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Optional. A list of features to enable on the guest operating system. + /// Applicable only for bootable images. + /// Read [Enabling guest operating system + /// features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features) + /// to see a list of available options. + /// Guest OS features for boot disk. + /// + public sealed partial class RuntimeGuestOsFeature : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RuntimeGuestOsFeature()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDisk.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 RuntimeGuestOsFeature() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeGuestOsFeature(RuntimeGuestOsFeature other) : this() { + type_ = other.type_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeGuestOsFeature Clone() { + return new RuntimeGuestOsFeature(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private string type_ = ""; + /// + /// The ID of a supported feature. Read [Enabling guest operating system + /// features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features) + /// to see a list of available options. + /// + /// Valid values: + /// + /// * `FEATURE_TYPE_UNSPECIFIED` + /// * `MULTI_IP_SUBNET` + /// * `SECURE_BOOT` + /// * `UEFI_COMPATIBLE` + /// * `VIRTIO_SCSI_MULTIQUEUE` + /// * `WINDOWS` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = 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 RuntimeGuestOsFeature); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RuntimeGuestOsFeature other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RuntimeGuestOsFeature other) { + if (other == null) { + return; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Input only. Specifies the parameters for a new disk that will be created + /// alongside the new instance. Use initialization parameters to create boot + /// disks or local SSDs attached to the new runtime. + /// This property is mutually exclusive with the source property; you can only + /// define one or the other, but not both. + /// + public sealed partial class LocalDiskInitializeParams : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalDiskInitializeParams()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 LocalDiskInitializeParams() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalDiskInitializeParams(LocalDiskInitializeParams other) : this() { + description_ = other.description_; + diskName_ = other.diskName_; + diskSizeGb_ = other.diskSizeGb_; + labels_ = other.labels_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalDiskInitializeParams Clone() { + return new LocalDiskInitializeParams(this); + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 1; + private string description_ = ""; + /// + /// Optional. Provide this property when creating the disk. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "disk_name" field. + public const int DiskNameFieldNumber = 2; + private string diskName_ = ""; + /// + /// Optional. Specifies the disk name. If not specified, the default is to use + /// the name of the instance. If the disk with the instance name exists already + /// in the given zone/region, a new name will be automatically generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DiskName { + get { return diskName_; } + set { + diskName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "disk_size_gb" field. + public const int DiskSizeGbFieldNumber = 3; + private long diskSizeGb_; + /// + /// Optional. Specifies the size of the disk in base-2 GB. If not specified, + /// the disk will be the same size as the image (usually 10GB). If specified, + /// the size must be equal to or larger than 10GB. Default 100 GB. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DiskSizeGb { + get { return diskSizeGb_; } + set { + diskSizeGb_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Optional. Labels to apply to this disk. These can be later modified by the + /// disks.setLabels method. This field is only applicable for persistent disks. + /// + [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 LocalDiskInitializeParams); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LocalDiskInitializeParams other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Description != other.Description) return false; + if (DiskName != other.DiskName) return false; + if (DiskSizeGb != other.DiskSizeGb) 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 (Description.Length != 0) hash ^= Description.GetHashCode(); + if (DiskName.Length != 0) hash ^= DiskName.GetHashCode(); + if (DiskSizeGb != 0L) hash ^= DiskSizeGb.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 (Description.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Description); + } + if (DiskName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DiskName); + } + if (DiskSizeGb != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DiskSizeGb); + } + 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 (Description.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Description); + } + if (DiskName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DiskName); + } + if (DiskSizeGb != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DiskSizeGb); + } + 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 (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (DiskName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DiskName); + } + if (DiskSizeGb != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DiskSizeGb); + } + 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(LocalDiskInitializeParams other) { + if (other == null) { + return; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.DiskName.Length != 0) { + DiskName = other.DiskName; + } + if (other.DiskSizeGb != 0L) { + DiskSizeGb = other.DiskSizeGb; + } + labels_.MergeFrom(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: { + Description = input.ReadString(); + break; + } + case 18: { + DiskName = input.ReadString(); + break; + } + case 24: { + DiskSizeGb = input.ReadInt64(); + break; + } + case 42: { + 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: { + Description = input.ReadString(); + break; + } + case 18: { + DiskName = input.ReadString(); + break; + } + case 24: { + DiskSizeGb = input.ReadInt64(); + break; + } + case 42: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the LocalDiskInitializeParams message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible disk types. + /// + public enum DiskType { + /// + /// Disk type not set. + /// + [pbr::OriginalName("DISK_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Standard persistent disk type. + /// + [pbr::OriginalName("PD_STANDARD")] PdStandard = 1, + /// + /// SSD persistent disk type. + /// + [pbr::OriginalName("PD_SSD")] PdSsd = 2, + /// + /// Balanced persistent disk type. + /// + [pbr::OriginalName("PD_BALANCED")] PdBalanced = 3, + /// + /// Extreme persistent disk type. + /// + [pbr::OriginalName("PD_EXTREME")] PdExtreme = 4, + } + + } + #endregion + + } + + /// + /// Specifies the login configuration for Runtime + /// + public sealed partial class RuntimeAccessConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RuntimeAccessConfig()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 RuntimeAccessConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeAccessConfig(RuntimeAccessConfig other) : this() { + accessType_ = other.accessType_; + runtimeOwner_ = other.runtimeOwner_; + proxyUri_ = other.proxyUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeAccessConfig Clone() { + return new RuntimeAccessConfig(this); + } + + /// Field number for the "access_type" field. + public const int AccessTypeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Types.RuntimeAccessType accessType_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Types.RuntimeAccessType.Unspecified; + /// + /// The type of access mode this instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Types.RuntimeAccessType AccessType { + get { return accessType_; } + set { + accessType_ = value; + } + } + + /// Field number for the "runtime_owner" field. + public const int RuntimeOwnerFieldNumber = 2; + private string runtimeOwner_ = ""; + /// + /// The owner of this runtime after creation. Format: `alias@example.com` + /// Currently supports one owner only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RuntimeOwner { + get { return runtimeOwner_; } + set { + runtimeOwner_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "proxy_uri" field. + public const int ProxyUriFieldNumber = 3; + private string proxyUri_ = ""; + /// + /// Output only. The proxy endpoint that is used to access the runtime. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ProxyUri { + get { return proxyUri_; } + set { + proxyUri_ = 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 RuntimeAccessConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RuntimeAccessConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AccessType != other.AccessType) return false; + if (RuntimeOwner != other.RuntimeOwner) return false; + if (ProxyUri != other.ProxyUri) 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 (AccessType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Types.RuntimeAccessType.Unspecified) hash ^= AccessType.GetHashCode(); + if (RuntimeOwner.Length != 0) hash ^= RuntimeOwner.GetHashCode(); + if (ProxyUri.Length != 0) hash ^= ProxyUri.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 (AccessType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Types.RuntimeAccessType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) AccessType); + } + if (RuntimeOwner.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RuntimeOwner); + } + if (ProxyUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ProxyUri); + } + 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 (AccessType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Types.RuntimeAccessType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) AccessType); + } + if (RuntimeOwner.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RuntimeOwner); + } + if (ProxyUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ProxyUri); + } + 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 (AccessType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Types.RuntimeAccessType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AccessType); + } + if (RuntimeOwner.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RuntimeOwner); + } + if (ProxyUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProxyUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RuntimeAccessConfig other) { + if (other == null) { + return; + } + if (other.AccessType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Types.RuntimeAccessType.Unspecified) { + AccessType = other.AccessType; + } + if (other.RuntimeOwner.Length != 0) { + RuntimeOwner = other.RuntimeOwner; + } + if (other.ProxyUri.Length != 0) { + ProxyUri = other.ProxyUri; + } + _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: { + AccessType = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Types.RuntimeAccessType) input.ReadEnum(); + break; + } + case 18: { + RuntimeOwner = input.ReadString(); + break; + } + case 26: { + ProxyUri = 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 8: { + AccessType = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAccessConfig.Types.RuntimeAccessType) input.ReadEnum(); + break; + } + case 18: { + RuntimeOwner = input.ReadString(); + break; + } + case 26: { + ProxyUri = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the RuntimeAccessConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible ways to access runtime. Authentication mode. + /// Currently supports: Single User only. + /// + public enum RuntimeAccessType { + /// + /// Unspecified access. + /// + [pbr::OriginalName("RUNTIME_ACCESS_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Single user login. + /// + [pbr::OriginalName("SINGLE_USER")] SingleUser = 1, + /// + /// Service Account mode. + /// In Service Account mode, Runtime creator will specify a SA that exists + /// in the consumer project. Using Runtime Service Account field. + /// Users accessing the Runtime need ActAs (Service Account User) permission. + /// + [pbr::OriginalName("SERVICE_ACCOUNT")] ServiceAccount = 2, + } + + } + #endregion + + } + + /// + /// Specifies the selection and configuration of software inside the runtime. + /// The properties to set on runtime. + /// Properties keys are specified in `key:value` format, for example: + /// + /// * `idle_shutdown: true` + /// * `idle_shutdown_timeout: 180` + /// * `enable_health_monitoring: true` + /// + public sealed partial class RuntimeSoftwareConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RuntimeSoftwareConfig()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 RuntimeSoftwareConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeSoftwareConfig(RuntimeSoftwareConfig other) : this() { + _hasBits0 = other._hasBits0; + notebookUpgradeSchedule_ = other.notebookUpgradeSchedule_; + enableHealthMonitoring_ = other.enableHealthMonitoring_; + idleShutdown_ = other.idleShutdown_; + idleShutdownTimeout_ = other.idleShutdownTimeout_; + installGpuDriver_ = other.installGpuDriver_; + customGpuDriverPath_ = other.customGpuDriverPath_; + postStartupScript_ = other.postStartupScript_; + kernels_ = other.kernels_.Clone(); + upgradeable_ = other.upgradeable_; + postStartupScriptBehavior_ = other.postStartupScriptBehavior_; + disableTerminal_ = other.disableTerminal_; + version_ = other.version_; + mixerDisabled_ = other.mixerDisabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeSoftwareConfig Clone() { + return new RuntimeSoftwareConfig(this); + } + + /// Field number for the "notebook_upgrade_schedule" field. + public const int NotebookUpgradeScheduleFieldNumber = 1; + private string notebookUpgradeSchedule_ = ""; + /// + /// Cron expression in UTC timezone, used to schedule instance auto upgrade. + /// Please follow the [cron format](https://en.wikipedia.org/wiki/Cron). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NotebookUpgradeSchedule { + get { return notebookUpgradeSchedule_; } + set { + notebookUpgradeSchedule_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "enable_health_monitoring" field. + public const int EnableHealthMonitoringFieldNumber = 2; + private readonly static bool EnableHealthMonitoringDefaultValue = false; + + private bool enableHealthMonitoring_; + /// + /// Verifies core internal services are running. + /// Default: True + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EnableHealthMonitoring { + get { if ((_hasBits0 & 1) != 0) { return enableHealthMonitoring_; } else { return EnableHealthMonitoringDefaultValue; } } + set { + _hasBits0 |= 1; + enableHealthMonitoring_ = value; + } + } + /// Gets whether the "enable_health_monitoring" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnableHealthMonitoring { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "enable_health_monitoring" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnableHealthMonitoring() { + _hasBits0 &= ~1; + } + + /// Field number for the "idle_shutdown" field. + public const int IdleShutdownFieldNumber = 3; + private readonly static bool IdleShutdownDefaultValue = false; + + private bool idleShutdown_; + /// + /// Runtime will automatically shutdown after idle_shutdown_time. + /// Default: True + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IdleShutdown { + get { if ((_hasBits0 & 2) != 0) { return idleShutdown_; } else { return IdleShutdownDefaultValue; } } + set { + _hasBits0 |= 2; + idleShutdown_ = value; + } + } + /// Gets whether the "idle_shutdown" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIdleShutdown { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "idle_shutdown" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIdleShutdown() { + _hasBits0 &= ~2; + } + + /// Field number for the "idle_shutdown_timeout" field. + public const int IdleShutdownTimeoutFieldNumber = 4; + private int idleShutdownTimeout_; + /// + /// Time in minutes to wait before shutting down runtime. Default: 180 minutes + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IdleShutdownTimeout { + get { return idleShutdownTimeout_; } + set { + idleShutdownTimeout_ = value; + } + } + + /// Field number for the "install_gpu_driver" field. + public const int InstallGpuDriverFieldNumber = 5; + private bool installGpuDriver_; + /// + /// Install Nvidia Driver automatically. + /// Default: True + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InstallGpuDriver { + get { return installGpuDriver_; } + set { + installGpuDriver_ = value; + } + } + + /// Field number for the "custom_gpu_driver_path" field. + public const int CustomGpuDriverPathFieldNumber = 6; + private string customGpuDriverPath_ = ""; + /// + /// Specify a custom Cloud Storage path where the GPU driver is stored. + /// If not specified, we'll automatically choose from official GPU drivers. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CustomGpuDriverPath { + get { return customGpuDriverPath_; } + set { + customGpuDriverPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "post_startup_script" field. + public const int PostStartupScriptFieldNumber = 7; + private string postStartupScript_ = ""; + /// + /// Path to a Bash script that automatically runs after a notebook instance + /// fully boots up. The path must be a URL or + /// Cloud Storage path (`gs://path-to-file/file-name`). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PostStartupScript { + get { return postStartupScript_; } + set { + postStartupScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "kernels" field. + public const int KernelsFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_kernels_codec + = pb::FieldCodec.ForMessage(66, global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage.Parser); + private readonly pbc::RepeatedField kernels_ = new pbc::RepeatedField(); + /// + /// Optional. Use a list of container images to use as Kernels in the notebook + /// instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Kernels { + get { return kernels_; } + } + + /// Field number for the "upgradeable" field. + public const int UpgradeableFieldNumber = 9; + private readonly static bool UpgradeableDefaultValue = false; + + private bool upgradeable_; + /// + /// Output only. Bool indicating whether an newer image is available in an + /// image family. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Upgradeable { + get { if ((_hasBits0 & 4) != 0) { return upgradeable_; } else { return UpgradeableDefaultValue; } } + set { + _hasBits0 |= 4; + upgradeable_ = value; + } + } + /// Gets whether the "upgradeable" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUpgradeable { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "upgradeable" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUpgradeable() { + _hasBits0 &= ~4; + } + + /// Field number for the "post_startup_script_behavior" field. + public const int PostStartupScriptBehaviorFieldNumber = 10; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Types.PostStartupScriptBehavior postStartupScriptBehavior_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Types.PostStartupScriptBehavior.Unspecified; + /// + /// Behavior for the post startup script. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Types.PostStartupScriptBehavior PostStartupScriptBehavior { + get { return postStartupScriptBehavior_; } + set { + postStartupScriptBehavior_ = value; + } + } + + /// Field number for the "disable_terminal" field. + public const int DisableTerminalFieldNumber = 11; + private readonly static bool DisableTerminalDefaultValue = false; + + private bool disableTerminal_; + /// + /// Bool indicating whether JupyterLab terminal will be available or not. + /// Default: False + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DisableTerminal { + get { if ((_hasBits0 & 8) != 0) { return disableTerminal_; } else { return DisableTerminalDefaultValue; } } + set { + _hasBits0 |= 8; + disableTerminal_ = value; + } + } + /// Gets whether the "disable_terminal" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDisableTerminal { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "disable_terminal" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDisableTerminal() { + _hasBits0 &= ~8; + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 12; + private readonly static string VersionDefaultValue = ""; + + private string version_; + /// + /// Output only. version of boot image such as M100, from release label of the + /// image. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_ ?? VersionDefaultValue; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "version" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasVersion { + get { return version_ != null; } + } + /// Clears the value of the "version" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearVersion() { + version_ = null; + } + + /// Field number for the "mixer_disabled" field. + public const int MixerDisabledFieldNumber = 13; + private readonly static bool MixerDisabledDefaultValue = false; + + private bool mixerDisabled_; + /// + /// Bool indicating whether mixer client should be disabled. + /// Default: False + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool MixerDisabled { + get { if ((_hasBits0 & 16) != 0) { return mixerDisabled_; } else { return MixerDisabledDefaultValue; } } + set { + _hasBits0 |= 16; + mixerDisabled_ = value; + } + } + /// Gets whether the "mixer_disabled" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMixerDisabled { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "mixer_disabled" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMixerDisabled() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RuntimeSoftwareConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RuntimeSoftwareConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NotebookUpgradeSchedule != other.NotebookUpgradeSchedule) return false; + if (EnableHealthMonitoring != other.EnableHealthMonitoring) return false; + if (IdleShutdown != other.IdleShutdown) return false; + if (IdleShutdownTimeout != other.IdleShutdownTimeout) return false; + if (InstallGpuDriver != other.InstallGpuDriver) return false; + if (CustomGpuDriverPath != other.CustomGpuDriverPath) return false; + if (PostStartupScript != other.PostStartupScript) return false; + if(!kernels_.Equals(other.kernels_)) return false; + if (Upgradeable != other.Upgradeable) return false; + if (PostStartupScriptBehavior != other.PostStartupScriptBehavior) return false; + if (DisableTerminal != other.DisableTerminal) return false; + if (Version != other.Version) return false; + if (MixerDisabled != other.MixerDisabled) 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 (NotebookUpgradeSchedule.Length != 0) hash ^= NotebookUpgradeSchedule.GetHashCode(); + if (HasEnableHealthMonitoring) hash ^= EnableHealthMonitoring.GetHashCode(); + if (HasIdleShutdown) hash ^= IdleShutdown.GetHashCode(); + if (IdleShutdownTimeout != 0) hash ^= IdleShutdownTimeout.GetHashCode(); + if (InstallGpuDriver != false) hash ^= InstallGpuDriver.GetHashCode(); + if (CustomGpuDriverPath.Length != 0) hash ^= CustomGpuDriverPath.GetHashCode(); + if (PostStartupScript.Length != 0) hash ^= PostStartupScript.GetHashCode(); + hash ^= kernels_.GetHashCode(); + if (HasUpgradeable) hash ^= Upgradeable.GetHashCode(); + if (PostStartupScriptBehavior != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Types.PostStartupScriptBehavior.Unspecified) hash ^= PostStartupScriptBehavior.GetHashCode(); + if (HasDisableTerminal) hash ^= DisableTerminal.GetHashCode(); + if (HasVersion) hash ^= Version.GetHashCode(); + if (HasMixerDisabled) hash ^= MixerDisabled.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 (NotebookUpgradeSchedule.Length != 0) { + output.WriteRawTag(10); + output.WriteString(NotebookUpgradeSchedule); + } + if (HasEnableHealthMonitoring) { + output.WriteRawTag(16); + output.WriteBool(EnableHealthMonitoring); + } + if (HasIdleShutdown) { + output.WriteRawTag(24); + output.WriteBool(IdleShutdown); + } + if (IdleShutdownTimeout != 0) { + output.WriteRawTag(32); + output.WriteInt32(IdleShutdownTimeout); + } + if (InstallGpuDriver != false) { + output.WriteRawTag(40); + output.WriteBool(InstallGpuDriver); + } + if (CustomGpuDriverPath.Length != 0) { + output.WriteRawTag(50); + output.WriteString(CustomGpuDriverPath); + } + if (PostStartupScript.Length != 0) { + output.WriteRawTag(58); + output.WriteString(PostStartupScript); + } + kernels_.WriteTo(output, _repeated_kernels_codec); + if (HasUpgradeable) { + output.WriteRawTag(72); + output.WriteBool(Upgradeable); + } + if (PostStartupScriptBehavior != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Types.PostStartupScriptBehavior.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) PostStartupScriptBehavior); + } + if (HasDisableTerminal) { + output.WriteRawTag(88); + output.WriteBool(DisableTerminal); + } + if (HasVersion) { + output.WriteRawTag(98); + output.WriteString(Version); + } + if (HasMixerDisabled) { + output.WriteRawTag(104); + output.WriteBool(MixerDisabled); + } + 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 (NotebookUpgradeSchedule.Length != 0) { + output.WriteRawTag(10); + output.WriteString(NotebookUpgradeSchedule); + } + if (HasEnableHealthMonitoring) { + output.WriteRawTag(16); + output.WriteBool(EnableHealthMonitoring); + } + if (HasIdleShutdown) { + output.WriteRawTag(24); + output.WriteBool(IdleShutdown); + } + if (IdleShutdownTimeout != 0) { + output.WriteRawTag(32); + output.WriteInt32(IdleShutdownTimeout); + } + if (InstallGpuDriver != false) { + output.WriteRawTag(40); + output.WriteBool(InstallGpuDriver); + } + if (CustomGpuDriverPath.Length != 0) { + output.WriteRawTag(50); + output.WriteString(CustomGpuDriverPath); + } + if (PostStartupScript.Length != 0) { + output.WriteRawTag(58); + output.WriteString(PostStartupScript); + } + kernels_.WriteTo(ref output, _repeated_kernels_codec); + if (HasUpgradeable) { + output.WriteRawTag(72); + output.WriteBool(Upgradeable); + } + if (PostStartupScriptBehavior != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Types.PostStartupScriptBehavior.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) PostStartupScriptBehavior); + } + if (HasDisableTerminal) { + output.WriteRawTag(88); + output.WriteBool(DisableTerminal); + } + if (HasVersion) { + output.WriteRawTag(98); + output.WriteString(Version); + } + if (HasMixerDisabled) { + output.WriteRawTag(104); + output.WriteBool(MixerDisabled); + } + 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 (NotebookUpgradeSchedule.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NotebookUpgradeSchedule); + } + if (HasEnableHealthMonitoring) { + size += 1 + 1; + } + if (HasIdleShutdown) { + size += 1 + 1; + } + if (IdleShutdownTimeout != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IdleShutdownTimeout); + } + if (InstallGpuDriver != false) { + size += 1 + 1; + } + if (CustomGpuDriverPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomGpuDriverPath); + } + if (PostStartupScript.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PostStartupScript); + } + size += kernels_.CalculateSize(_repeated_kernels_codec); + if (HasUpgradeable) { + size += 1 + 1; + } + if (PostStartupScriptBehavior != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Types.PostStartupScriptBehavior.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PostStartupScriptBehavior); + } + if (HasDisableTerminal) { + size += 1 + 1; + } + if (HasVersion) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (HasMixerDisabled) { + 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(RuntimeSoftwareConfig other) { + if (other == null) { + return; + } + if (other.NotebookUpgradeSchedule.Length != 0) { + NotebookUpgradeSchedule = other.NotebookUpgradeSchedule; + } + if (other.HasEnableHealthMonitoring) { + EnableHealthMonitoring = other.EnableHealthMonitoring; + } + if (other.HasIdleShutdown) { + IdleShutdown = other.IdleShutdown; + } + if (other.IdleShutdownTimeout != 0) { + IdleShutdownTimeout = other.IdleShutdownTimeout; + } + if (other.InstallGpuDriver != false) { + InstallGpuDriver = other.InstallGpuDriver; + } + if (other.CustomGpuDriverPath.Length != 0) { + CustomGpuDriverPath = other.CustomGpuDriverPath; + } + if (other.PostStartupScript.Length != 0) { + PostStartupScript = other.PostStartupScript; + } + kernels_.Add(other.kernels_); + if (other.HasUpgradeable) { + Upgradeable = other.Upgradeable; + } + if (other.PostStartupScriptBehavior != global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Types.PostStartupScriptBehavior.Unspecified) { + PostStartupScriptBehavior = other.PostStartupScriptBehavior; + } + if (other.HasDisableTerminal) { + DisableTerminal = other.DisableTerminal; + } + if (other.HasVersion) { + Version = other.Version; + } + if (other.HasMixerDisabled) { + MixerDisabled = other.MixerDisabled; + } + _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: { + NotebookUpgradeSchedule = input.ReadString(); + break; + } + case 16: { + EnableHealthMonitoring = input.ReadBool(); + break; + } + case 24: { + IdleShutdown = input.ReadBool(); + break; + } + case 32: { + IdleShutdownTimeout = input.ReadInt32(); + break; + } + case 40: { + InstallGpuDriver = input.ReadBool(); + break; + } + case 50: { + CustomGpuDriverPath = input.ReadString(); + break; + } + case 58: { + PostStartupScript = input.ReadString(); + break; + } + case 66: { + kernels_.AddEntriesFrom(input, _repeated_kernels_codec); + break; + } + case 72: { + Upgradeable = input.ReadBool(); + break; + } + case 80: { + PostStartupScriptBehavior = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Types.PostStartupScriptBehavior) input.ReadEnum(); + break; + } + case 88: { + DisableTerminal = input.ReadBool(); + break; + } + case 98: { + Version = input.ReadString(); + break; + } + case 104: { + MixerDisabled = 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 10: { + NotebookUpgradeSchedule = input.ReadString(); + break; + } + case 16: { + EnableHealthMonitoring = input.ReadBool(); + break; + } + case 24: { + IdleShutdown = input.ReadBool(); + break; + } + case 32: { + IdleShutdownTimeout = input.ReadInt32(); + break; + } + case 40: { + InstallGpuDriver = input.ReadBool(); + break; + } + case 50: { + CustomGpuDriverPath = input.ReadString(); + break; + } + case 58: { + PostStartupScript = input.ReadString(); + break; + } + case 66: { + kernels_.AddEntriesFrom(ref input, _repeated_kernels_codec); + break; + } + case 72: { + Upgradeable = input.ReadBool(); + break; + } + case 80: { + PostStartupScriptBehavior = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeSoftwareConfig.Types.PostStartupScriptBehavior) input.ReadEnum(); + break; + } + case 88: { + DisableTerminal = input.ReadBool(); + break; + } + case 98: { + Version = input.ReadString(); + break; + } + case 104: { + MixerDisabled = input.ReadBool(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the RuntimeSoftwareConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Behavior for the post startup script. + /// + public enum PostStartupScriptBehavior { + /// + /// Unspecified post startup script behavior. Will run only once at creation. + /// + [pbr::OriginalName("POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED")] Unspecified = 0, + /// + /// Runs the post startup script provided during creation at every start. + /// + [pbr::OriginalName("RUN_EVERY_START")] RunEveryStart = 1, + /// + /// Downloads and runs the provided post startup script at every start. + /// + [pbr::OriginalName("DOWNLOAD_AND_RUN_EVERY_START")] DownloadAndRunEveryStart = 2, + } + + } + #endregion + + } + + /// + /// Contains runtime daemon metrics, such as OS and kernels and sessions stats. + /// + public sealed partial class RuntimeMetrics : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RuntimeMetrics()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 RuntimeMetrics() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeMetrics(RuntimeMetrics other) : this() { + systemMetrics_ = other.systemMetrics_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeMetrics Clone() { + return new RuntimeMetrics(this); + } + + /// Field number for the "system_metrics" field. + public const int SystemMetricsFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_systemMetrics_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 10); + private readonly pbc::MapField systemMetrics_ = new pbc::MapField(); + /// + /// Output only. The system metrics. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField SystemMetrics { + get { return systemMetrics_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RuntimeMetrics); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RuntimeMetrics other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!SystemMetrics.Equals(other.SystemMetrics)) 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 ^= SystemMetrics.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 + systemMetrics_.WriteTo(output, _map_systemMetrics_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) { + systemMetrics_.WriteTo(ref output, _map_systemMetrics_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 += systemMetrics_.CalculateSize(_map_systemMetrics_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RuntimeMetrics other) { + if (other == null) { + return; + } + systemMetrics_.MergeFrom(other.systemMetrics_); + _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: { + systemMetrics_.AddEntriesFrom(input, _map_systemMetrics_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: { + systemMetrics_.AddEntriesFrom(ref input, _map_systemMetrics_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A set of Shielded Instance options. + /// See [Images using supported Shielded VM + /// features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). + /// Not all combinations are valid. + /// + public sealed partial class RuntimeShieldedInstanceConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RuntimeShieldedInstanceConfig()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 RuntimeShieldedInstanceConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeShieldedInstanceConfig(RuntimeShieldedInstanceConfig other) : this() { + enableSecureBoot_ = other.enableSecureBoot_; + enableVtpm_ = other.enableVtpm_; + enableIntegrityMonitoring_ = other.enableIntegrityMonitoring_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeShieldedInstanceConfig Clone() { + return new RuntimeShieldedInstanceConfig(this); + } + + /// Field number for the "enable_secure_boot" field. + public const int EnableSecureBootFieldNumber = 1; + private bool enableSecureBoot_; + /// + /// Defines whether the instance has Secure Boot enabled. + /// + /// Secure Boot helps ensure that the system only runs authentic software by + /// verifying the digital signature of all boot components, and halting the + /// boot process if signature verification fails. Disabled by default. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EnableSecureBoot { + get { return enableSecureBoot_; } + set { + enableSecureBoot_ = value; + } + } + + /// Field number for the "enable_vtpm" field. + public const int EnableVtpmFieldNumber = 2; + private bool enableVtpm_; + /// + /// Defines whether the instance has the vTPM enabled. Enabled by default. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EnableVtpm { + get { return enableVtpm_; } + set { + enableVtpm_ = value; + } + } + + /// Field number for the "enable_integrity_monitoring" field. + public const int EnableIntegrityMonitoringFieldNumber = 3; + private bool enableIntegrityMonitoring_; + /// + /// Defines whether the instance has integrity monitoring enabled. + /// + /// Enables monitoring and attestation of the boot integrity of the instance. + /// The attestation is performed against the integrity policy baseline. This + /// baseline is initially derived from the implicitly trusted boot image when + /// the instance is created. Enabled by default. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EnableIntegrityMonitoring { + get { return enableIntegrityMonitoring_; } + set { + enableIntegrityMonitoring_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RuntimeShieldedInstanceConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RuntimeShieldedInstanceConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EnableSecureBoot != other.EnableSecureBoot) return false; + if (EnableVtpm != other.EnableVtpm) return false; + if (EnableIntegrityMonitoring != other.EnableIntegrityMonitoring) 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 (EnableSecureBoot != false) hash ^= EnableSecureBoot.GetHashCode(); + if (EnableVtpm != false) hash ^= EnableVtpm.GetHashCode(); + if (EnableIntegrityMonitoring != false) hash ^= EnableIntegrityMonitoring.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 (EnableSecureBoot != false) { + output.WriteRawTag(8); + output.WriteBool(EnableSecureBoot); + } + if (EnableVtpm != false) { + output.WriteRawTag(16); + output.WriteBool(EnableVtpm); + } + if (EnableIntegrityMonitoring != false) { + output.WriteRawTag(24); + output.WriteBool(EnableIntegrityMonitoring); + } + 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 (EnableSecureBoot != false) { + output.WriteRawTag(8); + output.WriteBool(EnableSecureBoot); + } + if (EnableVtpm != false) { + output.WriteRawTag(16); + output.WriteBool(EnableVtpm); + } + if (EnableIntegrityMonitoring != false) { + output.WriteRawTag(24); + output.WriteBool(EnableIntegrityMonitoring); + } + 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 (EnableSecureBoot != false) { + size += 1 + 1; + } + if (EnableVtpm != false) { + size += 1 + 1; + } + if (EnableIntegrityMonitoring != 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(RuntimeShieldedInstanceConfig other) { + if (other == null) { + return; + } + if (other.EnableSecureBoot != false) { + EnableSecureBoot = other.EnableSecureBoot; + } + if (other.EnableVtpm != false) { + EnableVtpm = other.EnableVtpm; + } + if (other.EnableIntegrityMonitoring != false) { + EnableIntegrityMonitoring = other.EnableIntegrityMonitoring; + } + _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: { + EnableSecureBoot = input.ReadBool(); + break; + } + case 16: { + EnableVtpm = input.ReadBool(); + break; + } + case 24: { + EnableIntegrityMonitoring = 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: { + EnableSecureBoot = input.ReadBool(); + break; + } + case 16: { + EnableVtpm = input.ReadBool(); + break; + } + case 24: { + EnableIntegrityMonitoring = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Runtime using Virtual Machine for computing. + /// + public sealed partial class VirtualMachine : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VirtualMachine()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 VirtualMachine() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VirtualMachine(VirtualMachine other) : this() { + instanceName_ = other.instanceName_; + instanceId_ = other.instanceId_; + virtualMachineConfig_ = other.virtualMachineConfig_ != null ? other.virtualMachineConfig_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VirtualMachine Clone() { + return new VirtualMachine(this); + } + + /// Field number for the "instance_name" field. + public const int InstanceNameFieldNumber = 1; + private string instanceName_ = ""; + /// + /// Output only. The user-friendly name of the Managed Compute Engine instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InstanceName { + get { return instanceName_; } + set { + instanceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "instance_id" field. + public const int InstanceIdFieldNumber = 2; + private string instanceId_ = ""; + /// + /// Output only. The unique identifier of the Managed Compute Engine instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InstanceId { + get { return instanceId_; } + set { + instanceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "virtual_machine_config" field. + public const int VirtualMachineConfigFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig virtualMachineConfig_; + /// + /// Virtual Machine configuration settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig VirtualMachineConfig { + get { return virtualMachineConfig_; } + set { + virtualMachineConfig_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VirtualMachine); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VirtualMachine other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (InstanceName != other.InstanceName) return false; + if (InstanceId != other.InstanceId) return false; + if (!object.Equals(VirtualMachineConfig, other.VirtualMachineConfig)) 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 (InstanceName.Length != 0) hash ^= InstanceName.GetHashCode(); + if (InstanceId.Length != 0) hash ^= InstanceId.GetHashCode(); + if (virtualMachineConfig_ != null) hash ^= VirtualMachineConfig.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 (InstanceName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(InstanceName); + } + if (InstanceId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(InstanceId); + } + if (virtualMachineConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(VirtualMachineConfig); + } + 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 (InstanceName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(InstanceName); + } + if (InstanceId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(InstanceId); + } + if (virtualMachineConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(VirtualMachineConfig); + } + 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 (InstanceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InstanceName); + } + if (InstanceId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InstanceId); + } + if (virtualMachineConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VirtualMachineConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VirtualMachine other) { + if (other == null) { + return; + } + if (other.InstanceName.Length != 0) { + InstanceName = other.InstanceName; + } + if (other.InstanceId.Length != 0) { + InstanceId = other.InstanceId; + } + if (other.virtualMachineConfig_ != null) { + if (virtualMachineConfig_ == null) { + VirtualMachineConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig(); + } + VirtualMachineConfig.MergeFrom(other.VirtualMachineConfig); + } + _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: { + InstanceName = input.ReadString(); + break; + } + case 18: { + InstanceId = input.ReadString(); + break; + } + case 26: { + if (virtualMachineConfig_ == null) { + VirtualMachineConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig(); + } + input.ReadMessage(VirtualMachineConfig); + 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: { + InstanceName = input.ReadString(); + break; + } + case 18: { + InstanceId = input.ReadString(); + break; + } + case 26: { + if (virtualMachineConfig_ == null) { + VirtualMachineConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig(); + } + input.ReadMessage(VirtualMachineConfig); + break; + } + } + } + } + #endif + + } + + /// + /// The config settings for virtual machine. + /// + public sealed partial class VirtualMachineConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VirtualMachineConfig()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.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 VirtualMachineConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VirtualMachineConfig(VirtualMachineConfig other) : this() { + zone_ = other.zone_; + machineType_ = other.machineType_; + containerImages_ = other.containerImages_.Clone(); + dataDisk_ = other.dataDisk_ != null ? other.dataDisk_.Clone() : null; + encryptionConfig_ = other.encryptionConfig_ != null ? other.encryptionConfig_.Clone() : null; + shieldedInstanceConfig_ = other.shieldedInstanceConfig_ != null ? other.shieldedInstanceConfig_.Clone() : null; + acceleratorConfig_ = other.acceleratorConfig_ != null ? other.acceleratorConfig_.Clone() : null; + network_ = other.network_; + subnet_ = other.subnet_; + internalIpOnly_ = other.internalIpOnly_; + tags_ = other.tags_.Clone(); + guestAttributes_ = other.guestAttributes_.Clone(); + metadata_ = other.metadata_.Clone(); + labels_ = other.labels_.Clone(); + nicType_ = other.nicType_; + reservedIpRange_ = other.reservedIpRange_; + bootImage_ = other.bootImage_ != null ? other.bootImage_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VirtualMachineConfig Clone() { + return new VirtualMachineConfig(this); + } + + /// Field number for the "zone" field. + public const int ZoneFieldNumber = 1; + private string zone_ = ""; + /// + /// Output only. The zone where the virtual machine is located. + /// If using regional request, the notebooks service will pick a location + /// in the corresponding runtime region. + /// On a get request, zone will always be present. Example: + /// * `us-central1-b` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Zone { + get { return zone_; } + set { + zone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "machine_type" field. + public const int MachineTypeFieldNumber = 2; + private string machineType_ = ""; + /// + /// Required. The Compute Engine machine type used for runtimes. + /// Short name is valid. Examples: + /// * `n1-standard-2` + /// * `e2-standard-8` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MachineType { + get { return machineType_; } + set { + machineType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "container_images" field. + public const int ContainerImagesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_containerImages_codec + = pb::FieldCodec.ForMessage(26, global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage.Parser); + private readonly pbc::RepeatedField containerImages_ = new pbc::RepeatedField(); + /// + /// Optional. Use a list of container images to use as Kernels in the notebook + /// instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ContainerImages { + get { return containerImages_; } + } + + /// Field number for the "data_disk" field. + public const int DataDiskFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDisk dataDisk_; + /// + /// Required. Data disk option configuration settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDisk DataDisk { + get { return dataDisk_; } + set { + dataDisk_ = value; + } + } + + /// Field number for the "encryption_config" field. + public const int EncryptionConfigFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.EncryptionConfig encryptionConfig_; + /// + /// Optional. Encryption settings for virtual machine data disk. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.EncryptionConfig EncryptionConfig { + get { return encryptionConfig_; } + set { + encryptionConfig_ = value; + } + } + + /// Field number for the "shielded_instance_config" field. + public const int ShieldedInstanceConfigFieldNumber = 6; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeShieldedInstanceConfig shieldedInstanceConfig_; + /// + /// Optional. Shielded VM Instance configuration settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeShieldedInstanceConfig ShieldedInstanceConfig { + get { return shieldedInstanceConfig_; } + set { + shieldedInstanceConfig_ = value; + } + } + + /// Field number for the "accelerator_config" field. + public const int AcceleratorConfigFieldNumber = 7; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig acceleratorConfig_; + /// + /// Optional. The Compute Engine accelerator configuration for this runtime. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig AcceleratorConfig { + get { return acceleratorConfig_; } + set { + acceleratorConfig_ = value; + } + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 8; + private string network_ = ""; + /// + /// Optional. The Compute Engine network to be used for machine + /// communications. Cannot be specified with subnetwork. If neither + /// `network` nor `subnet` is specified, the "default" network of + /// the project is used, if it exists. + /// + /// A full URL or partial URI. Examples: + /// + /// * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default` + /// * `projects/[project_id]/global/networks/default` + /// + /// Runtimes are managed resources inside Google Infrastructure. + /// Runtimes support the following network configurations: + /// + /// * Google Managed Network (Network & subnet are empty) + /// * Consumer Project VPC (network & subnet are required). Requires + /// configuring Private Service Access. + /// * Shared VPC (network & subnet are required). Requires configuring Private + /// Service Access. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Network { + get { return network_; } + set { + network_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "subnet" field. + public const int SubnetFieldNumber = 9; + private string subnet_ = ""; + /// + /// Optional. The Compute Engine subnetwork to be used for machine + /// communications. Cannot be specified with network. + /// + /// A full URL or partial URI are valid. Examples: + /// + /// * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0` + /// * `projects/[project_id]/regions/us-east1/subnetworks/sub0` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Subnet { + get { return subnet_; } + set { + subnet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "internal_ip_only" field. + public const int InternalIpOnlyFieldNumber = 10; + private bool internalIpOnly_; + /// + /// Optional. If true, runtime will only have internal IP + /// addresses. By default, runtimes are not restricted to internal IP + /// addresses, and will have ephemeral external IP addresses assigned to each + /// vm. This `internal_ip_only` restriction can only be enabled for + /// subnetwork enabled networks, and all dependencies must be + /// configured to be accessible without external IP addresses. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InternalIpOnly { + get { return internalIpOnly_; } + set { + internalIpOnly_ = value; + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_tags_codec + = pb::FieldCodec.ForString(106); + private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); + /// + /// Optional. The Compute Engine tags to add to runtime (see [Tagging + /// instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tags { + get { return tags_; } + } + + /// Field number for the "guest_attributes" field. + public const int GuestAttributesFieldNumber = 14; + private static readonly pbc::MapField.Codec _map_guestAttributes_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 114); + private readonly pbc::MapField guestAttributes_ = new pbc::MapField(); + /// + /// Output only. The Compute Engine guest attributes. (see + /// [Project and instance + /// guest + /// attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField GuestAttributes { + get { return guestAttributes_; } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 15; + private static readonly pbc::MapField.Codec _map_metadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 122); + private readonly pbc::MapField metadata_ = new pbc::MapField(); + /// + /// Optional. The Compute Engine metadata entries to add to virtual machine. + /// (see [Project and instance + /// metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Metadata { + get { return metadata_; } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 16; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 130); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Optional. The labels to associate with this runtime. + /// Label **keys** must contain 1 to 63 characters, and must conform to + /// [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). + /// Label **values** may be empty, but, if present, must contain 1 to 63 + /// characters, and must conform to [RFC + /// 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + /// associated with a cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "nic_type" field. + public const int NicTypeFieldNumber = 17; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.NicType nicType_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.NicType.UnspecifiedNicType; + /// + /// Optional. The type of vNIC to be used on this interface. This may be gVNIC + /// or VirtioNet. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.NicType NicType { + get { return nicType_; } + set { + nicType_ = value; + } + } + + /// Field number for the "reserved_ip_range" field. + public const int ReservedIpRangeFieldNumber = 18; + private string reservedIpRange_ = ""; + /// + /// Optional. Reserved IP Range name is used for VPC Peering. + /// The subnetwork allocation will use the range *name* if it's assigned. + /// + /// Example: managed-notebooks-range-c + /// + /// PEERING_RANGE_NAME_3=managed-notebooks-range-c + /// gcloud compute addresses create $PEERING_RANGE_NAME_3 \ + /// --global \ + /// --prefix-length=24 \ + /// --description="Google Cloud Managed Notebooks Range 24 c" \ + /// --network=$NETWORK \ + /// --addresses=192.168.0.0 \ + /// --purpose=VPC_PEERING + /// + /// Field value will be: `managed-notebooks-range-c` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReservedIpRange { + get { return reservedIpRange_; } + set { + reservedIpRange_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "boot_image" field. + public const int BootImageFieldNumber = 19; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.BootImage bootImage_; + /// + /// Optional. Boot image metadata used for runtime upgradeability. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.BootImage BootImage { + get { return bootImage_; } + set { + bootImage_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VirtualMachineConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VirtualMachineConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Zone != other.Zone) return false; + if (MachineType != other.MachineType) return false; + if(!containerImages_.Equals(other.containerImages_)) return false; + if (!object.Equals(DataDisk, other.DataDisk)) return false; + if (!object.Equals(EncryptionConfig, other.EncryptionConfig)) return false; + if (!object.Equals(ShieldedInstanceConfig, other.ShieldedInstanceConfig)) return false; + if (!object.Equals(AcceleratorConfig, other.AcceleratorConfig)) return false; + if (Network != other.Network) return false; + if (Subnet != other.Subnet) return false; + if (InternalIpOnly != other.InternalIpOnly) return false; + if(!tags_.Equals(other.tags_)) return false; + if (!GuestAttributes.Equals(other.GuestAttributes)) return false; + if (!Metadata.Equals(other.Metadata)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (NicType != other.NicType) return false; + if (ReservedIpRange != other.ReservedIpRange) return false; + if (!object.Equals(BootImage, other.BootImage)) 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 (Zone.Length != 0) hash ^= Zone.GetHashCode(); + if (MachineType.Length != 0) hash ^= MachineType.GetHashCode(); + hash ^= containerImages_.GetHashCode(); + if (dataDisk_ != null) hash ^= DataDisk.GetHashCode(); + if (encryptionConfig_ != null) hash ^= EncryptionConfig.GetHashCode(); + if (shieldedInstanceConfig_ != null) hash ^= ShieldedInstanceConfig.GetHashCode(); + if (acceleratorConfig_ != null) hash ^= AcceleratorConfig.GetHashCode(); + if (Network.Length != 0) hash ^= Network.GetHashCode(); + if (Subnet.Length != 0) hash ^= Subnet.GetHashCode(); + if (InternalIpOnly != false) hash ^= InternalIpOnly.GetHashCode(); + hash ^= tags_.GetHashCode(); + hash ^= GuestAttributes.GetHashCode(); + hash ^= Metadata.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (NicType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.NicType.UnspecifiedNicType) hash ^= NicType.GetHashCode(); + if (ReservedIpRange.Length != 0) hash ^= ReservedIpRange.GetHashCode(); + if (bootImage_ != null) hash ^= BootImage.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 (Zone.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Zone); + } + if (MachineType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MachineType); + } + containerImages_.WriteTo(output, _repeated_containerImages_codec); + if (dataDisk_ != null) { + output.WriteRawTag(34); + output.WriteMessage(DataDisk); + } + if (encryptionConfig_ != null) { + output.WriteRawTag(42); + output.WriteMessage(EncryptionConfig); + } + if (shieldedInstanceConfig_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ShieldedInstanceConfig); + } + if (acceleratorConfig_ != null) { + output.WriteRawTag(58); + output.WriteMessage(AcceleratorConfig); + } + if (Network.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Network); + } + if (Subnet.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Subnet); + } + if (InternalIpOnly != false) { + output.WriteRawTag(80); + output.WriteBool(InternalIpOnly); + } + tags_.WriteTo(output, _repeated_tags_codec); + guestAttributes_.WriteTo(output, _map_guestAttributes_codec); + metadata_.WriteTo(output, _map_metadata_codec); + labels_.WriteTo(output, _map_labels_codec); + if (NicType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.NicType.UnspecifiedNicType) { + output.WriteRawTag(136, 1); + output.WriteEnum((int) NicType); + } + if (ReservedIpRange.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(ReservedIpRange); + } + if (bootImage_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(BootImage); + } + 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 (Zone.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Zone); + } + if (MachineType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MachineType); + } + containerImages_.WriteTo(ref output, _repeated_containerImages_codec); + if (dataDisk_ != null) { + output.WriteRawTag(34); + output.WriteMessage(DataDisk); + } + if (encryptionConfig_ != null) { + output.WriteRawTag(42); + output.WriteMessage(EncryptionConfig); + } + if (shieldedInstanceConfig_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ShieldedInstanceConfig); + } + if (acceleratorConfig_ != null) { + output.WriteRawTag(58); + output.WriteMessage(AcceleratorConfig); + } + if (Network.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Network); + } + if (Subnet.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Subnet); + } + if (InternalIpOnly != false) { + output.WriteRawTag(80); + output.WriteBool(InternalIpOnly); + } + tags_.WriteTo(ref output, _repeated_tags_codec); + guestAttributes_.WriteTo(ref output, _map_guestAttributes_codec); + metadata_.WriteTo(ref output, _map_metadata_codec); + labels_.WriteTo(ref output, _map_labels_codec); + if (NicType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.NicType.UnspecifiedNicType) { + output.WriteRawTag(136, 1); + output.WriteEnum((int) NicType); + } + if (ReservedIpRange.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(ReservedIpRange); + } + if (bootImage_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(BootImage); + } + 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 (Zone.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Zone); + } + if (MachineType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MachineType); + } + size += containerImages_.CalculateSize(_repeated_containerImages_codec); + if (dataDisk_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataDisk); + } + if (encryptionConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EncryptionConfig); + } + if (shieldedInstanceConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ShieldedInstanceConfig); + } + if (acceleratorConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AcceleratorConfig); + } + if (Network.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Network); + } + if (Subnet.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Subnet); + } + if (InternalIpOnly != false) { + size += 1 + 1; + } + size += tags_.CalculateSize(_repeated_tags_codec); + size += guestAttributes_.CalculateSize(_map_guestAttributes_codec); + size += metadata_.CalculateSize(_map_metadata_codec); + size += labels_.CalculateSize(_map_labels_codec); + if (NicType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.NicType.UnspecifiedNicType) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) NicType); + } + if (ReservedIpRange.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ReservedIpRange); + } + if (bootImage_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(BootImage); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VirtualMachineConfig other) { + if (other == null) { + return; + } + if (other.Zone.Length != 0) { + Zone = other.Zone; + } + if (other.MachineType.Length != 0) { + MachineType = other.MachineType; + } + containerImages_.Add(other.containerImages_); + if (other.dataDisk_ != null) { + if (dataDisk_ == null) { + DataDisk = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDisk(); + } + DataDisk.MergeFrom(other.DataDisk); + } + if (other.encryptionConfig_ != null) { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.EncryptionConfig(); + } + EncryptionConfig.MergeFrom(other.EncryptionConfig); + } + if (other.shieldedInstanceConfig_ != null) { + if (shieldedInstanceConfig_ == null) { + ShieldedInstanceConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeShieldedInstanceConfig(); + } + ShieldedInstanceConfig.MergeFrom(other.ShieldedInstanceConfig); + } + if (other.acceleratorConfig_ != null) { + if (acceleratorConfig_ == null) { + AcceleratorConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig(); + } + AcceleratorConfig.MergeFrom(other.AcceleratorConfig); + } + if (other.Network.Length != 0) { + Network = other.Network; + } + if (other.Subnet.Length != 0) { + Subnet = other.Subnet; + } + if (other.InternalIpOnly != false) { + InternalIpOnly = other.InternalIpOnly; + } + tags_.Add(other.tags_); + guestAttributes_.MergeFrom(other.guestAttributes_); + metadata_.MergeFrom(other.metadata_); + labels_.MergeFrom(other.labels_); + if (other.NicType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.NicType.UnspecifiedNicType) { + NicType = other.NicType; + } + if (other.ReservedIpRange.Length != 0) { + ReservedIpRange = other.ReservedIpRange; + } + if (other.bootImage_ != null) { + if (bootImage_ == null) { + BootImage = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.BootImage(); + } + BootImage.MergeFrom(other.BootImage); + } + _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: { + Zone = input.ReadString(); + break; + } + case 18: { + MachineType = input.ReadString(); + break; + } + case 26: { + containerImages_.AddEntriesFrom(input, _repeated_containerImages_codec); + break; + } + case 34: { + if (dataDisk_ == null) { + DataDisk = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDisk(); + } + input.ReadMessage(DataDisk); + break; + } + case 42: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 50: { + if (shieldedInstanceConfig_ == null) { + ShieldedInstanceConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeShieldedInstanceConfig(); + } + input.ReadMessage(ShieldedInstanceConfig); + break; + } + case 58: { + if (acceleratorConfig_ == null) { + AcceleratorConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig(); + } + input.ReadMessage(AcceleratorConfig); + break; + } + case 66: { + Network = input.ReadString(); + break; + } + case 74: { + Subnet = input.ReadString(); + break; + } + case 80: { + InternalIpOnly = input.ReadBool(); + break; + } + case 106: { + tags_.AddEntriesFrom(input, _repeated_tags_codec); + break; + } + case 114: { + guestAttributes_.AddEntriesFrom(input, _map_guestAttributes_codec); + break; + } + case 122: { + metadata_.AddEntriesFrom(input, _map_metadata_codec); + break; + } + case 130: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 136: { + NicType = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.NicType) input.ReadEnum(); + break; + } + case 146: { + ReservedIpRange = input.ReadString(); + break; + } + case 154: { + if (bootImage_ == null) { + BootImage = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.BootImage(); + } + input.ReadMessage(BootImage); + 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: { + Zone = input.ReadString(); + break; + } + case 18: { + MachineType = input.ReadString(); + break; + } + case 26: { + containerImages_.AddEntriesFrom(ref input, _repeated_containerImages_codec); + break; + } + case 34: { + if (dataDisk_ == null) { + DataDisk = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.LocalDisk(); + } + input.ReadMessage(DataDisk); + break; + } + case 42: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 50: { + if (shieldedInstanceConfig_ == null) { + ShieldedInstanceConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeShieldedInstanceConfig(); + } + input.ReadMessage(ShieldedInstanceConfig); + break; + } + case 58: { + if (acceleratorConfig_ == null) { + AcceleratorConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.RuntimeAcceleratorConfig(); + } + input.ReadMessage(AcceleratorConfig); + break; + } + case 66: { + Network = input.ReadString(); + break; + } + case 74: { + Subnet = input.ReadString(); + break; + } + case 80: { + InternalIpOnly = input.ReadBool(); + break; + } + case 106: { + tags_.AddEntriesFrom(ref input, _repeated_tags_codec); + break; + } + case 114: { + guestAttributes_.AddEntriesFrom(ref input, _map_guestAttributes_codec); + break; + } + case 122: { + metadata_.AddEntriesFrom(ref input, _map_metadata_codec); + break; + } + case 130: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 136: { + NicType = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.NicType) input.ReadEnum(); + break; + } + case 146: { + ReservedIpRange = input.ReadString(); + break; + } + case 154: { + if (bootImage_ == null) { + BootImage = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.Types.BootImage(); + } + input.ReadMessage(BootImage); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the VirtualMachineConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type of vNIC driver. + /// Default should be UNSPECIFIED_NIC_TYPE. + /// + public enum NicType { + /// + /// No type specified. + /// + [pbr::OriginalName("UNSPECIFIED_NIC_TYPE")] UnspecifiedNicType = 0, + /// + /// VIRTIO + /// + [pbr::OriginalName("VIRTIO_NET")] VirtioNet = 1, + /// + /// GVNIC + /// + [pbr::OriginalName("GVNIC")] Gvnic = 2, + } + + /// + /// Definition of the boot image used by the Runtime. + /// Used to facilitate runtime upgradeability. + /// + public sealed partial class BootImage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BootImage()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.VirtualMachineConfig.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 BootImage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BootImage(BootImage other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BootImage Clone() { + return new BootImage(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BootImage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BootImage 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(BootImage 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 + + } + + } + #endregion + + } + + /// + /// The description a notebook execution workload. + /// + public sealed partial class ExecutionTemplate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExecutionTemplate()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.Descriptor.MessageTypes[14]; } + } + + [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 ExecutionTemplate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExecutionTemplate(ExecutionTemplate other) : this() { + scaleTier_ = other.scaleTier_; + masterType_ = other.masterType_; + acceleratorConfig_ = other.acceleratorConfig_ != null ? other.acceleratorConfig_.Clone() : null; + labels_ = other.labels_.Clone(); + inputNotebookFile_ = other.inputNotebookFile_; + containerImageUri_ = other.containerImageUri_; + outputNotebookFolder_ = other.outputNotebookFolder_; + paramsYamlFile_ = other.paramsYamlFile_; + parameters_ = other.parameters_; + serviceAccount_ = other.serviceAccount_; + jobType_ = other.jobType_; + kernelSpec_ = other.kernelSpec_; + tensorboard_ = other.tensorboard_; + switch (other.JobParametersCase) { + case JobParametersOneofCase.DataprocParameters: + DataprocParameters = other.DataprocParameters.Clone(); + break; + case JobParametersOneofCase.VertexAiParameters: + VertexAiParameters = other.VertexAiParameters.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExecutionTemplate Clone() { + return new ExecutionTemplate(this); + } + + /// Field number for the "scale_tier" field. + public const int ScaleTierFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.ScaleTier scaleTier_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.ScaleTier.Unspecified; + /// + /// Required. Scale tier of the hardware used for notebook execution. + /// DEPRECATED Will be discontinued. As right now only CUSTOM is supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.ScaleTier ScaleTier { + get { return scaleTier_; } + set { + scaleTier_ = value; + } + } + + /// Field number for the "master_type" field. + public const int MasterTypeFieldNumber = 2; + private string masterType_ = ""; + /// + /// Specifies the type of virtual machine to use for your training + /// job's master worker. You must specify this field when `scaleTier` is set to + /// `CUSTOM`. + /// + /// You can use certain Compute Engine machine types directly in this field. + /// The following types are supported: + /// + /// - `n1-standard-4` + /// - `n1-standard-8` + /// - `n1-standard-16` + /// - `n1-standard-32` + /// - `n1-standard-64` + /// - `n1-standard-96` + /// - `n1-highmem-2` + /// - `n1-highmem-4` + /// - `n1-highmem-8` + /// - `n1-highmem-16` + /// - `n1-highmem-32` + /// - `n1-highmem-64` + /// - `n1-highmem-96` + /// - `n1-highcpu-16` + /// - `n1-highcpu-32` + /// - `n1-highcpu-64` + /// - `n1-highcpu-96` + /// + /// Alternatively, you can use the following legacy machine types: + /// + /// - `standard` + /// - `large_model` + /// - `complex_model_s` + /// - `complex_model_m` + /// - `complex_model_l` + /// - `standard_gpu` + /// - `complex_model_m_gpu` + /// - `complex_model_l_gpu` + /// - `standard_p100` + /// - `complex_model_m_p100` + /// - `standard_v100` + /// - `large_model_v100` + /// - `complex_model_m_v100` + /// - `complex_model_l_v100` + /// + /// Finally, if you want to use a TPU for training, specify `cloud_tpu` in this + /// field. Learn more about the [special configuration options for training + /// with + /// TPU](https://cloud.google.com/ai-platform/training/docs/using-tpus#configuring_a_custom_tpu_machine). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MasterType { + get { return masterType_; } + set { + masterType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "accelerator_config" field. + public const int AcceleratorConfigFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorConfig acceleratorConfig_; + /// + /// Configuration (count and accelerator type) for hardware running notebook + /// execution. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorConfig AcceleratorConfig { + get { return acceleratorConfig_; } + set { + acceleratorConfig_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Labels for execution. + /// If execution is scheduled, a field included will be 'nbs-scheduled'. + /// Otherwise, it is an immediate execution, and an included field will be + /// 'nbs-immediate'. Use fields to efficiently index between various types of + /// executions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "input_notebook_file" field. + public const int InputNotebookFileFieldNumber = 5; + private string inputNotebookFile_ = ""; + /// + /// Path to the notebook file to execute. + /// Must be in a Google Cloud Storage bucket. + /// Format: `gs://{bucket_name}/{folder}/{notebook_file_name}` + /// Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InputNotebookFile { + get { return inputNotebookFile_; } + set { + inputNotebookFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "container_image_uri" field. + public const int ContainerImageUriFieldNumber = 6; + private string containerImageUri_ = ""; + /// + /// Container Image URI to a DLVM + /// Example: 'gcr.io/deeplearning-platform-release/base-cu100' + /// More examples can be found at: + /// https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ContainerImageUri { + get { return containerImageUri_; } + set { + containerImageUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "output_notebook_folder" field. + public const int OutputNotebookFolderFieldNumber = 7; + private string outputNotebookFolder_ = ""; + /// + /// Path to the notebook folder to write to. + /// Must be in a Google Cloud Storage bucket path. + /// Format: `gs://{bucket_name}/{folder}` + /// Ex: `gs://notebook_user/scheduled_notebooks` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OutputNotebookFolder { + get { return outputNotebookFolder_; } + set { + outputNotebookFolder_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "params_yaml_file" field. + public const int ParamsYamlFileFieldNumber = 8; + private string paramsYamlFile_ = ""; + /// + /// Parameters to be overridden in the notebook during execution. + /// Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on + /// how to specifying parameters in the input notebook and pass them here + /// in an YAML file. + /// Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParamsYamlFile { + get { return paramsYamlFile_; } + set { + paramsYamlFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 9; + private string parameters_ = ""; + /// + /// Parameters used within the 'input_notebook_file' notebook. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parameters { + get { return parameters_; } + set { + parameters_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_account" field. + public const int ServiceAccountFieldNumber = 10; + private string serviceAccount_ = ""; + /// + /// The email address of a service account to use when running the execution. + /// You must have the `iam.serviceAccounts.actAs` permission for the specified + /// service account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccount { + get { return serviceAccount_; } + set { + serviceAccount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "job_type" field. + public const int JobTypeFieldNumber = 11; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.JobType jobType_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.JobType.Unspecified; + /// + /// The type of Job to be used on this execution. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.JobType JobType { + get { return jobType_; } + set { + jobType_ = value; + } + } + + /// Field number for the "dataproc_parameters" field. + public const int DataprocParametersFieldNumber = 12; + /// + /// Parameters used in Dataproc JobType executions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.DataprocParameters DataprocParameters { + get { return jobParametersCase_ == JobParametersOneofCase.DataprocParameters ? (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.DataprocParameters) jobParameters_ : null; } + set { + jobParameters_ = value; + jobParametersCase_ = value == null ? JobParametersOneofCase.None : JobParametersOneofCase.DataprocParameters; + } + } + + /// Field number for the "vertex_ai_parameters" field. + public const int VertexAiParametersFieldNumber = 13; + /// + /// Parameters used in Vertex AI JobType executions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.VertexAIParameters VertexAiParameters { + get { return jobParametersCase_ == JobParametersOneofCase.VertexAiParameters ? (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.VertexAIParameters) jobParameters_ : null; } + set { + jobParameters_ = value; + jobParametersCase_ = value == null ? JobParametersOneofCase.None : JobParametersOneofCase.VertexAiParameters; + } + } + + /// Field number for the "kernel_spec" field. + public const int KernelSpecFieldNumber = 14; + private string kernelSpec_ = ""; + /// + /// Name of the kernel spec to use. This must be specified if the + /// kernel spec name on the execution target does not match the name in the + /// input notebook file. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KernelSpec { + get { return kernelSpec_; } + set { + kernelSpec_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tensorboard" field. + public const int TensorboardFieldNumber = 15; + private string tensorboard_ = ""; + /// + /// The name of a Vertex AI [Tensorboard] resource to which this execution + /// will upload Tensorboard logs. + /// Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tensorboard { + get { return tensorboard_; } + set { + tensorboard_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object jobParameters_; + /// Enum of possible cases for the "job_parameters" oneof. + public enum JobParametersOneofCase { + None = 0, + DataprocParameters = 12, + VertexAiParameters = 13, + } + private JobParametersOneofCase jobParametersCase_ = JobParametersOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JobParametersOneofCase JobParametersCase { + get { return jobParametersCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearJobParameters() { + jobParametersCase_ = JobParametersOneofCase.None; + jobParameters_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExecutionTemplate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExecutionTemplate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ScaleTier != other.ScaleTier) return false; + if (MasterType != other.MasterType) return false; + if (!object.Equals(AcceleratorConfig, other.AcceleratorConfig)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (InputNotebookFile != other.InputNotebookFile) return false; + if (ContainerImageUri != other.ContainerImageUri) return false; + if (OutputNotebookFolder != other.OutputNotebookFolder) return false; + if (ParamsYamlFile != other.ParamsYamlFile) return false; + if (Parameters != other.Parameters) return false; + if (ServiceAccount != other.ServiceAccount) return false; + if (JobType != other.JobType) return false; + if (!object.Equals(DataprocParameters, other.DataprocParameters)) return false; + if (!object.Equals(VertexAiParameters, other.VertexAiParameters)) return false; + if (KernelSpec != other.KernelSpec) return false; + if (Tensorboard != other.Tensorboard) return false; + if (JobParametersCase != other.JobParametersCase) 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 (ScaleTier != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.ScaleTier.Unspecified) hash ^= ScaleTier.GetHashCode(); + if (MasterType.Length != 0) hash ^= MasterType.GetHashCode(); + if (acceleratorConfig_ != null) hash ^= AcceleratorConfig.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (InputNotebookFile.Length != 0) hash ^= InputNotebookFile.GetHashCode(); + if (ContainerImageUri.Length != 0) hash ^= ContainerImageUri.GetHashCode(); + if (OutputNotebookFolder.Length != 0) hash ^= OutputNotebookFolder.GetHashCode(); + if (ParamsYamlFile.Length != 0) hash ^= ParamsYamlFile.GetHashCode(); + if (Parameters.Length != 0) hash ^= Parameters.GetHashCode(); + if (ServiceAccount.Length != 0) hash ^= ServiceAccount.GetHashCode(); + if (JobType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.JobType.Unspecified) hash ^= JobType.GetHashCode(); + if (jobParametersCase_ == JobParametersOneofCase.DataprocParameters) hash ^= DataprocParameters.GetHashCode(); + if (jobParametersCase_ == JobParametersOneofCase.VertexAiParameters) hash ^= VertexAiParameters.GetHashCode(); + if (KernelSpec.Length != 0) hash ^= KernelSpec.GetHashCode(); + if (Tensorboard.Length != 0) hash ^= Tensorboard.GetHashCode(); + hash ^= (int) jobParametersCase_; + 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 (ScaleTier != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.ScaleTier.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ScaleTier); + } + if (MasterType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MasterType); + } + if (acceleratorConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AcceleratorConfig); + } + labels_.WriteTo(output, _map_labels_codec); + if (InputNotebookFile.Length != 0) { + output.WriteRawTag(42); + output.WriteString(InputNotebookFile); + } + if (ContainerImageUri.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ContainerImageUri); + } + if (OutputNotebookFolder.Length != 0) { + output.WriteRawTag(58); + output.WriteString(OutputNotebookFolder); + } + if (ParamsYamlFile.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ParamsYamlFile); + } + if (Parameters.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Parameters); + } + if (ServiceAccount.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ServiceAccount); + } + if (JobType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.JobType.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) JobType); + } + if (jobParametersCase_ == JobParametersOneofCase.DataprocParameters) { + output.WriteRawTag(98); + output.WriteMessage(DataprocParameters); + } + if (jobParametersCase_ == JobParametersOneofCase.VertexAiParameters) { + output.WriteRawTag(106); + output.WriteMessage(VertexAiParameters); + } + if (KernelSpec.Length != 0) { + output.WriteRawTag(114); + output.WriteString(KernelSpec); + } + if (Tensorboard.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Tensorboard); + } + 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 (ScaleTier != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.ScaleTier.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ScaleTier); + } + if (MasterType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MasterType); + } + if (acceleratorConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AcceleratorConfig); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (InputNotebookFile.Length != 0) { + output.WriteRawTag(42); + output.WriteString(InputNotebookFile); + } + if (ContainerImageUri.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ContainerImageUri); + } + if (OutputNotebookFolder.Length != 0) { + output.WriteRawTag(58); + output.WriteString(OutputNotebookFolder); + } + if (ParamsYamlFile.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ParamsYamlFile); + } + if (Parameters.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Parameters); + } + if (ServiceAccount.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ServiceAccount); + } + if (JobType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.JobType.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) JobType); + } + if (jobParametersCase_ == JobParametersOneofCase.DataprocParameters) { + output.WriteRawTag(98); + output.WriteMessage(DataprocParameters); + } + if (jobParametersCase_ == JobParametersOneofCase.VertexAiParameters) { + output.WriteRawTag(106); + output.WriteMessage(VertexAiParameters); + } + if (KernelSpec.Length != 0) { + output.WriteRawTag(114); + output.WriteString(KernelSpec); + } + if (Tensorboard.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Tensorboard); + } + 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 (ScaleTier != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.ScaleTier.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ScaleTier); + } + if (MasterType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MasterType); + } + if (acceleratorConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AcceleratorConfig); + } + size += labels_.CalculateSize(_map_labels_codec); + if (InputNotebookFile.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InputNotebookFile); + } + if (ContainerImageUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ContainerImageUri); + } + if (OutputNotebookFolder.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputNotebookFolder); + } + if (ParamsYamlFile.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParamsYamlFile); + } + if (Parameters.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parameters); + } + if (ServiceAccount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccount); + } + if (JobType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.JobType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) JobType); + } + if (jobParametersCase_ == JobParametersOneofCase.DataprocParameters) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataprocParameters); + } + if (jobParametersCase_ == JobParametersOneofCase.VertexAiParameters) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VertexAiParameters); + } + if (KernelSpec.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KernelSpec); + } + if (Tensorboard.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Tensorboard); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExecutionTemplate other) { + if (other == null) { + return; + } + if (other.ScaleTier != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.ScaleTier.Unspecified) { + ScaleTier = other.ScaleTier; + } + if (other.MasterType.Length != 0) { + MasterType = other.MasterType; + } + if (other.acceleratorConfig_ != null) { + if (acceleratorConfig_ == null) { + AcceleratorConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorConfig(); + } + AcceleratorConfig.MergeFrom(other.AcceleratorConfig); + } + labels_.MergeFrom(other.labels_); + if (other.InputNotebookFile.Length != 0) { + InputNotebookFile = other.InputNotebookFile; + } + if (other.ContainerImageUri.Length != 0) { + ContainerImageUri = other.ContainerImageUri; + } + if (other.OutputNotebookFolder.Length != 0) { + OutputNotebookFolder = other.OutputNotebookFolder; + } + if (other.ParamsYamlFile.Length != 0) { + ParamsYamlFile = other.ParamsYamlFile; + } + if (other.Parameters.Length != 0) { + Parameters = other.Parameters; + } + if (other.ServiceAccount.Length != 0) { + ServiceAccount = other.ServiceAccount; + } + if (other.JobType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.JobType.Unspecified) { + JobType = other.JobType; + } + if (other.KernelSpec.Length != 0) { + KernelSpec = other.KernelSpec; + } + if (other.Tensorboard.Length != 0) { + Tensorboard = other.Tensorboard; + } + switch (other.JobParametersCase) { + case JobParametersOneofCase.DataprocParameters: + if (DataprocParameters == null) { + DataprocParameters = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.DataprocParameters(); + } + DataprocParameters.MergeFrom(other.DataprocParameters); + break; + case JobParametersOneofCase.VertexAiParameters: + if (VertexAiParameters == null) { + VertexAiParameters = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.VertexAIParameters(); + } + VertexAiParameters.MergeFrom(other.VertexAiParameters); + break; + } + + _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: { + ScaleTier = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.ScaleTier) input.ReadEnum(); + break; + } + case 18: { + MasterType = input.ReadString(); + break; + } + case 26: { + if (acceleratorConfig_ == null) { + AcceleratorConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorConfig(); + } + input.ReadMessage(AcceleratorConfig); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + InputNotebookFile = input.ReadString(); + break; + } + case 50: { + ContainerImageUri = input.ReadString(); + break; + } + case 58: { + OutputNotebookFolder = input.ReadString(); + break; + } + case 66: { + ParamsYamlFile = input.ReadString(); + break; + } + case 74: { + Parameters = input.ReadString(); + break; + } + case 82: { + ServiceAccount = input.ReadString(); + break; + } + case 88: { + JobType = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.JobType) input.ReadEnum(); + break; + } + case 98: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.DataprocParameters subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.DataprocParameters(); + if (jobParametersCase_ == JobParametersOneofCase.DataprocParameters) { + subBuilder.MergeFrom(DataprocParameters); + } + input.ReadMessage(subBuilder); + DataprocParameters = subBuilder; + break; + } + case 106: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.VertexAIParameters subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.VertexAIParameters(); + if (jobParametersCase_ == JobParametersOneofCase.VertexAiParameters) { + subBuilder.MergeFrom(VertexAiParameters); + } + input.ReadMessage(subBuilder); + VertexAiParameters = subBuilder; + break; + } + case 114: { + KernelSpec = input.ReadString(); + break; + } + case 122: { + Tensorboard = 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 8: { + ScaleTier = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.ScaleTier) input.ReadEnum(); + break; + } + case 18: { + MasterType = input.ReadString(); + break; + } + case 26: { + if (acceleratorConfig_ == null) { + AcceleratorConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorConfig(); + } + input.ReadMessage(AcceleratorConfig); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + InputNotebookFile = input.ReadString(); + break; + } + case 50: { + ContainerImageUri = input.ReadString(); + break; + } + case 58: { + OutputNotebookFolder = input.ReadString(); + break; + } + case 66: { + ParamsYamlFile = input.ReadString(); + break; + } + case 74: { + Parameters = input.ReadString(); + break; + } + case 82: { + ServiceAccount = input.ReadString(); + break; + } + case 88: { + JobType = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.JobType) input.ReadEnum(); + break; + } + case 98: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.DataprocParameters subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.DataprocParameters(); + if (jobParametersCase_ == JobParametersOneofCase.DataprocParameters) { + subBuilder.MergeFrom(DataprocParameters); + } + input.ReadMessage(subBuilder); + DataprocParameters = subBuilder; + break; + } + case 106: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.VertexAIParameters subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.VertexAIParameters(); + if (jobParametersCase_ == JobParametersOneofCase.VertexAiParameters) { + subBuilder.MergeFrom(VertexAiParameters); + } + input.ReadMessage(subBuilder); + VertexAiParameters = subBuilder; + break; + } + case 114: { + KernelSpec = input.ReadString(); + break; + } + case 122: { + Tensorboard = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ExecutionTemplate message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Required. Specifies the machine types, the number of replicas for workers + /// and parameter servers. + /// + public enum ScaleTier { + /// + /// Unspecified Scale Tier. + /// + [pbr::OriginalName("SCALE_TIER_UNSPECIFIED")] Unspecified = 0, + /// + /// A single worker instance. This tier is suitable for learning how to use + /// Cloud ML, and for experimenting with new models using small datasets. + /// + [pbr::OriginalName("BASIC")] Basic = 1, + /// + /// Many workers and a few parameter servers. + /// + [pbr::OriginalName("STANDARD_1")] Standard1 = 2, + /// + /// A large number of workers with many parameter servers. + /// + [pbr::OriginalName("PREMIUM_1")] Premium1 = 3, + /// + /// A single worker instance with a K80 GPU. + /// + [pbr::OriginalName("BASIC_GPU")] BasicGpu = 4, + /// + /// A single worker instance with a Cloud TPU. + /// + [pbr::OriginalName("BASIC_TPU")] BasicTpu = 5, + /// + /// The CUSTOM tier is not a set tier, but rather enables you to use your + /// own cluster specification. When you use this tier, set values to + /// configure your processing cluster according to these guidelines: + /// + /// * You _must_ set `ExecutionTemplate.masterType` to specify the type + /// of machine to use for your master node. This is the only required + /// setting. + /// + [pbr::OriginalName("CUSTOM")] Custom = 6, + } + + /// + /// Hardware accelerator types for AI Platform Training jobs. + /// + public enum SchedulerAcceleratorType { + /// + /// Unspecified accelerator type. Default to no GPU. + /// + [pbr::OriginalName("SCHEDULER_ACCELERATOR_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Nvidia Tesla K80 GPU. + /// + [pbr::OriginalName("NVIDIA_TESLA_K80")] NvidiaTeslaK80 = 1, + /// + /// Nvidia Tesla P100 GPU. + /// + [pbr::OriginalName("NVIDIA_TESLA_P100")] NvidiaTeslaP100 = 2, + /// + /// Nvidia Tesla V100 GPU. + /// + [pbr::OriginalName("NVIDIA_TESLA_V100")] NvidiaTeslaV100 = 3, + /// + /// Nvidia Tesla P4 GPU. + /// + [pbr::OriginalName("NVIDIA_TESLA_P4")] NvidiaTeslaP4 = 4, + /// + /// Nvidia Tesla T4 GPU. + /// + [pbr::OriginalName("NVIDIA_TESLA_T4")] NvidiaTeslaT4 = 5, + /// + /// Nvidia Tesla A100 GPU. + /// + [pbr::OriginalName("NVIDIA_TESLA_A100")] NvidiaTeslaA100 = 10, + /// + /// TPU v2. + /// + [pbr::OriginalName("TPU_V2")] TpuV2 = 6, + /// + /// TPU v3. + /// + [pbr::OriginalName("TPU_V3")] TpuV3 = 7, + } + + /// + /// The backend used for this execution. + /// + public enum JobType { + /// + /// No type specified. + /// + [pbr::OriginalName("JOB_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Custom Job in `aiplatform.googleapis.com`. + /// Default value for an execution. + /// + [pbr::OriginalName("VERTEX_AI")] VertexAi = 1, + /// + /// Run execution on a cluster with Dataproc as a job. + /// https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs + /// + [pbr::OriginalName("DATAPROC")] Dataproc = 2, + } + + /// + /// Definition of a hardware accelerator. Note that not all combinations + /// of `type` and `core_count` are valid. See [GPUs on + /// Compute Engine](https://cloud.google.com/compute/docs/gpus) to find a valid + /// combination. TPUs are not supported. + /// + public sealed partial class SchedulerAcceleratorConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SchedulerAcceleratorConfig()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.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 SchedulerAcceleratorConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SchedulerAcceleratorConfig(SchedulerAcceleratorConfig other) : this() { + type_ = other.type_; + coreCount_ = other.coreCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SchedulerAcceleratorConfig Clone() { + return new SchedulerAcceleratorConfig(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorType type_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorType.Unspecified; + /// + /// Type of this accelerator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "core_count" field. + public const int CoreCountFieldNumber = 2; + private long coreCount_; + /// + /// Count of cores of this accelerator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CoreCount { + get { return coreCount_; } + set { + coreCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SchedulerAcceleratorConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SchedulerAcceleratorConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (CoreCount != other.CoreCount) 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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorType.Unspecified) hash ^= Type.GetHashCode(); + if (CoreCount != 0L) hash ^= CoreCount.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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (CoreCount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(CoreCount); + } + 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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (CoreCount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(CoreCount); + } + 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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (CoreCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CoreCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SchedulerAcceleratorConfig other) { + if (other == null) { + return; + } + if (other.Type != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorType.Unspecified) { + Type = other.Type; + } + if (other.CoreCount != 0L) { + CoreCount = other.CoreCount; + } + _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: { + Type = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorType) input.ReadEnum(); + break; + } + case 16: { + CoreCount = 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: { + Type = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.Types.SchedulerAcceleratorType) input.ReadEnum(); + break; + } + case 16: { + CoreCount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Parameters used in Dataproc JobType executions. + /// + public sealed partial class DataprocParameters : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataprocParameters()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.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 DataprocParameters() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataprocParameters(DataprocParameters other) : this() { + cluster_ = other.cluster_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataprocParameters Clone() { + return new DataprocParameters(this); + } + + /// Field number for the "cluster" field. + public const int ClusterFieldNumber = 1; + private string cluster_ = ""; + /// + /// URI for cluster used to run Dataproc execution. + /// Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Cluster { + get { return cluster_; } + set { + cluster_ = 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 DataprocParameters); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DataprocParameters other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Cluster != other.Cluster) 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 (Cluster.Length != 0) hash ^= Cluster.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 (Cluster.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Cluster); + } + 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 (Cluster.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Cluster); + } + 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 (Cluster.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Cluster); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DataprocParameters other) { + if (other == null) { + return; + } + if (other.Cluster.Length != 0) { + Cluster = other.Cluster; + } + _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: { + Cluster = 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: { + Cluster = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Parameters used in Vertex AI JobType executions. + /// + public sealed partial class VertexAIParameters : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VertexAIParameters()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate.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 VertexAIParameters() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VertexAIParameters(VertexAIParameters other) : this() { + network_ = other.network_; + env_ = other.env_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VertexAIParameters Clone() { + return new VertexAIParameters(this); + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 1; + private string network_ = ""; + /// + /// The full name of the Compute Engine + /// [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + /// to which the Job should be peered. For example, + /// `projects/12345/global/networks/myVPC`. + /// [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert) + /// is of the form `projects/{project}/global/networks/{network}`. + /// Where `{project}` is a project number, as in `12345`, and `{network}` is + /// a network name. + /// + /// Private services access must already be configured for the network. If + /// left unspecified, the job is not peered with any network. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Network { + get { return network_; } + set { + network_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "env" field. + public const int EnvFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_env_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField env_ = new pbc::MapField(); + /// + /// Environment variables. + /// At most 100 environment variables can be specified and unique. + /// Example: `GCP_BUCKET=gs://my-bucket/samples/` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Env { + get { return env_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VertexAIParameters); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VertexAIParameters other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Network != other.Network) return false; + if (!Env.Equals(other.Env)) 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 (Network.Length != 0) hash ^= Network.GetHashCode(); + hash ^= Env.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 (Network.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Network); + } + env_.WriteTo(output, _map_env_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 (Network.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Network); + } + env_.WriteTo(ref output, _map_env_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 (Network.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Network); + } + size += env_.CalculateSize(_map_env_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VertexAIParameters other) { + if (other == null) { + return; + } + if (other.Network.Length != 0) { + Network = other.Network; + } + env_.MergeFrom(other.env_); + _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: { + Network = input.ReadString(); + break; + } + case 18: { + env_.AddEntriesFrom(input, _map_env_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: { + Network = input.ReadString(); + break; + } + case 18: { + env_.AddEntriesFrom(ref input, _map_env_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// The definition of a single executed notebook. + /// + public sealed partial class Execution : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Execution()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.Descriptor.MessageTypes[15]; } + } + + [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 Execution() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Execution(Execution other) : this() { + executionTemplate_ = other.executionTemplate_ != null ? other.executionTemplate_.Clone() : null; + name_ = other.name_; + displayName_ = other.displayName_; + description_ = other.description_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + state_ = other.state_; + outputNotebookFile_ = other.outputNotebookFile_; + jobUri_ = other.jobUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Execution Clone() { + return new Execution(this); + } + + /// Field number for the "execution_template" field. + public const int ExecutionTemplateFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate executionTemplate_; + /// + /// execute metadata including name, hardware spec, region, labels, etc. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate ExecutionTemplate { + get { return executionTemplate_; } + set { + executionTemplate_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Output only. The resource name of the execute. Format: + /// `projects/{project_id}/locations/{location}/executions/{execution_id}` + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 3; + private string displayName_ = ""; + /// + /// Output only. Name used for UI purposes. + /// Name can only contain alphanumeric characters and underscores '_'. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 4; + private string description_ = ""; + /// + /// A brief description of this execution. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Time the Execution was instantiated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Time the Execution was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 7; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Types.State state_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Types.State.Unspecified; + /// + /// Output only. State of the underlying AI Platform job. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "output_notebook_file" field. + public const int OutputNotebookFileFieldNumber = 8; + private string outputNotebookFile_ = ""; + /// + /// Output notebook file generated by this execution + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OutputNotebookFile { + get { return outputNotebookFile_; } + set { + outputNotebookFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "job_uri" field. + public const int JobUriFieldNumber = 9; + private string jobUri_ = ""; + /// + /// Output only. The URI of the external job used to execute the notebook. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string JobUri { + get { return jobUri_; } + set { + jobUri_ = 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 Execution); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Execution other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ExecutionTemplate, other.ExecutionTemplate)) return false; + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (Description != other.Description) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (State != other.State) return false; + if (OutputNotebookFile != other.OutputNotebookFile) return false; + if (JobUri != other.JobUri) 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 (executionTemplate_ != null) hash ^= ExecutionTemplate.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (OutputNotebookFile.Length != 0) hash ^= OutputNotebookFile.GetHashCode(); + if (JobUri.Length != 0) hash ^= JobUri.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 (executionTemplate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ExecutionTemplate); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (createTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Types.State.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) State); + } + if (OutputNotebookFile.Length != 0) { + output.WriteRawTag(66); + output.WriteString(OutputNotebookFile); + } + if (JobUri.Length != 0) { + output.WriteRawTag(74); + output.WriteString(JobUri); + } + 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 (executionTemplate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ExecutionTemplate); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (createTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Types.State.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) State); + } + if (OutputNotebookFile.Length != 0) { + output.WriteRawTag(66); + output.WriteString(OutputNotebookFile); + } + if (JobUri.Length != 0) { + output.WriteRawTag(74); + output.WriteString(JobUri); + } + 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 (executionTemplate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecutionTemplate); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (OutputNotebookFile.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputNotebookFile); + } + if (JobUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JobUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Execution other) { + if (other == null) { + return; + } + if (other.executionTemplate_ != null) { + if (executionTemplate_ == null) { + ExecutionTemplate = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate(); + } + ExecutionTemplate.MergeFrom(other.ExecutionTemplate); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Types.State.Unspecified) { + State = other.State; + } + if (other.OutputNotebookFile.Length != 0) { + OutputNotebookFile = other.OutputNotebookFile; + } + if (other.JobUri.Length != 0) { + JobUri = other.JobUri; + } + _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 (executionTemplate_ == null) { + ExecutionTemplate = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate(); + } + input.ReadMessage(ExecutionTemplate); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 56: { + State = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Types.State) input.ReadEnum(); + break; + } + case 66: { + OutputNotebookFile = input.ReadString(); + break; + } + case 74: { + JobUri = 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: { + if (executionTemplate_ == null) { + ExecutionTemplate = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate(); + } + input.ReadMessage(ExecutionTemplate); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 56: { + State = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Types.State) input.ReadEnum(); + break; + } + case 66: { + OutputNotebookFile = input.ReadString(); + break; + } + case 74: { + JobUri = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Execution message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Enum description of the state of the underlying AIP job. + /// + public enum State { + /// + /// The job state is unspecified. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The job has been just created and processing has not yet begun. + /// + [pbr::OriginalName("QUEUED")] Queued = 1, + /// + /// The service is preparing to execution the job. + /// + [pbr::OriginalName("PREPARING")] Preparing = 2, + /// + /// The job is in progress. + /// + [pbr::OriginalName("RUNNING")] Running = 3, + /// + /// The job completed successfully. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 4, + /// + /// The job failed. + /// `error_message` should contain the details of the failure. + /// + [pbr::OriginalName("FAILED")] Failed = 5, + /// + /// The job is being cancelled. + /// `error_message` should describe the reason for the cancellation. + /// + [pbr::OriginalName("CANCELLING")] Cancelling = 6, + /// + /// The job has been cancelled. + /// `error_message` should describe the reason for the cancellation. + /// + [pbr::OriginalName("CANCELLED")] Cancelled = 7, + /// + /// The job has become expired (relevant to Vertex AI jobs) + /// https://cloud.google.com/vertex-ai/docs/reference/rest/v1/JobState + /// + [pbr::OriginalName("EXPIRED")] Expired = 9, + /// + /// The Execution is being created. + /// + [pbr::OriginalName("INITIALIZING")] Initializing = 10, + } + + } + #endregion + + } + + /// + /// Reservation Affinity for consuming Zonal reservation. + /// + public sealed partial class ReservationAffinity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReservationAffinity()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.Descriptor.MessageTypes[16]; } + } + + [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 ReservationAffinity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReservationAffinity(ReservationAffinity other) : this() { + consumeReservationType_ = other.consumeReservationType_; + key_ = other.key_; + values_ = other.values_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReservationAffinity Clone() { + return new ReservationAffinity(this); + } + + /// Field number for the "consume_reservation_type" field. + public const int ConsumeReservationTypeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Types.Type consumeReservationType_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Types.Type.Unspecified; + /// + /// Optional. Type of reservation to consume + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Types.Type ConsumeReservationType { + get { return consumeReservationType_; } + set { + consumeReservationType_ = value; + } + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 2; + private string key_ = ""; + /// + /// Optional. Corresponds to the label key of reservation resource. + /// + [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 "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(); + /// + /// Optional. Corresponds to the label values of reservation resource. + /// + [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 ReservationAffinity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReservationAffinity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ConsumeReservationType != other.ConsumeReservationType) return false; + if (Key != other.Key) 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 (ConsumeReservationType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Types.Type.Unspecified) hash ^= ConsumeReservationType.GetHashCode(); + if (Key.Length != 0) hash ^= Key.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 (ConsumeReservationType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Types.Type.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ConsumeReservationType); + } + if (Key.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Key); + } + 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 (ConsumeReservationType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Types.Type.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ConsumeReservationType); + } + if (Key.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Key); + } + 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 (ConsumeReservationType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Types.Type.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ConsumeReservationType); + } + if (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + } + 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(ReservationAffinity other) { + if (other == null) { + return; + } + if (other.ConsumeReservationType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Types.Type.Unspecified) { + ConsumeReservationType = other.ConsumeReservationType; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + 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: { + ConsumeReservationType = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Types.Type) input.ReadEnum(); + break; + } + case 18: { + Key = input.ReadString(); + 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 8: { + ConsumeReservationType = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity.Types.Type) input.ReadEnum(); + break; + } + case 18: { + Key = input.ReadString(); + break; + } + case 26: { + values_.AddEntriesFrom(ref input, _repeated_values_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ReservationAffinity message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Indicates whether to consume capacity from an reservation or not. + /// + public enum Type { + /// + /// Default type. + /// + [pbr::OriginalName("TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Do not consume from any allocated capacity. + /// + [pbr::OriginalName("NO_RESERVATION")] NoReservation = 1, + /// + /// Consume any reservation available. + /// + [pbr::OriginalName("ANY_RESERVATION")] AnyReservation = 2, + /// + /// Must consume from a specific reservation. Must specify key value fields + /// for specifying the reservations. + /// + [pbr::OriginalName("SPECIFIC_RESERVATION")] SpecificReservation = 3, + } + + } + #endregion + + } + + /// + /// The definition of a notebook instance. + /// + public sealed partial class Instance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Instance()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.Descriptor.MessageTypes[17]; } + } + + [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 Instance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Instance(Instance other) : this() { + name_ = other.name_; + postStartupScript_ = other.postStartupScript_; + proxyUri_ = other.proxyUri_; + serviceAccount_ = other.serviceAccount_; + serviceAccountScopes_ = other.serviceAccountScopes_.Clone(); + machineType_ = other.machineType_; + acceleratorConfig_ = other.acceleratorConfig_ != null ? other.acceleratorConfig_.Clone() : null; + state_ = other.state_; + installGpuDriver_ = other.installGpuDriver_; + customGpuDriverPath_ = other.customGpuDriverPath_; + disks_ = other.disks_.Clone(); + shieldedInstanceConfig_ = other.shieldedInstanceConfig_ != null ? other.shieldedInstanceConfig_.Clone() : null; + noPublicIp_ = other.noPublicIp_; + noProxyAccess_ = other.noProxyAccess_; + network_ = other.network_; + subnet_ = other.subnet_; + labels_ = other.labels_.Clone(); + metadata_ = other.metadata_.Clone(); + tags_ = other.tags_.Clone(); + upgradeHistory_ = other.upgradeHistory_.Clone(); + nicType_ = other.nicType_; + reservationAffinity_ = other.reservationAffinity_ != null ? other.reservationAffinity_.Clone() : null; + creator_ = other.creator_; + canIpForward_ = other.canIpForward_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + switch (other.EnvironmentCase) { + case EnvironmentOneofCase.VmImage: + VmImage = other.VmImage.Clone(); + break; + case EnvironmentOneofCase.ContainerImage: + ContainerImage = other.ContainerImage.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Instance Clone() { + return new Instance(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The name of this notebook instance. Format: + /// `projects/{project_id}/locations/{location}/instances/{instance_id}` + /// + [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 "vm_image" field. + public const int VmImageFieldNumber = 2; + /// + /// Use a Compute Engine VM image to start the notebook instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage VmImage { + get { return environmentCase_ == EnvironmentOneofCase.VmImage ? (global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage) environment_ : null; } + set { + environment_ = value; + environmentCase_ = value == null ? EnvironmentOneofCase.None : EnvironmentOneofCase.VmImage; + } + } + + /// Field number for the "container_image" field. + public const int ContainerImageFieldNumber = 3; + /// + /// Use a container image to start the notebook instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage ContainerImage { + get { return environmentCase_ == EnvironmentOneofCase.ContainerImage ? (global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage) environment_ : null; } + set { + environment_ = value; + environmentCase_ = value == null ? EnvironmentOneofCase.None : EnvironmentOneofCase.ContainerImage; + } + } + + /// Field number for the "post_startup_script" field. + public const int PostStartupScriptFieldNumber = 4; + private string postStartupScript_ = ""; + /// + /// Path to a Bash script that automatically runs after a notebook instance + /// fully boots up. The path must be a URL or + /// Cloud Storage path (`gs://path-to-file/file-name`). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PostStartupScript { + get { return postStartupScript_; } + set { + postStartupScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "proxy_uri" field. + public const int ProxyUriFieldNumber = 5; + private string proxyUri_ = ""; + /// + /// Output only. The proxy endpoint that is used to access the Jupyter + /// notebook. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ProxyUri { + get { return proxyUri_; } + set { + proxyUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_account" field. + public const int ServiceAccountFieldNumber = 7; + private string serviceAccount_ = ""; + /// + /// The service account on this instance, giving access to other Google + /// Cloud services. + /// You can use any service account within the same project, but you + /// must have the service account user permission to use the instance. + /// + /// If not specified, the [Compute Engine default service + /// account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) + /// is used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccount { + get { return serviceAccount_; } + set { + serviceAccount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_account_scopes" field. + public const int ServiceAccountScopesFieldNumber = 31; + private static readonly pb::FieldCodec _repeated_serviceAccountScopes_codec + = pb::FieldCodec.ForString(250); + private readonly pbc::RepeatedField serviceAccountScopes_ = new pbc::RepeatedField(); + /// + /// Optional. The URIs of service account scopes to be included in + /// Compute Engine instances. + /// + /// If not specified, the following + /// [scopes](https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam) + /// are defined: + /// - https://www.googleapis.com/auth/cloud-platform + /// - https://www.googleapis.com/auth/userinfo.email + /// If not using default scopes, you need at least: + /// https://www.googleapis.com/auth/compute + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ServiceAccountScopes { + get { return serviceAccountScopes_; } + } + + /// Field number for the "machine_type" field. + public const int MachineTypeFieldNumber = 8; + private string machineType_ = ""; + /// + /// Required. The [Compute Engine machine + /// type](https://cloud.google.com/compute/docs/machine-types) of this + /// instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MachineType { + get { return machineType_; } + set { + machineType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "accelerator_config" field. + public const int AcceleratorConfigFieldNumber = 9; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorConfig acceleratorConfig_; + /// + /// The hardware accelerator used on this instance. If you use + /// accelerators, make sure that your configuration has + /// [enough vCPUs and memory to support the `machine_type` you have + /// selected](https://cloud.google.com/compute/docs/gpus/#gpus-list). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorConfig AcceleratorConfig { + get { return acceleratorConfig_; } + set { + acceleratorConfig_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 10; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.State state_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.State.Unspecified; + /// + /// Output only. The state of this instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "install_gpu_driver" field. + public const int InstallGpuDriverFieldNumber = 11; + private bool installGpuDriver_; + /// + /// Whether the end user authorizes Google Cloud to install GPU driver + /// on this instance. + /// If this field is empty or set to false, the GPU driver won't be installed. + /// Only applicable to instances with GPUs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InstallGpuDriver { + get { return installGpuDriver_; } + set { + installGpuDriver_ = value; + } + } + + /// Field number for the "custom_gpu_driver_path" field. + public const int CustomGpuDriverPathFieldNumber = 12; + private string customGpuDriverPath_ = ""; + /// + /// Specify a custom Cloud Storage path where the GPU driver is stored. + /// If not specified, we'll automatically choose from official GPU drivers. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CustomGpuDriverPath { + get { return customGpuDriverPath_; } + set { + customGpuDriverPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "disks" field. + public const int DisksFieldNumber = 28; + private static readonly pb::FieldCodec _repeated_disks_codec + = pb::FieldCodec.ForMessage(226, global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.Disk.Parser); + private readonly pbc::RepeatedField disks_ = new pbc::RepeatedField(); + /// + /// Output only. Attached disks to notebook instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Disks { + get { return disks_; } + } + + /// Field number for the "shielded_instance_config" field. + public const int ShieldedInstanceConfigFieldNumber = 30; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.ShieldedInstanceConfig shieldedInstanceConfig_; + /// + /// Optional. Shielded VM configuration. + /// [Images using supported Shielded VM + /// features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.ShieldedInstanceConfig ShieldedInstanceConfig { + get { return shieldedInstanceConfig_; } + set { + shieldedInstanceConfig_ = value; + } + } + + /// Field number for the "no_public_ip" field. + public const int NoPublicIpFieldNumber = 17; + private bool noPublicIp_; + /// + /// If true, no external IP will be assigned to this instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool NoPublicIp { + get { return noPublicIp_; } + set { + noPublicIp_ = value; + } + } + + /// Field number for the "no_proxy_access" field. + public const int NoProxyAccessFieldNumber = 18; + private bool noProxyAccess_; + /// + /// If true, the notebook instance will not register with the proxy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool NoProxyAccess { + get { return noProxyAccess_; } + set { + noProxyAccess_ = value; + } + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 19; + private string network_ = ""; + /// + /// The name of the VPC that this instance is in. + /// Format: + /// `projects/{project_id}/global/networks/{network_id}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Network { + get { return network_; } + set { + network_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "subnet" field. + public const int SubnetFieldNumber = 20; + private string subnet_ = ""; + /// + /// The name of the subnet that this instance is in. + /// Format: + /// `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Subnet { + get { return subnet_; } + set { + subnet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 21; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 170); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Labels to apply to this instance. + /// These can be later modified by the setLabels method. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 22; + private static readonly pbc::MapField.Codec _map_metadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 178); + private readonly pbc::MapField metadata_ = new pbc::MapField(); + /// + /// Custom metadata to apply to this instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Metadata { + get { return metadata_; } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 32; + private static readonly pb::FieldCodec _repeated_tags_codec + = pb::FieldCodec.ForString(258); + private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); + /// + /// Optional. The Compute Engine tags to add to runtime (see [Tagging + /// instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tags { + get { return tags_; } + } + + /// Field number for the "upgrade_history" field. + public const int UpgradeHistoryFieldNumber = 29; + private static readonly pb::FieldCodec _repeated_upgradeHistory_codec + = pb::FieldCodec.ForMessage(234, global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Parser); + private readonly pbc::RepeatedField upgradeHistory_ = new pbc::RepeatedField(); + /// + /// The upgrade history of this instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UpgradeHistory { + get { return upgradeHistory_; } + } + + /// Field number for the "nic_type" field. + public const int NicTypeFieldNumber = 33; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.NicType nicType_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.NicType.UnspecifiedNicType; + /// + /// Optional. The type of vNIC to be used on this interface. This may be gVNIC + /// or VirtioNet. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.NicType NicType { + get { return nicType_; } + set { + nicType_ = value; + } + } + + /// Field number for the "reservation_affinity" field. + public const int ReservationAffinityFieldNumber = 34; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity reservationAffinity_; + /// + /// Optional. The optional reservation affinity. Setting this field will apply + /// the specified [Zonal Compute + /// Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + /// to this notebook instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity ReservationAffinity { + get { return reservationAffinity_; } + set { + reservationAffinity_ = value; + } + } + + /// Field number for the "creator" field. + public const int CreatorFieldNumber = 36; + private string creator_ = ""; + /// + /// Output only. Email address of entity that sent original CreateInstance + /// request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Creator { + get { return creator_; } + set { + creator_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "can_ip_forward" field. + public const int CanIpForwardFieldNumber = 39; + private bool canIpForward_; + /// + /// Optional. Flag to enable ip forwarding or not, default false/off. + /// https://cloud.google.com/vpc/docs/using-routes#canipforward + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanIpForward { + get { return canIpForward_; } + set { + canIpForward_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 23; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Instance creation time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 24; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Instance update time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + private object environment_; + /// Enum of possible cases for the "environment" oneof. + public enum EnvironmentOneofCase { + None = 0, + VmImage = 2, + ContainerImage = 3, + } + private EnvironmentOneofCase environmentCase_ = EnvironmentOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnvironmentOneofCase EnvironmentCase { + get { return environmentCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnvironment() { + environmentCase_ = EnvironmentOneofCase.None; + environment_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Instance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Instance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(VmImage, other.VmImage)) return false; + if (!object.Equals(ContainerImage, other.ContainerImage)) return false; + if (PostStartupScript != other.PostStartupScript) return false; + if (ProxyUri != other.ProxyUri) return false; + if (ServiceAccount != other.ServiceAccount) return false; + if(!serviceAccountScopes_.Equals(other.serviceAccountScopes_)) return false; + if (MachineType != other.MachineType) return false; + if (!object.Equals(AcceleratorConfig, other.AcceleratorConfig)) return false; + if (State != other.State) return false; + if (InstallGpuDriver != other.InstallGpuDriver) return false; + if (CustomGpuDriverPath != other.CustomGpuDriverPath) return false; + if(!disks_.Equals(other.disks_)) return false; + if (!object.Equals(ShieldedInstanceConfig, other.ShieldedInstanceConfig)) return false; + if (NoPublicIp != other.NoPublicIp) return false; + if (NoProxyAccess != other.NoProxyAccess) return false; + if (Network != other.Network) return false; + if (Subnet != other.Subnet) return false; + if (!Labels.Equals(other.Labels)) return false; + if (!Metadata.Equals(other.Metadata)) return false; + if(!tags_.Equals(other.tags_)) return false; + if(!upgradeHistory_.Equals(other.upgradeHistory_)) return false; + if (NicType != other.NicType) return false; + if (!object.Equals(ReservationAffinity, other.ReservationAffinity)) return false; + if (Creator != other.Creator) return false; + if (CanIpForward != other.CanIpForward) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (EnvironmentCase != other.EnvironmentCase) 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 (environmentCase_ == EnvironmentOneofCase.VmImage) hash ^= VmImage.GetHashCode(); + if (environmentCase_ == EnvironmentOneofCase.ContainerImage) hash ^= ContainerImage.GetHashCode(); + if (PostStartupScript.Length != 0) hash ^= PostStartupScript.GetHashCode(); + if (ProxyUri.Length != 0) hash ^= ProxyUri.GetHashCode(); + if (ServiceAccount.Length != 0) hash ^= ServiceAccount.GetHashCode(); + hash ^= serviceAccountScopes_.GetHashCode(); + if (MachineType.Length != 0) hash ^= MachineType.GetHashCode(); + if (acceleratorConfig_ != null) hash ^= AcceleratorConfig.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (InstallGpuDriver != false) hash ^= InstallGpuDriver.GetHashCode(); + if (CustomGpuDriverPath.Length != 0) hash ^= CustomGpuDriverPath.GetHashCode(); + hash ^= disks_.GetHashCode(); + if (shieldedInstanceConfig_ != null) hash ^= ShieldedInstanceConfig.GetHashCode(); + if (NoPublicIp != false) hash ^= NoPublicIp.GetHashCode(); + if (NoProxyAccess != false) hash ^= NoProxyAccess.GetHashCode(); + if (Network.Length != 0) hash ^= Network.GetHashCode(); + if (Subnet.Length != 0) hash ^= Subnet.GetHashCode(); + hash ^= Labels.GetHashCode(); + hash ^= Metadata.GetHashCode(); + hash ^= tags_.GetHashCode(); + hash ^= upgradeHistory_.GetHashCode(); + if (NicType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.NicType.UnspecifiedNicType) hash ^= NicType.GetHashCode(); + if (reservationAffinity_ != null) hash ^= ReservationAffinity.GetHashCode(); + if (Creator.Length != 0) hash ^= Creator.GetHashCode(); + if (CanIpForward != false) hash ^= CanIpForward.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= (int) environmentCase_; + 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 (environmentCase_ == EnvironmentOneofCase.VmImage) { + output.WriteRawTag(18); + output.WriteMessage(VmImage); + } + if (environmentCase_ == EnvironmentOneofCase.ContainerImage) { + output.WriteRawTag(26); + output.WriteMessage(ContainerImage); + } + if (PostStartupScript.Length != 0) { + output.WriteRawTag(34); + output.WriteString(PostStartupScript); + } + if (ProxyUri.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ProxyUri); + } + if (ServiceAccount.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ServiceAccount); + } + if (MachineType.Length != 0) { + output.WriteRawTag(66); + output.WriteString(MachineType); + } + if (acceleratorConfig_ != null) { + output.WriteRawTag(74); + output.WriteMessage(AcceleratorConfig); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.State.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) State); + } + if (InstallGpuDriver != false) { + output.WriteRawTag(88); + output.WriteBool(InstallGpuDriver); + } + if (CustomGpuDriverPath.Length != 0) { + output.WriteRawTag(98); + output.WriteString(CustomGpuDriverPath); + } + if (NoPublicIp != false) { + output.WriteRawTag(136, 1); + output.WriteBool(NoPublicIp); + } + if (NoProxyAccess != false) { + output.WriteRawTag(144, 1); + output.WriteBool(NoProxyAccess); + } + if (Network.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Network); + } + if (Subnet.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Subnet); + } + labels_.WriteTo(output, _map_labels_codec); + metadata_.WriteTo(output, _map_metadata_codec); + if (createTime_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(194, 1); + output.WriteMessage(UpdateTime); + } + disks_.WriteTo(output, _repeated_disks_codec); + upgradeHistory_.WriteTo(output, _repeated_upgradeHistory_codec); + if (shieldedInstanceConfig_ != null) { + output.WriteRawTag(242, 1); + output.WriteMessage(ShieldedInstanceConfig); + } + serviceAccountScopes_.WriteTo(output, _repeated_serviceAccountScopes_codec); + tags_.WriteTo(output, _repeated_tags_codec); + if (NicType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.NicType.UnspecifiedNicType) { + output.WriteRawTag(136, 2); + output.WriteEnum((int) NicType); + } + if (reservationAffinity_ != null) { + output.WriteRawTag(146, 2); + output.WriteMessage(ReservationAffinity); + } + if (Creator.Length != 0) { + output.WriteRawTag(162, 2); + output.WriteString(Creator); + } + if (CanIpForward != false) { + output.WriteRawTag(184, 2); + output.WriteBool(CanIpForward); + } + 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 (environmentCase_ == EnvironmentOneofCase.VmImage) { + output.WriteRawTag(18); + output.WriteMessage(VmImage); + } + if (environmentCase_ == EnvironmentOneofCase.ContainerImage) { + output.WriteRawTag(26); + output.WriteMessage(ContainerImage); + } + if (PostStartupScript.Length != 0) { + output.WriteRawTag(34); + output.WriteString(PostStartupScript); + } + if (ProxyUri.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ProxyUri); + } + if (ServiceAccount.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ServiceAccount); + } + if (MachineType.Length != 0) { + output.WriteRawTag(66); + output.WriteString(MachineType); + } + if (acceleratorConfig_ != null) { + output.WriteRawTag(74); + output.WriteMessage(AcceleratorConfig); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.State.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) State); + } + if (InstallGpuDriver != false) { + output.WriteRawTag(88); + output.WriteBool(InstallGpuDriver); + } + if (CustomGpuDriverPath.Length != 0) { + output.WriteRawTag(98); + output.WriteString(CustomGpuDriverPath); + } + if (NoPublicIp != false) { + output.WriteRawTag(136, 1); + output.WriteBool(NoPublicIp); + } + if (NoProxyAccess != false) { + output.WriteRawTag(144, 1); + output.WriteBool(NoProxyAccess); + } + if (Network.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Network); + } + if (Subnet.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Subnet); + } + labels_.WriteTo(ref output, _map_labels_codec); + metadata_.WriteTo(ref output, _map_metadata_codec); + if (createTime_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(194, 1); + output.WriteMessage(UpdateTime); + } + disks_.WriteTo(ref output, _repeated_disks_codec); + upgradeHistory_.WriteTo(ref output, _repeated_upgradeHistory_codec); + if (shieldedInstanceConfig_ != null) { + output.WriteRawTag(242, 1); + output.WriteMessage(ShieldedInstanceConfig); + } + serviceAccountScopes_.WriteTo(ref output, _repeated_serviceAccountScopes_codec); + tags_.WriteTo(ref output, _repeated_tags_codec); + if (NicType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.NicType.UnspecifiedNicType) { + output.WriteRawTag(136, 2); + output.WriteEnum((int) NicType); + } + if (reservationAffinity_ != null) { + output.WriteRawTag(146, 2); + output.WriteMessage(ReservationAffinity); + } + if (Creator.Length != 0) { + output.WriteRawTag(162, 2); + output.WriteString(Creator); + } + if (CanIpForward != false) { + output.WriteRawTag(184, 2); + output.WriteBool(CanIpForward); + } + 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 (environmentCase_ == EnvironmentOneofCase.VmImage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VmImage); + } + if (environmentCase_ == EnvironmentOneofCase.ContainerImage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContainerImage); + } + if (PostStartupScript.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PostStartupScript); + } + if (ProxyUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProxyUri); + } + if (ServiceAccount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccount); + } + size += serviceAccountScopes_.CalculateSize(_repeated_serviceAccountScopes_codec); + if (MachineType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MachineType); + } + if (acceleratorConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AcceleratorConfig); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (InstallGpuDriver != false) { + size += 1 + 1; + } + if (CustomGpuDriverPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomGpuDriverPath); + } + size += disks_.CalculateSize(_repeated_disks_codec); + if (shieldedInstanceConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShieldedInstanceConfig); + } + if (NoPublicIp != false) { + size += 2 + 1; + } + if (NoProxyAccess != false) { + size += 2 + 1; + } + if (Network.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Network); + } + if (Subnet.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Subnet); + } + size += labels_.CalculateSize(_map_labels_codec); + size += metadata_.CalculateSize(_map_metadata_codec); + size += tags_.CalculateSize(_repeated_tags_codec); + size += upgradeHistory_.CalculateSize(_repeated_upgradeHistory_codec); + if (NicType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.NicType.UnspecifiedNicType) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) NicType); + } + if (reservationAffinity_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ReservationAffinity); + } + if (Creator.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Creator); + } + if (CanIpForward != false) { + size += 2 + 1; + } + if (createTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Instance other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.PostStartupScript.Length != 0) { + PostStartupScript = other.PostStartupScript; + } + if (other.ProxyUri.Length != 0) { + ProxyUri = other.ProxyUri; + } + if (other.ServiceAccount.Length != 0) { + ServiceAccount = other.ServiceAccount; + } + serviceAccountScopes_.Add(other.serviceAccountScopes_); + if (other.MachineType.Length != 0) { + MachineType = other.MachineType; + } + if (other.acceleratorConfig_ != null) { + if (acceleratorConfig_ == null) { + AcceleratorConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorConfig(); + } + AcceleratorConfig.MergeFrom(other.AcceleratorConfig); + } + if (other.State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.State.Unspecified) { + State = other.State; + } + if (other.InstallGpuDriver != false) { + InstallGpuDriver = other.InstallGpuDriver; + } + if (other.CustomGpuDriverPath.Length != 0) { + CustomGpuDriverPath = other.CustomGpuDriverPath; + } + disks_.Add(other.disks_); + if (other.shieldedInstanceConfig_ != null) { + if (shieldedInstanceConfig_ == null) { + ShieldedInstanceConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.ShieldedInstanceConfig(); + } + ShieldedInstanceConfig.MergeFrom(other.ShieldedInstanceConfig); + } + if (other.NoPublicIp != false) { + NoPublicIp = other.NoPublicIp; + } + if (other.NoProxyAccess != false) { + NoProxyAccess = other.NoProxyAccess; + } + if (other.Network.Length != 0) { + Network = other.Network; + } + if (other.Subnet.Length != 0) { + Subnet = other.Subnet; + } + labels_.MergeFrom(other.labels_); + metadata_.MergeFrom(other.metadata_); + tags_.Add(other.tags_); + upgradeHistory_.Add(other.upgradeHistory_); + if (other.NicType != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.NicType.UnspecifiedNicType) { + NicType = other.NicType; + } + if (other.reservationAffinity_ != null) { + if (reservationAffinity_ == null) { + ReservationAffinity = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity(); + } + ReservationAffinity.MergeFrom(other.ReservationAffinity); + } + if (other.Creator.Length != 0) { + Creator = other.Creator; + } + if (other.CanIpForward != false) { + CanIpForward = other.CanIpForward; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + switch (other.EnvironmentCase) { + case EnvironmentOneofCase.VmImage: + if (VmImage == null) { + VmImage = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage(); + } + VmImage.MergeFrom(other.VmImage); + break; + case EnvironmentOneofCase.ContainerImage: + if (ContainerImage == null) { + ContainerImage = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage(); + } + ContainerImage.MergeFrom(other.ContainerImage); + break; + } + + _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: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage(); + if (environmentCase_ == EnvironmentOneofCase.VmImage) { + subBuilder.MergeFrom(VmImage); + } + input.ReadMessage(subBuilder); + VmImage = subBuilder; + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage(); + if (environmentCase_ == EnvironmentOneofCase.ContainerImage) { + subBuilder.MergeFrom(ContainerImage); + } + input.ReadMessage(subBuilder); + ContainerImage = subBuilder; + break; + } + case 34: { + PostStartupScript = input.ReadString(); + break; + } + case 42: { + ProxyUri = input.ReadString(); + break; + } + case 58: { + ServiceAccount = input.ReadString(); + break; + } + case 66: { + MachineType = input.ReadString(); + break; + } + case 74: { + if (acceleratorConfig_ == null) { + AcceleratorConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorConfig(); + } + input.ReadMessage(AcceleratorConfig); + break; + } + case 80: { + State = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.State) input.ReadEnum(); + break; + } + case 88: { + InstallGpuDriver = input.ReadBool(); + break; + } + case 98: { + CustomGpuDriverPath = input.ReadString(); + break; + } + case 136: { + NoPublicIp = input.ReadBool(); + break; + } + case 144: { + NoProxyAccess = input.ReadBool(); + break; + } + case 154: { + Network = input.ReadString(); + break; + } + case 162: { + Subnet = input.ReadString(); + break; + } + case 170: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 178: { + metadata_.AddEntriesFrom(input, _map_metadata_codec); + break; + } + case 186: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 194: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 226: { + disks_.AddEntriesFrom(input, _repeated_disks_codec); + break; + } + case 234: { + upgradeHistory_.AddEntriesFrom(input, _repeated_upgradeHistory_codec); + break; + } + case 242: { + if (shieldedInstanceConfig_ == null) { + ShieldedInstanceConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.ShieldedInstanceConfig(); + } + input.ReadMessage(ShieldedInstanceConfig); + break; + } + case 250: { + serviceAccountScopes_.AddEntriesFrom(input, _repeated_serviceAccountScopes_codec); + break; + } + case 258: { + tags_.AddEntriesFrom(input, _repeated_tags_codec); + break; + } + case 264: { + NicType = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.NicType) input.ReadEnum(); + break; + } + case 274: { + if (reservationAffinity_ == null) { + ReservationAffinity = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity(); + } + input.ReadMessage(ReservationAffinity); + break; + } + case 290: { + Creator = input.ReadString(); + break; + } + case 312: { + CanIpForward = 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 10: { + Name = input.ReadString(); + break; + } + case 18: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.VmImage(); + if (environmentCase_ == EnvironmentOneofCase.VmImage) { + subBuilder.MergeFrom(VmImage); + } + input.ReadMessage(subBuilder); + VmImage = subBuilder; + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage subBuilder = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ContainerImage(); + if (environmentCase_ == EnvironmentOneofCase.ContainerImage) { + subBuilder.MergeFrom(ContainerImage); + } + input.ReadMessage(subBuilder); + ContainerImage = subBuilder; + break; + } + case 34: { + PostStartupScript = input.ReadString(); + break; + } + case 42: { + ProxyUri = input.ReadString(); + break; + } + case 58: { + ServiceAccount = input.ReadString(); + break; + } + case 66: { + MachineType = input.ReadString(); + break; + } + case 74: { + if (acceleratorConfig_ == null) { + AcceleratorConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorConfig(); + } + input.ReadMessage(AcceleratorConfig); + break; + } + case 80: { + State = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.State) input.ReadEnum(); + break; + } + case 88: { + InstallGpuDriver = input.ReadBool(); + break; + } + case 98: { + CustomGpuDriverPath = input.ReadString(); + break; + } + case 136: { + NoPublicIp = input.ReadBool(); + break; + } + case 144: { + NoProxyAccess = input.ReadBool(); + break; + } + case 154: { + Network = input.ReadString(); + break; + } + case 162: { + Subnet = input.ReadString(); + break; + } + case 170: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 178: { + metadata_.AddEntriesFrom(ref input, _map_metadata_codec); + break; + } + case 186: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 194: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 226: { + disks_.AddEntriesFrom(ref input, _repeated_disks_codec); + break; + } + case 234: { + upgradeHistory_.AddEntriesFrom(ref input, _repeated_upgradeHistory_codec); + break; + } + case 242: { + if (shieldedInstanceConfig_ == null) { + ShieldedInstanceConfig = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.ShieldedInstanceConfig(); + } + input.ReadMessage(ShieldedInstanceConfig); + break; + } + case 250: { + serviceAccountScopes_.AddEntriesFrom(ref input, _repeated_serviceAccountScopes_codec); + break; + } + case 258: { + tags_.AddEntriesFrom(ref input, _repeated_tags_codec); + break; + } + case 264: { + NicType = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.NicType) input.ReadEnum(); + break; + } + case 274: { + if (reservationAffinity_ == null) { + ReservationAffinity = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ReservationAffinity(); + } + input.ReadMessage(ReservationAffinity); + break; + } + case 290: { + Creator = input.ReadString(); + break; + } + case 312: { + CanIpForward = input.ReadBool(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Instance message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Definition of the types of hardware accelerators that can be used on this + /// instance. + /// + public enum AcceleratorType { + /// + /// Accelerator type is not specified. + /// + [pbr::OriginalName("ACCELERATOR_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Accelerator type is Nvidia Tesla K80. + /// + [pbr::OriginalName("NVIDIA_TESLA_K80")] NvidiaTeslaK80 = 1, + /// + /// Accelerator type is Nvidia Tesla P100. + /// + [pbr::OriginalName("NVIDIA_TESLA_P100")] NvidiaTeslaP100 = 2, + /// + /// Accelerator type is Nvidia Tesla V100. + /// + [pbr::OriginalName("NVIDIA_TESLA_V100")] NvidiaTeslaV100 = 3, + /// + /// Accelerator type is Nvidia Tesla P4. + /// + [pbr::OriginalName("NVIDIA_TESLA_P4")] NvidiaTeslaP4 = 4, + /// + /// Accelerator type is Nvidia Tesla T4. + /// + [pbr::OriginalName("NVIDIA_TESLA_T4")] NvidiaTeslaT4 = 5, + /// + /// Accelerator type is Nvidia Tesla A100. + /// + [pbr::OriginalName("NVIDIA_TESLA_A100")] NvidiaTeslaA100 = 11, + /// + /// Accelerator type is NVIDIA Tesla T4 Virtual Workstations. + /// + [pbr::OriginalName("NVIDIA_TESLA_T4_VWS")] NvidiaTeslaT4Vws = 8, + /// + /// Accelerator type is NVIDIA Tesla P100 Virtual Workstations. + /// + [pbr::OriginalName("NVIDIA_TESLA_P100_VWS")] NvidiaTeslaP100Vws = 9, + /// + /// Accelerator type is NVIDIA Tesla P4 Virtual Workstations. + /// + [pbr::OriginalName("NVIDIA_TESLA_P4_VWS")] NvidiaTeslaP4Vws = 10, + /// + /// (Coming soon) Accelerator type is TPU V2. + /// + [pbr::OriginalName("TPU_V2")] TpuV2 = 6, + /// + /// (Coming soon) Accelerator type is TPU V3. + /// + [pbr::OriginalName("TPU_V3")] TpuV3 = 7, + } + + /// + /// The definition of the states of this instance. + /// + public enum State { + /// + /// State is not specified. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The control logic is starting the instance. + /// + [pbr::OriginalName("STARTING")] Starting = 1, + /// + /// The control logic is installing required frameworks and registering the + /// instance with notebook proxy + /// + [pbr::OriginalName("PROVISIONING")] Provisioning = 2, + /// + /// The instance is running. + /// + [pbr::OriginalName("ACTIVE")] Active = 3, + /// + /// The control logic is stopping the instance. + /// + [pbr::OriginalName("STOPPING")] Stopping = 4, + /// + /// The instance is stopped. + /// + [pbr::OriginalName("STOPPED")] Stopped = 5, + /// + /// The instance is deleted. + /// + [pbr::OriginalName("DELETED")] Deleted = 6, + /// + /// The instance is upgrading. + /// + [pbr::OriginalName("UPGRADING")] Upgrading = 7, + /// + /// The instance is being created. + /// + [pbr::OriginalName("INITIALIZING")] Initializing = 8, + /// + /// The instance is getting registered. + /// + [pbr::OriginalName("REGISTERING")] Registering = 9, + /// + /// The instance is suspending. + /// + [pbr::OriginalName("SUSPENDING")] Suspending = 10, + /// + /// The instance is suspended. + /// + [pbr::OriginalName("SUSPENDED")] Suspended = 11, + } + + /// + /// Possible disk types for notebook instances. + /// + public enum DiskType { + /// + /// Disk type not set. + /// + [pbr::OriginalName("DISK_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Standard persistent disk type. + /// + [pbr::OriginalName("PD_STANDARD")] PdStandard = 1, + /// + /// SSD persistent disk type. + /// + [pbr::OriginalName("PD_SSD")] PdSsd = 2, + /// + /// Balanced persistent disk type. + /// + [pbr::OriginalName("PD_BALANCED")] PdBalanced = 3, + /// + /// Extreme persistent disk type. + /// + [pbr::OriginalName("PD_EXTREME")] PdExtreme = 4, + } + + /// + /// Definition of the disk encryption options. + /// + public enum DiskEncryption { + /// + /// Disk encryption is not specified. + /// + [pbr::OriginalName("DISK_ENCRYPTION_UNSPECIFIED")] Unspecified = 0, + /// + /// Use Google managed encryption keys to encrypt the boot disk. + /// + [pbr::OriginalName("GMEK")] Gmek = 1, + /// + /// Use customer managed encryption keys to encrypt the boot disk. + /// + [pbr::OriginalName("CMEK")] Cmek = 2, + } + + /// + /// The type of vNIC driver. + /// Default should be UNSPECIFIED_NIC_TYPE. + /// + public enum NicType { + /// + /// No type specified. + /// + [pbr::OriginalName("UNSPECIFIED_NIC_TYPE")] UnspecifiedNicType = 0, + /// + /// VIRTIO + /// + [pbr::OriginalName("VIRTIO_NET")] VirtioNet = 1, + /// + /// GVNIC + /// + [pbr::OriginalName("GVNIC")] Gvnic = 2, + } + + /// + /// Definition of a hardware accelerator. Note that not all combinations + /// of `type` and `core_count` are valid. See [GPUs on Compute + /// Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a + /// valid combination. TPUs are not supported. + /// + public sealed partial class AcceleratorConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AcceleratorConfig()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.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 AcceleratorConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AcceleratorConfig(AcceleratorConfig other) : this() { + type_ = other.type_; + coreCount_ = other.coreCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AcceleratorConfig Clone() { + return new AcceleratorConfig(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorType type_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorType.Unspecified; + /// + /// Type of this accelerator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "core_count" field. + public const int CoreCountFieldNumber = 2; + private long coreCount_; + /// + /// Count of cores of this accelerator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CoreCount { + get { return coreCount_; } + set { + coreCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AcceleratorConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AcceleratorConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (CoreCount != other.CoreCount) 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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorType.Unspecified) hash ^= Type.GetHashCode(); + if (CoreCount != 0L) hash ^= CoreCount.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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (CoreCount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(CoreCount); + } + 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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (CoreCount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(CoreCount); + } + 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 != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (CoreCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CoreCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AcceleratorConfig other) { + if (other == null) { + return; + } + if (other.Type != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorType.Unspecified) { + Type = other.Type; + } + if (other.CoreCount != 0L) { + CoreCount = other.CoreCount; + } + _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: { + Type = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorType) input.ReadEnum(); + break; + } + case 16: { + CoreCount = 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: { + Type = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.AcceleratorType) input.ReadEnum(); + break; + } + case 16: { + CoreCount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// An instance-attached disk resource. + /// + public sealed partial class Disk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Disk()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.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 Disk() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Disk(Disk other) : this() { + autoDelete_ = other.autoDelete_; + boot_ = other.boot_; + deviceName_ = other.deviceName_; + diskSizeGb_ = other.diskSizeGb_; + guestOsFeatures_ = other.guestOsFeatures_.Clone(); + index_ = other.index_; + interface_ = other.interface_; + kind_ = other.kind_; + licenses_ = other.licenses_.Clone(); + mode_ = other.mode_; + source_ = other.source_; + type_ = other.type_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Disk Clone() { + return new Disk(this); + } + + /// Field number for the "auto_delete" field. + public const int AutoDeleteFieldNumber = 1; + private bool autoDelete_; + /// + /// Indicates whether the disk will be auto-deleted when the instance is + /// deleted (but not when the disk is detached from the instance). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AutoDelete { + get { return autoDelete_; } + set { + autoDelete_ = value; + } + } + + /// Field number for the "boot" field. + public const int BootFieldNumber = 2; + private bool boot_; + /// + /// Indicates that this is a boot disk. The virtual machine will use the + /// first partition of the disk for its root filesystem. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Boot { + get { return boot_; } + set { + boot_ = value; + } + } + + /// Field number for the "device_name" field. + public const int DeviceNameFieldNumber = 3; + private string deviceName_ = ""; + /// + /// Indicates a unique device name of your choice that is reflected into the + /// `/dev/disk/by-id/google-*` tree of a Linux operating system running + /// within the instance. This name can be used to reference the device for + /// mounting, resizing, and so on, from within the instance. + /// + /// If not specified, the server chooses a default device name to apply to + /// this disk, in the form persistent-disk-x, where x is a number assigned by + /// Google Compute Engine.This field is only applicable for persistent disks. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DeviceName { + get { return deviceName_; } + set { + deviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "disk_size_gb" field. + public const int DiskSizeGbFieldNumber = 4; + private long diskSizeGb_; + /// + /// Indicates the size of the disk in base-2 GB. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DiskSizeGb { + get { return diskSizeGb_; } + set { + diskSizeGb_ = value; + } + } + + /// Field number for the "guest_os_features" field. + public const int GuestOsFeaturesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_guestOsFeatures_codec + = pb::FieldCodec.ForMessage(42, global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.Disk.Types.GuestOsFeature.Parser); + private readonly pbc::RepeatedField guestOsFeatures_ = new pbc::RepeatedField(); + /// + /// Indicates a list of features to enable on the guest operating system. + /// Applicable only for bootable images. Read Enabling guest operating + /// system features to see a list of available options. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GuestOsFeatures { + get { return guestOsFeatures_; } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 6; + private long index_; + /// + /// A zero-based index to this disk, where 0 is reserved for the + /// boot disk. If you have many disks attached to an instance, each disk + /// would have a unique index number. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "interface" field. + public const int InterfaceFieldNumber = 7; + private string interface_ = ""; + /// + /// Indicates the disk interface to use for attaching this disk, which is + /// either SCSI or NVME. The default is SCSI. Persistent disks must always + /// use SCSI and the request will fail if you attempt to attach a persistent + /// disk in any other format than SCSI. Local SSDs can use either NVME or + /// SCSI. For performance characteristics of SCSI over NVMe, see Local SSD + /// performance. + /// Valid values: + /// + /// * `NVME` + /// * `SCSI` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Interface { + get { return interface_; } + set { + interface_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 8; + private string kind_ = ""; + /// + /// Type of the resource. Always compute#attachedDisk for attached + /// disks. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Kind { + get { return kind_; } + set { + kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "licenses" field. + public const int LicensesFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_licenses_codec + = pb::FieldCodec.ForString(74); + private readonly pbc::RepeatedField licenses_ = new pbc::RepeatedField(); + /// + /// A list of publicly visible licenses. Reserved for Google's use. + /// A License represents billing and aggregate usage data for public + /// and marketplace images. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Licenses { + get { return licenses_; } + } + + /// Field number for the "mode" field. + public const int ModeFieldNumber = 10; + private string mode_ = ""; + /// + /// The mode in which to attach this disk, either `READ_WRITE` or + /// `READ_ONLY`. If not specified, the default is to attach the disk in + /// `READ_WRITE` mode. Valid values: + /// + /// * `READ_ONLY` + /// * `READ_WRITE` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Mode { + get { return mode_; } + set { + mode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 11; + private string source_ = ""; + /// + /// Indicates a valid partial or full URL to an existing Persistent Disk + /// resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Source { + get { return source_; } + set { + source_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 12; + private string type_ = ""; + /// + /// Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`. + /// Valid values: + /// + /// * `PERSISTENT` + /// * `SCRATCH` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = 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 Disk); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Disk other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AutoDelete != other.AutoDelete) return false; + if (Boot != other.Boot) return false; + if (DeviceName != other.DeviceName) return false; + if (DiskSizeGb != other.DiskSizeGb) return false; + if(!guestOsFeatures_.Equals(other.guestOsFeatures_)) return false; + if (Index != other.Index) return false; + if (Interface != other.Interface) return false; + if (Kind != other.Kind) return false; + if(!licenses_.Equals(other.licenses_)) return false; + if (Mode != other.Mode) return false; + if (Source != other.Source) return false; + if (Type != other.Type) 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 (AutoDelete != false) hash ^= AutoDelete.GetHashCode(); + if (Boot != false) hash ^= Boot.GetHashCode(); + if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); + if (DiskSizeGb != 0L) hash ^= DiskSizeGb.GetHashCode(); + hash ^= guestOsFeatures_.GetHashCode(); + if (Index != 0L) hash ^= Index.GetHashCode(); + if (Interface.Length != 0) hash ^= Interface.GetHashCode(); + if (Kind.Length != 0) hash ^= Kind.GetHashCode(); + hash ^= licenses_.GetHashCode(); + if (Mode.Length != 0) hash ^= Mode.GetHashCode(); + if (Source.Length != 0) hash ^= Source.GetHashCode(); + if (Type.Length != 0) hash ^= Type.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 (AutoDelete != false) { + output.WriteRawTag(8); + output.WriteBool(AutoDelete); + } + if (Boot != false) { + output.WriteRawTag(16); + output.WriteBool(Boot); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DiskSizeGb != 0L) { + output.WriteRawTag(32); + output.WriteInt64(DiskSizeGb); + } + guestOsFeatures_.WriteTo(output, _repeated_guestOsFeatures_codec); + if (Index != 0L) { + output.WriteRawTag(48); + output.WriteInt64(Index); + } + if (Interface.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Interface); + } + if (Kind.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Kind); + } + licenses_.WriteTo(output, _repeated_licenses_codec); + if (Mode.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Mode); + } + if (Source.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Source); + } + if (Type.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Type); + } + 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 (AutoDelete != false) { + output.WriteRawTag(8); + output.WriteBool(AutoDelete); + } + if (Boot != false) { + output.WriteRawTag(16); + output.WriteBool(Boot); + } + if (DeviceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DeviceName); + } + if (DiskSizeGb != 0L) { + output.WriteRawTag(32); + output.WriteInt64(DiskSizeGb); + } + guestOsFeatures_.WriteTo(ref output, _repeated_guestOsFeatures_codec); + if (Index != 0L) { + output.WriteRawTag(48); + output.WriteInt64(Index); + } + if (Interface.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Interface); + } + if (Kind.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Kind); + } + licenses_.WriteTo(ref output, _repeated_licenses_codec); + if (Mode.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Mode); + } + if (Source.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Source); + } + if (Type.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Type); + } + 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 (AutoDelete != false) { + size += 1 + 1; + } + if (Boot != false) { + size += 1 + 1; + } + if (DeviceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); + } + if (DiskSizeGb != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DiskSizeGb); + } + size += guestOsFeatures_.CalculateSize(_repeated_guestOsFeatures_codec); + if (Index != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Index); + } + if (Interface.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Interface); + } + if (Kind.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); + } + size += licenses_.CalculateSize(_repeated_licenses_codec); + if (Mode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Mode); + } + if (Source.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Source); + } + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Disk other) { + if (other == null) { + return; + } + if (other.AutoDelete != false) { + AutoDelete = other.AutoDelete; + } + if (other.Boot != false) { + Boot = other.Boot; + } + if (other.DeviceName.Length != 0) { + DeviceName = other.DeviceName; + } + if (other.DiskSizeGb != 0L) { + DiskSizeGb = other.DiskSizeGb; + } + guestOsFeatures_.Add(other.guestOsFeatures_); + if (other.Index != 0L) { + Index = other.Index; + } + if (other.Interface.Length != 0) { + Interface = other.Interface; + } + if (other.Kind.Length != 0) { + Kind = other.Kind; + } + licenses_.Add(other.licenses_); + if (other.Mode.Length != 0) { + Mode = other.Mode; + } + if (other.Source.Length != 0) { + Source = other.Source; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + _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: { + AutoDelete = input.ReadBool(); + break; + } + case 16: { + Boot = input.ReadBool(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 32: { + DiskSizeGb = input.ReadInt64(); + break; + } + case 42: { + guestOsFeatures_.AddEntriesFrom(input, _repeated_guestOsFeatures_codec); + break; + } + case 48: { + Index = input.ReadInt64(); + break; + } + case 58: { + Interface = input.ReadString(); + break; + } + case 66: { + Kind = input.ReadString(); + break; + } + case 74: { + licenses_.AddEntriesFrom(input, _repeated_licenses_codec); + break; + } + case 82: { + Mode = input.ReadString(); + break; + } + case 90: { + Source = input.ReadString(); + break; + } + case 98: { + Type = 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 8: { + AutoDelete = input.ReadBool(); + break; + } + case 16: { + Boot = input.ReadBool(); + break; + } + case 26: { + DeviceName = input.ReadString(); + break; + } + case 32: { + DiskSizeGb = input.ReadInt64(); + break; + } + case 42: { + guestOsFeatures_.AddEntriesFrom(ref input, _repeated_guestOsFeatures_codec); + break; + } + case 48: { + Index = input.ReadInt64(); + break; + } + case 58: { + Interface = input.ReadString(); + break; + } + case 66: { + Kind = input.ReadString(); + break; + } + case 74: { + licenses_.AddEntriesFrom(ref input, _repeated_licenses_codec); + break; + } + case 82: { + Mode = input.ReadString(); + break; + } + case 90: { + Source = input.ReadString(); + break; + } + case 98: { + Type = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Disk message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Guest OS features for boot disk. + /// + public sealed partial class GuestOsFeature : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GuestOsFeature()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.Disk.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 GuestOsFeature() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GuestOsFeature(GuestOsFeature other) : this() { + type_ = other.type_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GuestOsFeature Clone() { + return new GuestOsFeature(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private string type_ = ""; + /// + /// The ID of a supported feature. Read Enabling guest operating system + /// features to see a list of available options. + /// Valid values: + /// + /// * `FEATURE_TYPE_UNSPECIFIED` + /// * `MULTI_IP_SUBNET` + /// * `SECURE_BOOT` + /// * `UEFI_COMPATIBLE` + /// * `VIRTIO_SCSI_MULTIQUEUE` + /// * `WINDOWS` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = 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 GuestOsFeature); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GuestOsFeature other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GuestOsFeature other) { + if (other == null) { + return; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A set of Shielded Instance options. + /// See [Images using supported Shielded VM + /// features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). + /// Not all combinations are valid. + /// + public sealed partial class ShieldedInstanceConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShieldedInstanceConfig()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.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 ShieldedInstanceConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ShieldedInstanceConfig(ShieldedInstanceConfig other) : this() { + enableSecureBoot_ = other.enableSecureBoot_; + enableVtpm_ = other.enableVtpm_; + enableIntegrityMonitoring_ = other.enableIntegrityMonitoring_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ShieldedInstanceConfig Clone() { + return new ShieldedInstanceConfig(this); + } + + /// Field number for the "enable_secure_boot" field. + public const int EnableSecureBootFieldNumber = 1; + private bool enableSecureBoot_; + /// + /// Defines whether the instance has Secure Boot enabled. + /// + /// Secure Boot helps ensure that the system only runs authentic software by + /// verifying the digital signature of all boot components, and halting the + /// boot process if signature verification fails. Disabled by default. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EnableSecureBoot { + get { return enableSecureBoot_; } + set { + enableSecureBoot_ = value; + } + } + + /// Field number for the "enable_vtpm" field. + public const int EnableVtpmFieldNumber = 2; + private bool enableVtpm_; + /// + /// Defines whether the instance has the vTPM enabled. Enabled by default. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EnableVtpm { + get { return enableVtpm_; } + set { + enableVtpm_ = value; + } + } + + /// Field number for the "enable_integrity_monitoring" field. + public const int EnableIntegrityMonitoringFieldNumber = 3; + private bool enableIntegrityMonitoring_; + /// + /// Defines whether the instance has integrity monitoring enabled. + /// + /// Enables monitoring and attestation of the boot integrity of the instance. + /// The attestation is performed against the integrity policy baseline. This + /// baseline is initially derived from the implicitly trusted boot image when + /// the instance is created. Enabled by default. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EnableIntegrityMonitoring { + get { return enableIntegrityMonitoring_; } + set { + enableIntegrityMonitoring_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ShieldedInstanceConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ShieldedInstanceConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EnableSecureBoot != other.EnableSecureBoot) return false; + if (EnableVtpm != other.EnableVtpm) return false; + if (EnableIntegrityMonitoring != other.EnableIntegrityMonitoring) 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 (EnableSecureBoot != false) hash ^= EnableSecureBoot.GetHashCode(); + if (EnableVtpm != false) hash ^= EnableVtpm.GetHashCode(); + if (EnableIntegrityMonitoring != false) hash ^= EnableIntegrityMonitoring.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 (EnableSecureBoot != false) { + output.WriteRawTag(8); + output.WriteBool(EnableSecureBoot); + } + if (EnableVtpm != false) { + output.WriteRawTag(16); + output.WriteBool(EnableVtpm); + } + if (EnableIntegrityMonitoring != false) { + output.WriteRawTag(24); + output.WriteBool(EnableIntegrityMonitoring); + } + 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 (EnableSecureBoot != false) { + output.WriteRawTag(8); + output.WriteBool(EnableSecureBoot); + } + if (EnableVtpm != false) { + output.WriteRawTag(16); + output.WriteBool(EnableVtpm); + } + if (EnableIntegrityMonitoring != false) { + output.WriteRawTag(24); + output.WriteBool(EnableIntegrityMonitoring); + } + 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 (EnableSecureBoot != false) { + size += 1 + 1; + } + if (EnableVtpm != false) { + size += 1 + 1; + } + if (EnableIntegrityMonitoring != 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(ShieldedInstanceConfig other) { + if (other == null) { + return; + } + if (other.EnableSecureBoot != false) { + EnableSecureBoot = other.EnableSecureBoot; + } + if (other.EnableVtpm != false) { + EnableVtpm = other.EnableVtpm; + } + if (other.EnableIntegrityMonitoring != false) { + EnableIntegrityMonitoring = other.EnableIntegrityMonitoring; + } + _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: { + EnableSecureBoot = input.ReadBool(); + break; + } + case 16: { + EnableVtpm = input.ReadBool(); + break; + } + case 24: { + EnableIntegrityMonitoring = 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: { + EnableSecureBoot = input.ReadBool(); + break; + } + case 16: { + EnableVtpm = input.ReadBool(); + break; + } + case 24: { + EnableIntegrityMonitoring = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// The entry of VM image upgrade history. + /// + public sealed partial class UpgradeHistoryEntry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpgradeHistoryEntry()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.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 UpgradeHistoryEntry() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpgradeHistoryEntry(UpgradeHistoryEntry other) : this() { + snapshot_ = other.snapshot_; + vmImage_ = other.vmImage_; + containerImage_ = other.containerImage_; + framework_ = other.framework_; + version_ = other.version_; + state_ = other.state_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + targetImage_ = other.targetImage_; + action_ = other.action_; + targetVersion_ = other.targetVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpgradeHistoryEntry Clone() { + return new UpgradeHistoryEntry(this); + } + + /// Field number for the "snapshot" field. + public const int SnapshotFieldNumber = 1; + private string snapshot_ = ""; + /// + /// The snapshot of the boot disk of this notebook instance before upgrade. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Snapshot { + get { return snapshot_; } + set { + snapshot_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "vm_image" field. + public const int VmImageFieldNumber = 2; + private string vmImage_ = ""; + /// + /// The VM image before this instance upgrade. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VmImage { + get { return vmImage_; } + set { + vmImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "container_image" field. + public const int ContainerImageFieldNumber = 3; + private string containerImage_ = ""; + /// + /// The container image before this instance upgrade. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ContainerImage { + get { return containerImage_; } + set { + containerImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "framework" field. + public const int FrameworkFieldNumber = 4; + private string framework_ = ""; + /// + /// The framework of this notebook instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Framework { + get { return framework_; } + set { + framework_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 5; + private string version_ = ""; + /// + /// The version of the notebook instance before this upgrade. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 6; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.State state_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.State.Unspecified; + /// + /// The state of this instance upgrade history entry. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// The time that this instance upgrade history entry is created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "target_image" field. + public const int TargetImageFieldNumber = 8; + private string targetImage_ = ""; + /// + /// Target VM Image. Format: `ainotebooks-vm/project/image-name/name`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetImage { + get { return targetImage_; } + set { + targetImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "action" field. + public const int ActionFieldNumber = 9; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.Action action_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.Action.Unspecified; + /// + /// Action. Rolloback or Upgrade. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.Action Action { + get { return action_; } + set { + action_ = value; + } + } + + /// Field number for the "target_version" field. + public const int TargetVersionFieldNumber = 10; + private string targetVersion_ = ""; + /// + /// Target VM Version, like m63. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetVersion { + get { return targetVersion_; } + set { + targetVersion_ = 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 UpgradeHistoryEntry); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpgradeHistoryEntry other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Snapshot != other.Snapshot) return false; + if (VmImage != other.VmImage) return false; + if (ContainerImage != other.ContainerImage) return false; + if (Framework != other.Framework) return false; + if (Version != other.Version) return false; + if (State != other.State) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (TargetImage != other.TargetImage) return false; + if (Action != other.Action) return false; + if (TargetVersion != other.TargetVersion) 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 (Snapshot.Length != 0) hash ^= Snapshot.GetHashCode(); + if (VmImage.Length != 0) hash ^= VmImage.GetHashCode(); + if (ContainerImage.Length != 0) hash ^= ContainerImage.GetHashCode(); + if (Framework.Length != 0) hash ^= Framework.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (TargetImage.Length != 0) hash ^= TargetImage.GetHashCode(); + if (Action != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.Action.Unspecified) hash ^= Action.GetHashCode(); + if (TargetVersion.Length != 0) hash ^= TargetVersion.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 (Snapshot.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Snapshot); + } + if (VmImage.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VmImage); + } + if (ContainerImage.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ContainerImage); + } + if (Framework.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Framework); + } + if (Version.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Version); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.State.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) State); + } + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (TargetImage.Length != 0) { + output.WriteRawTag(66); + output.WriteString(TargetImage); + } + if (Action != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.Action.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) Action); + } + if (TargetVersion.Length != 0) { + output.WriteRawTag(82); + output.WriteString(TargetVersion); + } + 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 (Snapshot.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Snapshot); + } + if (VmImage.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VmImage); + } + if (ContainerImage.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ContainerImage); + } + if (Framework.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Framework); + } + if (Version.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Version); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.State.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) State); + } + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (TargetImage.Length != 0) { + output.WriteRawTag(66); + output.WriteString(TargetImage); + } + if (Action != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.Action.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) Action); + } + if (TargetVersion.Length != 0) { + output.WriteRawTag(82); + output.WriteString(TargetVersion); + } + 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 (Snapshot.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Snapshot); + } + if (VmImage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VmImage); + } + if (ContainerImage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ContainerImage); + } + if (Framework.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Framework); + } + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (TargetImage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetImage); + } + if (Action != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.Action.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Action); + } + if (TargetVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpgradeHistoryEntry other) { + if (other == null) { + return; + } + if (other.Snapshot.Length != 0) { + Snapshot = other.Snapshot; + } + if (other.VmImage.Length != 0) { + VmImage = other.VmImage; + } + if (other.ContainerImage.Length != 0) { + ContainerImage = other.ContainerImage; + } + if (other.Framework.Length != 0) { + Framework = other.Framework; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + if (other.State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.State.Unspecified) { + State = other.State; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.TargetImage.Length != 0) { + TargetImage = other.TargetImage; + } + if (other.Action != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.Action.Unspecified) { + Action = other.Action; + } + if (other.TargetVersion.Length != 0) { + TargetVersion = other.TargetVersion; + } + _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: { + Snapshot = input.ReadString(); + break; + } + case 18: { + VmImage = input.ReadString(); + break; + } + case 26: { + ContainerImage = input.ReadString(); + break; + } + case 34: { + Framework = input.ReadString(); + break; + } + case 42: { + Version = input.ReadString(); + break; + } + case 48: { + State = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.State) input.ReadEnum(); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 66: { + TargetImage = input.ReadString(); + break; + } + case 72: { + Action = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.Action) input.ReadEnum(); + break; + } + case 82: { + TargetVersion = 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: { + Snapshot = input.ReadString(); + break; + } + case 18: { + VmImage = input.ReadString(); + break; + } + case 26: { + ContainerImage = input.ReadString(); + break; + } + case 34: { + Framework = input.ReadString(); + break; + } + case 42: { + Version = input.ReadString(); + break; + } + case 48: { + State = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.State) input.ReadEnum(); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 66: { + TargetImage = input.ReadString(); + break; + } + case 72: { + Action = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance.Types.UpgradeHistoryEntry.Types.Action) input.ReadEnum(); + break; + } + case 82: { + TargetVersion = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the UpgradeHistoryEntry message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The definition of the states of this upgrade history entry. + /// + public enum State { + /// + /// State is not specified. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The instance upgrade is started. + /// + [pbr::OriginalName("STARTED")] Started = 1, + /// + /// The instance upgrade is succeeded. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 2, + /// + /// The instance upgrade is failed. + /// + [pbr::OriginalName("FAILED")] Failed = 3, + } + + /// + /// The definition of operations of this upgrade history entry. + /// + public enum Action { + /// + /// Operation is not specified. + /// + [pbr::OriginalName("ACTION_UNSPECIFIED")] Unspecified = 0, + /// + /// Upgrade. + /// + [pbr::OriginalName("UPGRADE")] Upgrade = 1, + /// + /// Rollback. + /// + [pbr::OriginalName("ROLLBACK")] Rollback = 2, + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// The definition of a schedule. + /// + public sealed partial class Schedule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Schedule()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.Descriptor.MessageTypes[18]; } + } + + [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 Schedule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Schedule(Schedule other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + description_ = other.description_; + state_ = other.state_; + cronSchedule_ = other.cronSchedule_; + timeZone_ = other.timeZone_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + executionTemplate_ = other.executionTemplate_ != null ? other.executionTemplate_.Clone() : null; + recentExecutions_ = other.recentExecutions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Schedule Clone() { + return new Schedule(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The name of this schedule. Format: + /// `projects/{project_id}/locations/{location}/schedules/{schedule_id}` + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// Output only. Display name used for UI purposes. + /// Name can only contain alphanumeric characters, hyphens `-`, + /// and underscores `_`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// A brief description of this environment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Types.State state_ = global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Types.State.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "cron_schedule" field. + public const int CronScheduleFieldNumber = 5; + private string cronSchedule_ = ""; + /// + /// Cron-tab formatted schedule by which the job will execute. + /// Format: minute, hour, day of month, month, day of week, + /// e.g. `0 0 * * WED` = every Wednesday + /// More examples: https://crontab.guru/examples.html + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CronSchedule { + get { return cronSchedule_; } + set { + cronSchedule_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "time_zone" field. + public const int TimeZoneFieldNumber = 6; + private string timeZone_ = ""; + /// + /// Timezone on which the cron_schedule. + /// The value of this field must be a time zone name from the tz database. + /// TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + /// + /// Note that some time zones include a provision for daylight savings time. + /// The rules for daylight saving time are determined by the chosen tz. + /// For UTC use the string "utc". If a time zone is not specified, + /// the default will be in UTC (also known as GMT). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TimeZone { + get { return timeZone_; } + set { + timeZone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Time the schedule was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Time the schedule was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "execution_template" field. + public const int ExecutionTemplateFieldNumber = 9; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate executionTemplate_; + /// + /// Notebook Execution Template corresponding to this schedule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate ExecutionTemplate { + get { return executionTemplate_; } + set { + executionTemplate_ = value; + } + } + + /// Field number for the "recent_executions" field. + public const int RecentExecutionsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_recentExecutions_codec + = pb::FieldCodec.ForMessage(82, global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution.Parser); + private readonly pbc::RepeatedField recentExecutions_ = new pbc::RepeatedField(); + /// + /// Output only. The most recent execution names triggered from this schedule + /// and their corresponding states. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RecentExecutions { + get { return recentExecutions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Schedule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Schedule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (Description != other.Description) return false; + if (State != other.State) return false; + if (CronSchedule != other.CronSchedule) return false; + if (TimeZone != other.TimeZone) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(ExecutionTemplate, other.ExecutionTemplate)) return false; + if(!recentExecutions_.Equals(other.recentExecutions_)) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (CronSchedule.Length != 0) hash ^= CronSchedule.GetHashCode(); + if (TimeZone.Length != 0) hash ^= TimeZone.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (executionTemplate_ != null) hash ^= ExecutionTemplate.GetHashCode(); + hash ^= recentExecutions_.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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (CronSchedule.Length != 0) { + output.WriteRawTag(42); + output.WriteString(CronSchedule); + } + if (TimeZone.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TimeZone); + } + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdateTime); + } + if (executionTemplate_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ExecutionTemplate); + } + recentExecutions_.WriteTo(output, _repeated_recentExecutions_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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (CronSchedule.Length != 0) { + output.WriteRawTag(42); + output.WriteString(CronSchedule); + } + if (TimeZone.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TimeZone); + } + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdateTime); + } + if (executionTemplate_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ExecutionTemplate); + } + recentExecutions_.WriteTo(ref output, _repeated_recentExecutions_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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (CronSchedule.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CronSchedule); + } + if (TimeZone.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TimeZone); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (executionTemplate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecutionTemplate); + } + size += recentExecutions_.CalculateSize(_repeated_recentExecutions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Schedule other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.State != global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Types.State.Unspecified) { + State = other.State; + } + if (other.CronSchedule.Length != 0) { + CronSchedule = other.CronSchedule; + } + if (other.TimeZone.Length != 0) { + TimeZone = other.TimeZone; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.executionTemplate_ != null) { + if (executionTemplate_ == null) { + ExecutionTemplate = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate(); + } + ExecutionTemplate.MergeFrom(other.ExecutionTemplate); + } + recentExecutions_.Add(other.recentExecutions_); + _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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 32: { + State = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Types.State) input.ReadEnum(); + break; + } + case 42: { + CronSchedule = input.ReadString(); + break; + } + case 50: { + TimeZone = input.ReadString(); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 66: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 74: { + if (executionTemplate_ == null) { + ExecutionTemplate = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate(); + } + input.ReadMessage(ExecutionTemplate); + break; + } + case 82: { + recentExecutions_.AddEntriesFrom(input, _repeated_recentExecutions_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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 32: { + State = (global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule.Types.State) input.ReadEnum(); + break; + } + case 42: { + CronSchedule = input.ReadString(); + break; + } + case 50: { + TimeZone = input.ReadString(); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 66: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 74: { + if (executionTemplate_ == null) { + ExecutionTemplate = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.ExecutionTemplate(); + } + input.ReadMessage(ExecutionTemplate); + break; + } + case 82: { + recentExecutions_.AddEntriesFrom(ref input, _repeated_recentExecutions_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Schedule message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// State of the job. + /// + public enum State { + /// + /// Unspecified state. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The job is executing normally. + /// + [pbr::OriginalName("ENABLED")] Enabled = 1, + /// + /// The job is paused by the user. It will not execute. A user can + /// intentionally pause the job using + /// [PauseJobRequest][]. + /// + [pbr::OriginalName("PAUSED")] Paused = 2, + /// + /// The job is disabled by the system due to error. The user + /// cannot directly set a job to be disabled. + /// + [pbr::OriginalName("DISABLED")] Disabled = 3, + /// + /// The job state resulting from a failed [CloudScheduler.UpdateJob][] + /// operation. To recover a job from this state, retry + /// [CloudScheduler.UpdateJob][] until a successful response is received. + /// + [pbr::OriginalName("UPDATE_FAILED")] UpdateFailed = 4, + /// + /// The schedule resource is being created. + /// + [pbr::OriginalName("INITIALIZING")] Initializing = 5, + /// + /// The schedule resource is being deleted. + /// + [pbr::OriginalName("DELETING")] Deleting = 6, + } + + } + #endregion + + } + + /// + /// The data within all Runtime events. + /// + public sealed partial class RuntimeEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RuntimeEventData()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.Descriptor.MessageTypes[19]; } + } + + [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 RuntimeEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeEventData(RuntimeEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuntimeEventData Clone() { + return new RuntimeEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime payload_; + /// + /// Optional. The Runtime event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RuntimeEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RuntimeEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RuntimeEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Runtime(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Execution events. + /// + public sealed partial class ExecutionEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExecutionEventData()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.Descriptor.MessageTypes[20]; } + } + + [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 ExecutionEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExecutionEventData(ExecutionEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExecutionEventData Clone() { + return new ExecutionEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution payload_; + /// + /// Optional. The Execution event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExecutionEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExecutionEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExecutionEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Execution(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Instance events. + /// + public sealed partial class InstanceEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InstanceEventData()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.Descriptor.MessageTypes[21]; } + } + + [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 InstanceEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InstanceEventData(InstanceEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InstanceEventData Clone() { + return new InstanceEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance payload_; + /// + /// Optional. The Instance event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InstanceEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InstanceEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InstanceEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Instance(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Schedule events. + /// + public sealed partial class ScheduleEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScheduleEventData()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.Descriptor.MessageTypes[22]; } + } + + [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 ScheduleEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScheduleEventData(ScheduleEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScheduleEventData Clone() { + return new ScheduleEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule payload_; + /// + /// Optional. The Schedule event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScheduleEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScheduleEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScheduleEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Schedule(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Environment events. + /// + public sealed partial class EnvironmentEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnvironmentEventData()); + 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::Google.Events.Protobuf.Cloud.Notebooks.V1.DataReflection.Descriptor.MessageTypes[23]; } + } + + [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 EnvironmentEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnvironmentEventData(EnvironmentEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnvironmentEventData Clone() { + return new EnvironmentEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Notebooks.V1.Environment payload_; + /// + /// Optional. The Environment event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Notebooks.V1.Environment Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnvironmentEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnvironmentEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnvironmentEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Environment(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Environment(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Notebooks.V1.Environment(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Google.Events.Protobuf/Cloud/Notebooks/V1/EnvironmentEventData.g.cs b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/EnvironmentEventData.g.cs new file mode 100644 index 0000000..ead869b --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/EnvironmentEventData.g.cs @@ -0,0 +1,27 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.Notebooks.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class EnvironmentEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.notebooks.environment.v1.created"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.notebooks.environment.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Notebooks/V1/ExecutionEventData.g.cs b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/ExecutionEventData.g.cs new file mode 100644 index 0000000..39f476c --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/ExecutionEventData.g.cs @@ -0,0 +1,27 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.Notebooks.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class ExecutionEventData + { + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.notebooks.execution.v1.deleted"; + + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.notebooks.execution.v1.created"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Notebooks/V1/ExtensionAttributes.g.cs b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/ExtensionAttributes.g.cs new file mode 100644 index 0000000..74afd60 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/ExtensionAttributes.g.cs @@ -0,0 +1,84 @@ +// Copyright 2023, 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 +// +// https://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. + +using CloudNative.CloudEvents; + +namespace Google.Events.Protobuf.Cloud.Notebooks.V1 +{ + /// Extension attributes for Google.Events.Protobuf.Cloud.Notebooks.V1 events. + public static class ExtensionAttributes + { + /// + /// The resource ID of the Environment triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.notebooks.environment.v1.created + /// google.cloud.notebooks.environment.v1.deleted + /// + /// + public static CloudEventAttribute Environment { get; } = CloudEventAttribute.CreateExtension("environment", CloudEventAttributeType.String); + + /// + /// The resource ID of the Execution triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.notebooks.execution.v1.deleted + /// google.cloud.notebooks.execution.v1.created + /// + /// + public static CloudEventAttribute Execution { get; } = CloudEventAttribute.CreateExtension("execution", CloudEventAttributeType.String); + + /// + /// The resource ID of the Instance triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.notebooks.instance.v1.created + /// google.cloud.notebooks.instance.v1.deleted + /// + /// + public static CloudEventAttribute Instance { get; } = CloudEventAttribute.CreateExtension("instance", CloudEventAttributeType.String); + + /// + /// The resource ID of the Runtime triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.notebooks.runtime.v1.created + /// google.cloud.notebooks.runtime.v1.updated + /// google.cloud.notebooks.runtime.v1.deleted + /// + /// + public static CloudEventAttribute Runtime { get; } = CloudEventAttribute.CreateExtension("runtime", CloudEventAttributeType.String); + + /// + /// The resource ID of the Schedule triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.notebooks.schedule.v1.deleted + /// google.cloud.notebooks.schedule.v1.created + /// + /// + public static CloudEventAttribute Schedule { get; } = CloudEventAttribute.CreateExtension("schedule", CloudEventAttributeType.String); + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Notebooks/V1/InstanceEventData.g.cs b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/InstanceEventData.g.cs new file mode 100644 index 0000000..bea32cc --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/InstanceEventData.g.cs @@ -0,0 +1,27 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.Notebooks.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class InstanceEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.notebooks.instance.v1.created"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.notebooks.instance.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Notebooks/V1/RuntimeEventData.g.cs b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/RuntimeEventData.g.cs new file mode 100644 index 0000000..076d615 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/RuntimeEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.Notebooks.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class RuntimeEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.notebooks.runtime.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.notebooks.runtime.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.notebooks.runtime.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Notebooks/V1/ScheduleEventData.g.cs b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/ScheduleEventData.g.cs new file mode 100644 index 0000000..00ee9dd --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Notebooks/V1/ScheduleEventData.g.cs @@ -0,0 +1,27 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.Notebooks.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class ScheduleEventData + { + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.notebooks.schedule.v1.deleted"; + + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.notebooks.schedule.v1.created"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Redis/V1/Data.g.cs b/src/Google.Events.Protobuf/Cloud/Redis/V1/Data.g.cs new file mode 100644 index 0000000..91d1521 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Redis/V1/Data.g.cs @@ -0,0 +1,4041 @@ +// Copyright 2023, 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 +// +// https://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. + +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/redis/v1/data.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 Google.Events.Protobuf.Cloud.Redis.V1 { + + /// Holder for reflection information generated from google/events/cloud/redis/v1/data.proto + public static partial class DataReflection { + + #region Descriptor + /// File descriptor for google/events/cloud/redis/v1/data.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cidnb29nbGUvZXZlbnRzL2Nsb3VkL3JlZGlzL3YxL2RhdGEucHJvdG8SHGdv", + "b2dsZS5ldmVudHMuY2xvdWQucmVkaXMudjEaHmdvb2dsZS9wcm90b2J1Zi9k", + "dXJhdGlvbi5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90", + "bxobZ29vZ2xlL3R5cGUvZGF5b2Z3ZWVrLnByb3RvGhtnb29nbGUvdHlwZS90", + "aW1lb2ZkYXkucHJvdG8iJAoITm9kZUluZm8SCgoCaWQYASABKAkSDAoEem9u", + "ZRgCIAEoCSLZEQoISW5zdGFuY2USDAoEbmFtZRgBIAEoCRIUCgxkaXNwbGF5", + "X25hbWUYAiABKAkSQgoGbGFiZWxzGAMgAygLMjIuZ29vZ2xlLmV2ZW50cy5j", + "bG91ZC5yZWRpcy52MS5JbnN0YW5jZS5MYWJlbHNFbnRyeRITCgtsb2NhdGlv", + "bl9pZBgEIAEoCRIfChdhbHRlcm5hdGl2ZV9sb2NhdGlvbl9pZBgFIAEoCRIV", + "Cg1yZWRpc192ZXJzaW9uGAcgASgJEhkKEXJlc2VydmVkX2lwX3JhbmdlGAkg", + "ASgJEhoKEnNlY29uZGFyeV9pcF9yYW5nZRgeIAEoCRIMCgRob3N0GAogASgJ", + "EgwKBHBvcnQYCyABKAUSGwoTY3VycmVudF9sb2NhdGlvbl9pZBgMIAEoCRIv", + "CgtjcmVhdGVfdGltZRgNIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXASOwoFc3RhdGUYDiABKA4yLC5nb29nbGUuZXZlbnRzLmNsb3VkLnJlZGlz", + "LnYxLkluc3RhbmNlLlN0YXRlEhYKDnN0YXR1c19tZXNzYWdlGA8gASgJEk8K", + "DXJlZGlzX2NvbmZpZ3MYECADKAsyOC5nb29nbGUuZXZlbnRzLmNsb3VkLnJl", + "ZGlzLnYxLkluc3RhbmNlLlJlZGlzQ29uZmlnc0VudHJ5EjkKBHRpZXIYESAB", + "KA4yKy5nb29nbGUuZXZlbnRzLmNsb3VkLnJlZGlzLnYxLkluc3RhbmNlLlRp", + "ZXISFgoObWVtb3J5X3NpemVfZ2IYEiABKAUSGgoSYXV0aG9yaXplZF9uZXR3", + "b3JrGBQgASgJEiAKGHBlcnNpc3RlbmNlX2lhbV9pZGVudGl0eRgVIAEoCRJI", + "Cgxjb25uZWN0X21vZGUYFiABKA4yMi5nb29nbGUuZXZlbnRzLmNsb3VkLnJl", + "ZGlzLnYxLkluc3RhbmNlLkNvbm5lY3RNb2RlEhQKDGF1dGhfZW5hYmxlZBgX", + "IAEoCBJFCg9zZXJ2ZXJfY2FfY2VydHMYGSADKAsyLC5nb29nbGUuZXZlbnRz", + "LmNsb3VkLnJlZGlzLnYxLlRsc0NlcnRpZmljYXRlEl0KF3RyYW5zaXRfZW5j", + "cnlwdGlvbl9tb2RlGBogASgOMjwuZ29vZ2xlLmV2ZW50cy5jbG91ZC5yZWRp", + "cy52MS5JbnN0YW5jZS5UcmFuc2l0RW5jcnlwdGlvbk1vZGUSSwoSbWFpbnRl", + "bmFuY2VfcG9saWN5GBsgASgLMi8uZ29vZ2xlLmV2ZW50cy5jbG91ZC5yZWRp", + "cy52MS5NYWludGVuYW5jZVBvbGljeRJPChRtYWludGVuYW5jZV9zY2hlZHVs", + "ZRgcIAEoCzIxLmdvb2dsZS5ldmVudHMuY2xvdWQucmVkaXMudjEuTWFpbnRl", + "bmFuY2VTY2hlZHVsZRIVCg1yZXBsaWNhX2NvdW50GB8gASgFEjUKBW5vZGVz", + "GCAgAygLMiYuZ29vZ2xlLmV2ZW50cy5jbG91ZC5yZWRpcy52MS5Ob2RlSW5m", + "bxIVCg1yZWFkX2VuZHBvaW50GCEgASgJEhoKEnJlYWRfZW5kcG9pbnRfcG9y", + "dBgiIAEoBRJTChJyZWFkX3JlcGxpY2FzX21vZGUYIyABKA4yNy5nb29nbGUu", + "ZXZlbnRzLmNsb3VkLnJlZGlzLnYxLkluc3RhbmNlLlJlYWRSZXBsaWNhc01v", + "ZGUSHAoUY3VzdG9tZXJfbWFuYWdlZF9rZXkYJCABKAkSSwoScGVyc2lzdGVu", + "Y2VfY29uZmlnGCUgASgLMi8uZ29vZ2xlLmV2ZW50cy5jbG91ZC5yZWRpcy52", + "MS5QZXJzaXN0ZW5jZUNvbmZpZxJTChJzdXNwZW5zaW9uX3JlYXNvbnMYJiAD", + "KA4yNy5nb29nbGUuZXZlbnRzLmNsb3VkLnJlZGlzLnYxLkluc3RhbmNlLlN1", + "c3BlbnNpb25SZWFzb24SGwoTbWFpbnRlbmFuY2VfdmVyc2lvbhgnIAEoCRIm", + "Ch5hdmFpbGFibGVfbWFpbnRlbmFuY2VfdmVyc2lvbnMYKCADKAkaLQoLTGFi", + "ZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARozChFS", + "ZWRpc0NvbmZpZ3NFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6", + "AjgBIpQBCgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgwKCENSRUFU", + "SU5HEAESCQoFUkVBRFkQAhIMCghVUERBVElORxADEgwKCERFTEVUSU5HEAQS", + "DQoJUkVQQUlSSU5HEAUSDwoLTUFJTlRFTkFOQ0UQBhINCglJTVBPUlRJTkcQ", + "CBIQCgxGQUlMSU5HX09WRVIQCSI4CgRUaWVyEhQKEFRJRVJfVU5TUEVDSUZJ", + "RUQQABIJCgVCQVNJQxABEg8KC1NUQU5EQVJEX0hBEAMiWwoLQ29ubmVjdE1v", + "ZGUSHAoYQ09OTkVDVF9NT0RFX1VOU1BFQ0lGSUVEEAASEgoORElSRUNUX1BF", + "RVJJTkcQARIaChZQUklWQVRFX1NFUlZJQ0VfQUNDRVNTEAIiaQoVVHJhbnNp", + "dEVuY3J5cHRpb25Nb2RlEicKI1RSQU5TSVRfRU5DUllQVElPTl9NT0RFX1VO", + "U1BFQ0lGSUVEEAASGQoVU0VSVkVSX0FVVEhFTlRJQ0FUSU9OEAESDAoIRElT", + "QUJMRUQQAiJtChBSZWFkUmVwbGljYXNNb2RlEiIKHlJFQURfUkVQTElDQVNf", + "TU9ERV9VTlNQRUNJRklFRBAAEhoKFlJFQURfUkVQTElDQVNfRElTQUJMRUQQ", + "ARIZChVSRUFEX1JFUExJQ0FTX0VOQUJMRUQQAiJVChBTdXNwZW5zaW9uUmVh", + "c29uEiEKHVNVU1BFTlNJT05fUkVBU09OX1VOU1BFQ0lGSUVEEAASHgoaQ1VT", + "VE9NRVJfTUFOQUdFRF9LRVlfSVNTVUUQASKJBAoRUGVyc2lzdGVuY2VDb25m", + "aWcSWQoQcGVyc2lzdGVuY2VfbW9kZRgBIAEoDjI/Lmdvb2dsZS5ldmVudHMu", + "Y2xvdWQucmVkaXMudjEuUGVyc2lzdGVuY2VDb25maWcuUGVyc2lzdGVuY2VN", + "b2RlElsKE3JkYl9zbmFwc2hvdF9wZXJpb2QYAiABKA4yPi5nb29nbGUuZXZl", + "bnRzLmNsb3VkLnJlZGlzLnYxLlBlcnNpc3RlbmNlQ29uZmlnLlNuYXBzaG90", + "UGVyaW9kEjoKFnJkYl9uZXh0X3NuYXBzaG90X3RpbWUYBCABKAsyGi5nb29n", + "bGUucHJvdG9idWYuVGltZXN0YW1wEjsKF3JkYl9zbmFwc2hvdF9zdGFydF90", + "aW1lGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJKCg9QZXJz", + "aXN0ZW5jZU1vZGUSIAocUEVSU0lTVEVOQ0VfTU9ERV9VTlNQRUNJRklFRBAA", + "EgwKCERJU0FCTEVEEAESBwoDUkRCEAIidwoOU25hcHNob3RQZXJpb2QSHwob", + "U05BUFNIT1RfUEVSSU9EX1VOU1BFQ0lGSUVEEAASDAoIT05FX0hPVVIQAxIN", + "CglTSVhfSE9VUlMQBBIQCgxUV0VMVkVfSE9VUlMQBRIVChFUV0VOVFlfRk9V", + "Ul9IT1VSUxAGIuQBChFNYWludGVuYW5jZVBvbGljeRIvCgtjcmVhdGVfdGlt", + "ZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLdXBkYXRl", + "X3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhMKC2Rl", + "c2NyaXB0aW9uGAMgASgJElgKGXdlZWtseV9tYWludGVuYW5jZV93aW5kb3cY", + "BCADKAsyNS5nb29nbGUuZXZlbnRzLmNsb3VkLnJlZGlzLnYxLldlZWtseU1h", + "aW50ZW5hbmNlV2luZG93IpcBChdXZWVrbHlNYWludGVuYW5jZVdpbmRvdxIj", + "CgNkYXkYASABKA4yFi5nb29nbGUudHlwZS5EYXlPZldlZWsSKgoKc3RhcnRf", + "dGltZRgCIAEoCzIWLmdvb2dsZS50eXBlLlRpbWVPZkRheRIrCghkdXJhdGlv", + "bhgDIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbiLHAQoTTWFpbnRl", + "bmFuY2VTY2hlZHVsZRIuCgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnBy", + "b3RvYnVmLlRpbWVzdGFtcBIsCghlbmRfdGltZRgCIAEoCzIaLmdvb2dsZS5w", + "cm90b2J1Zi5UaW1lc3RhbXASFgoOY2FuX3Jlc2NoZWR1bGUYAyABKAgSOgoW", + "c2NoZWR1bGVfZGVhZGxpbmVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1", + "Zi5UaW1lc3RhbXAiowEKDlRsc0NlcnRpZmljYXRlEhUKDXNlcmlhbF9udW1i", + "ZXIYASABKAkSLwoLY3JlYXRlX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9i", + "dWYuVGltZXN0YW1wEi8KC2V4cGlyZV90aW1lGAQgASgLMhouZ29vZ2xlLnBy", + "b3RvYnVmLlRpbWVzdGFtcBIYChBzaGExX2ZpbmdlcnByaW50GAUgASgJIl0K", + "EUluc3RhbmNlRXZlbnREYXRhEjwKB3BheWxvYWQYASABKAsyJi5nb29nbGUu", + "ZXZlbnRzLmNsb3VkLnJlZGlzLnYxLkluc3RhbmNlSACIAQFCCgoIX3BheWxv", + "YWRCaqoCJUdvb2dsZS5FdmVudHMuUHJvdG9idWYuQ2xvdWQuUmVkaXMuVjHK", + "AhxHb29nbGVcRXZlbnRzXENsb3VkXFJlZGlzXFYx6gIgR29vZ2xlOjpFdmVu", + "dHM6OkNsb3VkOjpSZWRpczo6VjFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Type.DayofweekReflection.Descriptor, global::Google.Type.TimeofdayReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.NodeInfo), global::Google.Events.Protobuf.Cloud.Redis.V1.NodeInfo.Parser, new[]{ "Id", "Zone" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.Instance), global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Parser, new[]{ "Name", "DisplayName", "Labels", "LocationId", "AlternativeLocationId", "RedisVersion", "ReservedIpRange", "SecondaryIpRange", "Host", "Port", "CurrentLocationId", "CreateTime", "State", "StatusMessage", "RedisConfigs", "Tier", "MemorySizeGb", "AuthorizedNetwork", "PersistenceIamIdentity", "ConnectMode", "AuthEnabled", "ServerCaCerts", "TransitEncryptionMode", "MaintenancePolicy", "MaintenanceSchedule", "ReplicaCount", "Nodes", "ReadEndpoint", "ReadEndpointPort", "ReadReplicasMode", "CustomerManagedKey", "PersistenceConfig", "SuspensionReasons", "MaintenanceVersion", "AvailableMaintenanceVersions" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.State), typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.Tier), typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ConnectMode), typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.TransitEncryptionMode), typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ReadReplicasMode), typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.SuspensionReason) }, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig), global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Parser, new[]{ "PersistenceMode", "RdbSnapshotPeriod", "RdbNextSnapshotTime", "RdbSnapshotStartTime" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.PersistenceMode), typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.SnapshotPeriod) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenancePolicy), global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenancePolicy.Parser, new[]{ "CreateTime", "UpdateTime", "Description", "WeeklyMaintenanceWindow" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.WeeklyMaintenanceWindow), global::Google.Events.Protobuf.Cloud.Redis.V1.WeeklyMaintenanceWindow.Parser, new[]{ "Day", "StartTime", "Duration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenanceSchedule), global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenanceSchedule.Parser, new[]{ "StartTime", "EndTime", "CanReschedule", "ScheduleDeadlineTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.TlsCertificate), global::Google.Events.Protobuf.Cloud.Redis.V1.TlsCertificate.Parser, new[]{ "SerialNumber", "CreateTime", "ExpireTime", "Sha1Fingerprint" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Redis.V1.InstanceEventData), global::Google.Events.Protobuf.Cloud.Redis.V1.InstanceEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Node specific properties. + /// + public sealed partial class NodeInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NodeInfo()); + 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::Google.Events.Protobuf.Cloud.Redis.V1.DataReflection.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 NodeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NodeInfo(NodeInfo other) : this() { + id_ = other.id_; + zone_ = other.zone_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NodeInfo Clone() { + return new NodeInfo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// Output only. Node identifying string. e.g. 'node-0', 'node-1' + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "zone" field. + public const int ZoneFieldNumber = 2; + private string zone_ = ""; + /// + /// Output only. Location of the node. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Zone { + get { return zone_; } + set { + zone_ = 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 NodeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NodeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Zone != other.Zone) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Zone.Length != 0) hash ^= Zone.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Zone.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Zone); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Zone.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Zone); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Zone.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Zone); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NodeInfo other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Zone.Length != 0) { + Zone = other.Zone; + } + _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: { + Id = input.ReadString(); + break; + } + case 18: { + Zone = 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: { + Id = input.ReadString(); + break; + } + case 18: { + Zone = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A Memorystore for Redis instance. + /// + public sealed partial class Instance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Instance()); + 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::Google.Events.Protobuf.Cloud.Redis.V1.DataReflection.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 Instance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Instance(Instance other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + labels_ = other.labels_.Clone(); + locationId_ = other.locationId_; + alternativeLocationId_ = other.alternativeLocationId_; + redisVersion_ = other.redisVersion_; + reservedIpRange_ = other.reservedIpRange_; + secondaryIpRange_ = other.secondaryIpRange_; + host_ = other.host_; + port_ = other.port_; + currentLocationId_ = other.currentLocationId_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + state_ = other.state_; + statusMessage_ = other.statusMessage_; + redisConfigs_ = other.redisConfigs_.Clone(); + tier_ = other.tier_; + memorySizeGb_ = other.memorySizeGb_; + authorizedNetwork_ = other.authorizedNetwork_; + persistenceIamIdentity_ = other.persistenceIamIdentity_; + connectMode_ = other.connectMode_; + authEnabled_ = other.authEnabled_; + serverCaCerts_ = other.serverCaCerts_.Clone(); + transitEncryptionMode_ = other.transitEncryptionMode_; + maintenancePolicy_ = other.maintenancePolicy_ != null ? other.maintenancePolicy_.Clone() : null; + maintenanceSchedule_ = other.maintenanceSchedule_ != null ? other.maintenanceSchedule_.Clone() : null; + replicaCount_ = other.replicaCount_; + nodes_ = other.nodes_.Clone(); + readEndpoint_ = other.readEndpoint_; + readEndpointPort_ = other.readEndpointPort_; + readReplicasMode_ = other.readReplicasMode_; + customerManagedKey_ = other.customerManagedKey_; + persistenceConfig_ = other.persistenceConfig_ != null ? other.persistenceConfig_.Clone() : null; + suspensionReasons_ = other.suspensionReasons_.Clone(); + maintenanceVersion_ = other.maintenanceVersion_; + availableMaintenanceVersions_ = other.availableMaintenanceVersions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Instance Clone() { + return new Instance(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Unique name of the resource in this scope including project and + /// location using the form: + /// `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + /// + /// Note: Redis instances are managed and addressed at regional level so + /// location_id here refers to a GCP region; however, users may choose which + /// specific zone (or collection of zones for cross-zone instances) an instance + /// should be provisioned in. Refer to + /// [location_id][google.cloud.redis.v1.Instance.location_id] and + /// [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] + /// fields for more details. + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// An arbitrary and optional user-provided name for the instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 3; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 26); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Resource labels to represent user provided metadata + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "location_id" field. + public const int LocationIdFieldNumber = 4; + private string locationId_ = ""; + /// + /// Optional. The zone where the instance will be provisioned. If not provided, + /// the service will choose a zone from the specified region for the instance. + /// For standard tier, additional nodes will be added across multiple zones for + /// protection against zonal failures. If specified, at least one node will be + /// provisioned in this zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LocationId { + get { return locationId_; } + set { + locationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "alternative_location_id" field. + public const int AlternativeLocationIdFieldNumber = 5; + private string alternativeLocationId_ = ""; + /// + /// Optional. If specified, at least one node will be provisioned in this zone + /// in addition to the zone specified in location_id. Only applicable to + /// standard tier. If provided, it must be a different zone from the one + /// provided in [location_id]. Additional nodes beyond the first 2 will be + /// placed in zones selected by the service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AlternativeLocationId { + get { return alternativeLocationId_; } + set { + alternativeLocationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "redis_version" field. + public const int RedisVersionFieldNumber = 7; + private string redisVersion_ = ""; + /// + /// Optional. The version of Redis software. + /// If not provided, latest supported version will be used. Currently, the + /// supported values are: + /// + /// * `REDIS_3_2` for Redis 3.2 compatibility + /// * `REDIS_4_0` for Redis 4.0 compatibility (default) + /// * `REDIS_5_0` for Redis 5.0 compatibility + /// * `REDIS_6_X` for Redis 6.x compatibility + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RedisVersion { + get { return redisVersion_; } + set { + redisVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reserved_ip_range" field. + public const int ReservedIpRangeFieldNumber = 9; + private string reservedIpRange_ = ""; + /// + /// Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses + /// that are reserved for this instance. Range must + /// be unique and non-overlapping with existing subnets in an authorized + /// network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP + /// address ranges associated with this private service access connection. + /// If not provided, the service will choose an unused /29 block, for + /// example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED + /// the default block size is /28. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReservedIpRange { + get { return reservedIpRange_; } + set { + reservedIpRange_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "secondary_ip_range" field. + public const int SecondaryIpRangeFieldNumber = 30; + private string secondaryIpRange_ = ""; + /// + /// Optional. Additional IP range for node placement. Required when enabling + /// read replicas on an existing instance. For DIRECT_PEERING mode value must + /// be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode + /// value must be the name of an allocated address range associated with the + /// private service access connection, or "auto". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SecondaryIpRange { + get { return secondaryIpRange_; } + set { + secondaryIpRange_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 10; + private string host_ = ""; + /// + /// Output only. Hostname or IP address of the exposed Redis endpoint used by + /// clients to connect to the service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Host { + get { return host_; } + set { + host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "port" field. + public const int PortFieldNumber = 11; + private int port_; + /// + /// Output only. The port number of the exposed Redis endpoint. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Port { + get { return port_; } + set { + port_ = value; + } + } + + /// Field number for the "current_location_id" field. + public const int CurrentLocationIdFieldNumber = 12; + private string currentLocationId_ = ""; + /// + /// Output only. The current zone where the Redis primary node is located. In + /// basic tier, this will always be the same as [location_id]. In + /// standard tier, this can be the zone of any node in the instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CurrentLocationId { + get { return currentLocationId_; } + set { + currentLocationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 13; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the instance was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 14; + private global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.State state_ = global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.State.Unspecified; + /// + /// Output only. The current state of this instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "status_message" field. + public const int StatusMessageFieldNumber = 15; + private string statusMessage_ = ""; + /// + /// Output only. Additional information about the current status of this + /// instance, if available. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StatusMessage { + get { return statusMessage_; } + set { + statusMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "redis_configs" field. + public const int RedisConfigsFieldNumber = 16; + private static readonly pbc::MapField.Codec _map_redisConfigs_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 130); + private readonly pbc::MapField redisConfigs_ = new pbc::MapField(); + /// + /// Optional. Redis configuration parameters, according to + /// http://redis.io/topics/config. Currently, the only supported parameters + /// are: + /// + /// Redis version 3.2 and newer: + /// + /// * maxmemory-policy + /// * notify-keyspace-events + /// + /// Redis version 4.0 and newer: + /// + /// * activedefrag + /// * lfu-decay-time + /// * lfu-log-factor + /// * maxmemory-gb + /// + /// Redis version 5.0 and newer: + /// + /// * stream-node-max-bytes + /// * stream-node-max-entries + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField RedisConfigs { + get { return redisConfigs_; } + } + + /// Field number for the "tier" field. + public const int TierFieldNumber = 17; + private global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.Tier tier_ = global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.Tier.Unspecified; + /// + /// Required. The service tier of the instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.Tier Tier { + get { return tier_; } + set { + tier_ = value; + } + } + + /// Field number for the "memory_size_gb" field. + public const int MemorySizeGbFieldNumber = 18; + private int memorySizeGb_; + /// + /// Required. Redis memory size in GiB. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MemorySizeGb { + get { return memorySizeGb_; } + set { + memorySizeGb_ = value; + } + } + + /// Field number for the "authorized_network" field. + public const int AuthorizedNetworkFieldNumber = 20; + private string authorizedNetwork_ = ""; + /// + /// Optional. The full name of the Google Compute Engine + /// [network](https://cloud.google.com/vpc/docs/vpc) to which the + /// instance is connected. If left unspecified, the `default` network + /// will be used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AuthorizedNetwork { + get { return authorizedNetwork_; } + set { + authorizedNetwork_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "persistence_iam_identity" field. + public const int PersistenceIamIdentityFieldNumber = 21; + private string persistenceIamIdentity_ = ""; + /// + /// Output only. Cloud IAM identity used by import / export operations to + /// transfer data to/from Cloud Storage. Format is + /// "serviceAccount:<service_account_email>". The value may change over time + /// for a given instance so should be checked before each import/export + /// operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PersistenceIamIdentity { + get { return persistenceIamIdentity_; } + set { + persistenceIamIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "connect_mode" field. + public const int ConnectModeFieldNumber = 22; + private global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ConnectMode connectMode_ = global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ConnectMode.Unspecified; + /// + /// Optional. The network connect mode of the Redis instance. + /// If not provided, the connect mode defaults to DIRECT_PEERING. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ConnectMode ConnectMode { + get { return connectMode_; } + set { + connectMode_ = value; + } + } + + /// Field number for the "auth_enabled" field. + public const int AuthEnabledFieldNumber = 23; + private bool authEnabled_; + /// + /// Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If + /// set to "true" AUTH is enabled on the instance. Default value is "false" + /// meaning AUTH is disabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AuthEnabled { + get { return authEnabled_; } + set { + authEnabled_ = value; + } + } + + /// Field number for the "server_ca_certs" field. + public const int ServerCaCertsFieldNumber = 25; + private static readonly pb::FieldCodec _repeated_serverCaCerts_codec + = pb::FieldCodec.ForMessage(202, global::Google.Events.Protobuf.Cloud.Redis.V1.TlsCertificate.Parser); + private readonly pbc::RepeatedField serverCaCerts_ = new pbc::RepeatedField(); + /// + /// Output only. List of server CA certificates for the instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ServerCaCerts { + get { return serverCaCerts_; } + } + + /// Field number for the "transit_encryption_mode" field. + public const int TransitEncryptionModeFieldNumber = 26; + private global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.TransitEncryptionMode transitEncryptionMode_ = global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.TransitEncryptionMode.Unspecified; + /// + /// Optional. The TLS mode of the Redis instance. + /// If not provided, TLS is disabled for the instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.TransitEncryptionMode TransitEncryptionMode { + get { return transitEncryptionMode_; } + set { + transitEncryptionMode_ = value; + } + } + + /// Field number for the "maintenance_policy" field. + public const int MaintenancePolicyFieldNumber = 27; + private global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenancePolicy maintenancePolicy_; + /// + /// Optional. The maintenance policy for the instance. If not provided, + /// maintenance events can be performed at any time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenancePolicy MaintenancePolicy { + get { return maintenancePolicy_; } + set { + maintenancePolicy_ = value; + } + } + + /// Field number for the "maintenance_schedule" field. + public const int MaintenanceScheduleFieldNumber = 28; + private global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenanceSchedule maintenanceSchedule_; + /// + /// Output only. Date and time of upcoming maintenance events which have been + /// scheduled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenanceSchedule MaintenanceSchedule { + get { return maintenanceSchedule_; } + set { + maintenanceSchedule_ = value; + } + } + + /// Field number for the "replica_count" field. + public const int ReplicaCountFieldNumber = 31; + private int replicaCount_; + /// + /// Optional. The number of replica nodes. The valid range for the Standard + /// Tier with read replicas enabled is [1-5] and defaults to 2. If read + /// replicas are not enabled for a Standard Tier instance, the only valid value + /// is 1 and the default is 1. The valid value for basic tier is 0 and the + /// default is also 0. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ReplicaCount { + get { return replicaCount_; } + set { + replicaCount_ = value; + } + } + + /// Field number for the "nodes" field. + public const int NodesFieldNumber = 32; + private static readonly pb::FieldCodec _repeated_nodes_codec + = pb::FieldCodec.ForMessage(258, global::Google.Events.Protobuf.Cloud.Redis.V1.NodeInfo.Parser); + private readonly pbc::RepeatedField nodes_ = new pbc::RepeatedField(); + /// + /// Output only. Info per node. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Nodes { + get { return nodes_; } + } + + /// Field number for the "read_endpoint" field. + public const int ReadEndpointFieldNumber = 33; + private string readEndpoint_ = ""; + /// + /// Output only. Hostname or IP address of the exposed readonly Redis + /// endpoint. Standard tier only. Targets all healthy replica nodes in + /// instance. Replication is asynchronous and replica nodes will exhibit some + /// lag behind the primary. Write requests must target 'host'. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReadEndpoint { + get { return readEndpoint_; } + set { + readEndpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "read_endpoint_port" field. + public const int ReadEndpointPortFieldNumber = 34; + private int readEndpointPort_; + /// + /// Output only. The port number of the exposed readonly redis + /// endpoint. Standard tier only. Write requests should target 'port'. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ReadEndpointPort { + get { return readEndpointPort_; } + set { + readEndpointPort_ = value; + } + } + + /// Field number for the "read_replicas_mode" field. + public const int ReadReplicasModeFieldNumber = 35; + private global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ReadReplicasMode readReplicasMode_ = global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ReadReplicasMode.Unspecified; + /// + /// Optional. Read replicas mode for the instance. Defaults to + /// READ_REPLICAS_DISABLED. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ReadReplicasMode ReadReplicasMode { + get { return readReplicasMode_; } + set { + readReplicasMode_ = value; + } + } + + /// Field number for the "customer_managed_key" field. + public const int CustomerManagedKeyFieldNumber = 36; + private string customerManagedKey_ = ""; + /// + /// Optional. The KMS key reference that the customer provides when trying to + /// create the instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CustomerManagedKey { + get { return customerManagedKey_; } + set { + customerManagedKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "persistence_config" field. + public const int PersistenceConfigFieldNumber = 37; + private global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig persistenceConfig_; + /// + /// Optional. Persistence configuration parameters + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig PersistenceConfig { + get { return persistenceConfig_; } + set { + persistenceConfig_ = value; + } + } + + /// Field number for the "suspension_reasons" field. + public const int SuspensionReasonsFieldNumber = 38; + private static readonly pb::FieldCodec _repeated_suspensionReasons_codec + = pb::FieldCodec.ForEnum(306, x => (int) x, x => (global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.SuspensionReason) x); + private readonly pbc::RepeatedField suspensionReasons_ = new pbc::RepeatedField(); + /// + /// Optional. reasons that causes instance in "SUSPENDED" state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SuspensionReasons { + get { return suspensionReasons_; } + } + + /// Field number for the "maintenance_version" field. + public const int MaintenanceVersionFieldNumber = 39; + private string maintenanceVersion_ = ""; + /// + /// Optional. The self service update maintenance version. + /// The version is date based such as "20210712_00_00". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MaintenanceVersion { + get { return maintenanceVersion_; } + set { + maintenanceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "available_maintenance_versions" field. + public const int AvailableMaintenanceVersionsFieldNumber = 40; + private static readonly pb::FieldCodec _repeated_availableMaintenanceVersions_codec + = pb::FieldCodec.ForString(322); + private readonly pbc::RepeatedField availableMaintenanceVersions_ = new pbc::RepeatedField(); + /// + /// Optional. The available maintenance versions that an instance could update + /// to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AvailableMaintenanceVersions { + get { return availableMaintenanceVersions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Instance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Instance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (!Labels.Equals(other.Labels)) return false; + if (LocationId != other.LocationId) return false; + if (AlternativeLocationId != other.AlternativeLocationId) return false; + if (RedisVersion != other.RedisVersion) return false; + if (ReservedIpRange != other.ReservedIpRange) return false; + if (SecondaryIpRange != other.SecondaryIpRange) return false; + if (Host != other.Host) return false; + if (Port != other.Port) return false; + if (CurrentLocationId != other.CurrentLocationId) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (State != other.State) return false; + if (StatusMessage != other.StatusMessage) return false; + if (!RedisConfigs.Equals(other.RedisConfigs)) return false; + if (Tier != other.Tier) return false; + if (MemorySizeGb != other.MemorySizeGb) return false; + if (AuthorizedNetwork != other.AuthorizedNetwork) return false; + if (PersistenceIamIdentity != other.PersistenceIamIdentity) return false; + if (ConnectMode != other.ConnectMode) return false; + if (AuthEnabled != other.AuthEnabled) return false; + if(!serverCaCerts_.Equals(other.serverCaCerts_)) return false; + if (TransitEncryptionMode != other.TransitEncryptionMode) return false; + if (!object.Equals(MaintenancePolicy, other.MaintenancePolicy)) return false; + if (!object.Equals(MaintenanceSchedule, other.MaintenanceSchedule)) return false; + if (ReplicaCount != other.ReplicaCount) return false; + if(!nodes_.Equals(other.nodes_)) return false; + if (ReadEndpoint != other.ReadEndpoint) return false; + if (ReadEndpointPort != other.ReadEndpointPort) return false; + if (ReadReplicasMode != other.ReadReplicasMode) return false; + if (CustomerManagedKey != other.CustomerManagedKey) return false; + if (!object.Equals(PersistenceConfig, other.PersistenceConfig)) return false; + if(!suspensionReasons_.Equals(other.suspensionReasons_)) return false; + if (MaintenanceVersion != other.MaintenanceVersion) return false; + if(!availableMaintenanceVersions_.Equals(other.availableMaintenanceVersions_)) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (LocationId.Length != 0) hash ^= LocationId.GetHashCode(); + if (AlternativeLocationId.Length != 0) hash ^= AlternativeLocationId.GetHashCode(); + if (RedisVersion.Length != 0) hash ^= RedisVersion.GetHashCode(); + if (ReservedIpRange.Length != 0) hash ^= ReservedIpRange.GetHashCode(); + if (SecondaryIpRange.Length != 0) hash ^= SecondaryIpRange.GetHashCode(); + if (Host.Length != 0) hash ^= Host.GetHashCode(); + if (Port != 0) hash ^= Port.GetHashCode(); + if (CurrentLocationId.Length != 0) hash ^= CurrentLocationId.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (StatusMessage.Length != 0) hash ^= StatusMessage.GetHashCode(); + hash ^= RedisConfigs.GetHashCode(); + if (Tier != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.Tier.Unspecified) hash ^= Tier.GetHashCode(); + if (MemorySizeGb != 0) hash ^= MemorySizeGb.GetHashCode(); + if (AuthorizedNetwork.Length != 0) hash ^= AuthorizedNetwork.GetHashCode(); + if (PersistenceIamIdentity.Length != 0) hash ^= PersistenceIamIdentity.GetHashCode(); + if (ConnectMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ConnectMode.Unspecified) hash ^= ConnectMode.GetHashCode(); + if (AuthEnabled != false) hash ^= AuthEnabled.GetHashCode(); + hash ^= serverCaCerts_.GetHashCode(); + if (TransitEncryptionMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.TransitEncryptionMode.Unspecified) hash ^= TransitEncryptionMode.GetHashCode(); + if (maintenancePolicy_ != null) hash ^= MaintenancePolicy.GetHashCode(); + if (maintenanceSchedule_ != null) hash ^= MaintenanceSchedule.GetHashCode(); + if (ReplicaCount != 0) hash ^= ReplicaCount.GetHashCode(); + hash ^= nodes_.GetHashCode(); + if (ReadEndpoint.Length != 0) hash ^= ReadEndpoint.GetHashCode(); + if (ReadEndpointPort != 0) hash ^= ReadEndpointPort.GetHashCode(); + if (ReadReplicasMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ReadReplicasMode.Unspecified) hash ^= ReadReplicasMode.GetHashCode(); + if (CustomerManagedKey.Length != 0) hash ^= CustomerManagedKey.GetHashCode(); + if (persistenceConfig_ != null) hash ^= PersistenceConfig.GetHashCode(); + hash ^= suspensionReasons_.GetHashCode(); + if (MaintenanceVersion.Length != 0) hash ^= MaintenanceVersion.GetHashCode(); + hash ^= availableMaintenanceVersions_.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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + labels_.WriteTo(output, _map_labels_codec); + if (LocationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(LocationId); + } + if (AlternativeLocationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AlternativeLocationId); + } + if (RedisVersion.Length != 0) { + output.WriteRawTag(58); + output.WriteString(RedisVersion); + } + if (ReservedIpRange.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ReservedIpRange); + } + if (Host.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Host); + } + if (Port != 0) { + output.WriteRawTag(88); + output.WriteInt32(Port); + } + if (CurrentLocationId.Length != 0) { + output.WriteRawTag(98); + output.WriteString(CurrentLocationId); + } + if (createTime_ != null) { + output.WriteRawTag(106); + output.WriteMessage(CreateTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.State.Unspecified) { + output.WriteRawTag(112); + output.WriteEnum((int) State); + } + if (StatusMessage.Length != 0) { + output.WriteRawTag(122); + output.WriteString(StatusMessage); + } + redisConfigs_.WriteTo(output, _map_redisConfigs_codec); + if (Tier != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.Tier.Unspecified) { + output.WriteRawTag(136, 1); + output.WriteEnum((int) Tier); + } + if (MemorySizeGb != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(MemorySizeGb); + } + if (AuthorizedNetwork.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(AuthorizedNetwork); + } + if (PersistenceIamIdentity.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(PersistenceIamIdentity); + } + if (ConnectMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ConnectMode.Unspecified) { + output.WriteRawTag(176, 1); + output.WriteEnum((int) ConnectMode); + } + if (AuthEnabled != false) { + output.WriteRawTag(184, 1); + output.WriteBool(AuthEnabled); + } + serverCaCerts_.WriteTo(output, _repeated_serverCaCerts_codec); + if (TransitEncryptionMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.TransitEncryptionMode.Unspecified) { + output.WriteRawTag(208, 1); + output.WriteEnum((int) TransitEncryptionMode); + } + if (maintenancePolicy_ != null) { + output.WriteRawTag(218, 1); + output.WriteMessage(MaintenancePolicy); + } + if (maintenanceSchedule_ != null) { + output.WriteRawTag(226, 1); + output.WriteMessage(MaintenanceSchedule); + } + if (SecondaryIpRange.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(SecondaryIpRange); + } + if (ReplicaCount != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(ReplicaCount); + } + nodes_.WriteTo(output, _repeated_nodes_codec); + if (ReadEndpoint.Length != 0) { + output.WriteRawTag(138, 2); + output.WriteString(ReadEndpoint); + } + if (ReadEndpointPort != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(ReadEndpointPort); + } + if (ReadReplicasMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ReadReplicasMode.Unspecified) { + output.WriteRawTag(152, 2); + output.WriteEnum((int) ReadReplicasMode); + } + if (CustomerManagedKey.Length != 0) { + output.WriteRawTag(162, 2); + output.WriteString(CustomerManagedKey); + } + if (persistenceConfig_ != null) { + output.WriteRawTag(170, 2); + output.WriteMessage(PersistenceConfig); + } + suspensionReasons_.WriteTo(output, _repeated_suspensionReasons_codec); + if (MaintenanceVersion.Length != 0) { + output.WriteRawTag(186, 2); + output.WriteString(MaintenanceVersion); + } + availableMaintenanceVersions_.WriteTo(output, _repeated_availableMaintenanceVersions_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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (LocationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(LocationId); + } + if (AlternativeLocationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AlternativeLocationId); + } + if (RedisVersion.Length != 0) { + output.WriteRawTag(58); + output.WriteString(RedisVersion); + } + if (ReservedIpRange.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ReservedIpRange); + } + if (Host.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Host); + } + if (Port != 0) { + output.WriteRawTag(88); + output.WriteInt32(Port); + } + if (CurrentLocationId.Length != 0) { + output.WriteRawTag(98); + output.WriteString(CurrentLocationId); + } + if (createTime_ != null) { + output.WriteRawTag(106); + output.WriteMessage(CreateTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.State.Unspecified) { + output.WriteRawTag(112); + output.WriteEnum((int) State); + } + if (StatusMessage.Length != 0) { + output.WriteRawTag(122); + output.WriteString(StatusMessage); + } + redisConfigs_.WriteTo(ref output, _map_redisConfigs_codec); + if (Tier != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.Tier.Unspecified) { + output.WriteRawTag(136, 1); + output.WriteEnum((int) Tier); + } + if (MemorySizeGb != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(MemorySizeGb); + } + if (AuthorizedNetwork.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(AuthorizedNetwork); + } + if (PersistenceIamIdentity.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(PersistenceIamIdentity); + } + if (ConnectMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ConnectMode.Unspecified) { + output.WriteRawTag(176, 1); + output.WriteEnum((int) ConnectMode); + } + if (AuthEnabled != false) { + output.WriteRawTag(184, 1); + output.WriteBool(AuthEnabled); + } + serverCaCerts_.WriteTo(ref output, _repeated_serverCaCerts_codec); + if (TransitEncryptionMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.TransitEncryptionMode.Unspecified) { + output.WriteRawTag(208, 1); + output.WriteEnum((int) TransitEncryptionMode); + } + if (maintenancePolicy_ != null) { + output.WriteRawTag(218, 1); + output.WriteMessage(MaintenancePolicy); + } + if (maintenanceSchedule_ != null) { + output.WriteRawTag(226, 1); + output.WriteMessage(MaintenanceSchedule); + } + if (SecondaryIpRange.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(SecondaryIpRange); + } + if (ReplicaCount != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(ReplicaCount); + } + nodes_.WriteTo(ref output, _repeated_nodes_codec); + if (ReadEndpoint.Length != 0) { + output.WriteRawTag(138, 2); + output.WriteString(ReadEndpoint); + } + if (ReadEndpointPort != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(ReadEndpointPort); + } + if (ReadReplicasMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ReadReplicasMode.Unspecified) { + output.WriteRawTag(152, 2); + output.WriteEnum((int) ReadReplicasMode); + } + if (CustomerManagedKey.Length != 0) { + output.WriteRawTag(162, 2); + output.WriteString(CustomerManagedKey); + } + if (persistenceConfig_ != null) { + output.WriteRawTag(170, 2); + output.WriteMessage(PersistenceConfig); + } + suspensionReasons_.WriteTo(ref output, _repeated_suspensionReasons_codec); + if (MaintenanceVersion.Length != 0) { + output.WriteRawTag(186, 2); + output.WriteString(MaintenanceVersion); + } + availableMaintenanceVersions_.WriteTo(ref output, _repeated_availableMaintenanceVersions_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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + size += labels_.CalculateSize(_map_labels_codec); + if (LocationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LocationId); + } + if (AlternativeLocationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AlternativeLocationId); + } + if (RedisVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RedisVersion); + } + if (ReservedIpRange.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReservedIpRange); + } + if (SecondaryIpRange.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(SecondaryIpRange); + } + if (Host.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); + } + if (Port != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); + } + if (CurrentLocationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrentLocationId); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (State != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (StatusMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StatusMessage); + } + size += redisConfigs_.CalculateSize(_map_redisConfigs_codec); + if (Tier != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.Tier.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Tier); + } + if (MemorySizeGb != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MemorySizeGb); + } + if (AuthorizedNetwork.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AuthorizedNetwork); + } + if (PersistenceIamIdentity.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PersistenceIamIdentity); + } + if (ConnectMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ConnectMode.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ConnectMode); + } + if (AuthEnabled != false) { + size += 2 + 1; + } + size += serverCaCerts_.CalculateSize(_repeated_serverCaCerts_codec); + if (TransitEncryptionMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.TransitEncryptionMode.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) TransitEncryptionMode); + } + if (maintenancePolicy_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MaintenancePolicy); + } + if (maintenanceSchedule_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MaintenanceSchedule); + } + if (ReplicaCount != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ReplicaCount); + } + size += nodes_.CalculateSize(_repeated_nodes_codec); + if (ReadEndpoint.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ReadEndpoint); + } + if (ReadEndpointPort != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ReadEndpointPort); + } + if (ReadReplicasMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ReadReplicasMode.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ReadReplicasMode); + } + if (CustomerManagedKey.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(CustomerManagedKey); + } + if (persistenceConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(PersistenceConfig); + } + size += suspensionReasons_.CalculateSize(_repeated_suspensionReasons_codec); + if (MaintenanceVersion.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(MaintenanceVersion); + } + size += availableMaintenanceVersions_.CalculateSize(_repeated_availableMaintenanceVersions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Instance other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + labels_.MergeFrom(other.labels_); + if (other.LocationId.Length != 0) { + LocationId = other.LocationId; + } + if (other.AlternativeLocationId.Length != 0) { + AlternativeLocationId = other.AlternativeLocationId; + } + if (other.RedisVersion.Length != 0) { + RedisVersion = other.RedisVersion; + } + if (other.ReservedIpRange.Length != 0) { + ReservedIpRange = other.ReservedIpRange; + } + if (other.SecondaryIpRange.Length != 0) { + SecondaryIpRange = other.SecondaryIpRange; + } + if (other.Host.Length != 0) { + Host = other.Host; + } + if (other.Port != 0) { + Port = other.Port; + } + if (other.CurrentLocationId.Length != 0) { + CurrentLocationId = other.CurrentLocationId; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.State != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.State.Unspecified) { + State = other.State; + } + if (other.StatusMessage.Length != 0) { + StatusMessage = other.StatusMessage; + } + redisConfigs_.MergeFrom(other.redisConfigs_); + if (other.Tier != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.Tier.Unspecified) { + Tier = other.Tier; + } + if (other.MemorySizeGb != 0) { + MemorySizeGb = other.MemorySizeGb; + } + if (other.AuthorizedNetwork.Length != 0) { + AuthorizedNetwork = other.AuthorizedNetwork; + } + if (other.PersistenceIamIdentity.Length != 0) { + PersistenceIamIdentity = other.PersistenceIamIdentity; + } + if (other.ConnectMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ConnectMode.Unspecified) { + ConnectMode = other.ConnectMode; + } + if (other.AuthEnabled != false) { + AuthEnabled = other.AuthEnabled; + } + serverCaCerts_.Add(other.serverCaCerts_); + if (other.TransitEncryptionMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.TransitEncryptionMode.Unspecified) { + TransitEncryptionMode = other.TransitEncryptionMode; + } + if (other.maintenancePolicy_ != null) { + if (maintenancePolicy_ == null) { + MaintenancePolicy = new global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenancePolicy(); + } + MaintenancePolicy.MergeFrom(other.MaintenancePolicy); + } + if (other.maintenanceSchedule_ != null) { + if (maintenanceSchedule_ == null) { + MaintenanceSchedule = new global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenanceSchedule(); + } + MaintenanceSchedule.MergeFrom(other.MaintenanceSchedule); + } + if (other.ReplicaCount != 0) { + ReplicaCount = other.ReplicaCount; + } + nodes_.Add(other.nodes_); + if (other.ReadEndpoint.Length != 0) { + ReadEndpoint = other.ReadEndpoint; + } + if (other.ReadEndpointPort != 0) { + ReadEndpointPort = other.ReadEndpointPort; + } + if (other.ReadReplicasMode != global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ReadReplicasMode.Unspecified) { + ReadReplicasMode = other.ReadReplicasMode; + } + if (other.CustomerManagedKey.Length != 0) { + CustomerManagedKey = other.CustomerManagedKey; + } + if (other.persistenceConfig_ != null) { + if (persistenceConfig_ == null) { + PersistenceConfig = new global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig(); + } + PersistenceConfig.MergeFrom(other.PersistenceConfig); + } + suspensionReasons_.Add(other.suspensionReasons_); + if (other.MaintenanceVersion.Length != 0) { + MaintenanceVersion = other.MaintenanceVersion; + } + availableMaintenanceVersions_.Add(other.availableMaintenanceVersions_); + _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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 34: { + LocationId = input.ReadString(); + break; + } + case 42: { + AlternativeLocationId = input.ReadString(); + break; + } + case 58: { + RedisVersion = input.ReadString(); + break; + } + case 74: { + ReservedIpRange = input.ReadString(); + break; + } + case 82: { + Host = input.ReadString(); + break; + } + case 88: { + Port = input.ReadInt32(); + break; + } + case 98: { + CurrentLocationId = input.ReadString(); + break; + } + case 106: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 112: { + State = (global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.State) input.ReadEnum(); + break; + } + case 122: { + StatusMessage = input.ReadString(); + break; + } + case 130: { + redisConfigs_.AddEntriesFrom(input, _map_redisConfigs_codec); + break; + } + case 136: { + Tier = (global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.Tier) input.ReadEnum(); + break; + } + case 144: { + MemorySizeGb = input.ReadInt32(); + break; + } + case 162: { + AuthorizedNetwork = input.ReadString(); + break; + } + case 170: { + PersistenceIamIdentity = input.ReadString(); + break; + } + case 176: { + ConnectMode = (global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ConnectMode) input.ReadEnum(); + break; + } + case 184: { + AuthEnabled = input.ReadBool(); + break; + } + case 202: { + serverCaCerts_.AddEntriesFrom(input, _repeated_serverCaCerts_codec); + break; + } + case 208: { + TransitEncryptionMode = (global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.TransitEncryptionMode) input.ReadEnum(); + break; + } + case 218: { + if (maintenancePolicy_ == null) { + MaintenancePolicy = new global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenancePolicy(); + } + input.ReadMessage(MaintenancePolicy); + break; + } + case 226: { + if (maintenanceSchedule_ == null) { + MaintenanceSchedule = new global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenanceSchedule(); + } + input.ReadMessage(MaintenanceSchedule); + break; + } + case 242: { + SecondaryIpRange = input.ReadString(); + break; + } + case 248: { + ReplicaCount = input.ReadInt32(); + break; + } + case 258: { + nodes_.AddEntriesFrom(input, _repeated_nodes_codec); + break; + } + case 266: { + ReadEndpoint = input.ReadString(); + break; + } + case 272: { + ReadEndpointPort = input.ReadInt32(); + break; + } + case 280: { + ReadReplicasMode = (global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ReadReplicasMode) input.ReadEnum(); + break; + } + case 290: { + CustomerManagedKey = input.ReadString(); + break; + } + case 298: { + if (persistenceConfig_ == null) { + PersistenceConfig = new global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig(); + } + input.ReadMessage(PersistenceConfig); + break; + } + case 306: + case 304: { + suspensionReasons_.AddEntriesFrom(input, _repeated_suspensionReasons_codec); + break; + } + case 314: { + MaintenanceVersion = input.ReadString(); + break; + } + case 322: { + availableMaintenanceVersions_.AddEntriesFrom(input, _repeated_availableMaintenanceVersions_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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 34: { + LocationId = input.ReadString(); + break; + } + case 42: { + AlternativeLocationId = input.ReadString(); + break; + } + case 58: { + RedisVersion = input.ReadString(); + break; + } + case 74: { + ReservedIpRange = input.ReadString(); + break; + } + case 82: { + Host = input.ReadString(); + break; + } + case 88: { + Port = input.ReadInt32(); + break; + } + case 98: { + CurrentLocationId = input.ReadString(); + break; + } + case 106: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 112: { + State = (global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.State) input.ReadEnum(); + break; + } + case 122: { + StatusMessage = input.ReadString(); + break; + } + case 130: { + redisConfigs_.AddEntriesFrom(ref input, _map_redisConfigs_codec); + break; + } + case 136: { + Tier = (global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.Tier) input.ReadEnum(); + break; + } + case 144: { + MemorySizeGb = input.ReadInt32(); + break; + } + case 162: { + AuthorizedNetwork = input.ReadString(); + break; + } + case 170: { + PersistenceIamIdentity = input.ReadString(); + break; + } + case 176: { + ConnectMode = (global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ConnectMode) input.ReadEnum(); + break; + } + case 184: { + AuthEnabled = input.ReadBool(); + break; + } + case 202: { + serverCaCerts_.AddEntriesFrom(ref input, _repeated_serverCaCerts_codec); + break; + } + case 208: { + TransitEncryptionMode = (global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.TransitEncryptionMode) input.ReadEnum(); + break; + } + case 218: { + if (maintenancePolicy_ == null) { + MaintenancePolicy = new global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenancePolicy(); + } + input.ReadMessage(MaintenancePolicy); + break; + } + case 226: { + if (maintenanceSchedule_ == null) { + MaintenanceSchedule = new global::Google.Events.Protobuf.Cloud.Redis.V1.MaintenanceSchedule(); + } + input.ReadMessage(MaintenanceSchedule); + break; + } + case 242: { + SecondaryIpRange = input.ReadString(); + break; + } + case 248: { + ReplicaCount = input.ReadInt32(); + break; + } + case 258: { + nodes_.AddEntriesFrom(ref input, _repeated_nodes_codec); + break; + } + case 266: { + ReadEndpoint = input.ReadString(); + break; + } + case 272: { + ReadEndpointPort = input.ReadInt32(); + break; + } + case 280: { + ReadReplicasMode = (global::Google.Events.Protobuf.Cloud.Redis.V1.Instance.Types.ReadReplicasMode) input.ReadEnum(); + break; + } + case 290: { + CustomerManagedKey = input.ReadString(); + break; + } + case 298: { + if (persistenceConfig_ == null) { + PersistenceConfig = new global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig(); + } + input.ReadMessage(PersistenceConfig); + break; + } + case 306: + case 304: { + suspensionReasons_.AddEntriesFrom(ref input, _repeated_suspensionReasons_codec); + break; + } + case 314: { + MaintenanceVersion = input.ReadString(); + break; + } + case 322: { + availableMaintenanceVersions_.AddEntriesFrom(ref input, _repeated_availableMaintenanceVersions_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Instance message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Represents the different states of a Redis instance. + /// + public enum State { + /// + /// Not set. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// Redis instance is being created. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// Redis instance has been created and is fully usable. + /// + [pbr::OriginalName("READY")] Ready = 2, + /// + /// Redis instance configuration is being updated. Certain kinds of updates + /// may cause the instance to become unusable while the update is in + /// progress. + /// + [pbr::OriginalName("UPDATING")] Updating = 3, + /// + /// Redis instance is being deleted. + /// + [pbr::OriginalName("DELETING")] Deleting = 4, + /// + /// Redis instance is being repaired and may be unusable. + /// + [pbr::OriginalName("REPAIRING")] Repairing = 5, + /// + /// Maintenance is being performed on this Redis instance. + /// + [pbr::OriginalName("MAINTENANCE")] Maintenance = 6, + /// + /// Redis instance is importing data (availability may be affected). + /// + [pbr::OriginalName("IMPORTING")] Importing = 8, + /// + /// Redis instance is failing over (availability may be affected). + /// + [pbr::OriginalName("FAILING_OVER")] FailingOver = 9, + } + + /// + /// Available service tiers to choose from + /// + public enum Tier { + /// + /// Not set. + /// + [pbr::OriginalName("TIER_UNSPECIFIED")] Unspecified = 0, + /// + /// BASIC tier: standalone instance + /// + [pbr::OriginalName("BASIC")] Basic = 1, + /// + /// STANDARD_HA tier: highly available primary/replica instances + /// + [pbr::OriginalName("STANDARD_HA")] StandardHa = 3, + } + + /// + /// Available connection modes. + /// + public enum ConnectMode { + /// + /// Not set. + /// + [pbr::OriginalName("CONNECT_MODE_UNSPECIFIED")] Unspecified = 0, + /// + /// Connect via direct peering to the Memorystore for Redis hosted service. + /// + [pbr::OriginalName("DIRECT_PEERING")] DirectPeering = 1, + /// + /// Connect your Memorystore for Redis instance using Private Service + /// Access. Private services access provides an IP address range for multiple + /// Google Cloud services, including Memorystore. + /// + [pbr::OriginalName("PRIVATE_SERVICE_ACCESS")] PrivateServiceAccess = 2, + } + + /// + /// Available TLS modes. + /// + public enum TransitEncryptionMode { + /// + /// Not set. + /// + [pbr::OriginalName("TRANSIT_ENCRYPTION_MODE_UNSPECIFIED")] Unspecified = 0, + /// + /// Client to Server traffic encryption enabled with server authentication. + /// + [pbr::OriginalName("SERVER_AUTHENTICATION")] ServerAuthentication = 1, + /// + /// TLS is disabled for the instance. + /// + [pbr::OriginalName("DISABLED")] Disabled = 2, + } + + /// + /// Read replicas mode. + /// + public enum ReadReplicasMode { + /// + /// If not set, Memorystore Redis backend will default to + /// READ_REPLICAS_DISABLED. + /// + [pbr::OriginalName("READ_REPLICAS_MODE_UNSPECIFIED")] Unspecified = 0, + /// + /// If disabled, read endpoint will not be provided and the instance cannot + /// scale up or down the number of replicas. + /// + [pbr::OriginalName("READ_REPLICAS_DISABLED")] ReadReplicasDisabled = 1, + /// + /// If enabled, read endpoint will be provided and the instance can scale + /// up and down the number of replicas. Not valid for basic tier. + /// + [pbr::OriginalName("READ_REPLICAS_ENABLED")] ReadReplicasEnabled = 2, + } + + /// + /// Possible reasons for the instance to be in a "SUSPENDED" state. + /// + public enum SuspensionReason { + /// + /// Not set. + /// + [pbr::OriginalName("SUSPENSION_REASON_UNSPECIFIED")] Unspecified = 0, + /// + /// Something wrong with the CMEK key provided by customer. + /// + [pbr::OriginalName("CUSTOMER_MANAGED_KEY_ISSUE")] CustomerManagedKeyIssue = 1, + } + + } + #endregion + + } + + /// + /// Configuration of the persistence functionality. + /// + public sealed partial class PersistenceConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PersistenceConfig()); + 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::Google.Events.Protobuf.Cloud.Redis.V1.DataReflection.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 PersistenceConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PersistenceConfig(PersistenceConfig other) : this() { + persistenceMode_ = other.persistenceMode_; + rdbSnapshotPeriod_ = other.rdbSnapshotPeriod_; + rdbNextSnapshotTime_ = other.rdbNextSnapshotTime_ != null ? other.rdbNextSnapshotTime_.Clone() : null; + rdbSnapshotStartTime_ = other.rdbSnapshotStartTime_ != null ? other.rdbSnapshotStartTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PersistenceConfig Clone() { + return new PersistenceConfig(this); + } + + /// Field number for the "persistence_mode" field. + public const int PersistenceModeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.PersistenceMode persistenceMode_ = global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.PersistenceMode.Unspecified; + /// + /// Optional. Controls whether Persistence features are enabled. + /// If not provided, the existing value will be used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.PersistenceMode PersistenceMode { + get { return persistenceMode_; } + set { + persistenceMode_ = value; + } + } + + /// Field number for the "rdb_snapshot_period" field. + public const int RdbSnapshotPeriodFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.SnapshotPeriod rdbSnapshotPeriod_ = global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.SnapshotPeriod.Unspecified; + /// + /// Optional. Period between RDB snapshots. Snapshots will be attempted every + /// period starting from the provided snapshot start time. For example, a start + /// time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing + /// until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, + /// 18:45, and 00:45 the next day, and so on. If not provided, + /// TWENTY_FOUR_HOURS will be used as default. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.SnapshotPeriod RdbSnapshotPeriod { + get { return rdbSnapshotPeriod_; } + set { + rdbSnapshotPeriod_ = value; + } + } + + /// Field number for the "rdb_next_snapshot_time" field. + public const int RdbNextSnapshotTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp rdbNextSnapshotTime_; + /// + /// Output only. The next time that a snapshot attempt is scheduled to occur. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RdbNextSnapshotTime { + get { return rdbNextSnapshotTime_; } + set { + rdbNextSnapshotTime_ = value; + } + } + + /// Field number for the "rdb_snapshot_start_time" field. + public const int RdbSnapshotStartTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp rdbSnapshotStartTime_; + /// + /// Optional. Date and time that the first snapshot was/will be attempted, and + /// to which future snapshots will be aligned. If not provided, the current + /// time will be used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RdbSnapshotStartTime { + get { return rdbSnapshotStartTime_; } + set { + rdbSnapshotStartTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PersistenceConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PersistenceConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PersistenceMode != other.PersistenceMode) return false; + if (RdbSnapshotPeriod != other.RdbSnapshotPeriod) return false; + if (!object.Equals(RdbNextSnapshotTime, other.RdbNextSnapshotTime)) return false; + if (!object.Equals(RdbSnapshotStartTime, other.RdbSnapshotStartTime)) 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 (PersistenceMode != global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.PersistenceMode.Unspecified) hash ^= PersistenceMode.GetHashCode(); + if (RdbSnapshotPeriod != global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.SnapshotPeriod.Unspecified) hash ^= RdbSnapshotPeriod.GetHashCode(); + if (rdbNextSnapshotTime_ != null) hash ^= RdbNextSnapshotTime.GetHashCode(); + if (rdbSnapshotStartTime_ != null) hash ^= RdbSnapshotStartTime.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 (PersistenceMode != global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.PersistenceMode.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) PersistenceMode); + } + if (RdbSnapshotPeriod != global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.SnapshotPeriod.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) RdbSnapshotPeriod); + } + if (rdbNextSnapshotTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RdbNextSnapshotTime); + } + if (rdbSnapshotStartTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(RdbSnapshotStartTime); + } + 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 (PersistenceMode != global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.PersistenceMode.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) PersistenceMode); + } + if (RdbSnapshotPeriod != global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.SnapshotPeriod.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) RdbSnapshotPeriod); + } + if (rdbNextSnapshotTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RdbNextSnapshotTime); + } + if (rdbSnapshotStartTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(RdbSnapshotStartTime); + } + 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 (PersistenceMode != global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.PersistenceMode.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PersistenceMode); + } + if (RdbSnapshotPeriod != global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.SnapshotPeriod.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RdbSnapshotPeriod); + } + if (rdbNextSnapshotTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RdbNextSnapshotTime); + } + if (rdbSnapshotStartTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RdbSnapshotStartTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PersistenceConfig other) { + if (other == null) { + return; + } + if (other.PersistenceMode != global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.PersistenceMode.Unspecified) { + PersistenceMode = other.PersistenceMode; + } + if (other.RdbSnapshotPeriod != global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.SnapshotPeriod.Unspecified) { + RdbSnapshotPeriod = other.RdbSnapshotPeriod; + } + if (other.rdbNextSnapshotTime_ != null) { + if (rdbNextSnapshotTime_ == null) { + RdbNextSnapshotTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RdbNextSnapshotTime.MergeFrom(other.RdbNextSnapshotTime); + } + if (other.rdbSnapshotStartTime_ != null) { + if (rdbSnapshotStartTime_ == null) { + RdbSnapshotStartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RdbSnapshotStartTime.MergeFrom(other.RdbSnapshotStartTime); + } + _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: { + PersistenceMode = (global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.PersistenceMode) input.ReadEnum(); + break; + } + case 16: { + RdbSnapshotPeriod = (global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.SnapshotPeriod) input.ReadEnum(); + break; + } + case 34: { + if (rdbNextSnapshotTime_ == null) { + RdbNextSnapshotTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RdbNextSnapshotTime); + break; + } + case 42: { + if (rdbSnapshotStartTime_ == null) { + RdbSnapshotStartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RdbSnapshotStartTime); + 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: { + PersistenceMode = (global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.PersistenceMode) input.ReadEnum(); + break; + } + case 16: { + RdbSnapshotPeriod = (global::Google.Events.Protobuf.Cloud.Redis.V1.PersistenceConfig.Types.SnapshotPeriod) input.ReadEnum(); + break; + } + case 34: { + if (rdbNextSnapshotTime_ == null) { + RdbNextSnapshotTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RdbNextSnapshotTime); + break; + } + case 42: { + if (rdbSnapshotStartTime_ == null) { + RdbSnapshotStartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RdbSnapshotStartTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the PersistenceConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Available Persistence modes. + /// + public enum PersistenceMode { + /// + /// Not set. + /// + [pbr::OriginalName("PERSISTENCE_MODE_UNSPECIFIED")] Unspecified = 0, + /// + /// Persistence is disabled for the instance, + /// and any existing snapshots are deleted. + /// + [pbr::OriginalName("DISABLED")] Disabled = 1, + /// + /// RDB based Persistence is enabled. + /// + [pbr::OriginalName("RDB")] Rdb = 2, + } + + /// + /// Available snapshot periods for scheduling. + /// + public enum SnapshotPeriod { + /// + /// Not set. + /// + [pbr::OriginalName("SNAPSHOT_PERIOD_UNSPECIFIED")] Unspecified = 0, + /// + /// Snapshot every 1 hour. + /// + [pbr::OriginalName("ONE_HOUR")] OneHour = 3, + /// + /// Snapshot every 6 hours. + /// + [pbr::OriginalName("SIX_HOURS")] SixHours = 4, + /// + /// Snapshot every 12 hours. + /// + [pbr::OriginalName("TWELVE_HOURS")] TwelveHours = 5, + /// + /// Snapshot every 24 hours. + /// + [pbr::OriginalName("TWENTY_FOUR_HOURS")] TwentyFourHours = 6, + } + + } + #endregion + + } + + /// + /// Maintenance policy for an instance. + /// + public sealed partial class MaintenancePolicy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MaintenancePolicy()); + 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::Google.Events.Protobuf.Cloud.Redis.V1.DataReflection.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 MaintenancePolicy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MaintenancePolicy(MaintenancePolicy other) : this() { + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + description_ = other.description_; + weeklyMaintenanceWindow_ = other.weeklyMaintenanceWindow_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MaintenancePolicy Clone() { + return new MaintenancePolicy(this); + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time when the policy was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time when the policy was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Optional. Description of what this policy is for. Create/Update methods + /// return INVALID_ARGUMENT if the length is greater than 512. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "weekly_maintenance_window" field. + public const int WeeklyMaintenanceWindowFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_weeklyMaintenanceWindow_codec + = pb::FieldCodec.ForMessage(34, global::Google.Events.Protobuf.Cloud.Redis.V1.WeeklyMaintenanceWindow.Parser); + private readonly pbc::RepeatedField weeklyMaintenanceWindow_ = new pbc::RepeatedField(); + /// + /// Optional. Maintenance window that is applied to resources covered by this + /// policy. Minimum 1. For the current version, the maximum number of + /// weekly_window is expected to be one. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField WeeklyMaintenanceWindow { + get { return weeklyMaintenanceWindow_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MaintenancePolicy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MaintenancePolicy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (Description != other.Description) return false; + if(!weeklyMaintenanceWindow_.Equals(other.weeklyMaintenanceWindow_)) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + hash ^= weeklyMaintenanceWindow_.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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateTime); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + weeklyMaintenanceWindow_.WriteTo(output, _repeated_weeklyMaintenanceWindow_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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateTime); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + weeklyMaintenanceWindow_.WriteTo(ref output, _repeated_weeklyMaintenanceWindow_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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + size += weeklyMaintenanceWindow_.CalculateSize(_repeated_weeklyMaintenanceWindow_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MaintenancePolicy other) { + if (other == null) { + return; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.Description.Length != 0) { + Description = other.Description; + } + weeklyMaintenanceWindow_.Add(other.weeklyMaintenanceWindow_); + _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 (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 18: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + weeklyMaintenanceWindow_.AddEntriesFrom(input, _repeated_weeklyMaintenanceWindow_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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 18: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + weeklyMaintenanceWindow_.AddEntriesFrom(ref input, _repeated_weeklyMaintenanceWindow_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Time window in which disruptive maintenance updates occur. Non-disruptive + /// updates can occur inside or outside this window. + /// + public sealed partial class WeeklyMaintenanceWindow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WeeklyMaintenanceWindow()); + 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::Google.Events.Protobuf.Cloud.Redis.V1.DataReflection.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 WeeklyMaintenanceWindow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WeeklyMaintenanceWindow(WeeklyMaintenanceWindow other) : this() { + day_ = other.day_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + duration_ = other.duration_ != null ? other.duration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WeeklyMaintenanceWindow Clone() { + return new WeeklyMaintenanceWindow(this); + } + + /// Field number for the "day" field. + public const int DayFieldNumber = 1; + private global::Google.Type.DayOfWeek day_ = global::Google.Type.DayOfWeek.Unspecified; + /// + /// Required. The day of week that maintenance updates occur. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.DayOfWeek Day { + get { return day_; } + set { + day_ = value; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 2; + private global::Google.Type.TimeOfDay startTime_; + /// + /// Required. Start time of the window in UTC time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.TimeOfDay StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "duration" field. + public const int DurationFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Duration duration_; + /// + /// Output only. Duration of the maintenance window. The current window is + /// fixed at 1 hour. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration Duration { + get { return duration_; } + set { + duration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WeeklyMaintenanceWindow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WeeklyMaintenanceWindow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Day != other.Day) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(Duration, other.Duration)) 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 (Day != global::Google.Type.DayOfWeek.Unspecified) hash ^= Day.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (duration_ != null) hash ^= Duration.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 (Day != global::Google.Type.DayOfWeek.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Day); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (duration_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Duration); + } + 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 (Day != global::Google.Type.DayOfWeek.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Day); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (duration_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Duration); + } + 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 (Day != global::Google.Type.DayOfWeek.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Day); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (duration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Duration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WeeklyMaintenanceWindow other) { + if (other == null) { + return; + } + if (other.Day != global::Google.Type.DayOfWeek.Unspecified) { + Day = other.Day; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Type.TimeOfDay(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.duration_ != null) { + if (duration_ == null) { + Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + Duration.MergeFrom(other.Duration); + } + _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: { + Day = (global::Google.Type.DayOfWeek) input.ReadEnum(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Type.TimeOfDay(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (duration_ == null) { + Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Duration); + 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: { + Day = (global::Google.Type.DayOfWeek) input.ReadEnum(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Type.TimeOfDay(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (duration_ == null) { + Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Duration); + break; + } + } + } + } + #endif + + } + + /// + /// Upcoming maintenance schedule. If no maintenance is scheduled, fields are not + /// populated. + /// + public sealed partial class MaintenanceSchedule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MaintenanceSchedule()); + 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::Google.Events.Protobuf.Cloud.Redis.V1.DataReflection.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 MaintenanceSchedule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MaintenanceSchedule(MaintenanceSchedule other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + canReschedule_ = other.canReschedule_; + scheduleDeadlineTime_ = other.scheduleDeadlineTime_ != null ? other.scheduleDeadlineTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MaintenanceSchedule Clone() { + return new MaintenanceSchedule(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Output only. The start time of any upcoming scheduled maintenance for this + /// instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The end time of any upcoming scheduled maintenance for this + /// instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "can_reschedule" field. + public const int CanRescheduleFieldNumber = 3; + private bool canReschedule_; + /// + /// If the scheduled maintenance can be rescheduled, default is true. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanReschedule { + get { return canReschedule_; } + set { + canReschedule_ = value; + } + } + + /// Field number for the "schedule_deadline_time" field. + public const int ScheduleDeadlineTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp scheduleDeadlineTime_; + /// + /// Output only. The deadline that the maintenance schedule start time can not + /// go beyond, including reschedule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ScheduleDeadlineTime { + get { return scheduleDeadlineTime_; } + set { + scheduleDeadlineTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MaintenanceSchedule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MaintenanceSchedule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (CanReschedule != other.CanReschedule) return false; + if (!object.Equals(ScheduleDeadlineTime, other.ScheduleDeadlineTime)) 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 (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (CanReschedule != false) hash ^= CanReschedule.GetHashCode(); + if (scheduleDeadlineTime_ != null) hash ^= ScheduleDeadlineTime.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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (CanReschedule != false) { + output.WriteRawTag(24); + output.WriteBool(CanReschedule); + } + if (scheduleDeadlineTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ScheduleDeadlineTime); + } + 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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (CanReschedule != false) { + output.WriteRawTag(24); + output.WriteBool(CanReschedule); + } + if (scheduleDeadlineTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ScheduleDeadlineTime); + } + 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 (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (CanReschedule != false) { + size += 1 + 1; + } + if (scheduleDeadlineTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScheduleDeadlineTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MaintenanceSchedule other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.CanReschedule != false) { + CanReschedule = other.CanReschedule; + } + if (other.scheduleDeadlineTime_ != null) { + if (scheduleDeadlineTime_ == null) { + ScheduleDeadlineTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ScheduleDeadlineTime.MergeFrom(other.ScheduleDeadlineTime); + } + _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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 24: { + CanReschedule = input.ReadBool(); + break; + } + case 42: { + if (scheduleDeadlineTime_ == null) { + ScheduleDeadlineTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ScheduleDeadlineTime); + 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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 24: { + CanReschedule = input.ReadBool(); + break; + } + case 42: { + if (scheduleDeadlineTime_ == null) { + ScheduleDeadlineTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ScheduleDeadlineTime); + break; + } + } + } + } + #endif + + } + + /// + /// TlsCertificate Resource + /// + public sealed partial class TlsCertificate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TlsCertificate()); + 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::Google.Events.Protobuf.Cloud.Redis.V1.DataReflection.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 TlsCertificate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TlsCertificate(TlsCertificate other) : this() { + serialNumber_ = other.serialNumber_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + expireTime_ = other.expireTime_ != null ? other.expireTime_.Clone() : null; + sha1Fingerprint_ = other.sha1Fingerprint_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TlsCertificate Clone() { + return new TlsCertificate(this); + } + + /// Field number for the "serial_number" field. + public const int SerialNumberFieldNumber = 1; + private string serialNumber_ = ""; + /// + /// Serial number, as extracted from the certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SerialNumber { + get { return serialNumber_; } + set { + serialNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time when the certificate was created in [RFC + /// 3339](https://tools.ietf.org/html/rfc3339) format, for example + /// `2020-05-18T00:00:00.094Z`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "expire_time" field. + public const int ExpireTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp expireTime_; + /// + /// Output only. The time when the certificate expires in [RFC + /// 3339](https://tools.ietf.org/html/rfc3339) format, for example + /// `2020-05-18T00:00:00.094Z`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpireTime { + get { return expireTime_; } + set { + expireTime_ = value; + } + } + + /// Field number for the "sha1_fingerprint" field. + public const int Sha1FingerprintFieldNumber = 5; + private string sha1Fingerprint_ = ""; + /// + /// Sha1 Fingerprint of the certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sha1Fingerprint { + get { return sha1Fingerprint_; } + set { + sha1Fingerprint_ = 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 TlsCertificate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TlsCertificate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SerialNumber != other.SerialNumber) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(ExpireTime, other.ExpireTime)) return false; + if (Sha1Fingerprint != other.Sha1Fingerprint) 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 (SerialNumber.Length != 0) hash ^= SerialNumber.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (expireTime_ != null) hash ^= ExpireTime.GetHashCode(); + if (Sha1Fingerprint.Length != 0) hash ^= Sha1Fingerprint.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 (SerialNumber.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SerialNumber); + } + if (createTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreateTime); + } + if (expireTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExpireTime); + } + if (Sha1Fingerprint.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Sha1Fingerprint); + } + 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 (SerialNumber.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SerialNumber); + } + if (createTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreateTime); + } + if (expireTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExpireTime); + } + if (Sha1Fingerprint.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Sha1Fingerprint); + } + 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 (SerialNumber.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SerialNumber); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (expireTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpireTime); + } + if (Sha1Fingerprint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sha1Fingerprint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TlsCertificate other) { + if (other == null) { + return; + } + if (other.SerialNumber.Length != 0) { + SerialNumber = other.SerialNumber; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.expireTime_ != null) { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpireTime.MergeFrom(other.ExpireTime); + } + if (other.Sha1Fingerprint.Length != 0) { + Sha1Fingerprint = other.Sha1Fingerprint; + } + _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: { + SerialNumber = input.ReadString(); + break; + } + case 26: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 34: { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpireTime); + break; + } + case 42: { + Sha1Fingerprint = 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: { + SerialNumber = input.ReadString(); + break; + } + case 26: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 34: { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpireTime); + break; + } + case 42: { + Sha1Fingerprint = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Instance events. + /// + public sealed partial class InstanceEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InstanceEventData()); + 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::Google.Events.Protobuf.Cloud.Redis.V1.DataReflection.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 InstanceEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InstanceEventData(InstanceEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InstanceEventData Clone() { + return new InstanceEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Redis.V1.Instance payload_; + /// + /// Optional. The Instance event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Redis.V1.Instance Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InstanceEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InstanceEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InstanceEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Redis.V1.Instance(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Redis.V1.Instance(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.Redis.V1.Instance(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Google.Events.Protobuf/Cloud/Redis/V1/ExtensionAttributes.g.cs b/src/Google.Events.Protobuf/Cloud/Redis/V1/ExtensionAttributes.g.cs new file mode 100644 index 0000000..2e8cf2a --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Redis/V1/ExtensionAttributes.g.cs @@ -0,0 +1,36 @@ +// Copyright 2023, 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 +// +// https://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. + +using CloudNative.CloudEvents; + +namespace Google.Events.Protobuf.Cloud.Redis.V1 +{ + /// Extension attributes for Google.Events.Protobuf.Cloud.Redis.V1 events. + public static class ExtensionAttributes + { + /// + /// The resource ID of the Instance triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.redis.instance.v1.created + /// google.cloud.redis.instance.v1.updated + /// google.cloud.redis.instance.v1.deleted + /// + /// + public static CloudEventAttribute Instance { get; } = CloudEventAttribute.CreateExtension("instance", CloudEventAttributeType.String); + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Redis/V1/InstanceEventData.g.cs b/src/Google.Events.Protobuf/Cloud/Redis/V1/InstanceEventData.g.cs new file mode 100644 index 0000000..34de224 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Redis/V1/InstanceEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.Redis.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class InstanceEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.redis.instance.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.redis.instance.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.redis.instance.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/VMMigration/V1/CloneJobEventData.g.cs b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/CloneJobEventData.g.cs new file mode 100644 index 0000000..5647f9f --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/CloneJobEventData.g.cs @@ -0,0 +1,24 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.VMMigration.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class CloneJobEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.vmmigration.cloneJob.v1.created"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/VMMigration/V1/CutoverJobEventData.g.cs b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/CutoverJobEventData.g.cs new file mode 100644 index 0000000..3900d41 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/CutoverJobEventData.g.cs @@ -0,0 +1,24 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.VMMigration.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class CutoverJobEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.vmmigration.cutoverJob.v1.created"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/VMMigration/V1/Data.g.cs b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/Data.g.cs new file mode 100644 index 0000000..3acb181 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/Data.g.cs @@ -0,0 +1,18882 @@ +// Copyright 2023, 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 +// +// https://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. + +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/vmmigration/v1/data.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 Google.Events.Protobuf.Cloud.VMMigration.V1 { + + /// Holder for reflection information generated from google/events/cloud/vmmigration/v1/data.proto + public static partial class DataReflection { + + #region Descriptor + /// File descriptor for google/events/cloud/vmmigration/v1/data.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci1nb29nbGUvZXZlbnRzL2Nsb3VkL3ZtbWlncmF0aW9uL3YxL2RhdGEucHJv", + "dG8SImdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24udjEaHmdvb2ds", + "ZS9wcm90b2J1Zi9kdXJhdGlvbi5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3Rp", + "bWVzdGFtcC5wcm90bxoeZ29vZ2xlL3JwYy9lcnJvcl9kZXRhaWxzLnByb3Rv", + "Ghdnb29nbGUvcnBjL3N0YXR1cy5wcm90byKvBAoQUmVwbGljYXRpb25DeWNs", + "ZRIMCgRuYW1lGA0gASgJEhQKDGN5Y2xlX251bWJlchgKIAEoBRIuCgpzdGFy", + "dF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIsCghl", + "bmRfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASNwoU", + "dG90YWxfcGF1c2VfZHVyYXRpb24YByABKAsyGS5nb29nbGUucHJvdG9idWYu", + "RHVyYXRpb24SGAoQcHJvZ3Jlc3NfcGVyY2VudBgFIAEoBRI8CgVzdGVwcxgJ", + "IAMoCzItLmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuQ3lj", + "bGVTdGVwEkkKBXN0YXRlGAsgASgOMjouZ29vZ2xlLmV2ZW50cy5jbG91ZC52", + "bW1pZ3JhdGlvbi52MS5SZXBsaWNhdGlvbkN5Y2xlLlN0YXRlEiEKBWVycm9y", + "GAwgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSRgoId2FybmluZ3MYDiADKAsy", + "NC5nb29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLk1pZ3JhdGlv", + "bldhcm5pbmciUgoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABILCgdS", + "VU5OSU5HEAESCgoGUEFVU0VEEAISCgoGRkFJTEVEEAMSDQoJU1VDQ0VFREVE", + "EAQi9QIKCUN5Y2xlU3RlcBJjChhpbml0aWFsaXppbmdfcmVwbGljYXRpb24Y", + "AyABKAsyPy5nb29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLklu", + "aXRpYWxpemluZ1JlcGxpY2F0aW9uU3RlcEgAEkoKC3JlcGxpY2F0aW5nGAQg", + "ASgLMjMuZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5SZXBs", + "aWNhdGluZ1N0ZXBIABJRCg9wb3N0X3Byb2Nlc3NpbmcYBSABKAsyNi5nb29n", + "bGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLlBvc3RQcm9jZXNzaW5n", + "U3RlcEgAEi4KCnN0YXJ0X3RpbWUYASABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wEiwKCGVuZF90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcEIGCgRzdGVwIh0KG0luaXRpYWxpemluZ1JlcGxpY2F0aW9u", + "U3RlcCKpAQoPUmVwbGljYXRpbmdTdGVwEhMKC3RvdGFsX2J5dGVzGAEgASgD", + "EhgKEHJlcGxpY2F0ZWRfYnl0ZXMYAiABKAMSMQopbGFzdF90d29fbWludXRl", + "c19hdmVyYWdlX2J5dGVzX3Blcl9zZWNvbmQYAyABKAMSNAosbGFzdF90aGly", + "dHlfbWludXRlc19hdmVyYWdlX2J5dGVzX3Blcl9zZWNvbmQYBCABKAMiFAoS", + "UG9zdFByb2Nlc3NpbmdTdGVwIkUKD1JlcGxpY2F0aW9uU3luYxIyCg5sYXN0", + "X3N5bmNfdGltZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAi", + "owsKC01pZ3JhdGluZ1ZtEmkKHmNvbXB1dGVfZW5naW5lX3RhcmdldF9kZWZh", + "dWx0cxgaIAEoCzI/Lmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24u", + "djEuQ29tcHV0ZUVuZ2luZVRhcmdldERlZmF1bHRzSAASVwoVYXdzX3NvdXJj", + "ZV92bV9kZXRhaWxzGB0gASgLMjYuZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1p", + "Z3JhdGlvbi52MS5Bd3NTb3VyY2VWbURldGFpbHNIARIMCgRuYW1lGAEgASgJ", + "EhQKDHNvdXJjZV92bV9pZBgCIAEoCRIUCgxkaXNwbGF5X25hbWUYEiABKAkS", + "EwoLZGVzY3JpcHRpb24YAyABKAkSQgoGcG9saWN5GAggASgLMjIuZ29vZ2xl", + "LmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5TY2hlZHVsZVBvbGljeRIv", + "CgtjcmVhdGVfdGltZRgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXASLwoLdXBkYXRlX3RpbWUYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", + "ZXN0YW1wEkYKCWxhc3Rfc3luYxgLIAEoCzIzLmdvb2dsZS5ldmVudHMuY2xv", + "dWQudm1taWdyYXRpb24udjEuUmVwbGljYXRpb25TeW5jEkQKBXN0YXRlGBcg", + "ASgOMjUuZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5NaWdy", + "YXRpbmdWbS5TdGF0ZRIuCgpzdGF0ZV90aW1lGBYgASgLMhouZ29vZ2xlLnBy", + "b3RvYnVmLlRpbWVzdGFtcBJPChFjdXJyZW50X3N5bmNfaW5mbxgNIAEoCzI0", + "Lmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuUmVwbGljYXRp", + "b25DeWNsZRJUChZsYXN0X3JlcGxpY2F0aW9uX2N5Y2xlGCAgASgLMjQuZ29v", + "Z2xlLmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5SZXBsaWNhdGlvbkN5", + "Y2xlEg0KBWdyb3VwGA8gASgJEksKBmxhYmVscxgQIAMoCzI7Lmdvb2dsZS5l", + "dmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuTWlncmF0aW5nVm0uTGFiZWxz", + "RW50cnkSRwoRcmVjZW50X2Nsb25lX2pvYnMYESADKAsyLC5nb29nbGUuZXZl", + "bnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLkNsb25lSm9iEiEKBWVycm9yGBMg", + "ASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSSwoTcmVjZW50X2N1dG92ZXJfam9i", + "cxgUIAMoCzIuLmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24udjEu", + "Q3V0b3ZlckpvYhJNChBjdXRvdmVyX2ZvcmVjYXN0GCEgASgLMjMuZ29vZ2xl", + "LmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5DdXRvdmVyRm9yZWNhc3Qa", + "LQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4", + "ASK3AQoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABILCgdQRU5ESU5H", + "EAESCQoFUkVBRFkQAhIOCgpGSVJTVF9TWU5DEAMSCgoGQUNUSVZFEAQSEAoM", + "Q1VUVElOR19PVkVSEAcSCwoHQ1VUT1ZFUhAIEg4KCkZJTkFMX1NZTkMQCRIK", + "CgZQQVVTRUQQChIOCgpGSU5BTElaSU5HEAsSDQoJRklOQUxJWkVEEAwSCQoF", + "RVJST1IQDUIUChJ0YXJnZXRfdm1fZGVmYXVsdHNCEwoRc291cmNlX3ZtX2Rl", + "dGFpbHMiVAoPQ3V0b3ZlckZvcmVjYXN0EkEKHmVzdGltYXRlZF9jdXRvdmVy", + "X2pvYl9kdXJhdGlvbhgBIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlv", + "biLOBAoIQ2xvbmVKb2ISZwodY29tcHV0ZV9lbmdpbmVfdGFyZ2V0X2RldGFp", + "bHMYFCABKAsyPi5nb29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYx", + "LkNvbXB1dGVFbmdpbmVUYXJnZXREZXRhaWxzSAASLwoLY3JlYXRlX3RpbWUY", + "ASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiwKCGVuZF90aW1l", + "GBYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIMCgRuYW1lGAMg", + "ASgJEkEKBXN0YXRlGAwgASgOMjIuZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1p", + "Z3JhdGlvbi52MS5DbG9uZUpvYi5TdGF0ZRIuCgpzdGF0ZV90aW1lGA4gASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIhCgVlcnJvchgRIAEoCzIS", + "Lmdvb2dsZS5ycGMuU3RhdHVzEjwKBXN0ZXBzGBcgAygLMi0uZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5DbG9uZVN0ZXAiggEKBVN0YXRl", + "EhUKEVNUQVRFX1VOU1BFQ0lGSUVEEAASCwoHUEVORElORxABEgoKBkFDVElW", + "RRACEgoKBkZBSUxFRBADEg0KCVNVQ0NFRURFRBAEEg0KCUNBTkNFTExFRBAF", + "Eg4KCkNBTkNFTExJTkcQBhIPCgtBREFQVElOR19PUxAHQhMKEXRhcmdldF92", + "bV9kZXRhaWxzIvoCCglDbG9uZVN0ZXASSQoLYWRhcHRpbmdfb3MYAyABKAsy", + "Mi5nb29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLkFkYXB0aW5n", + "T1NTdGVwSAASVgoScHJlcGFyaW5nX3ZtX2Rpc2tzGAQgASgLMjguZ29vZ2xl", + "LmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5QcmVwYXJpbmdWTURpc2tz", + "U3RlcEgAEmQKGWluc3RhbnRpYXRpbmdfbWlncmF0ZWRfdm0YBSABKAsyPy5n", + "b29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLkluc3RhbnRpYXRp", + "bmdNaWdyYXRlZFZNU3RlcEgAEi4KCnN0YXJ0X3RpbWUYASABKAsyGi5nb29n", + "bGUucHJvdG9idWYuVGltZXN0YW1wEiwKCGVuZF90aW1lGAIgASgLMhouZ29v", + "Z2xlLnByb3RvYnVmLlRpbWVzdGFtcEIGCgRzdGVwIhAKDkFkYXB0aW5nT1NT", + "dGVwIhYKFFByZXBhcmluZ1ZNRGlza3NTdGVwIh0KG0luc3RhbnRpYXRpbmdN", + "aWdyYXRlZFZNU3RlcCKFBQoKQ3V0b3ZlckpvYhJnCh1jb21wdXRlX2VuZ2lu", + "ZV90YXJnZXRfZGV0YWlscxgOIAEoCzI+Lmdvb2dsZS5ldmVudHMuY2xvdWQu", + "dm1taWdyYXRpb24udjEuQ29tcHV0ZUVuZ2luZVRhcmdldERldGFpbHNIABIv", + "CgtjcmVhdGVfdGltZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXASLAoIZW5kX3RpbWUYECABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", + "YW1wEgwKBG5hbWUYAyABKAkSQwoFc3RhdGUYBSABKA4yNC5nb29nbGUuZXZl", + "bnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLkN1dG92ZXJKb2IuU3RhdGUSLgoK", + "c3RhdGVfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAS", + "GAoQcHJvZ3Jlc3NfcGVyY2VudBgNIAEoBRIhCgVlcnJvchgJIAEoCzISLmdv", + "b2dsZS5ycGMuU3RhdHVzEhUKDXN0YXRlX21lc3NhZ2UYCiABKAkSPgoFc3Rl", + "cHMYESADKAsyLy5nb29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYx", + "LkN1dG92ZXJTdGVwIoIBCgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAA", + "EgsKB1BFTkRJTkcQARIKCgZGQUlMRUQQAhINCglTVUNDRUVERUQQAxINCglD", + "QU5DRUxMRUQQBBIOCgpDQU5DRUxMSU5HEAUSCgoGQUNUSVZFEAYSDwoLQURB", + "UFRJTkdfT1MQB0ITChF0YXJnZXRfdm1fZGV0YWlscyK6BAoLQ3V0b3ZlclN0", + "ZXASWgoacHJldmlvdXNfcmVwbGljYXRpb25fY3ljbGUYAyABKAsyNC5nb29n", + "bGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLlJlcGxpY2F0aW9uQ3lj", + "bGVIABJfChdzaHV0dGluZ19kb3duX3NvdXJjZV92bRgEIAEoCzI8Lmdvb2ds", + "ZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuU2h1dHRpbmdEb3duU291", + "cmNlVk1TdGVwSAASSgoKZmluYWxfc3luYxgFIAEoCzI0Lmdvb2dsZS5ldmVu", + "dHMuY2xvdWQudm1taWdyYXRpb24udjEuUmVwbGljYXRpb25DeWNsZUgAElYK", + "EnByZXBhcmluZ192bV9kaXNrcxgGIAEoCzI4Lmdvb2dsZS5ldmVudHMuY2xv", + "dWQudm1taWdyYXRpb24udjEuUHJlcGFyaW5nVk1EaXNrc1N0ZXBIABJkChlp", + "bnN0YW50aWF0aW5nX21pZ3JhdGVkX3ZtGAcgASgLMj8uZ29vZ2xlLmV2ZW50", + "cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5JbnN0YW50aWF0aW5nTWlncmF0ZWRW", + "TVN0ZXBIABIuCgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcBIsCghlbmRfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1", + "Zi5UaW1lc3RhbXBCBgoEc3RlcCIaChhTaHV0dGluZ0Rvd25Tb3VyY2VWTVN0", + "ZXAipgMKBlNvdXJjZRJJCgZ2bXdhcmUYCiABKAsyNy5nb29nbGUuZXZlbnRz", + "LmNsb3VkLnZtbWlncmF0aW9uLnYxLlZtd2FyZVNvdXJjZURldGFpbHNIABJD", + "CgNhd3MYDCABKAsyNC5nb29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9u", + "LnYxLkF3c1NvdXJjZURldGFpbHNIABIMCgRuYW1lGAEgASgJEi8KC2NyZWF0", + "ZV90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgt1", + "cGRhdGVfdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAS", + "RgoGbGFiZWxzGAQgAygLMjYuZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1pZ3Jh", + "dGlvbi52MS5Tb3VyY2UuTGFiZWxzRW50cnkSEwoLZGVzY3JpcHRpb24YBiAB", + "KAkaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJ", + "OgI4AUIQCg5zb3VyY2VfZGV0YWlscyJuChNWbXdhcmVTb3VyY2VEZXRhaWxz", + "EhAKCHVzZXJuYW1lGAEgASgJEhIKCnZjZW50ZXJfaXAYAyABKAkSEgoKdGh1", + "bWJwcmludBgEIAEoCRIdChVyZXNvbHZlZF92Y2VudGVyX2hvc3QYBSABKAki", + "9wUKEEF3c1NvdXJjZURldGFpbHMSZQoQYWNjZXNzX2tleV9jcmVkcxgLIAEo", + "CzJJLmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuQXdzU291", + "cmNlRGV0YWlscy5BY2Nlc3NLZXlDcmVkZW50aWFsc0gAEhIKCmF3c19yZWdp", + "b24YAyABKAkSSQoFc3RhdGUYBCABKA4yOi5nb29nbGUuZXZlbnRzLmNsb3Vk", + "LnZtbWlncmF0aW9uLnYxLkF3c1NvdXJjZURldGFpbHMuU3RhdGUSIQoFZXJy", + "b3IYBSABKAsyEi5nb29nbGUucnBjLlN0YXR1cxJUChJpbnZlbnRvcnlfdGFn", + "X2xpc3QYCiADKAsyOC5nb29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9u", + "LnYxLkF3c1NvdXJjZURldGFpbHMuVGFnEiYKHmludmVudG9yeV9zZWN1cml0", + "eV9ncm91cF9uYW1lcxgHIAMoCRJ7Ch1taWdyYXRpb25fcmVzb3VyY2VzX3Vz", + "ZXJfdGFncxgIIAMoCzJULmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRp", + "b24udjEuQXdzU291cmNlRGV0YWlscy5NaWdyYXRpb25SZXNvdXJjZXNVc2Vy", + "VGFnc0VudHJ5EhEKCXB1YmxpY19pcBgJIAEoCRotChRBY2Nlc3NLZXlDcmVk", + "ZW50aWFscxIVCg1hY2Nlc3Nfa2V5X2lkGAEgASgJGiEKA1RhZxILCgNrZXkY", + "ASABKAkSDQoFdmFsdWUYAiABKAkaQQofTWlncmF0aW9uUmVzb3VyY2VzVXNl", + "clRhZ3NFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIkMK", + "BVN0YXRlEhUKEVNUQVRFX1VOU1BFQ0lGSUVEEAASCwoHUEVORElORxABEgoK", + "BkZBSUxFRBACEgoKBkFDVElWRRADQhIKEGNyZWRlbnRpYWxzX3R5cGUitgUK", + "E0RhdGFjZW50ZXJDb25uZWN0b3ISLwoLY3JlYXRlX3RpbWUYASABKAsyGi5n", + "b29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC3VwZGF0ZV90aW1lGAIgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIMCgRuYW1lGAMgASgJEhcK", + "D3JlZ2lzdHJhdGlvbl9pZBgMIAEoCRIXCg9zZXJ2aWNlX2FjY291bnQYBSAB", + "KAkSDwoHdmVyc2lvbhgGIAEoCRIOCgZidWNrZXQYCiABKAkSTAoFc3RhdGUY", + "ByABKA4yPS5nb29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLkRh", + "dGFjZW50ZXJDb25uZWN0b3IuU3RhdGUSLgoKc3RhdGVfdGltZRgIIAEoCzIa", + "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASIQoFZXJyb3IYCyABKAsyEi5n", + "b29nbGUucnBjLlN0YXR1cxIoCiBhcHBsaWFuY2VfaW5mcmFzdHJ1Y3R1cmVf", + "dmVyc2lvbhgNIAEoCRIiChphcHBsaWFuY2Vfc29mdHdhcmVfdmVyc2lvbhgO", + "IAEoCRJQChJhdmFpbGFibGVfdmVyc2lvbnMYDyABKAsyNC5nb29nbGUuZXZl", + "bnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLkF2YWlsYWJsZVVwZGF0ZXMSSQoO", + "dXBncmFkZV9zdGF0dXMYECABKAsyMS5nb29nbGUuZXZlbnRzLmNsb3VkLnZt", + "bWlncmF0aW9uLnYxLlVwZ3JhZGVTdGF0dXMiUAoFU3RhdGUSFQoRU1RBVEVf", + "VU5TUEVDSUZJRUQQABILCgdQRU5ESU5HEAESCwoHT0ZGTElORRACEgoKBkZB", + "SUxFRBADEgoKBkFDVElWRRAEIp0CCg1VcGdyYWRlU3RhdHVzEg8KB3ZlcnNp", + "b24YASABKAkSRgoFc3RhdGUYAiABKA4yNy5nb29nbGUuZXZlbnRzLmNsb3Vk", + "LnZtbWlncmF0aW9uLnYxLlVwZ3JhZGVTdGF0dXMuU3RhdGUSIQoFZXJyb3IY", + "AyABKAsyEi5nb29nbGUucnBjLlN0YXR1cxIuCgpzdGFydF90aW1lGAQgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIYChBwcmV2aW91c192ZXJz", + "aW9uGAUgASgJIkYKBVN0YXRlEhUKEVNUQVRFX1VOU1BFQ0lGSUVEEAASCwoH", + "UlVOTklORxABEgoKBkZBSUxFRBACEg0KCVNVQ0NFRURFRBADIrkBChBBdmFp", + "bGFibGVVcGRhdGVzElYKGG5ld19kZXBsb3lhYmxlX2FwcGxpYW5jZRgBIAEo", + "CzI0Lmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuQXBwbGlh", + "bmNlVmVyc2lvbhJNCg9pbl9wbGFjZV91cGRhdGUYAiABKAsyNC5nb29nbGUu", + "ZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLkFwcGxpYW5jZVZlcnNpb24i", + "XQoQQXBwbGlhbmNlVmVyc2lvbhIPCgd2ZXJzaW9uGAEgASgJEgsKA3VyaRgC", + "IAEoCRIQCghjcml0aWNhbBgDIAEoCBIZChFyZWxlYXNlX25vdGVzX3VyaRgE", + "IAEoCSKhBAoPVm13YXJlVm1EZXRhaWxzEg0KBXZtX2lkGAEgASgJEhUKDWRh", + "dGFjZW50ZXJfaWQYAiABKAkSHgoWZGF0YWNlbnRlcl9kZXNjcmlwdGlvbhgD", + "IAEoCRIMCgR1dWlkGAQgASgJEhQKDGRpc3BsYXlfbmFtZRgFIAEoCRJTCgtw", + "b3dlcl9zdGF0ZRgGIAEoDjI+Lmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdy", + "YXRpb24udjEuVm13YXJlVm1EZXRhaWxzLlBvd2VyU3RhdGUSEQoJY3B1X2Nv", + "dW50GAcgASgFEhEKCW1lbW9yeV9tYhgIIAEoBRISCgpkaXNrX2NvdW50GAkg", + "ASgFEhwKFGNvbW1pdHRlZF9zdG9yYWdlX21iGAwgASgDEhkKEWd1ZXN0X2Rl", + "c2NyaXB0aW9uGAsgASgJElMKC2Jvb3Rfb3B0aW9uGA0gASgOMj4uZ29vZ2xl", + "LmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5WbXdhcmVWbURldGFpbHMu", + "Qm9vdE9wdGlvbiJJCgpQb3dlclN0YXRlEhsKF1BPV0VSX1NUQVRFX1VOU1BF", + "Q0lGSUVEEAASBgoCT04QARIHCgNPRkYQAhINCglTVVNQRU5ERUQQAyI8CgpC", + "b290T3B0aW9uEhsKF0JPT1RfT1BUSU9OX1VOU1BFQ0lGSUVEEAASBwoDRUZJ", + "EAESCAoEQklPUxACIvcEChFVdGlsaXphdGlvblJlcG9ydBIMCgRuYW1lGAEg", + "ASgJEhQKDGRpc3BsYXlfbmFtZRgCIAEoCRJKCgVzdGF0ZRgDIAEoDjI7Lmdv", + "b2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuVXRpbGl6YXRpb25S", + "ZXBvcnQuU3RhdGUSLgoKc3RhdGVfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90", + "b2J1Zi5UaW1lc3RhbXASIQoFZXJyb3IYBSABKAsyEi5nb29nbGUucnBjLlN0", + "YXR1cxIvCgtjcmVhdGVfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXASUwoKdGltZV9mcmFtZRgHIAEoDjI/Lmdvb2dsZS5ldmVudHMu", + "Y2xvdWQudm1taWdyYXRpb24udjEuVXRpbGl6YXRpb25SZXBvcnQuVGltZUZy", + "YW1lEjIKDmZyYW1lX2VuZF90aW1lGAggASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcBIQCgh2bV9jb3VudBgJIAEoBRJCCgN2bXMYCiADKAsyNS5n", + "b29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLlZtVXRpbGl6YXRp", + "b25JbmZvIkcKBVN0YXRlEhUKEVNUQVRFX1VOU1BFQ0lGSUVEEAASDAoIQ1JF", + "QVRJTkcQARINCglTVUNDRUVERUQQAhIKCgZGQUlMRUQQAyJGCglUaW1lRnJh", + "bWUSGgoWVElNRV9GUkFNRV9VTlNQRUNJRklFRBAAEggKBFdFRUsQARIJCgVN", + "T05USBACEggKBFlFQVIQAyLQAQoRVm1VdGlsaXphdGlvbkluZm8SUAoRdm13", + "YXJlX3ZtX2RldGFpbHMYASABKAsyMy5nb29nbGUuZXZlbnRzLmNsb3VkLnZt", + "bWlncmF0aW9uLnYxLlZtd2FyZVZtRGV0YWlsc0gAEg0KBXZtX2lkGAMgASgJ", + "Ek0KC3V0aWxpemF0aW9uGAIgASgLMjguZ29vZ2xlLmV2ZW50cy5jbG91ZC52", + "bW1pZ3JhdGlvbi52MS5WbVV0aWxpemF0aW9uTWV0cmljc0ILCglWbURldGFp", + "bHMimAIKFFZtVXRpbGl6YXRpb25NZXRyaWNzEhcKD2NwdV9tYXhfcGVyY2Vu", + "dBgJIAEoBRIbChNjcHVfYXZlcmFnZV9wZXJjZW50GAogASgFEhoKEm1lbW9y", + "eV9tYXhfcGVyY2VudBgLIAEoBRIeChZtZW1vcnlfYXZlcmFnZV9wZXJjZW50", + "GAwgASgFEh0KFWRpc2tfaW9fcmF0ZV9tYXhfa2JwcxgNIAEoAxIhChlkaXNr", + "X2lvX3JhdGVfYXZlcmFnZV9rYnBzGA4gASgDEiMKG25ldHdvcmtfdGhyb3Vn", + "aHB1dF9tYXhfa2JwcxgPIAEoAxInCh9uZXR3b3JrX3Rocm91Z2hwdXRfYXZl", + "cmFnZV9rYnBzGBAgASgDIv4HChtDb21wdXRlRW5naW5lVGFyZ2V0RGVmYXVs", + "dHMSDwoHdm1fbmFtZRgBIAEoCRIWCg50YXJnZXRfcHJvamVjdBgCIAEoCRIM", + "CgR6b25lGAMgASgJEhsKE21hY2hpbmVfdHlwZV9zZXJpZXMYBCABKAkSFAoM", + "bWFjaGluZV90eXBlGAUgASgJEhQKDG5ldHdvcmtfdGFncxgGIAMoCRJQChJu", + "ZXR3b3JrX2ludGVyZmFjZXMYByADKAsyNC5nb29nbGUuZXZlbnRzLmNsb3Vk", + "LnZtbWlncmF0aW9uLnYxLk5ldHdvcmtJbnRlcmZhY2USFwoPc2VydmljZV9h", + "Y2NvdW50GAggASgJEkwKCWRpc2tfdHlwZRgJIAEoDjI5Lmdvb2dsZS5ldmVu", + "dHMuY2xvdWQudm1taWdyYXRpb24udjEuQ29tcHV0ZUVuZ2luZURpc2tUeXBl", + "ElsKBmxhYmVscxgKIAMoCzJLLmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdy", + "YXRpb24udjEuQ29tcHV0ZUVuZ2luZVRhcmdldERlZmF1bHRzLkxhYmVsc0Vu", + "dHJ5ElIKDGxpY2Vuc2VfdHlwZRgLIAEoDjI8Lmdvb2dsZS5ldmVudHMuY2xv", + "dWQudm1taWdyYXRpb24udjEuQ29tcHV0ZUVuZ2luZUxpY2Vuc2VUeXBlEksK", + "D2FwcGxpZWRfbGljZW5zZRgMIAEoCzIyLmdvb2dsZS5ldmVudHMuY2xvdWQu", + "dm1taWdyYXRpb24udjEuQXBwbGllZExpY2Vuc2USUQoSY29tcHV0ZV9zY2hl", + "ZHVsaW5nGA0gASgLMjUuZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlv", + "bi52MS5Db21wdXRlU2NoZWR1bGluZxITCgtzZWN1cmVfYm9vdBgOIAEoCBJQ", + "Cgtib290X29wdGlvbhgPIAEoDjI7Lmdvb2dsZS5ldmVudHMuY2xvdWQudm1t", + "aWdyYXRpb24udjEuQ29tcHV0ZUVuZ2luZUJvb3RPcHRpb24SXwoIbWV0YWRh", + "dGEYECADKAsyTS5nb29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYx", + "LkNvbXB1dGVFbmdpbmVUYXJnZXREZWZhdWx0cy5NZXRhZGF0YUVudHJ5EhsK", + "E2FkZGl0aW9uYWxfbGljZW5zZXMYESADKAkSEAoIaG9zdG5hbWUYEiABKAka", + "LQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4", + "ARovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEo", + "CToCOAEi9AcKGkNvbXB1dGVFbmdpbmVUYXJnZXREZXRhaWxzEg8KB3ZtX25h", + "bWUYASABKAkSDwoHcHJvamVjdBgCIAEoCRIMCgR6b25lGAMgASgJEhsKE21h", + "Y2hpbmVfdHlwZV9zZXJpZXMYBCABKAkSFAoMbWFjaGluZV90eXBlGAUgASgJ", + "EhQKDG5ldHdvcmtfdGFncxgGIAMoCRJQChJuZXR3b3JrX2ludGVyZmFjZXMY", + "ByADKAsyNC5nb29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLk5l", + "dHdvcmtJbnRlcmZhY2USFwoPc2VydmljZV9hY2NvdW50GAggASgJEkwKCWRp", + "c2tfdHlwZRgJIAEoDjI5Lmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRp", + "b24udjEuQ29tcHV0ZUVuZ2luZURpc2tUeXBlEloKBmxhYmVscxgKIAMoCzJK", + "Lmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuQ29tcHV0ZUVu", + "Z2luZVRhcmdldERldGFpbHMuTGFiZWxzRW50cnkSUgoMbGljZW5zZV90eXBl", + "GAsgASgOMjwuZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5D", + "b21wdXRlRW5naW5lTGljZW5zZVR5cGUSSwoPYXBwbGllZF9saWNlbnNlGAwg", + "ASgLMjIuZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5BcHBs", + "aWVkTGljZW5zZRJRChJjb21wdXRlX3NjaGVkdWxpbmcYDSABKAsyNS5nb29n", + "bGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9uLnYxLkNvbXB1dGVTY2hlZHVs", + "aW5nEhMKC3NlY3VyZV9ib290GA4gASgIElAKC2Jvb3Rfb3B0aW9uGA8gASgO", + "MjsuZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5Db21wdXRl", + "RW5naW5lQm9vdE9wdGlvbhJeCghtZXRhZGF0YRgQIAMoCzJMLmdvb2dsZS5l", + "dmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuQ29tcHV0ZUVuZ2luZVRhcmdl", + "dERldGFpbHMuTWV0YWRhdGFFbnRyeRIbChNhZGRpdGlvbmFsX2xpY2Vuc2Vz", + "GBEgAygJEhAKCGhvc3RuYW1lGBIgASgJGi0KC0xhYmVsc0VudHJ5EgsKA2tl", + "eRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaLwoNTWV0YWRhdGFFbnRyeRIL", + "CgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBImEKEE5ldHdvcmtJbnRl", + "cmZhY2USDwoHbmV0d29yaxgBIAEoCRISCgpzdWJuZXR3b3JrGAIgASgJEhMK", + "C2ludGVybmFsX2lwGAMgASgJEhMKC2V4dGVybmFsX2lwGAQgASgJIqcBCg5B", + "cHBsaWVkTGljZW5zZRJFCgR0eXBlGAEgASgOMjcuZ29vZ2xlLmV2ZW50cy5j", + "bG91ZC52bW1pZ3JhdGlvbi52MS5BcHBsaWVkTGljZW5zZS5UeXBlEhIKCm9z", + "X2xpY2Vuc2UYAiABKAkiOgoEVHlwZRIUChBUWVBFX1VOU1BFQ0lGSUVEEAAS", + "CAoETk9ORRABEggKBFBBWUcQAhIICgRCWU9MEAMixgEKFlNjaGVkdWxpbmdO", + "b2RlQWZmaW5pdHkSCwoDa2V5GAEgASgJElUKCG9wZXJhdG9yGAIgASgOMkMu", + "Z29vZ2xlLmV2ZW50cy5jbG91ZC52bW1pZ3JhdGlvbi52MS5TY2hlZHVsaW5n", + "Tm9kZUFmZmluaXR5Lk9wZXJhdG9yEg4KBnZhbHVlcxgDIAMoCSI4CghPcGVy", + "YXRvchIYChRPUEVSQVRPUl9VTlNQRUNJRklFRBAAEgYKAklOEAESCgoGTk9U", + "X0lOEAIi8gMKEUNvbXB1dGVTY2hlZHVsaW5nEmQKE29uX2hvc3RfbWFpbnRl", + "bmFuY2UYASABKA4yRy5nb29nbGUuZXZlbnRzLmNsb3VkLnZtbWlncmF0aW9u", + "LnYxLkNvbXB1dGVTY2hlZHVsaW5nLk9uSG9zdE1haW50ZW5hbmNlElcKDHJl", + "c3RhcnRfdHlwZRgFIAEoDjJBLmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdy", + "YXRpb24udjEuQ29tcHV0ZVNjaGVkdWxpbmcuUmVzdGFydFR5cGUSUwoPbm9k", + "ZV9hZmZpbml0aWVzGAMgAygLMjouZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1p", + "Z3JhdGlvbi52MS5TY2hlZHVsaW5nTm9kZUFmZmluaXR5EhUKDW1pbl9ub2Rl", + "X2NwdXMYBCABKAUiVAoRT25Ib3N0TWFpbnRlbmFuY2USIwofT05fSE9TVF9N", + "QUlOVEVOQU5DRV9VTlNQRUNJRklFRBAAEg0KCVRFUk1JTkFURRABEgsKB01J", + "R1JBVEUQAiJcCgtSZXN0YXJ0VHlwZRIcChhSRVNUQVJUX1RZUEVfVU5TUEVD", + "SUZJRUQQABIVChFBVVRPTUFUSUNfUkVTVEFSVBABEhgKFE5PX0FVVE9NQVRJ", + "Q19SRVNUQVJUEAIiXgoOU2NoZWR1bGVQb2xpY3kSMAoNaWRsZV9kdXJhdGlv", + "bhgBIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIaChJza2lwX29z", + "X2FkYXB0YXRpb24YAiABKAgipQEKDVRhcmdldFByb2plY3QSDAoEbmFtZRgB", + "IAEoCRIPCgdwcm9qZWN0GAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJEi8K", + "C2NyZWF0ZV90aW1lGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", + "cBIvCgt1cGRhdGVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXAiogEKBUdyb3VwEgwKBG5hbWUYASABKAkSLwoLY3JlYXRlX3RpbWUY", + "AiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC3VwZGF0ZV90", + "aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBITCgtkZXNj", + "cmlwdGlvbhgEIAEoCRIUCgxkaXNwbGF5X25hbWUYBSABKAki7gIKEE1pZ3Jh", + "dGlvbldhcm5pbmcSTgoEY29kZRgBIAEoDjJALmdvb2dsZS5ldmVudHMuY2xv", + "dWQudm1taWdyYXRpb24udjEuTWlncmF0aW9uV2FybmluZy5XYXJuaW5nQ29k", + "ZRI1Cg93YXJuaW5nX21lc3NhZ2UYAiABKAsyHC5nb29nbGUucnBjLkxvY2Fs", + "aXplZE1lc3NhZ2USMQoLYWN0aW9uX2l0ZW0YAyABKAsyHC5nb29nbGUucnBj", + "LkxvY2FsaXplZE1lc3NhZ2USKQoKaGVscF9saW5rcxgEIAMoCzIVLmdvb2ds", + "ZS5ycGMuSGVscC5MaW5rEjAKDHdhcm5pbmdfdGltZRgFIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXAiQwoLV2FybmluZ0NvZGUSHAoYV0FSTklO", + "R19DT0RFX1VOU1BFQ0lGSUVEEAASFgoSQURBUFRBVElPTl9XQVJOSU5HEAEi", + "4gIKEkF3c1NvdXJjZVZtRGV0YWlscxJRCghmaXJtd2FyZRgBIAEoDjI/Lmdv", + "b2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuQXdzU291cmNlVm1E", + "ZXRhaWxzLkZpcm13YXJlEh8KF2NvbW1pdHRlZF9zdG9yYWdlX2J5dGVzGAIg", + "ASgDElQKBWRpc2tzGAMgAygLMkUuZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1p", + "Z3JhdGlvbi52MS5Bd3NTb3VyY2VWbURldGFpbHMuQXdzRGlza0RldGFpbHMa", + "SQoOQXdzRGlza0RldGFpbHMSEwoLZGlza19udW1iZXIYASABKAUSEQoJdm9s", + "dW1lX2lkGAIgASgJEg8KB3NpemVfZ2IYAyABKAMiNwoIRmlybXdhcmUSGAoU", + "RklSTVdBUkVfVU5TUEVDSUZJRUQQABIHCgNFRkkQARIICgRCSU9TEAIidQoa", + "VXRpbGl6YXRpb25SZXBvcnRFdmVudERhdGESSwoHcGF5bG9hZBgBIAEoCzI1", + "Lmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuVXRpbGl6YXRp", + "b25SZXBvcnRIAIgBAUIKCghfcGF5bG9hZCJdCg5Hcm91cEV2ZW50RGF0YRI/", + "CgdwYXlsb2FkGAEgASgLMikuZ29vZ2xlLmV2ZW50cy5jbG91ZC52bW1pZ3Jh", + "dGlvbi52MS5Hcm91cEgAiAEBQgoKCF9wYXlsb2FkIlIKEUNsb25lSm9iRXZl", + "bnREYXRhEj0KB3BheWxvYWQYASABKAsyLC5nb29nbGUuZXZlbnRzLmNsb3Vk", + "LnZtbWlncmF0aW9uLnYxLkNsb25lSm9iInkKHERhdGFjZW50ZXJDb25uZWN0", + "b3JFdmVudERhdGESTQoHcGF5bG9hZBgBIAEoCzI3Lmdvb2dsZS5ldmVudHMu", + "Y2xvdWQudm1taWdyYXRpb24udjEuRGF0YWNlbnRlckNvbm5lY3RvckgAiAEB", + "QgoKCF9wYXlsb2FkIm0KFlRhcmdldFByb2plY3RFdmVudERhdGESRwoHcGF5", + "bG9hZBgBIAEoCzIxLmdvb2dsZS5ldmVudHMuY2xvdWQudm1taWdyYXRpb24u", + "djEuVGFyZ2V0UHJvamVjdEgAiAEBQgoKCF9wYXlsb2FkIlYKE0N1dG92ZXJK", + "b2JFdmVudERhdGESPwoHcGF5bG9hZBgBIAEoCzIuLmdvb2dsZS5ldmVudHMu", + "Y2xvdWQudm1taWdyYXRpb24udjEuQ3V0b3ZlckpvYiJfCg9Tb3VyY2VFdmVu", + "dERhdGESQAoHcGF5bG9hZBgBIAEoCzIqLmdvb2dsZS5ldmVudHMuY2xvdWQu", + "dm1taWdyYXRpb24udjEuU291cmNlSACIAQFCCgoIX3BheWxvYWQiaQoUTWln", + "cmF0aW5nVm1FdmVudERhdGESRQoHcGF5bG9hZBgBIAEoCzIvLmdvb2dsZS5l", + "dmVudHMuY2xvdWQudm1taWdyYXRpb24udjEuTWlncmF0aW5nVm1IAIgBAUIK", + "CghfcGF5bG9hZCqxAQoVQ29tcHV0ZUVuZ2luZURpc2tUeXBlEigKJENPTVBV", + "VEVfRU5HSU5FX0RJU0tfVFlQRV9VTlNQRUNJRklFRBAAEiUKIUNPTVBVVEVf", + "RU5HSU5FX0RJU0tfVFlQRV9TVEFOREFSRBABEiAKHENPTVBVVEVfRU5HSU5F", + "X0RJU0tfVFlQRV9TU0QQAhIlCiFDT01QVVRFX0VOR0lORV9ESVNLX1RZUEVf", + "QkFMQU5DRUQQAyqPAQoYQ29tcHV0ZUVuZ2luZUxpY2Vuc2VUeXBlEicKI0NP", + "TVBVVEVfRU5HSU5FX0xJQ0VOU0VfVFlQRV9ERUZBVUxUEAASJAogQ09NUFVU", + "RV9FTkdJTkVfTElDRU5TRV9UWVBFX1BBWUcQARIkCiBDT01QVVRFX0VOR0lO", + "RV9MSUNFTlNFX1RZUEVfQllPTBACKo4BChdDb21wdXRlRW5naW5lQm9vdE9w", + "dGlvbhIqCiZDT01QVVRFX0VOR0lORV9CT09UX09QVElPTl9VTlNQRUNJRklF", + "RBAAEiIKHkNPTVBVVEVfRU5HSU5FX0JPT1RfT1BUSU9OX0VGSRABEiMKH0NP", + "TVBVVEVfRU5HSU5FX0JPT1RfT1BUSU9OX0JJT1MQAkJ8qgIrR29vZ2xlLkV2", + "ZW50cy5Qcm90b2J1Zi5DbG91ZC5WTU1pZ3JhdGlvbi5WMcoCIkdvb2dsZVxF", + "dmVudHNcQ2xvdWRcVk1NaWdyYXRpb25cVjHqAiZHb29nbGU6OkV2ZW50czo6", + "Q2xvdWQ6OlZNTWlncmF0aW9uOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.ErrorDetailsReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType), typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType), typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle), global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Parser, new[]{ "Name", "CycleNumber", "StartTime", "EndTime", "TotalPauseDuration", "ProgressPercent", "Steps", "State", "Error", "Warnings" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.CycleStep), global::Google.Events.Protobuf.Cloud.VMMigration.V1.CycleStep.Parser, new[]{ "InitializingReplication", "Replicating", "PostProcessing", "StartTime", "EndTime" }, new[]{ "Step" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.InitializingReplicationStep), global::Google.Events.Protobuf.Cloud.VMMigration.V1.InitializingReplicationStep.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicatingStep), global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicatingStep.Parser, new[]{ "TotalBytes", "ReplicatedBytes", "LastTwoMinutesAverageBytesPerSecond", "LastThirtyMinutesAverageBytesPerSecond" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.PostProcessingStep), global::Google.Events.Protobuf.Cloud.VMMigration.V1.PostProcessingStep.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationSync), global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationSync.Parser, new[]{ "LastSyncTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm), global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Parser, new[]{ "ComputeEngineTargetDefaults", "AwsSourceVmDetails", "Name", "SourceVmId", "DisplayName", "Description", "Policy", "CreateTime", "UpdateTime", "LastSync", "State", "StateTime", "CurrentSyncInfo", "LastReplicationCycle", "Group", "Labels", "RecentCloneJobs", "Error", "RecentCutoverJobs", "CutoverForecast" }, new[]{ "TargetVmDefaults", "SourceVmDetails" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverForecast), global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverForecast.Parser, new[]{ "EstimatedCutoverJobDuration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob), global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Parser, new[]{ "ComputeEngineTargetDetails", "CreateTime", "EndTime", "Name", "State", "StateTime", "Error", "Steps" }, new[]{ "TargetVmDetails" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneStep), global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneStep.Parser, new[]{ "AdaptingOs", "PreparingVmDisks", "InstantiatingMigratedVm", "StartTime", "EndTime" }, new[]{ "Step" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.AdaptingOSStep), global::Google.Events.Protobuf.Cloud.VMMigration.V1.AdaptingOSStep.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep), global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep), global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob), global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Parser, new[]{ "ComputeEngineTargetDetails", "CreateTime", "EndTime", "Name", "State", "StateTime", "ProgressPercent", "Error", "StateMessage", "Steps" }, new[]{ "TargetVmDetails" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverStep), global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverStep.Parser, new[]{ "PreviousReplicationCycle", "ShuttingDownSourceVm", "FinalSync", "PreparingVmDisks", "InstantiatingMigratedVm", "StartTime", "EndTime" }, new[]{ "Step" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ShuttingDownSourceVMStep), global::Google.Events.Protobuf.Cloud.VMMigration.V1.ShuttingDownSourceVMStep.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.Source), global::Google.Events.Protobuf.Cloud.VMMigration.V1.Source.Parser, new[]{ "Vmware", "Aws", "Name", "CreateTime", "UpdateTime", "Labels", "Description" }, new[]{ "SourceDetails" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareSourceDetails), global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareSourceDetails.Parser, new[]{ "Username", "VcenterIp", "Thumbprint", "ResolvedVcenterHost" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails), global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Parser, new[]{ "AccessKeyCreds", "AwsRegion", "State", "Error", "InventoryTagList", "InventorySecurityGroupNames", "MigrationResourcesUserTags", "PublicIp" }, new[]{ "CredentialsType" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.AccessKeyCredentials), global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.AccessKeyCredentials.Parser, new[]{ "AccessKeyId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.Tag), global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.Tag.Parser, new[]{ "Key", "Value" }, null, null, null, null), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector), global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Parser, new[]{ "CreateTime", "UpdateTime", "Name", "RegistrationId", "ServiceAccount", "Version", "Bucket", "State", "StateTime", "Error", "ApplianceInfrastructureVersion", "ApplianceSoftwareVersion", "AvailableVersions", "UpgradeStatus" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus), global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Parser, new[]{ "Version", "State", "Error", "StartTime", "PreviousVersion" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.AvailableUpdates), global::Google.Events.Protobuf.Cloud.VMMigration.V1.AvailableUpdates.Parser, new[]{ "NewDeployableAppliance", "InPlaceUpdate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion), global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion.Parser, new[]{ "Version", "Uri", "Critical", "ReleaseNotesUri" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails), global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Parser, new[]{ "VmId", "DatacenterId", "DatacenterDescription", "Uuid", "DisplayName", "PowerState", "CpuCount", "MemoryMb", "DiskCount", "CommittedStorageMb", "GuestDescription", "BootOption" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.PowerState), typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.BootOption) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport), global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Parser, new[]{ "Name", "DisplayName", "State", "StateTime", "Error", "CreateTime", "TimeFrame", "FrameEndTime", "VmCount", "Vms" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.State), typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.TimeFrame) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmUtilizationInfo), global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmUtilizationInfo.Parser, new[]{ "VmwareVmDetails", "VmId", "Utilization" }, new[]{ "VmDetails" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmUtilizationMetrics), global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmUtilizationMetrics.Parser, new[]{ "CpuMaxPercent", "CpuAveragePercent", "MemoryMaxPercent", "MemoryAveragePercent", "DiskIoRateMaxKbps", "DiskIoRateAverageKbps", "NetworkThroughputMaxKbps", "NetworkThroughputAverageKbps" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDefaults), global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDefaults.Parser, new[]{ "VmName", "TargetProject", "Zone", "MachineTypeSeries", "MachineType", "NetworkTags", "NetworkInterfaces", "ServiceAccount", "DiskType", "Labels", "LicenseType", "AppliedLicense", "ComputeScheduling", "SecureBoot", "BootOption", "Metadata", "AdditionalLicenses", "Hostname" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails), global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails.Parser, new[]{ "VmName", "Project", "Zone", "MachineTypeSeries", "MachineType", "NetworkTags", "NetworkInterfaces", "ServiceAccount", "DiskType", "Labels", "LicenseType", "AppliedLicense", "ComputeScheduling", "SecureBoot", "BootOption", "Metadata", "AdditionalLicenses", "Hostname" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.NetworkInterface), global::Google.Events.Protobuf.Cloud.VMMigration.V1.NetworkInterface.Parser, new[]{ "Network", "Subnetwork", "InternalIp", "ExternalIp" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense), global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Parser, new[]{ "Type", "OsLicense" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Types.Type) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity), global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Parser, new[]{ "Key", "Operator", "Values" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Types.Operator) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling), global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Parser, new[]{ "OnHostMaintenance", "RestartType", "NodeAffinities", "MinNodeCpus" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.OnHostMaintenance), typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.RestartType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulePolicy), global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulePolicy.Parser, new[]{ "IdleDuration", "SkipOsAdaptation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.TargetProject), global::Google.Events.Protobuf.Cloud.VMMigration.V1.TargetProject.Parser, new[]{ "Name", "Project", "Description", "CreateTime", "UpdateTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.Group), global::Google.Events.Protobuf.Cloud.VMMigration.V1.Group.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "Description", "DisplayName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning), global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Parser, new[]{ "Code", "WarningMessage", "ActionItem", "HelpLinks", "WarningTime" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Types.WarningCode) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails), global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Parser, new[]{ "Firmware", "CommittedStorageBytes", "Disks" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.Firmware) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.AwsDiskDetails), global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.AwsDiskDetails.Parser, new[]{ "DiskNumber", "VolumeId", "SizeGb" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReportEventData), global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReportEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.GroupEventData), global::Google.Events.Protobuf.Cloud.VMMigration.V1.GroupEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJobEventData), global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJobEventData.Parser, new[]{ "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnectorEventData), global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnectorEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.TargetProjectEventData), global::Google.Events.Protobuf.Cloud.VMMigration.V1.TargetProjectEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJobEventData), global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJobEventData.Parser, new[]{ "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.SourceEventData), global::Google.Events.Protobuf.Cloud.VMMigration.V1.SourceEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVmEventData), global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVmEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// Types of disks supported for Compute Engine VM. + /// + public enum ComputeEngineDiskType { + /// + /// An unspecified disk type. Will be used as STANDARD. + /// + [pbr::OriginalName("COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// A Standard disk type. + /// + [pbr::OriginalName("COMPUTE_ENGINE_DISK_TYPE_STANDARD")] Standard = 1, + /// + /// SSD hard disk type. + /// + [pbr::OriginalName("COMPUTE_ENGINE_DISK_TYPE_SSD")] Ssd = 2, + /// + /// An alternative to SSD persistent disks that balance performance and + /// cost. + /// + [pbr::OriginalName("COMPUTE_ENGINE_DISK_TYPE_BALANCED")] Balanced = 3, + } + + /// + /// Types of licenses used in OS adaptation. + /// + public enum ComputeEngineLicenseType { + /// + /// The license type is the default for the OS. + /// + [pbr::OriginalName("COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT")] Default = 0, + /// + /// The license type is Pay As You Go license type. + /// + [pbr::OriginalName("COMPUTE_ENGINE_LICENSE_TYPE_PAYG")] Payg = 1, + /// + /// The license type is Bring Your Own License type. + /// + [pbr::OriginalName("COMPUTE_ENGINE_LICENSE_TYPE_BYOL")] Byol = 2, + } + + /// + /// Possible values for vm boot option. + /// + public enum ComputeEngineBootOption { + /// + /// The boot option is unknown. + /// + [pbr::OriginalName("COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED")] Unspecified = 0, + /// + /// The boot option is EFI. + /// + [pbr::OriginalName("COMPUTE_ENGINE_BOOT_OPTION_EFI")] Efi = 1, + /// + /// The boot option is BIOS. + /// + [pbr::OriginalName("COMPUTE_ENGINE_BOOT_OPTION_BIOS")] Bios = 2, + } + + #endregion + + #region Messages + /// + /// ReplicationCycle contains information about the current replication cycle + /// status. + /// + public sealed partial class ReplicationCycle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReplicationCycle()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 ReplicationCycle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicationCycle(ReplicationCycle other) : this() { + name_ = other.name_; + cycleNumber_ = other.cycleNumber_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + totalPauseDuration_ = other.totalPauseDuration_ != null ? other.totalPauseDuration_.Clone() : null; + progressPercent_ = other.progressPercent_; + steps_ = other.steps_.Clone(); + state_ = other.state_; + error_ = other.error_ != null ? other.error_.Clone() : null; + warnings_ = other.warnings_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicationCycle Clone() { + return new ReplicationCycle(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 13; + private string name_ = ""; + /// + /// The identifier of the ReplicationCycle. + /// + [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 "cycle_number" field. + public const int CycleNumberFieldNumber = 10; + private int cycleNumber_; + /// + /// The cycle's ordinal number. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CycleNumber { + get { return cycleNumber_; } + set { + cycleNumber_ = value; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// The time the replication cycle has started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// The time the replication cycle has ended. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "total_pause_duration" field. + public const int TotalPauseDurationFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Duration totalPauseDuration_; + /// + /// The accumulated duration the replication cycle was paused. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration TotalPauseDuration { + get { return totalPauseDuration_; } + set { + totalPauseDuration_ = value; + } + } + + /// Field number for the "progress_percent" field. + public const int ProgressPercentFieldNumber = 5; + private int progressPercent_; + /// + /// The current progress in percentage of this cycle. + /// Was replaced by 'steps' field, which breaks down the cycle progression more + /// accurately. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProgressPercent { + get { return progressPercent_; } + set { + progressPercent_ = value; + } + } + + /// Field number for the "steps" field. + public const int StepsFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_steps_codec + = pb::FieldCodec.ForMessage(74, global::Google.Events.Protobuf.Cloud.VMMigration.V1.CycleStep.Parser); + private readonly pbc::RepeatedField steps_ = new pbc::RepeatedField(); + /// + /// The cycle's steps list representing its progress. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Steps { + get { return steps_; } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 11; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Types.State state_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Types.State.Unspecified; + /// + /// State of the ReplicationCycle. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 12; + private global::Google.Rpc.Status error_; + /// + /// Provides details on the state of the cycle in case of an error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "warnings" field. + public const int WarningsFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_warnings_codec + = pb::FieldCodec.ForMessage(114, global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Parser); + private readonly pbc::RepeatedField warnings_ = new pbc::RepeatedField(); + /// + /// Output only. Warnings that occurred during the cycle. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Warnings { + get { return warnings_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReplicationCycle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReplicationCycle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (CycleNumber != other.CycleNumber) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (!object.Equals(TotalPauseDuration, other.TotalPauseDuration)) return false; + if (ProgressPercent != other.ProgressPercent) return false; + if(!steps_.Equals(other.steps_)) return false; + if (State != other.State) return false; + if (!object.Equals(Error, other.Error)) return false; + if(!warnings_.Equals(other.warnings_)) 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 (CycleNumber != 0) hash ^= CycleNumber.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (totalPauseDuration_ != null) hash ^= TotalPauseDuration.GetHashCode(); + if (ProgressPercent != 0) hash ^= ProgressPercent.GetHashCode(); + hash ^= steps_.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + hash ^= warnings_.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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (ProgressPercent != 0) { + output.WriteRawTag(40); + output.WriteInt32(ProgressPercent); + } + if (endTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(EndTime); + } + if (totalPauseDuration_ != null) { + output.WriteRawTag(58); + output.WriteMessage(TotalPauseDuration); + } + steps_.WriteTo(output, _repeated_steps_codec); + if (CycleNumber != 0) { + output.WriteRawTag(80); + output.WriteInt32(CycleNumber); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Types.State.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) State); + } + if (error_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Error); + } + if (Name.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Name); + } + warnings_.WriteTo(output, _repeated_warnings_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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (ProgressPercent != 0) { + output.WriteRawTag(40); + output.WriteInt32(ProgressPercent); + } + if (endTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(EndTime); + } + if (totalPauseDuration_ != null) { + output.WriteRawTag(58); + output.WriteMessage(TotalPauseDuration); + } + steps_.WriteTo(ref output, _repeated_steps_codec); + if (CycleNumber != 0) { + output.WriteRawTag(80); + output.WriteInt32(CycleNumber); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Types.State.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) State); + } + if (error_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Error); + } + if (Name.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Name); + } + warnings_.WriteTo(ref output, _repeated_warnings_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 (CycleNumber != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CycleNumber); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (totalPauseDuration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TotalPauseDuration); + } + if (ProgressPercent != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProgressPercent); + } + size += steps_.CalculateSize(_repeated_steps_codec); + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + size += warnings_.CalculateSize(_repeated_warnings_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReplicationCycle other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.CycleNumber != 0) { + CycleNumber = other.CycleNumber; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.totalPauseDuration_ != null) { + if (totalPauseDuration_ == null) { + TotalPauseDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + TotalPauseDuration.MergeFrom(other.TotalPauseDuration); + } + if (other.ProgressPercent != 0) { + ProgressPercent = other.ProgressPercent; + } + steps_.Add(other.steps_); + if (other.State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Types.State.Unspecified) { + State = other.State; + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + warnings_.Add(other.warnings_); + _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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 40: { + ProgressPercent = input.ReadInt32(); + break; + } + case 50: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 58: { + if (totalPauseDuration_ == null) { + TotalPauseDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(TotalPauseDuration); + break; + } + case 74: { + steps_.AddEntriesFrom(input, _repeated_steps_codec); + break; + } + case 80: { + CycleNumber = input.ReadInt32(); + break; + } + case 88: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Types.State) input.ReadEnum(); + break; + } + case 98: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 106: { + Name = input.ReadString(); + break; + } + case 114: { + warnings_.AddEntriesFrom(input, _repeated_warnings_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: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 40: { + ProgressPercent = input.ReadInt32(); + break; + } + case 50: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 58: { + if (totalPauseDuration_ == null) { + TotalPauseDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(TotalPauseDuration); + break; + } + case 74: { + steps_.AddEntriesFrom(ref input, _repeated_steps_codec); + break; + } + case 80: { + CycleNumber = input.ReadInt32(); + break; + } + case 88: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle.Types.State) input.ReadEnum(); + break; + } + case 98: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 106: { + Name = input.ReadString(); + break; + } + case 114: { + warnings_.AddEntriesFrom(ref input, _repeated_warnings_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ReplicationCycle message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible states of a replication cycle. + /// + public enum State { + /// + /// The state is unknown. This is used for API compatibility only and is not + /// used by the system. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The replication cycle is running. + /// + [pbr::OriginalName("RUNNING")] Running = 1, + /// + /// The replication cycle is paused. + /// + [pbr::OriginalName("PAUSED")] Paused = 2, + /// + /// The replication cycle finished with errors. + /// + [pbr::OriginalName("FAILED")] Failed = 3, + /// + /// The replication cycle finished successfully. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 4, + } + + } + #endregion + + } + + /// + /// CycleStep holds information about a step progress. + /// + public sealed partial class CycleStep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CycleStep()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 CycleStep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CycleStep(CycleStep other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + switch (other.StepCase) { + case StepOneofCase.InitializingReplication: + InitializingReplication = other.InitializingReplication.Clone(); + break; + case StepOneofCase.Replicating: + Replicating = other.Replicating.Clone(); + break; + case StepOneofCase.PostProcessing: + PostProcessing = other.PostProcessing.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CycleStep Clone() { + return new CycleStep(this); + } + + /// Field number for the "initializing_replication" field. + public const int InitializingReplicationFieldNumber = 3; + /// + /// Initializing replication step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.InitializingReplicationStep InitializingReplication { + get { return stepCase_ == StepOneofCase.InitializingReplication ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.InitializingReplicationStep) step_ : null; } + set { + step_ = value; + stepCase_ = value == null ? StepOneofCase.None : StepOneofCase.InitializingReplication; + } + } + + /// Field number for the "replicating" field. + public const int ReplicatingFieldNumber = 4; + /// + /// Replicating step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicatingStep Replicating { + get { return stepCase_ == StepOneofCase.Replicating ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicatingStep) step_ : null; } + set { + step_ = value; + stepCase_ = value == null ? StepOneofCase.None : StepOneofCase.Replicating; + } + } + + /// Field number for the "post_processing" field. + public const int PostProcessingFieldNumber = 5; + /// + /// Post processing step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.PostProcessingStep PostProcessing { + get { return stepCase_ == StepOneofCase.PostProcessing ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.PostProcessingStep) step_ : null; } + set { + step_ = value; + stepCase_ = value == null ? StepOneofCase.None : StepOneofCase.PostProcessing; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// The time the cycle step has started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// The time the cycle step has ended. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + private object step_; + /// Enum of possible cases for the "step" oneof. + public enum StepOneofCase { + None = 0, + InitializingReplication = 3, + Replicating = 4, + PostProcessing = 5, + } + private StepOneofCase stepCase_ = StepOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StepOneofCase StepCase { + get { return stepCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStep() { + stepCase_ = StepOneofCase.None; + step_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CycleStep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CycleStep other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(InitializingReplication, other.InitializingReplication)) return false; + if (!object.Equals(Replicating, other.Replicating)) return false; + if (!object.Equals(PostProcessing, other.PostProcessing)) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (StepCase != other.StepCase) 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 (stepCase_ == StepOneofCase.InitializingReplication) hash ^= InitializingReplication.GetHashCode(); + if (stepCase_ == StepOneofCase.Replicating) hash ^= Replicating.GetHashCode(); + if (stepCase_ == StepOneofCase.PostProcessing) hash ^= PostProcessing.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + hash ^= (int) stepCase_; + 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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (stepCase_ == StepOneofCase.InitializingReplication) { + output.WriteRawTag(26); + output.WriteMessage(InitializingReplication); + } + if (stepCase_ == StepOneofCase.Replicating) { + output.WriteRawTag(34); + output.WriteMessage(Replicating); + } + if (stepCase_ == StepOneofCase.PostProcessing) { + output.WriteRawTag(42); + output.WriteMessage(PostProcessing); + } + 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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (stepCase_ == StepOneofCase.InitializingReplication) { + output.WriteRawTag(26); + output.WriteMessage(InitializingReplication); + } + if (stepCase_ == StepOneofCase.Replicating) { + output.WriteRawTag(34); + output.WriteMessage(Replicating); + } + if (stepCase_ == StepOneofCase.PostProcessing) { + output.WriteRawTag(42); + output.WriteMessage(PostProcessing); + } + 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 (stepCase_ == StepOneofCase.InitializingReplication) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InitializingReplication); + } + if (stepCase_ == StepOneofCase.Replicating) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Replicating); + } + if (stepCase_ == StepOneofCase.PostProcessing) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostProcessing); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CycleStep other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + switch (other.StepCase) { + case StepOneofCase.InitializingReplication: + if (InitializingReplication == null) { + InitializingReplication = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.InitializingReplicationStep(); + } + InitializingReplication.MergeFrom(other.InitializingReplication); + break; + case StepOneofCase.Replicating: + if (Replicating == null) { + Replicating = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicatingStep(); + } + Replicating.MergeFrom(other.Replicating); + break; + case StepOneofCase.PostProcessing: + if (PostProcessing == null) { + PostProcessing = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.PostProcessingStep(); + } + PostProcessing.MergeFrom(other.PostProcessing); + break; + } + + _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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.InitializingReplicationStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.InitializingReplicationStep(); + if (stepCase_ == StepOneofCase.InitializingReplication) { + subBuilder.MergeFrom(InitializingReplication); + } + input.ReadMessage(subBuilder); + InitializingReplication = subBuilder; + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicatingStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicatingStep(); + if (stepCase_ == StepOneofCase.Replicating) { + subBuilder.MergeFrom(Replicating); + } + input.ReadMessage(subBuilder); + Replicating = subBuilder; + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.PostProcessingStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.PostProcessingStep(); + if (stepCase_ == StepOneofCase.PostProcessing) { + subBuilder.MergeFrom(PostProcessing); + } + input.ReadMessage(subBuilder); + PostProcessing = subBuilder; + 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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.InitializingReplicationStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.InitializingReplicationStep(); + if (stepCase_ == StepOneofCase.InitializingReplication) { + subBuilder.MergeFrom(InitializingReplication); + } + input.ReadMessage(subBuilder); + InitializingReplication = subBuilder; + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicatingStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicatingStep(); + if (stepCase_ == StepOneofCase.Replicating) { + subBuilder.MergeFrom(Replicating); + } + input.ReadMessage(subBuilder); + Replicating = subBuilder; + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.PostProcessingStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.PostProcessingStep(); + if (stepCase_ == StepOneofCase.PostProcessing) { + subBuilder.MergeFrom(PostProcessing); + } + input.ReadMessage(subBuilder); + PostProcessing = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// InitializingReplicationStep contains specific step details. + /// + public sealed partial class InitializingReplicationStep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitializingReplicationStep()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 InitializingReplicationStep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InitializingReplicationStep(InitializingReplicationStep other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InitializingReplicationStep Clone() { + return new InitializingReplicationStep(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InitializingReplicationStep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InitializingReplicationStep 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(InitializingReplicationStep 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 + + } + + /// + /// ReplicatingStep contains specific step details. + /// + public sealed partial class ReplicatingStep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReplicatingStep()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 ReplicatingStep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicatingStep(ReplicatingStep other) : this() { + totalBytes_ = other.totalBytes_; + replicatedBytes_ = other.replicatedBytes_; + lastTwoMinutesAverageBytesPerSecond_ = other.lastTwoMinutesAverageBytesPerSecond_; + lastThirtyMinutesAverageBytesPerSecond_ = other.lastThirtyMinutesAverageBytesPerSecond_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicatingStep Clone() { + return new ReplicatingStep(this); + } + + /// Field number for the "total_bytes" field. + public const int TotalBytesFieldNumber = 1; + private long totalBytes_; + /// + /// Total bytes to be handled in the step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TotalBytes { + get { return totalBytes_; } + set { + totalBytes_ = value; + } + } + + /// Field number for the "replicated_bytes" field. + public const int ReplicatedBytesFieldNumber = 2; + private long replicatedBytes_; + /// + /// Replicated bytes in the step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ReplicatedBytes { + get { return replicatedBytes_; } + set { + replicatedBytes_ = value; + } + } + + /// Field number for the "last_two_minutes_average_bytes_per_second" field. + public const int LastTwoMinutesAverageBytesPerSecondFieldNumber = 3; + private long lastTwoMinutesAverageBytesPerSecond_; + /// + /// The source disks replication rate for the last 2 minutes in bytes per + /// second. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long LastTwoMinutesAverageBytesPerSecond { + get { return lastTwoMinutesAverageBytesPerSecond_; } + set { + lastTwoMinutesAverageBytesPerSecond_ = value; + } + } + + /// Field number for the "last_thirty_minutes_average_bytes_per_second" field. + public const int LastThirtyMinutesAverageBytesPerSecondFieldNumber = 4; + private long lastThirtyMinutesAverageBytesPerSecond_; + /// + /// The source disks replication rate for the last 30 minutes in bytes per + /// second. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long LastThirtyMinutesAverageBytesPerSecond { + get { return lastThirtyMinutesAverageBytesPerSecond_; } + set { + lastThirtyMinutesAverageBytesPerSecond_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReplicatingStep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReplicatingStep other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalBytes != other.TotalBytes) return false; + if (ReplicatedBytes != other.ReplicatedBytes) return false; + if (LastTwoMinutesAverageBytesPerSecond != other.LastTwoMinutesAverageBytesPerSecond) return false; + if (LastThirtyMinutesAverageBytesPerSecond != other.LastThirtyMinutesAverageBytesPerSecond) 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 (TotalBytes != 0L) hash ^= TotalBytes.GetHashCode(); + if (ReplicatedBytes != 0L) hash ^= ReplicatedBytes.GetHashCode(); + if (LastTwoMinutesAverageBytesPerSecond != 0L) hash ^= LastTwoMinutesAverageBytesPerSecond.GetHashCode(); + if (LastThirtyMinutesAverageBytesPerSecond != 0L) hash ^= LastThirtyMinutesAverageBytesPerSecond.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 (TotalBytes != 0L) { + output.WriteRawTag(8); + output.WriteInt64(TotalBytes); + } + if (ReplicatedBytes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ReplicatedBytes); + } + if (LastTwoMinutesAverageBytesPerSecond != 0L) { + output.WriteRawTag(24); + output.WriteInt64(LastTwoMinutesAverageBytesPerSecond); + } + if (LastThirtyMinutesAverageBytesPerSecond != 0L) { + output.WriteRawTag(32); + output.WriteInt64(LastThirtyMinutesAverageBytesPerSecond); + } + 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 (TotalBytes != 0L) { + output.WriteRawTag(8); + output.WriteInt64(TotalBytes); + } + if (ReplicatedBytes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ReplicatedBytes); + } + if (LastTwoMinutesAverageBytesPerSecond != 0L) { + output.WriteRawTag(24); + output.WriteInt64(LastTwoMinutesAverageBytesPerSecond); + } + if (LastThirtyMinutesAverageBytesPerSecond != 0L) { + output.WriteRawTag(32); + output.WriteInt64(LastThirtyMinutesAverageBytesPerSecond); + } + 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 (TotalBytes != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalBytes); + } + if (ReplicatedBytes != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ReplicatedBytes); + } + if (LastTwoMinutesAverageBytesPerSecond != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(LastTwoMinutesAverageBytesPerSecond); + } + if (LastThirtyMinutesAverageBytesPerSecond != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(LastThirtyMinutesAverageBytesPerSecond); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReplicatingStep other) { + if (other == null) { + return; + } + if (other.TotalBytes != 0L) { + TotalBytes = other.TotalBytes; + } + if (other.ReplicatedBytes != 0L) { + ReplicatedBytes = other.ReplicatedBytes; + } + if (other.LastTwoMinutesAverageBytesPerSecond != 0L) { + LastTwoMinutesAverageBytesPerSecond = other.LastTwoMinutesAverageBytesPerSecond; + } + if (other.LastThirtyMinutesAverageBytesPerSecond != 0L) { + LastThirtyMinutesAverageBytesPerSecond = other.LastThirtyMinutesAverageBytesPerSecond; + } + _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: { + TotalBytes = input.ReadInt64(); + break; + } + case 16: { + ReplicatedBytes = input.ReadInt64(); + break; + } + case 24: { + LastTwoMinutesAverageBytesPerSecond = input.ReadInt64(); + break; + } + case 32: { + LastThirtyMinutesAverageBytesPerSecond = 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: { + TotalBytes = input.ReadInt64(); + break; + } + case 16: { + ReplicatedBytes = input.ReadInt64(); + break; + } + case 24: { + LastTwoMinutesAverageBytesPerSecond = input.ReadInt64(); + break; + } + case 32: { + LastThirtyMinutesAverageBytesPerSecond = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// PostProcessingStep contains specific step details. + /// + public sealed partial class PostProcessingStep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostProcessingStep()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 PostProcessingStep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PostProcessingStep(PostProcessingStep other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PostProcessingStep Clone() { + return new PostProcessingStep(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PostProcessingStep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PostProcessingStep 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(PostProcessingStep 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 + + } + + /// + /// ReplicationSync contain information about the last replica sync to the cloud. + /// + public sealed partial class ReplicationSync : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReplicationSync()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 ReplicationSync() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicationSync(ReplicationSync other) : this() { + lastSyncTime_ = other.lastSyncTime_ != null ? other.lastSyncTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicationSync Clone() { + return new ReplicationSync(this); + } + + /// Field number for the "last_sync_time" field. + public const int LastSyncTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastSyncTime_; + /// + /// The most updated snapshot created time in the source that finished + /// replication. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastSyncTime { + get { return lastSyncTime_; } + set { + lastSyncTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReplicationSync); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReplicationSync other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(LastSyncTime, other.LastSyncTime)) 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 (lastSyncTime_ != null) hash ^= LastSyncTime.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 (lastSyncTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(LastSyncTime); + } + 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 (lastSyncTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(LastSyncTime); + } + 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 (lastSyncTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSyncTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReplicationSync other) { + if (other == null) { + return; + } + if (other.lastSyncTime_ != null) { + if (lastSyncTime_ == null) { + LastSyncTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastSyncTime.MergeFrom(other.LastSyncTime); + } + _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 (lastSyncTime_ == null) { + LastSyncTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSyncTime); + 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 (lastSyncTime_ == null) { + LastSyncTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastSyncTime); + break; + } + } + } + } + #endif + + } + + /// + /// MigratingVm describes the VM that will be migrated from a Source environment + /// and its replication state. + /// + public sealed partial class MigratingVm : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MigratingVm()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 MigratingVm() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigratingVm(MigratingVm other) : this() { + name_ = other.name_; + sourceVmId_ = other.sourceVmId_; + displayName_ = other.displayName_; + description_ = other.description_; + policy_ = other.policy_ != null ? other.policy_.Clone() : null; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + lastSync_ = other.lastSync_ != null ? other.lastSync_.Clone() : null; + state_ = other.state_; + stateTime_ = other.stateTime_ != null ? other.stateTime_.Clone() : null; + currentSyncInfo_ = other.currentSyncInfo_ != null ? other.currentSyncInfo_.Clone() : null; + lastReplicationCycle_ = other.lastReplicationCycle_ != null ? other.lastReplicationCycle_.Clone() : null; + group_ = other.group_; + labels_ = other.labels_.Clone(); + recentCloneJobs_ = other.recentCloneJobs_.Clone(); + error_ = other.error_ != null ? other.error_.Clone() : null; + recentCutoverJobs_ = other.recentCutoverJobs_.Clone(); + cutoverForecast_ = other.cutoverForecast_ != null ? other.cutoverForecast_.Clone() : null; + switch (other.TargetVmDefaultsCase) { + case TargetVmDefaultsOneofCase.ComputeEngineTargetDefaults: + ComputeEngineTargetDefaults = other.ComputeEngineTargetDefaults.Clone(); + break; + } + + switch (other.SourceVmDetailsCase) { + case SourceVmDetailsOneofCase.AwsSourceVmDetails: + AwsSourceVmDetails = other.AwsSourceVmDetails.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigratingVm Clone() { + return new MigratingVm(this); + } + + /// Field number for the "compute_engine_target_defaults" field. + public const int ComputeEngineTargetDefaultsFieldNumber = 26; + /// + /// Details of the target VM in Compute Engine. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDefaults ComputeEngineTargetDefaults { + get { return targetVmDefaultsCase_ == TargetVmDefaultsOneofCase.ComputeEngineTargetDefaults ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDefaults) targetVmDefaults_ : null; } + set { + targetVmDefaults_ = value; + targetVmDefaultsCase_ = value == null ? TargetVmDefaultsOneofCase.None : TargetVmDefaultsOneofCase.ComputeEngineTargetDefaults; + } + } + + /// Field number for the "aws_source_vm_details" field. + public const int AwsSourceVmDetailsFieldNumber = 29; + /// + /// Output only. Details of the VM from an AWS source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails AwsSourceVmDetails { + get { return sourceVmDetailsCase_ == SourceVmDetailsOneofCase.AwsSourceVmDetails ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails) sourceVmDetails_ : null; } + set { + sourceVmDetails_ = value; + sourceVmDetailsCase_ = value == null ? SourceVmDetailsOneofCase.None : SourceVmDetailsOneofCase.AwsSourceVmDetails; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The identifier of the MigratingVm. + /// + [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 "source_vm_id" field. + public const int SourceVmIdFieldNumber = 2; + private string sourceVmId_ = ""; + /// + /// The unique ID of the VM in the source. + /// The VM's name in vSphere can be changed, so this is not the VM's name but + /// rather its moRef id. This id is of the form vm-<num>. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceVmId { + get { return sourceVmId_; } + set { + sourceVmId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 18; + private string displayName_ = ""; + /// + /// The display name attached to the MigratingVm by the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// The description attached to the migrating VM by the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "policy" field. + public const int PolicyFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulePolicy policy_; + /// + /// The replication schedule policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulePolicy Policy { + get { return policy_; } + set { + policy_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the migrating VM was created (this refers to this + /// resource and not to the time it was installed in the source). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The last time the migrating VM resource was updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "last_sync" field. + public const int LastSyncFieldNumber = 11; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationSync lastSync_; + /// + /// Output only. The most updated snapshot created time in the source that + /// finished replication. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationSync LastSync { + get { return lastSync_; } + set { + lastSync_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 23; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Types.State state_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Types.State.Unspecified; + /// + /// Output only. State of the MigratingVm. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "state_time" field. + public const int StateTimeFieldNumber = 22; + private global::Google.Protobuf.WellKnownTypes.Timestamp stateTime_; + /// + /// Output only. The last time the migrating VM state was updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StateTime { + get { return stateTime_; } + set { + stateTime_ = value; + } + } + + /// Field number for the "current_sync_info" field. + public const int CurrentSyncInfoFieldNumber = 13; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle currentSyncInfo_; + /// + /// Output only. Details of the current running replication cycle. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle CurrentSyncInfo { + get { return currentSyncInfo_; } + set { + currentSyncInfo_ = value; + } + } + + /// Field number for the "last_replication_cycle" field. + public const int LastReplicationCycleFieldNumber = 32; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle lastReplicationCycle_; + /// + /// Output only. Details of the last replication cycle. This will be updated + /// whenever a replication cycle is finished and is not to be confused with + /// last_sync which is only updated on successful replication cycles. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle LastReplicationCycle { + get { return lastReplicationCycle_; } + set { + lastReplicationCycle_ = value; + } + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 15; + private string group_ = ""; + /// + /// Output only. The group this migrating vm is included in, if any. The group + /// is represented by the full path of the appropriate + /// [Group][google.cloud.vmmigration.v1.Group] resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Group { + get { return group_; } + set { + group_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 16; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 130); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// The labels of the migrating VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "recent_clone_jobs" field. + public const int RecentCloneJobsFieldNumber = 17; + private static readonly pb::FieldCodec _repeated_recentCloneJobs_codec + = pb::FieldCodec.ForMessage(138, global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Parser); + private readonly pbc::RepeatedField recentCloneJobs_ = new pbc::RepeatedField(); + /// + /// Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob] + /// performed on the migrating VM. This field holds the vm's last completed + /// clone job and the vm's running clone job, if one exists. + /// Note: To have this field populated you need to explicitly request it via + /// the "view" parameter of the Get/List request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RecentCloneJobs { + get { return recentCloneJobs_; } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 19; + private global::Google.Rpc.Status error_; + /// + /// Output only. Provides details on the state of the Migrating VM in case of + /// an error in replication. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "recent_cutover_jobs" field. + public const int RecentCutoverJobsFieldNumber = 20; + private static readonly pb::FieldCodec _repeated_recentCutoverJobs_codec + = pb::FieldCodec.ForMessage(162, global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Parser); + private readonly pbc::RepeatedField recentCutoverJobs_ = new pbc::RepeatedField(); + /// + /// Output only. The recent cutover jobs performed on the migrating VM. + /// This field holds the vm's last completed cutover job and the vm's + /// running cutover job, if one exists. + /// Note: To have this field populated you need to explicitly request it via + /// the "view" parameter of the Get/List request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RecentCutoverJobs { + get { return recentCutoverJobs_; } + } + + /// Field number for the "cutover_forecast" field. + public const int CutoverForecastFieldNumber = 33; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverForecast cutoverForecast_; + /// + /// Output only. Provides details of future CutoverJobs of a MigratingVm. + /// Set to empty when cutover forecast is unavailable. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverForecast CutoverForecast { + get { return cutoverForecast_; } + set { + cutoverForecast_ = value; + } + } + + private object targetVmDefaults_; + /// Enum of possible cases for the "target_vm_defaults" oneof. + public enum TargetVmDefaultsOneofCase { + None = 0, + ComputeEngineTargetDefaults = 26, + } + private TargetVmDefaultsOneofCase targetVmDefaultsCase_ = TargetVmDefaultsOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TargetVmDefaultsOneofCase TargetVmDefaultsCase { + get { return targetVmDefaultsCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetVmDefaults() { + targetVmDefaultsCase_ = TargetVmDefaultsOneofCase.None; + targetVmDefaults_ = null; + } + + private object sourceVmDetails_; + /// Enum of possible cases for the "source_vm_details" oneof. + public enum SourceVmDetailsOneofCase { + None = 0, + AwsSourceVmDetails = 29, + } + private SourceVmDetailsOneofCase sourceVmDetailsCase_ = SourceVmDetailsOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourceVmDetailsOneofCase SourceVmDetailsCase { + get { return sourceVmDetailsCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSourceVmDetails() { + sourceVmDetailsCase_ = SourceVmDetailsOneofCase.None; + sourceVmDetails_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MigratingVm); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MigratingVm other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ComputeEngineTargetDefaults, other.ComputeEngineTargetDefaults)) return false; + if (!object.Equals(AwsSourceVmDetails, other.AwsSourceVmDetails)) return false; + if (Name != other.Name) return false; + if (SourceVmId != other.SourceVmId) return false; + if (DisplayName != other.DisplayName) return false; + if (Description != other.Description) return false; + if (!object.Equals(Policy, other.Policy)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(LastSync, other.LastSync)) return false; + if (State != other.State) return false; + if (!object.Equals(StateTime, other.StateTime)) return false; + if (!object.Equals(CurrentSyncInfo, other.CurrentSyncInfo)) return false; + if (!object.Equals(LastReplicationCycle, other.LastReplicationCycle)) return false; + if (Group != other.Group) return false; + if (!Labels.Equals(other.Labels)) return false; + if(!recentCloneJobs_.Equals(other.recentCloneJobs_)) return false; + if (!object.Equals(Error, other.Error)) return false; + if(!recentCutoverJobs_.Equals(other.recentCutoverJobs_)) return false; + if (!object.Equals(CutoverForecast, other.CutoverForecast)) return false; + if (TargetVmDefaultsCase != other.TargetVmDefaultsCase) return false; + if (SourceVmDetailsCase != other.SourceVmDetailsCase) 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 (targetVmDefaultsCase_ == TargetVmDefaultsOneofCase.ComputeEngineTargetDefaults) hash ^= ComputeEngineTargetDefaults.GetHashCode(); + if (sourceVmDetailsCase_ == SourceVmDetailsOneofCase.AwsSourceVmDetails) hash ^= AwsSourceVmDetails.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (SourceVmId.Length != 0) hash ^= SourceVmId.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (policy_ != null) hash ^= Policy.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (lastSync_ != null) hash ^= LastSync.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (stateTime_ != null) hash ^= StateTime.GetHashCode(); + if (currentSyncInfo_ != null) hash ^= CurrentSyncInfo.GetHashCode(); + if (lastReplicationCycle_ != null) hash ^= LastReplicationCycle.GetHashCode(); + if (Group.Length != 0) hash ^= Group.GetHashCode(); + hash ^= Labels.GetHashCode(); + hash ^= recentCloneJobs_.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + hash ^= recentCutoverJobs_.GetHashCode(); + if (cutoverForecast_ != null) hash ^= CutoverForecast.GetHashCode(); + hash ^= (int) targetVmDefaultsCase_; + hash ^= (int) sourceVmDetailsCase_; + 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 (SourceVmId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SourceVmId); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (policy_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Policy); + } + if (createTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(UpdateTime); + } + if (lastSync_ != null) { + output.WriteRawTag(90); + output.WriteMessage(LastSync); + } + if (currentSyncInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(CurrentSyncInfo); + } + if (Group.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Group); + } + labels_.WriteTo(output, _map_labels_codec); + recentCloneJobs_.WriteTo(output, _repeated_recentCloneJobs_codec); + if (DisplayName.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(DisplayName); + } + if (error_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(Error); + } + recentCutoverJobs_.WriteTo(output, _repeated_recentCutoverJobs_codec); + if (stateTime_ != null) { + output.WriteRawTag(178, 1); + output.WriteMessage(StateTime); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Types.State.Unspecified) { + output.WriteRawTag(184, 1); + output.WriteEnum((int) State); + } + if (targetVmDefaultsCase_ == TargetVmDefaultsOneofCase.ComputeEngineTargetDefaults) { + output.WriteRawTag(210, 1); + output.WriteMessage(ComputeEngineTargetDefaults); + } + if (sourceVmDetailsCase_ == SourceVmDetailsOneofCase.AwsSourceVmDetails) { + output.WriteRawTag(234, 1); + output.WriteMessage(AwsSourceVmDetails); + } + if (lastReplicationCycle_ != null) { + output.WriteRawTag(130, 2); + output.WriteMessage(LastReplicationCycle); + } + if (cutoverForecast_ != null) { + output.WriteRawTag(138, 2); + output.WriteMessage(CutoverForecast); + } + 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 (SourceVmId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SourceVmId); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (policy_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Policy); + } + if (createTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(UpdateTime); + } + if (lastSync_ != null) { + output.WriteRawTag(90); + output.WriteMessage(LastSync); + } + if (currentSyncInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(CurrentSyncInfo); + } + if (Group.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Group); + } + labels_.WriteTo(ref output, _map_labels_codec); + recentCloneJobs_.WriteTo(ref output, _repeated_recentCloneJobs_codec); + if (DisplayName.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(DisplayName); + } + if (error_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(Error); + } + recentCutoverJobs_.WriteTo(ref output, _repeated_recentCutoverJobs_codec); + if (stateTime_ != null) { + output.WriteRawTag(178, 1); + output.WriteMessage(StateTime); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Types.State.Unspecified) { + output.WriteRawTag(184, 1); + output.WriteEnum((int) State); + } + if (targetVmDefaultsCase_ == TargetVmDefaultsOneofCase.ComputeEngineTargetDefaults) { + output.WriteRawTag(210, 1); + output.WriteMessage(ComputeEngineTargetDefaults); + } + if (sourceVmDetailsCase_ == SourceVmDetailsOneofCase.AwsSourceVmDetails) { + output.WriteRawTag(234, 1); + output.WriteMessage(AwsSourceVmDetails); + } + if (lastReplicationCycle_ != null) { + output.WriteRawTag(130, 2); + output.WriteMessage(LastReplicationCycle); + } + if (cutoverForecast_ != null) { + output.WriteRawTag(138, 2); + output.WriteMessage(CutoverForecast); + } + 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 (targetVmDefaultsCase_ == TargetVmDefaultsOneofCase.ComputeEngineTargetDefaults) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ComputeEngineTargetDefaults); + } + if (sourceVmDetailsCase_ == SourceVmDetailsOneofCase.AwsSourceVmDetails) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AwsSourceVmDetails); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (SourceVmId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceVmId); + } + if (DisplayName.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (policy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Policy); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (lastSync_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSync); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Types.State.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (stateTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(StateTime); + } + if (currentSyncInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentSyncInfo); + } + if (lastReplicationCycle_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(LastReplicationCycle); + } + if (Group.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Group); + } + size += labels_.CalculateSize(_map_labels_codec); + size += recentCloneJobs_.CalculateSize(_repeated_recentCloneJobs_codec); + if (error_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + size += recentCutoverJobs_.CalculateSize(_repeated_recentCutoverJobs_codec); + if (cutoverForecast_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CutoverForecast); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MigratingVm other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.SourceVmId.Length != 0) { + SourceVmId = other.SourceVmId; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.policy_ != null) { + if (policy_ == null) { + Policy = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulePolicy(); + } + Policy.MergeFrom(other.Policy); + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.lastSync_ != null) { + if (lastSync_ == null) { + LastSync = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationSync(); + } + LastSync.MergeFrom(other.LastSync); + } + if (other.State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Types.State.Unspecified) { + State = other.State; + } + if (other.stateTime_ != null) { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StateTime.MergeFrom(other.StateTime); + } + if (other.currentSyncInfo_ != null) { + if (currentSyncInfo_ == null) { + CurrentSyncInfo = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + } + CurrentSyncInfo.MergeFrom(other.CurrentSyncInfo); + } + if (other.lastReplicationCycle_ != null) { + if (lastReplicationCycle_ == null) { + LastReplicationCycle = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + } + LastReplicationCycle.MergeFrom(other.LastReplicationCycle); + } + if (other.Group.Length != 0) { + Group = other.Group; + } + labels_.MergeFrom(other.labels_); + recentCloneJobs_.Add(other.recentCloneJobs_); + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + recentCutoverJobs_.Add(other.recentCutoverJobs_); + if (other.cutoverForecast_ != null) { + if (cutoverForecast_ == null) { + CutoverForecast = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverForecast(); + } + CutoverForecast.MergeFrom(other.CutoverForecast); + } + switch (other.TargetVmDefaultsCase) { + case TargetVmDefaultsOneofCase.ComputeEngineTargetDefaults: + if (ComputeEngineTargetDefaults == null) { + ComputeEngineTargetDefaults = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDefaults(); + } + ComputeEngineTargetDefaults.MergeFrom(other.ComputeEngineTargetDefaults); + break; + } + + switch (other.SourceVmDetailsCase) { + case SourceVmDetailsOneofCase.AwsSourceVmDetails: + if (AwsSourceVmDetails == null) { + AwsSourceVmDetails = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails(); + } + AwsSourceVmDetails.MergeFrom(other.AwsSourceVmDetails); + break; + } + + _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: { + SourceVmId = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 66: { + if (policy_ == null) { + Policy = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulePolicy(); + } + input.ReadMessage(Policy); + break; + } + case 74: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 82: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 90: { + if (lastSync_ == null) { + LastSync = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationSync(); + } + input.ReadMessage(LastSync); + break; + } + case 106: { + if (currentSyncInfo_ == null) { + CurrentSyncInfo = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + } + input.ReadMessage(CurrentSyncInfo); + break; + } + case 122: { + Group = input.ReadString(); + break; + } + case 130: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 138: { + recentCloneJobs_.AddEntriesFrom(input, _repeated_recentCloneJobs_codec); + break; + } + case 146: { + DisplayName = input.ReadString(); + break; + } + case 154: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 162: { + recentCutoverJobs_.AddEntriesFrom(input, _repeated_recentCutoverJobs_codec); + break; + } + case 178: { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StateTime); + break; + } + case 184: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Types.State) input.ReadEnum(); + break; + } + case 210: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDefaults subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDefaults(); + if (targetVmDefaultsCase_ == TargetVmDefaultsOneofCase.ComputeEngineTargetDefaults) { + subBuilder.MergeFrom(ComputeEngineTargetDefaults); + } + input.ReadMessage(subBuilder); + ComputeEngineTargetDefaults = subBuilder; + break; + } + case 234: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails(); + if (sourceVmDetailsCase_ == SourceVmDetailsOneofCase.AwsSourceVmDetails) { + subBuilder.MergeFrom(AwsSourceVmDetails); + } + input.ReadMessage(subBuilder); + AwsSourceVmDetails = subBuilder; + break; + } + case 258: { + if (lastReplicationCycle_ == null) { + LastReplicationCycle = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + } + input.ReadMessage(LastReplicationCycle); + break; + } + case 266: { + if (cutoverForecast_ == null) { + CutoverForecast = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverForecast(); + } + input.ReadMessage(CutoverForecast); + 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: { + SourceVmId = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 66: { + if (policy_ == null) { + Policy = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulePolicy(); + } + input.ReadMessage(Policy); + break; + } + case 74: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 82: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 90: { + if (lastSync_ == null) { + LastSync = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationSync(); + } + input.ReadMessage(LastSync); + break; + } + case 106: { + if (currentSyncInfo_ == null) { + CurrentSyncInfo = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + } + input.ReadMessage(CurrentSyncInfo); + break; + } + case 122: { + Group = input.ReadString(); + break; + } + case 130: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 138: { + recentCloneJobs_.AddEntriesFrom(ref input, _repeated_recentCloneJobs_codec); + break; + } + case 146: { + DisplayName = input.ReadString(); + break; + } + case 154: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 162: { + recentCutoverJobs_.AddEntriesFrom(ref input, _repeated_recentCutoverJobs_codec); + break; + } + case 178: { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StateTime); + break; + } + case 184: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm.Types.State) input.ReadEnum(); + break; + } + case 210: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDefaults subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDefaults(); + if (targetVmDefaultsCase_ == TargetVmDefaultsOneofCase.ComputeEngineTargetDefaults) { + subBuilder.MergeFrom(ComputeEngineTargetDefaults); + } + input.ReadMessage(subBuilder); + ComputeEngineTargetDefaults = subBuilder; + break; + } + case 234: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails(); + if (sourceVmDetailsCase_ == SourceVmDetailsOneofCase.AwsSourceVmDetails) { + subBuilder.MergeFrom(AwsSourceVmDetails); + } + input.ReadMessage(subBuilder); + AwsSourceVmDetails = subBuilder; + break; + } + case 258: { + if (lastReplicationCycle_ == null) { + LastReplicationCycle = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + } + input.ReadMessage(LastReplicationCycle); + break; + } + case 266: { + if (cutoverForecast_ == null) { + CutoverForecast = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverForecast(); + } + input.ReadMessage(CutoverForecast); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MigratingVm message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The possible values of the state/health of source VM. + /// + public enum State { + /// + /// The state was not sampled by the health checks yet. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The VM in the source is being verified. + /// + [pbr::OriginalName("PENDING")] Pending = 1, + /// + /// The source VM was verified, and it's ready to start replication. + /// + [pbr::OriginalName("READY")] Ready = 2, + /// + /// Migration is going through the first sync cycle. + /// + [pbr::OriginalName("FIRST_SYNC")] FirstSync = 3, + /// + /// The replication is active, and it's running or scheduled to run. + /// + [pbr::OriginalName("ACTIVE")] Active = 4, + /// + /// The source VM is being turned off, and a final replication is currently + /// running. + /// + [pbr::OriginalName("CUTTING_OVER")] CuttingOver = 7, + /// + /// The source VM was stopped and replicated. The replication is currently + /// paused. + /// + [pbr::OriginalName("CUTOVER")] Cutover = 8, + /// + /// A cutover job is active and replication cycle is running the final sync. + /// + [pbr::OriginalName("FINAL_SYNC")] FinalSync = 9, + /// + /// The replication was paused by the user and no cycles are scheduled to + /// run. + /// + [pbr::OriginalName("PAUSED")] Paused = 10, + /// + /// The migrating VM is being finalized and migration resources are being + /// removed. + /// + [pbr::OriginalName("FINALIZING")] Finalizing = 11, + /// + /// The replication process is done. The migrating VM is finalized and no + /// longer consumes billable resources. + /// + [pbr::OriginalName("FINALIZED")] Finalized = 12, + /// + /// The replication process encountered an unrecoverable error and was + /// aborted. + /// + [pbr::OriginalName("ERROR")] Error = 13, + } + + } + #endregion + + } + + /// + /// CutoverForecast holds information about future CutoverJobs of a MigratingVm. + /// + public sealed partial class CutoverForecast : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CutoverForecast()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 CutoverForecast() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CutoverForecast(CutoverForecast other) : this() { + estimatedCutoverJobDuration_ = other.estimatedCutoverJobDuration_ != null ? other.estimatedCutoverJobDuration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CutoverForecast Clone() { + return new CutoverForecast(this); + } + + /// Field number for the "estimated_cutover_job_duration" field. + public const int EstimatedCutoverJobDurationFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration estimatedCutoverJobDuration_; + /// + /// Output only. Estimation of the CutoverJob duration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration EstimatedCutoverJobDuration { + get { return estimatedCutoverJobDuration_; } + set { + estimatedCutoverJobDuration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CutoverForecast); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CutoverForecast other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EstimatedCutoverJobDuration, other.EstimatedCutoverJobDuration)) 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 (estimatedCutoverJobDuration_ != null) hash ^= EstimatedCutoverJobDuration.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 (estimatedCutoverJobDuration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(EstimatedCutoverJobDuration); + } + 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 (estimatedCutoverJobDuration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(EstimatedCutoverJobDuration); + } + 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 (estimatedCutoverJobDuration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EstimatedCutoverJobDuration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CutoverForecast other) { + if (other == null) { + return; + } + if (other.estimatedCutoverJobDuration_ != null) { + if (estimatedCutoverJobDuration_ == null) { + EstimatedCutoverJobDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + EstimatedCutoverJobDuration.MergeFrom(other.EstimatedCutoverJobDuration); + } + _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 (estimatedCutoverJobDuration_ == null) { + EstimatedCutoverJobDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EstimatedCutoverJobDuration); + 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 (estimatedCutoverJobDuration_ == null) { + EstimatedCutoverJobDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EstimatedCutoverJobDuration); + break; + } + } + } + } + #endif + + } + + /// + /// CloneJob describes the process of creating a clone of a + /// [MigratingVM][google.cloud.vmmigration.v1.MigratingVm] to the + /// requested target based on the latest successful uploaded snapshots. + /// While the migration cycles of a MigratingVm take place, it is possible to + /// verify the uploaded VM can be started in the cloud, by creating a clone. The + /// clone can be created without any downtime, and it is created using the latest + /// snapshots which are already in the cloud. The cloneJob is only responsible + /// for its work, not its products, which means once it is finished, it will + /// never touch the instance it created. It will only delete it in case of the + /// CloneJob being cancelled or upon failure to clone. + /// + public sealed partial class CloneJob : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloneJob()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 CloneJob() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloneJob(CloneJob other) : this() { + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + name_ = other.name_; + state_ = other.state_; + stateTime_ = other.stateTime_ != null ? other.stateTime_.Clone() : null; + error_ = other.error_ != null ? other.error_.Clone() : null; + steps_ = other.steps_.Clone(); + switch (other.TargetVmDetailsCase) { + case TargetVmDetailsOneofCase.ComputeEngineTargetDetails: + ComputeEngineTargetDetails = other.ComputeEngineTargetDetails.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloneJob Clone() { + return new CloneJob(this); + } + + /// Field number for the "compute_engine_target_details" field. + public const int ComputeEngineTargetDetailsFieldNumber = 20; + /// + /// Output only. Details of the target VM in Compute Engine. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails ComputeEngineTargetDetails { + get { return targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails) targetVmDetails_ : null; } + set { + targetVmDetails_ = value; + targetVmDetailsCase_ = value == null ? TargetVmDetailsOneofCase.None : TargetVmDetailsOneofCase.ComputeEngineTargetDetails; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the clone job was created (as an API call, not when + /// it was actually created in the target). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 22; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The time the clone job was ended. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// Output only. The name of the clone. + /// + [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 "state" field. + public const int StateFieldNumber = 12; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Types.State state_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Types.State.Unspecified; + /// + /// Output only. State of the clone job. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "state_time" field. + public const int StateTimeFieldNumber = 14; + private global::Google.Protobuf.WellKnownTypes.Timestamp stateTime_; + /// + /// Output only. The time the state was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StateTime { + get { return stateTime_; } + set { + stateTime_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 17; + private global::Google.Rpc.Status error_; + /// + /// Output only. Provides details for the errors that led to the Clone Job's + /// state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "steps" field. + public const int StepsFieldNumber = 23; + private static readonly pb::FieldCodec _repeated_steps_codec + = pb::FieldCodec.ForMessage(186, global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneStep.Parser); + private readonly pbc::RepeatedField steps_ = new pbc::RepeatedField(); + /// + /// Output only. The clone steps list representing its progress. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Steps { + get { return steps_; } + } + + private object targetVmDetails_; + /// Enum of possible cases for the "target_vm_details" oneof. + public enum TargetVmDetailsOneofCase { + None = 0, + ComputeEngineTargetDetails = 20, + } + private TargetVmDetailsOneofCase targetVmDetailsCase_ = TargetVmDetailsOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TargetVmDetailsOneofCase TargetVmDetailsCase { + get { return targetVmDetailsCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetVmDetails() { + targetVmDetailsCase_ = TargetVmDetailsOneofCase.None; + targetVmDetails_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CloneJob); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloneJob other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ComputeEngineTargetDetails, other.ComputeEngineTargetDetails)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (Name != other.Name) return false; + if (State != other.State) return false; + if (!object.Equals(StateTime, other.StateTime)) return false; + if (!object.Equals(Error, other.Error)) return false; + if(!steps_.Equals(other.steps_)) return false; + if (TargetVmDetailsCase != other.TargetVmDetailsCase) 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 (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) hash ^= ComputeEngineTargetDetails.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (stateTime_ != null) hash ^= StateTime.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + hash ^= steps_.GetHashCode(); + hash ^= (int) targetVmDetailsCase_; + 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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Types.State.Unspecified) { + output.WriteRawTag(96); + output.WriteEnum((int) State); + } + if (stateTime_ != null) { + output.WriteRawTag(114); + output.WriteMessage(StateTime); + } + if (error_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(Error); + } + if (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) { + output.WriteRawTag(162, 1); + output.WriteMessage(ComputeEngineTargetDetails); + } + if (endTime_ != null) { + output.WriteRawTag(178, 1); + output.WriteMessage(EndTime); + } + steps_.WriteTo(output, _repeated_steps_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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Types.State.Unspecified) { + output.WriteRawTag(96); + output.WriteEnum((int) State); + } + if (stateTime_ != null) { + output.WriteRawTag(114); + output.WriteMessage(StateTime); + } + if (error_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(Error); + } + if (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) { + output.WriteRawTag(162, 1); + output.WriteMessage(ComputeEngineTargetDetails); + } + if (endTime_ != null) { + output.WriteRawTag(178, 1); + output.WriteMessage(EndTime); + } + steps_.WriteTo(ref output, _repeated_steps_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 (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ComputeEngineTargetDetails); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (endTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (stateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StateTime); + } + if (error_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + size += steps_.CalculateSize(_repeated_steps_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloneJob other) { + if (other == null) { + return; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Types.State.Unspecified) { + State = other.State; + } + if (other.stateTime_ != null) { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StateTime.MergeFrom(other.StateTime); + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + steps_.Add(other.steps_); + switch (other.TargetVmDetailsCase) { + case TargetVmDetailsOneofCase.ComputeEngineTargetDetails: + if (ComputeEngineTargetDetails == null) { + ComputeEngineTargetDetails = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails(); + } + ComputeEngineTargetDetails.MergeFrom(other.ComputeEngineTargetDetails); + break; + } + + _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 (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 96: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Types.State) input.ReadEnum(); + break; + } + case 114: { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StateTime); + break; + } + case 138: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 162: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails(); + if (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) { + subBuilder.MergeFrom(ComputeEngineTargetDetails); + } + input.ReadMessage(subBuilder); + ComputeEngineTargetDetails = subBuilder; + break; + } + case 178: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 186: { + steps_.AddEntriesFrom(input, _repeated_steps_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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 96: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob.Types.State) input.ReadEnum(); + break; + } + case 114: { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StateTime); + break; + } + case 138: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 162: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails(); + if (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) { + subBuilder.MergeFrom(ComputeEngineTargetDetails); + } + input.ReadMessage(subBuilder); + ComputeEngineTargetDetails = subBuilder; + break; + } + case 178: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 186: { + steps_.AddEntriesFrom(ref input, _repeated_steps_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CloneJob message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible states of the clone job. + /// + public enum State { + /// + /// The state is unknown. This is used for API compatibility only and is not + /// used by the system. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The clone job has not yet started. + /// + [pbr::OriginalName("PENDING")] Pending = 1, + /// + /// The clone job is active and running. + /// + [pbr::OriginalName("ACTIVE")] Active = 2, + /// + /// The clone job finished with errors. + /// + [pbr::OriginalName("FAILED")] Failed = 3, + /// + /// The clone job finished successfully. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 4, + /// + /// The clone job was cancelled. + /// + [pbr::OriginalName("CANCELLED")] Cancelled = 5, + /// + /// The clone job is being cancelled. + /// + [pbr::OriginalName("CANCELLING")] Cancelling = 6, + /// + /// OS adaptation is running as part of the clone job to generate license. + /// + [pbr::OriginalName("ADAPTING_OS")] AdaptingOs = 7, + } + + } + #endregion + + } + + /// + /// CloneStep holds information about the clone step progress. + /// + public sealed partial class CloneStep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloneStep()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 CloneStep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloneStep(CloneStep other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + switch (other.StepCase) { + case StepOneofCase.AdaptingOs: + AdaptingOs = other.AdaptingOs.Clone(); + break; + case StepOneofCase.PreparingVmDisks: + PreparingVmDisks = other.PreparingVmDisks.Clone(); + break; + case StepOneofCase.InstantiatingMigratedVm: + InstantiatingMigratedVm = other.InstantiatingMigratedVm.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloneStep Clone() { + return new CloneStep(this); + } + + /// Field number for the "adapting_os" field. + public const int AdaptingOsFieldNumber = 3; + /// + /// Adapting OS step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.AdaptingOSStep AdaptingOs { + get { return stepCase_ == StepOneofCase.AdaptingOs ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.AdaptingOSStep) step_ : null; } + set { + step_ = value; + stepCase_ = value == null ? StepOneofCase.None : StepOneofCase.AdaptingOs; + } + } + + /// Field number for the "preparing_vm_disks" field. + public const int PreparingVmDisksFieldNumber = 4; + /// + /// Preparing VM disks step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep PreparingVmDisks { + get { return stepCase_ == StepOneofCase.PreparingVmDisks ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep) step_ : null; } + set { + step_ = value; + stepCase_ = value == null ? StepOneofCase.None : StepOneofCase.PreparingVmDisks; + } + } + + /// Field number for the "instantiating_migrated_vm" field. + public const int InstantiatingMigratedVmFieldNumber = 5; + /// + /// Instantiating migrated VM step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep InstantiatingMigratedVm { + get { return stepCase_ == StepOneofCase.InstantiatingMigratedVm ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep) step_ : null; } + set { + step_ = value; + stepCase_ = value == null ? StepOneofCase.None : StepOneofCase.InstantiatingMigratedVm; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// The time the step has started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// The time the step has ended. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + private object step_; + /// Enum of possible cases for the "step" oneof. + public enum StepOneofCase { + None = 0, + AdaptingOs = 3, + PreparingVmDisks = 4, + InstantiatingMigratedVm = 5, + } + private StepOneofCase stepCase_ = StepOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StepOneofCase StepCase { + get { return stepCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStep() { + stepCase_ = StepOneofCase.None; + step_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CloneStep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloneStep other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AdaptingOs, other.AdaptingOs)) return false; + if (!object.Equals(PreparingVmDisks, other.PreparingVmDisks)) return false; + if (!object.Equals(InstantiatingMigratedVm, other.InstantiatingMigratedVm)) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (StepCase != other.StepCase) 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 (stepCase_ == StepOneofCase.AdaptingOs) hash ^= AdaptingOs.GetHashCode(); + if (stepCase_ == StepOneofCase.PreparingVmDisks) hash ^= PreparingVmDisks.GetHashCode(); + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) hash ^= InstantiatingMigratedVm.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + hash ^= (int) stepCase_; + 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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (stepCase_ == StepOneofCase.AdaptingOs) { + output.WriteRawTag(26); + output.WriteMessage(AdaptingOs); + } + if (stepCase_ == StepOneofCase.PreparingVmDisks) { + output.WriteRawTag(34); + output.WriteMessage(PreparingVmDisks); + } + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) { + output.WriteRawTag(42); + output.WriteMessage(InstantiatingMigratedVm); + } + 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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (stepCase_ == StepOneofCase.AdaptingOs) { + output.WriteRawTag(26); + output.WriteMessage(AdaptingOs); + } + if (stepCase_ == StepOneofCase.PreparingVmDisks) { + output.WriteRawTag(34); + output.WriteMessage(PreparingVmDisks); + } + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) { + output.WriteRawTag(42); + output.WriteMessage(InstantiatingMigratedVm); + } + 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 (stepCase_ == StepOneofCase.AdaptingOs) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdaptingOs); + } + if (stepCase_ == StepOneofCase.PreparingVmDisks) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PreparingVmDisks); + } + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InstantiatingMigratedVm); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloneStep other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + switch (other.StepCase) { + case StepOneofCase.AdaptingOs: + if (AdaptingOs == null) { + AdaptingOs = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AdaptingOSStep(); + } + AdaptingOs.MergeFrom(other.AdaptingOs); + break; + case StepOneofCase.PreparingVmDisks: + if (PreparingVmDisks == null) { + PreparingVmDisks = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep(); + } + PreparingVmDisks.MergeFrom(other.PreparingVmDisks); + break; + case StepOneofCase.InstantiatingMigratedVm: + if (InstantiatingMigratedVm == null) { + InstantiatingMigratedVm = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep(); + } + InstantiatingMigratedVm.MergeFrom(other.InstantiatingMigratedVm); + break; + } + + _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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.AdaptingOSStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AdaptingOSStep(); + if (stepCase_ == StepOneofCase.AdaptingOs) { + subBuilder.MergeFrom(AdaptingOs); + } + input.ReadMessage(subBuilder); + AdaptingOs = subBuilder; + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep(); + if (stepCase_ == StepOneofCase.PreparingVmDisks) { + subBuilder.MergeFrom(PreparingVmDisks); + } + input.ReadMessage(subBuilder); + PreparingVmDisks = subBuilder; + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep(); + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) { + subBuilder.MergeFrom(InstantiatingMigratedVm); + } + input.ReadMessage(subBuilder); + InstantiatingMigratedVm = subBuilder; + 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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.AdaptingOSStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AdaptingOSStep(); + if (stepCase_ == StepOneofCase.AdaptingOs) { + subBuilder.MergeFrom(AdaptingOs); + } + input.ReadMessage(subBuilder); + AdaptingOs = subBuilder; + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep(); + if (stepCase_ == StepOneofCase.PreparingVmDisks) { + subBuilder.MergeFrom(PreparingVmDisks); + } + input.ReadMessage(subBuilder); + PreparingVmDisks = subBuilder; + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep(); + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) { + subBuilder.MergeFrom(InstantiatingMigratedVm); + } + input.ReadMessage(subBuilder); + InstantiatingMigratedVm = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// AdaptingOSStep contains specific step details. + /// + public sealed partial class AdaptingOSStep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdaptingOSStep()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 AdaptingOSStep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdaptingOSStep(AdaptingOSStep other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdaptingOSStep Clone() { + return new AdaptingOSStep(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AdaptingOSStep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AdaptingOSStep 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(AdaptingOSStep 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 + + } + + /// + /// PreparingVMDisksStep contains specific step details. + /// + public sealed partial class PreparingVMDisksStep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PreparingVMDisksStep()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 PreparingVMDisksStep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PreparingVMDisksStep(PreparingVMDisksStep other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PreparingVMDisksStep Clone() { + return new PreparingVMDisksStep(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PreparingVMDisksStep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PreparingVMDisksStep 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(PreparingVMDisksStep 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 + + } + + /// + /// InstantiatingMigratedVMStep contains specific step details. + /// + public sealed partial class InstantiatingMigratedVMStep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InstantiatingMigratedVMStep()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 InstantiatingMigratedVMStep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InstantiatingMigratedVMStep(InstantiatingMigratedVMStep other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InstantiatingMigratedVMStep Clone() { + return new InstantiatingMigratedVMStep(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InstantiatingMigratedVMStep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InstantiatingMigratedVMStep 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(InstantiatingMigratedVMStep 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 + + } + + /// + /// CutoverJob message describes a cutover of a migrating VM. The CutoverJob is + /// the operation of shutting down the VM, creating a snapshot and + /// clonning the VM using the replicated snapshot. + /// + public sealed partial class CutoverJob : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CutoverJob()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.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 CutoverJob() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CutoverJob(CutoverJob other) : this() { + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + name_ = other.name_; + state_ = other.state_; + stateTime_ = other.stateTime_ != null ? other.stateTime_.Clone() : null; + progressPercent_ = other.progressPercent_; + error_ = other.error_ != null ? other.error_.Clone() : null; + stateMessage_ = other.stateMessage_; + steps_ = other.steps_.Clone(); + switch (other.TargetVmDetailsCase) { + case TargetVmDetailsOneofCase.ComputeEngineTargetDetails: + ComputeEngineTargetDetails = other.ComputeEngineTargetDetails.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CutoverJob Clone() { + return new CutoverJob(this); + } + + /// Field number for the "compute_engine_target_details" field. + public const int ComputeEngineTargetDetailsFieldNumber = 14; + /// + /// Output only. Details of the target VM in Compute Engine. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails ComputeEngineTargetDetails { + get { return targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails) targetVmDetails_ : null; } + set { + targetVmDetails_ = value; + targetVmDetailsCase_ = value == null ? TargetVmDetailsOneofCase.None : TargetVmDetailsOneofCase.ComputeEngineTargetDetails; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the cutover job was created (as an API call, not when + /// it was actually created in the target). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 16; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The time the cutover job had finished. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// Output only. The name of the cutover job. + /// + [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 "state" field. + public const int StateFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Types.State state_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Types.State.Unspecified; + /// + /// Output only. State of the cutover job. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "state_time" field. + public const int StateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp stateTime_; + /// + /// Output only. The time the state was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StateTime { + get { return stateTime_; } + set { + stateTime_ = value; + } + } + + /// Field number for the "progress_percent" field. + public const int ProgressPercentFieldNumber = 13; + private int progressPercent_; + /// + /// Output only. The current progress in percentage of the cutover job. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProgressPercent { + get { return progressPercent_; } + set { + progressPercent_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 9; + private global::Google.Rpc.Status error_; + /// + /// Output only. Provides details for the errors that led to the Cutover Job's + /// state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "state_message" field. + public const int StateMessageFieldNumber = 10; + private string stateMessage_ = ""; + /// + /// Output only. A message providing possible extra details about the current + /// state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StateMessage { + get { return stateMessage_; } + set { + stateMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "steps" field. + public const int StepsFieldNumber = 17; + private static readonly pb::FieldCodec _repeated_steps_codec + = pb::FieldCodec.ForMessage(138, global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverStep.Parser); + private readonly pbc::RepeatedField steps_ = new pbc::RepeatedField(); + /// + /// Output only. The cutover steps list representing its progress. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Steps { + get { return steps_; } + } + + private object targetVmDetails_; + /// Enum of possible cases for the "target_vm_details" oneof. + public enum TargetVmDetailsOneofCase { + None = 0, + ComputeEngineTargetDetails = 14, + } + private TargetVmDetailsOneofCase targetVmDetailsCase_ = TargetVmDetailsOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TargetVmDetailsOneofCase TargetVmDetailsCase { + get { return targetVmDetailsCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetVmDetails() { + targetVmDetailsCase_ = TargetVmDetailsOneofCase.None; + targetVmDetails_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CutoverJob); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CutoverJob other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ComputeEngineTargetDetails, other.ComputeEngineTargetDetails)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (Name != other.Name) return false; + if (State != other.State) return false; + if (!object.Equals(StateTime, other.StateTime)) return false; + if (ProgressPercent != other.ProgressPercent) return false; + if (!object.Equals(Error, other.Error)) return false; + if (StateMessage != other.StateMessage) return false; + if(!steps_.Equals(other.steps_)) return false; + if (TargetVmDetailsCase != other.TargetVmDetailsCase) 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 (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) hash ^= ComputeEngineTargetDetails.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (stateTime_ != null) hash ^= StateTime.GetHashCode(); + if (ProgressPercent != 0) hash ^= ProgressPercent.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + if (StateMessage.Length != 0) hash ^= StateMessage.GetHashCode(); + hash ^= steps_.GetHashCode(); + hash ^= (int) targetVmDetailsCase_; + 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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Types.State.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) State); + } + if (stateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(StateTime); + } + if (error_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Error); + } + if (StateMessage.Length != 0) { + output.WriteRawTag(82); + output.WriteString(StateMessage); + } + if (ProgressPercent != 0) { + output.WriteRawTag(104); + output.WriteInt32(ProgressPercent); + } + if (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) { + output.WriteRawTag(114); + output.WriteMessage(ComputeEngineTargetDetails); + } + if (endTime_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(EndTime); + } + steps_.WriteTo(output, _repeated_steps_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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Types.State.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) State); + } + if (stateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(StateTime); + } + if (error_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Error); + } + if (StateMessage.Length != 0) { + output.WriteRawTag(82); + output.WriteString(StateMessage); + } + if (ProgressPercent != 0) { + output.WriteRawTag(104); + output.WriteInt32(ProgressPercent); + } + if (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) { + output.WriteRawTag(114); + output.WriteMessage(ComputeEngineTargetDetails); + } + if (endTime_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(EndTime); + } + steps_.WriteTo(ref output, _repeated_steps_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 (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ComputeEngineTargetDetails); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (endTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (stateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StateTime); + } + if (ProgressPercent != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProgressPercent); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (StateMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StateMessage); + } + size += steps_.CalculateSize(_repeated_steps_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CutoverJob other) { + if (other == null) { + return; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Types.State.Unspecified) { + State = other.State; + } + if (other.stateTime_ != null) { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StateTime.MergeFrom(other.StateTime); + } + if (other.ProgressPercent != 0) { + ProgressPercent = other.ProgressPercent; + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + if (other.StateMessage.Length != 0) { + StateMessage = other.StateMessage; + } + steps_.Add(other.steps_); + switch (other.TargetVmDetailsCase) { + case TargetVmDetailsOneofCase.ComputeEngineTargetDetails: + if (ComputeEngineTargetDetails == null) { + ComputeEngineTargetDetails = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails(); + } + ComputeEngineTargetDetails.MergeFrom(other.ComputeEngineTargetDetails); + break; + } + + _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 (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 40: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Types.State) input.ReadEnum(); + break; + } + case 50: { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StateTime); + break; + } + case 74: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 82: { + StateMessage = input.ReadString(); + break; + } + case 104: { + ProgressPercent = input.ReadInt32(); + break; + } + case 114: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails(); + if (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) { + subBuilder.MergeFrom(ComputeEngineTargetDetails); + } + input.ReadMessage(subBuilder); + ComputeEngineTargetDetails = subBuilder; + break; + } + case 130: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 138: { + steps_.AddEntriesFrom(input, _repeated_steps_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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 40: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob.Types.State) input.ReadEnum(); + break; + } + case 50: { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StateTime); + break; + } + case 74: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 82: { + StateMessage = input.ReadString(); + break; + } + case 104: { + ProgressPercent = input.ReadInt32(); + break; + } + case 114: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineTargetDetails(); + if (targetVmDetailsCase_ == TargetVmDetailsOneofCase.ComputeEngineTargetDetails) { + subBuilder.MergeFrom(ComputeEngineTargetDetails); + } + input.ReadMessage(subBuilder); + ComputeEngineTargetDetails = subBuilder; + break; + } + case 130: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 138: { + steps_.AddEntriesFrom(ref input, _repeated_steps_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CutoverJob message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible states of the cutover job. + /// + public enum State { + /// + /// The state is unknown. This is used for API compatibility only and is not + /// used by the system. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The cutover job has not yet started. + /// + [pbr::OriginalName("PENDING")] Pending = 1, + /// + /// The cutover job finished with errors. + /// + [pbr::OriginalName("FAILED")] Failed = 2, + /// + /// The cutover job finished successfully. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 3, + /// + /// The cutover job was cancelled. + /// + [pbr::OriginalName("CANCELLED")] Cancelled = 4, + /// + /// The cutover job is being cancelled. + /// + [pbr::OriginalName("CANCELLING")] Cancelling = 5, + /// + /// The cutover job is active and running. + /// + [pbr::OriginalName("ACTIVE")] Active = 6, + /// + /// OS adaptation is running as part of the cutover job to generate license. + /// + [pbr::OriginalName("ADAPTING_OS")] AdaptingOs = 7, + } + + } + #endregion + + } + + /// + /// CutoverStep holds information about the cutover step progress. + /// + public sealed partial class CutoverStep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CutoverStep()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[14]; } + } + + [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 CutoverStep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CutoverStep(CutoverStep other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + switch (other.StepCase) { + case StepOneofCase.PreviousReplicationCycle: + PreviousReplicationCycle = other.PreviousReplicationCycle.Clone(); + break; + case StepOneofCase.ShuttingDownSourceVm: + ShuttingDownSourceVm = other.ShuttingDownSourceVm.Clone(); + break; + case StepOneofCase.FinalSync: + FinalSync = other.FinalSync.Clone(); + break; + case StepOneofCase.PreparingVmDisks: + PreparingVmDisks = other.PreparingVmDisks.Clone(); + break; + case StepOneofCase.InstantiatingMigratedVm: + InstantiatingMigratedVm = other.InstantiatingMigratedVm.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CutoverStep Clone() { + return new CutoverStep(this); + } + + /// Field number for the "previous_replication_cycle" field. + public const int PreviousReplicationCycleFieldNumber = 3; + /// + /// A replication cycle prior cutover step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle PreviousReplicationCycle { + get { return stepCase_ == StepOneofCase.PreviousReplicationCycle ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle) step_ : null; } + set { + step_ = value; + stepCase_ = value == null ? StepOneofCase.None : StepOneofCase.PreviousReplicationCycle; + } + } + + /// Field number for the "shutting_down_source_vm" field. + public const int ShuttingDownSourceVmFieldNumber = 4; + /// + /// Shutting down VM step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ShuttingDownSourceVMStep ShuttingDownSourceVm { + get { return stepCase_ == StepOneofCase.ShuttingDownSourceVm ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ShuttingDownSourceVMStep) step_ : null; } + set { + step_ = value; + stepCase_ = value == null ? StepOneofCase.None : StepOneofCase.ShuttingDownSourceVm; + } + } + + /// Field number for the "final_sync" field. + public const int FinalSyncFieldNumber = 5; + /// + /// Final sync step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle FinalSync { + get { return stepCase_ == StepOneofCase.FinalSync ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle) step_ : null; } + set { + step_ = value; + stepCase_ = value == null ? StepOneofCase.None : StepOneofCase.FinalSync; + } + } + + /// Field number for the "preparing_vm_disks" field. + public const int PreparingVmDisksFieldNumber = 6; + /// + /// Preparing VM disks step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep PreparingVmDisks { + get { return stepCase_ == StepOneofCase.PreparingVmDisks ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep) step_ : null; } + set { + step_ = value; + stepCase_ = value == null ? StepOneofCase.None : StepOneofCase.PreparingVmDisks; + } + } + + /// Field number for the "instantiating_migrated_vm" field. + public const int InstantiatingMigratedVmFieldNumber = 7; + /// + /// Instantiating migrated VM step. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep InstantiatingMigratedVm { + get { return stepCase_ == StepOneofCase.InstantiatingMigratedVm ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep) step_ : null; } + set { + step_ = value; + stepCase_ = value == null ? StepOneofCase.None : StepOneofCase.InstantiatingMigratedVm; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// The time the step has started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// The time the step has ended. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + private object step_; + /// Enum of possible cases for the "step" oneof. + public enum StepOneofCase { + None = 0, + PreviousReplicationCycle = 3, + ShuttingDownSourceVm = 4, + FinalSync = 5, + PreparingVmDisks = 6, + InstantiatingMigratedVm = 7, + } + private StepOneofCase stepCase_ = StepOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StepOneofCase StepCase { + get { return stepCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStep() { + stepCase_ = StepOneofCase.None; + step_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CutoverStep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CutoverStep other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(PreviousReplicationCycle, other.PreviousReplicationCycle)) return false; + if (!object.Equals(ShuttingDownSourceVm, other.ShuttingDownSourceVm)) return false; + if (!object.Equals(FinalSync, other.FinalSync)) return false; + if (!object.Equals(PreparingVmDisks, other.PreparingVmDisks)) return false; + if (!object.Equals(InstantiatingMigratedVm, other.InstantiatingMigratedVm)) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (StepCase != other.StepCase) 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 (stepCase_ == StepOneofCase.PreviousReplicationCycle) hash ^= PreviousReplicationCycle.GetHashCode(); + if (stepCase_ == StepOneofCase.ShuttingDownSourceVm) hash ^= ShuttingDownSourceVm.GetHashCode(); + if (stepCase_ == StepOneofCase.FinalSync) hash ^= FinalSync.GetHashCode(); + if (stepCase_ == StepOneofCase.PreparingVmDisks) hash ^= PreparingVmDisks.GetHashCode(); + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) hash ^= InstantiatingMigratedVm.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + hash ^= (int) stepCase_; + 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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (stepCase_ == StepOneofCase.PreviousReplicationCycle) { + output.WriteRawTag(26); + output.WriteMessage(PreviousReplicationCycle); + } + if (stepCase_ == StepOneofCase.ShuttingDownSourceVm) { + output.WriteRawTag(34); + output.WriteMessage(ShuttingDownSourceVm); + } + if (stepCase_ == StepOneofCase.FinalSync) { + output.WriteRawTag(42); + output.WriteMessage(FinalSync); + } + if (stepCase_ == StepOneofCase.PreparingVmDisks) { + output.WriteRawTag(50); + output.WriteMessage(PreparingVmDisks); + } + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) { + output.WriteRawTag(58); + output.WriteMessage(InstantiatingMigratedVm); + } + 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 (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (stepCase_ == StepOneofCase.PreviousReplicationCycle) { + output.WriteRawTag(26); + output.WriteMessage(PreviousReplicationCycle); + } + if (stepCase_ == StepOneofCase.ShuttingDownSourceVm) { + output.WriteRawTag(34); + output.WriteMessage(ShuttingDownSourceVm); + } + if (stepCase_ == StepOneofCase.FinalSync) { + output.WriteRawTag(42); + output.WriteMessage(FinalSync); + } + if (stepCase_ == StepOneofCase.PreparingVmDisks) { + output.WriteRawTag(50); + output.WriteMessage(PreparingVmDisks); + } + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) { + output.WriteRawTag(58); + output.WriteMessage(InstantiatingMigratedVm); + } + 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 (stepCase_ == StepOneofCase.PreviousReplicationCycle) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PreviousReplicationCycle); + } + if (stepCase_ == StepOneofCase.ShuttingDownSourceVm) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ShuttingDownSourceVm); + } + if (stepCase_ == StepOneofCase.FinalSync) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinalSync); + } + if (stepCase_ == StepOneofCase.PreparingVmDisks) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PreparingVmDisks); + } + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InstantiatingMigratedVm); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CutoverStep other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + switch (other.StepCase) { + case StepOneofCase.PreviousReplicationCycle: + if (PreviousReplicationCycle == null) { + PreviousReplicationCycle = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + } + PreviousReplicationCycle.MergeFrom(other.PreviousReplicationCycle); + break; + case StepOneofCase.ShuttingDownSourceVm: + if (ShuttingDownSourceVm == null) { + ShuttingDownSourceVm = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ShuttingDownSourceVMStep(); + } + ShuttingDownSourceVm.MergeFrom(other.ShuttingDownSourceVm); + break; + case StepOneofCase.FinalSync: + if (FinalSync == null) { + FinalSync = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + } + FinalSync.MergeFrom(other.FinalSync); + break; + case StepOneofCase.PreparingVmDisks: + if (PreparingVmDisks == null) { + PreparingVmDisks = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep(); + } + PreparingVmDisks.MergeFrom(other.PreparingVmDisks); + break; + case StepOneofCase.InstantiatingMigratedVm: + if (InstantiatingMigratedVm == null) { + InstantiatingMigratedVm = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep(); + } + InstantiatingMigratedVm.MergeFrom(other.InstantiatingMigratedVm); + break; + } + + _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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + if (stepCase_ == StepOneofCase.PreviousReplicationCycle) { + subBuilder.MergeFrom(PreviousReplicationCycle); + } + input.ReadMessage(subBuilder); + PreviousReplicationCycle = subBuilder; + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ShuttingDownSourceVMStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ShuttingDownSourceVMStep(); + if (stepCase_ == StepOneofCase.ShuttingDownSourceVm) { + subBuilder.MergeFrom(ShuttingDownSourceVm); + } + input.ReadMessage(subBuilder); + ShuttingDownSourceVm = subBuilder; + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + if (stepCase_ == StepOneofCase.FinalSync) { + subBuilder.MergeFrom(FinalSync); + } + input.ReadMessage(subBuilder); + FinalSync = subBuilder; + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep(); + if (stepCase_ == StepOneofCase.PreparingVmDisks) { + subBuilder.MergeFrom(PreparingVmDisks); + } + input.ReadMessage(subBuilder); + PreparingVmDisks = subBuilder; + break; + } + case 58: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep(); + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) { + subBuilder.MergeFrom(InstantiatingMigratedVm); + } + input.ReadMessage(subBuilder); + InstantiatingMigratedVm = subBuilder; + 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 (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + if (stepCase_ == StepOneofCase.PreviousReplicationCycle) { + subBuilder.MergeFrom(PreviousReplicationCycle); + } + input.ReadMessage(subBuilder); + PreviousReplicationCycle = subBuilder; + break; + } + case 34: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ShuttingDownSourceVMStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ShuttingDownSourceVMStep(); + if (stepCase_ == StepOneofCase.ShuttingDownSourceVm) { + subBuilder.MergeFrom(ShuttingDownSourceVm); + } + input.ReadMessage(subBuilder); + ShuttingDownSourceVm = subBuilder; + break; + } + case 42: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ReplicationCycle(); + if (stepCase_ == StepOneofCase.FinalSync) { + subBuilder.MergeFrom(FinalSync); + } + input.ReadMessage(subBuilder); + FinalSync = subBuilder; + break; + } + case 50: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.PreparingVMDisksStep(); + if (stepCase_ == StepOneofCase.PreparingVmDisks) { + subBuilder.MergeFrom(PreparingVmDisks); + } + input.ReadMessage(subBuilder); + PreparingVmDisks = subBuilder; + break; + } + case 58: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.InstantiatingMigratedVMStep(); + if (stepCase_ == StepOneofCase.InstantiatingMigratedVm) { + subBuilder.MergeFrom(InstantiatingMigratedVm); + } + input.ReadMessage(subBuilder); + InstantiatingMigratedVm = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// ShuttingDownSourceVMStep contains specific step details. + /// + public sealed partial class ShuttingDownSourceVMStep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShuttingDownSourceVMStep()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[15]; } + } + + [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 ShuttingDownSourceVMStep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ShuttingDownSourceVMStep(ShuttingDownSourceVMStep other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ShuttingDownSourceVMStep Clone() { + return new ShuttingDownSourceVMStep(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ShuttingDownSourceVMStep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ShuttingDownSourceVMStep 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(ShuttingDownSourceVMStep 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 + + } + + /// + /// Source message describes a specific vm migration Source resource. It contains + /// the source environment information. + /// + public sealed partial class Source : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Source()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[16]; } + } + + [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 Source() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Source(Source other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + description_ = other.description_; + switch (other.SourceDetailsCase) { + case SourceDetailsOneofCase.Vmware: + Vmware = other.Vmware.Clone(); + break; + case SourceDetailsOneofCase.Aws: + Aws = other.Aws.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Source Clone() { + return new Source(this); + } + + /// Field number for the "vmware" field. + public const int VmwareFieldNumber = 10; + /// + /// Vmware type source details. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareSourceDetails Vmware { + get { return sourceDetailsCase_ == SourceDetailsOneofCase.Vmware ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareSourceDetails) sourceDetails_ : null; } + set { + sourceDetails_ = value; + sourceDetailsCase_ = value == null ? SourceDetailsOneofCase.None : SourceDetailsOneofCase.Vmware; + } + } + + /// Field number for the "aws" field. + public const int AwsFieldNumber = 12; + /// + /// AWS type source details. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails Aws { + get { return sourceDetailsCase_ == SourceDetailsOneofCase.Aws ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails) sourceDetails_ : null; } + set { + sourceDetails_ = value; + sourceDetailsCase_ = value == null ? SourceDetailsOneofCase.None : SourceDetailsOneofCase.Aws; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The Source 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 "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The create time timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The update time timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// The labels of the source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 6; + private string description_ = ""; + /// + /// User-provided description of the source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object sourceDetails_; + /// Enum of possible cases for the "source_details" oneof. + public enum SourceDetailsOneofCase { + None = 0, + Vmware = 10, + Aws = 12, + } + private SourceDetailsOneofCase sourceDetailsCase_ = SourceDetailsOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourceDetailsOneofCase SourceDetailsCase { + get { return sourceDetailsCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSourceDetails() { + sourceDetailsCase_ = SourceDetailsOneofCase.None; + sourceDetails_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Source); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Source other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Vmware, other.Vmware)) return false; + if (!object.Equals(Aws, other.Aws)) return false; + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Description != other.Description) return false; + if (SourceDetailsCase != other.SourceDetailsCase) 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 (sourceDetailsCase_ == SourceDetailsOneofCase.Vmware) hash ^= Vmware.GetHashCode(); + if (sourceDetailsCase_ == SourceDetailsOneofCase.Aws) hash ^= Aws.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + hash ^= (int) sourceDetailsCase_; + 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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); + } + if (sourceDetailsCase_ == SourceDetailsOneofCase.Vmware) { + output.WriteRawTag(82); + output.WriteMessage(Vmware); + } + if (sourceDetailsCase_ == SourceDetailsOneofCase.Aws) { + output.WriteRawTag(98); + output.WriteMessage(Aws); + } + 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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); + } + if (sourceDetailsCase_ == SourceDetailsOneofCase.Vmware) { + output.WriteRawTag(82); + output.WriteMessage(Vmware); + } + if (sourceDetailsCase_ == SourceDetailsOneofCase.Aws) { + output.WriteRawTag(98); + output.WriteMessage(Aws); + } + 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 (sourceDetailsCase_ == SourceDetailsOneofCase.Vmware) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Vmware); + } + if (sourceDetailsCase_ == SourceDetailsOneofCase.Aws) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Aws); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Source other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + if (other.Description.Length != 0) { + Description = other.Description; + } + switch (other.SourceDetailsCase) { + case SourceDetailsOneofCase.Vmware: + if (Vmware == null) { + Vmware = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareSourceDetails(); + } + Vmware.MergeFrom(other.Vmware); + break; + case SourceDetailsOneofCase.Aws: + if (Aws == null) { + Aws = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails(); + } + Aws.MergeFrom(other.Aws); + break; + } + + _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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 50: { + Description = input.ReadString(); + break; + } + case 82: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareSourceDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareSourceDetails(); + if (sourceDetailsCase_ == SourceDetailsOneofCase.Vmware) { + subBuilder.MergeFrom(Vmware); + } + input.ReadMessage(subBuilder); + Vmware = subBuilder; + break; + } + case 98: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails(); + if (sourceDetailsCase_ == SourceDetailsOneofCase.Aws) { + subBuilder.MergeFrom(Aws); + } + input.ReadMessage(subBuilder); + Aws = subBuilder; + 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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 50: { + Description = input.ReadString(); + break; + } + case 82: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareSourceDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareSourceDetails(); + if (sourceDetailsCase_ == SourceDetailsOneofCase.Vmware) { + subBuilder.MergeFrom(Vmware); + } + input.ReadMessage(subBuilder); + Vmware = subBuilder; + break; + } + case 98: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails(); + if (sourceDetailsCase_ == SourceDetailsOneofCase.Aws) { + subBuilder.MergeFrom(Aws); + } + input.ReadMessage(subBuilder); + Aws = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// VmwareSourceDetails message describes a specific source details for the + /// vmware source type. + /// + public sealed partial class VmwareSourceDetails : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VmwareSourceDetails()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[17]; } + } + + [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 VmwareSourceDetails() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VmwareSourceDetails(VmwareSourceDetails other) : this() { + username_ = other.username_; + vcenterIp_ = other.vcenterIp_; + thumbprint_ = other.thumbprint_; + resolvedVcenterHost_ = other.resolvedVcenterHost_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VmwareSourceDetails Clone() { + return new VmwareSourceDetails(this); + } + + /// Field number for the "username" field. + public const int UsernameFieldNumber = 1; + private string username_ = ""; + /// + /// The credentials username. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Username { + get { return username_; } + set { + username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "vcenter_ip" field. + public const int VcenterIpFieldNumber = 3; + private string vcenterIp_ = ""; + /// + /// The ip address of the vcenter this Source represents. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VcenterIp { + get { return vcenterIp_; } + set { + vcenterIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "thumbprint" field. + public const int ThumbprintFieldNumber = 4; + private string thumbprint_ = ""; + /// + /// The thumbprint representing the certificate for the vcenter. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Thumbprint { + get { return thumbprint_; } + set { + thumbprint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resolved_vcenter_host" field. + public const int ResolvedVcenterHostFieldNumber = 5; + private string resolvedVcenterHost_ = ""; + /// + /// The hostname of the vcenter. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResolvedVcenterHost { + get { return resolvedVcenterHost_; } + set { + resolvedVcenterHost_ = 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 VmwareSourceDetails); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VmwareSourceDetails other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Username != other.Username) return false; + if (VcenterIp != other.VcenterIp) return false; + if (Thumbprint != other.Thumbprint) return false; + if (ResolvedVcenterHost != other.ResolvedVcenterHost) 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 (Username.Length != 0) hash ^= Username.GetHashCode(); + if (VcenterIp.Length != 0) hash ^= VcenterIp.GetHashCode(); + if (Thumbprint.Length != 0) hash ^= Thumbprint.GetHashCode(); + if (ResolvedVcenterHost.Length != 0) hash ^= ResolvedVcenterHost.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 (Username.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Username); + } + if (VcenterIp.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VcenterIp); + } + if (Thumbprint.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Thumbprint); + } + if (ResolvedVcenterHost.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ResolvedVcenterHost); + } + 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 (Username.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Username); + } + if (VcenterIp.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VcenterIp); + } + if (Thumbprint.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Thumbprint); + } + if (ResolvedVcenterHost.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ResolvedVcenterHost); + } + 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 (Username.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); + } + if (VcenterIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VcenterIp); + } + if (Thumbprint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Thumbprint); + } + if (ResolvedVcenterHost.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResolvedVcenterHost); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VmwareSourceDetails other) { + if (other == null) { + return; + } + if (other.Username.Length != 0) { + Username = other.Username; + } + if (other.VcenterIp.Length != 0) { + VcenterIp = other.VcenterIp; + } + if (other.Thumbprint.Length != 0) { + Thumbprint = other.Thumbprint; + } + if (other.ResolvedVcenterHost.Length != 0) { + ResolvedVcenterHost = other.ResolvedVcenterHost; + } + _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: { + Username = input.ReadString(); + break; + } + case 26: { + VcenterIp = input.ReadString(); + break; + } + case 34: { + Thumbprint = input.ReadString(); + break; + } + case 42: { + ResolvedVcenterHost = 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: { + Username = input.ReadString(); + break; + } + case 26: { + VcenterIp = input.ReadString(); + break; + } + case 34: { + Thumbprint = input.ReadString(); + break; + } + case 42: { + ResolvedVcenterHost = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// AwsSourceDetails message describes a specific source details for the + /// AWS source type. + /// + public sealed partial class AwsSourceDetails : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AwsSourceDetails()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[18]; } + } + + [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 AwsSourceDetails() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AwsSourceDetails(AwsSourceDetails other) : this() { + awsRegion_ = other.awsRegion_; + state_ = other.state_; + error_ = other.error_ != null ? other.error_.Clone() : null; + inventoryTagList_ = other.inventoryTagList_.Clone(); + inventorySecurityGroupNames_ = other.inventorySecurityGroupNames_.Clone(); + migrationResourcesUserTags_ = other.migrationResourcesUserTags_.Clone(); + publicIp_ = other.publicIp_; + switch (other.CredentialsTypeCase) { + case CredentialsTypeOneofCase.AccessKeyCreds: + AccessKeyCreds = other.AccessKeyCreds.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AwsSourceDetails Clone() { + return new AwsSourceDetails(this); + } + + /// Field number for the "access_key_creds" field. + public const int AccessKeyCredsFieldNumber = 11; + /// + /// AWS Credentials using access key id and secret. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.AccessKeyCredentials AccessKeyCreds { + get { return credentialsTypeCase_ == CredentialsTypeOneofCase.AccessKeyCreds ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.AccessKeyCredentials) credentialsType_ : null; } + set { + credentialsType_ = value; + credentialsTypeCase_ = value == null ? CredentialsTypeOneofCase.None : CredentialsTypeOneofCase.AccessKeyCreds; + } + } + + /// Field number for the "aws_region" field. + public const int AwsRegionFieldNumber = 3; + private string awsRegion_ = ""; + /// + /// Immutable. The AWS region that the source VMs will be migrated from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AwsRegion { + get { return awsRegion_; } + set { + awsRegion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.State state_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.State.Unspecified; + /// + /// Output only. State of the source as determined by the health check. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 5; + private global::Google.Rpc.Status error_; + /// + /// Output only. Provides details on the state of the Source in case of an + /// error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "inventory_tag_list" field. + public const int InventoryTagListFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_inventoryTagList_codec + = pb::FieldCodec.ForMessage(82, global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.Tag.Parser); + private readonly pbc::RepeatedField inventoryTagList_ = new pbc::RepeatedField(); + /// + /// AWS resource tags to limit the scope of the source inventory. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField InventoryTagList { + get { return inventoryTagList_; } + } + + /// Field number for the "inventory_security_group_names" field. + public const int InventorySecurityGroupNamesFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_inventorySecurityGroupNames_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField inventorySecurityGroupNames_ = new pbc::RepeatedField(); + /// + /// AWS security group names to limit the scope of the source + /// inventory. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField InventorySecurityGroupNames { + get { return inventorySecurityGroupNames_; } + } + + /// Field number for the "migration_resources_user_tags" field. + public const int MigrationResourcesUserTagsFieldNumber = 8; + private static readonly pbc::MapField.Codec _map_migrationResourcesUserTags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66); + private readonly pbc::MapField migrationResourcesUserTags_ = new pbc::MapField(); + /// + /// User specified tags to add to every M2VM generated resource in AWS. + /// These tags will be set in addition to the default tags that are set as part + /// of the migration process. The tags must not begin with the reserved prefix + /// `m2vm`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MigrationResourcesUserTags { + get { return migrationResourcesUserTags_; } + } + + /// Field number for the "public_ip" field. + public const int PublicIpFieldNumber = 9; + private string publicIp_ = ""; + /// + /// Output only. The source's public IP. All communication initiated by this + /// source will originate from this IP. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PublicIp { + get { return publicIp_; } + set { + publicIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object credentialsType_; + /// Enum of possible cases for the "credentials_type" oneof. + public enum CredentialsTypeOneofCase { + None = 0, + AccessKeyCreds = 11, + } + private CredentialsTypeOneofCase credentialsTypeCase_ = CredentialsTypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CredentialsTypeOneofCase CredentialsTypeCase { + get { return credentialsTypeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCredentialsType() { + credentialsTypeCase_ = CredentialsTypeOneofCase.None; + credentialsType_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AwsSourceDetails); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AwsSourceDetails other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AccessKeyCreds, other.AccessKeyCreds)) return false; + if (AwsRegion != other.AwsRegion) return false; + if (State != other.State) return false; + if (!object.Equals(Error, other.Error)) return false; + if(!inventoryTagList_.Equals(other.inventoryTagList_)) return false; + if(!inventorySecurityGroupNames_.Equals(other.inventorySecurityGroupNames_)) return false; + if (!MigrationResourcesUserTags.Equals(other.MigrationResourcesUserTags)) return false; + if (PublicIp != other.PublicIp) return false; + if (CredentialsTypeCase != other.CredentialsTypeCase) 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 (credentialsTypeCase_ == CredentialsTypeOneofCase.AccessKeyCreds) hash ^= AccessKeyCreds.GetHashCode(); + if (AwsRegion.Length != 0) hash ^= AwsRegion.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + hash ^= inventoryTagList_.GetHashCode(); + hash ^= inventorySecurityGroupNames_.GetHashCode(); + hash ^= MigrationResourcesUserTags.GetHashCode(); + if (PublicIp.Length != 0) hash ^= PublicIp.GetHashCode(); + hash ^= (int) credentialsTypeCase_; + 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 (AwsRegion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AwsRegion); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (error_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Error); + } + inventorySecurityGroupNames_.WriteTo(output, _repeated_inventorySecurityGroupNames_codec); + migrationResourcesUserTags_.WriteTo(output, _map_migrationResourcesUserTags_codec); + if (PublicIp.Length != 0) { + output.WriteRawTag(74); + output.WriteString(PublicIp); + } + inventoryTagList_.WriteTo(output, _repeated_inventoryTagList_codec); + if (credentialsTypeCase_ == CredentialsTypeOneofCase.AccessKeyCreds) { + output.WriteRawTag(90); + output.WriteMessage(AccessKeyCreds); + } + 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 (AwsRegion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AwsRegion); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (error_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Error); + } + inventorySecurityGroupNames_.WriteTo(ref output, _repeated_inventorySecurityGroupNames_codec); + migrationResourcesUserTags_.WriteTo(ref output, _map_migrationResourcesUserTags_codec); + if (PublicIp.Length != 0) { + output.WriteRawTag(74); + output.WriteString(PublicIp); + } + inventoryTagList_.WriteTo(ref output, _repeated_inventoryTagList_codec); + if (credentialsTypeCase_ == CredentialsTypeOneofCase.AccessKeyCreds) { + output.WriteRawTag(90); + output.WriteMessage(AccessKeyCreds); + } + 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 (credentialsTypeCase_ == CredentialsTypeOneofCase.AccessKeyCreds) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccessKeyCreds); + } + if (AwsRegion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AwsRegion); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + size += inventoryTagList_.CalculateSize(_repeated_inventoryTagList_codec); + size += inventorySecurityGroupNames_.CalculateSize(_repeated_inventorySecurityGroupNames_codec); + size += migrationResourcesUserTags_.CalculateSize(_map_migrationResourcesUserTags_codec); + if (PublicIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicIp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AwsSourceDetails other) { + if (other == null) { + return; + } + if (other.AwsRegion.Length != 0) { + AwsRegion = other.AwsRegion; + } + if (other.State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.State.Unspecified) { + State = other.State; + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + inventoryTagList_.Add(other.inventoryTagList_); + inventorySecurityGroupNames_.Add(other.inventorySecurityGroupNames_); + migrationResourcesUserTags_.MergeFrom(other.migrationResourcesUserTags_); + if (other.PublicIp.Length != 0) { + PublicIp = other.PublicIp; + } + switch (other.CredentialsTypeCase) { + case CredentialsTypeOneofCase.AccessKeyCreds: + if (AccessKeyCreds == null) { + AccessKeyCreds = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.AccessKeyCredentials(); + } + AccessKeyCreds.MergeFrom(other.AccessKeyCreds); + break; + } + + _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 26: { + AwsRegion = input.ReadString(); + break; + } + case 32: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.State) input.ReadEnum(); + break; + } + case 42: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 58: { + inventorySecurityGroupNames_.AddEntriesFrom(input, _repeated_inventorySecurityGroupNames_codec); + break; + } + case 66: { + migrationResourcesUserTags_.AddEntriesFrom(input, _map_migrationResourcesUserTags_codec); + break; + } + case 74: { + PublicIp = input.ReadString(); + break; + } + case 82: { + inventoryTagList_.AddEntriesFrom(input, _repeated_inventoryTagList_codec); + break; + } + case 90: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.AccessKeyCredentials subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.AccessKeyCredentials(); + if (credentialsTypeCase_ == CredentialsTypeOneofCase.AccessKeyCreds) { + subBuilder.MergeFrom(AccessKeyCreds); + } + input.ReadMessage(subBuilder); + AccessKeyCreds = subBuilder; + 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 26: { + AwsRegion = input.ReadString(); + break; + } + case 32: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.State) input.ReadEnum(); + break; + } + case 42: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 58: { + inventorySecurityGroupNames_.AddEntriesFrom(ref input, _repeated_inventorySecurityGroupNames_codec); + break; + } + case 66: { + migrationResourcesUserTags_.AddEntriesFrom(ref input, _map_migrationResourcesUserTags_codec); + break; + } + case 74: { + PublicIp = input.ReadString(); + break; + } + case 82: { + inventoryTagList_.AddEntriesFrom(ref input, _repeated_inventoryTagList_codec); + break; + } + case 90: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.AccessKeyCredentials subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.Types.AccessKeyCredentials(); + if (credentialsTypeCase_ == CredentialsTypeOneofCase.AccessKeyCreds) { + subBuilder.MergeFrom(AccessKeyCreds); + } + input.ReadMessage(subBuilder); + AccessKeyCreds = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AwsSourceDetails message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The possible values of the state. + /// + public enum State { + /// + /// The state is unknown. This is used for API compatibility only and is not + /// used by the system. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The state was not sampled by the health checks yet. + /// + [pbr::OriginalName("PENDING")] Pending = 1, + /// + /// The source is available but might not be usable yet due to invalid + /// credentials or another reason. + /// The error message will contain further details. + /// + [pbr::OriginalName("FAILED")] Failed = 2, + /// + /// The source exists and its credentials were verified. + /// + [pbr::OriginalName("ACTIVE")] Active = 3, + } + + /// + /// Message describing AWS Credentials using access key id and secret. + /// + public sealed partial class AccessKeyCredentials : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessKeyCredentials()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.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 AccessKeyCredentials() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessKeyCredentials(AccessKeyCredentials other) : this() { + accessKeyId_ = other.accessKeyId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessKeyCredentials Clone() { + return new AccessKeyCredentials(this); + } + + /// Field number for the "access_key_id" field. + public const int AccessKeyIdFieldNumber = 1; + private string accessKeyId_ = ""; + /// + /// AWS access key ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AccessKeyId { + get { return accessKeyId_; } + set { + accessKeyId_ = 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 AccessKeyCredentials); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AccessKeyCredentials other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AccessKeyId != other.AccessKeyId) 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 (AccessKeyId.Length != 0) hash ^= AccessKeyId.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 (AccessKeyId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AccessKeyId); + } + 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 (AccessKeyId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AccessKeyId); + } + 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 (AccessKeyId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessKeyId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AccessKeyCredentials other) { + if (other == null) { + return; + } + if (other.AccessKeyId.Length != 0) { + AccessKeyId = other.AccessKeyId; + } + _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: { + AccessKeyId = 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: { + AccessKeyId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Tag is an AWS tag representation. + /// + public sealed partial class Tag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Tag()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceDetails.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 Tag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Tag(Tag 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 Tag Clone() { + return new Tag(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private string key_ = ""; + /// + /// Key of tag. + /// + [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_ = ""; + /// + /// Value of tag. + /// + [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 Tag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Tag 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(Tag 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 + + } + + } + #endregion + + } + + /// + /// DatacenterConnector message describes a connector between the Source and + /// Google Cloud, which is installed on a vmware datacenter (an OVA vm installed + /// by the user) to connect the Datacenter to Google Cloud and support vm + /// migration data transfer. + /// + public sealed partial class DatacenterConnector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DatacenterConnector()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[19]; } + } + + [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 DatacenterConnector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatacenterConnector(DatacenterConnector other) : this() { + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + name_ = other.name_; + registrationId_ = other.registrationId_; + serviceAccount_ = other.serviceAccount_; + version_ = other.version_; + bucket_ = other.bucket_; + state_ = other.state_; + stateTime_ = other.stateTime_ != null ? other.stateTime_.Clone() : null; + error_ = other.error_ != null ? other.error_.Clone() : null; + applianceInfrastructureVersion_ = other.applianceInfrastructureVersion_; + applianceSoftwareVersion_ = other.applianceSoftwareVersion_; + availableVersions_ = other.availableVersions_ != null ? other.availableVersions_.Clone() : null; + upgradeStatus_ = other.upgradeStatus_ != null ? other.upgradeStatus_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatacenterConnector Clone() { + return new DatacenterConnector(this); + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the connector was created (as an API call, not when + /// it was actually installed). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The last time the connector was updated with an API call. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// Output only. The connector's 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 "registration_id" field. + public const int RegistrationIdFieldNumber = 12; + private string registrationId_ = ""; + /// + /// Immutable. A unique key for this connector. This key is internal to the OVA + /// connector and is supplied with its creation during the registration process + /// and can not be modified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RegistrationId { + get { return registrationId_; } + set { + registrationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_account" field. + public const int ServiceAccountFieldNumber = 5; + private string serviceAccount_ = ""; + /// + /// The service account to use in the connector when communicating with the + /// cloud. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccount { + get { return serviceAccount_; } + set { + serviceAccount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 6; + private string version_ = ""; + /// + /// The version running in the DatacenterConnector. This is supplied by the OVA + /// connector during the registration process and can not be modified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bucket" field. + public const int BucketFieldNumber = 10; + private string bucket_ = ""; + /// + /// Output only. The communication channel between the datacenter connector and + /// Google Cloud. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bucket { + get { return bucket_; } + set { + bucket_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 7; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Types.State state_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Types.State.Unspecified; + /// + /// Output only. State of the DatacenterConnector, as determined by the health + /// checks. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "state_time" field. + public const int StateTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp stateTime_; + /// + /// Output only. The time the state was last set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StateTime { + get { return stateTime_; } + set { + stateTime_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 11; + private global::Google.Rpc.Status error_; + /// + /// Output only. Provides details on the state of the Datacenter Connector in + /// case of an error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "appliance_infrastructure_version" field. + public const int ApplianceInfrastructureVersionFieldNumber = 13; + private string applianceInfrastructureVersion_ = ""; + /// + /// Output only. Appliance OVA version. + /// This is the OVA which is manually installed by the user and contains the + /// infrastructure for the automatically updatable components on the appliance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplianceInfrastructureVersion { + get { return applianceInfrastructureVersion_; } + set { + applianceInfrastructureVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "appliance_software_version" field. + public const int ApplianceSoftwareVersionFieldNumber = 14; + private string applianceSoftwareVersion_ = ""; + /// + /// Output only. Appliance last installed update bundle version. + /// This is the version of the automatically updatable components on the + /// appliance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplianceSoftwareVersion { + get { return applianceSoftwareVersion_; } + set { + applianceSoftwareVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "available_versions" field. + public const int AvailableVersionsFieldNumber = 15; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.AvailableUpdates availableVersions_; + /// + /// Output only. The available versions for updating this appliance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.AvailableUpdates AvailableVersions { + get { return availableVersions_; } + set { + availableVersions_ = value; + } + } + + /// Field number for the "upgrade_status" field. + public const int UpgradeStatusFieldNumber = 16; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus upgradeStatus_; + /// + /// Output only. The status of the current / last upgradeAppliance operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus UpgradeStatus { + get { return upgradeStatus_; } + set { + upgradeStatus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DatacenterConnector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DatacenterConnector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (Name != other.Name) return false; + if (RegistrationId != other.RegistrationId) return false; + if (ServiceAccount != other.ServiceAccount) return false; + if (Version != other.Version) return false; + if (Bucket != other.Bucket) return false; + if (State != other.State) return false; + if (!object.Equals(StateTime, other.StateTime)) return false; + if (!object.Equals(Error, other.Error)) return false; + if (ApplianceInfrastructureVersion != other.ApplianceInfrastructureVersion) return false; + if (ApplianceSoftwareVersion != other.ApplianceSoftwareVersion) return false; + if (!object.Equals(AvailableVersions, other.AvailableVersions)) return false; + if (!object.Equals(UpgradeStatus, other.UpgradeStatus)) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (RegistrationId.Length != 0) hash ^= RegistrationId.GetHashCode(); + if (ServiceAccount.Length != 0) hash ^= ServiceAccount.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (Bucket.Length != 0) hash ^= Bucket.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (stateTime_ != null) hash ^= StateTime.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + if (ApplianceInfrastructureVersion.Length != 0) hash ^= ApplianceInfrastructureVersion.GetHashCode(); + if (ApplianceSoftwareVersion.Length != 0) hash ^= ApplianceSoftwareVersion.GetHashCode(); + if (availableVersions_ != null) hash ^= AvailableVersions.GetHashCode(); + if (upgradeStatus_ != null) hash ^= UpgradeStatus.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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateTime); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (ServiceAccount.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ServiceAccount); + } + if (Version.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Version); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Types.State.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) State); + } + if (stateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(StateTime); + } + if (Bucket.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Bucket); + } + if (error_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Error); + } + if (RegistrationId.Length != 0) { + output.WriteRawTag(98); + output.WriteString(RegistrationId); + } + if (ApplianceInfrastructureVersion.Length != 0) { + output.WriteRawTag(106); + output.WriteString(ApplianceInfrastructureVersion); + } + if (ApplianceSoftwareVersion.Length != 0) { + output.WriteRawTag(114); + output.WriteString(ApplianceSoftwareVersion); + } + if (availableVersions_ != null) { + output.WriteRawTag(122); + output.WriteMessage(AvailableVersions); + } + if (upgradeStatus_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(UpgradeStatus); + } + 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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateTime); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (ServiceAccount.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ServiceAccount); + } + if (Version.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Version); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Types.State.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) State); + } + if (stateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(StateTime); + } + if (Bucket.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Bucket); + } + if (error_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Error); + } + if (RegistrationId.Length != 0) { + output.WriteRawTag(98); + output.WriteString(RegistrationId); + } + if (ApplianceInfrastructureVersion.Length != 0) { + output.WriteRawTag(106); + output.WriteString(ApplianceInfrastructureVersion); + } + if (ApplianceSoftwareVersion.Length != 0) { + output.WriteRawTag(114); + output.WriteString(ApplianceSoftwareVersion); + } + if (availableVersions_ != null) { + output.WriteRawTag(122); + output.WriteMessage(AvailableVersions); + } + if (upgradeStatus_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(UpgradeStatus); + } + 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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (RegistrationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RegistrationId); + } + if (ServiceAccount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccount); + } + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (Bucket.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Bucket); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (stateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StateTime); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (ApplianceInfrastructureVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplianceInfrastructureVersion); + } + if (ApplianceSoftwareVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplianceSoftwareVersion); + } + if (availableVersions_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AvailableVersions); + } + if (upgradeStatus_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UpgradeStatus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DatacenterConnector other) { + if (other == null) { + return; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.RegistrationId.Length != 0) { + RegistrationId = other.RegistrationId; + } + if (other.ServiceAccount.Length != 0) { + ServiceAccount = other.ServiceAccount; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + if (other.Bucket.Length != 0) { + Bucket = other.Bucket; + } + if (other.State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Types.State.Unspecified) { + State = other.State; + } + if (other.stateTime_ != null) { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StateTime.MergeFrom(other.StateTime); + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + if (other.ApplianceInfrastructureVersion.Length != 0) { + ApplianceInfrastructureVersion = other.ApplianceInfrastructureVersion; + } + if (other.ApplianceSoftwareVersion.Length != 0) { + ApplianceSoftwareVersion = other.ApplianceSoftwareVersion; + } + if (other.availableVersions_ != null) { + if (availableVersions_ == null) { + AvailableVersions = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AvailableUpdates(); + } + AvailableVersions.MergeFrom(other.AvailableVersions); + } + if (other.upgradeStatus_ != null) { + if (upgradeStatus_ == null) { + UpgradeStatus = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus(); + } + UpgradeStatus.MergeFrom(other.UpgradeStatus); + } + _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 (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 18: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 42: { + ServiceAccount = input.ReadString(); + break; + } + case 50: { + Version = input.ReadString(); + break; + } + case 56: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Types.State) input.ReadEnum(); + break; + } + case 66: { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StateTime); + break; + } + case 82: { + Bucket = input.ReadString(); + break; + } + case 90: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 98: { + RegistrationId = input.ReadString(); + break; + } + case 106: { + ApplianceInfrastructureVersion = input.ReadString(); + break; + } + case 114: { + ApplianceSoftwareVersion = input.ReadString(); + break; + } + case 122: { + if (availableVersions_ == null) { + AvailableVersions = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AvailableUpdates(); + } + input.ReadMessage(AvailableVersions); + break; + } + case 130: { + if (upgradeStatus_ == null) { + UpgradeStatus = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus(); + } + input.ReadMessage(UpgradeStatus); + 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 (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 18: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 42: { + ServiceAccount = input.ReadString(); + break; + } + case 50: { + Version = input.ReadString(); + break; + } + case 56: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector.Types.State) input.ReadEnum(); + break; + } + case 66: { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StateTime); + break; + } + case 82: { + Bucket = input.ReadString(); + break; + } + case 90: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 98: { + RegistrationId = input.ReadString(); + break; + } + case 106: { + ApplianceInfrastructureVersion = input.ReadString(); + break; + } + case 114: { + ApplianceSoftwareVersion = input.ReadString(); + break; + } + case 122: { + if (availableVersions_ == null) { + AvailableVersions = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AvailableUpdates(); + } + input.ReadMessage(AvailableVersions); + break; + } + case 130: { + if (upgradeStatus_ == null) { + UpgradeStatus = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus(); + } + input.ReadMessage(UpgradeStatus); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the DatacenterConnector message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The possible values of the state. + /// + public enum State { + /// + /// The state is unknown. This is used for API compatibility only and is not + /// used by the system. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The state was not sampled by the health checks yet. + /// + [pbr::OriginalName("PENDING")] Pending = 1, + /// + /// The source was sampled by health checks and is not available. + /// + [pbr::OriginalName("OFFLINE")] Offline = 2, + /// + /// The source is available but might not be usable yet due to unvalidated + /// credentials or another reason. The credentials referred to are the ones + /// to the Source. The error message will contain further details. + /// + [pbr::OriginalName("FAILED")] Failed = 3, + /// + /// The source exists and its credentials were verified. + /// + [pbr::OriginalName("ACTIVE")] Active = 4, + } + + } + #endregion + + } + + /// + /// UpgradeStatus contains information about upgradeAppliance operation. + /// + public sealed partial class UpgradeStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpgradeStatus()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[20]; } + } + + [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 UpgradeStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpgradeStatus(UpgradeStatus other) : this() { + version_ = other.version_; + state_ = other.state_; + error_ = other.error_ != null ? other.error_.Clone() : null; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + previousVersion_ = other.previousVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpgradeStatus Clone() { + return new UpgradeStatus(this); + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 1; + private string version_ = ""; + /// + /// The version to upgrade to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Types.State state_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Types.State.Unspecified; + /// + /// The state of the upgradeAppliance operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 3; + private global::Google.Rpc.Status error_; + /// + /// Provides details on the state of the upgrade operation in case of an error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// The time the operation was started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "previous_version" field. + public const int PreviousVersionFieldNumber = 5; + private string previousVersion_ = ""; + /// + /// The version from which we upgraded. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PreviousVersion { + get { return previousVersion_; } + set { + previousVersion_ = 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 UpgradeStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpgradeStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Version != other.Version) return false; + if (State != other.State) return false; + if (!object.Equals(Error, other.Error)) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (PreviousVersion != other.PreviousVersion) 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 (Version.Length != 0) hash ^= Version.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (PreviousVersion.Length != 0) hash ^= PreviousVersion.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 (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Types.State.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (error_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Error); + } + if (startTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StartTime); + } + if (PreviousVersion.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PreviousVersion); + } + 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 (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Types.State.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (error_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Error); + } + if (startTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StartTime); + } + if (PreviousVersion.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PreviousVersion); + } + 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 (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (PreviousVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PreviousVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpgradeStatus other) { + if (other == null) { + return; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + if (other.State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Types.State.Unspecified) { + State = other.State; + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.PreviousVersion.Length != 0) { + PreviousVersion = other.PreviousVersion; + } + _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: { + Version = input.ReadString(); + break; + } + case 16: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Types.State) input.ReadEnum(); + break; + } + case 26: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 34: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 42: { + PreviousVersion = 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: { + Version = input.ReadString(); + break; + } + case 16: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.UpgradeStatus.Types.State) input.ReadEnum(); + break; + } + case 26: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 34: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 42: { + PreviousVersion = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the UpgradeStatus message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The possible values of the state. + /// + public enum State { + /// + /// The state was not sampled by the health checks yet. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The upgrade has started. + /// + [pbr::OriginalName("RUNNING")] Running = 1, + /// + /// The upgrade failed. + /// + [pbr::OriginalName("FAILED")] Failed = 2, + /// + /// The upgrade finished successfully. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 3, + } + + } + #endregion + + } + + /// + /// Holds informatiom about the available versions for upgrade. + /// + public sealed partial class AvailableUpdates : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AvailableUpdates()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[21]; } + } + + [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 AvailableUpdates() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvailableUpdates(AvailableUpdates other) : this() { + newDeployableAppliance_ = other.newDeployableAppliance_ != null ? other.newDeployableAppliance_.Clone() : null; + inPlaceUpdate_ = other.inPlaceUpdate_ != null ? other.inPlaceUpdate_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvailableUpdates Clone() { + return new AvailableUpdates(this); + } + + /// Field number for the "new_deployable_appliance" field. + public const int NewDeployableApplianceFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion newDeployableAppliance_; + /// + /// The newest deployable version of the appliance. + /// The current appliance can't be updated into this version, and the owner + /// must manually deploy this OVA to a new appliance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion NewDeployableAppliance { + get { return newDeployableAppliance_; } + set { + newDeployableAppliance_ = value; + } + } + + /// Field number for the "in_place_update" field. + public const int InPlaceUpdateFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion inPlaceUpdate_; + /// + /// The latest version for in place update. + /// The current appliance can be updated to this version using the API or m4c + /// CLI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion InPlaceUpdate { + get { return inPlaceUpdate_; } + set { + inPlaceUpdate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AvailableUpdates); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AvailableUpdates other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(NewDeployableAppliance, other.NewDeployableAppliance)) return false; + if (!object.Equals(InPlaceUpdate, other.InPlaceUpdate)) 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 (newDeployableAppliance_ != null) hash ^= NewDeployableAppliance.GetHashCode(); + if (inPlaceUpdate_ != null) hash ^= InPlaceUpdate.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 (newDeployableAppliance_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NewDeployableAppliance); + } + if (inPlaceUpdate_ != null) { + output.WriteRawTag(18); + output.WriteMessage(InPlaceUpdate); + } + 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 (newDeployableAppliance_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NewDeployableAppliance); + } + if (inPlaceUpdate_ != null) { + output.WriteRawTag(18); + output.WriteMessage(InPlaceUpdate); + } + 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 (newDeployableAppliance_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewDeployableAppliance); + } + if (inPlaceUpdate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InPlaceUpdate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AvailableUpdates other) { + if (other == null) { + return; + } + if (other.newDeployableAppliance_ != null) { + if (newDeployableAppliance_ == null) { + NewDeployableAppliance = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion(); + } + NewDeployableAppliance.MergeFrom(other.NewDeployableAppliance); + } + if (other.inPlaceUpdate_ != null) { + if (inPlaceUpdate_ == null) { + InPlaceUpdate = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion(); + } + InPlaceUpdate.MergeFrom(other.InPlaceUpdate); + } + _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 (newDeployableAppliance_ == null) { + NewDeployableAppliance = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion(); + } + input.ReadMessage(NewDeployableAppliance); + break; + } + case 18: { + if (inPlaceUpdate_ == null) { + InPlaceUpdate = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion(); + } + input.ReadMessage(InPlaceUpdate); + 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 (newDeployableAppliance_ == null) { + NewDeployableAppliance = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion(); + } + input.ReadMessage(NewDeployableAppliance); + break; + } + case 18: { + if (inPlaceUpdate_ == null) { + InPlaceUpdate = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ApplianceVersion(); + } + input.ReadMessage(InPlaceUpdate); + break; + } + } + } + } + #endif + + } + + /// + /// Describes an appliance version. + /// + public sealed partial class ApplianceVersion : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApplianceVersion()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[22]; } + } + + [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 ApplianceVersion() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApplianceVersion(ApplianceVersion other) : this() { + version_ = other.version_; + uri_ = other.uri_; + critical_ = other.critical_; + releaseNotesUri_ = other.releaseNotesUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApplianceVersion Clone() { + return new ApplianceVersion(this); + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 1; + private string version_ = ""; + /// + /// The appliance version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// A link for downloading the version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "critical" field. + public const int CriticalFieldNumber = 3; + private bool critical_; + /// + /// Determine whether it's critical to upgrade the appliance to this version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Critical { + get { return critical_; } + set { + critical_ = value; + } + } + + /// Field number for the "release_notes_uri" field. + public const int ReleaseNotesUriFieldNumber = 4; + private string releaseNotesUri_ = ""; + /// + /// Link to a page that contains the version release notes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReleaseNotesUri { + get { return releaseNotesUri_; } + set { + releaseNotesUri_ = 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 ApplianceVersion); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ApplianceVersion other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Version != other.Version) return false; + if (Uri != other.Uri) return false; + if (Critical != other.Critical) return false; + if (ReleaseNotesUri != other.ReleaseNotesUri) 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 (Version.Length != 0) hash ^= Version.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (Critical != false) hash ^= Critical.GetHashCode(); + if (ReleaseNotesUri.Length != 0) hash ^= ReleaseNotesUri.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 (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Critical != false) { + output.WriteRawTag(24); + output.WriteBool(Critical); + } + if (ReleaseNotesUri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ReleaseNotesUri); + } + 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 (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + if (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Critical != false) { + output.WriteRawTag(24); + output.WriteBool(Critical); + } + if (ReleaseNotesUri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ReleaseNotesUri); + } + 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 (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (Critical != false) { + size += 1 + 1; + } + if (ReleaseNotesUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReleaseNotesUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ApplianceVersion other) { + if (other == null) { + return; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.Critical != false) { + Critical = other.Critical; + } + if (other.ReleaseNotesUri.Length != 0) { + ReleaseNotesUri = other.ReleaseNotesUri; + } + _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: { + Version = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 24: { + Critical = input.ReadBool(); + break; + } + case 34: { + ReleaseNotesUri = 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: { + Version = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 24: { + Critical = input.ReadBool(); + break; + } + case 34: { + ReleaseNotesUri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// VmwareVmDetails describes a VM in vCenter. + /// + public sealed partial class VmwareVmDetails : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VmwareVmDetails()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[23]; } + } + + [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 VmwareVmDetails() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VmwareVmDetails(VmwareVmDetails other) : this() { + vmId_ = other.vmId_; + datacenterId_ = other.datacenterId_; + datacenterDescription_ = other.datacenterDescription_; + uuid_ = other.uuid_; + displayName_ = other.displayName_; + powerState_ = other.powerState_; + cpuCount_ = other.cpuCount_; + memoryMb_ = other.memoryMb_; + diskCount_ = other.diskCount_; + committedStorageMb_ = other.committedStorageMb_; + guestDescription_ = other.guestDescription_; + bootOption_ = other.bootOption_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VmwareVmDetails Clone() { + return new VmwareVmDetails(this); + } + + /// Field number for the "vm_id" field. + public const int VmIdFieldNumber = 1; + private string vmId_ = ""; + /// + /// The VM's id in the source (note that this is not the MigratingVm's id). + /// This is the moref id of the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VmId { + get { return vmId_; } + set { + vmId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "datacenter_id" field. + public const int DatacenterIdFieldNumber = 2; + private string datacenterId_ = ""; + /// + /// The id of the vCenter's datacenter this VM is contained in. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DatacenterId { + get { return datacenterId_; } + set { + datacenterId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "datacenter_description" field. + public const int DatacenterDescriptionFieldNumber = 3; + private string datacenterDescription_ = ""; + /// + /// The descriptive name of the vCenter's datacenter this VM is contained in. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DatacenterDescription { + get { return datacenterDescription_; } + set { + datacenterDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uuid" field. + public const int UuidFieldNumber = 4; + private string uuid_ = ""; + /// + /// The unique identifier of the VM in vCenter. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uuid { + get { return uuid_; } + set { + uuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 5; + private string displayName_ = ""; + /// + /// The display name of the VM. Note that this is not necessarily unique. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "power_state" field. + public const int PowerStateFieldNumber = 6; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.PowerState powerState_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.PowerState.Unspecified; + /// + /// The power state of the VM at the moment list was taken. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.PowerState PowerState { + get { return powerState_; } + set { + powerState_ = value; + } + } + + /// Field number for the "cpu_count" field. + public const int CpuCountFieldNumber = 7; + private int cpuCount_; + /// + /// The number of cpus in the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CpuCount { + get { return cpuCount_; } + set { + cpuCount_ = value; + } + } + + /// Field number for the "memory_mb" field. + public const int MemoryMbFieldNumber = 8; + private int memoryMb_; + /// + /// The size of the memory of the VM in MB. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MemoryMb { + get { return memoryMb_; } + set { + memoryMb_ = value; + } + } + + /// Field number for the "disk_count" field. + public const int DiskCountFieldNumber = 9; + private int diskCount_; + /// + /// The number of disks the VM has. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DiskCount { + get { return diskCount_; } + set { + diskCount_ = value; + } + } + + /// Field number for the "committed_storage_mb" field. + public const int CommittedStorageMbFieldNumber = 12; + private long committedStorageMb_; + /// + /// The total size of the storage allocated to the VM in MB. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CommittedStorageMb { + get { return committedStorageMb_; } + set { + committedStorageMb_ = value; + } + } + + /// Field number for the "guest_description" field. + public const int GuestDescriptionFieldNumber = 11; + private string guestDescription_ = ""; + /// + /// The VM's OS. See for example + /// https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html + /// for types of strings this might hold. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GuestDescription { + get { return guestDescription_; } + set { + guestDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "boot_option" field. + public const int BootOptionFieldNumber = 13; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.BootOption bootOption_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.BootOption.Unspecified; + /// + /// Output only. The VM Boot Option. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.BootOption BootOption { + get { return bootOption_; } + set { + bootOption_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VmwareVmDetails); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VmwareVmDetails other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (VmId != other.VmId) return false; + if (DatacenterId != other.DatacenterId) return false; + if (DatacenterDescription != other.DatacenterDescription) return false; + if (Uuid != other.Uuid) return false; + if (DisplayName != other.DisplayName) return false; + if (PowerState != other.PowerState) return false; + if (CpuCount != other.CpuCount) return false; + if (MemoryMb != other.MemoryMb) return false; + if (DiskCount != other.DiskCount) return false; + if (CommittedStorageMb != other.CommittedStorageMb) return false; + if (GuestDescription != other.GuestDescription) return false; + if (BootOption != other.BootOption) 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 (VmId.Length != 0) hash ^= VmId.GetHashCode(); + if (DatacenterId.Length != 0) hash ^= DatacenterId.GetHashCode(); + if (DatacenterDescription.Length != 0) hash ^= DatacenterDescription.GetHashCode(); + if (Uuid.Length != 0) hash ^= Uuid.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (PowerState != global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.PowerState.Unspecified) hash ^= PowerState.GetHashCode(); + if (CpuCount != 0) hash ^= CpuCount.GetHashCode(); + if (MemoryMb != 0) hash ^= MemoryMb.GetHashCode(); + if (DiskCount != 0) hash ^= DiskCount.GetHashCode(); + if (CommittedStorageMb != 0L) hash ^= CommittedStorageMb.GetHashCode(); + if (GuestDescription.Length != 0) hash ^= GuestDescription.GetHashCode(); + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.BootOption.Unspecified) hash ^= BootOption.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 (VmId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(VmId); + } + if (DatacenterId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DatacenterId); + } + if (DatacenterDescription.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DatacenterDescription); + } + if (Uuid.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Uuid); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DisplayName); + } + if (PowerState != global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.PowerState.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) PowerState); + } + if (CpuCount != 0) { + output.WriteRawTag(56); + output.WriteInt32(CpuCount); + } + if (MemoryMb != 0) { + output.WriteRawTag(64); + output.WriteInt32(MemoryMb); + } + if (DiskCount != 0) { + output.WriteRawTag(72); + output.WriteInt32(DiskCount); + } + if (GuestDescription.Length != 0) { + output.WriteRawTag(90); + output.WriteString(GuestDescription); + } + if (CommittedStorageMb != 0L) { + output.WriteRawTag(96); + output.WriteInt64(CommittedStorageMb); + } + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.BootOption.Unspecified) { + output.WriteRawTag(104); + output.WriteEnum((int) BootOption); + } + 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 (VmId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(VmId); + } + if (DatacenterId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DatacenterId); + } + if (DatacenterDescription.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DatacenterDescription); + } + if (Uuid.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Uuid); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DisplayName); + } + if (PowerState != global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.PowerState.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) PowerState); + } + if (CpuCount != 0) { + output.WriteRawTag(56); + output.WriteInt32(CpuCount); + } + if (MemoryMb != 0) { + output.WriteRawTag(64); + output.WriteInt32(MemoryMb); + } + if (DiskCount != 0) { + output.WriteRawTag(72); + output.WriteInt32(DiskCount); + } + if (GuestDescription.Length != 0) { + output.WriteRawTag(90); + output.WriteString(GuestDescription); + } + if (CommittedStorageMb != 0L) { + output.WriteRawTag(96); + output.WriteInt64(CommittedStorageMb); + } + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.BootOption.Unspecified) { + output.WriteRawTag(104); + output.WriteEnum((int) BootOption); + } + 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 (VmId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VmId); + } + if (DatacenterId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DatacenterId); + } + if (DatacenterDescription.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DatacenterDescription); + } + if (Uuid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uuid); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (PowerState != global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.PowerState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PowerState); + } + if (CpuCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CpuCount); + } + if (MemoryMb != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MemoryMb); + } + if (DiskCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DiskCount); + } + if (CommittedStorageMb != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CommittedStorageMb); + } + if (GuestDescription.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GuestDescription); + } + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.BootOption.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BootOption); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VmwareVmDetails other) { + if (other == null) { + return; + } + if (other.VmId.Length != 0) { + VmId = other.VmId; + } + if (other.DatacenterId.Length != 0) { + DatacenterId = other.DatacenterId; + } + if (other.DatacenterDescription.Length != 0) { + DatacenterDescription = other.DatacenterDescription; + } + if (other.Uuid.Length != 0) { + Uuid = other.Uuid; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.PowerState != global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.PowerState.Unspecified) { + PowerState = other.PowerState; + } + if (other.CpuCount != 0) { + CpuCount = other.CpuCount; + } + if (other.MemoryMb != 0) { + MemoryMb = other.MemoryMb; + } + if (other.DiskCount != 0) { + DiskCount = other.DiskCount; + } + if (other.CommittedStorageMb != 0L) { + CommittedStorageMb = other.CommittedStorageMb; + } + if (other.GuestDescription.Length != 0) { + GuestDescription = other.GuestDescription; + } + if (other.BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.BootOption.Unspecified) { + BootOption = other.BootOption; + } + _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: { + VmId = input.ReadString(); + break; + } + case 18: { + DatacenterId = input.ReadString(); + break; + } + case 26: { + DatacenterDescription = input.ReadString(); + break; + } + case 34: { + Uuid = input.ReadString(); + break; + } + case 42: { + DisplayName = input.ReadString(); + break; + } + case 48: { + PowerState = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.PowerState) input.ReadEnum(); + break; + } + case 56: { + CpuCount = input.ReadInt32(); + break; + } + case 64: { + MemoryMb = input.ReadInt32(); + break; + } + case 72: { + DiskCount = input.ReadInt32(); + break; + } + case 90: { + GuestDescription = input.ReadString(); + break; + } + case 96: { + CommittedStorageMb = input.ReadInt64(); + break; + } + case 104: { + BootOption = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.BootOption) input.ReadEnum(); + 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: { + VmId = input.ReadString(); + break; + } + case 18: { + DatacenterId = input.ReadString(); + break; + } + case 26: { + DatacenterDescription = input.ReadString(); + break; + } + case 34: { + Uuid = input.ReadString(); + break; + } + case 42: { + DisplayName = input.ReadString(); + break; + } + case 48: { + PowerState = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.PowerState) input.ReadEnum(); + break; + } + case 56: { + CpuCount = input.ReadInt32(); + break; + } + case 64: { + MemoryMb = input.ReadInt32(); + break; + } + case 72: { + DiskCount = input.ReadInt32(); + break; + } + case 90: { + GuestDescription = input.ReadString(); + break; + } + case 96: { + CommittedStorageMb = input.ReadInt64(); + break; + } + case 104: { + BootOption = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails.Types.BootOption) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the VmwareVmDetails message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible values for the power state of the VM. + /// + public enum PowerState { + /// + /// Power state is not specified. + /// + [pbr::OriginalName("POWER_STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The VM is turned ON. + /// + [pbr::OriginalName("ON")] On = 1, + /// + /// The VM is turned OFF. + /// + [pbr::OriginalName("OFF")] Off = 2, + /// + /// The VM is suspended. This is similar to hibernation or sleep mode. + /// + [pbr::OriginalName("SUSPENDED")] Suspended = 3, + } + + /// + /// Possible values for vm boot option. + /// + public enum BootOption { + /// + /// The boot option is unknown. + /// + [pbr::OriginalName("BOOT_OPTION_UNSPECIFIED")] Unspecified = 0, + /// + /// The boot option is EFI. + /// + [pbr::OriginalName("EFI")] Efi = 1, + /// + /// The boot option is BIOS. + /// + [pbr::OriginalName("BIOS")] Bios = 2, + } + + } + #endregion + + } + + /// + /// Utilization report details the utilization (CPU, memory, etc.) of selected + /// source VMs. + /// + public sealed partial class UtilizationReport : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UtilizationReport()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[24]; } + } + + [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 UtilizationReport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UtilizationReport(UtilizationReport other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + state_ = other.state_; + stateTime_ = other.stateTime_ != null ? other.stateTime_.Clone() : null; + error_ = other.error_ != null ? other.error_.Clone() : null; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + timeFrame_ = other.timeFrame_; + frameEndTime_ = other.frameEndTime_ != null ? other.frameEndTime_.Clone() : null; + vmCount_ = other.vmCount_; + vms_ = other.vms_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UtilizationReport Clone() { + return new UtilizationReport(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The report unique 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 "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// The report display name, as assigned by the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.State state_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.State.Unspecified; + /// + /// Output only. Current state of the report. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "state_time" field. + public const int StateTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp stateTime_; + /// + /// Output only. The time the state was last set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StateTime { + get { return stateTime_; } + set { + stateTime_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 5; + private global::Google.Rpc.Status error_; + /// + /// Output only. Provides details on the state of the report in case of an + /// error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the report was created (this refers to the time of + /// the request, not the time the report creation completed). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "time_frame" field. + public const int TimeFrameFieldNumber = 7; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.TimeFrame timeFrame_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.TimeFrame.Unspecified; + /// + /// Time frame of the report. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.TimeFrame TimeFrame { + get { return timeFrame_; } + set { + timeFrame_ = value; + } + } + + /// Field number for the "frame_end_time" field. + public const int FrameEndTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp frameEndTime_; + /// + /// Output only. The point in time when the time frame ends. Notice that the + /// time frame is counted backwards. For instance if the "frame_end_time" value + /// is 2021/01/20 and the time frame is WEEK then the report covers the week + /// between 2021/01/20 and 2021/01/14. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FrameEndTime { + get { return frameEndTime_; } + set { + frameEndTime_ = value; + } + } + + /// Field number for the "vm_count" field. + public const int VmCountFieldNumber = 9; + private int vmCount_; + /// + /// Output only. Total number of VMs included in the report. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VmCount { + get { return vmCount_; } + set { + vmCount_ = value; + } + } + + /// Field number for the "vms" field. + public const int VmsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_vms_codec + = pb::FieldCodec.ForMessage(82, global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmUtilizationInfo.Parser); + private readonly pbc::RepeatedField vms_ = new pbc::RepeatedField(); + /// + /// List of utilization information per VM. + /// When sent as part of the request, the "vm_id" field is used in order to + /// specify which VMs to include in the report. In that case all other fields + /// are ignored. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Vms { + get { return vms_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UtilizationReport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UtilizationReport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (State != other.State) return false; + if (!object.Equals(StateTime, other.StateTime)) return false; + if (!object.Equals(Error, other.Error)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (TimeFrame != other.TimeFrame) return false; + if (!object.Equals(FrameEndTime, other.FrameEndTime)) return false; + if (VmCount != other.VmCount) return false; + if(!vms_.Equals(other.vms_)) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (stateTime_ != null) hash ^= StateTime.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (TimeFrame != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.TimeFrame.Unspecified) hash ^= TimeFrame.GetHashCode(); + if (frameEndTime_ != null) hash ^= FrameEndTime.GetHashCode(); + if (VmCount != 0) hash ^= VmCount.GetHashCode(); + hash ^= vms_.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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.State.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (stateTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StateTime); + } + if (error_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Error); + } + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + if (TimeFrame != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.TimeFrame.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) TimeFrame); + } + if (frameEndTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(FrameEndTime); + } + if (VmCount != 0) { + output.WriteRawTag(72); + output.WriteInt32(VmCount); + } + vms_.WriteTo(output, _repeated_vms_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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.State.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (stateTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StateTime); + } + if (error_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Error); + } + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + if (TimeFrame != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.TimeFrame.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) TimeFrame); + } + if (frameEndTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(FrameEndTime); + } + if (VmCount != 0) { + output.WriteRawTag(72); + output.WriteInt32(VmCount); + } + vms_.WriteTo(ref output, _repeated_vms_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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (stateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StateTime); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (TimeFrame != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.TimeFrame.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TimeFrame); + } + if (frameEndTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FrameEndTime); + } + if (VmCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(VmCount); + } + size += vms_.CalculateSize(_repeated_vms_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UtilizationReport other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.State != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.State.Unspecified) { + State = other.State; + } + if (other.stateTime_ != null) { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StateTime.MergeFrom(other.StateTime); + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.TimeFrame != global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.TimeFrame.Unspecified) { + TimeFrame = other.TimeFrame; + } + if (other.frameEndTime_ != null) { + if (frameEndTime_ == null) { + FrameEndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FrameEndTime.MergeFrom(other.FrameEndTime); + } + if (other.VmCount != 0) { + VmCount = other.VmCount; + } + vms_.Add(other.vms_); + _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: { + DisplayName = input.ReadString(); + break; + } + case 24: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.State) input.ReadEnum(); + break; + } + case 34: { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StateTime); + break; + } + case 42: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 56: { + TimeFrame = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.TimeFrame) input.ReadEnum(); + break; + } + case 66: { + if (frameEndTime_ == null) { + FrameEndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FrameEndTime); + break; + } + case 72: { + VmCount = input.ReadInt32(); + break; + } + case 82: { + vms_.AddEntriesFrom(input, _repeated_vms_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: { + DisplayName = input.ReadString(); + break; + } + case 24: { + State = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.State) input.ReadEnum(); + break; + } + case 34: { + if (stateTime_ == null) { + StateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StateTime); + break; + } + case 42: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 56: { + TimeFrame = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport.Types.TimeFrame) input.ReadEnum(); + break; + } + case 66: { + if (frameEndTime_ == null) { + FrameEndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FrameEndTime); + break; + } + case 72: { + VmCount = input.ReadInt32(); + break; + } + case 82: { + vms_.AddEntriesFrom(ref input, _repeated_vms_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the UtilizationReport message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Utilization report state. + /// + public enum State { + /// + /// The state is unknown. This value is not in use. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The report is in the making. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// Report creation completed successfully. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 2, + /// + /// Report creation failed. + /// + [pbr::OriginalName("FAILED")] Failed = 3, + } + + /// + /// Report time frame options. + /// + public enum TimeFrame { + /// + /// The time frame was not specified and will default to WEEK. + /// + [pbr::OriginalName("TIME_FRAME_UNSPECIFIED")] Unspecified = 0, + /// + /// One week. + /// + [pbr::OriginalName("WEEK")] Week = 1, + /// + /// One month. + /// + [pbr::OriginalName("MONTH")] Month = 2, + /// + /// One year. + /// + [pbr::OriginalName("YEAR")] Year = 3, + } + + } + #endregion + + } + + /// + /// Utilization information of a single VM. + /// + public sealed partial class VmUtilizationInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VmUtilizationInfo()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[25]; } + } + + [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 VmUtilizationInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VmUtilizationInfo(VmUtilizationInfo other) : this() { + vmId_ = other.vmId_; + utilization_ = other.utilization_ != null ? other.utilization_.Clone() : null; + switch (other.VmDetailsCase) { + case VmDetailsOneofCase.VmwareVmDetails: + VmwareVmDetails = other.VmwareVmDetails.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VmUtilizationInfo Clone() { + return new VmUtilizationInfo(this); + } + + /// Field number for the "vmware_vm_details" field. + public const int VmwareVmDetailsFieldNumber = 1; + /// + /// The description of the VM in a Source of type Vmware. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails VmwareVmDetails { + get { return vmDetailsCase_ == VmDetailsOneofCase.VmwareVmDetails ? (global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails) vmDetails_ : null; } + set { + vmDetails_ = value; + vmDetailsCase_ = value == null ? VmDetailsOneofCase.None : VmDetailsOneofCase.VmwareVmDetails; + } + } + + /// Field number for the "vm_id" field. + public const int VmIdFieldNumber = 3; + private string vmId_ = ""; + /// + /// The VM's ID in the source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VmId { + get { return vmId_; } + set { + vmId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "utilization" field. + public const int UtilizationFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmUtilizationMetrics utilization_; + /// + /// Utilization metrics for this VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmUtilizationMetrics Utilization { + get { return utilization_; } + set { + utilization_ = value; + } + } + + private object vmDetails_; + /// Enum of possible cases for the "VmDetails" oneof. + public enum VmDetailsOneofCase { + None = 0, + VmwareVmDetails = 1, + } + private VmDetailsOneofCase vmDetailsCase_ = VmDetailsOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VmDetailsOneofCase VmDetailsCase { + get { return vmDetailsCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearVmDetails() { + vmDetailsCase_ = VmDetailsOneofCase.None; + vmDetails_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VmUtilizationInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VmUtilizationInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(VmwareVmDetails, other.VmwareVmDetails)) return false; + if (VmId != other.VmId) return false; + if (!object.Equals(Utilization, other.Utilization)) return false; + if (VmDetailsCase != other.VmDetailsCase) 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 (vmDetailsCase_ == VmDetailsOneofCase.VmwareVmDetails) hash ^= VmwareVmDetails.GetHashCode(); + if (VmId.Length != 0) hash ^= VmId.GetHashCode(); + if (utilization_ != null) hash ^= Utilization.GetHashCode(); + hash ^= (int) vmDetailsCase_; + 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 (vmDetailsCase_ == VmDetailsOneofCase.VmwareVmDetails) { + output.WriteRawTag(10); + output.WriteMessage(VmwareVmDetails); + } + if (utilization_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Utilization); + } + if (VmId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VmId); + } + 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 (vmDetailsCase_ == VmDetailsOneofCase.VmwareVmDetails) { + output.WriteRawTag(10); + output.WriteMessage(VmwareVmDetails); + } + if (utilization_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Utilization); + } + if (VmId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VmId); + } + 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 (vmDetailsCase_ == VmDetailsOneofCase.VmwareVmDetails) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VmwareVmDetails); + } + if (VmId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VmId); + } + if (utilization_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Utilization); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VmUtilizationInfo other) { + if (other == null) { + return; + } + if (other.VmId.Length != 0) { + VmId = other.VmId; + } + if (other.utilization_ != null) { + if (utilization_ == null) { + Utilization = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmUtilizationMetrics(); + } + Utilization.MergeFrom(other.Utilization); + } + switch (other.VmDetailsCase) { + case VmDetailsOneofCase.VmwareVmDetails: + if (VmwareVmDetails == null) { + VmwareVmDetails = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails(); + } + VmwareVmDetails.MergeFrom(other.VmwareVmDetails); + break; + } + + _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: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails(); + if (vmDetailsCase_ == VmDetailsOneofCase.VmwareVmDetails) { + subBuilder.MergeFrom(VmwareVmDetails); + } + input.ReadMessage(subBuilder); + VmwareVmDetails = subBuilder; + break; + } + case 18: { + if (utilization_ == null) { + Utilization = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmUtilizationMetrics(); + } + input.ReadMessage(Utilization); + break; + } + case 26: { + VmId = 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: { + global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails subBuilder = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmwareVmDetails(); + if (vmDetailsCase_ == VmDetailsOneofCase.VmwareVmDetails) { + subBuilder.MergeFrom(VmwareVmDetails); + } + input.ReadMessage(subBuilder); + VmwareVmDetails = subBuilder; + break; + } + case 18: { + if (utilization_ == null) { + Utilization = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.VmUtilizationMetrics(); + } + input.ReadMessage(Utilization); + break; + } + case 26: { + VmId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Utilization metrics values for a single VM. + /// + public sealed partial class VmUtilizationMetrics : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VmUtilizationMetrics()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[26]; } + } + + [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 VmUtilizationMetrics() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VmUtilizationMetrics(VmUtilizationMetrics other) : this() { + cpuMaxPercent_ = other.cpuMaxPercent_; + cpuAveragePercent_ = other.cpuAveragePercent_; + memoryMaxPercent_ = other.memoryMaxPercent_; + memoryAveragePercent_ = other.memoryAveragePercent_; + diskIoRateMaxKbps_ = other.diskIoRateMaxKbps_; + diskIoRateAverageKbps_ = other.diskIoRateAverageKbps_; + networkThroughputMaxKbps_ = other.networkThroughputMaxKbps_; + networkThroughputAverageKbps_ = other.networkThroughputAverageKbps_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VmUtilizationMetrics Clone() { + return new VmUtilizationMetrics(this); + } + + /// Field number for the "cpu_max_percent" field. + public const int CpuMaxPercentFieldNumber = 9; + private int cpuMaxPercent_; + /// + /// Max CPU usage, percent. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CpuMaxPercent { + get { return cpuMaxPercent_; } + set { + cpuMaxPercent_ = value; + } + } + + /// Field number for the "cpu_average_percent" field. + public const int CpuAveragePercentFieldNumber = 10; + private int cpuAveragePercent_; + /// + /// Average CPU usage, percent. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CpuAveragePercent { + get { return cpuAveragePercent_; } + set { + cpuAveragePercent_ = value; + } + } + + /// Field number for the "memory_max_percent" field. + public const int MemoryMaxPercentFieldNumber = 11; + private int memoryMaxPercent_; + /// + /// Max memory usage, percent. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MemoryMaxPercent { + get { return memoryMaxPercent_; } + set { + memoryMaxPercent_ = value; + } + } + + /// Field number for the "memory_average_percent" field. + public const int MemoryAveragePercentFieldNumber = 12; + private int memoryAveragePercent_; + /// + /// Average memory usage, percent. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MemoryAveragePercent { + get { return memoryAveragePercent_; } + set { + memoryAveragePercent_ = value; + } + } + + /// Field number for the "disk_io_rate_max_kbps" field. + public const int DiskIoRateMaxKbpsFieldNumber = 13; + private long diskIoRateMaxKbps_; + /// + /// Max disk IO rate, in kilobytes per second. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DiskIoRateMaxKbps { + get { return diskIoRateMaxKbps_; } + set { + diskIoRateMaxKbps_ = value; + } + } + + /// Field number for the "disk_io_rate_average_kbps" field. + public const int DiskIoRateAverageKbpsFieldNumber = 14; + private long diskIoRateAverageKbps_; + /// + /// Average disk IO rate, in kilobytes per second. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DiskIoRateAverageKbps { + get { return diskIoRateAverageKbps_; } + set { + diskIoRateAverageKbps_ = value; + } + } + + /// Field number for the "network_throughput_max_kbps" field. + public const int NetworkThroughputMaxKbpsFieldNumber = 15; + private long networkThroughputMaxKbps_; + /// + /// Max network throughput (combined transmit-rates and receive-rates), in + /// kilobytes per second. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkThroughputMaxKbps { + get { return networkThroughputMaxKbps_; } + set { + networkThroughputMaxKbps_ = value; + } + } + + /// Field number for the "network_throughput_average_kbps" field. + public const int NetworkThroughputAverageKbpsFieldNumber = 16; + private long networkThroughputAverageKbps_; + /// + /// Average network throughput (combined transmit-rates and receive-rates), in + /// kilobytes per second. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NetworkThroughputAverageKbps { + get { return networkThroughputAverageKbps_; } + set { + networkThroughputAverageKbps_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VmUtilizationMetrics); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VmUtilizationMetrics other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CpuMaxPercent != other.CpuMaxPercent) return false; + if (CpuAveragePercent != other.CpuAveragePercent) return false; + if (MemoryMaxPercent != other.MemoryMaxPercent) return false; + if (MemoryAveragePercent != other.MemoryAveragePercent) return false; + if (DiskIoRateMaxKbps != other.DiskIoRateMaxKbps) return false; + if (DiskIoRateAverageKbps != other.DiskIoRateAverageKbps) return false; + if (NetworkThroughputMaxKbps != other.NetworkThroughputMaxKbps) return false; + if (NetworkThroughputAverageKbps != other.NetworkThroughputAverageKbps) 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 (CpuMaxPercent != 0) hash ^= CpuMaxPercent.GetHashCode(); + if (CpuAveragePercent != 0) hash ^= CpuAveragePercent.GetHashCode(); + if (MemoryMaxPercent != 0) hash ^= MemoryMaxPercent.GetHashCode(); + if (MemoryAveragePercent != 0) hash ^= MemoryAveragePercent.GetHashCode(); + if (DiskIoRateMaxKbps != 0L) hash ^= DiskIoRateMaxKbps.GetHashCode(); + if (DiskIoRateAverageKbps != 0L) hash ^= DiskIoRateAverageKbps.GetHashCode(); + if (NetworkThroughputMaxKbps != 0L) hash ^= NetworkThroughputMaxKbps.GetHashCode(); + if (NetworkThroughputAverageKbps != 0L) hash ^= NetworkThroughputAverageKbps.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 (CpuMaxPercent != 0) { + output.WriteRawTag(72); + output.WriteInt32(CpuMaxPercent); + } + if (CpuAveragePercent != 0) { + output.WriteRawTag(80); + output.WriteInt32(CpuAveragePercent); + } + if (MemoryMaxPercent != 0) { + output.WriteRawTag(88); + output.WriteInt32(MemoryMaxPercent); + } + if (MemoryAveragePercent != 0) { + output.WriteRawTag(96); + output.WriteInt32(MemoryAveragePercent); + } + if (DiskIoRateMaxKbps != 0L) { + output.WriteRawTag(104); + output.WriteInt64(DiskIoRateMaxKbps); + } + if (DiskIoRateAverageKbps != 0L) { + output.WriteRawTag(112); + output.WriteInt64(DiskIoRateAverageKbps); + } + if (NetworkThroughputMaxKbps != 0L) { + output.WriteRawTag(120); + output.WriteInt64(NetworkThroughputMaxKbps); + } + if (NetworkThroughputAverageKbps != 0L) { + output.WriteRawTag(128, 1); + output.WriteInt64(NetworkThroughputAverageKbps); + } + 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 (CpuMaxPercent != 0) { + output.WriteRawTag(72); + output.WriteInt32(CpuMaxPercent); + } + if (CpuAveragePercent != 0) { + output.WriteRawTag(80); + output.WriteInt32(CpuAveragePercent); + } + if (MemoryMaxPercent != 0) { + output.WriteRawTag(88); + output.WriteInt32(MemoryMaxPercent); + } + if (MemoryAveragePercent != 0) { + output.WriteRawTag(96); + output.WriteInt32(MemoryAveragePercent); + } + if (DiskIoRateMaxKbps != 0L) { + output.WriteRawTag(104); + output.WriteInt64(DiskIoRateMaxKbps); + } + if (DiskIoRateAverageKbps != 0L) { + output.WriteRawTag(112); + output.WriteInt64(DiskIoRateAverageKbps); + } + if (NetworkThroughputMaxKbps != 0L) { + output.WriteRawTag(120); + output.WriteInt64(NetworkThroughputMaxKbps); + } + if (NetworkThroughputAverageKbps != 0L) { + output.WriteRawTag(128, 1); + output.WriteInt64(NetworkThroughputAverageKbps); + } + 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 (CpuMaxPercent != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CpuMaxPercent); + } + if (CpuAveragePercent != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CpuAveragePercent); + } + if (MemoryMaxPercent != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MemoryMaxPercent); + } + if (MemoryAveragePercent != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MemoryAveragePercent); + } + if (DiskIoRateMaxKbps != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DiskIoRateMaxKbps); + } + if (DiskIoRateAverageKbps != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DiskIoRateAverageKbps); + } + if (NetworkThroughputMaxKbps != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NetworkThroughputMaxKbps); + } + if (NetworkThroughputAverageKbps != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(NetworkThroughputAverageKbps); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VmUtilizationMetrics other) { + if (other == null) { + return; + } + if (other.CpuMaxPercent != 0) { + CpuMaxPercent = other.CpuMaxPercent; + } + if (other.CpuAveragePercent != 0) { + CpuAveragePercent = other.CpuAveragePercent; + } + if (other.MemoryMaxPercent != 0) { + MemoryMaxPercent = other.MemoryMaxPercent; + } + if (other.MemoryAveragePercent != 0) { + MemoryAveragePercent = other.MemoryAveragePercent; + } + if (other.DiskIoRateMaxKbps != 0L) { + DiskIoRateMaxKbps = other.DiskIoRateMaxKbps; + } + if (other.DiskIoRateAverageKbps != 0L) { + DiskIoRateAverageKbps = other.DiskIoRateAverageKbps; + } + if (other.NetworkThroughputMaxKbps != 0L) { + NetworkThroughputMaxKbps = other.NetworkThroughputMaxKbps; + } + if (other.NetworkThroughputAverageKbps != 0L) { + NetworkThroughputAverageKbps = other.NetworkThroughputAverageKbps; + } + _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 72: { + CpuMaxPercent = input.ReadInt32(); + break; + } + case 80: { + CpuAveragePercent = input.ReadInt32(); + break; + } + case 88: { + MemoryMaxPercent = input.ReadInt32(); + break; + } + case 96: { + MemoryAveragePercent = input.ReadInt32(); + break; + } + case 104: { + DiskIoRateMaxKbps = input.ReadInt64(); + break; + } + case 112: { + DiskIoRateAverageKbps = input.ReadInt64(); + break; + } + case 120: { + NetworkThroughputMaxKbps = input.ReadInt64(); + break; + } + case 128: { + NetworkThroughputAverageKbps = 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 72: { + CpuMaxPercent = input.ReadInt32(); + break; + } + case 80: { + CpuAveragePercent = input.ReadInt32(); + break; + } + case 88: { + MemoryMaxPercent = input.ReadInt32(); + break; + } + case 96: { + MemoryAveragePercent = input.ReadInt32(); + break; + } + case 104: { + DiskIoRateMaxKbps = input.ReadInt64(); + break; + } + case 112: { + DiskIoRateAverageKbps = input.ReadInt64(); + break; + } + case 120: { + NetworkThroughputMaxKbps = input.ReadInt64(); + break; + } + case 128: { + NetworkThroughputAverageKbps = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// ComputeEngineTargetDefaults is a collection of details for creating a VM in a + /// target Compute Engine project. + /// + public sealed partial class ComputeEngineTargetDefaults : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComputeEngineTargetDefaults()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[27]; } + } + + [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 ComputeEngineTargetDefaults() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeEngineTargetDefaults(ComputeEngineTargetDefaults other) : this() { + vmName_ = other.vmName_; + targetProject_ = other.targetProject_; + zone_ = other.zone_; + machineTypeSeries_ = other.machineTypeSeries_; + machineType_ = other.machineType_; + networkTags_ = other.networkTags_.Clone(); + networkInterfaces_ = other.networkInterfaces_.Clone(); + serviceAccount_ = other.serviceAccount_; + diskType_ = other.diskType_; + labels_ = other.labels_.Clone(); + licenseType_ = other.licenseType_; + appliedLicense_ = other.appliedLicense_ != null ? other.appliedLicense_.Clone() : null; + computeScheduling_ = other.computeScheduling_ != null ? other.computeScheduling_.Clone() : null; + secureBoot_ = other.secureBoot_; + bootOption_ = other.bootOption_; + metadata_ = other.metadata_.Clone(); + additionalLicenses_ = other.additionalLicenses_.Clone(); + hostname_ = other.hostname_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeEngineTargetDefaults Clone() { + return new ComputeEngineTargetDefaults(this); + } + + /// Field number for the "vm_name" field. + public const int VmNameFieldNumber = 1; + private string vmName_ = ""; + /// + /// The name of the VM to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VmName { + get { return vmName_; } + set { + vmName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target_project" field. + public const int TargetProjectFieldNumber = 2; + private string targetProject_ = ""; + /// + /// The full path of the resource of type TargetProject which represents the + /// Compute Engine project in which to create this VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetProject { + get { return targetProject_; } + set { + targetProject_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "zone" field. + public const int ZoneFieldNumber = 3; + private string zone_ = ""; + /// + /// The zone in which to create the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Zone { + get { return zone_; } + set { + zone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "machine_type_series" field. + public const int MachineTypeSeriesFieldNumber = 4; + private string machineTypeSeries_ = ""; + /// + /// The machine type series to create the VM with. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MachineTypeSeries { + get { return machineTypeSeries_; } + set { + machineTypeSeries_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "machine_type" field. + public const int MachineTypeFieldNumber = 5; + private string machineType_ = ""; + /// + /// The machine type to create the VM with. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MachineType { + get { return machineType_; } + set { + machineType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network_tags" field. + public const int NetworkTagsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_networkTags_codec + = pb::FieldCodec.ForString(50); + private readonly pbc::RepeatedField networkTags_ = new pbc::RepeatedField(); + /// + /// A map of network tags to associate with the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NetworkTags { + get { return networkTags_; } + } + + /// Field number for the "network_interfaces" field. + public const int NetworkInterfacesFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_networkInterfaces_codec + = pb::FieldCodec.ForMessage(58, global::Google.Events.Protobuf.Cloud.VMMigration.V1.NetworkInterface.Parser); + private readonly pbc::RepeatedField networkInterfaces_ = new pbc::RepeatedField(); + /// + /// List of NICs connected to this VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NetworkInterfaces { + get { return networkInterfaces_; } + } + + /// Field number for the "service_account" field. + public const int ServiceAccountFieldNumber = 8; + private string serviceAccount_ = ""; + /// + /// The service account to associate the VM with. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccount { + get { return serviceAccount_; } + set { + serviceAccount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "disk_type" field. + public const int DiskTypeFieldNumber = 9; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType diskType_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified; + /// + /// The disk type to use in the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType DiskType { + get { return diskType_; } + set { + diskType_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 10; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 82); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// A map of labels to associate with the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "license_type" field. + public const int LicenseTypeFieldNumber = 11; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType licenseType_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default; + /// + /// The license type to use in OS adaptation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType LicenseType { + get { return licenseType_; } + set { + licenseType_ = value; + } + } + + /// Field number for the "applied_license" field. + public const int AppliedLicenseFieldNumber = 12; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense appliedLicense_; + /// + /// Output only. The OS license returned from the adaptation module report. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense AppliedLicense { + get { return appliedLicense_; } + set { + appliedLicense_ = value; + } + } + + /// Field number for the "compute_scheduling" field. + public const int ComputeSchedulingFieldNumber = 13; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling computeScheduling_; + /// + /// Compute instance scheduling information (if empty default is used). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling ComputeScheduling { + get { return computeScheduling_; } + set { + computeScheduling_ = value; + } + } + + /// Field number for the "secure_boot" field. + public const int SecureBootFieldNumber = 14; + private bool secureBoot_; + /// + /// Defines whether the instance has Secure Boot enabled. + /// This can be set to true only if the vm boot option is EFI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SecureBoot { + get { return secureBoot_; } + set { + secureBoot_ = value; + } + } + + /// Field number for the "boot_option" field. + public const int BootOptionFieldNumber = 15; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption bootOption_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified; + /// + /// Output only. The VM Boot Option, as set in the source vm. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption BootOption { + get { return bootOption_; } + set { + bootOption_ = value; + } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 16; + private static readonly pbc::MapField.Codec _map_metadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 130); + private readonly pbc::MapField metadata_ = new pbc::MapField(); + /// + /// The metadata key/value pairs to assign to the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Metadata { + get { return metadata_; } + } + + /// Field number for the "additional_licenses" field. + public const int AdditionalLicensesFieldNumber = 17; + private static readonly pb::FieldCodec _repeated_additionalLicenses_codec + = pb::FieldCodec.ForString(138); + private readonly pbc::RepeatedField additionalLicenses_ = new pbc::RepeatedField(); + /// + /// Additional licenses to assign to the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AdditionalLicenses { + get { return additionalLicenses_; } + } + + /// Field number for the "hostname" field. + public const int HostnameFieldNumber = 18; + private string hostname_ = ""; + /// + /// The hostname to assign to the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Hostname { + get { return hostname_; } + set { + hostname_ = 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 ComputeEngineTargetDefaults); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComputeEngineTargetDefaults other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (VmName != other.VmName) return false; + if (TargetProject != other.TargetProject) return false; + if (Zone != other.Zone) return false; + if (MachineTypeSeries != other.MachineTypeSeries) return false; + if (MachineType != other.MachineType) return false; + if(!networkTags_.Equals(other.networkTags_)) return false; + if(!networkInterfaces_.Equals(other.networkInterfaces_)) return false; + if (ServiceAccount != other.ServiceAccount) return false; + if (DiskType != other.DiskType) return false; + if (!Labels.Equals(other.Labels)) return false; + if (LicenseType != other.LicenseType) return false; + if (!object.Equals(AppliedLicense, other.AppliedLicense)) return false; + if (!object.Equals(ComputeScheduling, other.ComputeScheduling)) return false; + if (SecureBoot != other.SecureBoot) return false; + if (BootOption != other.BootOption) return false; + if (!Metadata.Equals(other.Metadata)) return false; + if(!additionalLicenses_.Equals(other.additionalLicenses_)) return false; + if (Hostname != other.Hostname) 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 (VmName.Length != 0) hash ^= VmName.GetHashCode(); + if (TargetProject.Length != 0) hash ^= TargetProject.GetHashCode(); + if (Zone.Length != 0) hash ^= Zone.GetHashCode(); + if (MachineTypeSeries.Length != 0) hash ^= MachineTypeSeries.GetHashCode(); + if (MachineType.Length != 0) hash ^= MachineType.GetHashCode(); + hash ^= networkTags_.GetHashCode(); + hash ^= networkInterfaces_.GetHashCode(); + if (ServiceAccount.Length != 0) hash ^= ServiceAccount.GetHashCode(); + if (DiskType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified) hash ^= DiskType.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (LicenseType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default) hash ^= LicenseType.GetHashCode(); + if (appliedLicense_ != null) hash ^= AppliedLicense.GetHashCode(); + if (computeScheduling_ != null) hash ^= ComputeScheduling.GetHashCode(); + if (SecureBoot != false) hash ^= SecureBoot.GetHashCode(); + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified) hash ^= BootOption.GetHashCode(); + hash ^= Metadata.GetHashCode(); + hash ^= additionalLicenses_.GetHashCode(); + if (Hostname.Length != 0) hash ^= Hostname.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 (VmName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(VmName); + } + if (TargetProject.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetProject); + } + if (Zone.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Zone); + } + if (MachineTypeSeries.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MachineTypeSeries); + } + if (MachineType.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MachineType); + } + networkTags_.WriteTo(output, _repeated_networkTags_codec); + networkInterfaces_.WriteTo(output, _repeated_networkInterfaces_codec); + if (ServiceAccount.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ServiceAccount); + } + if (DiskType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) DiskType); + } + labels_.WriteTo(output, _map_labels_codec); + if (LicenseType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default) { + output.WriteRawTag(88); + output.WriteEnum((int) LicenseType); + } + if (appliedLicense_ != null) { + output.WriteRawTag(98); + output.WriteMessage(AppliedLicense); + } + if (computeScheduling_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ComputeScheduling); + } + if (SecureBoot != false) { + output.WriteRawTag(112); + output.WriteBool(SecureBoot); + } + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified) { + output.WriteRawTag(120); + output.WriteEnum((int) BootOption); + } + metadata_.WriteTo(output, _map_metadata_codec); + additionalLicenses_.WriteTo(output, _repeated_additionalLicenses_codec); + if (Hostname.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Hostname); + } + 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 (VmName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(VmName); + } + if (TargetProject.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TargetProject); + } + if (Zone.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Zone); + } + if (MachineTypeSeries.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MachineTypeSeries); + } + if (MachineType.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MachineType); + } + networkTags_.WriteTo(ref output, _repeated_networkTags_codec); + networkInterfaces_.WriteTo(ref output, _repeated_networkInterfaces_codec); + if (ServiceAccount.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ServiceAccount); + } + if (DiskType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) DiskType); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (LicenseType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default) { + output.WriteRawTag(88); + output.WriteEnum((int) LicenseType); + } + if (appliedLicense_ != null) { + output.WriteRawTag(98); + output.WriteMessage(AppliedLicense); + } + if (computeScheduling_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ComputeScheduling); + } + if (SecureBoot != false) { + output.WriteRawTag(112); + output.WriteBool(SecureBoot); + } + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified) { + output.WriteRawTag(120); + output.WriteEnum((int) BootOption); + } + metadata_.WriteTo(ref output, _map_metadata_codec); + additionalLicenses_.WriteTo(ref output, _repeated_additionalLicenses_codec); + if (Hostname.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Hostname); + } + 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 (VmName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VmName); + } + if (TargetProject.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetProject); + } + if (Zone.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Zone); + } + if (MachineTypeSeries.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MachineTypeSeries); + } + if (MachineType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MachineType); + } + size += networkTags_.CalculateSize(_repeated_networkTags_codec); + size += networkInterfaces_.CalculateSize(_repeated_networkInterfaces_codec); + if (ServiceAccount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccount); + } + if (DiskType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DiskType); + } + size += labels_.CalculateSize(_map_labels_codec); + if (LicenseType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LicenseType); + } + if (appliedLicense_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AppliedLicense); + } + if (computeScheduling_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ComputeScheduling); + } + if (SecureBoot != false) { + size += 1 + 1; + } + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BootOption); + } + size += metadata_.CalculateSize(_map_metadata_codec); + size += additionalLicenses_.CalculateSize(_repeated_additionalLicenses_codec); + if (Hostname.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Hostname); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComputeEngineTargetDefaults other) { + if (other == null) { + return; + } + if (other.VmName.Length != 0) { + VmName = other.VmName; + } + if (other.TargetProject.Length != 0) { + TargetProject = other.TargetProject; + } + if (other.Zone.Length != 0) { + Zone = other.Zone; + } + if (other.MachineTypeSeries.Length != 0) { + MachineTypeSeries = other.MachineTypeSeries; + } + if (other.MachineType.Length != 0) { + MachineType = other.MachineType; + } + networkTags_.Add(other.networkTags_); + networkInterfaces_.Add(other.networkInterfaces_); + if (other.ServiceAccount.Length != 0) { + ServiceAccount = other.ServiceAccount; + } + if (other.DiskType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified) { + DiskType = other.DiskType; + } + labels_.MergeFrom(other.labels_); + if (other.LicenseType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default) { + LicenseType = other.LicenseType; + } + if (other.appliedLicense_ != null) { + if (appliedLicense_ == null) { + AppliedLicense = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense(); + } + AppliedLicense.MergeFrom(other.AppliedLicense); + } + if (other.computeScheduling_ != null) { + if (computeScheduling_ == null) { + ComputeScheduling = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling(); + } + ComputeScheduling.MergeFrom(other.ComputeScheduling); + } + if (other.SecureBoot != false) { + SecureBoot = other.SecureBoot; + } + if (other.BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified) { + BootOption = other.BootOption; + } + metadata_.MergeFrom(other.metadata_); + additionalLicenses_.Add(other.additionalLicenses_); + if (other.Hostname.Length != 0) { + Hostname = other.Hostname; + } + _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: { + VmName = input.ReadString(); + break; + } + case 18: { + TargetProject = input.ReadString(); + break; + } + case 26: { + Zone = input.ReadString(); + break; + } + case 34: { + MachineTypeSeries = input.ReadString(); + break; + } + case 42: { + MachineType = input.ReadString(); + break; + } + case 50: { + networkTags_.AddEntriesFrom(input, _repeated_networkTags_codec); + break; + } + case 58: { + networkInterfaces_.AddEntriesFrom(input, _repeated_networkInterfaces_codec); + break; + } + case 66: { + ServiceAccount = input.ReadString(); + break; + } + case 72: { + DiskType = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType) input.ReadEnum(); + break; + } + case 82: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 88: { + LicenseType = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType) input.ReadEnum(); + break; + } + case 98: { + if (appliedLicense_ == null) { + AppliedLicense = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense(); + } + input.ReadMessage(AppliedLicense); + break; + } + case 106: { + if (computeScheduling_ == null) { + ComputeScheduling = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling(); + } + input.ReadMessage(ComputeScheduling); + break; + } + case 112: { + SecureBoot = input.ReadBool(); + break; + } + case 120: { + BootOption = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption) input.ReadEnum(); + break; + } + case 130: { + metadata_.AddEntriesFrom(input, _map_metadata_codec); + break; + } + case 138: { + additionalLicenses_.AddEntriesFrom(input, _repeated_additionalLicenses_codec); + break; + } + case 146: { + Hostname = 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: { + VmName = input.ReadString(); + break; + } + case 18: { + TargetProject = input.ReadString(); + break; + } + case 26: { + Zone = input.ReadString(); + break; + } + case 34: { + MachineTypeSeries = input.ReadString(); + break; + } + case 42: { + MachineType = input.ReadString(); + break; + } + case 50: { + networkTags_.AddEntriesFrom(ref input, _repeated_networkTags_codec); + break; + } + case 58: { + networkInterfaces_.AddEntriesFrom(ref input, _repeated_networkInterfaces_codec); + break; + } + case 66: { + ServiceAccount = input.ReadString(); + break; + } + case 72: { + DiskType = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType) input.ReadEnum(); + break; + } + case 82: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 88: { + LicenseType = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType) input.ReadEnum(); + break; + } + case 98: { + if (appliedLicense_ == null) { + AppliedLicense = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense(); + } + input.ReadMessage(AppliedLicense); + break; + } + case 106: { + if (computeScheduling_ == null) { + ComputeScheduling = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling(); + } + input.ReadMessage(ComputeScheduling); + break; + } + case 112: { + SecureBoot = input.ReadBool(); + break; + } + case 120: { + BootOption = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption) input.ReadEnum(); + break; + } + case 130: { + metadata_.AddEntriesFrom(ref input, _map_metadata_codec); + break; + } + case 138: { + additionalLicenses_.AddEntriesFrom(ref input, _repeated_additionalLicenses_codec); + break; + } + case 146: { + Hostname = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// ComputeEngineTargetDetails is a collection of details for creating a VM in a + /// target Compute Engine project. + /// + public sealed partial class ComputeEngineTargetDetails : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComputeEngineTargetDetails()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[28]; } + } + + [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 ComputeEngineTargetDetails() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeEngineTargetDetails(ComputeEngineTargetDetails other) : this() { + vmName_ = other.vmName_; + project_ = other.project_; + zone_ = other.zone_; + machineTypeSeries_ = other.machineTypeSeries_; + machineType_ = other.machineType_; + networkTags_ = other.networkTags_.Clone(); + networkInterfaces_ = other.networkInterfaces_.Clone(); + serviceAccount_ = other.serviceAccount_; + diskType_ = other.diskType_; + labels_ = other.labels_.Clone(); + licenseType_ = other.licenseType_; + appliedLicense_ = other.appliedLicense_ != null ? other.appliedLicense_.Clone() : null; + computeScheduling_ = other.computeScheduling_ != null ? other.computeScheduling_.Clone() : null; + secureBoot_ = other.secureBoot_; + bootOption_ = other.bootOption_; + metadata_ = other.metadata_.Clone(); + additionalLicenses_ = other.additionalLicenses_.Clone(); + hostname_ = other.hostname_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeEngineTargetDetails Clone() { + return new ComputeEngineTargetDetails(this); + } + + /// Field number for the "vm_name" field. + public const int VmNameFieldNumber = 1; + private string vmName_ = ""; + /// + /// The name of the VM to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VmName { + get { return vmName_; } + set { + vmName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "project" field. + public const int ProjectFieldNumber = 2; + private string project_ = ""; + /// + /// The Google Cloud target project ID or project name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Project { + get { return project_; } + set { + project_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "zone" field. + public const int ZoneFieldNumber = 3; + private string zone_ = ""; + /// + /// The zone in which to create the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Zone { + get { return zone_; } + set { + zone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "machine_type_series" field. + public const int MachineTypeSeriesFieldNumber = 4; + private string machineTypeSeries_ = ""; + /// + /// The machine type series to create the VM with. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MachineTypeSeries { + get { return machineTypeSeries_; } + set { + machineTypeSeries_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "machine_type" field. + public const int MachineTypeFieldNumber = 5; + private string machineType_ = ""; + /// + /// The machine type to create the VM with. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MachineType { + get { return machineType_; } + set { + machineType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "network_tags" field. + public const int NetworkTagsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_networkTags_codec + = pb::FieldCodec.ForString(50); + private readonly pbc::RepeatedField networkTags_ = new pbc::RepeatedField(); + /// + /// A map of network tags to associate with the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NetworkTags { + get { return networkTags_; } + } + + /// Field number for the "network_interfaces" field. + public const int NetworkInterfacesFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_networkInterfaces_codec + = pb::FieldCodec.ForMessage(58, global::Google.Events.Protobuf.Cloud.VMMigration.V1.NetworkInterface.Parser); + private readonly pbc::RepeatedField networkInterfaces_ = new pbc::RepeatedField(); + /// + /// List of NICs connected to this VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NetworkInterfaces { + get { return networkInterfaces_; } + } + + /// Field number for the "service_account" field. + public const int ServiceAccountFieldNumber = 8; + private string serviceAccount_ = ""; + /// + /// The service account to associate the VM with. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccount { + get { return serviceAccount_; } + set { + serviceAccount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "disk_type" field. + public const int DiskTypeFieldNumber = 9; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType diskType_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified; + /// + /// The disk type to use in the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType DiskType { + get { return diskType_; } + set { + diskType_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 10; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 82); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// A map of labels to associate with the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "license_type" field. + public const int LicenseTypeFieldNumber = 11; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType licenseType_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default; + /// + /// The license type to use in OS adaptation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType LicenseType { + get { return licenseType_; } + set { + licenseType_ = value; + } + } + + /// Field number for the "applied_license" field. + public const int AppliedLicenseFieldNumber = 12; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense appliedLicense_; + /// + /// The OS license returned from the adaptation module report. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense AppliedLicense { + get { return appliedLicense_; } + set { + appliedLicense_ = value; + } + } + + /// Field number for the "compute_scheduling" field. + public const int ComputeSchedulingFieldNumber = 13; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling computeScheduling_; + /// + /// Compute instance scheduling information (if empty default is used). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling ComputeScheduling { + get { return computeScheduling_; } + set { + computeScheduling_ = value; + } + } + + /// Field number for the "secure_boot" field. + public const int SecureBootFieldNumber = 14; + private bool secureBoot_; + /// + /// Defines whether the instance has Secure Boot enabled. + /// This can be set to true only if the vm boot option is EFI. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SecureBoot { + get { return secureBoot_; } + set { + secureBoot_ = value; + } + } + + /// Field number for the "boot_option" field. + public const int BootOptionFieldNumber = 15; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption bootOption_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified; + /// + /// The VM Boot Option, as set in the source vm. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption BootOption { + get { return bootOption_; } + set { + bootOption_ = value; + } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 16; + private static readonly pbc::MapField.Codec _map_metadata_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 130); + private readonly pbc::MapField metadata_ = new pbc::MapField(); + /// + /// The metadata key/value pairs to assign to the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Metadata { + get { return metadata_; } + } + + /// Field number for the "additional_licenses" field. + public const int AdditionalLicensesFieldNumber = 17; + private static readonly pb::FieldCodec _repeated_additionalLicenses_codec + = pb::FieldCodec.ForString(138); + private readonly pbc::RepeatedField additionalLicenses_ = new pbc::RepeatedField(); + /// + /// Additional licenses to assign to the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AdditionalLicenses { + get { return additionalLicenses_; } + } + + /// Field number for the "hostname" field. + public const int HostnameFieldNumber = 18; + private string hostname_ = ""; + /// + /// The hostname to assign to the VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Hostname { + get { return hostname_; } + set { + hostname_ = 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 ComputeEngineTargetDetails); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComputeEngineTargetDetails other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (VmName != other.VmName) return false; + if (Project != other.Project) return false; + if (Zone != other.Zone) return false; + if (MachineTypeSeries != other.MachineTypeSeries) return false; + if (MachineType != other.MachineType) return false; + if(!networkTags_.Equals(other.networkTags_)) return false; + if(!networkInterfaces_.Equals(other.networkInterfaces_)) return false; + if (ServiceAccount != other.ServiceAccount) return false; + if (DiskType != other.DiskType) return false; + if (!Labels.Equals(other.Labels)) return false; + if (LicenseType != other.LicenseType) return false; + if (!object.Equals(AppliedLicense, other.AppliedLicense)) return false; + if (!object.Equals(ComputeScheduling, other.ComputeScheduling)) return false; + if (SecureBoot != other.SecureBoot) return false; + if (BootOption != other.BootOption) return false; + if (!Metadata.Equals(other.Metadata)) return false; + if(!additionalLicenses_.Equals(other.additionalLicenses_)) return false; + if (Hostname != other.Hostname) 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 (VmName.Length != 0) hash ^= VmName.GetHashCode(); + if (Project.Length != 0) hash ^= Project.GetHashCode(); + if (Zone.Length != 0) hash ^= Zone.GetHashCode(); + if (MachineTypeSeries.Length != 0) hash ^= MachineTypeSeries.GetHashCode(); + if (MachineType.Length != 0) hash ^= MachineType.GetHashCode(); + hash ^= networkTags_.GetHashCode(); + hash ^= networkInterfaces_.GetHashCode(); + if (ServiceAccount.Length != 0) hash ^= ServiceAccount.GetHashCode(); + if (DiskType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified) hash ^= DiskType.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (LicenseType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default) hash ^= LicenseType.GetHashCode(); + if (appliedLicense_ != null) hash ^= AppliedLicense.GetHashCode(); + if (computeScheduling_ != null) hash ^= ComputeScheduling.GetHashCode(); + if (SecureBoot != false) hash ^= SecureBoot.GetHashCode(); + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified) hash ^= BootOption.GetHashCode(); + hash ^= Metadata.GetHashCode(); + hash ^= additionalLicenses_.GetHashCode(); + if (Hostname.Length != 0) hash ^= Hostname.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 (VmName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(VmName); + } + if (Project.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Project); + } + if (Zone.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Zone); + } + if (MachineTypeSeries.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MachineTypeSeries); + } + if (MachineType.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MachineType); + } + networkTags_.WriteTo(output, _repeated_networkTags_codec); + networkInterfaces_.WriteTo(output, _repeated_networkInterfaces_codec); + if (ServiceAccount.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ServiceAccount); + } + if (DiskType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) DiskType); + } + labels_.WriteTo(output, _map_labels_codec); + if (LicenseType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default) { + output.WriteRawTag(88); + output.WriteEnum((int) LicenseType); + } + if (appliedLicense_ != null) { + output.WriteRawTag(98); + output.WriteMessage(AppliedLicense); + } + if (computeScheduling_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ComputeScheduling); + } + if (SecureBoot != false) { + output.WriteRawTag(112); + output.WriteBool(SecureBoot); + } + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified) { + output.WriteRawTag(120); + output.WriteEnum((int) BootOption); + } + metadata_.WriteTo(output, _map_metadata_codec); + additionalLicenses_.WriteTo(output, _repeated_additionalLicenses_codec); + if (Hostname.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Hostname); + } + 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 (VmName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(VmName); + } + if (Project.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Project); + } + if (Zone.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Zone); + } + if (MachineTypeSeries.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MachineTypeSeries); + } + if (MachineType.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MachineType); + } + networkTags_.WriteTo(ref output, _repeated_networkTags_codec); + networkInterfaces_.WriteTo(ref output, _repeated_networkInterfaces_codec); + if (ServiceAccount.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ServiceAccount); + } + if (DiskType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) DiskType); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (LicenseType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default) { + output.WriteRawTag(88); + output.WriteEnum((int) LicenseType); + } + if (appliedLicense_ != null) { + output.WriteRawTag(98); + output.WriteMessage(AppliedLicense); + } + if (computeScheduling_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ComputeScheduling); + } + if (SecureBoot != false) { + output.WriteRawTag(112); + output.WriteBool(SecureBoot); + } + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified) { + output.WriteRawTag(120); + output.WriteEnum((int) BootOption); + } + metadata_.WriteTo(ref output, _map_metadata_codec); + additionalLicenses_.WriteTo(ref output, _repeated_additionalLicenses_codec); + if (Hostname.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Hostname); + } + 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 (VmName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VmName); + } + if (Project.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Project); + } + if (Zone.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Zone); + } + if (MachineTypeSeries.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MachineTypeSeries); + } + if (MachineType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MachineType); + } + size += networkTags_.CalculateSize(_repeated_networkTags_codec); + size += networkInterfaces_.CalculateSize(_repeated_networkInterfaces_codec); + if (ServiceAccount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccount); + } + if (DiskType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DiskType); + } + size += labels_.CalculateSize(_map_labels_codec); + if (LicenseType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LicenseType); + } + if (appliedLicense_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AppliedLicense); + } + if (computeScheduling_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ComputeScheduling); + } + if (SecureBoot != false) { + size += 1 + 1; + } + if (BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BootOption); + } + size += metadata_.CalculateSize(_map_metadata_codec); + size += additionalLicenses_.CalculateSize(_repeated_additionalLicenses_codec); + if (Hostname.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Hostname); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComputeEngineTargetDetails other) { + if (other == null) { + return; + } + if (other.VmName.Length != 0) { + VmName = other.VmName; + } + if (other.Project.Length != 0) { + Project = other.Project; + } + if (other.Zone.Length != 0) { + Zone = other.Zone; + } + if (other.MachineTypeSeries.Length != 0) { + MachineTypeSeries = other.MachineTypeSeries; + } + if (other.MachineType.Length != 0) { + MachineType = other.MachineType; + } + networkTags_.Add(other.networkTags_); + networkInterfaces_.Add(other.networkInterfaces_); + if (other.ServiceAccount.Length != 0) { + ServiceAccount = other.ServiceAccount; + } + if (other.DiskType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType.Unspecified) { + DiskType = other.DiskType; + } + labels_.MergeFrom(other.labels_); + if (other.LicenseType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType.Default) { + LicenseType = other.LicenseType; + } + if (other.appliedLicense_ != null) { + if (appliedLicense_ == null) { + AppliedLicense = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense(); + } + AppliedLicense.MergeFrom(other.AppliedLicense); + } + if (other.computeScheduling_ != null) { + if (computeScheduling_ == null) { + ComputeScheduling = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling(); + } + ComputeScheduling.MergeFrom(other.ComputeScheduling); + } + if (other.SecureBoot != false) { + SecureBoot = other.SecureBoot; + } + if (other.BootOption != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption.Unspecified) { + BootOption = other.BootOption; + } + metadata_.MergeFrom(other.metadata_); + additionalLicenses_.Add(other.additionalLicenses_); + if (other.Hostname.Length != 0) { + Hostname = other.Hostname; + } + _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: { + VmName = input.ReadString(); + break; + } + case 18: { + Project = input.ReadString(); + break; + } + case 26: { + Zone = input.ReadString(); + break; + } + case 34: { + MachineTypeSeries = input.ReadString(); + break; + } + case 42: { + MachineType = input.ReadString(); + break; + } + case 50: { + networkTags_.AddEntriesFrom(input, _repeated_networkTags_codec); + break; + } + case 58: { + networkInterfaces_.AddEntriesFrom(input, _repeated_networkInterfaces_codec); + break; + } + case 66: { + ServiceAccount = input.ReadString(); + break; + } + case 72: { + DiskType = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType) input.ReadEnum(); + break; + } + case 82: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 88: { + LicenseType = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType) input.ReadEnum(); + break; + } + case 98: { + if (appliedLicense_ == null) { + AppliedLicense = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense(); + } + input.ReadMessage(AppliedLicense); + break; + } + case 106: { + if (computeScheduling_ == null) { + ComputeScheduling = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling(); + } + input.ReadMessage(ComputeScheduling); + break; + } + case 112: { + SecureBoot = input.ReadBool(); + break; + } + case 120: { + BootOption = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption) input.ReadEnum(); + break; + } + case 130: { + metadata_.AddEntriesFrom(input, _map_metadata_codec); + break; + } + case 138: { + additionalLicenses_.AddEntriesFrom(input, _repeated_additionalLicenses_codec); + break; + } + case 146: { + Hostname = 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: { + VmName = input.ReadString(); + break; + } + case 18: { + Project = input.ReadString(); + break; + } + case 26: { + Zone = input.ReadString(); + break; + } + case 34: { + MachineTypeSeries = input.ReadString(); + break; + } + case 42: { + MachineType = input.ReadString(); + break; + } + case 50: { + networkTags_.AddEntriesFrom(ref input, _repeated_networkTags_codec); + break; + } + case 58: { + networkInterfaces_.AddEntriesFrom(ref input, _repeated_networkInterfaces_codec); + break; + } + case 66: { + ServiceAccount = input.ReadString(); + break; + } + case 72: { + DiskType = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineDiskType) input.ReadEnum(); + break; + } + case 82: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 88: { + LicenseType = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineLicenseType) input.ReadEnum(); + break; + } + case 98: { + if (appliedLicense_ == null) { + AppliedLicense = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense(); + } + input.ReadMessage(AppliedLicense); + break; + } + case 106: { + if (computeScheduling_ == null) { + ComputeScheduling = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling(); + } + input.ReadMessage(ComputeScheduling); + break; + } + case 112: { + SecureBoot = input.ReadBool(); + break; + } + case 120: { + BootOption = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeEngineBootOption) input.ReadEnum(); + break; + } + case 130: { + metadata_.AddEntriesFrom(ref input, _map_metadata_codec); + break; + } + case 138: { + additionalLicenses_.AddEntriesFrom(ref input, _repeated_additionalLicenses_codec); + break; + } + case 146: { + Hostname = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// NetworkInterface represents a NIC of a VM. + /// + public sealed partial class NetworkInterface : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NetworkInterface()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[29]; } + } + + [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 NetworkInterface() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NetworkInterface(NetworkInterface other) : this() { + network_ = other.network_; + subnetwork_ = other.subnetwork_; + internalIp_ = other.internalIp_; + externalIp_ = other.externalIp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NetworkInterface Clone() { + return new NetworkInterface(this); + } + + /// Field number for the "network" field. + public const int NetworkFieldNumber = 1; + private string network_ = ""; + /// + /// The network to connect the NIC to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Network { + get { return network_; } + set { + network_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "subnetwork" field. + public const int SubnetworkFieldNumber = 2; + private string subnetwork_ = ""; + /// + /// The subnetwork to connect the NIC to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Subnetwork { + get { return subnetwork_; } + set { + subnetwork_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "internal_ip" field. + public const int InternalIpFieldNumber = 3; + private string internalIp_ = ""; + /// + /// The internal IP to define in the NIC. + /// The formats accepted are: `ephemeral` \ ipv4 address \ a named address + /// resource full path. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InternalIp { + get { return internalIp_; } + set { + internalIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "external_ip" field. + public const int ExternalIpFieldNumber = 4; + private string externalIp_ = ""; + /// + /// The external IP to define in the NIC. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExternalIp { + get { return externalIp_; } + set { + externalIp_ = 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 NetworkInterface); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NetworkInterface other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Network != other.Network) return false; + if (Subnetwork != other.Subnetwork) return false; + if (InternalIp != other.InternalIp) return false; + if (ExternalIp != other.ExternalIp) 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 (Network.Length != 0) hash ^= Network.GetHashCode(); + if (Subnetwork.Length != 0) hash ^= Subnetwork.GetHashCode(); + if (InternalIp.Length != 0) hash ^= InternalIp.GetHashCode(); + if (ExternalIp.Length != 0) hash ^= ExternalIp.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 (Network.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Network); + } + if (Subnetwork.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Subnetwork); + } + if (InternalIp.Length != 0) { + output.WriteRawTag(26); + output.WriteString(InternalIp); + } + if (ExternalIp.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ExternalIp); + } + 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 (Network.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Network); + } + if (Subnetwork.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Subnetwork); + } + if (InternalIp.Length != 0) { + output.WriteRawTag(26); + output.WriteString(InternalIp); + } + if (ExternalIp.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ExternalIp); + } + 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 (Network.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Network); + } + if (Subnetwork.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Subnetwork); + } + if (InternalIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InternalIp); + } + if (ExternalIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalIp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NetworkInterface other) { + if (other == null) { + return; + } + if (other.Network.Length != 0) { + Network = other.Network; + } + if (other.Subnetwork.Length != 0) { + Subnetwork = other.Subnetwork; + } + if (other.InternalIp.Length != 0) { + InternalIp = other.InternalIp; + } + if (other.ExternalIp.Length != 0) { + ExternalIp = other.ExternalIp; + } + _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: { + Network = input.ReadString(); + break; + } + case 18: { + Subnetwork = input.ReadString(); + break; + } + case 26: { + InternalIp = input.ReadString(); + break; + } + case 34: { + ExternalIp = 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: { + Network = input.ReadString(); + break; + } + case 18: { + Subnetwork = input.ReadString(); + break; + } + case 26: { + InternalIp = input.ReadString(); + break; + } + case 34: { + ExternalIp = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// AppliedLicense holds the license data returned by adaptation module report. + /// + public sealed partial class AppliedLicense : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppliedLicense()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[30]; } + } + + [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 AppliedLicense() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppliedLicense(AppliedLicense other) : this() { + type_ = other.type_; + osLicense_ = other.osLicense_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppliedLicense Clone() { + return new AppliedLicense(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Types.Type type_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Types.Type.Unspecified; + /// + /// The license type that was used in OS adaptation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Types.Type Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "os_license" field. + public const int OsLicenseFieldNumber = 2; + private string osLicense_ = ""; + /// + /// The OS license returned from the adaptation module's report. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OsLicense { + get { return osLicense_; } + set { + osLicense_ = 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 AppliedLicense); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppliedLicense other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (OsLicense != other.OsLicense) 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 != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Types.Type.Unspecified) hash ^= Type.GetHashCode(); + if (OsLicense.Length != 0) hash ^= OsLicense.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 != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Types.Type.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (OsLicense.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OsLicense); + } + 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 != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Types.Type.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (OsLicense.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OsLicense); + } + 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 != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Types.Type.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (OsLicense.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OsLicense); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppliedLicense other) { + if (other == null) { + return; + } + if (other.Type != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Types.Type.Unspecified) { + Type = other.Type; + } + if (other.OsLicense.Length != 0) { + OsLicense = other.OsLicense; + } + _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: { + Type = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Types.Type) input.ReadEnum(); + break; + } + case 18: { + OsLicense = 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 8: { + Type = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.AppliedLicense.Types.Type) input.ReadEnum(); + break; + } + case 18: { + OsLicense = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AppliedLicense message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// License types used in OS adaptation. + /// + public enum Type { + /// + /// Unspecified license for the OS. + /// + [pbr::OriginalName("TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// No license available for the OS. + /// + [pbr::OriginalName("NONE")] None = 1, + /// + /// The license type is Pay As You Go license type. + /// + [pbr::OriginalName("PAYG")] Payg = 2, + /// + /// The license type is Bring Your Own License type. + /// + [pbr::OriginalName("BYOL")] Byol = 3, + } + + } + #endregion + + } + + /// + /// Node Affinity: the configuration of desired nodes onto which this Instance + /// could be scheduled. Based on + /// https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling + /// + public sealed partial class SchedulingNodeAffinity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SchedulingNodeAffinity()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[31]; } + } + + [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 SchedulingNodeAffinity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SchedulingNodeAffinity(SchedulingNodeAffinity other) : this() { + key_ = other.key_; + operator_ = other.operator_; + values_ = other.values_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SchedulingNodeAffinity Clone() { + return new SchedulingNodeAffinity(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private string key_ = ""; + /// + /// The label key of Node resource to reference. + /// + [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 "operator" field. + public const int OperatorFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Types.Operator operator_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Types.Operator.Unspecified; + /// + /// The operator to use for the node resources specified in the `values` + /// parameter. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Types.Operator Operator { + get { return operator_; } + set { + operator_ = 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(); + /// + /// Corresponds to the label values of Node resource. + /// + [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 SchedulingNodeAffinity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SchedulingNodeAffinity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) return false; + if (Operator != other.Operator) 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 (Key.Length != 0) hash ^= Key.GetHashCode(); + if (Operator != global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Types.Operator.Unspecified) hash ^= Operator.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 (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Key); + } + if (Operator != global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Types.Operator.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Operator); + } + 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 (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Key); + } + if (Operator != global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Types.Operator.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Operator); + } + 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 (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + } + if (Operator != global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Types.Operator.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operator); + } + 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(SchedulingNodeAffinity other) { + if (other == null) { + return; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + if (other.Operator != global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Types.Operator.Unspecified) { + Operator = other.Operator; + } + 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: { + Key = input.ReadString(); + break; + } + case 16: { + Operator = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Types.Operator) input.ReadEnum(); + 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: { + Key = input.ReadString(); + break; + } + case 16: { + Operator = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Types.Operator) input.ReadEnum(); + break; + } + case 26: { + values_.AddEntriesFrom(ref input, _repeated_values_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the SchedulingNodeAffinity message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible types of node selection operators. Valid operators are IN for + /// affinity and NOT_IN for anti-affinity. + /// + public enum Operator { + /// + /// An unknown, unexpected behavior. + /// + [pbr::OriginalName("OPERATOR_UNSPECIFIED")] Unspecified = 0, + /// + /// The node resource group should be in these resources affinity. + /// + [pbr::OriginalName("IN")] In = 1, + /// + /// The node resource group should not be in these resources affinity. + /// + [pbr::OriginalName("NOT_IN")] NotIn = 2, + } + + } + #endregion + + } + + /// + /// Scheduling information for VM on maintenance/restart behaviour and + /// node allocation in sole tenant nodes. + /// + public sealed partial class ComputeScheduling : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComputeScheduling()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[32]; } + } + + [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 ComputeScheduling() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeScheduling(ComputeScheduling other) : this() { + onHostMaintenance_ = other.onHostMaintenance_; + restartType_ = other.restartType_; + nodeAffinities_ = other.nodeAffinities_.Clone(); + minNodeCpus_ = other.minNodeCpus_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeScheduling Clone() { + return new ComputeScheduling(this); + } + + /// Field number for the "on_host_maintenance" field. + public const int OnHostMaintenanceFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.OnHostMaintenance onHostMaintenance_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.OnHostMaintenance.Unspecified; + /// + /// How the instance should behave when the host machine undergoes + /// maintenance that may temporarily impact instance performance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.OnHostMaintenance OnHostMaintenance { + get { return onHostMaintenance_; } + set { + onHostMaintenance_ = value; + } + } + + /// Field number for the "restart_type" field. + public const int RestartTypeFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.RestartType restartType_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.RestartType.Unspecified; + /// + /// Whether the Instance should be automatically restarted whenever it is + /// terminated by Compute Engine (not terminated by user). + /// This configuration is identical to `automaticRestart` field in Compute + /// Engine create instance under scheduling. + /// It was changed to an enum (instead of a boolean) to match the default + /// value in Compute Engine which is automatic restart. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.RestartType RestartType { + get { return restartType_; } + set { + restartType_ = value; + } + } + + /// Field number for the "node_affinities" field. + public const int NodeAffinitiesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_nodeAffinities_codec + = pb::FieldCodec.ForMessage(26, global::Google.Events.Protobuf.Cloud.VMMigration.V1.SchedulingNodeAffinity.Parser); + private readonly pbc::RepeatedField nodeAffinities_ = new pbc::RepeatedField(); + /// + /// A set of node affinity and anti-affinity configurations for sole tenant + /// nodes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NodeAffinities { + get { return nodeAffinities_; } + } + + /// Field number for the "min_node_cpus" field. + public const int MinNodeCpusFieldNumber = 4; + private int minNodeCpus_; + /// + /// The minimum number of virtual CPUs this instance will consume when + /// running on a sole-tenant node. Ignored if no node_affinites are + /// configured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinNodeCpus { + get { return minNodeCpus_; } + set { + minNodeCpus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ComputeScheduling); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComputeScheduling other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OnHostMaintenance != other.OnHostMaintenance) return false; + if (RestartType != other.RestartType) return false; + if(!nodeAffinities_.Equals(other.nodeAffinities_)) return false; + if (MinNodeCpus != other.MinNodeCpus) 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 (OnHostMaintenance != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.OnHostMaintenance.Unspecified) hash ^= OnHostMaintenance.GetHashCode(); + if (RestartType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.RestartType.Unspecified) hash ^= RestartType.GetHashCode(); + hash ^= nodeAffinities_.GetHashCode(); + if (MinNodeCpus != 0) hash ^= MinNodeCpus.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 (OnHostMaintenance != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.OnHostMaintenance.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) OnHostMaintenance); + } + nodeAffinities_.WriteTo(output, _repeated_nodeAffinities_codec); + if (MinNodeCpus != 0) { + output.WriteRawTag(32); + output.WriteInt32(MinNodeCpus); + } + if (RestartType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.RestartType.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) RestartType); + } + 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 (OnHostMaintenance != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.OnHostMaintenance.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) OnHostMaintenance); + } + nodeAffinities_.WriteTo(ref output, _repeated_nodeAffinities_codec); + if (MinNodeCpus != 0) { + output.WriteRawTag(32); + output.WriteInt32(MinNodeCpus); + } + if (RestartType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.RestartType.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) RestartType); + } + 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 (OnHostMaintenance != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.OnHostMaintenance.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OnHostMaintenance); + } + if (RestartType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.RestartType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RestartType); + } + size += nodeAffinities_.CalculateSize(_repeated_nodeAffinities_codec); + if (MinNodeCpus != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinNodeCpus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComputeScheduling other) { + if (other == null) { + return; + } + if (other.OnHostMaintenance != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.OnHostMaintenance.Unspecified) { + OnHostMaintenance = other.OnHostMaintenance; + } + if (other.RestartType != global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.RestartType.Unspecified) { + RestartType = other.RestartType; + } + nodeAffinities_.Add(other.nodeAffinities_); + if (other.MinNodeCpus != 0) { + MinNodeCpus = other.MinNodeCpus; + } + _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: { + OnHostMaintenance = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.OnHostMaintenance) input.ReadEnum(); + break; + } + case 26: { + nodeAffinities_.AddEntriesFrom(input, _repeated_nodeAffinities_codec); + break; + } + case 32: { + MinNodeCpus = input.ReadInt32(); + break; + } + case 40: { + RestartType = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.RestartType) input.ReadEnum(); + 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: { + OnHostMaintenance = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.OnHostMaintenance) input.ReadEnum(); + break; + } + case 26: { + nodeAffinities_.AddEntriesFrom(ref input, _repeated_nodeAffinities_codec); + break; + } + case 32: { + MinNodeCpus = input.ReadInt32(); + break; + } + case 40: { + RestartType = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.ComputeScheduling.Types.RestartType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ComputeScheduling message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum OnHostMaintenance { + /// + /// An unknown, unexpected behavior. + /// + [pbr::OriginalName("ON_HOST_MAINTENANCE_UNSPECIFIED")] Unspecified = 0, + /// + /// Terminate the instance when the host machine undergoes maintenance. + /// + [pbr::OriginalName("TERMINATE")] Terminate = 1, + /// + /// Migrate the instance when the host machine undergoes maintenance. + /// + [pbr::OriginalName("MIGRATE")] Migrate = 2, + } + + /// + /// Defines whether the Instance should be automatically restarted whenever + /// it is terminated by Compute Engine (not terminated by user). + /// + public enum RestartType { + /// + /// Unspecified behavior. This will use the default. + /// + [pbr::OriginalName("RESTART_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The Instance should be automatically restarted whenever it is + /// terminated by Compute Engine. + /// + [pbr::OriginalName("AUTOMATIC_RESTART")] AutomaticRestart = 1, + /// + /// The Instance isn't automatically restarted whenever it is + /// terminated by Compute Engine. + /// + [pbr::OriginalName("NO_AUTOMATIC_RESTART")] NoAutomaticRestart = 2, + } + + } + #endregion + + } + + /// + /// A policy for scheduling replications. + /// + public sealed partial class SchedulePolicy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SchedulePolicy()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[33]; } + } + + [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 SchedulePolicy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SchedulePolicy(SchedulePolicy other) : this() { + idleDuration_ = other.idleDuration_ != null ? other.idleDuration_.Clone() : null; + skipOsAdaptation_ = other.skipOsAdaptation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SchedulePolicy Clone() { + return new SchedulePolicy(this); + } + + /// Field number for the "idle_duration" field. + public const int IdleDurationFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration idleDuration_; + /// + /// The idle duration between replication stages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration IdleDuration { + get { return idleDuration_; } + set { + idleDuration_ = value; + } + } + + /// Field number for the "skip_os_adaptation" field. + public const int SkipOsAdaptationFieldNumber = 2; + private bool skipOsAdaptation_; + /// + /// A flag to indicate whether to skip OS adaptation during the replication + /// sync. OS adaptation is a process where the VM's operating system undergoes + /// changes and adaptations to fully function on Compute Engine. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SkipOsAdaptation { + get { return skipOsAdaptation_; } + set { + skipOsAdaptation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SchedulePolicy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SchedulePolicy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(IdleDuration, other.IdleDuration)) return false; + if (SkipOsAdaptation != other.SkipOsAdaptation) 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 (idleDuration_ != null) hash ^= IdleDuration.GetHashCode(); + if (SkipOsAdaptation != false) hash ^= SkipOsAdaptation.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 (idleDuration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(IdleDuration); + } + if (SkipOsAdaptation != false) { + output.WriteRawTag(16); + output.WriteBool(SkipOsAdaptation); + } + 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 (idleDuration_ != null) { + output.WriteRawTag(10); + output.WriteMessage(IdleDuration); + } + if (SkipOsAdaptation != false) { + output.WriteRawTag(16); + output.WriteBool(SkipOsAdaptation); + } + 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 (idleDuration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IdleDuration); + } + if (SkipOsAdaptation != 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(SchedulePolicy other) { + if (other == null) { + return; + } + if (other.idleDuration_ != null) { + if (idleDuration_ == null) { + IdleDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + IdleDuration.MergeFrom(other.IdleDuration); + } + if (other.SkipOsAdaptation != false) { + SkipOsAdaptation = other.SkipOsAdaptation; + } + _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 (idleDuration_ == null) { + IdleDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(IdleDuration); + break; + } + case 16: { + SkipOsAdaptation = 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 10: { + if (idleDuration_ == null) { + IdleDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(IdleDuration); + break; + } + case 16: { + SkipOsAdaptation = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// TargetProject message represents a target Compute Engine project for a + /// migration or a clone. + /// + public sealed partial class TargetProject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TargetProject()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[34]; } + } + + [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 TargetProject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TargetProject(TargetProject other) : this() { + name_ = other.name_; + project_ = other.project_; + description_ = other.description_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TargetProject Clone() { + return new TargetProject(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The name of the target project. + /// + [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 "project" field. + public const int ProjectFieldNumber = 2; + private string project_ = ""; + /// + /// The target project ID (number) or project name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Project { + get { return project_; } + set { + project_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// The target project's description. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time this target project resource was created (not related + /// to when the Compute Engine project it points to was created). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The last time the target project resource was updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TargetProject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TargetProject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Project != other.Project) return false; + if (Description != other.Description) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) 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 (Project.Length != 0) hash ^= Project.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.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 (Project.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Project); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (createTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateTime); + } + 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 (Project.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Project); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (createTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateTime); + } + 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 (Project.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Project); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TargetProject other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Project.Length != 0) { + Project = other.Project; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + _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: { + Project = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 42: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + 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: { + Project = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 42: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + } + #endif + + } + + /// + /// Describes message for 'Group' resource. The Group is a collections of several + /// MigratingVms. + /// + public sealed partial class Group : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Group()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[35]; } + } + + [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 Group() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Group(Group other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + description_ = other.description_; + displayName_ = other.displayName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Group Clone() { + return new Group(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The Group 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 "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The create time timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The update time timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 4; + private string description_ = ""; + /// + /// User-provided description of the group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 5; + private string displayName_ = ""; + /// + /// Display name is a user defined name for this group which can be updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = 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 Group); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Group other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (Description != other.Description) return false; + if (DisplayName != other.DisplayName) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DisplayName); + } + 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 (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DisplayName); + } + 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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Group other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + _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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + DisplayName = 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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + DisplayName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents migration resource warning information that can be used with + /// google.rpc.Status message. MigrationWarning is used to present the user with + /// warning information in migration operations. + /// + public sealed partial class MigrationWarning : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MigrationWarning()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[36]; } + } + + [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 MigrationWarning() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigrationWarning(MigrationWarning other) : this() { + code_ = other.code_; + warningMessage_ = other.warningMessage_ != null ? other.warningMessage_.Clone() : null; + actionItem_ = other.actionItem_ != null ? other.actionItem_.Clone() : null; + helpLinks_ = other.helpLinks_.Clone(); + warningTime_ = other.warningTime_ != null ? other.warningTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigrationWarning Clone() { + return new MigrationWarning(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Types.WarningCode code_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Types.WarningCode.Unspecified; + /// + /// The warning code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Types.WarningCode Code { + get { return code_; } + set { + code_ = value; + } + } + + /// Field number for the "warning_message" field. + public const int WarningMessageFieldNumber = 2; + private global::Google.Rpc.LocalizedMessage warningMessage_; + /// + /// The localized warning message. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.LocalizedMessage WarningMessage { + get { return warningMessage_; } + set { + warningMessage_ = value; + } + } + + /// Field number for the "action_item" field. + public const int ActionItemFieldNumber = 3; + private global::Google.Rpc.LocalizedMessage actionItem_; + /// + /// Suggested action for solving the warning. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.LocalizedMessage ActionItem { + get { return actionItem_; } + set { + actionItem_ = value; + } + } + + /// Field number for the "help_links" field. + public const int HelpLinksFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_helpLinks_codec + = pb::FieldCodec.ForMessage(34, global::Google.Rpc.Help.Types.Link.Parser); + private readonly pbc::RepeatedField helpLinks_ = new pbc::RepeatedField(); + /// + /// URL(s) pointing to additional information on handling the current warning. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HelpLinks { + get { return helpLinks_; } + } + + /// Field number for the "warning_time" field. + public const int WarningTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp warningTime_; + /// + /// The time the warning occurred. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp WarningTime { + get { return warningTime_; } + set { + warningTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MigrationWarning); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MigrationWarning other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (!object.Equals(WarningMessage, other.WarningMessage)) return false; + if (!object.Equals(ActionItem, other.ActionItem)) return false; + if(!helpLinks_.Equals(other.helpLinks_)) return false; + if (!object.Equals(WarningTime, other.WarningTime)) 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 (Code != global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Types.WarningCode.Unspecified) hash ^= Code.GetHashCode(); + if (warningMessage_ != null) hash ^= WarningMessage.GetHashCode(); + if (actionItem_ != null) hash ^= ActionItem.GetHashCode(); + hash ^= helpLinks_.GetHashCode(); + if (warningTime_ != null) hash ^= WarningTime.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 (Code != global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Types.WarningCode.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (warningMessage_ != null) { + output.WriteRawTag(18); + output.WriteMessage(WarningMessage); + } + if (actionItem_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ActionItem); + } + helpLinks_.WriteTo(output, _repeated_helpLinks_codec); + if (warningTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(WarningTime); + } + 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 (Code != global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Types.WarningCode.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (warningMessage_ != null) { + output.WriteRawTag(18); + output.WriteMessage(WarningMessage); + } + if (actionItem_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ActionItem); + } + helpLinks_.WriteTo(ref output, _repeated_helpLinks_codec); + if (warningTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(WarningTime); + } + 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 (Code != global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Types.WarningCode.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); + } + if (warningMessage_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WarningMessage); + } + if (actionItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActionItem); + } + size += helpLinks_.CalculateSize(_repeated_helpLinks_codec); + if (warningTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WarningTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MigrationWarning other) { + if (other == null) { + return; + } + if (other.Code != global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Types.WarningCode.Unspecified) { + Code = other.Code; + } + if (other.warningMessage_ != null) { + if (warningMessage_ == null) { + WarningMessage = new global::Google.Rpc.LocalizedMessage(); + } + WarningMessage.MergeFrom(other.WarningMessage); + } + if (other.actionItem_ != null) { + if (actionItem_ == null) { + ActionItem = new global::Google.Rpc.LocalizedMessage(); + } + ActionItem.MergeFrom(other.ActionItem); + } + helpLinks_.Add(other.helpLinks_); + if (other.warningTime_ != null) { + if (warningTime_ == null) { + WarningTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + WarningTime.MergeFrom(other.WarningTime); + } + _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: { + Code = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Types.WarningCode) input.ReadEnum(); + break; + } + case 18: { + if (warningMessage_ == null) { + WarningMessage = new global::Google.Rpc.LocalizedMessage(); + } + input.ReadMessage(WarningMessage); + break; + } + case 26: { + if (actionItem_ == null) { + ActionItem = new global::Google.Rpc.LocalizedMessage(); + } + input.ReadMessage(ActionItem); + break; + } + case 34: { + helpLinks_.AddEntriesFrom(input, _repeated_helpLinks_codec); + break; + } + case 42: { + if (warningTime_ == null) { + WarningTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(WarningTime); + 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: { + Code = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigrationWarning.Types.WarningCode) input.ReadEnum(); + break; + } + case 18: { + if (warningMessage_ == null) { + WarningMessage = new global::Google.Rpc.LocalizedMessage(); + } + input.ReadMessage(WarningMessage); + break; + } + case 26: { + if (actionItem_ == null) { + ActionItem = new global::Google.Rpc.LocalizedMessage(); + } + input.ReadMessage(ActionItem); + break; + } + case 34: { + helpLinks_.AddEntriesFrom(ref input, _repeated_helpLinks_codec); + break; + } + case 42: { + if (warningTime_ == null) { + WarningTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(WarningTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MigrationWarning message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Represents possible warning codes. + /// + public enum WarningCode { + /// + /// Default value. This value is not used. + /// + [pbr::OriginalName("WARNING_CODE_UNSPECIFIED")] Unspecified = 0, + /// + /// A warning originated from OS Adaptation. + /// + [pbr::OriginalName("ADAPTATION_WARNING")] AdaptationWarning = 1, + } + + } + #endregion + + } + + /// + /// Represent the source AWS VM details. + /// + public sealed partial class AwsSourceVmDetails : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AwsSourceVmDetails()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[37]; } + } + + [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 AwsSourceVmDetails() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AwsSourceVmDetails(AwsSourceVmDetails other) : this() { + firmware_ = other.firmware_; + committedStorageBytes_ = other.committedStorageBytes_; + disks_ = other.disks_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AwsSourceVmDetails Clone() { + return new AwsSourceVmDetails(this); + } + + /// Field number for the "firmware" field. + public const int FirmwareFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.Firmware firmware_ = global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.Firmware.Unspecified; + /// + /// The firmware type of the source VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.Firmware Firmware { + get { return firmware_; } + set { + firmware_ = value; + } + } + + /// Field number for the "committed_storage_bytes" field. + public const int CommittedStorageBytesFieldNumber = 2; + private long committedStorageBytes_; + /// + /// The total size of the disks being migrated in bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CommittedStorageBytes { + get { return committedStorageBytes_; } + set { + committedStorageBytes_ = value; + } + } + + /// Field number for the "disks" field. + public const int DisksFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_disks_codec + = pb::FieldCodec.ForMessage(26, global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.AwsDiskDetails.Parser); + private readonly pbc::RepeatedField disks_ = new pbc::RepeatedField(); + /// + /// The disks attached to the source VM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Disks { + get { return disks_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AwsSourceVmDetails); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AwsSourceVmDetails other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Firmware != other.Firmware) return false; + if (CommittedStorageBytes != other.CommittedStorageBytes) return false; + if(!disks_.Equals(other.disks_)) 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 (Firmware != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.Firmware.Unspecified) hash ^= Firmware.GetHashCode(); + if (CommittedStorageBytes != 0L) hash ^= CommittedStorageBytes.GetHashCode(); + hash ^= disks_.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 (Firmware != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.Firmware.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Firmware); + } + if (CommittedStorageBytes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(CommittedStorageBytes); + } + disks_.WriteTo(output, _repeated_disks_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 (Firmware != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.Firmware.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Firmware); + } + if (CommittedStorageBytes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(CommittedStorageBytes); + } + disks_.WriteTo(ref output, _repeated_disks_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 (Firmware != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.Firmware.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Firmware); + } + if (CommittedStorageBytes != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CommittedStorageBytes); + } + size += disks_.CalculateSize(_repeated_disks_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AwsSourceVmDetails other) { + if (other == null) { + return; + } + if (other.Firmware != global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.Firmware.Unspecified) { + Firmware = other.Firmware; + } + if (other.CommittedStorageBytes != 0L) { + CommittedStorageBytes = other.CommittedStorageBytes; + } + disks_.Add(other.disks_); + _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: { + Firmware = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.Firmware) input.ReadEnum(); + break; + } + case 16: { + CommittedStorageBytes = input.ReadInt64(); + break; + } + case 26: { + disks_.AddEntriesFrom(input, _repeated_disks_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: { + Firmware = (global::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.Types.Firmware) input.ReadEnum(); + break; + } + case 16: { + CommittedStorageBytes = input.ReadInt64(); + break; + } + case 26: { + disks_.AddEntriesFrom(ref input, _repeated_disks_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AwsSourceVmDetails message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible values for AWS VM firmware. + /// + public enum Firmware { + /// + /// The firmware is unknown. + /// + [pbr::OriginalName("FIRMWARE_UNSPECIFIED")] Unspecified = 0, + /// + /// The firmware is EFI. + /// + [pbr::OriginalName("EFI")] Efi = 1, + /// + /// The firmware is BIOS. + /// + [pbr::OriginalName("BIOS")] Bios = 2, + } + + /// + /// The details of an AWS instance disk. + /// + public sealed partial class AwsDiskDetails : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AwsDiskDetails()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.AwsSourceVmDetails.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 AwsDiskDetails() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AwsDiskDetails(AwsDiskDetails other) : this() { + diskNumber_ = other.diskNumber_; + volumeId_ = other.volumeId_; + sizeGb_ = other.sizeGb_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AwsDiskDetails Clone() { + return new AwsDiskDetails(this); + } + + /// Field number for the "disk_number" field. + public const int DiskNumberFieldNumber = 1; + private int diskNumber_; + /// + /// The ordinal number of the disk. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DiskNumber { + get { return diskNumber_; } + set { + diskNumber_ = value; + } + } + + /// Field number for the "volume_id" field. + public const int VolumeIdFieldNumber = 2; + private string volumeId_ = ""; + /// + /// AWS volume ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VolumeId { + get { return volumeId_; } + set { + volumeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "size_gb" field. + public const int SizeGbFieldNumber = 3; + private long sizeGb_; + /// + /// Size in GB. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SizeGb { + get { return sizeGb_; } + set { + sizeGb_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AwsDiskDetails); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AwsDiskDetails other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DiskNumber != other.DiskNumber) return false; + if (VolumeId != other.VolumeId) return false; + if (SizeGb != other.SizeGb) 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 (DiskNumber != 0) hash ^= DiskNumber.GetHashCode(); + if (VolumeId.Length != 0) hash ^= VolumeId.GetHashCode(); + if (SizeGb != 0L) hash ^= SizeGb.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 (DiskNumber != 0) { + output.WriteRawTag(8); + output.WriteInt32(DiskNumber); + } + if (VolumeId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VolumeId); + } + if (SizeGb != 0L) { + output.WriteRawTag(24); + output.WriteInt64(SizeGb); + } + 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 (DiskNumber != 0) { + output.WriteRawTag(8); + output.WriteInt32(DiskNumber); + } + if (VolumeId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VolumeId); + } + if (SizeGb != 0L) { + output.WriteRawTag(24); + output.WriteInt64(SizeGb); + } + 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 (DiskNumber != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DiskNumber); + } + if (VolumeId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VolumeId); + } + if (SizeGb != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SizeGb); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AwsDiskDetails other) { + if (other == null) { + return; + } + if (other.DiskNumber != 0) { + DiskNumber = other.DiskNumber; + } + if (other.VolumeId.Length != 0) { + VolumeId = other.VolumeId; + } + if (other.SizeGb != 0L) { + SizeGb = other.SizeGb; + } + _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: { + DiskNumber = input.ReadInt32(); + break; + } + case 18: { + VolumeId = input.ReadString(); + break; + } + case 24: { + SizeGb = 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: { + DiskNumber = input.ReadInt32(); + break; + } + case 18: { + VolumeId = input.ReadString(); + break; + } + case 24: { + SizeGb = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// The data within all UtilizationReport events. + /// + public sealed partial class UtilizationReportEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UtilizationReportEventData()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[38]; } + } + + [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 UtilizationReportEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UtilizationReportEventData(UtilizationReportEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UtilizationReportEventData Clone() { + return new UtilizationReportEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport payload_; + /// + /// Optional. The UtilizationReport event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UtilizationReportEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UtilizationReportEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UtilizationReportEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.UtilizationReport(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Group events. + /// + public sealed partial class GroupEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GroupEventData()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[39]; } + } + + [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 GroupEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupEventData(GroupEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupEventData Clone() { + return new GroupEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.Group payload_; + /// + /// Optional. The Group event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.Group Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GroupEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GroupEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GroupEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.Group(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.Group(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.Group(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all CloneJob events. + /// + public sealed partial class CloneJobEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloneJobEventData()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[40]; } + } + + [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 CloneJobEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloneJobEventData(CloneJobEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloneJobEventData Clone() { + return new CloneJobEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob payload_; + /// + /// The CloneJob event payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CloneJobEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloneJobEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloneJobEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.CloneJob(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all DatacenterConnector events. + /// + public sealed partial class DatacenterConnectorEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DatacenterConnectorEventData()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[41]; } + } + + [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 DatacenterConnectorEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatacenterConnectorEventData(DatacenterConnectorEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatacenterConnectorEventData Clone() { + return new DatacenterConnectorEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector payload_; + /// + /// Optional. The DatacenterConnector event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DatacenterConnectorEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DatacenterConnectorEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DatacenterConnectorEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.DatacenterConnector(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all TargetProject events. + /// + public sealed partial class TargetProjectEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TargetProjectEventData()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[42]; } + } + + [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 TargetProjectEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TargetProjectEventData(TargetProjectEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TargetProjectEventData Clone() { + return new TargetProjectEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.TargetProject payload_; + /// + /// Optional. The TargetProject event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.TargetProject Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TargetProjectEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TargetProjectEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TargetProjectEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.TargetProject(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.TargetProject(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.TargetProject(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all CutoverJob events. + /// + public sealed partial class CutoverJobEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CutoverJobEventData()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[43]; } + } + + [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 CutoverJobEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CutoverJobEventData(CutoverJobEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CutoverJobEventData Clone() { + return new CutoverJobEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob payload_; + /// + /// The CutoverJob event payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CutoverJobEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CutoverJobEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CutoverJobEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.CutoverJob(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all Source events. + /// + public sealed partial class SourceEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SourceEventData()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[44]; } + } + + [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 SourceEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourceEventData(SourceEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourceEventData Clone() { + return new SourceEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.Source payload_; + /// + /// Optional. The Source event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.Source Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SourceEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SourceEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SourceEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.Source(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.Source(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.Source(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// The data within all MigratingVm events. + /// + public sealed partial class MigratingVmEventData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MigratingVmEventData()); + 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::Google.Events.Protobuf.Cloud.VMMigration.V1.DataReflection.Descriptor.MessageTypes[45]; } + } + + [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 MigratingVmEventData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigratingVmEventData(MigratingVmEventData other) : this() { + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigratingVmEventData Clone() { + return new MigratingVmEventData(this); + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm payload_; + /// + /// Optional. The MigratingVm event payload. Unset for deletion events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MigratingVmEventData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MigratingVmEventData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Payload, other.Payload)) 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 (payload_ != null) hash ^= Payload.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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + 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 (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MigratingVmEventData other) { + if (other == null) { + return; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm(); + } + Payload.MergeFrom(other.Payload); + } + _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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm(); + } + input.ReadMessage(Payload); + 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 (payload_ == null) { + Payload = new global::Google.Events.Protobuf.Cloud.VMMigration.V1.MigratingVm(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Google.Events.Protobuf/Cloud/VMMigration/V1/DatacenterConnectorEventData.g.cs b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/DatacenterConnectorEventData.g.cs new file mode 100644 index 0000000..95ba155 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/DatacenterConnectorEventData.g.cs @@ -0,0 +1,27 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.VMMigration.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class DatacenterConnectorEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.vmmigration.datacenterConnector.v1.created"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.vmmigration.datacenterConnector.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/VMMigration/V1/ExtensionAttributes.g.cs b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/ExtensionAttributes.g.cs new file mode 100644 index 0000000..f63d3bb --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/ExtensionAttributes.g.cs @@ -0,0 +1,132 @@ +// Copyright 2023, 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 +// +// https://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. + +using CloudNative.CloudEvents; + +namespace Google.Events.Protobuf.Cloud.VMMigration.V1 +{ + /// Extension attributes for Google.Events.Protobuf.Cloud.VMMigration.V1 events. + public static class ExtensionAttributes + { + /// + /// The resource ID of the CloneJob triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.vmmigration.cloneJob.v1.created + /// + /// + public static CloudEventAttribute CloneJob { get; } = CloudEventAttribute.CreateExtension("clonejob", CloudEventAttributeType.String); + + /// + /// The resource ID of the CutoverJob triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.vmmigration.cutoverJob.v1.created + /// + /// + public static CloudEventAttribute CutoverJob { get; } = CloudEventAttribute.CreateExtension("cutoverjob", CloudEventAttributeType.String); + + /// + /// The resource ID of the DatacenterConnector triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.vmmigration.datacenterConnector.v1.created + /// google.cloud.vmmigration.datacenterConnector.v1.deleted + /// + /// + public static CloudEventAttribute DatacenterConnector { get; } = CloudEventAttribute.CreateExtension("datacenterconnector", CloudEventAttributeType.String); + + /// + /// The resource ID of the Group triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.vmmigration.group.v1.created + /// google.cloud.vmmigration.group.v1.updated + /// google.cloud.vmmigration.group.v1.deleted + /// + /// + public static CloudEventAttribute Group { get; } = CloudEventAttribute.CreateExtension("group", CloudEventAttributeType.String); + + /// + /// The resource ID of the MigratingVm triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.vmmigration.migratingVm.v1.created + /// google.cloud.vmmigration.migratingVm.v1.updated + /// google.cloud.vmmigration.migratingVm.v1.deleted + /// google.cloud.vmmigration.cloneJob.v1.created + /// google.cloud.vmmigration.cutoverJob.v1.created + /// + /// + public static CloudEventAttribute MigratingVm { get; } = CloudEventAttribute.CreateExtension("migratingvm", CloudEventAttributeType.String); + + /// + /// The resource ID of the Source triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.vmmigration.source.v1.created + /// google.cloud.vmmigration.source.v1.updated + /// google.cloud.vmmigration.source.v1.deleted + /// google.cloud.vmmigration.utilizationReport.v1.created + /// google.cloud.vmmigration.utilizationReport.v1.deleted + /// google.cloud.vmmigration.datacenterConnector.v1.created + /// google.cloud.vmmigration.datacenterConnector.v1.deleted + /// google.cloud.vmmigration.migratingVm.v1.created + /// google.cloud.vmmigration.migratingVm.v1.updated + /// google.cloud.vmmigration.migratingVm.v1.deleted + /// google.cloud.vmmigration.cloneJob.v1.created + /// google.cloud.vmmigration.cutoverJob.v1.created + /// + /// + public static CloudEventAttribute SourceId { get; } = CloudEventAttribute.CreateExtension("sourceid", CloudEventAttributeType.String); + + /// + /// The resource ID of the TargetProject triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.vmmigration.targetProject.v1.created + /// google.cloud.vmmigration.targetProject.v1.updated + /// google.cloud.vmmigration.targetProject.v1.deleted + /// + /// + public static CloudEventAttribute TargetProject { get; } = CloudEventAttribute.CreateExtension("targetproject", CloudEventAttributeType.String); + + /// + /// The resource ID of the UtilizationReport triggering the event. + /// + /// This is used by the following events: + /// + /// + /// google.cloud.vmmigration.utilizationReport.v1.created + /// google.cloud.vmmigration.utilizationReport.v1.deleted + /// + /// + public static CloudEventAttribute UtilizationReport { get; } = CloudEventAttribute.CreateExtension("utilizationreport", CloudEventAttributeType.String); + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/VMMigration/V1/GroupEventData.g.cs b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/GroupEventData.g.cs new file mode 100644 index 0000000..1183f68 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/GroupEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.VMMigration.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class GroupEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.vmmigration.group.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.vmmigration.group.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.vmmigration.group.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/VMMigration/V1/MigratingVmEventData.g.cs b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/MigratingVmEventData.g.cs new file mode 100644 index 0000000..5ab27ab --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/MigratingVmEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.VMMigration.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class MigratingVmEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.vmmigration.migratingVm.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.vmmigration.migratingVm.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.vmmigration.migratingVm.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/VMMigration/V1/SourceEventData.g.cs b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/SourceEventData.g.cs new file mode 100644 index 0000000..07105ff --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/SourceEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.VMMigration.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class SourceEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.vmmigration.source.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.vmmigration.source.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.vmmigration.source.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/VMMigration/V1/TargetProjectEventData.g.cs b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/TargetProjectEventData.g.cs new file mode 100644 index 0000000..7af3c02 --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/TargetProjectEventData.g.cs @@ -0,0 +1,30 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.VMMigration.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class TargetProjectEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.vmmigration.targetProject.v1.created"; + + /// CloudEvent type for the 'updated' event. + public const string UpdatedCloudEventType = "google.cloud.vmmigration.targetProject.v1.updated"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.vmmigration.targetProject.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/VMMigration/V1/UtilizationReportEventData.g.cs b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/UtilizationReportEventData.g.cs new file mode 100644 index 0000000..edcc75a --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/VMMigration/V1/UtilizationReportEventData.g.cs @@ -0,0 +1,27 @@ +// Copyright 2023, 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 +// +// https://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. + +namespace Google.Events.Protobuf.Cloud.VMMigration.V1 +{ + [global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter))] + public partial class UtilizationReportEventData + { + /// CloudEvent type for the 'created' event. + public const string CreatedCloudEventType = "google.cloud.vmmigration.utilizationReport.v1.created"; + + /// CloudEvent type for the 'deleted' event. + public const string DeletedCloudEventType = "google.cloud.vmmigration.utilizationReport.v1.deleted"; + + } +} diff --git a/src/Google.Events.Protobuf/Cloud/Video/Transcoder/V1/Data.g.cs b/src/Google.Events.Protobuf/Cloud/Video/Transcoder/V1/Data.g.cs new file mode 100644 index 0000000..d6ec58a --- /dev/null +++ b/src/Google.Events.Protobuf/Cloud/Video/Transcoder/V1/Data.g.cs @@ -0,0 +1,15096 @@ +// Copyright 2023, 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 +// +// https://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. + +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/video/transcoder/v1/data.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 Google.Events.Protobuf.Cloud.Video.Transcoder.V1 { + + /// Holder for reflection information generated from google/events/cloud/video/transcoder/v1/data.proto + public static partial class DataReflection { + + #region Descriptor + /// File descriptor for google/events/cloud/video/transcoder/v1/data.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjJnb29nbGUvZXZlbnRzL2Nsb3VkL3ZpZGVvL3RyYW5zY29kZXIvdjEvZGF0", + "YS5wcm90bxInZ29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFuc2NvZGVy", + "LnYxGh5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8aH2dvb2dsZS9w", + "cm90b2J1Zi90aW1lc3RhbXAucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnBy", + "b3RvIqYGCgNKb2ISDAoEbmFtZRgBIAEoCRJECgZjb25maWcYBSABKAsyMi5n", + "b29nbGUuZXZlbnRzLmNsb3VkLnZpZGVvLnRyYW5zY29kZXIudjEuSm9iQ29u", + "ZmlnSAASSwoFc3RhdGUYCCABKA4yPC5nb29nbGUuZXZlbnRzLmNsb3VkLnZp", + "ZGVvLnRyYW5zY29kZXIudjEuSm9iLlByb2Nlc3NpbmdTdGF0ZRIvCgtjcmVh", + "dGVfdGltZRgMIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoK", + "c3RhcnRfdGltZRgNIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAS", + "LAoIZW5kX3RpbWUYDiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "EiEKGXR0bF9hZnRlcl9jb21wbGV0aW9uX2RheXMYDyABKAUSSAoGbGFiZWxz", + "GBAgAygLMjguZ29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFuc2NvZGVy", + "LnYxLkpvYi5MYWJlbHNFbnRyeRIhCgVlcnJvchgRIAEoCzISLmdvb2dsZS5y", + "cGMuU3RhdHVzEkkKBG1vZGUYFCABKA4yOy5nb29nbGUuZXZlbnRzLmNsb3Vk", + "LnZpZGVvLnRyYW5zY29kZXIudjEuSm9iLlByb2Nlc3NpbmdNb2RlGi0KC0xh", + "YmVsc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiaAoP", + "UHJvY2Vzc2luZ1N0YXRlEiAKHFBST0NFU1NJTkdfU1RBVEVfVU5TUEVDSUZJ", + "RUQQABILCgdQRU5ESU5HEAESCwoHUlVOTklORxACEg0KCVNVQ0NFRURFRBAD", + "EgoKBkZBSUxFRBAEIm0KDlByb2Nlc3NpbmdNb2RlEh8KG1BST0NFU1NJTkdf", + "TU9ERV9VTlNQRUNJRklFRBAAEh8KG1BST0NFU1NJTkdfTU9ERV9JTlRFUkFD", + "VElWRRABEhkKFVBST0NFU1NJTkdfTU9ERV9CQVRDSBACQgwKCmpvYl9jb25m", + "aWci4AEKC0pvYlRlbXBsYXRlEgwKBG5hbWUYASABKAkSQgoGY29uZmlnGAIg", + "ASgLMjIuZ29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFuc2NvZGVyLnYx", + "LkpvYkNvbmZpZxJQCgZsYWJlbHMYAyADKAsyQC5nb29nbGUuZXZlbnRzLmNs", + "b3VkLnZpZGVvLnRyYW5zY29kZXIudjEuSm9iVGVtcGxhdGUuTGFiZWxzRW50", + "cnkaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJ", + "OgI4ASLmBQoJSm9iQ29uZmlnEj4KBmlucHV0cxgBIAMoCzIuLmdvb2dsZS5l", + "dmVudHMuY2xvdWQudmlkZW8udHJhbnNjb2Rlci52MS5JbnB1dBJECgllZGl0", + "X2xpc3QYAiADKAsyMS5nb29nbGUuZXZlbnRzLmNsb3VkLnZpZGVvLnRyYW5z", + "Y29kZXIudjEuRWRpdEF0b20SVQoSZWxlbWVudGFyeV9zdHJlYW1zGAMgAygL", + "MjkuZ29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFuc2NvZGVyLnYxLkVs", + "ZW1lbnRhcnlTdHJlYW0SRwoLbXV4X3N0cmVhbXMYBCADKAsyMi5nb29nbGUu", + "ZXZlbnRzLmNsb3VkLnZpZGVvLnRyYW5zY29kZXIudjEuTXV4U3RyZWFtEkQK", + "CW1hbmlmZXN0cxgFIAMoCzIxLmdvb2dsZS5ldmVudHMuY2xvdWQudmlkZW8u", + "dHJhbnNjb2Rlci52MS5NYW5pZmVzdBI/CgZvdXRwdXQYBiABKAsyLy5nb29n", + "bGUuZXZlbnRzLmNsb3VkLnZpZGVvLnRyYW5zY29kZXIudjEuT3V0cHV0EkMK", + "CWFkX2JyZWFrcxgHIAMoCzIwLmdvb2dsZS5ldmVudHMuY2xvdWQudmlkZW8u", + "dHJhbnNjb2Rlci52MS5BZEJyZWFrElYKEnB1YnN1Yl9kZXN0aW5hdGlvbhgI", + "IAEoCzI6Lmdvb2dsZS5ldmVudHMuY2xvdWQudmlkZW8udHJhbnNjb2Rlci52", + "MS5QdWJzdWJEZXN0aW5hdGlvbhJLCg1zcHJpdGVfc2hlZXRzGAkgAygLMjQu", + "Z29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFuc2NvZGVyLnYxLlNwcml0", + "ZVNoZWV0EkIKCG92ZXJsYXlzGAogAygLMjAuZ29vZ2xlLmV2ZW50cy5jbG91", + "ZC52aWRlby50cmFuc2NvZGVyLnYxLk92ZXJsYXkifQoFSW5wdXQSCwoDa2V5", + "GAEgASgJEgsKA3VyaRgCIAEoCRJaChRwcmVwcm9jZXNzaW5nX2NvbmZpZxgD", + "IAEoCzI8Lmdvb2dsZS5ldmVudHMuY2xvdWQudmlkZW8udHJhbnNjb2Rlci52", + "MS5QcmVwcm9jZXNzaW5nQ29uZmlnIhUKBk91dHB1dBILCgN1cmkYASABKAki", + "kQEKCEVkaXRBdG9tEgsKA2tleRgBIAEoCRIOCgZpbnB1dHMYAiADKAkSMgoP", + "ZW5kX3RpbWVfb2Zmc2V0GAMgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0", + "aW9uEjQKEXN0YXJ0X3RpbWVfb2Zmc2V0GAQgASgLMhkuZ29vZ2xlLnByb3Rv", + "YnVmLkR1cmF0aW9uIj8KB0FkQnJlYWsSNAoRc3RhcnRfdGltZV9vZmZzZXQY", + "ASABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24inAIKEEVsZW1lbnRh", + "cnlTdHJlYW0SCwoDa2V5GAQgASgJEkwKDHZpZGVvX3N0cmVhbRgBIAEoCzI0", + "Lmdvb2dsZS5ldmVudHMuY2xvdWQudmlkZW8udHJhbnNjb2Rlci52MS5WaWRl", + "b1N0cmVhbUgAEkwKDGF1ZGlvX3N0cmVhbRgCIAEoCzI0Lmdvb2dsZS5ldmVu", + "dHMuY2xvdWQudmlkZW8udHJhbnNjb2Rlci52MS5BdWRpb1N0cmVhbUgAEkoK", + "C3RleHRfc3RyZWFtGAMgASgLMjMuZ29vZ2xlLmV2ZW50cy5jbG91ZC52aWRl", + "by50cmFuc2NvZGVyLnYxLlRleHRTdHJlYW1IAEITChFlbGVtZW50YXJ5X3N0", + "cmVhbSKuAQoJTXV4U3RyZWFtEgsKA2tleRgBIAEoCRIRCglmaWxlX25hbWUY", + "AiABKAkSEQoJY29udGFpbmVyGAMgASgJEhoKEmVsZW1lbnRhcnlfc3RyZWFt", + "cxgEIAMoCRJSChBzZWdtZW50X3NldHRpbmdzGAUgASgLMjguZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC52aWRlby50cmFuc2NvZGVyLnYxLlNlZ21lbnRTZXR0aW5n", + "cyLCAQoITWFuaWZlc3QSEQoJZmlsZV9uYW1lGAEgASgJEkwKBHR5cGUYAiAB", + "KA4yPi5nb29nbGUuZXZlbnRzLmNsb3VkLnZpZGVvLnRyYW5zY29kZXIudjEu", + "TWFuaWZlc3QuTWFuaWZlc3RUeXBlEhMKC211eF9zdHJlYW1zGAMgAygJIkAK", + "DE1hbmlmZXN0VHlwZRIdChlNQU5JRkVTVF9UWVBFX1VOU1BFQ0lGSUVEEAAS", + "BwoDSExTEAESCAoEREFTSBACIiIKEVB1YnN1YkRlc3RpbmF0aW9uEg0KBXRv", + "cGljGAEgASgJIu4CCgtTcHJpdGVTaGVldBIOCgZmb3JtYXQYASABKAkSEwoL", + "ZmlsZV9wcmVmaXgYAiABKAkSGwoTc3ByaXRlX3dpZHRoX3BpeGVscxgDIAEo", + "BRIcChRzcHJpdGVfaGVpZ2h0X3BpeGVscxgEIAEoBRIUCgxjb2x1bW5fY291", + "bnQYBSABKAUSEQoJcm93X2NvdW50GAYgASgFEjQKEXN0YXJ0X3RpbWVfb2Zm", + "c2V0GAcgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEjIKD2VuZF90", + "aW1lX29mZnNldBgIIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIV", + "Cgt0b3RhbF9jb3VudBgJIAEoBUgAEi0KCGludGVydmFsGAogASgLMhkuZ29v", + "Z2xlLnByb3RvYnVmLkR1cmF0aW9uSAASDwoHcXVhbGl0eRgLIAEoBUIVChNl", + "eHRyYWN0aW9uX3N0cmF0ZWd5IsAJCgdPdmVybGF5EkUKBWltYWdlGAEgASgL", + "MjYuZ29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFuc2NvZGVyLnYxLk92", + "ZXJsYXkuSW1hZ2USTgoKYW5pbWF0aW9ucxgCIAMoCzI6Lmdvb2dsZS5ldmVu", + "dHMuY2xvdWQudmlkZW8udHJhbnNjb2Rlci52MS5PdmVybGF5LkFuaW1hdGlv", + "bhosChROb3JtYWxpemVkQ29vcmRpbmF0ZRIJCgF4GAEgASgBEgkKAXkYAiAB", + "KAEafgoFSW1hZ2USCwoDdXJpGAEgASgJElkKCnJlc29sdXRpb24YAiABKAsy", + "RS5nb29nbGUuZXZlbnRzLmNsb3VkLnZpZGVvLnRyYW5zY29kZXIudjEuT3Zl", + "cmxheS5Ob3JtYWxpemVkQ29vcmRpbmF0ZRINCgVhbHBoYRgDIAEoARqaAQoP", + "QW5pbWF0aW9uU3RhdGljElEKAnh5GAEgASgLMkUuZ29vZ2xlLmV2ZW50cy5j", + "bG91ZC52aWRlby50cmFuc2NvZGVyLnYxLk92ZXJsYXkuTm9ybWFsaXplZENv", + "b3JkaW5hdGUSNAoRc3RhcnRfdGltZV9vZmZzZXQYAiABKAsyGS5nb29nbGUu", + "cHJvdG9idWYuRHVyYXRpb24amgIKDUFuaW1hdGlvbkZhZGUSTAoJZmFkZV90", + "eXBlGAEgASgOMjkuZ29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFuc2Nv", + "ZGVyLnYxLk92ZXJsYXkuRmFkZVR5cGUSUQoCeHkYAiABKAsyRS5nb29nbGUu", + "ZXZlbnRzLmNsb3VkLnZpZGVvLnRyYW5zY29kZXIudjEuT3ZlcmxheS5Ob3Jt", + "YWxpemVkQ29vcmRpbmF0ZRI0ChFzdGFydF90aW1lX29mZnNldBgDIAEoCzIZ", + "Lmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIyCg9lbmRfdGltZV9vZmZzZXQY", + "BCABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24aRAoMQW5pbWF0aW9u", + "RW5kEjQKEXN0YXJ0X3RpbWVfb2Zmc2V0GAEgASgLMhkuZ29vZ2xlLnByb3Rv", + "YnVmLkR1cmF0aW9uGq0CCglBbmltYXRpb24SXAoQYW5pbWF0aW9uX3N0YXRp", + "YxgBIAEoCzJALmdvb2dsZS5ldmVudHMuY2xvdWQudmlkZW8udHJhbnNjb2Rl", + "ci52MS5PdmVybGF5LkFuaW1hdGlvblN0YXRpY0gAElgKDmFuaW1hdGlvbl9m", + "YWRlGAIgASgLMj4uZ29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFuc2Nv", + "ZGVyLnYxLk92ZXJsYXkuQW5pbWF0aW9uRmFkZUgAElYKDWFuaW1hdGlvbl9l", + "bmQYAyABKAsyPS5nb29nbGUuZXZlbnRzLmNsb3VkLnZpZGVvLnRyYW5zY29k", + "ZXIudjEuT3ZlcmxheS5BbmltYXRpb25FbmRIAEIQCg5hbmltYXRpb25fdHlw", + "ZSJACghGYWRlVHlwZRIZChVGQURFX1RZUEVfVU5TUEVDSUZJRUQQABILCgdG", + "QURFX0lOEAESDAoIRkFERV9PVVQQAiKyCwoTUHJlcHJvY2Vzc2luZ0NvbmZp", + "ZxJRCgVjb2xvchgBIAEoCzJCLmdvb2dsZS5ldmVudHMuY2xvdWQudmlkZW8u", + "dHJhbnNjb2Rlci52MS5QcmVwcm9jZXNzaW5nQ29uZmlnLkNvbG9yElUKB2Rl", + "bm9pc2UYAiABKAsyRC5nb29nbGUuZXZlbnRzLmNsb3VkLnZpZGVvLnRyYW5z", + "Y29kZXIudjEuUHJlcHJvY2Vzc2luZ0NvbmZpZy5EZW5vaXNlElUKB2RlYmxv", + "Y2sYAyABKAsyRC5nb29nbGUuZXZlbnRzLmNsb3VkLnZpZGVvLnRyYW5zY29k", + "ZXIudjEuUHJlcHJvY2Vzc2luZ0NvbmZpZy5EZWJsb2NrElEKBWF1ZGlvGAQg", + "ASgLMkIuZ29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFuc2NvZGVyLnYx", + "LlByZXByb2Nlc3NpbmdDb25maWcuQXVkaW8STwoEY3JvcBgFIAEoCzJBLmdv", + "b2dsZS5ldmVudHMuY2xvdWQudmlkZW8udHJhbnNjb2Rlci52MS5QcmVwcm9j", + "ZXNzaW5nQ29uZmlnLkNyb3ASTQoDcGFkGAYgASgLMkAuZ29vZ2xlLmV2ZW50", + "cy5jbG91ZC52aWRlby50cmFuc2NvZGVyLnYxLlByZXByb2Nlc3NpbmdDb25m", + "aWcuUGFkEl0KC2RlaW50ZXJsYWNlGAcgASgLMkguZ29vZ2xlLmV2ZW50cy5j", + "bG91ZC52aWRlby50cmFuc2NvZGVyLnYxLlByZXByb2Nlc3NpbmdDb25maWcu", + "RGVpbnRlcmxhY2UaQQoFQ29sb3ISEgoKc2F0dXJhdGlvbhgBIAEoARIQCghj", + "b250cmFzdBgCIAEoARISCgpicmlnaHRuZXNzGAMgASgBGikKB0Rlbm9pc2US", + "EAoIc3RyZW5ndGgYASABKAESDAoEdHVuZRgCIAEoCRosCgdEZWJsb2NrEhAK", + "CHN0cmVuZ3RoGAEgASgBEg8KB2VuYWJsZWQYAiABKAgaPAoFQXVkaW8SDAoE", + "bHVmcxgBIAEoARISCgpoaWdoX2Jvb3N0GAIgASgIEhEKCWxvd19ib29zdBgD", + "IAEoCBpcCgRDcm9wEhIKCnRvcF9waXhlbHMYASABKAUSFQoNYm90dG9tX3Bp", + "eGVscxgCIAEoBRITCgtsZWZ0X3BpeGVscxgDIAEoBRIUCgxyaWdodF9waXhl", + "bHMYBCABKAUaWwoDUGFkEhIKCnRvcF9waXhlbHMYASABKAUSFQoNYm90dG9t", + "X3BpeGVscxgCIAEoBRITCgtsZWZ0X3BpeGVscxgDIAEoBRIUCgxyaWdodF9w", + "aXhlbHMYBCABKAUasgMKC0RlaW50ZXJsYWNlEmUKBXlhZGlmGAEgASgLMlQu", + "Z29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFuc2NvZGVyLnYxLlByZXBy", + "b2Nlc3NpbmdDb25maWcuRGVpbnRlcmxhY2UuWWFkaWZDb25maWdIABJlCgVi", + "d2RpZhgCIAEoCzJULmdvb2dsZS5ldmVudHMuY2xvdWQudmlkZW8udHJhbnNj", + "b2Rlci52MS5QcmVwcm9jZXNzaW5nQ29uZmlnLkRlaW50ZXJsYWNlLkJ3ZGlm", + "Q29uZmlnSAAacAoLWWFkaWZDb25maWcSDAoEbW9kZRgBIAEoCRIjChtkaXNh", + "YmxlX3NwYXRpYWxfaW50ZXJsYWNpbmcYAiABKAgSDgoGcGFyaXR5GAMgASgJ", + "Eh4KFmRlaW50ZXJsYWNlX2FsbF9mcmFtZXMYBCABKAgaSwoLQndkaWZDb25m", + "aWcSDAoEbW9kZRgBIAEoCRIOCgZwYXJpdHkYAiABKAkSHgoWZGVpbnRlcmxh", + "Y2VfYWxsX2ZyYW1lcxgDIAEoCEIWChRkZWludGVybGFjaW5nX2ZpbHRlciKM", + "DAoLVmlkZW9TdHJlYW0SVgoEaDI2NBgBIAEoCzJGLmdvb2dsZS5ldmVudHMu", + "Y2xvdWQudmlkZW8udHJhbnNjb2Rlci52MS5WaWRlb1N0cmVhbS5IMjY0Q29k", + "ZWNTZXR0aW5nc0gAElYKBGgyNjUYAiABKAsyRi5nb29nbGUuZXZlbnRzLmNs", + "b3VkLnZpZGVvLnRyYW5zY29kZXIudjEuVmlkZW9TdHJlYW0uSDI2NUNvZGVj", + "U2V0dGluZ3NIABJUCgN2cDkYAyABKAsyRS5nb29nbGUuZXZlbnRzLmNsb3Vk", + "LnZpZGVvLnRyYW5zY29kZXIudjEuVmlkZW9TdHJlYW0uVnA5Q29kZWNTZXR0", + "aW5nc0gAGu8DChFIMjY0Q29kZWNTZXR0aW5ncxIUCgx3aWR0aF9waXhlbHMY", + "ASABKAUSFQoNaGVpZ2h0X3BpeGVscxgCIAEoBRISCgpmcmFtZV9yYXRlGAMg", + "ASgBEhMKC2JpdHJhdGVfYnBzGAQgASgFEhQKDHBpeGVsX2Zvcm1hdBgFIAEo", + "CRIZChFyYXRlX2NvbnRyb2xfbW9kZRgGIAEoCRIRCgljcmZfbGV2ZWwYByAB", + "KAUSFgoOYWxsb3dfb3Blbl9nb3AYCCABKAgSGQoPZ29wX2ZyYW1lX2NvdW50", + "GAkgASgFSAASMQoMZ29wX2R1cmF0aW9uGAogASgLMhkuZ29vZ2xlLnByb3Rv", + "YnVmLkR1cmF0aW9uSAASFwoPZW5hYmxlX3R3b19wYXNzGAsgASgIEhUKDXZi", + "dl9zaXplX2JpdHMYDCABKAUSGQoRdmJ2X2Z1bGxuZXNzX2JpdHMYDSABKAUS", + "FQoNZW50cm9weV9jb2RlchgOIAEoCRIRCgliX3B5cmFtaWQYDyABKAgSFQoN", + "Yl9mcmFtZV9jb3VudBgQIAEoBRITCgthcV9zdHJlbmd0aBgRIAEoARIPCgdw", + "cm9maWxlGBIgASgJEgwKBHR1bmUYEyABKAkSDgoGcHJlc2V0GBQgASgJQgoK", + "CGdvcF9tb2RlGtgDChFIMjY1Q29kZWNTZXR0aW5ncxIUCgx3aWR0aF9waXhl", + "bHMYASABKAUSFQoNaGVpZ2h0X3BpeGVscxgCIAEoBRISCgpmcmFtZV9yYXRl", + "GAMgASgBEhMKC2JpdHJhdGVfYnBzGAQgASgFEhQKDHBpeGVsX2Zvcm1hdBgF", + "IAEoCRIZChFyYXRlX2NvbnRyb2xfbW9kZRgGIAEoCRIRCgljcmZfbGV2ZWwY", + "ByABKAUSFgoOYWxsb3dfb3Blbl9nb3AYCCABKAgSGQoPZ29wX2ZyYW1lX2Nv", + "dW50GAkgASgFSAASMQoMZ29wX2R1cmF0aW9uGAogASgLMhkuZ29vZ2xlLnBy", + "b3RvYnVmLkR1cmF0aW9uSAASFwoPZW5hYmxlX3R3b19wYXNzGAsgASgIEhUK", + "DXZidl9zaXplX2JpdHMYDCABKAUSGQoRdmJ2X2Z1bGxuZXNzX2JpdHMYDSAB", + "KAUSEQoJYl9weXJhbWlkGA4gASgIEhUKDWJfZnJhbWVfY291bnQYDyABKAUS", + "EwoLYXFfc3RyZW5ndGgYECABKAESDwoHcHJvZmlsZRgRIAEoCRIMCgR0dW5l", + "GBIgASgJEg4KBnByZXNldBgTIAEoCUIKCghnb3BfbW9kZRqXAgoQVnA5Q29k", + "ZWNTZXR0aW5ncxIUCgx3aWR0aF9waXhlbHMYASABKAUSFQoNaGVpZ2h0X3Bp", + "eGVscxgCIAEoBRISCgpmcmFtZV9yYXRlGAMgASgBEhMKC2JpdHJhdGVfYnBz", + "GAQgASgFEhQKDHBpeGVsX2Zvcm1hdBgFIAEoCRIZChFyYXRlX2NvbnRyb2xf", + "bW9kZRgGIAEoCRIRCgljcmZfbGV2ZWwYByABKAUSGQoPZ29wX2ZyYW1lX2Nv", + "dW50GAggASgFSAASMQoMZ29wX2R1cmF0aW9uGAkgASgLMhkuZ29vZ2xlLnBy", + "b3RvYnVmLkR1cmF0aW9uSAASDwoHcHJvZmlsZRgKIAEoCUIKCghnb3BfbW9k", + "ZUIQCg5jb2RlY19zZXR0aW5ncyKHAwoLQXVkaW9TdHJlYW0SDQoFY29kZWMY", + "ASABKAkSEwoLYml0cmF0ZV9icHMYAiABKAUSFQoNY2hhbm5lbF9jb3VudBgD", + "IAEoBRIWCg5jaGFubmVsX2xheW91dBgEIAMoCRJSCgdtYXBwaW5nGAUgAygL", + "MkEuZ29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFuc2NvZGVyLnYxLkF1", + "ZGlvU3RyZWFtLkF1ZGlvTWFwcGluZxIZChFzYW1wbGVfcmF0ZV9oZXJ0ehgG", + "IAEoBRIVCg1sYW5ndWFnZV9jb2RlGAcgASgJEhQKDGRpc3BsYXlfbmFtZRgI", + "IAEoCRqIAQoMQXVkaW9NYXBwaW5nEhAKCGF0b21fa2V5GAEgASgJEhEKCWlu", + "cHV0X2tleRgCIAEoCRITCgtpbnB1dF90cmFjaxgDIAEoBRIVCg1pbnB1dF9j", + "aGFubmVsGAQgASgFEhYKDm91dHB1dF9jaGFubmVsGAUgASgFEg8KB2dhaW5f", + "ZGIYBiABKAEi4wEKClRleHRTdHJlYW0SDQoFY29kZWMYASABKAkSFQoNbGFu", + "Z3VhZ2VfY29kZRgCIAEoCRJQCgdtYXBwaW5nGAMgAygLMj8uZ29vZ2xlLmV2", + "ZW50cy5jbG91ZC52aWRlby50cmFuc2NvZGVyLnYxLlRleHRTdHJlYW0uVGV4", + "dE1hcHBpbmcSFAoMZGlzcGxheV9uYW1lGAQgASgJGkcKC1RleHRNYXBwaW5n", + "EhAKCGF0b21fa2V5GAEgASgJEhEKCWlucHV0X2tleRgCIAEoCRITCgtpbnB1", + "dF90cmFjaxgDIAEoBSJjCg9TZWdtZW50U2V0dGluZ3MSMwoQc2VnbWVudF9k", + "dXJhdGlvbhgBIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIbChNp", + "bmRpdmlkdWFsX3NlZ21lbnRzGAMgASgIIl4KDEpvYkV2ZW50RGF0YRJCCgdw", + "YXlsb2FkGAEgASgLMiwuZ29vZ2xlLmV2ZW50cy5jbG91ZC52aWRlby50cmFu", + "c2NvZGVyLnYxLkpvYkgAiAEBQgoKCF9wYXlsb2FkIm4KFEpvYlRlbXBsYXRl", + "RXZlbnREYXRhEkoKB3BheWxvYWQYASABKAsyNC5nb29nbGUuZXZlbnRzLmNs", + "b3VkLnZpZGVvLnRyYW5zY29kZXIudjEuSm9iVGVtcGxhdGVIAIgBAUIKCghf", + "cGF5bG9hZEKMAaoCMEdvb2dsZS5FdmVudHMuUHJvdG9idWYuQ2xvdWQuVmlk", + "ZW8uVHJhbnNjb2Rlci5WMcoCJ0dvb2dsZVxFdmVudHNcQ2xvdWRcVmlkZW9c", + "VHJhbnNjb2RlclxWMeoCLEdvb2dsZTo6RXZlbnRzOjpDbG91ZDo6VmlkZW86", + "OlRyYW5zY29kZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Parser, new[]{ "Name", "Config", "State", "CreateTime", "StartTime", "EndTime", "TtlAfterCompletionDays", "Labels", "Error", "Mode" }, new[]{ "JobConfig" }, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingState), typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingMode) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobTemplate), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobTemplate.Parser, new[]{ "Name", "Config", "Labels" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig.Parser, new[]{ "Inputs", "EditList", "ElementaryStreams", "MuxStreams", "Manifests", "Output", "AdBreaks", "PubsubDestination", "SpriteSheets", "Overlays" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Input), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Input.Parser, new[]{ "Key", "Uri", "PreprocessingConfig" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Output), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Output.Parser, new[]{ "Uri" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.EditAtom), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.EditAtom.Parser, new[]{ "Key", "Inputs", "EndTimeOffset", "StartTimeOffset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AdBreak), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AdBreak.Parser, new[]{ "StartTimeOffset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.ElementaryStream), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.ElementaryStream.Parser, new[]{ "Key", "VideoStream", "AudioStream", "TextStream" }, new[]{ "ElementaryStream" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.MuxStream), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.MuxStream.Parser, new[]{ "Key", "FileName", "Container", "ElementaryStreams", "SegmentSettings" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Parser, new[]{ "FileName", "Type", "MuxStreams" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Types.ManifestType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PubsubDestination), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PubsubDestination.Parser, new[]{ "Topic" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.SpriteSheet), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.SpriteSheet.Parser, new[]{ "Format", "FilePrefix", "SpriteWidthPixels", "SpriteHeightPixels", "ColumnCount", "RowCount", "StartTimeOffset", "EndTimeOffset", "TotalCount", "Interval", "Quality" }, new[]{ "ExtractionStrategy" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Parser, new[]{ "Image", "Animations" }, null, new[]{ typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.FadeType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.Image), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.Image.Parser, new[]{ "Uri", "Resolution", "Alpha" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationStatic), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationStatic.Parser, new[]{ "Xy", "StartTimeOffset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationFade), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationFade.Parser, new[]{ "FadeType", "Xy", "StartTimeOffset", "EndTimeOffset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationEnd), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationEnd.Parser, new[]{ "StartTimeOffset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.Animation), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.Animation.Parser, new[]{ "AnimationStatic", "AnimationFade", "AnimationEnd" }, new[]{ "AnimationType" }, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Parser, new[]{ "Color", "Denoise", "Deblock", "Audio", "Crop", "Pad", "Deinterlace" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Color), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Color.Parser, new[]{ "Saturation", "Contrast", "Brightness" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Denoise), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Denoise.Parser, new[]{ "Strength", "Tune" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deblock), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deblock.Parser, new[]{ "Strength", "Enabled" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Audio), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Audio.Parser, new[]{ "Lufs", "HighBoost", "LowBoost" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Crop), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Crop.Parser, new[]{ "TopPixels", "BottomPixels", "LeftPixels", "RightPixels" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Pad), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Pad.Parser, new[]{ "TopPixels", "BottomPixels", "LeftPixels", "RightPixels" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deinterlace), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deinterlace.Parser, new[]{ "Yadif", "Bwdif" }, new[]{ "DeinterlacingFilter" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deinterlace.Types.YadifConfig), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deinterlace.Types.YadifConfig.Parser, new[]{ "Mode", "DisableSpatialInterlacing", "Parity", "DeinterlaceAllFrames" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deinterlace.Types.BwdifConfig), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deinterlace.Types.BwdifConfig.Parser, new[]{ "Mode", "Parity", "DeinterlaceAllFrames" }, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream.Parser, new[]{ "H264", "H265", "Vp9" }, new[]{ "CodecSettings" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream.Types.H264CodecSettings), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream.Types.H264CodecSettings.Parser, new[]{ "WidthPixels", "HeightPixels", "FrameRate", "BitrateBps", "PixelFormat", "RateControlMode", "CrfLevel", "AllowOpenGop", "GopFrameCount", "GopDuration", "EnableTwoPass", "VbvSizeBits", "VbvFullnessBits", "EntropyCoder", "BPyramid", "BFrameCount", "AqStrength", "Profile", "Tune", "Preset" }, new[]{ "GopMode" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream.Types.H265CodecSettings), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream.Types.H265CodecSettings.Parser, new[]{ "WidthPixels", "HeightPixels", "FrameRate", "BitrateBps", "PixelFormat", "RateControlMode", "CrfLevel", "AllowOpenGop", "GopFrameCount", "GopDuration", "EnableTwoPass", "VbvSizeBits", "VbvFullnessBits", "BPyramid", "BFrameCount", "AqStrength", "Profile", "Tune", "Preset" }, new[]{ "GopMode" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream.Types.Vp9CodecSettings), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream.Types.Vp9CodecSettings.Parser, new[]{ "WidthPixels", "HeightPixels", "FrameRate", "BitrateBps", "PixelFormat", "RateControlMode", "CrfLevel", "GopFrameCount", "GopDuration", "Profile" }, new[]{ "GopMode" }, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AudioStream), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AudioStream.Parser, new[]{ "Codec", "BitrateBps", "ChannelCount", "ChannelLayout", "Mapping", "SampleRateHertz", "LanguageCode", "DisplayName" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AudioStream.Types.AudioMapping), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AudioStream.Types.AudioMapping.Parser, new[]{ "AtomKey", "InputKey", "InputTrack", "InputChannel", "OutputChannel", "GainDb" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.TextStream), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.TextStream.Parser, new[]{ "Codec", "LanguageCode", "Mapping", "DisplayName" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.TextStream.Types.TextMapping), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.TextStream.Types.TextMapping.Parser, new[]{ "AtomKey", "InputKey", "InputTrack" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.SegmentSettings), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.SegmentSettings.Parser, new[]{ "SegmentDuration", "IndividualSegments" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobEventData), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobTemplateEventData), global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobTemplateEventData.Parser, new[]{ "Payload" }, new[]{ "Payload" }, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Transcoding job resource. + /// + public sealed partial class Job : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Job()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 Job() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Job(Job other) : this() { + name_ = other.name_; + state_ = other.state_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + ttlAfterCompletionDays_ = other.ttlAfterCompletionDays_; + labels_ = other.labels_.Clone(); + error_ = other.error_ != null ? other.error_.Clone() : null; + mode_ = other.mode_; + switch (other.JobConfigCase) { + case JobConfigOneofCase.Config: + Config = other.Config.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Job Clone() { + return new Job(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The resource name of the job. + /// Format: `projects/{project_number}/locations/{location}/jobs/{job}` + /// + [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 "config" field. + public const int ConfigFieldNumber = 5; + /// + /// The configuration for this job. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig Config { + get { return jobConfigCase_ == JobConfigOneofCase.Config ? (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig) jobConfig_ : null; } + set { + jobConfig_ = value; + jobConfigCase_ = value == null ? JobConfigOneofCase.None : JobConfigOneofCase.Config; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingState state_ = global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingState.Unspecified; + /// + /// Output only. The current state of the job. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingState State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 12; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the job was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 13; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Output only. The time the transcoding started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 14; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The time the transcoding finished. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "ttl_after_completion_days" field. + public const int TtlAfterCompletionDaysFieldNumber = 15; + private int ttlAfterCompletionDays_; + /// + /// Job time to live value in days, which will be effective after job + /// completion. Job should be deleted automatically after the given TTL. Enter + /// a value between 1 and 90. The default is 30. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TtlAfterCompletionDays { + get { return ttlAfterCompletionDays_; } + set { + ttlAfterCompletionDays_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 16; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 130); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// The labels associated with this job. You can use these to organize and + /// group your jobs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 17; + private global::Google.Rpc.Status error_; + /// + /// Output only. An error object that describes the reason for the failure. + /// This property is always present when `state` is `FAILED`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "mode" field. + public const int ModeFieldNumber = 20; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingMode mode_ = global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingMode.Unspecified; + /// + /// The processing mode of the job. + /// The default is `PROCESSING_MODE_INTERACTIVE`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingMode Mode { + get { return mode_; } + set { + mode_ = value; + } + } + + private object jobConfig_; + /// Enum of possible cases for the "job_config" oneof. + public enum JobConfigOneofCase { + None = 0, + Config = 5, + } + private JobConfigOneofCase jobConfigCase_ = JobConfigOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JobConfigOneofCase JobConfigCase { + get { return jobConfigCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearJobConfig() { + jobConfigCase_ = JobConfigOneofCase.None; + jobConfig_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Job); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Job other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Config, other.Config)) return false; + if (State != other.State) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (TtlAfterCompletionDays != other.TtlAfterCompletionDays) return false; + if (!Labels.Equals(other.Labels)) return false; + if (!object.Equals(Error, other.Error)) return false; + if (Mode != other.Mode) return false; + if (JobConfigCase != other.JobConfigCase) 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 (jobConfigCase_ == JobConfigOneofCase.Config) hash ^= Config.GetHashCode(); + if (State != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingState.Unspecified) hash ^= State.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (TtlAfterCompletionDays != 0) hash ^= TtlAfterCompletionDays.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + if (Mode != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingMode.Unspecified) hash ^= Mode.GetHashCode(); + hash ^= (int) jobConfigCase_; + 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 (jobConfigCase_ == JobConfigOneofCase.Config) { + output.WriteRawTag(42); + output.WriteMessage(Config); + } + if (State != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingState.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + if (createTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(CreateTime); + } + if (startTime_ != null) { + output.WriteRawTag(106); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(114); + output.WriteMessage(EndTime); + } + if (TtlAfterCompletionDays != 0) { + output.WriteRawTag(120); + output.WriteInt32(TtlAfterCompletionDays); + } + labels_.WriteTo(output, _map_labels_codec); + if (error_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(Error); + } + if (Mode != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingMode.Unspecified) { + output.WriteRawTag(160, 1); + output.WriteEnum((int) Mode); + } + 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 (jobConfigCase_ == JobConfigOneofCase.Config) { + output.WriteRawTag(42); + output.WriteMessage(Config); + } + if (State != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingState.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + if (createTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(CreateTime); + } + if (startTime_ != null) { + output.WriteRawTag(106); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(114); + output.WriteMessage(EndTime); + } + if (TtlAfterCompletionDays != 0) { + output.WriteRawTag(120); + output.WriteInt32(TtlAfterCompletionDays); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (error_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(Error); + } + if (Mode != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingMode.Unspecified) { + output.WriteRawTag(160, 1); + output.WriteEnum((int) Mode); + } + 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 (jobConfigCase_ == JobConfigOneofCase.Config) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Config); + } + if (State != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (TtlAfterCompletionDays != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TtlAfterCompletionDays); + } + size += labels_.CalculateSize(_map_labels_codec); + if (error_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (Mode != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingMode.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Mode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Job other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.State != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingState.Unspecified) { + State = other.State; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.TtlAfterCompletionDays != 0) { + TtlAfterCompletionDays = other.TtlAfterCompletionDays; + } + labels_.MergeFrom(other.labels_); + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + if (other.Mode != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingMode.Unspecified) { + Mode = other.Mode; + } + switch (other.JobConfigCase) { + case JobConfigOneofCase.Config: + if (Config == null) { + Config = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig(); + } + Config.MergeFrom(other.Config); + break; + } + + _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 42: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig(); + if (jobConfigCase_ == JobConfigOneofCase.Config) { + subBuilder.MergeFrom(Config); + } + input.ReadMessage(subBuilder); + Config = subBuilder; + break; + } + case 64: { + State = (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingState) input.ReadEnum(); + break; + } + case 98: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 106: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 114: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 120: { + TtlAfterCompletionDays = input.ReadInt32(); + break; + } + case 130: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 138: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 160: { + Mode = (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingMode) input.ReadEnum(); + 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 42: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig(); + if (jobConfigCase_ == JobConfigOneofCase.Config) { + subBuilder.MergeFrom(Config); + } + input.ReadMessage(subBuilder); + Config = subBuilder; + break; + } + case 64: { + State = (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingState) input.ReadEnum(); + break; + } + case 98: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 106: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 114: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 120: { + TtlAfterCompletionDays = input.ReadInt32(); + break; + } + case 130: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 138: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 160: { + Mode = (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Job.Types.ProcessingMode) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Job message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The current state of the job. + /// + public enum ProcessingState { + /// + /// The processing state is not specified. + /// + [pbr::OriginalName("PROCESSING_STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The job is enqueued and will be picked up for processing soon. + /// + [pbr::OriginalName("PENDING")] Pending = 1, + /// + /// The job is being processed. + /// + [pbr::OriginalName("RUNNING")] Running = 2, + /// + /// The job has been completed successfully. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 3, + /// + /// The job has failed. For additional information, see `failure_reason` and + /// `failure_details` + /// + [pbr::OriginalName("FAILED")] Failed = 4, + } + + /// + /// The processing mode of the job. + /// + public enum ProcessingMode { + /// + /// The job processing mode is not specified. + /// + [pbr::OriginalName("PROCESSING_MODE_UNSPECIFIED")] Unspecified = 0, + /// + /// The job processing mode is interactive mode. + /// Interactive job will either be ran or rejected if quota does not allow + /// for it. + /// + [pbr::OriginalName("PROCESSING_MODE_INTERACTIVE")] Interactive = 1, + /// + /// The job processing mode is batch mode. + /// Batch mode allows queuing of jobs. + /// + [pbr::OriginalName("PROCESSING_MODE_BATCH")] Batch = 2, + } + + } + #endregion + + } + + /// + /// Transcoding job template resource. + /// + public sealed partial class JobTemplate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JobTemplate()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 JobTemplate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JobTemplate(JobTemplate other) : this() { + name_ = other.name_; + config_ = other.config_ != null ? other.config_.Clone() : null; + labels_ = other.labels_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JobTemplate Clone() { + return new JobTemplate(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The resource name of the job template. + /// Format: + /// `projects/{project_number}/locations/{location}/jobTemplates/{job_template}` + /// + [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 "config" field. + public const int ConfigFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig config_; + /// + /// The configuration for this template. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig Config { + get { return config_; } + set { + config_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 3; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 26); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// The labels associated with this job template. You can use these to organize + /// and group your job templates. + /// + [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 JobTemplate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(JobTemplate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Config, other.Config)) 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 (config_ != null) hash ^= Config.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 (config_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Config); + } + 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 (config_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Config); + } + 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 (config_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Config); + } + 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(JobTemplate other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.config_ != null) { + if (config_ == null) { + Config = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig(); + } + Config.MergeFrom(other.Config); + } + labels_.MergeFrom(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: { + if (config_ == null) { + Config = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig(); + } + input.ReadMessage(Config); + break; + } + case 26: { + 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: { + if (config_ == null) { + Config = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.JobConfig(); + } + input.ReadMessage(Config); + break; + } + case 26: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Job configuration + /// + public sealed partial class JobConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JobConfig()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 JobConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JobConfig(JobConfig other) : this() { + inputs_ = other.inputs_.Clone(); + editList_ = other.editList_.Clone(); + elementaryStreams_ = other.elementaryStreams_.Clone(); + muxStreams_ = other.muxStreams_.Clone(); + manifests_ = other.manifests_.Clone(); + output_ = other.output_ != null ? other.output_.Clone() : null; + adBreaks_ = other.adBreaks_.Clone(); + pubsubDestination_ = other.pubsubDestination_ != null ? other.pubsubDestination_.Clone() : null; + spriteSheets_ = other.spriteSheets_.Clone(); + overlays_ = other.overlays_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JobConfig Clone() { + return new JobConfig(this); + } + + /// Field number for the "inputs" field. + public const int InputsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_inputs_codec + = pb::FieldCodec.ForMessage(10, global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Input.Parser); + private readonly pbc::RepeatedField inputs_ = new pbc::RepeatedField(); + /// + /// List of input assets stored in Cloud Storage. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Inputs { + get { return inputs_; } + } + + /// Field number for the "edit_list" field. + public const int EditListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_editList_codec + = pb::FieldCodec.ForMessage(18, global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.EditAtom.Parser); + private readonly pbc::RepeatedField editList_ = new pbc::RepeatedField(); + /// + /// List of `Edit atom`s. Defines the ultimate timeline of the resulting + /// file or manifest. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EditList { + get { return editList_; } + } + + /// Field number for the "elementary_streams" field. + public const int ElementaryStreamsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_elementaryStreams_codec + = pb::FieldCodec.ForMessage(26, global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.ElementaryStream.Parser); + private readonly pbc::RepeatedField elementaryStreams_ = new pbc::RepeatedField(); + /// + /// List of elementary streams. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ElementaryStreams { + get { return elementaryStreams_; } + } + + /// Field number for the "mux_streams" field. + public const int MuxStreamsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_muxStreams_codec + = pb::FieldCodec.ForMessage(34, global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.MuxStream.Parser); + private readonly pbc::RepeatedField muxStreams_ = new pbc::RepeatedField(); + /// + /// List of multiplexing settings for output streams. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MuxStreams { + get { return muxStreams_; } + } + + /// Field number for the "manifests" field. + public const int ManifestsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_manifests_codec + = pb::FieldCodec.ForMessage(42, global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Parser); + private readonly pbc::RepeatedField manifests_ = new pbc::RepeatedField(); + /// + /// List of output manifests. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Manifests { + get { return manifests_; } + } + + /// Field number for the "output" field. + public const int OutputFieldNumber = 6; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Output output_; + /// + /// Output configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Output Output { + get { return output_; } + set { + output_ = value; + } + } + + /// Field number for the "ad_breaks" field. + public const int AdBreaksFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_adBreaks_codec + = pb::FieldCodec.ForMessage(58, global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AdBreak.Parser); + private readonly pbc::RepeatedField adBreaks_ = new pbc::RepeatedField(); + /// + /// List of ad breaks. Specifies where to insert ad break tags in the output + /// manifests. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AdBreaks { + get { return adBreaks_; } + } + + /// Field number for the "pubsub_destination" field. + public const int PubsubDestinationFieldNumber = 8; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PubsubDestination pubsubDestination_; + /// + /// Destination on Pub/Sub. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PubsubDestination PubsubDestination { + get { return pubsubDestination_; } + set { + pubsubDestination_ = value; + } + } + + /// Field number for the "sprite_sheets" field. + public const int SpriteSheetsFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_spriteSheets_codec + = pb::FieldCodec.ForMessage(74, global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.SpriteSheet.Parser); + private readonly pbc::RepeatedField spriteSheets_ = new pbc::RepeatedField(); + /// + /// List of output sprite sheets. + /// Spritesheets require at least one VideoStream in the Jobconfig. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SpriteSheets { + get { return spriteSheets_; } + } + + /// Field number for the "overlays" field. + public const int OverlaysFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_overlays_codec + = pb::FieldCodec.ForMessage(82, global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Parser); + private readonly pbc::RepeatedField overlays_ = new pbc::RepeatedField(); + /// + /// List of overlays on the output video, in descending Z-order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Overlays { + get { return overlays_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as JobConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(JobConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!inputs_.Equals(other.inputs_)) return false; + if(!editList_.Equals(other.editList_)) return false; + if(!elementaryStreams_.Equals(other.elementaryStreams_)) return false; + if(!muxStreams_.Equals(other.muxStreams_)) return false; + if(!manifests_.Equals(other.manifests_)) return false; + if (!object.Equals(Output, other.Output)) return false; + if(!adBreaks_.Equals(other.adBreaks_)) return false; + if (!object.Equals(PubsubDestination, other.PubsubDestination)) return false; + if(!spriteSheets_.Equals(other.spriteSheets_)) return false; + if(!overlays_.Equals(other.overlays_)) 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 ^= inputs_.GetHashCode(); + hash ^= editList_.GetHashCode(); + hash ^= elementaryStreams_.GetHashCode(); + hash ^= muxStreams_.GetHashCode(); + hash ^= manifests_.GetHashCode(); + if (output_ != null) hash ^= Output.GetHashCode(); + hash ^= adBreaks_.GetHashCode(); + if (pubsubDestination_ != null) hash ^= PubsubDestination.GetHashCode(); + hash ^= spriteSheets_.GetHashCode(); + hash ^= overlays_.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 + inputs_.WriteTo(output, _repeated_inputs_codec); + editList_.WriteTo(output, _repeated_editList_codec); + elementaryStreams_.WriteTo(output, _repeated_elementaryStreams_codec); + muxStreams_.WriteTo(output, _repeated_muxStreams_codec); + manifests_.WriteTo(output, _repeated_manifests_codec); + if (output_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Output); + } + adBreaks_.WriteTo(output, _repeated_adBreaks_codec); + if (pubsubDestination_ != null) { + output.WriteRawTag(66); + output.WriteMessage(PubsubDestination); + } + spriteSheets_.WriteTo(output, _repeated_spriteSheets_codec); + overlays_.WriteTo(output, _repeated_overlays_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) { + inputs_.WriteTo(ref output, _repeated_inputs_codec); + editList_.WriteTo(ref output, _repeated_editList_codec); + elementaryStreams_.WriteTo(ref output, _repeated_elementaryStreams_codec); + muxStreams_.WriteTo(ref output, _repeated_muxStreams_codec); + manifests_.WriteTo(ref output, _repeated_manifests_codec); + if (output_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Output); + } + adBreaks_.WriteTo(ref output, _repeated_adBreaks_codec); + if (pubsubDestination_ != null) { + output.WriteRawTag(66); + output.WriteMessage(PubsubDestination); + } + spriteSheets_.WriteTo(ref output, _repeated_spriteSheets_codec); + overlays_.WriteTo(ref output, _repeated_overlays_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 += inputs_.CalculateSize(_repeated_inputs_codec); + size += editList_.CalculateSize(_repeated_editList_codec); + size += elementaryStreams_.CalculateSize(_repeated_elementaryStreams_codec); + size += muxStreams_.CalculateSize(_repeated_muxStreams_codec); + size += manifests_.CalculateSize(_repeated_manifests_codec); + if (output_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Output); + } + size += adBreaks_.CalculateSize(_repeated_adBreaks_codec); + if (pubsubDestination_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PubsubDestination); + } + size += spriteSheets_.CalculateSize(_repeated_spriteSheets_codec); + size += overlays_.CalculateSize(_repeated_overlays_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(JobConfig other) { + if (other == null) { + return; + } + inputs_.Add(other.inputs_); + editList_.Add(other.editList_); + elementaryStreams_.Add(other.elementaryStreams_); + muxStreams_.Add(other.muxStreams_); + manifests_.Add(other.manifests_); + if (other.output_ != null) { + if (output_ == null) { + Output = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Output(); + } + Output.MergeFrom(other.Output); + } + adBreaks_.Add(other.adBreaks_); + if (other.pubsubDestination_ != null) { + if (pubsubDestination_ == null) { + PubsubDestination = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PubsubDestination(); + } + PubsubDestination.MergeFrom(other.PubsubDestination); + } + spriteSheets_.Add(other.spriteSheets_); + overlays_.Add(other.overlays_); + _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: { + inputs_.AddEntriesFrom(input, _repeated_inputs_codec); + break; + } + case 18: { + editList_.AddEntriesFrom(input, _repeated_editList_codec); + break; + } + case 26: { + elementaryStreams_.AddEntriesFrom(input, _repeated_elementaryStreams_codec); + break; + } + case 34: { + muxStreams_.AddEntriesFrom(input, _repeated_muxStreams_codec); + break; + } + case 42: { + manifests_.AddEntriesFrom(input, _repeated_manifests_codec); + break; + } + case 50: { + if (output_ == null) { + Output = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Output(); + } + input.ReadMessage(Output); + break; + } + case 58: { + adBreaks_.AddEntriesFrom(input, _repeated_adBreaks_codec); + break; + } + case 66: { + if (pubsubDestination_ == null) { + PubsubDestination = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PubsubDestination(); + } + input.ReadMessage(PubsubDestination); + break; + } + case 74: { + spriteSheets_.AddEntriesFrom(input, _repeated_spriteSheets_codec); + break; + } + case 82: { + overlays_.AddEntriesFrom(input, _repeated_overlays_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: { + inputs_.AddEntriesFrom(ref input, _repeated_inputs_codec); + break; + } + case 18: { + editList_.AddEntriesFrom(ref input, _repeated_editList_codec); + break; + } + case 26: { + elementaryStreams_.AddEntriesFrom(ref input, _repeated_elementaryStreams_codec); + break; + } + case 34: { + muxStreams_.AddEntriesFrom(ref input, _repeated_muxStreams_codec); + break; + } + case 42: { + manifests_.AddEntriesFrom(ref input, _repeated_manifests_codec); + break; + } + case 50: { + if (output_ == null) { + Output = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Output(); + } + input.ReadMessage(Output); + break; + } + case 58: { + adBreaks_.AddEntriesFrom(ref input, _repeated_adBreaks_codec); + break; + } + case 66: { + if (pubsubDestination_ == null) { + PubsubDestination = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PubsubDestination(); + } + input.ReadMessage(PubsubDestination); + break; + } + case 74: { + spriteSheets_.AddEntriesFrom(ref input, _repeated_spriteSheets_codec); + break; + } + case 82: { + overlays_.AddEntriesFrom(ref input, _repeated_overlays_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Input asset. + /// + public sealed partial class Input : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Input()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 Input() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Input(Input other) : this() { + key_ = other.key_; + uri_ = other.uri_; + preprocessingConfig_ = other.preprocessingConfig_ != null ? other.preprocessingConfig_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Input Clone() { + return new Input(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private string key_ = ""; + /// + /// A unique key for this input. Must be specified when using advanced + /// mapping and edit lists. + /// + [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 "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// URI of the media. Input files must be at least 5 seconds in duration and + /// stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). + /// If empty, the value is populated from `Job.input_uri`. See + /// [Supported input and output + /// formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "preprocessing_config" field. + public const int PreprocessingConfigFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig preprocessingConfig_; + /// + /// Preprocessing configurations. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig PreprocessingConfig { + get { return preprocessingConfig_; } + set { + preprocessingConfig_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Input); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Input other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) return false; + if (Uri != other.Uri) return false; + if (!object.Equals(PreprocessingConfig, other.PreprocessingConfig)) 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 (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (preprocessingConfig_ != null) hash ^= PreprocessingConfig.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 (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (preprocessingConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(PreprocessingConfig); + } + 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 (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (preprocessingConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(PreprocessingConfig); + } + 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 (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (preprocessingConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PreprocessingConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Input other) { + if (other == null) { + return; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.preprocessingConfig_ != null) { + if (preprocessingConfig_ == null) { + PreprocessingConfig = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig(); + } + PreprocessingConfig.MergeFrom(other.PreprocessingConfig); + } + _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: { + Uri = input.ReadString(); + break; + } + case 26: { + if (preprocessingConfig_ == null) { + PreprocessingConfig = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig(); + } + input.ReadMessage(PreprocessingConfig); + 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: { + Uri = input.ReadString(); + break; + } + case 26: { + if (preprocessingConfig_ == null) { + PreprocessingConfig = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig(); + } + input.ReadMessage(PreprocessingConfig); + break; + } + } + } + } + #endif + + } + + /// + /// Location of output file(s) in a Cloud Storage bucket. + /// + public sealed partial class Output : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Output()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 Output() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Output(Output other) : this() { + uri_ = other.uri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Output Clone() { + return new Output(this); + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 1; + private string uri_ = ""; + /// + /// URI for the output file(s). For example, `gs://my-bucket/outputs/`. + /// If empty, the value is populated from `Job.output_uri`. See + /// [Supported input and output + /// formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = 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 Output); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Output other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uri != other.Uri) 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 (Uri.Length != 0) hash ^= Uri.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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + 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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + 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 (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Output other) { + if (other == null) { + return; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + _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: { + Uri = 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: { + Uri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Edit atom. + /// + public sealed partial class EditAtom : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditAtom()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 EditAtom() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EditAtom(EditAtom other) : this() { + key_ = other.key_; + inputs_ = other.inputs_.Clone(); + endTimeOffset_ = other.endTimeOffset_ != null ? other.endTimeOffset_.Clone() : null; + startTimeOffset_ = other.startTimeOffset_ != null ? other.startTimeOffset_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EditAtom Clone() { + return new EditAtom(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private string key_ = ""; + /// + /// A unique key for this atom. Must be specified when using advanced + /// mapping. + /// + [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 "inputs" field. + public const int InputsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_inputs_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField inputs_ = new pbc::RepeatedField(); + /// + /// List of `Input.key`s identifying files that should be used in this atom. + /// The listed `inputs` must have the same timeline. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Inputs { + get { return inputs_; } + } + + /// Field number for the "end_time_offset" field. + public const int EndTimeOffsetFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Duration endTimeOffset_; + /// + /// End time in seconds for the atom, relative to the input file timeline. + /// When `end_time_offset` is not specified, the `inputs` are used until + /// the end of the atom. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration EndTimeOffset { + get { return endTimeOffset_; } + set { + endTimeOffset_ = value; + } + } + + /// Field number for the "start_time_offset" field. + public const int StartTimeOffsetFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration startTimeOffset_; + /// + /// Start time in seconds for the atom, relative to the input file timeline. + /// The default is `0s`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartTimeOffset { + get { return startTimeOffset_; } + set { + startTimeOffset_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EditAtom); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EditAtom other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) return false; + if(!inputs_.Equals(other.inputs_)) return false; + if (!object.Equals(EndTimeOffset, other.EndTimeOffset)) return false; + if (!object.Equals(StartTimeOffset, other.StartTimeOffset)) 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(); + hash ^= inputs_.GetHashCode(); + if (endTimeOffset_ != null) hash ^= EndTimeOffset.GetHashCode(); + if (startTimeOffset_ != null) hash ^= StartTimeOffset.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); + } + inputs_.WriteTo(output, _repeated_inputs_codec); + if (endTimeOffset_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTimeOffset); + } + if (startTimeOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StartTimeOffset); + } + 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); + } + inputs_.WriteTo(ref output, _repeated_inputs_codec); + if (endTimeOffset_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTimeOffset); + } + if (startTimeOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StartTimeOffset); + } + 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); + } + size += inputs_.CalculateSize(_repeated_inputs_codec); + if (endTimeOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTimeOffset); + } + if (startTimeOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTimeOffset); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EditAtom other) { + if (other == null) { + return; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + inputs_.Add(other.inputs_); + if (other.endTimeOffset_ != null) { + if (endTimeOffset_ == null) { + EndTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + EndTimeOffset.MergeFrom(other.EndTimeOffset); + } + if (other.startTimeOffset_ != null) { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartTimeOffset.MergeFrom(other.StartTimeOffset); + } + _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: { + inputs_.AddEntriesFrom(input, _repeated_inputs_codec); + break; + } + case 26: { + if (endTimeOffset_ == null) { + EndTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndTimeOffset); + break; + } + case 34: { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + 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: { + inputs_.AddEntriesFrom(ref input, _repeated_inputs_codec); + break; + } + case 26: { + if (endTimeOffset_ == null) { + EndTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndTimeOffset); + break; + } + case 34: { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + break; + } + } + } + } + #endif + + } + + /// + /// Ad break. + /// + public sealed partial class AdBreak : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdBreak()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 AdBreak() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdBreak(AdBreak other) : this() { + startTimeOffset_ = other.startTimeOffset_ != null ? other.startTimeOffset_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdBreak Clone() { + return new AdBreak(this); + } + + /// Field number for the "start_time_offset" field. + public const int StartTimeOffsetFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration startTimeOffset_; + /// + /// Start time in seconds for the ad break, relative to the output file + /// timeline. The default is `0s`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartTimeOffset { + get { return startTimeOffset_; } + set { + startTimeOffset_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AdBreak); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AdBreak other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StartTimeOffset, other.StartTimeOffset)) 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 (startTimeOffset_ != null) hash ^= StartTimeOffset.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 (startTimeOffset_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTimeOffset); + } + 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 (startTimeOffset_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTimeOffset); + } + 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 (startTimeOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTimeOffset); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AdBreak other) { + if (other == null) { + return; + } + if (other.startTimeOffset_ != null) { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartTimeOffset.MergeFrom(other.StartTimeOffset); + } + _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 (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + 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 (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + break; + } + } + } + } + #endif + + } + + /// + /// Encoding of an input file such as an audio, video, or text track. + /// Elementary streams must be packaged before + /// mapping and sharing between different output formats. + /// + public sealed partial class ElementaryStream : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ElementaryStream()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 ElementaryStream() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ElementaryStream(ElementaryStream other) : this() { + key_ = other.key_; + switch (other.ElementaryStreamCase) { + case ElementaryStreamOneofCase.VideoStream: + VideoStream = other.VideoStream.Clone(); + break; + case ElementaryStreamOneofCase.AudioStream: + AudioStream = other.AudioStream.Clone(); + break; + case ElementaryStreamOneofCase.TextStream: + TextStream = other.TextStream.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ElementaryStream Clone() { + return new ElementaryStream(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 4; + private string key_ = ""; + /// + /// A unique key for this elementary stream. + /// + [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 "video_stream" field. + public const int VideoStreamFieldNumber = 1; + /// + /// Encoding of a video stream. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream VideoStream { + get { return elementaryStreamCase_ == ElementaryStreamOneofCase.VideoStream ? (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream) elementaryStream_ : null; } + set { + elementaryStream_ = value; + elementaryStreamCase_ = value == null ? ElementaryStreamOneofCase.None : ElementaryStreamOneofCase.VideoStream; + } + } + + /// Field number for the "audio_stream" field. + public const int AudioStreamFieldNumber = 2; + /// + /// Encoding of an audio stream. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AudioStream AudioStream { + get { return elementaryStreamCase_ == ElementaryStreamOneofCase.AudioStream ? (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AudioStream) elementaryStream_ : null; } + set { + elementaryStream_ = value; + elementaryStreamCase_ = value == null ? ElementaryStreamOneofCase.None : ElementaryStreamOneofCase.AudioStream; + } + } + + /// Field number for the "text_stream" field. + public const int TextStreamFieldNumber = 3; + /// + /// Encoding of a text stream. For example, closed captions or subtitles. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.TextStream TextStream { + get { return elementaryStreamCase_ == ElementaryStreamOneofCase.TextStream ? (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.TextStream) elementaryStream_ : null; } + set { + elementaryStream_ = value; + elementaryStreamCase_ = value == null ? ElementaryStreamOneofCase.None : ElementaryStreamOneofCase.TextStream; + } + } + + private object elementaryStream_; + /// Enum of possible cases for the "elementary_stream" oneof. + public enum ElementaryStreamOneofCase { + None = 0, + VideoStream = 1, + AudioStream = 2, + TextStream = 3, + } + private ElementaryStreamOneofCase elementaryStreamCase_ = ElementaryStreamOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ElementaryStreamOneofCase ElementaryStreamCase { + get { return elementaryStreamCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearElementaryStream() { + elementaryStreamCase_ = ElementaryStreamOneofCase.None; + elementaryStream_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ElementaryStream); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ElementaryStream other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) return false; + if (!object.Equals(VideoStream, other.VideoStream)) return false; + if (!object.Equals(AudioStream, other.AudioStream)) return false; + if (!object.Equals(TextStream, other.TextStream)) return false; + if (ElementaryStreamCase != other.ElementaryStreamCase) 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 (elementaryStreamCase_ == ElementaryStreamOneofCase.VideoStream) hash ^= VideoStream.GetHashCode(); + if (elementaryStreamCase_ == ElementaryStreamOneofCase.AudioStream) hash ^= AudioStream.GetHashCode(); + if (elementaryStreamCase_ == ElementaryStreamOneofCase.TextStream) hash ^= TextStream.GetHashCode(); + hash ^= (int) elementaryStreamCase_; + 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 (elementaryStreamCase_ == ElementaryStreamOneofCase.VideoStream) { + output.WriteRawTag(10); + output.WriteMessage(VideoStream); + } + if (elementaryStreamCase_ == ElementaryStreamOneofCase.AudioStream) { + output.WriteRawTag(18); + output.WriteMessage(AudioStream); + } + if (elementaryStreamCase_ == ElementaryStreamOneofCase.TextStream) { + output.WriteRawTag(26); + output.WriteMessage(TextStream); + } + if (Key.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Key); + } + 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 (elementaryStreamCase_ == ElementaryStreamOneofCase.VideoStream) { + output.WriteRawTag(10); + output.WriteMessage(VideoStream); + } + if (elementaryStreamCase_ == ElementaryStreamOneofCase.AudioStream) { + output.WriteRawTag(18); + output.WriteMessage(AudioStream); + } + if (elementaryStreamCase_ == ElementaryStreamOneofCase.TextStream) { + output.WriteRawTag(26); + output.WriteMessage(TextStream); + } + if (Key.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Key); + } + 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 (elementaryStreamCase_ == ElementaryStreamOneofCase.VideoStream) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VideoStream); + } + if (elementaryStreamCase_ == ElementaryStreamOneofCase.AudioStream) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AudioStream); + } + if (elementaryStreamCase_ == ElementaryStreamOneofCase.TextStream) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TextStream); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ElementaryStream other) { + if (other == null) { + return; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + switch (other.ElementaryStreamCase) { + case ElementaryStreamOneofCase.VideoStream: + if (VideoStream == null) { + VideoStream = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream(); + } + VideoStream.MergeFrom(other.VideoStream); + break; + case ElementaryStreamOneofCase.AudioStream: + if (AudioStream == null) { + AudioStream = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AudioStream(); + } + AudioStream.MergeFrom(other.AudioStream); + break; + case ElementaryStreamOneofCase.TextStream: + if (TextStream == null) { + TextStream = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.TextStream(); + } + TextStream.MergeFrom(other.TextStream); + break; + } + + _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: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream(); + if (elementaryStreamCase_ == ElementaryStreamOneofCase.VideoStream) { + subBuilder.MergeFrom(VideoStream); + } + input.ReadMessage(subBuilder); + VideoStream = subBuilder; + break; + } + case 18: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AudioStream subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AudioStream(); + if (elementaryStreamCase_ == ElementaryStreamOneofCase.AudioStream) { + subBuilder.MergeFrom(AudioStream); + } + input.ReadMessage(subBuilder); + AudioStream = subBuilder; + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.TextStream subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.TextStream(); + if (elementaryStreamCase_ == ElementaryStreamOneofCase.TextStream) { + subBuilder.MergeFrom(TextStream); + } + input.ReadMessage(subBuilder); + TextStream = subBuilder; + break; + } + case 34: { + Key = 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: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.VideoStream(); + if (elementaryStreamCase_ == ElementaryStreamOneofCase.VideoStream) { + subBuilder.MergeFrom(VideoStream); + } + input.ReadMessage(subBuilder); + VideoStream = subBuilder; + break; + } + case 18: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AudioStream subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.AudioStream(); + if (elementaryStreamCase_ == ElementaryStreamOneofCase.AudioStream) { + subBuilder.MergeFrom(AudioStream); + } + input.ReadMessage(subBuilder); + AudioStream = subBuilder; + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.TextStream subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.TextStream(); + if (elementaryStreamCase_ == ElementaryStreamOneofCase.TextStream) { + subBuilder.MergeFrom(TextStream); + } + input.ReadMessage(subBuilder); + TextStream = subBuilder; + break; + } + case 34: { + Key = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Multiplexing settings for output stream. + /// + public sealed partial class MuxStream : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MuxStream()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 MuxStream() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MuxStream(MuxStream other) : this() { + key_ = other.key_; + fileName_ = other.fileName_; + container_ = other.container_; + elementaryStreams_ = other.elementaryStreams_.Clone(); + segmentSettings_ = other.segmentSettings_ != null ? other.segmentSettings_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MuxStream Clone() { + return new MuxStream(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private string key_ = ""; + /// + /// A unique key for this multiplexed stream. HLS media manifests will be + /// named `MuxStream.key` with the `.m3u8` extension suffix. + /// + [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 "file_name" field. + public const int FileNameFieldNumber = 2; + private string fileName_ = ""; + /// + /// The name of the generated file. The default is `MuxStream.key` with the + /// extension suffix corresponding to the `MuxStream.container`. + /// + /// Individual segments also have an incremental 10-digit zero-padded suffix + /// starting from 0 before the extension, such as `mux_stream0000000123.ts`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FileName { + get { return fileName_; } + set { + fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "container" field. + public const int ContainerFieldNumber = 3; + private string container_ = ""; + /// + /// The container format. The default is `mp4` + /// + /// Supported container formats: + /// + /// - `ts` + /// - `fmp4`- the corresponding file extension is `.m4s` + /// - `mp4` + /// - `vtt` + /// + /// See also: + /// [Supported input and output + /// formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Container { + get { return container_; } + set { + container_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "elementary_streams" field. + public const int ElementaryStreamsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_elementaryStreams_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField elementaryStreams_ = new pbc::RepeatedField(); + /// + /// List of `ElementaryStream.key`s multiplexed in this stream. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ElementaryStreams { + get { return elementaryStreams_; } + } + + /// Field number for the "segment_settings" field. + public const int SegmentSettingsFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.SegmentSettings segmentSettings_; + /// + /// Segment settings for `ts`, `fmp4` and `vtt`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.SegmentSettings SegmentSettings { + get { return segmentSettings_; } + set { + segmentSettings_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MuxStream); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MuxStream other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) return false; + if (FileName != other.FileName) return false; + if (Container != other.Container) return false; + if(!elementaryStreams_.Equals(other.elementaryStreams_)) return false; + if (!object.Equals(SegmentSettings, other.SegmentSettings)) 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 (FileName.Length != 0) hash ^= FileName.GetHashCode(); + if (Container.Length != 0) hash ^= Container.GetHashCode(); + hash ^= elementaryStreams_.GetHashCode(); + if (segmentSettings_ != null) hash ^= SegmentSettings.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 (FileName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FileName); + } + if (Container.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Container); + } + elementaryStreams_.WriteTo(output, _repeated_elementaryStreams_codec); + if (segmentSettings_ != null) { + output.WriteRawTag(42); + output.WriteMessage(SegmentSettings); + } + 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 (FileName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FileName); + } + if (Container.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Container); + } + elementaryStreams_.WriteTo(ref output, _repeated_elementaryStreams_codec); + if (segmentSettings_ != null) { + output.WriteRawTag(42); + output.WriteMessage(SegmentSettings); + } + 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 (FileName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); + } + if (Container.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Container); + } + size += elementaryStreams_.CalculateSize(_repeated_elementaryStreams_codec); + if (segmentSettings_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SegmentSettings); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MuxStream other) { + if (other == null) { + return; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + if (other.FileName.Length != 0) { + FileName = other.FileName; + } + if (other.Container.Length != 0) { + Container = other.Container; + } + elementaryStreams_.Add(other.elementaryStreams_); + if (other.segmentSettings_ != null) { + if (segmentSettings_ == null) { + SegmentSettings = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.SegmentSettings(); + } + SegmentSettings.MergeFrom(other.SegmentSettings); + } + _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: { + FileName = input.ReadString(); + break; + } + case 26: { + Container = input.ReadString(); + break; + } + case 34: { + elementaryStreams_.AddEntriesFrom(input, _repeated_elementaryStreams_codec); + break; + } + case 42: { + if (segmentSettings_ == null) { + SegmentSettings = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.SegmentSettings(); + } + input.ReadMessage(SegmentSettings); + 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: { + FileName = input.ReadString(); + break; + } + case 26: { + Container = input.ReadString(); + break; + } + case 34: { + elementaryStreams_.AddEntriesFrom(ref input, _repeated_elementaryStreams_codec); + break; + } + case 42: { + if (segmentSettings_ == null) { + SegmentSettings = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.SegmentSettings(); + } + input.ReadMessage(SegmentSettings); + break; + } + } + } + } + #endif + + } + + /// + /// Manifest configuration. + /// + public sealed partial class Manifest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Manifest()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 Manifest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Manifest(Manifest other) : this() { + fileName_ = other.fileName_; + type_ = other.type_; + muxStreams_ = other.muxStreams_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Manifest Clone() { + return new Manifest(this); + } + + /// Field number for the "file_name" field. + public const int FileNameFieldNumber = 1; + private string fileName_ = ""; + /// + /// The name of the generated file. The default is `manifest` with the + /// extension suffix corresponding to the `Manifest.type`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FileName { + get { return fileName_; } + set { + fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Types.ManifestType type_ = global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Types.ManifestType.Unspecified; + /// + /// Required. Type of the manifest. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Types.ManifestType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "mux_streams" field. + public const int MuxStreamsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_muxStreams_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField muxStreams_ = new pbc::RepeatedField(); + /// + /// Required. List of user given `MuxStream.key`s that should appear in this + /// manifest. + /// + /// When `Manifest.type` is `HLS`, a media manifest with name `MuxStream.key` + /// and `.m3u8` extension is generated for each element of the + /// `Manifest.mux_streams`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MuxStreams { + get { return muxStreams_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Manifest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Manifest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FileName != other.FileName) return false; + if (Type != other.Type) return false; + if(!muxStreams_.Equals(other.muxStreams_)) 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 (FileName.Length != 0) hash ^= FileName.GetHashCode(); + if (Type != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Types.ManifestType.Unspecified) hash ^= Type.GetHashCode(); + hash ^= muxStreams_.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 (FileName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FileName); + } + if (Type != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Types.ManifestType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + muxStreams_.WriteTo(output, _repeated_muxStreams_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 (FileName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FileName); + } + if (Type != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Types.ManifestType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + muxStreams_.WriteTo(ref output, _repeated_muxStreams_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 (FileName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); + } + if (Type != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Types.ManifestType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + size += muxStreams_.CalculateSize(_repeated_muxStreams_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Manifest other) { + if (other == null) { + return; + } + if (other.FileName.Length != 0) { + FileName = other.FileName; + } + if (other.Type != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Types.ManifestType.Unspecified) { + Type = other.Type; + } + muxStreams_.Add(other.muxStreams_); + _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: { + FileName = input.ReadString(); + break; + } + case 16: { + Type = (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Types.ManifestType) input.ReadEnum(); + break; + } + case 26: { + muxStreams_.AddEntriesFrom(input, _repeated_muxStreams_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: { + FileName = input.ReadString(); + break; + } + case 16: { + Type = (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Manifest.Types.ManifestType) input.ReadEnum(); + break; + } + case 26: { + muxStreams_.AddEntriesFrom(ref input, _repeated_muxStreams_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Manifest message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The manifest type, which corresponds to the adaptive streaming format used. + /// + public enum ManifestType { + /// + /// The manifest type is not specified. + /// + [pbr::OriginalName("MANIFEST_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Create an HLS manifest. The corresponding file extension is `.m3u8`. + /// + [pbr::OriginalName("HLS")] Hls = 1, + /// + /// Create an MPEG-DASH manifest. The corresponding file extension is `.mpd`. + /// + [pbr::OriginalName("DASH")] Dash = 2, + } + + } + #endregion + + } + + /// + /// A Pub/Sub destination. + /// + public sealed partial class PubsubDestination : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PubsubDestination()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 PubsubDestination() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PubsubDestination(PubsubDestination other) : this() { + topic_ = other.topic_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PubsubDestination Clone() { + return new PubsubDestination(this); + } + + /// Field number for the "topic" field. + public const int TopicFieldNumber = 1; + private string topic_ = ""; + /// + /// The name of the Pub/Sub topic to publish job completion notification + /// to. For example: `projects/{project}/topics/{topic}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Topic { + get { return topic_; } + set { + topic_ = 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 PubsubDestination); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PubsubDestination other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Topic != other.Topic) 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 (Topic.Length != 0) hash ^= Topic.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 (Topic.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Topic); + } + 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 (Topic.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Topic); + } + 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 (Topic.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PubsubDestination other) { + if (other == null) { + return; + } + if (other.Topic.Length != 0) { + Topic = other.Topic; + } + _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: { + Topic = 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: { + Topic = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Sprite sheet configuration. + /// + public sealed partial class SpriteSheet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpriteSheet()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 SpriteSheet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SpriteSheet(SpriteSheet other) : this() { + format_ = other.format_; + filePrefix_ = other.filePrefix_; + spriteWidthPixels_ = other.spriteWidthPixels_; + spriteHeightPixels_ = other.spriteHeightPixels_; + columnCount_ = other.columnCount_; + rowCount_ = other.rowCount_; + startTimeOffset_ = other.startTimeOffset_ != null ? other.startTimeOffset_.Clone() : null; + endTimeOffset_ = other.endTimeOffset_ != null ? other.endTimeOffset_.Clone() : null; + quality_ = other.quality_; + switch (other.ExtractionStrategyCase) { + case ExtractionStrategyOneofCase.TotalCount: + TotalCount = other.TotalCount; + break; + case ExtractionStrategyOneofCase.Interval: + Interval = other.Interval.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SpriteSheet Clone() { + return new SpriteSheet(this); + } + + /// Field number for the "format" field. + public const int FormatFieldNumber = 1; + private string format_ = ""; + /// + /// Format type. The default is `jpeg`. + /// + /// Supported formats: + /// + /// - `jpeg` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Format { + get { return format_; } + set { + format_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "file_prefix" field. + public const int FilePrefixFieldNumber = 2; + private string filePrefix_ = ""; + /// + /// Required. File name prefix for the generated sprite sheets. + /// + /// Each sprite sheet has an incremental 10-digit zero-padded suffix starting + /// from 0 before the extension, such as `sprite_sheet0000000123.jpeg`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FilePrefix { + get { return filePrefix_; } + set { + filePrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sprite_width_pixels" field. + public const int SpriteWidthPixelsFieldNumber = 3; + private int spriteWidthPixels_; + /// + /// Required. The width of sprite in pixels. Must be an even integer. To + /// preserve the source aspect ratio, set the + /// [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels] + /// field or the + /// [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels] + /// field, but not both (the API will automatically calculate the missing + /// field). + /// + /// For portrait videos that contain horizontal ASR and rotation metadata, + /// provide the width, in pixels, per the horizontal ASR. The API calculates + /// the height per the horizontal ASR. The API detects any rotation metadata + /// and swaps the requested height and width for the output. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SpriteWidthPixels { + get { return spriteWidthPixels_; } + set { + spriteWidthPixels_ = value; + } + } + + /// Field number for the "sprite_height_pixels" field. + public const int SpriteHeightPixelsFieldNumber = 4; + private int spriteHeightPixels_; + /// + /// Required. The height of sprite in pixels. Must be an even integer. To + /// preserve the source aspect ratio, set the + /// [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels] + /// field or the + /// [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels] + /// field, but not both (the API will automatically calculate the missing + /// field). + /// + /// For portrait videos that contain horizontal ASR and rotation metadata, + /// provide the height, in pixels, per the horizontal ASR. The API calculates + /// the width per the horizontal ASR. The API detects any rotation metadata + /// and swaps the requested height and width for the output. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SpriteHeightPixels { + get { return spriteHeightPixels_; } + set { + spriteHeightPixels_ = value; + } + } + + /// Field number for the "column_count" field. + public const int ColumnCountFieldNumber = 5; + private int columnCount_; + /// + /// The maximum number of sprites per row in a sprite sheet. The default is 0, + /// which indicates no maximum limit. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ColumnCount { + get { return columnCount_; } + set { + columnCount_ = value; + } + } + + /// Field number for the "row_count" field. + public const int RowCountFieldNumber = 6; + private int rowCount_; + /// + /// The maximum number of rows per sprite sheet. When the sprite sheet is full, + /// a new sprite sheet is created. The default is 0, which indicates no maximum + /// limit. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RowCount { + get { return rowCount_; } + set { + rowCount_ = value; + } + } + + /// Field number for the "start_time_offset" field. + public const int StartTimeOffsetFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Duration startTimeOffset_; + /// + /// Start time in seconds, relative to the output file timeline. Determines the + /// first sprite to pick. The default is `0s`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartTimeOffset { + get { return startTimeOffset_; } + set { + startTimeOffset_ = value; + } + } + + /// Field number for the "end_time_offset" field. + public const int EndTimeOffsetFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Duration endTimeOffset_; + /// + /// End time in seconds, relative to the output file timeline. When + /// `end_time_offset` is not specified, the sprites are generated until the end + /// of the output file. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration EndTimeOffset { + get { return endTimeOffset_; } + set { + endTimeOffset_ = value; + } + } + + /// Field number for the "total_count" field. + public const int TotalCountFieldNumber = 9; + /// + /// Total number of sprites. Create the specified number of sprites + /// distributed evenly across the timeline of the output media. The default + /// is 100. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TotalCount { + get { return HasTotalCount ? (int) extractionStrategy_ : 0; } + set { + extractionStrategy_ = value; + extractionStrategyCase_ = ExtractionStrategyOneofCase.TotalCount; + } + } + /// Gets whether the "total_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalCount { + get { return extractionStrategyCase_ == ExtractionStrategyOneofCase.TotalCount; } + } + /// Clears the value of the oneof if it's currently set to "total_count" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalCount() { + if (HasTotalCount) { + ClearExtractionStrategy(); + } + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 10; + /// + /// Starting from `0s`, create sprites at regular intervals. Specify the + /// interval value in seconds. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration Interval { + get { return extractionStrategyCase_ == ExtractionStrategyOneofCase.Interval ? (global::Google.Protobuf.WellKnownTypes.Duration) extractionStrategy_ : null; } + set { + extractionStrategy_ = value; + extractionStrategyCase_ = value == null ? ExtractionStrategyOneofCase.None : ExtractionStrategyOneofCase.Interval; + } + } + + /// Field number for the "quality" field. + public const int QualityFieldNumber = 11; + private int quality_; + /// + /// The quality of the generated sprite sheet. Enter a value between 1 + /// and 100, where 1 is the lowest quality and 100 is the highest quality. + /// The default is 100. A high quality value corresponds to a low image data + /// compression ratio. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Quality { + get { return quality_; } + set { + quality_ = value; + } + } + + private object extractionStrategy_; + /// Enum of possible cases for the "extraction_strategy" oneof. + public enum ExtractionStrategyOneofCase { + None = 0, + TotalCount = 9, + Interval = 10, + } + private ExtractionStrategyOneofCase extractionStrategyCase_ = ExtractionStrategyOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExtractionStrategyOneofCase ExtractionStrategyCase { + get { return extractionStrategyCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearExtractionStrategy() { + extractionStrategyCase_ = ExtractionStrategyOneofCase.None; + extractionStrategy_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SpriteSheet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SpriteSheet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Format != other.Format) return false; + if (FilePrefix != other.FilePrefix) return false; + if (SpriteWidthPixels != other.SpriteWidthPixels) return false; + if (SpriteHeightPixels != other.SpriteHeightPixels) return false; + if (ColumnCount != other.ColumnCount) return false; + if (RowCount != other.RowCount) return false; + if (!object.Equals(StartTimeOffset, other.StartTimeOffset)) return false; + if (!object.Equals(EndTimeOffset, other.EndTimeOffset)) return false; + if (TotalCount != other.TotalCount) return false; + if (!object.Equals(Interval, other.Interval)) return false; + if (Quality != other.Quality) return false; + if (ExtractionStrategyCase != other.ExtractionStrategyCase) 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 (Format.Length != 0) hash ^= Format.GetHashCode(); + if (FilePrefix.Length != 0) hash ^= FilePrefix.GetHashCode(); + if (SpriteWidthPixels != 0) hash ^= SpriteWidthPixels.GetHashCode(); + if (SpriteHeightPixels != 0) hash ^= SpriteHeightPixels.GetHashCode(); + if (ColumnCount != 0) hash ^= ColumnCount.GetHashCode(); + if (RowCount != 0) hash ^= RowCount.GetHashCode(); + if (startTimeOffset_ != null) hash ^= StartTimeOffset.GetHashCode(); + if (endTimeOffset_ != null) hash ^= EndTimeOffset.GetHashCode(); + if (HasTotalCount) hash ^= TotalCount.GetHashCode(); + if (extractionStrategyCase_ == ExtractionStrategyOneofCase.Interval) hash ^= Interval.GetHashCode(); + if (Quality != 0) hash ^= Quality.GetHashCode(); + hash ^= (int) extractionStrategyCase_; + 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 (Format.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Format); + } + if (FilePrefix.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FilePrefix); + } + if (SpriteWidthPixels != 0) { + output.WriteRawTag(24); + output.WriteInt32(SpriteWidthPixels); + } + if (SpriteHeightPixels != 0) { + output.WriteRawTag(32); + output.WriteInt32(SpriteHeightPixels); + } + if (ColumnCount != 0) { + output.WriteRawTag(40); + output.WriteInt32(ColumnCount); + } + if (RowCount != 0) { + output.WriteRawTag(48); + output.WriteInt32(RowCount); + } + if (startTimeOffset_ != null) { + output.WriteRawTag(58); + output.WriteMessage(StartTimeOffset); + } + if (endTimeOffset_ != null) { + output.WriteRawTag(66); + output.WriteMessage(EndTimeOffset); + } + if (HasTotalCount) { + output.WriteRawTag(72); + output.WriteInt32(TotalCount); + } + if (extractionStrategyCase_ == ExtractionStrategyOneofCase.Interval) { + output.WriteRawTag(82); + output.WriteMessage(Interval); + } + if (Quality != 0) { + output.WriteRawTag(88); + output.WriteInt32(Quality); + } + 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 (Format.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Format); + } + if (FilePrefix.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FilePrefix); + } + if (SpriteWidthPixels != 0) { + output.WriteRawTag(24); + output.WriteInt32(SpriteWidthPixels); + } + if (SpriteHeightPixels != 0) { + output.WriteRawTag(32); + output.WriteInt32(SpriteHeightPixels); + } + if (ColumnCount != 0) { + output.WriteRawTag(40); + output.WriteInt32(ColumnCount); + } + if (RowCount != 0) { + output.WriteRawTag(48); + output.WriteInt32(RowCount); + } + if (startTimeOffset_ != null) { + output.WriteRawTag(58); + output.WriteMessage(StartTimeOffset); + } + if (endTimeOffset_ != null) { + output.WriteRawTag(66); + output.WriteMessage(EndTimeOffset); + } + if (HasTotalCount) { + output.WriteRawTag(72); + output.WriteInt32(TotalCount); + } + if (extractionStrategyCase_ == ExtractionStrategyOneofCase.Interval) { + output.WriteRawTag(82); + output.WriteMessage(Interval); + } + if (Quality != 0) { + output.WriteRawTag(88); + output.WriteInt32(Quality); + } + 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 (Format.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Format); + } + if (FilePrefix.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FilePrefix); + } + if (SpriteWidthPixels != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpriteWidthPixels); + } + if (SpriteHeightPixels != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpriteHeightPixels); + } + if (ColumnCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColumnCount); + } + if (RowCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RowCount); + } + if (startTimeOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTimeOffset); + } + if (endTimeOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTimeOffset); + } + if (HasTotalCount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TotalCount); + } + if (extractionStrategyCase_ == ExtractionStrategyOneofCase.Interval) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (Quality != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Quality); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SpriteSheet other) { + if (other == null) { + return; + } + if (other.Format.Length != 0) { + Format = other.Format; + } + if (other.FilePrefix.Length != 0) { + FilePrefix = other.FilePrefix; + } + if (other.SpriteWidthPixels != 0) { + SpriteWidthPixels = other.SpriteWidthPixels; + } + if (other.SpriteHeightPixels != 0) { + SpriteHeightPixels = other.SpriteHeightPixels; + } + if (other.ColumnCount != 0) { + ColumnCount = other.ColumnCount; + } + if (other.RowCount != 0) { + RowCount = other.RowCount; + } + if (other.startTimeOffset_ != null) { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartTimeOffset.MergeFrom(other.StartTimeOffset); + } + if (other.endTimeOffset_ != null) { + if (endTimeOffset_ == null) { + EndTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + EndTimeOffset.MergeFrom(other.EndTimeOffset); + } + if (other.Quality != 0) { + Quality = other.Quality; + } + switch (other.ExtractionStrategyCase) { + case ExtractionStrategyOneofCase.TotalCount: + TotalCount = other.TotalCount; + break; + case ExtractionStrategyOneofCase.Interval: + if (Interval == null) { + Interval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + Interval.MergeFrom(other.Interval); + break; + } + + _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: { + Format = input.ReadString(); + break; + } + case 18: { + FilePrefix = input.ReadString(); + break; + } + case 24: { + SpriteWidthPixels = input.ReadInt32(); + break; + } + case 32: { + SpriteHeightPixels = input.ReadInt32(); + break; + } + case 40: { + ColumnCount = input.ReadInt32(); + break; + } + case 48: { + RowCount = input.ReadInt32(); + break; + } + case 58: { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + break; + } + case 66: { + if (endTimeOffset_ == null) { + EndTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndTimeOffset); + break; + } + case 72: { + TotalCount = input.ReadInt32(); + break; + } + case 82: { + global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration(); + if (extractionStrategyCase_ == ExtractionStrategyOneofCase.Interval) { + subBuilder.MergeFrom(Interval); + } + input.ReadMessage(subBuilder); + Interval = subBuilder; + break; + } + case 88: { + Quality = 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: { + Format = input.ReadString(); + break; + } + case 18: { + FilePrefix = input.ReadString(); + break; + } + case 24: { + SpriteWidthPixels = input.ReadInt32(); + break; + } + case 32: { + SpriteHeightPixels = input.ReadInt32(); + break; + } + case 40: { + ColumnCount = input.ReadInt32(); + break; + } + case 48: { + RowCount = input.ReadInt32(); + break; + } + case 58: { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + break; + } + case 66: { + if (endTimeOffset_ == null) { + EndTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndTimeOffset); + break; + } + case 72: { + TotalCount = input.ReadInt32(); + break; + } + case 82: { + global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration(); + if (extractionStrategyCase_ == ExtractionStrategyOneofCase.Interval) { + subBuilder.MergeFrom(Interval); + } + input.ReadMessage(subBuilder); + Interval = subBuilder; + break; + } + case 88: { + Quality = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Overlay configuration. + /// + public sealed partial class Overlay : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Overlay()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 Overlay() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Overlay(Overlay other) : this() { + image_ = other.image_ != null ? other.image_.Clone() : null; + animations_ = other.animations_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Overlay Clone() { + return new Overlay(this); + } + + /// Field number for the "image" field. + public const int ImageFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.Image image_; + /// + /// Image overlay. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.Image Image { + get { return image_; } + set { + image_ = value; + } + } + + /// Field number for the "animations" field. + public const int AnimationsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_animations_codec + = pb::FieldCodec.ForMessage(18, global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.Animation.Parser); + private readonly pbc::RepeatedField animations_ = new pbc::RepeatedField(); + /// + /// List of Animations. The list should be chronological, without any time + /// overlap. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Animations { + get { return animations_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Overlay); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Overlay other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Image, other.Image)) return false; + if(!animations_.Equals(other.animations_)) 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 (image_ != null) hash ^= Image.GetHashCode(); + hash ^= animations_.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 (image_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Image); + } + animations_.WriteTo(output, _repeated_animations_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 (image_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Image); + } + animations_.WriteTo(ref output, _repeated_animations_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 (image_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Image); + } + size += animations_.CalculateSize(_repeated_animations_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Overlay other) { + if (other == null) { + return; + } + if (other.image_ != null) { + if (image_ == null) { + Image = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.Image(); + } + Image.MergeFrom(other.Image); + } + animations_.Add(other.animations_); + _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 (image_ == null) { + Image = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.Image(); + } + input.ReadMessage(Image); + break; + } + case 18: { + animations_.AddEntriesFrom(input, _repeated_animations_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: { + if (image_ == null) { + Image = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.Image(); + } + input.ReadMessage(Image); + break; + } + case 18: { + animations_.AddEntriesFrom(ref input, _repeated_animations_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Overlay message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Fade type for the overlay: `FADE_IN` or `FADE_OUT`. + /// + public enum FadeType { + /// + /// The fade type is not specified. + /// + [pbr::OriginalName("FADE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Fade the overlay object into view. + /// + [pbr::OriginalName("FADE_IN")] FadeIn = 1, + /// + /// Fade the overlay object out of view. + /// + [pbr::OriginalName("FADE_OUT")] FadeOut = 2, + } + + /// + /// 2D normalized coordinates. Default: `{0.0, 0.0}` + /// + public sealed partial class NormalizedCoordinate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NormalizedCoordinate()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.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 NormalizedCoordinate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NormalizedCoordinate(NormalizedCoordinate other) : this() { + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NormalizedCoordinate Clone() { + return new NormalizedCoordinate(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private double x_; + /// + /// Normalized x coordinate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X { + get { return x_; } + set { + x_ = value; + } + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private double y_; + /// + /// Normalized y coordinate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Y { + get { return y_; } + set { + y_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NormalizedCoordinate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NormalizedCoordinate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Y, other.Y)) 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 (X != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X); + if (Y != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Y); + 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 (X != 0D) { + output.WriteRawTag(9); + output.WriteDouble(X); + } + if (Y != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Y); + } + 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 (X != 0D) { + output.WriteRawTag(9); + output.WriteDouble(X); + } + if (Y != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Y); + } + 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 (X != 0D) { + size += 1 + 8; + } + if (Y != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NormalizedCoordinate other) { + if (other == null) { + return; + } + if (other.X != 0D) { + X = other.X; + } + if (other.Y != 0D) { + Y = other.Y; + } + _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 9: { + X = input.ReadDouble(); + break; + } + case 17: { + Y = input.ReadDouble(); + 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 9: { + X = input.ReadDouble(); + break; + } + case 17: { + Y = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Overlaid image. + /// + public sealed partial class Image : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Image()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.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 Image() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Image(Image other) : this() { + uri_ = other.uri_; + resolution_ = other.resolution_ != null ? other.resolution_.Clone() : null; + alpha_ = other.alpha_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Image Clone() { + return new Image(this); + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 1; + private string uri_ = ""; + /// + /// Required. URI of the image in Cloud Storage. For example, + /// `gs://bucket/inputs/image.png`. Only PNG and JPEG images are supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resolution" field. + public const int ResolutionFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate resolution_; + /// + /// Normalized image resolution, based on output video resolution. Valid + /// values: `0.0`–`1.0`. To respect the original image aspect ratio, set + /// either `x` or `y` to `0.0`. To use the original image resolution, set + /// both `x` and `y` to `0.0`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate Resolution { + get { return resolution_; } + set { + resolution_ = value; + } + } + + /// Field number for the "alpha" field. + public const int AlphaFieldNumber = 3; + private double alpha_; + /// + /// Target image opacity. Valid values are from `1.0` (solid, default) to + /// `0.0` (transparent), exclusive. Set this to a value greater than `0.0`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Alpha { + get { return alpha_; } + set { + alpha_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Image); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Image other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uri != other.Uri) return false; + if (!object.Equals(Resolution, other.Resolution)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Alpha, other.Alpha)) 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 (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (resolution_ != null) hash ^= Resolution.GetHashCode(); + if (Alpha != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Alpha); + 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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + if (resolution_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Resolution); + } + if (Alpha != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Alpha); + } + 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 (Uri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uri); + } + if (resolution_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Resolution); + } + if (Alpha != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Alpha); + } + 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 (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (resolution_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resolution); + } + if (Alpha != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Image other) { + if (other == null) { + return; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.resolution_ != null) { + if (resolution_ == null) { + Resolution = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate(); + } + Resolution.MergeFrom(other.Resolution); + } + if (other.Alpha != 0D) { + Alpha = other.Alpha; + } + _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: { + Uri = input.ReadString(); + break; + } + case 18: { + if (resolution_ == null) { + Resolution = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate(); + } + input.ReadMessage(Resolution); + break; + } + case 25: { + Alpha = input.ReadDouble(); + 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: { + Uri = input.ReadString(); + break; + } + case 18: { + if (resolution_ == null) { + Resolution = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate(); + } + input.ReadMessage(Resolution); + break; + } + case 25: { + Alpha = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Display static overlay object. + /// + public sealed partial class AnimationStatic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AnimationStatic()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.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 AnimationStatic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AnimationStatic(AnimationStatic other) : this() { + xy_ = other.xy_ != null ? other.xy_.Clone() : null; + startTimeOffset_ = other.startTimeOffset_ != null ? other.startTimeOffset_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AnimationStatic Clone() { + return new AnimationStatic(this); + } + + /// Field number for the "xy" field. + public const int XyFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate xy_; + /// + /// Normalized coordinates based on output video resolution. Valid + /// values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay + /// object. For example, use the x and y coordinates {0,0} to position the + /// top-left corner of the overlay animation in the top-left corner of the + /// output video. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate Xy { + get { return xy_; } + set { + xy_ = value; + } + } + + /// Field number for the "start_time_offset" field. + public const int StartTimeOffsetFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration startTimeOffset_; + /// + /// The time to start displaying the overlay object, in seconds. Default: 0 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartTimeOffset { + get { return startTimeOffset_; } + set { + startTimeOffset_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AnimationStatic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AnimationStatic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Xy, other.Xy)) return false; + if (!object.Equals(StartTimeOffset, other.StartTimeOffset)) 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 (xy_ != null) hash ^= Xy.GetHashCode(); + if (startTimeOffset_ != null) hash ^= StartTimeOffset.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 (xy_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Xy); + } + if (startTimeOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTimeOffset); + } + 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 (xy_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Xy); + } + if (startTimeOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTimeOffset); + } + 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 (xy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Xy); + } + if (startTimeOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTimeOffset); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AnimationStatic other) { + if (other == null) { + return; + } + if (other.xy_ != null) { + if (xy_ == null) { + Xy = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate(); + } + Xy.MergeFrom(other.Xy); + } + if (other.startTimeOffset_ != null) { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartTimeOffset.MergeFrom(other.StartTimeOffset); + } + _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 (xy_ == null) { + Xy = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate(); + } + input.ReadMessage(Xy); + break; + } + case 18: { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + 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 (xy_ == null) { + Xy = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate(); + } + input.ReadMessage(Xy); + break; + } + case 18: { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + break; + } + } + } + } + #endif + + } + + /// + /// Display overlay object with fade animation. + /// + public sealed partial class AnimationFade : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AnimationFade()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.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 AnimationFade() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AnimationFade(AnimationFade other) : this() { + fadeType_ = other.fadeType_; + xy_ = other.xy_ != null ? other.xy_.Clone() : null; + startTimeOffset_ = other.startTimeOffset_ != null ? other.startTimeOffset_.Clone() : null; + endTimeOffset_ = other.endTimeOffset_ != null ? other.endTimeOffset_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AnimationFade Clone() { + return new AnimationFade(this); + } + + /// Field number for the "fade_type" field. + public const int FadeTypeFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.FadeType fadeType_ = global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.FadeType.Unspecified; + /// + /// Required. Type of fade animation: `FADE_IN` or `FADE_OUT`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.FadeType FadeType { + get { return fadeType_; } + set { + fadeType_ = value; + } + } + + /// Field number for the "xy" field. + public const int XyFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate xy_; + /// + /// Normalized coordinates based on output video resolution. Valid + /// values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay + /// object. For example, use the x and y coordinates {0,0} to position the + /// top-left corner of the overlay animation in the top-left corner of the + /// output video. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate Xy { + get { return xy_; } + set { + xy_ = value; + } + } + + /// Field number for the "start_time_offset" field. + public const int StartTimeOffsetFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Duration startTimeOffset_; + /// + /// The time to start the fade animation, in seconds. Default: 0 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartTimeOffset { + get { return startTimeOffset_; } + set { + startTimeOffset_ = value; + } + } + + /// Field number for the "end_time_offset" field. + public const int EndTimeOffsetFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration endTimeOffset_; + /// + /// The time to end the fade animation, in seconds. Default: + /// `start_time_offset` + 1s + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration EndTimeOffset { + get { return endTimeOffset_; } + set { + endTimeOffset_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AnimationFade); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AnimationFade other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FadeType != other.FadeType) return false; + if (!object.Equals(Xy, other.Xy)) return false; + if (!object.Equals(StartTimeOffset, other.StartTimeOffset)) return false; + if (!object.Equals(EndTimeOffset, other.EndTimeOffset)) 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 (FadeType != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.FadeType.Unspecified) hash ^= FadeType.GetHashCode(); + if (xy_ != null) hash ^= Xy.GetHashCode(); + if (startTimeOffset_ != null) hash ^= StartTimeOffset.GetHashCode(); + if (endTimeOffset_ != null) hash ^= EndTimeOffset.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 (FadeType != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.FadeType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) FadeType); + } + if (xy_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Xy); + } + if (startTimeOffset_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTimeOffset); + } + if (endTimeOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTimeOffset); + } + 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 (FadeType != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.FadeType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) FadeType); + } + if (xy_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Xy); + } + if (startTimeOffset_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTimeOffset); + } + if (endTimeOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTimeOffset); + } + 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 (FadeType != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.FadeType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FadeType); + } + if (xy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Xy); + } + if (startTimeOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTimeOffset); + } + if (endTimeOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTimeOffset); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AnimationFade other) { + if (other == null) { + return; + } + if (other.FadeType != global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.FadeType.Unspecified) { + FadeType = other.FadeType; + } + if (other.xy_ != null) { + if (xy_ == null) { + Xy = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate(); + } + Xy.MergeFrom(other.Xy); + } + if (other.startTimeOffset_ != null) { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartTimeOffset.MergeFrom(other.StartTimeOffset); + } + if (other.endTimeOffset_ != null) { + if (endTimeOffset_ == null) { + EndTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + EndTimeOffset.MergeFrom(other.EndTimeOffset); + } + _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: { + FadeType = (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.FadeType) input.ReadEnum(); + break; + } + case 18: { + if (xy_ == null) { + Xy = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate(); + } + input.ReadMessage(Xy); + break; + } + case 26: { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + break; + } + case 34: { + if (endTimeOffset_ == null) { + EndTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndTimeOffset); + 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: { + FadeType = (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.FadeType) input.ReadEnum(); + break; + } + case 18: { + if (xy_ == null) { + Xy = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.NormalizedCoordinate(); + } + input.ReadMessage(Xy); + break; + } + case 26: { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + break; + } + case 34: { + if (endTimeOffset_ == null) { + EndTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndTimeOffset); + break; + } + } + } + } + #endif + + } + + /// + /// End previous overlay animation from the video. Without AnimationEnd, the + /// overlay object will keep the state of previous animation until the end of + /// the video. + /// + public sealed partial class AnimationEnd : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AnimationEnd()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.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 AnimationEnd() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AnimationEnd(AnimationEnd other) : this() { + startTimeOffset_ = other.startTimeOffset_ != null ? other.startTimeOffset_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AnimationEnd Clone() { + return new AnimationEnd(this); + } + + /// Field number for the "start_time_offset" field. + public const int StartTimeOffsetFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration startTimeOffset_; + /// + /// The time to end overlay object, in seconds. Default: 0 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartTimeOffset { + get { return startTimeOffset_; } + set { + startTimeOffset_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AnimationEnd); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AnimationEnd other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StartTimeOffset, other.StartTimeOffset)) 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 (startTimeOffset_ != null) hash ^= StartTimeOffset.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 (startTimeOffset_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTimeOffset); + } + 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 (startTimeOffset_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTimeOffset); + } + 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 (startTimeOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTimeOffset); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AnimationEnd other) { + if (other == null) { + return; + } + if (other.startTimeOffset_ != null) { + if (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartTimeOffset.MergeFrom(other.StartTimeOffset); + } + _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 (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + 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 (startTimeOffset_ == null) { + StartTimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartTimeOffset); + break; + } + } + } + } + #endif + + } + + /// + /// Animation types. + /// + public sealed partial class Animation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Animation()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Descriptor.NestedTypes[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 Animation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Animation(Animation other) : this() { + switch (other.AnimationTypeCase) { + case AnimationTypeOneofCase.AnimationStatic: + AnimationStatic = other.AnimationStatic.Clone(); + break; + case AnimationTypeOneofCase.AnimationFade: + AnimationFade = other.AnimationFade.Clone(); + break; + case AnimationTypeOneofCase.AnimationEnd: + AnimationEnd = other.AnimationEnd.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Animation Clone() { + return new Animation(this); + } + + /// Field number for the "animation_static" field. + public const int AnimationStaticFieldNumber = 1; + /// + /// Display static overlay object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationStatic AnimationStatic { + get { return animationTypeCase_ == AnimationTypeOneofCase.AnimationStatic ? (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationStatic) animationType_ : null; } + set { + animationType_ = value; + animationTypeCase_ = value == null ? AnimationTypeOneofCase.None : AnimationTypeOneofCase.AnimationStatic; + } + } + + /// Field number for the "animation_fade" field. + public const int AnimationFadeFieldNumber = 2; + /// + /// Display overlay object with fade animation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationFade AnimationFade { + get { return animationTypeCase_ == AnimationTypeOneofCase.AnimationFade ? (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationFade) animationType_ : null; } + set { + animationType_ = value; + animationTypeCase_ = value == null ? AnimationTypeOneofCase.None : AnimationTypeOneofCase.AnimationFade; + } + } + + /// Field number for the "animation_end" field. + public const int AnimationEndFieldNumber = 3; + /// + /// End previous animation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationEnd AnimationEnd { + get { return animationTypeCase_ == AnimationTypeOneofCase.AnimationEnd ? (global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationEnd) animationType_ : null; } + set { + animationType_ = value; + animationTypeCase_ = value == null ? AnimationTypeOneofCase.None : AnimationTypeOneofCase.AnimationEnd; + } + } + + private object animationType_; + /// Enum of possible cases for the "animation_type" oneof. + public enum AnimationTypeOneofCase { + None = 0, + AnimationStatic = 1, + AnimationFade = 2, + AnimationEnd = 3, + } + private AnimationTypeOneofCase animationTypeCase_ = AnimationTypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AnimationTypeOneofCase AnimationTypeCase { + get { return animationTypeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAnimationType() { + animationTypeCase_ = AnimationTypeOneofCase.None; + animationType_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Animation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Animation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AnimationStatic, other.AnimationStatic)) return false; + if (!object.Equals(AnimationFade, other.AnimationFade)) return false; + if (!object.Equals(AnimationEnd, other.AnimationEnd)) return false; + if (AnimationTypeCase != other.AnimationTypeCase) 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 (animationTypeCase_ == AnimationTypeOneofCase.AnimationStatic) hash ^= AnimationStatic.GetHashCode(); + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationFade) hash ^= AnimationFade.GetHashCode(); + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationEnd) hash ^= AnimationEnd.GetHashCode(); + hash ^= (int) animationTypeCase_; + 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 (animationTypeCase_ == AnimationTypeOneofCase.AnimationStatic) { + output.WriteRawTag(10); + output.WriteMessage(AnimationStatic); + } + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationFade) { + output.WriteRawTag(18); + output.WriteMessage(AnimationFade); + } + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationEnd) { + output.WriteRawTag(26); + output.WriteMessage(AnimationEnd); + } + 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 (animationTypeCase_ == AnimationTypeOneofCase.AnimationStatic) { + output.WriteRawTag(10); + output.WriteMessage(AnimationStatic); + } + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationFade) { + output.WriteRawTag(18); + output.WriteMessage(AnimationFade); + } + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationEnd) { + output.WriteRawTag(26); + output.WriteMessage(AnimationEnd); + } + 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 (animationTypeCase_ == AnimationTypeOneofCase.AnimationStatic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnimationStatic); + } + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationFade) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnimationFade); + } + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationEnd) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnimationEnd); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Animation other) { + if (other == null) { + return; + } + switch (other.AnimationTypeCase) { + case AnimationTypeOneofCase.AnimationStatic: + if (AnimationStatic == null) { + AnimationStatic = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationStatic(); + } + AnimationStatic.MergeFrom(other.AnimationStatic); + break; + case AnimationTypeOneofCase.AnimationFade: + if (AnimationFade == null) { + AnimationFade = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationFade(); + } + AnimationFade.MergeFrom(other.AnimationFade); + break; + case AnimationTypeOneofCase.AnimationEnd: + if (AnimationEnd == null) { + AnimationEnd = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationEnd(); + } + AnimationEnd.MergeFrom(other.AnimationEnd); + break; + } + + _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: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationStatic subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationStatic(); + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationStatic) { + subBuilder.MergeFrom(AnimationStatic); + } + input.ReadMessage(subBuilder); + AnimationStatic = subBuilder; + break; + } + case 18: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationFade subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationFade(); + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationFade) { + subBuilder.MergeFrom(AnimationFade); + } + input.ReadMessage(subBuilder); + AnimationFade = subBuilder; + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationEnd subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationEnd(); + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationEnd) { + subBuilder.MergeFrom(AnimationEnd); + } + input.ReadMessage(subBuilder); + AnimationEnd = subBuilder; + 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: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationStatic subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationStatic(); + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationStatic) { + subBuilder.MergeFrom(AnimationStatic); + } + input.ReadMessage(subBuilder); + AnimationStatic = subBuilder; + break; + } + case 18: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationFade subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationFade(); + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationFade) { + subBuilder.MergeFrom(AnimationFade); + } + input.ReadMessage(subBuilder); + AnimationFade = subBuilder; + break; + } + case 26: { + global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationEnd subBuilder = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.Overlay.Types.AnimationEnd(); + if (animationTypeCase_ == AnimationTypeOneofCase.AnimationEnd) { + subBuilder.MergeFrom(AnimationEnd); + } + input.ReadMessage(subBuilder); + AnimationEnd = subBuilder; + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Preprocessing configurations. + /// + public sealed partial class PreprocessingConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PreprocessingConfig()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.DataReflection.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 PreprocessingConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PreprocessingConfig(PreprocessingConfig other) : this() { + color_ = other.color_ != null ? other.color_.Clone() : null; + denoise_ = other.denoise_ != null ? other.denoise_.Clone() : null; + deblock_ = other.deblock_ != null ? other.deblock_.Clone() : null; + audio_ = other.audio_ != null ? other.audio_.Clone() : null; + crop_ = other.crop_ != null ? other.crop_.Clone() : null; + pad_ = other.pad_ != null ? other.pad_.Clone() : null; + deinterlace_ = other.deinterlace_ != null ? other.deinterlace_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PreprocessingConfig Clone() { + return new PreprocessingConfig(this); + } + + /// Field number for the "color" field. + public const int ColorFieldNumber = 1; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Color color_; + /// + /// Color preprocessing configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Color Color { + get { return color_; } + set { + color_ = value; + } + } + + /// Field number for the "denoise" field. + public const int DenoiseFieldNumber = 2; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Denoise denoise_; + /// + /// Denoise preprocessing configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Denoise Denoise { + get { return denoise_; } + set { + denoise_ = value; + } + } + + /// Field number for the "deblock" field. + public const int DeblockFieldNumber = 3; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deblock deblock_; + /// + /// Deblock preprocessing configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deblock Deblock { + get { return deblock_; } + set { + deblock_ = value; + } + } + + /// Field number for the "audio" field. + public const int AudioFieldNumber = 4; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Audio audio_; + /// + /// Audio preprocessing configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Audio Audio { + get { return audio_; } + set { + audio_ = value; + } + } + + /// Field number for the "crop" field. + public const int CropFieldNumber = 5; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Crop crop_; + /// + /// Specify the video cropping configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Crop Crop { + get { return crop_; } + set { + crop_ = value; + } + } + + /// Field number for the "pad" field. + public const int PadFieldNumber = 6; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Pad pad_; + /// + /// Specify the video pad filter configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Pad Pad { + get { return pad_; } + set { + pad_ = value; + } + } + + /// Field number for the "deinterlace" field. + public const int DeinterlaceFieldNumber = 7; + private global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deinterlace deinterlace_; + /// + /// Specify the video deinterlace configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deinterlace Deinterlace { + get { return deinterlace_; } + set { + deinterlace_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PreprocessingConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PreprocessingConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Color, other.Color)) return false; + if (!object.Equals(Denoise, other.Denoise)) return false; + if (!object.Equals(Deblock, other.Deblock)) return false; + if (!object.Equals(Audio, other.Audio)) return false; + if (!object.Equals(Crop, other.Crop)) return false; + if (!object.Equals(Pad, other.Pad)) return false; + if (!object.Equals(Deinterlace, other.Deinterlace)) 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 (color_ != null) hash ^= Color.GetHashCode(); + if (denoise_ != null) hash ^= Denoise.GetHashCode(); + if (deblock_ != null) hash ^= Deblock.GetHashCode(); + if (audio_ != null) hash ^= Audio.GetHashCode(); + if (crop_ != null) hash ^= Crop.GetHashCode(); + if (pad_ != null) hash ^= Pad.GetHashCode(); + if (deinterlace_ != null) hash ^= Deinterlace.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 (color_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Color); + } + if (denoise_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Denoise); + } + if (deblock_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Deblock); + } + if (audio_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Audio); + } + if (crop_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Crop); + } + if (pad_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Pad); + } + if (deinterlace_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Deinterlace); + } + 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 (color_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Color); + } + if (denoise_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Denoise); + } + if (deblock_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Deblock); + } + if (audio_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Audio); + } + if (crop_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Crop); + } + if (pad_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Pad); + } + if (deinterlace_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Deinterlace); + } + 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 (color_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color); + } + if (denoise_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Denoise); + } + if (deblock_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Deblock); + } + if (audio_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Audio); + } + if (crop_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Crop); + } + if (pad_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Pad); + } + if (deinterlace_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Deinterlace); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PreprocessingConfig other) { + if (other == null) { + return; + } + if (other.color_ != null) { + if (color_ == null) { + Color = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Color(); + } + Color.MergeFrom(other.Color); + } + if (other.denoise_ != null) { + if (denoise_ == null) { + Denoise = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Denoise(); + } + Denoise.MergeFrom(other.Denoise); + } + if (other.deblock_ != null) { + if (deblock_ == null) { + Deblock = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deblock(); + } + Deblock.MergeFrom(other.Deblock); + } + if (other.audio_ != null) { + if (audio_ == null) { + Audio = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Audio(); + } + Audio.MergeFrom(other.Audio); + } + if (other.crop_ != null) { + if (crop_ == null) { + Crop = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Crop(); + } + Crop.MergeFrom(other.Crop); + } + if (other.pad_ != null) { + if (pad_ == null) { + Pad = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Pad(); + } + Pad.MergeFrom(other.Pad); + } + if (other.deinterlace_ != null) { + if (deinterlace_ == null) { + Deinterlace = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deinterlace(); + } + Deinterlace.MergeFrom(other.Deinterlace); + } + _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 (color_ == null) { + Color = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Color(); + } + input.ReadMessage(Color); + break; + } + case 18: { + if (denoise_ == null) { + Denoise = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Denoise(); + } + input.ReadMessage(Denoise); + break; + } + case 26: { + if (deblock_ == null) { + Deblock = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deblock(); + } + input.ReadMessage(Deblock); + break; + } + case 34: { + if (audio_ == null) { + Audio = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Audio(); + } + input.ReadMessage(Audio); + break; + } + case 42: { + if (crop_ == null) { + Crop = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Crop(); + } + input.ReadMessage(Crop); + break; + } + case 50: { + if (pad_ == null) { + Pad = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Pad(); + } + input.ReadMessage(Pad); + break; + } + case 58: { + if (deinterlace_ == null) { + Deinterlace = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deinterlace(); + } + input.ReadMessage(Deinterlace); + 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 (color_ == null) { + Color = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Color(); + } + input.ReadMessage(Color); + break; + } + case 18: { + if (denoise_ == null) { + Denoise = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Denoise(); + } + input.ReadMessage(Denoise); + break; + } + case 26: { + if (deblock_ == null) { + Deblock = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deblock(); + } + input.ReadMessage(Deblock); + break; + } + case 34: { + if (audio_ == null) { + Audio = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Audio(); + } + input.ReadMessage(Audio); + break; + } + case 42: { + if (crop_ == null) { + Crop = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Crop(); + } + input.ReadMessage(Crop); + break; + } + case 50: { + if (pad_ == null) { + Pad = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Pad(); + } + input.ReadMessage(Pad); + break; + } + case 58: { + if (deinterlace_ == null) { + Deinterlace = new global::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.Types.Deinterlace(); + } + input.ReadMessage(Deinterlace); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the PreprocessingConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Color preprocessing configuration. + /// + /// **Note:** This configuration is not supported. + /// + public sealed partial class Color : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Color()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.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 Color() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Color(Color other) : this() { + saturation_ = other.saturation_; + contrast_ = other.contrast_; + brightness_ = other.brightness_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Color Clone() { + return new Color(this); + } + + /// Field number for the "saturation" field. + public const int SaturationFieldNumber = 1; + private double saturation_; + /// + /// Control color saturation of the video. Enter a value between -1 and 1, + /// where -1 is fully desaturated and 1 is maximum saturation. 0 is no + /// change. The default is 0. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Saturation { + get { return saturation_; } + set { + saturation_ = value; + } + } + + /// Field number for the "contrast" field. + public const int ContrastFieldNumber = 2; + private double contrast_; + /// + /// Control black and white contrast of the video. Enter a value between -1 + /// and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no + /// change. The default is 0. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Contrast { + get { return contrast_; } + set { + contrast_ = value; + } + } + + /// Field number for the "brightness" field. + public const int BrightnessFieldNumber = 3; + private double brightness_; + /// + /// Control brightness of the video. Enter a value between -1 and 1, where -1 + /// is minimum brightness and 1 is maximum brightness. 0 is no change. The + /// default is 0. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Brightness { + get { return brightness_; } + set { + brightness_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Color); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Color other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Saturation, other.Saturation)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Contrast, other.Contrast)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Brightness, other.Brightness)) 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 (Saturation != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Saturation); + if (Contrast != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Contrast); + if (Brightness != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Brightness); + 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 (Saturation != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Saturation); + } + if (Contrast != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Contrast); + } + if (Brightness != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Brightness); + } + 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 (Saturation != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Saturation); + } + if (Contrast != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Contrast); + } + if (Brightness != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Brightness); + } + 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 (Saturation != 0D) { + size += 1 + 8; + } + if (Contrast != 0D) { + size += 1 + 8; + } + if (Brightness != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Color other) { + if (other == null) { + return; + } + if (other.Saturation != 0D) { + Saturation = other.Saturation; + } + if (other.Contrast != 0D) { + Contrast = other.Contrast; + } + if (other.Brightness != 0D) { + Brightness = other.Brightness; + } + _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 9: { + Saturation = input.ReadDouble(); + break; + } + case 17: { + Contrast = input.ReadDouble(); + break; + } + case 25: { + Brightness = input.ReadDouble(); + 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 9: { + Saturation = input.ReadDouble(); + break; + } + case 17: { + Contrast = input.ReadDouble(); + break; + } + case 25: { + Brightness = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Denoise preprocessing configuration. + /// + /// **Note:** This configuration is not supported. + /// + public sealed partial class Denoise : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Denoise()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.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 Denoise() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Denoise(Denoise other) : this() { + strength_ = other.strength_; + tune_ = other.tune_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Denoise Clone() { + return new Denoise(this); + } + + /// Field number for the "strength" field. + public const int StrengthFieldNumber = 1; + private double strength_; + /// + /// Set strength of the denoise. Enter a value between 0 and 1. The higher + /// the value, the smoother the image. 0 is no denoising. The default is 0. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Strength { + get { return strength_; } + set { + strength_ = value; + } + } + + /// Field number for the "tune" field. + public const int TuneFieldNumber = 2; + private string tune_ = ""; + /// + /// Set the denoiser mode. The default is `standard`. + /// + /// Supported denoiser modes: + /// + /// - `standard` + /// - `grain` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tune { + get { return tune_; } + set { + tune_ = 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 Denoise); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Denoise other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Strength, other.Strength)) return false; + if (Tune != other.Tune) 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 (Strength != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Strength); + if (Tune.Length != 0) hash ^= Tune.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 (Strength != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Strength); + } + if (Tune.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Tune); + } + 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 (Strength != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Strength); + } + if (Tune.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Tune); + } + 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 (Strength != 0D) { + size += 1 + 8; + } + if (Tune.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Tune); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Denoise other) { + if (other == null) { + return; + } + if (other.Strength != 0D) { + Strength = other.Strength; + } + if (other.Tune.Length != 0) { + Tune = other.Tune; + } + _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 9: { + Strength = input.ReadDouble(); + break; + } + case 18: { + Tune = 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 9: { + Strength = input.ReadDouble(); + break; + } + case 18: { + Tune = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Deblock preprocessing configuration. + /// + /// **Note:** This configuration is not supported. + /// + public sealed partial class Deblock : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Deblock()); + 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::Google.Events.Protobuf.Cloud.Video.Transcoder.V1.PreprocessingConfig.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 Deblock() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Deblock(Deblock other) : this() { + strength_ = other.strength_; + enabled_ = other.enabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Deblock Clone() { + return new Deblock(this); + } + + /// Field number for the "strength" field. + public const int StrengthFieldNumber = 1; + private double strength_; + /// + /// Set strength of the deblocker. Enter a value between 0 and 1. The higher + /// the value, the stronger the block removal. 0 is no deblocking. The + /// default is 0. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Strength { + get { return strength_; } + set { + strength_ = value; + } + } + + /// Field number for the "enabled" field. + public const int EnabledFieldNumber = 2; + private bool enabled_; + /// + /// Enable deblocker. The default is `false`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Enabled { + get { return enabled_; } + set { + enabled_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Deblock); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Deblock other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Strength, other.Strength)) return false; + if (Enabled != other.Enabled) 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 (Strength != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Strength); + if (Enabled != false) hash ^= Enabled.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 (Strength != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Strength); + } + if (Enabled != false) { + output.WriteRawTag(16); + output.WriteBool(Enabled); + } + 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 (Strength != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Strength); + } + if (Enabled != false) { + output.WriteRawTag(16); + output.WriteBool(Enabled); + } + 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 (Strength != 0D) { + size += 1 + 8; + } + if (Enabled != 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(Deblock other) { + if (other == null) { + return; + } + if (other.Strength != 0D) { + Strength = other.Strength; + } + if (other.Enabled != false) { + Enabled = other.Enabled; + } + _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 9: { + Strength = input.ReadDouble(); + break; + } + case 16: { + Enabled = 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 9: { + Strength = input.ReadDouble(); + break; + } + case 16: { + Enabled = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Audio preprocessing configuration. + /// + public sealed partial class Audio : pb::IMessage