Content-Length: 467360 | pFad | https://github.com/googleapis/java-bigquerystorage/commit/1a079ee0761bad2e942081f7f02b530f32e55afe

14 feat: add proto annotation for non-ascii field mapping (#1776) · googleapis/java-bigquerystorage@1a079ee · GitHub
Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 1a079ee

Browse files
feat: add proto annotation for non-ascii field mapping (#1776)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 473815595 Source-Link: googleapis/googleapis@46cfc4c Source-Link: https://github.com/googleapis/googleapis-gen/commit/955ca31d81100d81ed7e0ae0522358ac45d53cc9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTU1Y2EzMWQ4MTEwMGQ4MWVkN2UwYWUwNTIyMzU4YWM0NWQ1M2NjOSJ9
1 parent 450f8ff commit 1a079ee

File tree

2 files changed

+114
-0
lines changed

2 files changed

+114
-0
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*
2+
* Copyright 2020 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
// Generated by the protocol buffer compiler. DO NOT EDIT!
17+
// source: google/cloud/bigquery/storage/v1/annotations.proto
18+
19+
package com.google.cloud.bigquery.storage.v1;
20+
21+
public final class AnnotationsProto {
22+
private AnnotationsProto() {}
23+
24+
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
25+
registry.add(com.google.cloud.bigquery.storage.v1.AnnotationsProto.columnName);
26+
}
27+
28+
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
29+
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
30+
}
31+
32+
public static final int COLUMN_NAME_FIELD_NUMBER = 454943157;
33+
/**
34+
*
35+
*
36+
* <pre>
37+
* Setting the column_name extension allows users to reference
38+
* bigquery column independently of the field name in the protocol buffer
39+
* message.
40+
* The intended use of this annotation is to reference a destination column
41+
* named using characters unavailable for protobuf field names (e.g. unicode
42+
* characters).
43+
* More details about BigQuery naming limitations can be found here:
44+
* https://cloud.google.com/bigquery/docs/schemas#column_names
45+
* This extension is currently experimental.
46+
* </pre>
47+
*
48+
* <code>extend .google.protobuf.FieldOptions { ... }</code>
49+
*/
50+
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<
51+
com.google.protobuf.DescriptorProtos.FieldOptions, java.lang.String>
52+
columnName =
53+
com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension(
54+
java.lang.String.class, null);
55+
56+
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
57+
return descriptor;
58+
}
59+
60+
private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
61+
62+
static {
63+
java.lang.String[] descriptorData = {
64+
"\n2google/cloud/bigquery/storage/v1/annot"
65+
+ "ations.proto\022 google.cloud.bigquery.stor"
66+
+ "age.v1\032 google/protobuf/descriptor.proto"
67+
+ ":9\n\013column_name\022\035.google.protobuf.FieldO"
68+
+ "ptions\030\265\303\367\330\001 \001(\t\210\001\001B\311\001\n$com.google.cloud"
69+
+ ".bigquery.storage.v1B\020AnnotationsProtoP\001"
70+
+ "ZGgoogle.golang.org/genproto/googleapis/"
71+
+ "cloud/bigquery/storage/v1;storage\252\002 Goog"
72+
+ "le.Cloud.BigQuery.Storage.V1\312\002 Google\\Cl"
73+
+ "oud\\BigQuery\\Storage\\V1b\006proto3"
74+
};
75+
descriptor =
76+
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
77+
descriptorData,
78+
new com.google.protobuf.Descriptors.FileDescriptor[] {
79+
com.google.protobuf.DescriptorProtos.getDescriptor(),
80+
});
81+
columnName.internalInit(descriptor.getExtensions().get(0));
82+
com.google.protobuf.DescriptorProtos.getDescriptor();
83+
}
84+
85+
// @@protoc_insertion_point(outer_class_scope)
86+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
syntax = "proto3";
2+
3+
package google.cloud.bigquery.storage.v1;
4+
5+
import "google/protobuf/descriptor.proto";
6+
7+
option csharp_namespace = "Google.Cloud.BigQuery.Storage.V1";
8+
option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1;storage";
9+
option java_package = "com.google.cloud.bigquery.storage.v1";
10+
option java_multiple_files = true;
11+
option java_outer_classname = "AnnotationsProto";
12+
option php_namespace = "Google\\Cloud\\BigQuery\\Storage\\V1";
13+
14+
extend google.protobuf.FieldOptions {
15+
// Setting the column_name extension allows users to reference
16+
// bigquery column independently of the field name in the protocol buffer
17+
// message.
18+
//
19+
// The intended use of this annotation is to reference a destination column
20+
// named using characters unavailable for protobuf field names (e.g. unicode
21+
// characters).
22+
//
23+
// More details about BigQuery naming limitations can be found here:
24+
// https://cloud.google.com/bigquery/docs/schemas#column_names
25+
//
26+
// This extension is currently experimental.
27+
optional string column_name = 454943157;
28+
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/java-bigquerystorage/commit/1a079ee0761bad2e942081f7f02b530f32e55afe

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy