diff --git a/packages/google-cloud-automl/protos/protos.d.ts b/packages/google-cloud-automl/protos/protos.d.ts index dab9c3dcf83..0fccd0144d3 100644 --- a/packages/google-cloud-automl/protos/protos.d.ts +++ b/packages/google-cloud-automl/protos/protos.d.ts @@ -13,7 +13,7 @@ // limitations under the License. import * as Long from "long"; -import * as $protobuf from "protobufjs"; +import {protobuf as $protobuf} from "google-gax"; /** Namespace google. */ export namespace google { diff --git a/packages/google-cloud-automl/protos/protos.js b/packages/google-cloud-automl/protos/protos.js index 461148cc637..d48d9bc44d5 100644 --- a/packages/google-cloud-automl/protos/protos.js +++ b/packages/google-cloud-automl/protos/protos.js @@ -19,7 +19,7 @@ define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) - module.exports = factory(require("protobufjs/minimal")); + module.exports = factory(require("google-gax").protobufMinimal); })(this, function($protobuf) { "use strict"; @@ -7572,7 +7572,7 @@ InputConfig.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.automl.v1.InputConfig(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.InputConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -7580,12 +7580,26 @@ message.gcsSource = $root.google.cloud.automl.v1.GcsSource.decode(reader, reader.uint32()); break; case 2: - reader.skip().pos++; if (message.params === $util.emptyObject) message.params = {}; - key = reader.string(); - reader.pos++; - message.params[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; break; default: reader.skipType(tag & 7); @@ -8663,7 +8677,7 @@ ModelExportOutputConfig.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.automl.v1.ModelExportOutputConfig(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.ModelExportOutputConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8674,12 +8688,26 @@ message.modelFormat = reader.string(); break; case 2: - reader.skip().pos++; if (message.params === $util.emptyObject) message.params = {}; - key = reader.string(); - reader.pos++; - message.params[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; break; default: reader.skipType(tag & 7); @@ -9673,7 +9701,7 @@ Dataset.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.automl.v1.Dataset(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.Dataset(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9714,12 +9742,26 @@ message.etag = reader.string(); break; case 39: - reader.skip().pos++; if (message.labels === $util.emptyObject) message.labels = {}; - key = reader.string(); - reader.pos++; - message.labels[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; break; default: reader.skipType(tag & 7); @@ -12794,7 +12836,7 @@ Model.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.automl.v1.Model(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.Model(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12838,12 +12880,26 @@ message.etag = reader.string(); break; case 34: - reader.skip().pos++; if (message.labels === $util.emptyObject) message.labels = {}; - key = reader.string(); - reader.pos++; - message.labels[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; break; default: reader.skipType(tag & 7); @@ -16615,7 +16671,7 @@ PredictRequest.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.automl.v1.PredictRequest(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.PredictRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16626,12 +16682,26 @@ message.payload = $root.google.cloud.automl.v1.ExamplePayload.decode(reader, reader.uint32()); break; case 3: - reader.skip().pos++; if (message.params === $util.emptyObject) message.params = {}; - key = reader.string(); - reader.pos++; - message.params[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; break; default: reader.skipType(tag & 7); @@ -16876,7 +16946,7 @@ PredictResponse.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.automl.v1.PredictResponse(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.PredictResponse(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16889,12 +16959,26 @@ message.preprocessedInput = $root.google.cloud.automl.v1.ExamplePayload.decode(reader, reader.uint32()); break; case 2: - reader.skip().pos++; if (message.metadata === $util.emptyObject) message.metadata = {}; - key = reader.string(); - reader.pos++; - message.metadata[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metadata[key] = value; break; default: reader.skipType(tag & 7); @@ -17165,7 +17249,7 @@ BatchPredictRequest.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.automl.v1.BatchPredictRequest(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.BatchPredictRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17179,12 +17263,26 @@ message.outputConfig = $root.google.cloud.automl.v1.BatchPredictOutputConfig.decode(reader, reader.uint32()); break; case 5: - reader.skip().pos++; if (message.params === $util.emptyObject) message.params = {}; - key = reader.string(); - reader.pos++; - message.params[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; break; default: reader.skipType(tag & 7); @@ -17418,17 +17516,31 @@ BatchPredictResult.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.automl.v1.BatchPredictResult(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.BatchPredictResult(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - reader.skip().pos++; if (message.metadata === $util.emptyObject) message.metadata = {}; - key = reader.string(); - reader.pos++; - message.metadata[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metadata[key] = value; break; default: reader.skipType(tag & 7); @@ -27356,7 +27468,7 @@ TablesDatasetMetadata.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.automl.v1beta1.TablesDatasetMetadata(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1beta1.TablesDatasetMetadata(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -27373,12 +27485,26 @@ message.mlUseColumnSpecId = reader.string(); break; case 6: - reader.skip().pos++; if (message.targetColumnCorrelations === $util.emptyObject) message.targetColumnCorrelations = {}; - key = reader.string(); - reader.pos++; - message.targetColumnCorrelations[key] = $root.google.cloud.automl.v1beta1.CorrelationStats.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.automl.v1beta1.CorrelationStats.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.targetColumnCorrelations[key] = value; break; case 7: message.statsUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); @@ -30654,17 +30780,31 @@ TimestampStats.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.automl.v1beta1.TimestampStats(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1beta1.TimestampStats(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - reader.skip().pos++; if (message.granularStats === $util.emptyObject) message.granularStats = {}; - key = reader.string(); - reader.pos++; - message.granularStats[key] = $root.google.cloud.automl.v1beta1.TimestampStats.GranularStats.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.automl.v1beta1.TimestampStats.GranularStats.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.granularStats[key] = value; break; default: reader.skipType(tag & 7); @@ -30864,17 +31004,31 @@ GranularStats.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.automl.v1beta1.TimestampStats.GranularStats(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1beta1.TimestampStats.GranularStats(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - reader.skip().pos++; if (message.buckets === $util.emptyObject) message.buckets = {}; - key = reader.int32(); - reader.pos++; - message.buckets[key] = reader.int64(); + var end2 = reader.uint32() + reader.pos; + key = 0; + value = 0; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.int32(); + break; + case 2: + value = reader.int64(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.buckets[key] = value; break; default: reader.skipType(tag & 7); @@ -31282,17 +31436,31 @@ StructStats.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.automl.v1beta1.StructStats(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1beta1.StructStats(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - reader.skip().pos++; if (message.fieldStats === $util.emptyObject) message.fieldStats = {}; - key = reader.string(); - reader.pos++; - message.fieldStats[key] = $root.google.cloud.automl.v1beta1.DataStats.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.automl.v1beta1.DataStats.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.fieldStats[key] = value; break; default: reader.skipType(tag & 7); @@ -32497,17 +32665,31 @@ StructType.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.automl.v1beta1.StructType(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1beta1.StructType(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - reader.skip().pos++; if (message.fields === $util.emptyObject) message.fields = {}; - key = reader.string(); - reader.pos++; - message.fields[key] = $root.google.cloud.automl.v1beta1.DataType.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.automl.v1beta1.DataType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.fields[key] = value; break; default: reader.skipType(tag & 7); @@ -34736,7 +34918,7 @@ InputConfig.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.automl.v1beta1.InputConfig(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1beta1.InputConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -34747,12 +34929,26 @@ message.bigquerySource = $root.google.cloud.automl.v1beta1.BigQuerySource.decode(reader, reader.uint32()); break; case 2: - reader.skip().pos++; if (message.params === $util.emptyObject) message.params = {}; - key = reader.string(); - reader.pos++; - message.params[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; break; default: reader.skipType(tag & 7); @@ -35963,7 +36159,7 @@ ModelExportOutputConfig.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.automl.v1beta1.ModelExportOutputConfig(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1beta1.ModelExportOutputConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -35977,12 +36173,26 @@ message.modelFormat = reader.string(); break; case 2: - reader.skip().pos++; if (message.params === $util.emptyObject) message.params = {}; - key = reader.string(); - reader.pos++; - message.params[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; break; default: reader.skipType(tag & 7); @@ -48669,7 +48879,7 @@ PredictRequest.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.automl.v1beta1.PredictRequest(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1beta1.PredictRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -48680,12 +48890,26 @@ message.payload = $root.google.cloud.automl.v1beta1.ExamplePayload.decode(reader, reader.uint32()); break; case 3: - reader.skip().pos++; if (message.params === $util.emptyObject) message.params = {}; - key = reader.string(); - reader.pos++; - message.params[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; break; default: reader.skipType(tag & 7); @@ -48930,7 +49154,7 @@ PredictResponse.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.automl.v1beta1.PredictResponse(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1beta1.PredictResponse(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -48943,12 +49167,26 @@ message.preprocessedInput = $root.google.cloud.automl.v1beta1.ExamplePayload.decode(reader, reader.uint32()); break; case 2: - reader.skip().pos++; if (message.metadata === $util.emptyObject) message.metadata = {}; - key = reader.string(); - reader.pos++; - message.metadata[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metadata[key] = value; break; default: reader.skipType(tag & 7); @@ -49219,7 +49457,7 @@ BatchPredictRequest.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.automl.v1beta1.BatchPredictRequest(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1beta1.BatchPredictRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -49233,12 +49471,26 @@ message.outputConfig = $root.google.cloud.automl.v1beta1.BatchPredictOutputConfig.decode(reader, reader.uint32()); break; case 5: - reader.skip().pos++; if (message.params === $util.emptyObject) message.params = {}; - key = reader.string(); - reader.pos++; - message.params[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; break; default: reader.skipType(tag & 7); @@ -49472,17 +49724,31 @@ BatchPredictResult.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.automl.v1beta1.BatchPredictResult(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1beta1.BatchPredictResult(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - reader.skip().pos++; if (message.metadata === $util.emptyObject) message.metadata = {}; - key = reader.string(); - reader.pos++; - message.metadata[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metadata[key] = value; break; default: reader.skipType(tag & 7); @@ -67989,17 +68255,31 @@ Struct.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.protobuf.Struct(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - reader.skip().pos++; if (message.fields === $util.emptyObject) message.fields = {}; - key = reader.string(); - reader.pos++; - message.fields[key] = $root.google.protobuf.Value.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.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.fields[key] = value; break; default: reader.skipType(tag & 7); diff --git a/packages/google-cloud-automl/samples/package.json b/packages/google-cloud-automl/samples/package.json index 788949750f0..a4a3b431830 100644 --- a/packages/google-cloud-automl/samples/package.json +++ b/packages/google-cloud-automl/samples/package.json @@ -27,4 +27,4 @@ "mocha": "^8.0.0", "uuid": "^8.0.0" } -} \ No newline at end of file +} diff --git a/packages/google-cloud-automl/src/v1/auto_ml_client.ts b/packages/google-cloud-automl/src/v1/auto_ml_client.ts index c57a2db1f0c..445e6fd30c7 100644 --- a/packages/google-cloud-automl/src/v1/auto_ml_client.ts +++ b/packages/google-cloud-automl/src/v1/auto_ml_client.ts @@ -411,12 +411,14 @@ export class AutoMlClient { } ); + const descriptor = + this.descriptors.page[methodName] || + this.descriptors.longrunning[methodName] || + undefined; const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - this.descriptors.page[methodName] || - this.descriptors.stream[methodName] || - this.descriptors.longrunning[methodName] + descriptor ); this.innerApiCalls[methodName] = apiCall; diff --git a/packages/google-cloud-automl/src/v1/prediction_service_client.ts b/packages/google-cloud-automl/src/v1/prediction_service_client.ts index ee62e68e959..5496ab52f38 100644 --- a/packages/google-cloud-automl/src/v1/prediction_service_client.ts +++ b/packages/google-cloud-automl/src/v1/prediction_service_client.ts @@ -266,12 +266,11 @@ export class PredictionServiceClient { } ); + const descriptor = this.descriptors.longrunning[methodName] || undefined; const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - this.descriptors.page[methodName] || - this.descriptors.stream[methodName] || - this.descriptors.longrunning[methodName] + descriptor ); this.innerApiCalls[methodName] = apiCall; diff --git a/packages/google-cloud-automl/src/v1beta1/auto_ml_client.ts b/packages/google-cloud-automl/src/v1beta1/auto_ml_client.ts index b0ae4f21574..73c1c0b5ce1 100644 --- a/packages/google-cloud-automl/src/v1beta1/auto_ml_client.ts +++ b/packages/google-cloud-automl/src/v1beta1/auto_ml_client.ts @@ -437,12 +437,14 @@ export class AutoMlClient { } ); + const descriptor = + this.descriptors.page[methodName] || + this.descriptors.longrunning[methodName] || + undefined; const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - this.descriptors.page[methodName] || - this.descriptors.stream[methodName] || - this.descriptors.longrunning[methodName] + descriptor ); this.innerApiCalls[methodName] = apiCall; diff --git a/packages/google-cloud-automl/src/v1beta1/prediction_service_client.ts b/packages/google-cloud-automl/src/v1beta1/prediction_service_client.ts index 20f310905d6..41473dae8b2 100644 --- a/packages/google-cloud-automl/src/v1beta1/prediction_service_client.ts +++ b/packages/google-cloud-automl/src/v1beta1/prediction_service_client.ts @@ -272,12 +272,11 @@ export class PredictionServiceClient { } ); + const descriptor = this.descriptors.longrunning[methodName] || undefined; const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - this.descriptors.page[methodName] || - this.descriptors.stream[methodName] || - this.descriptors.longrunning[methodName] + descriptor ); this.innerApiCalls[methodName] = apiCall; diff --git a/packages/google-cloud-automl/synth.metadata b/packages/google-cloud-automl/synth.metadata index 7a1f94dabc3..e8797cad59b 100644 --- a/packages/google-cloud-automl/synth.metadata +++ b/packages/google-cloud-automl/synth.metadata @@ -3,8 +3,16 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/nodejs-automl.git", - "sha": "b74b206e1b627b00de5be54411cab94a5b86474c" + "remote": "https://github.com/googleapis/nodejs-automl.git", + "sha": "fff663838faba8fc294c10c91e931b718bc3507e" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "7a906c83566d0d429b23da434a4dc2b4de7b117a", + "internalRef": "331220195" } }, { @@ -34,5 +42,141 @@ "generator": "bazel" } } + ], + "generatedFiles": [ + ".eslintignore", + ".eslintrc.json", + ".gitattributes", + ".github/ISSUE_TEMPLATE/bug_report.md", + ".github/ISSUE_TEMPLATE/feature_request.md", + ".github/ISSUE_TEMPLATE/support_request.md", + ".github/PULL_REQUEST_TEMPLATE.md", + ".github/publish.yml", + ".github/release-please.yml", + ".github/workflows/ci.yaml", + ".gitignore", + ".jsdoc.js", + ".kokoro/.gitattributes", + ".kokoro/common.cfg", + ".kokoro/continuous/node10/common.cfg", + ".kokoro/continuous/node10/docs.cfg", + ".kokoro/continuous/node10/lint.cfg", + ".kokoro/continuous/node10/samples-test.cfg", + ".kokoro/continuous/node10/system-test.cfg", + ".kokoro/continuous/node10/test.cfg", + ".kokoro/continuous/node12/common.cfg", + ".kokoro/continuous/node12/test.cfg", + ".kokoro/continuous/node8/common.cfg", + ".kokoro/continuous/node8/test.cfg", + ".kokoro/docs.sh", + ".kokoro/lint.sh", + ".kokoro/populate-secrets.sh", + ".kokoro/presubmit/node10/common.cfg", + ".kokoro/presubmit/node10/docs.cfg", + ".kokoro/presubmit/node10/lint.cfg", + ".kokoro/presubmit/node10/samples-test.cfg", + ".kokoro/presubmit/node10/system-test.cfg", + ".kokoro/presubmit/node10/test.cfg", + ".kokoro/presubmit/node12/common.cfg", + ".kokoro/presubmit/node12/test.cfg", + ".kokoro/presubmit/node8/common.cfg", + ".kokoro/presubmit/node8/test.cfg", + ".kokoro/presubmit/windows/common.cfg", + ".kokoro/presubmit/windows/test.cfg", + ".kokoro/publish.sh", + ".kokoro/release/docs.cfg", + ".kokoro/release/docs.sh", + ".kokoro/release/publish.cfg", + ".kokoro/samples-test.sh", + ".kokoro/system-test.sh", + ".kokoro/test.bat", + ".kokoro/test.sh", + ".mocharc.js", + ".nycrc", + ".prettierignore", + ".prettierrc.js", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "README.md", + "linkinator.config.json", + "protos/google/cloud/automl/v1/annotation_payload.proto", + "protos/google/cloud/automl/v1/annotation_spec.proto", + "protos/google/cloud/automl/v1/classification.proto", + "protos/google/cloud/automl/v1/data_items.proto", + "protos/google/cloud/automl/v1/dataset.proto", + "protos/google/cloud/automl/v1/detection.proto", + "protos/google/cloud/automl/v1/geometry.proto", + "protos/google/cloud/automl/v1/image.proto", + "protos/google/cloud/automl/v1/io.proto", + "protos/google/cloud/automl/v1/model.proto", + "protos/google/cloud/automl/v1/model_evaluation.proto", + "protos/google/cloud/automl/v1/operations.proto", + "protos/google/cloud/automl/v1/prediction_service.proto", + "protos/google/cloud/automl/v1/service.proto", + "protos/google/cloud/automl/v1/text.proto", + "protos/google/cloud/automl/v1/text_extraction.proto", + "protos/google/cloud/automl/v1/text_segment.proto", + "protos/google/cloud/automl/v1/text_sentiment.proto", + "protos/google/cloud/automl/v1/translation.proto", + "protos/google/cloud/automl/v1beta1/annotation_payload.proto", + "protos/google/cloud/automl/v1beta1/annotation_spec.proto", + "protos/google/cloud/automl/v1beta1/classification.proto", + "protos/google/cloud/automl/v1beta1/column_spec.proto", + "protos/google/cloud/automl/v1beta1/data_items.proto", + "protos/google/cloud/automl/v1beta1/data_stats.proto", + "protos/google/cloud/automl/v1beta1/data_types.proto", + "protos/google/cloud/automl/v1beta1/dataset.proto", + "protos/google/cloud/automl/v1beta1/detection.proto", + "protos/google/cloud/automl/v1beta1/geometry.proto", + "protos/google/cloud/automl/v1beta1/image.proto", + "protos/google/cloud/automl/v1beta1/io.proto", + "protos/google/cloud/automl/v1beta1/model.proto", + "protos/google/cloud/automl/v1beta1/model_evaluation.proto", + "protos/google/cloud/automl/v1beta1/operations.proto", + "protos/google/cloud/automl/v1beta1/prediction_service.proto", + "protos/google/cloud/automl/v1beta1/ranges.proto", + "protos/google/cloud/automl/v1beta1/regression.proto", + "protos/google/cloud/automl/v1beta1/service.proto", + "protos/google/cloud/automl/v1beta1/table_spec.proto", + "protos/google/cloud/automl/v1beta1/tables.proto", + "protos/google/cloud/automl/v1beta1/temporal.proto", + "protos/google/cloud/automl/v1beta1/text.proto", + "protos/google/cloud/automl/v1beta1/text_extraction.proto", + "protos/google/cloud/automl/v1beta1/text_segment.proto", + "protos/google/cloud/automl/v1beta1/text_sentiment.proto", + "protos/google/cloud/automl/v1beta1/translation.proto", + "protos/google/cloud/automl/v1beta1/video.proto", + "protos/protos.d.ts", + "protos/protos.js", + "protos/protos.json", + "renovate.json", + "samples/README.md", + "samples/package.json", + "samples/package.json.252066439", + "src/index.ts", + "src/v1/auto_ml_client.ts", + "src/v1/auto_ml_client_config.json", + "src/v1/auto_ml_proto_list.json", + "src/v1/index.ts", + "src/v1/prediction_service_client.ts", + "src/v1/prediction_service_client_config.json", + "src/v1/prediction_service_proto_list.json", + "src/v1beta1/auto_ml_client.ts", + "src/v1beta1/auto_ml_client_config.json", + "src/v1beta1/auto_ml_proto_list.json", + "src/v1beta1/index.ts", + "src/v1beta1/prediction_service_client.ts", + "src/v1beta1/prediction_service_client_config.json", + "src/v1beta1/prediction_service_proto_list.json", + "system-test/fixtures/sample/src/index.js", + "system-test/fixtures/sample/src/index.ts", + "system-test/install.ts", + "test/gapic_auto_ml_v1.ts", + "test/gapic_auto_ml_v1beta1.ts", + "test/gapic_prediction_service_v1.ts", + "test/gapic_prediction_service_v1beta1.ts", + "tsconfig.json", + "webpack.config.js" ] } \ No newline at end of file