public sealed class StretchedClusterConfig : IMessage<StretchedClusterConfig>, IEquatable<StretchedClusterConfig>, IDeepCloneable<StretchedClusterConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the VMware Engine v1 API class StretchedClusterConfig.
Required. Zone that will remain operational when connection between the two
zones is lost. Specify the resource name of a zone that belongs to the
region of the private cloud. For example:
projects/{project}/locations/europe-west3-a where {project} can either
be a project number or a project ID.
Required. Additional zone for a higher level of availability and load
balancing. Specify the resource name of a zone that belongs to the region
of the private cloud. For example:
projects/{project}/locations/europe-west3-b where {project} can either
be a project number or a project ID.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eStretchedClusterConfig\u003c/code\u003e class within the Google Cloud VMware Engine v1 API, with the latest version being 1.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStretchedClusterConfig\u003c/code\u003e class is used to configure a stretched cluster, implementing multiple interfaces for message handling, equality checks, deep cloning, and buffering.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003ePreferredLocation\u003c/code\u003e and \u003ccode\u003eSecondaryLocation\u003c/code\u003e, which are required fields specifying the resource names of the zones for high availability and load balancing.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation details the class's constructors, including a default constructor and one that takes another \u003ccode\u003eStretchedClusterConfig\u003c/code\u003e object as a parameter, allowing for easy instantiation and cloning.\u003c/p\u003e\n"],["\u003cp\u003eIt provides links to navigate the different versions of the documentation for this class, starting from 1.0.0 and going up to the latest 1.6.0 version.\u003c/p\u003e\n"]]],[],null,["# VMware Engine v1 API - Class StretchedClusterConfig (1.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.5.0/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.4.0/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.3.0/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.2.0/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.1.0/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.0.0/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig) \n\n public sealed class StretchedClusterConfig : IMessage\u003cStretchedClusterConfig\u003e, IEquatable\u003cStretchedClusterConfig\u003e, IDeepCloneable\u003cStretchedClusterConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the VMware Engine v1 API class StretchedClusterConfig.\n\nConfiguration of a stretched cluster. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e StretchedClusterConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StretchedClusterConfig](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StretchedClusterConfig](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StretchedClusterConfig](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.VmwareEngine.V1](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.VmwareEngine.V1.dll\n\nConstructors\n------------\n\n### StretchedClusterConfig()\n\n public StretchedClusterConfig()\n\n### StretchedClusterConfig(StretchedClusterConfig)\n\n public StretchedClusterConfig(StretchedClusterConfig other)\n\nProperties\n----------\n\n### PreferredLocation\n\n public string PreferredLocation { get; set; }\n\nRequired. Zone that will remain operational when connection between the two\nzones is lost. Specify the resource name of a zone that belongs to the\nregion of the private cloud. For example:\n`projects/{project}/locations/europe-west3-a` where `{project}` can either\nbe a project number or a project ID.\n\n### PreferredLocationAsLocationName\n\n public LocationName PreferredLocationAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [PreferredLocation](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig#Google_Cloud_VmwareEngine_V1_StretchedClusterConfig_PreferredLocation) resource name property.\n\n### SecondaryLocation\n\n public string SecondaryLocation { get; set; }\n\nRequired. Additional zone for a higher level of availability and load\nbalancing. Specify the resource name of a zone that belongs to the region\nof the private cloud. For example:\n`projects/{project}/locations/europe-west3-b` where `{project}` can either\nbe a project number or a project ID.\n\n### SecondaryLocationAsLocationName\n\n public LocationName SecondaryLocationAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [SecondaryLocation](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.StretchedClusterConfig#Google_Cloud_VmwareEngine_V1_StretchedClusterConfig_SecondaryLocation) resource name property."]]