diff --git a/integration/unknown-fields/unknown-fields-test.ts b/integration/unknown-fields/unknown-fields-test.ts index 299bffac4..b81c9c269 100644 --- a/integration/unknown-fields/unknown-fields-test.ts +++ b/integration/unknown-fields/unknown-fields-test.ts @@ -17,8 +17,8 @@ describe("unknown-fields", () => { "field": [ { "_unknownFields": {}, - "defaultValue": "", - "extendee": "", + "defaultValue": undefined, + "extendee": undefined, "jsonName": "foo", "label": 1, "name": "foo", @@ -38,22 +38,22 @@ describe("unknown-fields", () => { }, ], }, - "ctype": 0, - "deprecated": false, - "jstype": 0, - "lazy": false, - "packed": false, + "ctype": undefined, + "deprecated": undefined, + "jstype": undefined, + "lazy": undefined, + "packed": undefined, "uninterpretedOption": [], - "weak": false, + "weak": undefined, }, "proto3Optional": true, "type": 5, - "typeName": "", + "typeName": undefined, }, { "_unknownFields": {}, - "defaultValue": "", - "extendee": "", + "defaultValue": undefined, + "extendee": undefined, "jsonName": "foo2", "label": 1, "name": "foo_2", @@ -82,22 +82,22 @@ describe("unknown-fields", () => { }, ], }, - "ctype": 0, - "deprecated": false, - "jstype": 0, - "lazy": false, - "packed": false, + "ctype": undefined, + "deprecated": undefined, + "jstype": undefined, + "lazy": undefined, + "packed": undefined, "uninterpretedOption": [], - "weak": false, + "weak": undefined, }, "proto3Optional": true, "type": 5, - "typeName": "", + "typeName": undefined, }, { "_unknownFields": {}, - "defaultValue": "", - "extendee": "", + "defaultValue": undefined, + "extendee": undefined, "jsonName": "bar", "label": 1, "name": "bar", @@ -106,21 +106,21 @@ describe("unknown-fields", () => { "options": undefined, "proto3Optional": true, "type": 9, - "typeName": "", + "typeName": undefined, }, { "_unknownFields": {}, - "defaultValue": "", - "extendee": "", + "defaultValue": undefined, + "extendee": undefined, "jsonName": "quux", "label": 1, "name": "quux", "number": 4, "oneofIndex": 0, "options": undefined, - "proto3Optional": false, + "proto3Optional": undefined, "type": 9, - "typeName": "", + "typeName": undefined, }, ], "name": "MyMessage", @@ -171,10 +171,10 @@ describe("unknown-fields", () => { }, ], }, - "deprecated": false, - "mapEntry": false, - "messageSetWireFormat": false, - "noStandardDescriptorAccessor": false, + "deprecated": undefined, + "mapEntry": undefined, + "messageSetWireFormat": undefined, + "noStandardDescriptorAccessor": undefined, "uninterpretedOption": [], }, "reservedName": [], @@ -224,8 +224,8 @@ describe("unknown-fields", () => { }, ], }, - "allowAlias": false, - "deprecated": false, + "allowAlias": undefined, + "deprecated": undefined, "uninterpretedOption": [], }, "reservedName": [], @@ -247,7 +247,7 @@ describe("unknown-fields", () => { }, ], }, - "deprecated": false, + "deprecated": undefined, "uninterpretedOption": [], }, }, @@ -268,7 +268,7 @@ describe("unknown-fields", () => { "method": [ { "_unknownFields": {}, - "clientStreaming": false, + "clientStreaming": undefined, "inputType": ".RequestType", "name": "MyMethod", "options": { @@ -332,12 +332,12 @@ describe("unknown-fields", () => { }, ], }, - "deprecated": false, - "idempotencyLevel": 0, + "deprecated": undefined, + "idempotencyLevel": undefined, "uninterpretedOption": [], }, "outputType": ".ResponseType", - "serverStreaming": false, + "serverStreaming": undefined, }, ], "name": "MyService", @@ -352,7 +352,7 @@ describe("unknown-fields", () => { }, ], }, - "deprecated": false, + "deprecated": undefined, "uninterpretedOption": [], }, }, @@ -382,26 +382,26 @@ describe("unknown-fields", () => { }, ], }, - "ccEnableArenas": true, - "ccGenericServices": false, - "csharpNamespace": "", - "deprecated": false, - "goPackage": "", - "javaGenerateEqualsAndHash": false, - "javaGenericServices": false, - "javaMultipleFiles": false, - "javaOuterClassname": "", - "javaPackage": "", - "javaStringCheckUtf8": false, - "objcClassPrefix": "", - "optimizeFor": 1, - "phpClassPrefix": "", - "phpGenericServices": false, - "phpMetadataNamespace": "", - "phpNamespace": "", - "pyGenericServices": false, - "rubyPackage": "", - "swiftPrefix": "", + "ccEnableArenas": undefined, + "ccGenericServices": undefined, + "csharpNamespace": undefined, + "deprecated": undefined, + "goPackage": undefined, + "javaGenerateEqualsAndHash": undefined, + "javaGenericServices": undefined, + "javaMultipleFiles": undefined, + "javaOuterClassname": undefined, + "javaPackage": undefined, + "javaStringCheckUtf8": undefined, + "objcClassPrefix": undefined, + "optimizeFor": undefined, + "phpClassPrefix": undefined, + "phpGenericServices": undefined, + "phpMetadataNamespace": undefined, + "phpNamespace": undefined, + "pyGenericServices": undefined, + "rubyPackage": undefined, + "swiftPrefix": undefined, "uninterpretedOption": [], } `);