Skip to content

Commit 9e2005f

Browse files
authored
feat: add new API version to protos (#1560)
* feat: add new API version to protos
1 parent 887f013 commit 9e2005f

File tree

9 files changed

+464
-200
lines changed

9 files changed

+464
-200
lines changed

baselines/pubsub-api-dump-esm/api.json.baseline

+54-18
Original file line numberDiff line numberDiff line change
@@ -1077,12 +1077,16 @@
10771077
"paramName": "java_string_check_utf8",
10781078
"paramType": "TYPE_BOOL",
10791079
"comments": [
1080-
" If set true, then the Java2 code generator will generate code that",
1081-
" throws an exception whenever an attempt is made to assign a non-UTF-8",
1082-
" byte sequence to a string field.",
1083-
" Message reflection will do the same.",
1084-
" However, an extension field still accepts non-UTF-8 byte sequences.",
1085-
" This option has no effect on when used with the lite runtime."
1080+
" A proto2 file can set this to true to opt in to UTF-8 checking for Java,",
1081+
" which will throw an exception if invalid UTF-8 is parsed from the wire or",
1082+
" assigned to a string field.",
1083+
"",
1084+
" TODO: clarify exactly what kinds of field types this option",
1085+
" applies to, and update these docs accordingly.",
1086+
"",
1087+
" Proto3 files already perform these checks. Setting the option explicitly to",
1088+
" false has no effect: it cannot be used to opt proto3 files out of UTF-8",
1089+
" checks."
10861090
]
10871091
},
10881092
"FileOptions:optimize_for": {
@@ -1939,6 +1943,14 @@
19391943
" https://cloud.google.com/pubsub/lite/docs/reference/rpc"
19401944
]
19411945
},
1946+
"Publishing:rest_reference_documentation_uri": {
1947+
"paramName": "rest_reference_documentation_uri",
1948+
"paramType": "TYPE_STRING",
1949+
"comments": [
1950+
" Optional link to REST reference documentation. Example:",
1951+
" https://cloud.google.com/pubsub/lite/docs/reference/rest"
1952+
]
1953+
},
19421954
"JavaSettings:library_package": {
19431955
"paramName": "library_package",
19441956
"paramType": "TYPE_STRING",
@@ -5951,12 +5963,16 @@
59515963
"paramName": "java_string_check_utf8",
59525964
"paramType": "TYPE_BOOL",
59535965
"comments": [
5954-
" If set true, then the Java2 code generator will generate code that",
5955-
" throws an exception whenever an attempt is made to assign a non-UTF-8",
5956-
" byte sequence to a string field.",
5957-
" Message reflection will do the same.",
5958-
" However, an extension field still accepts non-UTF-8 byte sequences.",
5959-
" This option has no effect on when used with the lite runtime."
5966+
" A proto2 file can set this to true to opt in to UTF-8 checking for Java,",
5967+
" which will throw an exception if invalid UTF-8 is parsed from the wire or",
5968+
" assigned to a string field.",
5969+
"",
5970+
" TODO: clarify exactly what kinds of field types this option",
5971+
" applies to, and update these docs accordingly.",
5972+
"",
5973+
" Proto3 files already perform these checks. Setting the option explicitly to",
5974+
" false has no effect: it cannot be used to opt proto3 files out of UTF-8",
5975+
" checks."
59605976
]
59615977
},
59625978
"FileOptions:optimize_for": {
@@ -6813,6 +6829,14 @@
68136829
" https://cloud.google.com/pubsub/lite/docs/reference/rpc"
68146830
]
68156831
},
6832+
"Publishing:rest_reference_documentation_uri": {
6833+
"paramName": "rest_reference_documentation_uri",
6834+
"paramType": "TYPE_STRING",
6835+
"comments": [
6836+
" Optional link to REST reference documentation. Example:",
6837+
" https://cloud.google.com/pubsub/lite/docs/reference/rest"
6838+
]
6839+
},
68166840
"JavaSettings:library_package": {
68176841
"paramName": "library_package",
68186842
"paramType": "TYPE_STRING",
@@ -11469,12 +11493,16 @@
1146911493
"paramName": "java_string_check_utf8",
1147011494
"paramType": "TYPE_BOOL",
1147111495
"comments": [
11472-
" If set true, then the Java2 code generator will generate code that",
11473-
" throws an exception whenever an attempt is made to assign a non-UTF-8",
11474-
" byte sequence to a string field.",
11475-
" Message reflection will do the same.",
11476-
" However, an extension field still accepts non-UTF-8 byte sequences.",
11477-
" This option has no effect on when used with the lite runtime."
11496+
" A proto2 file can set this to true to opt in to UTF-8 checking for Java,",
11497+
" which will throw an exception if invalid UTF-8 is parsed from the wire or",
11498+
" assigned to a string field.",
11499+
"",
11500+
" TODO: clarify exactly what kinds of field types this option",
11501+
" applies to, and update these docs accordingly.",
11502+
"",
11503+
" Proto3 files already perform these checks. Setting the option explicitly to",
11504+
" false has no effect: it cannot be used to opt proto3 files out of UTF-8",
11505+
" checks."
1147811506
]
1147911507
},
1148011508
"FileOptions:optimize_for": {
@@ -12331,6 +12359,14 @@
1233112359
" https://cloud.google.com/pubsub/lite/docs/reference/rpc"
1233212360
]
1233312361
},
12362+
"Publishing:rest_reference_documentation_uri": {
12363+
"paramName": "rest_reference_documentation_uri",
12364+
"paramType": "TYPE_STRING",
12365+
"comments": [
12366+
" Optional link to REST reference documentation. Example:",
12367+
" https://cloud.google.com/pubsub/lite/docs/reference/rest"
12368+
]
12369+
},
1233412370
"JavaSettings:library_package": {
1233512371
"paramName": "library_package",
1233612372
"paramType": "TYPE_STRING",

baselines/pubsub-api-dump/api.json.baseline

+54-18
Original file line numberDiff line numberDiff line change
@@ -1077,12 +1077,16 @@
10771077
"paramName": "java_string_check_utf8",
10781078
"paramType": "TYPE_BOOL",
10791079
"comments": [
1080-
" If set true, then the Java2 code generator will generate code that",
1081-
" throws an exception whenever an attempt is made to assign a non-UTF-8",
1082-
" byte sequence to a string field.",
1083-
" Message reflection will do the same.",
1084-
" However, an extension field still accepts non-UTF-8 byte sequences.",
1085-
" This option has no effect on when used with the lite runtime."
1080+
" A proto2 file can set this to true to opt in to UTF-8 checking for Java,",
1081+
" which will throw an exception if invalid UTF-8 is parsed from the wire or",
1082+
" assigned to a string field.",
1083+
"",
1084+
" TODO: clarify exactly what kinds of field types this option",
1085+
" applies to, and update these docs accordingly.",
1086+
"",
1087+
" Proto3 files already perform these checks. Setting the option explicitly to",
1088+
" false has no effect: it cannot be used to opt proto3 files out of UTF-8",
1089+
" checks."
10861090
]
10871091
},
10881092
"FileOptions:optimize_for": {
@@ -1939,6 +1943,14 @@
19391943
" https://cloud.google.com/pubsub/lite/docs/reference/rpc"
19401944
]
19411945
},
1946+
"Publishing:rest_reference_documentation_uri": {
1947+
"paramName": "rest_reference_documentation_uri",
1948+
"paramType": "TYPE_STRING",
1949+
"comments": [
1950+
" Optional link to REST reference documentation. Example:",
1951+
" https://cloud.google.com/pubsub/lite/docs/reference/rest"
1952+
]
1953+
},
19421954
"JavaSettings:library_package": {
19431955
"paramName": "library_package",
19441956
"paramType": "TYPE_STRING",
@@ -5951,12 +5963,16 @@
59515963
"paramName": "java_string_check_utf8",
59525964
"paramType": "TYPE_BOOL",
59535965
"comments": [
5954-
" If set true, then the Java2 code generator will generate code that",
5955-
" throws an exception whenever an attempt is made to assign a non-UTF-8",
5956-
" byte sequence to a string field.",
5957-
" Message reflection will do the same.",
5958-
" However, an extension field still accepts non-UTF-8 byte sequences.",
5959-
" This option has no effect on when used with the lite runtime."
5966+
" A proto2 file can set this to true to opt in to UTF-8 checking for Java,",
5967+
" which will throw an exception if invalid UTF-8 is parsed from the wire or",
5968+
" assigned to a string field.",
5969+
"",
5970+
" TODO: clarify exactly what kinds of field types this option",
5971+
" applies to, and update these docs accordingly.",
5972+
"",
5973+
" Proto3 files already perform these checks. Setting the option explicitly to",
5974+
" false has no effect: it cannot be used to opt proto3 files out of UTF-8",
5975+
" checks."
59605976
]
59615977
},
59625978
"FileOptions:optimize_for": {
@@ -6813,6 +6829,14 @@
68136829
" https://cloud.google.com/pubsub/lite/docs/reference/rpc"
68146830
]
68156831
},
6832+
"Publishing:rest_reference_documentation_uri": {
6833+
"paramName": "rest_reference_documentation_uri",
6834+
"paramType": "TYPE_STRING",
6835+
"comments": [
6836+
" Optional link to REST reference documentation. Example:",
6837+
" https://cloud.google.com/pubsub/lite/docs/reference/rest"
6838+
]
6839+
},
68166840
"JavaSettings:library_package": {
68176841
"paramName": "library_package",
68186842
"paramType": "TYPE_STRING",
@@ -11469,12 +11493,16 @@
1146911493
"paramName": "java_string_check_utf8",
1147011494
"paramType": "TYPE_BOOL",
1147111495
"comments": [
11472-
" If set true, then the Java2 code generator will generate code that",
11473-
" throws an exception whenever an attempt is made to assign a non-UTF-8",
11474-
" byte sequence to a string field.",
11475-
" Message reflection will do the same.",
11476-
" However, an extension field still accepts non-UTF-8 byte sequences.",
11477-
" This option has no effect on when used with the lite runtime."
11496+
" A proto2 file can set this to true to opt in to UTF-8 checking for Java,",
11497+
" which will throw an exception if invalid UTF-8 is parsed from the wire or",
11498+
" assigned to a string field.",
11499+
"",
11500+
" TODO: clarify exactly what kinds of field types this option",
11501+
" applies to, and update these docs accordingly.",
11502+
"",
11503+
" Proto3 files already perform these checks. Setting the option explicitly to",
11504+
" false has no effect: it cannot be used to opt proto3 files out of UTF-8",
11505+
" checks."
1147811506
]
1147911507
},
1148011508
"FileOptions:optimize_for": {
@@ -12331,6 +12359,14 @@
1233112359
" https://cloud.google.com/pubsub/lite/docs/reference/rpc"
1233212360
]
1233312361
},
12362+
"Publishing:rest_reference_documentation_uri": {
12363+
"paramName": "rest_reference_documentation_uri",
12364+
"paramType": "TYPE_STRING",
12365+
"comments": [
12366+
" Optional link to REST reference documentation. Example:",
12367+
" https://cloud.google.com/pubsub/lite/docs/reference/rest"
12368+
]
12369+
},
1233412370
"JavaSettings:library_package": {
1233512371
"paramName": "library_package",
1233612372
"paramType": "TYPE_STRING",

package-lock.json

+20-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
"@types/object-hash": "^3.0.6",
6161
"@types/yargs": "^17.0.32",
6262
"espower-typescript": "^10.0.1",
63-
"gapic-tools": "^0.4.0",
64-
"google-gax": "^4.3.1",
63+
"gapic-tools": "^0.4.2",
64+
"google-gax": "^4.3.2",
6565
"gts": "^5.2.0",
6666
"mocha": "^10.3.0",
6767
"typescript": "5.1.6"

pnpm-lock.yaml

+17-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)