From 31f15370c7a3cc8ad2921527edcde0936cf139e5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 17 Jul 2020 16:05:46 -0700 Subject: [PATCH] build: add Node 8 tests (#363) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/5b03461e-47c0-40e8-a8ad-c465ee146cc5/targets - [ ] To automatically regenerate this PR, check this box. --- .../google-cloud-oslogin/protos/protos.js | 48 +++++++++++++++---- packages/google-cloud-oslogin/synth.metadata | 2 +- 2 files changed, 39 insertions(+), 11 deletions(-) diff --git a/packages/google-cloud-oslogin/protos/protos.js b/packages/google-cloud-oslogin/protos/protos.js index 2db38ac0885a..b992cf3a606f 100644 --- a/packages/google-cloud-oslogin/protos/protos.js +++ b/packages/google-cloud-oslogin/protos/protos.js @@ -415,7 +415,7 @@ LoginProfile.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.oslogin.v1.LoginProfile(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.oslogin.v1.LoginProfile(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -428,12 +428,26 @@ message.posixAccounts.push($root.google.cloud.oslogin.common.PosixAccount.decode(reader, reader.uint32())); break; case 3: - reader.skip().pos++; if (message.sshPublicKeys === $util.emptyObject) message.sshPublicKeys = {}; - key = reader.string(); - reader.pos++; - message.sshPublicKeys[key] = $root.google.cloud.oslogin.common.SshPublicKey.decode(reader, reader.uint32()); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.oslogin.common.SshPublicKey.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.sshPublicKeys[key] = value; break; default: reader.skipType(tag & 7); @@ -3156,7 +3170,7 @@ LoginProfile.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.oslogin.v1beta.LoginProfile(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.oslogin.v1beta.LoginProfile(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -3169,12 +3183,26 @@ message.posixAccounts.push($root.google.cloud.oslogin.common.PosixAccount.decode(reader, reader.uint32())); break; case 3: - reader.skip().pos++; if (message.sshPublicKeys === $util.emptyObject) message.sshPublicKeys = {}; - key = reader.string(); - reader.pos++; - message.sshPublicKeys[key] = $root.google.cloud.oslogin.common.SshPublicKey.decode(reader, reader.uint32()); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.oslogin.common.SshPublicKey.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.sshPublicKeys[key] = value; break; default: reader.skipType(tag & 7); diff --git a/packages/google-cloud-oslogin/synth.metadata b/packages/google-cloud-oslogin/synth.metadata index 7d1068cebccb..713a8cdb62af 100644 --- a/packages/google-cloud-oslogin/synth.metadata +++ b/packages/google-cloud-oslogin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-os-login.git", - "sha": "324bc1a968e23b4c139d8b13b41c985cfde8d90a" + "sha": "b89af7e08dec2f14a593200b23b43f115f637373" } }, {