diff --git a/packages/google-cloud-managedidentities/protos/protos.d.ts b/packages/google-cloud-managedidentities/protos/protos.d.ts index a1d2003e874..13405c848ea 100644 --- a/packages/google-cloud-managedidentities/protos/protos.d.ts +++ b/packages/google-cloud-managedidentities/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-managedidentities/protos/protos.js b/packages/google-cloud-managedidentities/protos/protos.js index db106e07842..8499b5fee30 100644 --- a/packages/google-cloud-managedidentities/protos/protos.js +++ b/packages/google-cloud-managedidentities/protos/protos.js @@ -4065,6 +4065,12 @@ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "STATE_UNSPECIFIED": case 0: message.state = 0; @@ -4172,7 +4178,7 @@ if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.managedidentities.v1.Domain.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.managedidentities.v1.Domain.State[message.state] === undefined ? message.state : $root.google.cloud.managedidentities.v1.Domain.State[message.state] : message.state; if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) object.statusMessage = message.statusMessage; if (message.trusts && message.trusts.length) { @@ -4606,6 +4612,12 @@ if (object.targetDomainName != null) message.targetDomainName = String(object.targetDomainName); switch (object.trustType) { + default: + if (typeof object.trustType === "number") { + message.trustType = object.trustType; + break; + } + break; case "TRUST_TYPE_UNSPECIFIED": case 0: message.trustType = 0; @@ -4620,6 +4632,12 @@ break; } switch (object.trustDirection) { + default: + if (typeof object.trustDirection === "number") { + message.trustDirection = object.trustDirection; + break; + } + break; case "TRUST_DIRECTION_UNSPECIFIED": case 0: message.trustDirection = 0; @@ -4659,6 +4677,12 @@ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "STATE_UNSPECIFIED": case 0: message.state = 0; @@ -4724,9 +4748,9 @@ if (message.targetDomainName != null && message.hasOwnProperty("targetDomainName")) object.targetDomainName = message.targetDomainName; if (message.trustType != null && message.hasOwnProperty("trustType")) - object.trustType = options.enums === String ? $root.google.cloud.managedidentities.v1.Trust.TrustType[message.trustType] : message.trustType; + object.trustType = options.enums === String ? $root.google.cloud.managedidentities.v1.Trust.TrustType[message.trustType] === undefined ? message.trustType : $root.google.cloud.managedidentities.v1.Trust.TrustType[message.trustType] : message.trustType; if (message.trustDirection != null && message.hasOwnProperty("trustDirection")) - object.trustDirection = options.enums === String ? $root.google.cloud.managedidentities.v1.Trust.TrustDirection[message.trustDirection] : message.trustDirection; + object.trustDirection = options.enums === String ? $root.google.cloud.managedidentities.v1.Trust.TrustDirection[message.trustDirection] === undefined ? message.trustDirection : $root.google.cloud.managedidentities.v1.Trust.TrustDirection[message.trustDirection] : message.trustDirection; if (message.selectiveAuthentication != null && message.hasOwnProperty("selectiveAuthentication")) object.selectiveAuthentication = message.selectiveAuthentication; if (message.targetDnsIpAddresses && message.targetDnsIpAddresses.length) { @@ -4741,7 +4765,7 @@ if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.managedidentities.v1.Trust.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.managedidentities.v1.Trust.State[message.state] === undefined ? message.state : $root.google.cloud.managedidentities.v1.Trust.State[message.state] : message.state; if (message.stateDescription != null && message.hasOwnProperty("stateDescription")) object.stateDescription = message.stateDescription; if (message.lastTrustHeartbeatTime != null && message.hasOwnProperty("lastTrustHeartbeatTime")) @@ -8845,6 +8869,12 @@ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "STATE_UNSPECIFIED": case 0: message.state = 0; @@ -8952,7 +8982,7 @@ if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.managedidentities.v1beta1.Domain.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.managedidentities.v1beta1.Domain.State[message.state] === undefined ? message.state : $root.google.cloud.managedidentities.v1beta1.Domain.State[message.state] : message.state; if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) object.statusMessage = message.statusMessage; if (message.trusts && message.trusts.length) { @@ -9386,6 +9416,12 @@ if (object.targetDomainName != null) message.targetDomainName = String(object.targetDomainName); switch (object.trustType) { + default: + if (typeof object.trustType === "number") { + message.trustType = object.trustType; + break; + } + break; case "TRUST_TYPE_UNSPECIFIED": case 0: message.trustType = 0; @@ -9400,6 +9436,12 @@ break; } switch (object.trustDirection) { + default: + if (typeof object.trustDirection === "number") { + message.trustDirection = object.trustDirection; + break; + } + break; case "TRUST_DIRECTION_UNSPECIFIED": case 0: message.trustDirection = 0; @@ -9439,6 +9481,12 @@ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "STATE_UNSPECIFIED": case 0: message.state = 0; @@ -9504,9 +9552,9 @@ if (message.targetDomainName != null && message.hasOwnProperty("targetDomainName")) object.targetDomainName = message.targetDomainName; if (message.trustType != null && message.hasOwnProperty("trustType")) - object.trustType = options.enums === String ? $root.google.cloud.managedidentities.v1beta1.Trust.TrustType[message.trustType] : message.trustType; + object.trustType = options.enums === String ? $root.google.cloud.managedidentities.v1beta1.Trust.TrustType[message.trustType] === undefined ? message.trustType : $root.google.cloud.managedidentities.v1beta1.Trust.TrustType[message.trustType] : message.trustType; if (message.trustDirection != null && message.hasOwnProperty("trustDirection")) - object.trustDirection = options.enums === String ? $root.google.cloud.managedidentities.v1beta1.Trust.TrustDirection[message.trustDirection] : message.trustDirection; + object.trustDirection = options.enums === String ? $root.google.cloud.managedidentities.v1beta1.Trust.TrustDirection[message.trustDirection] === undefined ? message.trustDirection : $root.google.cloud.managedidentities.v1beta1.Trust.TrustDirection[message.trustDirection] : message.trustDirection; if (message.selectiveAuthentication != null && message.hasOwnProperty("selectiveAuthentication")) object.selectiveAuthentication = message.selectiveAuthentication; if (message.targetDnsIpAddresses && message.targetDnsIpAddresses.length) { @@ -9521,7 +9569,7 @@ if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.managedidentities.v1beta1.Trust.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.managedidentities.v1beta1.Trust.State[message.state] === undefined ? message.state : $root.google.cloud.managedidentities.v1beta1.Trust.State[message.state] : message.state; if (message.stateDescription != null && message.hasOwnProperty("stateDescription")) object.stateDescription = message.stateDescription; if (message.lastTrustHeartbeatTime != null && message.hasOwnProperty("lastTrustHeartbeatTime")) @@ -10925,6 +10973,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; @@ -10949,6 +11003,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; @@ -10996,7 +11054,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")) @@ -11004,7 +11062,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; }; @@ -13815,6 +13873,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; @@ -13829,6 +13893,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; @@ -13955,9 +14025,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")) @@ -16304,6 +16374,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; @@ -16412,7 +16488,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")) @@ -17214,6 +17290,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; @@ -17230,6 +17312,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; @@ -17268,6 +17356,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; @@ -17338,7 +17430,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")) @@ -17346,7 +17438,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")) @@ -17359,7 +17451,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); @@ -18736,6 +18828,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; @@ -18805,7 +18903,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) @@ -20560,6 +20658,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; @@ -20609,7 +20713,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; };