Note that string is implicitly convertible to BigtableByteString, so the ranges can
be specified using strings as well and their UTF-8 representations will be used for the key.
Note that string is implicitly convertible to BigtableByteString, so the ranges can
be specified using strings as well and their UTF-8 representations will be used for the key.
Open(BigtableByteString?, BigtableByteString?)
public static RowRange Open(BigtableByteString? startKeyOpen, BigtableByteString? endKeyOpen)
Creates a RowRange instance with exclusive bounds.
Note that string is implicitly convertible to BigtableByteString, so the ranges can
be specified using strings as well and their UTF-8 representations will be used for the key.
Note that string is implicitly convertible to BigtableByteString, so the ranges can
be specified using strings as well and their UTF-8 representations will be used for the key.
[[["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-12 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eRowRange\u003c/code\u003e class within the Google Bigtable v2 API for .NET, which is used to define a contiguous range of rows in a Bigtable database.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eRowRange\u003c/code\u003e class is 3.17.0, and there are numerous previous versions available, ranging from 3.16.0 down to 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRowRange\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e, providing methods such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRowRange\u003c/code\u003e objects can be created using static methods like \u003ccode\u003eClosed\u003c/code\u003e, \u003ccode\u003eClosedOpen\u003c/code\u003e, \u003ccode\u003eOpen\u003c/code\u003e, and \u003ccode\u003eOpenClosed\u003c/code\u003e, allowing for the specification of inclusive or exclusive lower and upper bounds for the range, leveraging \u003ccode\u003eBigtableByteString\u003c/code\u003e or strings.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers properties to define the start and end keys of the row range, with distinctions between inclusive (closed) and exclusive (open) boundaries, each represented by \u003ccode\u003eByteString\u003c/code\u003e objects, with helper methods to know if the fields are set.\u003c/p\u003e\n"]]],[],null,["# Google Bigtable v2 API - Class RowRange (3.23.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.23.0 (latest)](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.RowRange)\n- [3.22.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.22.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.21.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.21.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.20.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.20.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.19.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.19.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.18.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.18.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.17.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.16.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.15.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.14.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.13.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.12.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.11.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.10.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.9.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.8.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.7.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.6.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.5.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.4.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.3.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.2.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.1.0/Google.Cloud.Bigtable.V2.RowRange)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.0.0/Google.Cloud.Bigtable.V2.RowRange)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/2.6.0/Google.Cloud.Bigtable.V2.RowRange)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/2.5.0/Google.Cloud.Bigtable.V2.RowRange)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/2.4.0/Google.Cloud.Bigtable.V2.RowRange)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/2.3.0/Google.Cloud.Bigtable.V2.RowRange)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/2.2.0/Google.Cloud.Bigtable.V2.RowRange) \n\n public sealed class RowRange : IMessage\u003cRowRange\u003e, IEquatable\u003cRowRange\u003e, IDeepCloneable\u003cRowRange\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Bigtable v2 API class RowRange.\n\nSpecifies a contiguous range of rows. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RowRange \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RowRange](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.RowRange), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RowRange](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.RowRange), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RowRange](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.RowRange), [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.Bigtable.V2](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Bigtable.V2.dll\n\nConstructors\n------------\n\n### RowRange()\n\n public RowRange()\n\n### RowRange(RowRange)\n\n public RowRange(RowRange other)\n\nProperties\n----------\n\n### EndKeyCase\n\n public RowRange.EndKeyOneofCase EndKeyCase { get; }\n\n### EndKeyClosed\n\n public ByteString EndKeyClosed { get; set; }\n\nUsed when giving an inclusive upper bound for the range.\n\n### EndKeyOpen\n\n public ByteString EndKeyOpen { get; set; }\n\nUsed when giving an exclusive upper bound for the range.\n\n### HasEndKeyClosed\n\n public bool HasEndKeyClosed { get; }\n\nGets whether the \"end_key_closed\" field is set\n\n### HasEndKeyOpen\n\n public bool HasEndKeyOpen { get; }\n\nGets whether the \"end_key_open\" field is set\n\n### HasStartKeyClosed\n\n public bool HasStartKeyClosed { get; }\n\nGets whether the \"start_key_closed\" field is set\n\n### HasStartKeyOpen\n\n public bool HasStartKeyOpen { get; }\n\nGets whether the \"start_key_open\" field is set\n\n### StartKeyCase\n\n public RowRange.StartKeyOneofCase StartKeyCase { get; }\n\n### StartKeyClosed\n\n public ByteString StartKeyClosed { get; set; }\n\nUsed when giving an inclusive lower bound for the range.\n\n### StartKeyOpen\n\n public ByteString StartKeyOpen { get; set; }\n\nUsed when giving an exclusive lower bound for the range.\n\nMethods\n-------\n\n### Closed(BigtableByteString?, BigtableByteString?)\n\n public static RowRange Closed(BigtableByteString? startKeyClosed, BigtableByteString? endKeyClosed)\n\nCreates a [RowRange](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.RowRange) instance with inclusive bounds.\n\n**Remarks** \n\nNote that string is implicitly convertible to [BigtableByteString](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Bigtable.Common.V2/latest/Google.Cloud.Bigtable.Common.V2.BigtableByteString.html), so the ranges can\nbe specified using strings as well and their UTF-8 representations will be used for the key.\n\n### ClosedOpen(BigtableByteString?, BigtableByteString?)\n\n public static RowRange ClosedOpen(BigtableByteString? startKeyClosed, BigtableByteString? endKeyOpen)\n\nCreates a [RowRange](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.RowRange) instance with an inclusive lower bound and an exclusive upper bound.\n\n**Remarks** \n\nNote that string is implicitly convertible to [BigtableByteString](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Bigtable.Common.V2/latest/Google.Cloud.Bigtable.Common.V2.BigtableByteString.html), so the ranges can\nbe specified using strings as well and their UTF-8 representations will be used for the key.\n\n### Open(BigtableByteString?, BigtableByteString?)\n\n public static RowRange Open(BigtableByteString? startKeyOpen, BigtableByteString? endKeyOpen)\n\nCreates a [RowRange](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.RowRange) instance with exclusive bounds.\n\n**Remarks** \n\nNote that string is implicitly convertible to [BigtableByteString](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Bigtable.Common.V2/latest/Google.Cloud.Bigtable.Common.V2.BigtableByteString.html), so the ranges can\nbe specified using strings as well and their UTF-8 representations will be used for the key.\n\n### OpenClosed(BigtableByteString?, BigtableByteString?)\n\n public static RowRange OpenClosed(BigtableByteString? startKeyOpen, BigtableByteString? endKeyClosed)\n\nCreates a [RowRange](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.RowRange) instance with an exclusive lower bound and an inclusive upper bound.\n\n**Remarks** \n\nNote that string is implicitly convertible to [BigtableByteString](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Bigtable.Common.V2/latest/Google.Cloud.Bigtable.Common.V2.BigtableByteString.html), so the ranges can\nbe specified using strings as well and their UTF-8 representations will be used for the key."]]