From e9d937158e3a1a4439ef8a39e0fe903172773722 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 10 Nov 2022 10:28:19 +0000 Subject: [PATCH] fix: regenerated protos JS and TS definitions (#29) samples: pull in latest typeless bot, clean up some comments Source-Link: https://togithub.com/googleapis/synthtool/commit/0a68e568b6911b60bb6fd452eba4848b176031d8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:5b05f26103855c3a15433141389c478d1d3fe088fb5d4e3217c4793f6b3f245e --- .../google-cloud-dataform/protos/protos.d.ts | 2 +- .../google-cloud-dataform/protos/protos.js | 156 +++++++++++++++--- 2 files changed, 137 insertions(+), 21 deletions(-) diff --git a/packages/google-cloud-dataform/protos/protos.d.ts b/packages/google-cloud-dataform/protos/protos.d.ts index 815dea9405a..d97d51e9b28 100644 --- a/packages/google-cloud-dataform/protos/protos.d.ts +++ b/packages/google-cloud-dataform/protos/protos.d.ts @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -import Long = require("long"); import type {protobuf as $protobuf} from "google-gax"; +import Long = require("long"); /** Namespace google. */ export namespace google { diff --git a/packages/google-cloud-dataform/protos/protos.js b/packages/google-cloud-dataform/protos/protos.js index 22cd3d2b500..0a84e406032 100644 --- a/packages/google-cloud-dataform/protos/protos.js +++ b/packages/google-cloud-dataform/protos/protos.js @@ -1735,6 +1735,12 @@ if (object.authenticationTokenSecretVersion != null) message.authenticationTokenSecretVersion = String(object.authenticationTokenSecretVersion); switch (object.tokenStatus) { + default: + if (typeof object.tokenStatus === "number") { + message.tokenStatus = object.tokenStatus; + break; + } + break; case "TOKEN_STATUS_UNSPECIFIED": case 0: message.tokenStatus = 0; @@ -1781,7 +1787,7 @@ if (message.authenticationTokenSecretVersion != null && message.hasOwnProperty("authenticationTokenSecretVersion")) object.authenticationTokenSecretVersion = message.authenticationTokenSecretVersion; if (message.tokenStatus != null && message.hasOwnProperty("tokenStatus")) - object.tokenStatus = options.enums === String ? $root.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus[message.tokenStatus] : message.tokenStatus; + object.tokenStatus = options.enums === String ? $root.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus[message.tokenStatus] === undefined ? message.tokenStatus : $root.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus[message.tokenStatus] : message.tokenStatus; return object; }; @@ -6522,6 +6528,12 @@ if (object.path != null) message.path = String(object.path); switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "STATE_UNSPECIFIED": case 0: message.state = 0; @@ -6566,7 +6578,7 @@ if (message.path != null && message.hasOwnProperty("path")) object.path = message.path; if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State[message.state] === undefined ? message.state : $root.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State[message.state] : message.state; return object; }; @@ -15557,6 +15569,12 @@ message.relationDescriptor = $root.google.cloud.dataform.v1alpha2.RelationDescriptor.fromObject(object.relationDescriptor); } switch (object.relationType) { + default: + if (typeof object.relationType === "number") { + message.relationType = object.relationType; + break; + } + break; case "RELATION_TYPE_UNSPECIFIED": case 0: message.relationType = 0; @@ -15669,7 +15687,7 @@ if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) object.relationDescriptor = $root.google.cloud.dataform.v1alpha2.RelationDescriptor.toObject(message.relationDescriptor, options); if (message.relationType != null && message.hasOwnProperty("relationType")) - object.relationType = options.enums === String ? $root.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType[message.relationType] : message.relationType; + object.relationType = options.enums === String ? $root.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType[message.relationType] === undefined ? message.relationType : $root.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType[message.relationType] : message.relationType; if (message.selectQuery != null && message.hasOwnProperty("selectQuery")) object.selectQuery = message.selectQuery; if (message.preOperations && message.preOperations.length) { @@ -17845,6 +17863,12 @@ message.invocationConfig = $root.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.fromObject(object.invocationConfig); } switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "STATE_UNSPECIFIED": case 0: message.state = 0; @@ -17905,7 +17929,7 @@ if (message.invocationConfig != null && message.hasOwnProperty("invocationConfig")) object.invocationConfig = $root.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.toObject(message.invocationConfig, options); if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dataform.v1alpha2.WorkflowInvocation.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.dataform.v1alpha2.WorkflowInvocation.State[message.state] === undefined ? message.state : $root.google.cloud.dataform.v1alpha2.WorkflowInvocation.State[message.state] : message.state; if (message.invocationTiming != null && message.hasOwnProperty("invocationTiming")) object.invocationTiming = $root.google.type.Interval.toObject(message.invocationTiming, options); return object; @@ -19944,6 +19968,12 @@ message.canonicalTarget = $root.google.cloud.dataform.v1alpha2.Target.fromObject(object.canonicalTarget); } switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "PENDING": case 0: message.state = 0; @@ -20014,7 +20044,7 @@ if (message.canonicalTarget != null && message.hasOwnProperty("canonicalTarget")) object.canonicalTarget = $root.google.cloud.dataform.v1alpha2.Target.toObject(message.canonicalTarget, options); if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State[message.state] === undefined ? message.state : $root.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State[message.state] : message.state; if (message.invocationTiming != null && message.hasOwnProperty("invocationTiming")) object.invocationTiming = $root.google.type.Interval.toObject(message.invocationTiming, options); if (message.bigqueryAction != null && message.hasOwnProperty("bigqueryAction")) @@ -22459,6 +22489,12 @@ if (object.authenticationTokenSecretVersion != null) message.authenticationTokenSecretVersion = String(object.authenticationTokenSecretVersion); switch (object.tokenStatus) { + default: + if (typeof object.tokenStatus === "number") { + message.tokenStatus = object.tokenStatus; + break; + } + break; case "TOKEN_STATUS_UNSPECIFIED": case 0: message.tokenStatus = 0; @@ -22505,7 +22541,7 @@ if (message.authenticationTokenSecretVersion != null && message.hasOwnProperty("authenticationTokenSecretVersion")) object.authenticationTokenSecretVersion = message.authenticationTokenSecretVersion; if (message.tokenStatus != null && message.hasOwnProperty("tokenStatus")) - object.tokenStatus = options.enums === String ? $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus[message.tokenStatus] : message.tokenStatus; + object.tokenStatus = options.enums === String ? $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus[message.tokenStatus] === undefined ? message.tokenStatus : $root.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus[message.tokenStatus] : message.tokenStatus; return object; }; @@ -27246,6 +27282,12 @@ if (object.path != null) message.path = String(object.path); switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "STATE_UNSPECIFIED": case 0: message.state = 0; @@ -27290,7 +27332,7 @@ if (message.path != null && message.hasOwnProperty("path")) object.path = message.path; if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State[message.state] === undefined ? message.state : $root.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State[message.state] : message.state; return object; }; @@ -36281,6 +36323,12 @@ message.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.fromObject(object.relationDescriptor); } switch (object.relationType) { + default: + if (typeof object.relationType === "number") { + message.relationType = object.relationType; + break; + } + break; case "RELATION_TYPE_UNSPECIFIED": case 0: message.relationType = 0; @@ -36393,7 +36441,7 @@ if (message.relationDescriptor != null && message.hasOwnProperty("relationDescriptor")) object.relationDescriptor = $root.google.cloud.dataform.v1beta1.RelationDescriptor.toObject(message.relationDescriptor, options); if (message.relationType != null && message.hasOwnProperty("relationType")) - object.relationType = options.enums === String ? $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType[message.relationType] : message.relationType; + object.relationType = options.enums === String ? $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType[message.relationType] === undefined ? message.relationType : $root.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType[message.relationType] : message.relationType; if (message.selectQuery != null && message.hasOwnProperty("selectQuery")) object.selectQuery = message.selectQuery; if (message.preOperations && message.preOperations.length) { @@ -38569,6 +38617,12 @@ message.invocationConfig = $root.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.fromObject(object.invocationConfig); } switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "STATE_UNSPECIFIED": case 0: message.state = 0; @@ -38629,7 +38683,7 @@ if (message.invocationConfig != null && message.hasOwnProperty("invocationConfig")) object.invocationConfig = $root.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.toObject(message.invocationConfig, options); if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dataform.v1beta1.WorkflowInvocation.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.dataform.v1beta1.WorkflowInvocation.State[message.state] === undefined ? message.state : $root.google.cloud.dataform.v1beta1.WorkflowInvocation.State[message.state] : message.state; if (message.invocationTiming != null && message.hasOwnProperty("invocationTiming")) object.invocationTiming = $root.google.type.Interval.toObject(message.invocationTiming, options); return object; @@ -40668,6 +40722,12 @@ message.canonicalTarget = $root.google.cloud.dataform.v1beta1.Target.fromObject(object.canonicalTarget); } switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "PENDING": case 0: message.state = 0; @@ -40738,7 +40798,7 @@ if (message.canonicalTarget != null && message.hasOwnProperty("canonicalTarget")) object.canonicalTarget = $root.google.cloud.dataform.v1beta1.Target.toObject(message.canonicalTarget, options); if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State[message.state] === undefined ? message.state : $root.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State[message.state] : message.state; if (message.invocationTiming != null && message.hasOwnProperty("invocationTiming")) object.invocationTiming = $root.google.type.Interval.toObject(message.invocationTiming, options); if (message.bigqueryAction != null && message.hasOwnProperty("bigqueryAction")) @@ -42813,6 +42873,12 @@ if (object.nameField != null) message.nameField = String(object.nameField); switch (object.history) { + default: + if (typeof object.history === "number") { + message.history = object.history; + break; + } + break; case "HISTORY_UNSPECIFIED": case 0: message.history = 0; @@ -42837,6 +42903,10 @@ for (var i = 0; i < object.style.length; ++i) switch (object.style[i]) { default: + if (typeof object.style[i] === "number") { + message.style[i] = object.style[i]; + break; + } case "STYLE_UNSPECIFIED": case 0: message.style[i] = 0; @@ -42884,7 +42954,7 @@ if (message.nameField != null && message.hasOwnProperty("nameField")) object.nameField = message.nameField; if (message.history != null && message.hasOwnProperty("history")) - object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history; + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; if (message.plural != null && message.hasOwnProperty("plural")) object.plural = message.plural; if (message.singular != null && message.hasOwnProperty("singular")) @@ -42892,7 +42962,7 @@ if (message.style && message.style.length) { object.style = []; for (var j = 0; j < message.style.length; ++j) - object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; } return object; }; @@ -45703,6 +45773,12 @@ if (object.number != null) message.number = object.number | 0; switch (object.label) { + default: + if (typeof object.label === "number") { + message.label = object.label; + break; + } + break; case "LABEL_OPTIONAL": case 1: message.label = 1; @@ -45717,6 +45793,12 @@ break; } switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "TYPE_DOUBLE": case 1: message.type = 1; @@ -45843,9 +45925,9 @@ if (message.number != null && message.hasOwnProperty("number")) object.number = message.number; if (message.label != null && message.hasOwnProperty("label")) - object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; if (message.typeName != null && message.hasOwnProperty("typeName")) object.typeName = message.typeName; if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) @@ -48192,6 +48274,12 @@ if (object.javaStringCheckUtf8 != null) message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); switch (object.optimizeFor) { + default: + if (typeof object.optimizeFor === "number") { + message.optimizeFor = object.optimizeFor; + break; + } + break; case "SPEED": case 1: message.optimizeFor = 1; @@ -48300,7 +48388,7 @@ if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) object.javaOuterClassname = message.javaOuterClassname; if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) object.javaMultipleFiles = message.javaMultipleFiles; if (message.goPackage != null && message.hasOwnProperty("goPackage")) @@ -49102,6 +49190,12 @@ return object; var message = new $root.google.protobuf.FieldOptions(); switch (object.ctype) { + default: + if (typeof object.ctype === "number") { + message.ctype = object.ctype; + break; + } + break; case "STRING": case 0: message.ctype = 0; @@ -49118,6 +49212,12 @@ if (object.packed != null) message.packed = Boolean(object.packed); switch (object.jstype) { + default: + if (typeof object.jstype === "number") { + message.jstype = object.jstype; + break; + } + break; case "JS_NORMAL": case 0: message.jstype = 0; @@ -49156,6 +49256,10 @@ for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) switch (object[".google.api.fieldBehavior"][i]) { default: + if (typeof object[".google.api.fieldBehavior"][i] === "number") { + message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; + break; + } case "FIELD_BEHAVIOR_UNSPECIFIED": case 0: message[".google.api.fieldBehavior"][i] = 0; @@ -49226,7 +49330,7 @@ object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) - object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; if (message.packed != null && message.hasOwnProperty("packed")) object.packed = message.packed; if (message.deprecated != null && message.hasOwnProperty("deprecated")) @@ -49234,7 +49338,7 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) object.lazy = message.lazy; if (message.jstype != null && message.hasOwnProperty("jstype")) - object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) @@ -49247,7 +49351,7 @@ if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { object[".google.api.fieldBehavior"] = []; for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) - object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; } if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); @@ -50604,6 +50708,12 @@ if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); switch (object.idempotencyLevel) { + default: + if (typeof object.idempotencyLevel === "number") { + message.idempotencyLevel = object.idempotencyLevel; + break; + } + break; case "IDEMPOTENCY_UNKNOWN": case 0: message.idempotencyLevel = 0; @@ -50667,7 +50777,7 @@ if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -52420,6 +52530,12 @@ if (object.end != null) message.end = object.end | 0; switch (object.semantic) { + default: + if (typeof object.semantic === "number") { + message.semantic = object.semantic; + break; + } + break; case "NONE": case 0: message.semantic = 0; @@ -52469,7 +52585,7 @@ if (message.end != null && message.hasOwnProperty("end")) object.end = message.end; if (message.semantic != null && message.hasOwnProperty("semantic")) - object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; return object; };