Skip to content

Commit 6dbe4b0

Browse files
feat: update Nodejs generator to send API versions in headers for GAPICs (#2041)
* feat: update Nodejs generator to send API versions in headers for GAPICs PiperOrigin-RevId: 634109303 Source-Link: googleapis/googleapis@998ade8 Source-Link: googleapis/googleapis-gen@000ca6f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDAwY2E2ZjAwODAxZjY1Yjg0N2U2MDI5Y2IwNTExMTQwNGRmMjFlYyJ9 fix!: An existing method `UpdateVehicleLocation` is removed from service `VehicleService` fix!: An existing method `SearchFuzzedVehicles` is removed from service `VehicleService` fix!: An existing message `UpdateVehicleLocationRequest` is removed PiperOrigin-RevId: 631557549 Source-Link: googleapis/googleapis@3d50414 Source-Link: googleapis/googleapis-gen@5ce63d4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWNlNjNkNGU2MzZhOTc1MTc1YmRlMmQxNmMxNWU3MGRkNWE4MWZmNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Mark Duckworth <[email protected]>
1 parent d406f14 commit 6dbe4b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+463
-197
lines changed

dev/protos/admin_v1.json

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2230,6 +2230,7 @@
22302230
"Edition": {
22312231
"values": {
22322232
"EDITION_UNKNOWN": 0,
2233+
"EDITION_LEGACY": 900,
22332234
"EDITION_PROTO2": 998,
22342235
"EDITION_PROTO3": 999,
22352236
"EDITION_2023": 1000,
@@ -2240,13 +2241,7 @@
22402241
"EDITION_99998_TEST_ONLY": 99998,
22412242
"EDITION_99999_TEST_ONLY": 99999,
22422243
"EDITION_MAX": 2147483647
2243-
},
2244-
"reserved": [
2245-
[
2246-
900,
2247-
900
2248-
]
2249-
]
2244+
}
22502245
},
22512246
"FileDescriptorProto": {
22522247
"fields": {
@@ -3277,6 +3272,7 @@
32773272
"options": {
32783273
"retention": "RETENTION_RUNTIME",
32793274
"targets": "TARGET_TYPE_FILE",
3275+
"feature_support.edition_introduced": "EDITION_2023",
32803276
"edition_defaults.edition": "EDITION_2023",
32813277
"edition_defaults.value": "EXPLICIT"
32823278
}
@@ -3287,6 +3283,7 @@
32873283
"options": {
32883284
"retention": "RETENTION_RUNTIME",
32893285
"targets": "TARGET_TYPE_FILE",
3286+
"feature_support.edition_introduced": "EDITION_2023",
32903287
"edition_defaults.edition": "EDITION_PROTO3",
32913288
"edition_defaults.value": "OPEN"
32923289
}
@@ -3297,6 +3294,7 @@
32973294
"options": {
32983295
"retention": "RETENTION_RUNTIME",
32993296
"targets": "TARGET_TYPE_FILE",
3297+
"feature_support.edition_introduced": "EDITION_2023",
33003298
"edition_defaults.edition": "EDITION_PROTO3",
33013299
"edition_defaults.value": "PACKED"
33023300
}
@@ -3307,6 +3305,7 @@
33073305
"options": {
33083306
"retention": "RETENTION_RUNTIME",
33093307
"targets": "TARGET_TYPE_FILE",
3308+
"feature_support.edition_introduced": "EDITION_2023",
33103309
"edition_defaults.edition": "EDITION_PROTO3",
33113310
"edition_defaults.value": "VERIFY"
33123311
}
@@ -3317,6 +3316,7 @@
33173316
"options": {
33183317
"retention": "RETENTION_RUNTIME",
33193318
"targets": "TARGET_TYPE_FILE",
3319+
"feature_support.edition_introduced": "EDITION_2023",
33203320
"edition_defaults.edition": "EDITION_PROTO2",
33213321
"edition_defaults.value": "LENGTH_PREFIXED"
33223322
}
@@ -3327,6 +3327,7 @@
33273327
"options": {
33283328
"retention": "RETENTION_RUNTIME",
33293329
"targets": "TARGET_TYPE_FILE",
3330+
"feature_support.edition_introduced": "EDITION_2023",
33303331
"edition_defaults.edition": "EDITION_PROTO3",
33313332
"edition_defaults.value": "ALLOW"
33323333
}
@@ -3335,19 +3336,7 @@
33353336
"extensions": [
33363337
[
33373338
1000,
3338-
1000
3339-
],
3340-
[
3341-
1001,
3342-
1001
3343-
],
3344-
[
3345-
1002,
3346-
1002
3347-
],
3348-
[
3349-
9990,
3350-
9990
3339+
9994
33513340
],
33523341
[
33533342
9995,
@@ -3440,10 +3429,6 @@
34403429
"fixedFeatures": {
34413430
"type": "FeatureSet",
34423431
"id": 5
3443-
},
3444-
"features": {
3445-
"type": "FeatureSet",
3446-
"id": 2
34473432
}
34483433
}
34493434
}

dev/protos/firestore_admin_v1_proto_api.d.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5044,7 +5044,7 @@ export namespace google {
50445044

50455045
/** Edition enum. */
50465046
type Edition =
5047-
"EDITION_UNKNOWN"| "EDITION_PROTO2"| "EDITION_PROTO3"| "EDITION_2023"| "EDITION_2024"| "EDITION_1_TEST_ONLY"| "EDITION_2_TEST_ONLY"| "EDITION_99997_TEST_ONLY"| "EDITION_99998_TEST_ONLY"| "EDITION_99999_TEST_ONLY"| "EDITION_MAX";
5047+
"EDITION_UNKNOWN"| "EDITION_LEGACY"| "EDITION_PROTO2"| "EDITION_PROTO3"| "EDITION_2023"| "EDITION_2024"| "EDITION_1_TEST_ONLY"| "EDITION_2_TEST_ONLY"| "EDITION_99997_TEST_ONLY"| "EDITION_99998_TEST_ONLY"| "EDITION_99999_TEST_ONLY"| "EDITION_MAX";
50485048

50495049
/** Properties of a FileDescriptorProto. */
50505050
interface IFileDescriptorProto {
@@ -7228,9 +7228,6 @@ export namespace google {
72287228

72297229
/** FeatureSetEditionDefault fixedFeatures */
72307230
fixedFeatures?: (google.protobuf.IFeatureSet|null);
7231-
7232-
/** FeatureSetEditionDefault features */
7233-
features?: (google.protobuf.IFeatureSet|null);
72347231
}
72357232

72367233
/** Represents a FeatureSetEditionDefault. */
@@ -7251,9 +7248,6 @@ export namespace google {
72517248
/** FeatureSetEditionDefault fixedFeatures. */
72527249
public fixedFeatures?: (google.protobuf.IFeatureSet|null);
72537250

7254-
/** FeatureSetEditionDefault features. */
7255-
public features?: (google.protobuf.IFeatureSet|null);
7256-
72577251
/**
72587252
* Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
72597253
* @param object Plain object

dev/protos/firestore_admin_v1_proto_api.js

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11804,6 +11804,7 @@
1180411804
* @name google.protobuf.Edition
1180511805
* @enum {string}
1180611806
* @property {string} EDITION_UNKNOWN=EDITION_UNKNOWN EDITION_UNKNOWN value
11807+
* @property {string} EDITION_LEGACY=EDITION_LEGACY EDITION_LEGACY value
1180711808
* @property {string} EDITION_PROTO2=EDITION_PROTO2 EDITION_PROTO2 value
1180811809
* @property {string} EDITION_PROTO3=EDITION_PROTO3 EDITION_PROTO3 value
1180911810
* @property {string} EDITION_2023=EDITION_2023 EDITION_2023 value
@@ -11818,6 +11819,7 @@
1181811819
protobuf.Edition = (function() {
1181911820
var valuesById = {}, values = Object.create(valuesById);
1182011821
values[valuesById[0] = "EDITION_UNKNOWN"] = "EDITION_UNKNOWN";
11822+
values[valuesById[900] = "EDITION_LEGACY"] = "EDITION_LEGACY";
1182111823
values[valuesById[998] = "EDITION_PROTO2"] = "EDITION_PROTO2";
1182211824
values[valuesById[999] = "EDITION_PROTO3"] = "EDITION_PROTO3";
1182311825
values[valuesById[1000] = "EDITION_2023"] = "EDITION_2023";
@@ -12078,6 +12080,10 @@
1207812080
case 0:
1207912081
message.edition = 0;
1208012082
break;
12083+
case "EDITION_LEGACY":
12084+
case 900:
12085+
message.edition = 900;
12086+
break;
1208112087
case "EDITION_PROTO2":
1208212088
case 998:
1208312089
message.edition = 998;
@@ -15732,6 +15738,10 @@
1573215738
case 0:
1573315739
message.edition = 0;
1573415740
break;
15741+
case "EDITION_LEGACY":
15742+
case 900:
15743+
message.edition = 900;
15744+
break;
1573515745
case "EDITION_PROTO2":
1573615746
case 998:
1573715747
message.edition = 998;
@@ -15913,6 +15923,10 @@
1591315923
case 0:
1591415924
message.editionIntroduced = 0;
1591515925
break;
15926+
case "EDITION_LEGACY":
15927+
case 900:
15928+
message.editionIntroduced = 900;
15929+
break;
1591615930
case "EDITION_PROTO2":
1591715931
case 998:
1591815932
message.editionIntroduced = 998;
@@ -15965,6 +15979,10 @@
1596515979
case 0:
1596615980
message.editionDeprecated = 0;
1596715981
break;
15982+
case "EDITION_LEGACY":
15983+
case 900:
15984+
message.editionDeprecated = 900;
15985+
break;
1596815986
case "EDITION_PROTO2":
1596915987
case 998:
1597015988
message.editionDeprecated = 998;
@@ -16019,6 +16037,10 @@
1601916037
case 0:
1602016038
message.editionRemoved = 0;
1602116039
break;
16040+
case "EDITION_LEGACY":
16041+
case 900:
16042+
message.editionRemoved = 900;
16043+
break;
1602216044
case "EDITION_PROTO2":
1602316045
case 998:
1602416046
message.editionRemoved = 998;
@@ -17824,6 +17846,10 @@
1782417846
case 0:
1782517847
message.minimumEdition = 0;
1782617848
break;
17849+
case "EDITION_LEGACY":
17850+
case 900:
17851+
message.minimumEdition = 900;
17852+
break;
1782717853
case "EDITION_PROTO2":
1782817854
case 998:
1782917855
message.minimumEdition = 998;
@@ -17876,6 +17902,10 @@
1787617902
case 0:
1787717903
message.maximumEdition = 0;
1787817904
break;
17905+
case "EDITION_LEGACY":
17906+
case 900:
17907+
message.maximumEdition = 900;
17908+
break;
1787917909
case "EDITION_PROTO2":
1788017910
case 998:
1788117911
message.maximumEdition = 998;
@@ -17986,7 +18016,6 @@
1798618016
* @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
1798718017
* @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
1798818018
* @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
17989-
* @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
1799018019
*/
1799118020

1799218021
/**
@@ -18028,14 +18057,6 @@
1802818057
*/
1802918058
FeatureSetEditionDefault.prototype.fixedFeatures = null;
1803018059

18031-
/**
18032-
* FeatureSetEditionDefault features.
18033-
* @member {google.protobuf.IFeatureSet|null|undefined} features
18034-
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
18035-
* @instance
18036-
*/
18037-
FeatureSetEditionDefault.prototype.features = null;
18038-
1803918060
/**
1804018061
* Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
1804118062
* @function fromObject
@@ -18059,6 +18080,10 @@
1805918080
case 0:
1806018081
message.edition = 0;
1806118082
break;
18083+
case "EDITION_LEGACY":
18084+
case 900:
18085+
message.edition = 900;
18086+
break;
1806218087
case "EDITION_PROTO2":
1806318088
case 998:
1806418089
message.edition = 998;
@@ -18110,11 +18135,6 @@
1811018135
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
1811118136
message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
1811218137
}
18113-
if (object.features != null) {
18114-
if (typeof object.features !== "object")
18115-
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
18116-
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
18117-
}
1811818138
return message;
1811918139
};
1812018140

@@ -18132,13 +18152,10 @@
1813218152
options = {};
1813318153
var object = {};
1813418154
if (options.defaults) {
18135-
object.features = null;
1813618155
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
1813718156
object.overridableFeatures = null;
1813818157
object.fixedFeatures = null;
1813918158
}
18140-
if (message.features != null && message.hasOwnProperty("features"))
18141-
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
1814218159
if (message.edition != null && message.hasOwnProperty("edition"))
1814318160
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
1814418161
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))

dev/protos/firestore_v1_proto_api.d.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ export namespace google {
648648

649649
/** Edition enum. */
650650
type Edition =
651-
"EDITION_UNKNOWN"| "EDITION_PROTO2"| "EDITION_PROTO3"| "EDITION_2023"| "EDITION_2024"| "EDITION_1_TEST_ONLY"| "EDITION_2_TEST_ONLY"| "EDITION_99997_TEST_ONLY"| "EDITION_99998_TEST_ONLY"| "EDITION_99999_TEST_ONLY"| "EDITION_MAX";
651+
"EDITION_UNKNOWN"| "EDITION_LEGACY"| "EDITION_PROTO2"| "EDITION_PROTO3"| "EDITION_2023"| "EDITION_2024"| "EDITION_1_TEST_ONLY"| "EDITION_2_TEST_ONLY"| "EDITION_99997_TEST_ONLY"| "EDITION_99998_TEST_ONLY"| "EDITION_99999_TEST_ONLY"| "EDITION_MAX";
652652

653653
/** Properties of a FileDescriptorProto. */
654654
interface IFileDescriptorProto {
@@ -2832,9 +2832,6 @@ export namespace google {
28322832

28332833
/** FeatureSetEditionDefault fixedFeatures */
28342834
fixedFeatures?: (google.protobuf.IFeatureSet|null);
2835-
2836-
/** FeatureSetEditionDefault features */
2837-
features?: (google.protobuf.IFeatureSet|null);
28382835
}
28392836

28402837
/** Represents a FeatureSetEditionDefault. */
@@ -2855,9 +2852,6 @@ export namespace google {
28552852
/** FeatureSetEditionDefault fixedFeatures. */
28562853
public fixedFeatures?: (google.protobuf.IFeatureSet|null);
28572854

2858-
/** FeatureSetEditionDefault features. */
2859-
public features?: (google.protobuf.IFeatureSet|null);
2860-
28612855
/**
28622856
* Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
28632857
* @param object Plain object

0 commit comments

Comments
 (0)