-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add proto annotation for non-ascii field mapping
PiperOrigin-RevId: 473815595 Source-Link: googleapis/googleapis@46cfc4c Source-Link: googleapis/googleapis-gen@955ca31 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQmlnUXVlcnkuU3RvcmFnZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiOTU1Y2EzMWQ4MTEwMGQ4MWVkN2UwYWUwNTIyMzU4YWM0NWQ1M2NjOSJ9
- Loading branch information
1 parent
a93b264
commit ec6eae4
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
apis/Google.Cloud.BigQuery.Storage.V1/Google.Cloud.BigQuery.Storage.V1/Annotations.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// <auto-generated> | ||
// Generated by the protocol buffer compiler. DO NOT EDIT! | ||
// source: google/cloud/bigquery/storage/v1/annotations.proto | ||
// </auto-generated> | ||
#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.Cloud.BigQuery.Storage.V1 { | ||
|
||
/// <summary>Holder for reflection information generated from google/cloud/bigquery/storage/v1/annotations.proto</summary> | ||
public static partial class AnnotationsReflection { | ||
|
||
#region Descriptor | ||
/// <summary>File descriptor for google/cloud/bigquery/storage/v1/annotations.proto</summary> | ||
public static pbr::FileDescriptor Descriptor { | ||
get { return descriptor; } | ||
} | ||
private static pbr::FileDescriptor descriptor; | ||
|
||
static AnnotationsReflection() { | ||
byte[] descriptorData = global::System.Convert.FromBase64String( | ||
string.Concat( | ||
"CjJnb29nbGUvY2xvdWQvYmlncXVlcnkvc3RvcmFnZS92MS9hbm5vdGF0aW9u", | ||
"cy5wcm90bxIgZ29vZ2xlLmNsb3VkLmJpZ3F1ZXJ5LnN0b3JhZ2UudjEaIGdv", | ||
"b2dsZS9wcm90b2J1Zi9kZXNjcmlwdG9yLnByb3RvOjkKC2NvbHVtbl9uYW1l", | ||
"Eh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucxi1w/fYASABKAmIAQFC", | ||
"yQEKJGNvbS5nb29nbGUuY2xvdWQuYmlncXVlcnkuc3RvcmFnZS52MUIQQW5u", | ||
"b3RhdGlvbnNQcm90b1ABWkdnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", | ||
"b29nbGVhcGlzL2Nsb3VkL2JpZ3F1ZXJ5L3N0b3JhZ2UvdjE7c3RvcmFnZaoC", | ||
"IEdvb2dsZS5DbG91ZC5CaWdRdWVyeS5TdG9yYWdlLlYxygIgR29vZ2xlXENs", | ||
"b3VkXEJpZ1F1ZXJ5XFN0b3JhZ2VcVjFiBnByb3RvMw==")); | ||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | ||
new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, | ||
new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { AnnotationsExtensions.ColumnName }, null)); | ||
} | ||
#endregion | ||
|
||
} | ||
/// <summary>Holder for extension identifiers generated from the top level of google/cloud/bigquery/storage/v1/annotations.proto</summary> | ||
public static partial class AnnotationsExtensions { | ||
/// <summary> | ||
/// Setting the column_name extension allows users to reference | ||
/// bigquery column independently of the field name in the protocol buffer | ||
/// message. | ||
/// | ||
/// The intended use of this annotation is to reference a destination column | ||
/// named using characters unavailable for protobuf field names (e.g. unicode | ||
/// characters). | ||
/// | ||
/// More details about BigQuery naming limitations can be found here: | ||
/// https://cloud.google.com/bigquery/docs/schemas#column_names | ||
/// | ||
/// This extension is currently experimental. | ||
/// </summary> | ||
public static readonly pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, string> ColumnName = | ||
new pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, string>(454943157, pb::FieldCodec.ForString(3639545258, "")); | ||
} | ||
|
||
} | ||
|
||
#endregion Designer generated code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters