diff --git a/packages/google-cloud-osconfig/protos/protos.d.ts b/packages/google-cloud-osconfig/protos/protos.d.ts index 0e554bf01c3..bad4c5cc71d 100644 --- a/packages/google-cloud-osconfig/protos/protos.d.ts +++ b/packages/google-cloud-osconfig/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-osconfig/protos/protos.js b/packages/google-cloud-osconfig/protos/protos.js index d6770fea54d..89b549dccc9 100644 --- a/packages/google-cloud-osconfig/protos/protos.js +++ b/packages/google-cloud-osconfig/protos/protos.js @@ -1056,6 +1056,12 @@ if (object.id != null) message.id = String(object.id); switch (object.originType) { + default: + if (typeof object.originType === "number") { + message.originType = object.originType; + break; + } + break; case "ORIGIN_TYPE_UNSPECIFIED": case 0: message.originType = 0; @@ -1076,6 +1082,12 @@ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "TYPE_UNSPECIFIED": case 0: message.type = 0; @@ -1125,9 +1137,9 @@ if (message.id != null && message.hasOwnProperty("id")) object.id = message.id; if (message.originType != null && message.hasOwnProperty("originType")) - object.originType = options.enums === String ? $root.google.cloud.osconfig.v1.Inventory.Item.OriginType[message.originType] : message.originType; + object.originType = options.enums === String ? $root.google.cloud.osconfig.v1.Inventory.Item.OriginType[message.originType] === undefined ? message.originType : $root.google.cloud.osconfig.v1.Inventory.Item.OriginType[message.originType] : message.originType; if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.osconfig.v1.Inventory.Item.Type[message.type] : message.type; + object.type = options.enums === String ? $root.google.cloud.osconfig.v1.Inventory.Item.Type[message.type] === undefined ? message.type : $root.google.cloud.osconfig.v1.Inventory.Item.Type[message.type] : message.type; if (message.installedPackage != null && message.hasOwnProperty("installedPackage")) { object.installedPackage = $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage.toObject(message.installedPackage, options); if (options.oneofs) @@ -3667,6 +3679,12 @@ if (object.name != null) message.name = String(object.name); switch (object.view) { + default: + if (typeof object.view === "number") { + message.view = object.view; + break; + } + break; case "INVENTORY_VIEW_UNSPECIFIED": case 0: message.view = 0; @@ -3703,7 +3721,7 @@ if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.cloud.osconfig.v1.InventoryView[message.view] : message.view; + object.view = options.enums === String ? $root.google.cloud.osconfig.v1.InventoryView[message.view] === undefined ? message.view : $root.google.cloud.osconfig.v1.InventoryView[message.view] : message.view; return object; }; @@ -3966,6 +3984,12 @@ if (object.parent != null) message.parent = String(object.parent); switch (object.view) { + default: + if (typeof object.view === "number") { + message.view = object.view; + break; + } + break; case "INVENTORY_VIEW_UNSPECIFIED": case 0: message.view = 0; @@ -4011,7 +4035,7 @@ if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; if (message.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.cloud.osconfig.v1.InventoryView[message.view] : message.view; + object.view = options.enums === String ? $root.google.cloud.osconfig.v1.InventoryView[message.view] === undefined ? message.view : $root.google.cloud.osconfig.v1.InventoryView[message.view] : message.view; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) @@ -4556,6 +4580,12 @@ if (object.description != null) message.description = String(object.description); switch (object.mode) { + default: + if (typeof object.mode === "number") { + message.mode = object.mode; + break; + } + break; case "MODE_UNSPECIFIED": case 0: message.mode = 0; @@ -4610,7 +4640,7 @@ if (message.description != null && message.hasOwnProperty("description")) object.description = message.description; if (message.mode != null && message.hasOwnProperty("mode")) - object.mode = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Mode[message.mode] : message.mode; + object.mode = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Mode[message.mode] === undefined ? message.mode : $root.google.cloud.osconfig.v1.OSPolicy.Mode[message.mode] : message.mode; if (message.resourceGroups && message.resourceGroups.length) { object.resourceGroups = []; for (var j = 0; j < message.resourceGroups.length; ++j) @@ -6393,6 +6423,12 @@ return object; var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource(); switch (object.desiredState) { + default: + if (typeof object.desiredState === "number") { + message.desiredState = object.desiredState; + break; + } + break; case "DESIRED_STATE_UNSPECIFIED": case 0: message.desiredState = 0; @@ -6460,7 +6496,7 @@ if (options.defaults) object.desiredState = options.enums === String ? "DESIRED_STATE_UNSPECIFIED" : 0; if (message.desiredState != null && message.hasOwnProperty("desiredState")) - object.desiredState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState[message.desiredState] : message.desiredState; + object.desiredState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState[message.desiredState] === undefined ? message.desiredState : $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState[message.desiredState] : message.desiredState; if (message.apt != null && message.hasOwnProperty("apt")) { object.apt = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT.toObject(message.apt, options); if (options.oneofs) @@ -8633,6 +8669,12 @@ return object; var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository(); switch (object.archiveType) { + default: + if (typeof object.archiveType === "number") { + message.archiveType = object.archiveType; + break; + } + break; case "ARCHIVE_TYPE_UNSPECIFIED": case 0: message.archiveType = 0; @@ -8684,7 +8726,7 @@ object.gpgKey = ""; } if (message.archiveType != null && message.hasOwnProperty("archiveType")) - object.archiveType = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType[message.archiveType] : message.archiveType; + object.archiveType = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType[message.archiveType] === undefined ? message.archiveType : $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType[message.archiveType] : message.archiveType; if (message.uri != null && message.hasOwnProperty("uri")) object.uri = message.uri; if (message.distribution != null && message.hasOwnProperty("distribution")) @@ -10063,6 +10105,12 @@ message.args[i] = String(object.args[i]); } switch (object.interpreter) { + default: + if (typeof object.interpreter === "number") { + message.interpreter = object.interpreter; + break; + } + break; case "INTERPRETER_UNSPECIFIED": case 0: message.interpreter = 0; @@ -10120,7 +10168,7 @@ object.args[j] = message.args[j]; } if (message.interpreter != null && message.hasOwnProperty("interpreter")) - object.interpreter = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter[message.interpreter] : message.interpreter; + object.interpreter = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter[message.interpreter] === undefined ? message.interpreter : $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter[message.interpreter] : message.interpreter; if (message.outputFilePath != null && message.hasOwnProperty("outputFilePath")) object.outputFilePath = message.outputFilePath; return object; @@ -10438,6 +10486,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 "DESIRED_STATE_UNSPECIFIED": case 0: message.state = 0; @@ -10491,7 +10545,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.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState[message.state] === undefined ? message.state : $root.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState[message.state] : message.state; if (message.permissions != null && message.hasOwnProperty("permissions")) object.permissions = message.permissions; return object; @@ -12108,6 +12162,12 @@ if (object.osPolicyId != null) message.osPolicyId = String(object.osPolicyId); switch (object.complianceState) { + default: + if (typeof object.complianceState === "number") { + message.complianceState = object.complianceState; + break; + } + break; case "UNKNOWN": case 0: message.complianceState = 0; @@ -12159,7 +12219,7 @@ if (message.osPolicyId != null && message.hasOwnProperty("osPolicyId")) object.osPolicyId = message.osPolicyId; if (message.complianceState != null && message.hasOwnProperty("complianceState")) - object.complianceState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState[message.complianceState] : message.complianceState; + object.complianceState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState[message.complianceState] === undefined ? message.complianceState : $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState[message.complianceState] : message.complianceState; if (message.complianceStateReason != null && message.hasOwnProperty("complianceStateReason")) object.complianceStateReason = message.complianceStateReason; if (message.osPolicyResourceCompliances && message.osPolicyResourceCompliances.length) { @@ -12482,6 +12542,12 @@ } } switch (object.complianceState) { + default: + if (typeof object.complianceState === "number") { + message.complianceState = object.complianceState; + break; + } + break; case "UNKNOWN": case 0: message.complianceState = 0; @@ -12533,7 +12599,7 @@ object.configSteps[j] = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.toObject(message.configSteps[j], options); } if (message.complianceState != null && message.hasOwnProperty("complianceState")) - object.complianceState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState[message.complianceState] : message.complianceState; + object.complianceState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState[message.complianceState] === undefined ? message.complianceState : $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState[message.complianceState] : message.complianceState; if (message.complianceStateReason != null && message.hasOwnProperty("complianceStateReason")) object.complianceStateReason = message.complianceStateReason; if (message.execResourceOutput != null && message.hasOwnProperty("execResourceOutput")) { @@ -12746,6 +12812,12 @@ return object; var message = new $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep(); switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "TYPE_UNSPECIFIED": case 0: message.type = 0; @@ -12790,7 +12862,7 @@ object.errorMessage = ""; } if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type[message.type] : message.type; + object.type = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type[message.type] === undefined ? message.type : $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type[message.type] : message.type; if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) object.errorMessage = message.errorMessage; return object; @@ -13505,6 +13577,12 @@ if (object.etag != null) message.etag = String(object.etag); switch (object.rolloutState) { + default: + if (typeof object.rolloutState === "number") { + message.rolloutState = object.rolloutState; + break; + } + break; case "ROLLOUT_STATE_UNSPECIFIED": case 0: message.rolloutState = 0; @@ -13586,7 +13664,7 @@ if (message.etag != null && message.hasOwnProperty("etag")) object.etag = message.etag; if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) - object.rolloutState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState[message.rolloutState] : message.rolloutState; + object.rolloutState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState[message.rolloutState] === undefined ? message.rolloutState : $root.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState[message.rolloutState] : message.rolloutState; if (message.baseline != null && message.hasOwnProperty("baseline")) object.baseline = message.baseline; if (message.deleted != null && message.hasOwnProperty("deleted")) @@ -14929,6 +15007,12 @@ if (object.osPolicyAssignment != null) message.osPolicyAssignment = String(object.osPolicyAssignment); switch (object.apiMethod) { + default: + if (typeof object.apiMethod === "number") { + message.apiMethod = object.apiMethod; + break; + } + break; case "API_METHOD_UNSPECIFIED": case 0: message.apiMethod = 0; @@ -14947,6 +15031,12 @@ break; } switch (object.rolloutState) { + default: + if (typeof object.rolloutState === "number") { + message.rolloutState = object.rolloutState; + break; + } + break; case "ROLLOUT_STATE_UNSPECIFIED": case 0: message.rolloutState = 0; @@ -15004,9 +15094,9 @@ if (message.osPolicyAssignment != null && message.hasOwnProperty("osPolicyAssignment")) object.osPolicyAssignment = message.osPolicyAssignment; if (message.apiMethod != null && message.hasOwnProperty("apiMethod")) - object.apiMethod = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod[message.apiMethod] : message.apiMethod; + object.apiMethod = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod[message.apiMethod] === undefined ? message.apiMethod : $root.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod[message.apiMethod] : message.apiMethod; if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) - object.rolloutState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState[message.rolloutState] : message.rolloutState; + object.rolloutState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState[message.rolloutState] === undefined ? message.rolloutState : $root.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState[message.rolloutState] : message.rolloutState; if (message.rolloutStartTime != null && message.hasOwnProperty("rolloutStartTime")) object.rolloutStartTime = $root.google.protobuf.Timestamp.toObject(message.rolloutStartTime, options); if (message.rolloutUpdateTime != null && message.hasOwnProperty("rolloutUpdateTime")) @@ -18100,6 +18190,12 @@ message.rollout = $root.google.cloud.osconfig.v1.PatchRollout.fromObject(object.rollout); } switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "STATE_UNSPECIFIED": case 0: message.state = 0; @@ -18170,7 +18266,7 @@ if (message.rollout != null && message.hasOwnProperty("rollout")) object.rollout = $root.google.cloud.osconfig.v1.PatchRollout.toObject(message.rollout, options); if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.osconfig.v1.PatchDeployment.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.osconfig.v1.PatchDeployment.State[message.state] === undefined ? message.state : $root.google.cloud.osconfig.v1.PatchDeployment.State[message.state] : message.state; return object; }; @@ -18787,6 +18883,12 @@ message.timeOfDay = $root.google.type.TimeOfDay.fromObject(object.timeOfDay); } switch (object.frequency) { + default: + if (typeof object.frequency === "number") { + message.frequency = object.frequency; + break; + } + break; case "FREQUENCY_UNSPECIFIED": case 0: message.frequency = 0; @@ -18858,7 +18960,7 @@ if (message.timeOfDay != null && message.hasOwnProperty("timeOfDay")) object.timeOfDay = $root.google.type.TimeOfDay.toObject(message.timeOfDay, options); if (message.frequency != null && message.hasOwnProperty("frequency")) - object.frequency = options.enums === String ? $root.google.cloud.osconfig.v1.RecurringSchedule.Frequency[message.frequency] : message.frequency; + object.frequency = options.enums === String ? $root.google.cloud.osconfig.v1.RecurringSchedule.Frequency[message.frequency] === undefined ? message.frequency : $root.google.cloud.osconfig.v1.RecurringSchedule.Frequency[message.frequency] : message.frequency; if (message.weekly != null && message.hasOwnProperty("weekly")) { object.weekly = $root.google.cloud.osconfig.v1.WeeklySchedule.toObject(message.weekly, options); if (options.oneofs) @@ -19084,6 +19186,12 @@ return object; var message = new $root.google.cloud.osconfig.v1.WeeklySchedule(); switch (object.dayOfWeek) { + default: + if (typeof object.dayOfWeek === "number") { + message.dayOfWeek = object.dayOfWeek; + break; + } + break; case "DAY_OF_WEEK_UNSPECIFIED": case 0: message.dayOfWeek = 0; @@ -19136,7 +19244,7 @@ if (options.defaults) object.dayOfWeek = options.enums === String ? "DAY_OF_WEEK_UNSPECIFIED" : 0; if (message.dayOfWeek != null && message.hasOwnProperty("dayOfWeek")) - object.dayOfWeek = options.enums === String ? $root.google.type.DayOfWeek[message.dayOfWeek] : message.dayOfWeek; + object.dayOfWeek = options.enums === String ? $root.google.type.DayOfWeek[message.dayOfWeek] === undefined ? message.dayOfWeek : $root.google.type.DayOfWeek[message.dayOfWeek] : message.dayOfWeek; return object; }; @@ -19624,6 +19732,12 @@ if (object.weekOrdinal != null) message.weekOrdinal = object.weekOrdinal | 0; switch (object.dayOfWeek) { + default: + if (typeof object.dayOfWeek === "number") { + message.dayOfWeek = object.dayOfWeek; + break; + } + break; case "DAY_OF_WEEK_UNSPECIFIED": case 0: message.dayOfWeek = 0; @@ -19683,7 +19797,7 @@ if (message.weekOrdinal != null && message.hasOwnProperty("weekOrdinal")) object.weekOrdinal = message.weekOrdinal; if (message.dayOfWeek != null && message.hasOwnProperty("dayOfWeek")) - object.dayOfWeek = options.enums === String ? $root.google.type.DayOfWeek[message.dayOfWeek] : message.dayOfWeek; + object.dayOfWeek = options.enums === String ? $root.google.type.DayOfWeek[message.dayOfWeek] === undefined ? message.dayOfWeek : $root.google.type.DayOfWeek[message.dayOfWeek] : message.dayOfWeek; if (message.dayOffset != null && message.hasOwnProperty("dayOffset")) object.dayOffset = message.dayOffset; return object; @@ -22874,6 +22988,12 @@ if (object.instanceSystemId != null) message.instanceSystemId = String(object.instanceSystemId); switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "PATCH_STATE_UNSPECIFIED": case 0: message.state = 0; @@ -22982,7 +23102,7 @@ if (message.instanceSystemId != null && message.hasOwnProperty("instanceSystemId")) object.instanceSystemId = message.instanceSystemId; if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.osconfig.v1.Instance.PatchState[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.osconfig.v1.Instance.PatchState[message.state] === undefined ? message.state : $root.google.cloud.osconfig.v1.Instance.PatchState[message.state] : message.state; if (message.failureReason != null && message.hasOwnProperty("failureReason")) object.failureReason = message.failureReason; if (message.attemptCount != null && message.hasOwnProperty("attemptCount")) @@ -23986,6 +24106,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; @@ -24094,7 +24220,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.osconfig.v1.PatchJob.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.osconfig.v1.PatchJob.State[message.state] === undefined ? message.state : $root.google.cloud.osconfig.v1.PatchJob.State[message.state] : message.state; if (message.patchConfig != null && message.hasOwnProperty("patchConfig")) object.patchConfig = $root.google.cloud.osconfig.v1.PatchConfig.toObject(message.patchConfig, options); if (message.duration != null && message.hasOwnProperty("duration")) @@ -25224,6 +25350,12 @@ return object; var message = new $root.google.cloud.osconfig.v1.PatchConfig(); switch (object.rebootConfig) { + default: + if (typeof object.rebootConfig === "number") { + message.rebootConfig = object.rebootConfig; + break; + } + break; case "REBOOT_CONFIG_UNSPECIFIED": case 0: message.rebootConfig = 0; @@ -25306,7 +25438,7 @@ object.migInstancesAllowed = false; } if (message.rebootConfig != null && message.hasOwnProperty("rebootConfig")) - object.rebootConfig = options.enums === String ? $root.google.cloud.osconfig.v1.PatchConfig.RebootConfig[message.rebootConfig] : message.rebootConfig; + object.rebootConfig = options.enums === String ? $root.google.cloud.osconfig.v1.PatchConfig.RebootConfig[message.rebootConfig] === undefined ? message.rebootConfig : $root.google.cloud.osconfig.v1.PatchConfig.RebootConfig[message.rebootConfig] : message.rebootConfig; if (message.apt != null && message.hasOwnProperty("apt")) object.apt = $root.google.cloud.osconfig.v1.AptSettings.toObject(message.apt, options); if (message.yum != null && message.hasOwnProperty("yum")) @@ -26001,6 +26133,12 @@ return object; var message = new $root.google.cloud.osconfig.v1.AptSettings(); switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "TYPE_UNSPECIFIED": case 0: message.type = 0; @@ -26051,7 +26189,7 @@ if (options.defaults) object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.osconfig.v1.AptSettings.Type[message.type] : message.type; + object.type = options.enums === String ? $root.google.cloud.osconfig.v1.AptSettings.Type[message.type] === undefined ? message.type : $root.google.cloud.osconfig.v1.AptSettings.Type[message.type] : message.type; if (message.excludes && message.excludes.length) { object.excludes = []; for (var j = 0; j < message.excludes.length; ++j) @@ -27214,6 +27352,10 @@ for (var i = 0; i < object.classifications.length; ++i) switch (object.classifications[i]) { default: + if (typeof object.classifications[i] === "number") { + message.classifications[i] = object.classifications[i]; + break; + } case "CLASSIFICATION_UNSPECIFIED": case 0: message.classifications[i] = 0; @@ -27294,7 +27436,7 @@ if (message.classifications && message.classifications.length) { object.classifications = []; for (var j = 0; j < message.classifications.length; ++j) - object.classifications[j] = options.enums === String ? $root.google.cloud.osconfig.v1.WindowsUpdateSettings.Classification[message.classifications[j]] : message.classifications[j]; + object.classifications[j] = options.enums === String ? $root.google.cloud.osconfig.v1.WindowsUpdateSettings.Classification[message.classifications[j]] === undefined ? message.classifications[j] : $root.google.cloud.osconfig.v1.WindowsUpdateSettings.Classification[message.classifications[j]] : message.classifications[j]; } if (message.excludes && message.excludes.length) { object.excludes = []; @@ -27869,6 +28011,12 @@ message.allowedSuccessCodes[i] = object.allowedSuccessCodes[i] | 0; } switch (object.interpreter) { + default: + if (typeof object.interpreter === "number") { + message.interpreter = object.interpreter; + break; + } + break; case "INTERPRETER_UNSPECIFIED": case 0: message.interpreter = 0; @@ -27918,7 +28066,7 @@ object.allowedSuccessCodes[j] = message.allowedSuccessCodes[j]; } if (message.interpreter != null && message.hasOwnProperty("interpreter")) - object.interpreter = options.enums === String ? $root.google.cloud.osconfig.v1.ExecStepConfig.Interpreter[message.interpreter] : message.interpreter; + object.interpreter = options.enums === String ? $root.google.cloud.osconfig.v1.ExecStepConfig.Interpreter[message.interpreter] === undefined ? message.interpreter : $root.google.cloud.osconfig.v1.ExecStepConfig.Interpreter[message.interpreter] : message.interpreter; return object; }; @@ -29011,6 +29159,12 @@ return object; var message = new $root.google.cloud.osconfig.v1.PatchRollout(); switch (object.mode) { + default: + if (typeof object.mode === "number") { + message.mode = object.mode; + break; + } + break; case "MODE_UNSPECIFIED": case 0: message.mode = 0; @@ -29050,7 +29204,7 @@ object.disruptionBudget = null; } if (message.mode != null && message.hasOwnProperty("mode")) - object.mode = options.enums === String ? $root.google.cloud.osconfig.v1.PatchRollout.Mode[message.mode] : message.mode; + object.mode = options.enums === String ? $root.google.cloud.osconfig.v1.PatchRollout.Mode[message.mode] === undefined ? message.mode : $root.google.cloud.osconfig.v1.PatchRollout.Mode[message.mode] : message.mode; if (message.disruptionBudget != null && message.hasOwnProperty("disruptionBudget")) object.disruptionBudget = $root.google.cloud.osconfig.v1.FixedOrPercent.toObject(message.disruptionBudget, options); return object; @@ -32158,6 +32312,12 @@ if (object.impactScore != null) message.impactScore = Number(object.impactScore); switch (object.attackVector) { + default: + if (typeof object.attackVector === "number") { + message.attackVector = object.attackVector; + break; + } + break; case "ATTACK_VECTOR_UNSPECIFIED": case 0: message.attackVector = 0; @@ -32180,6 +32340,12 @@ break; } switch (object.attackComplexity) { + default: + if (typeof object.attackComplexity === "number") { + message.attackComplexity = object.attackComplexity; + break; + } + break; case "ATTACK_COMPLEXITY_UNSPECIFIED": case 0: message.attackComplexity = 0; @@ -32194,6 +32360,12 @@ break; } switch (object.privilegesRequired) { + default: + if (typeof object.privilegesRequired === "number") { + message.privilegesRequired = object.privilegesRequired; + break; + } + break; case "PRIVILEGES_REQUIRED_UNSPECIFIED": case 0: message.privilegesRequired = 0; @@ -32212,6 +32384,12 @@ break; } switch (object.userInteraction) { + default: + if (typeof object.userInteraction === "number") { + message.userInteraction = object.userInteraction; + break; + } + break; case "USER_INTERACTION_UNSPECIFIED": case 0: message.userInteraction = 0; @@ -32226,6 +32404,12 @@ break; } switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; case "SCOPE_UNSPECIFIED": case 0: message.scope = 0; @@ -32240,6 +32424,12 @@ break; } switch (object.confidentialityImpact) { + default: + if (typeof object.confidentialityImpact === "number") { + message.confidentialityImpact = object.confidentialityImpact; + break; + } + break; case "IMPACT_UNSPECIFIED": case 0: message.confidentialityImpact = 0; @@ -32258,6 +32448,12 @@ break; } switch (object.integrityImpact) { + default: + if (typeof object.integrityImpact === "number") { + message.integrityImpact = object.integrityImpact; + break; + } + break; case "IMPACT_UNSPECIFIED": case 0: message.integrityImpact = 0; @@ -32276,6 +32472,12 @@ break; } switch (object.availabilityImpact) { + default: + if (typeof object.availabilityImpact === "number") { + message.availabilityImpact = object.availabilityImpact; + break; + } + break; case "IMPACT_UNSPECIFIED": case 0: message.availabilityImpact = 0; @@ -32329,21 +32531,21 @@ if (message.impactScore != null && message.hasOwnProperty("impactScore")) object.impactScore = options.json && !isFinite(message.impactScore) ? String(message.impactScore) : message.impactScore; if (message.attackVector != null && message.hasOwnProperty("attackVector")) - object.attackVector = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.AttackVector[message.attackVector] : message.attackVector; + object.attackVector = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.AttackVector[message.attackVector] === undefined ? message.attackVector : $root.google.cloud.osconfig.v1.CVSSv3.AttackVector[message.attackVector] : message.attackVector; if (message.attackComplexity != null && message.hasOwnProperty("attackComplexity")) - object.attackComplexity = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.AttackComplexity[message.attackComplexity] : message.attackComplexity; + object.attackComplexity = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.AttackComplexity[message.attackComplexity] === undefined ? message.attackComplexity : $root.google.cloud.osconfig.v1.CVSSv3.AttackComplexity[message.attackComplexity] : message.attackComplexity; if (message.privilegesRequired != null && message.hasOwnProperty("privilegesRequired")) - object.privilegesRequired = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired[message.privilegesRequired] : message.privilegesRequired; + object.privilegesRequired = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired[message.privilegesRequired] === undefined ? message.privilegesRequired : $root.google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired[message.privilegesRequired] : message.privilegesRequired; if (message.userInteraction != null && message.hasOwnProperty("userInteraction")) - object.userInteraction = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.UserInteraction[message.userInteraction] : message.userInteraction; + object.userInteraction = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.UserInteraction[message.userInteraction] === undefined ? message.userInteraction : $root.google.cloud.osconfig.v1.CVSSv3.UserInteraction[message.userInteraction] : message.userInteraction; if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.Scope[message.scope] : message.scope; + object.scope = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.Scope[message.scope] === undefined ? message.scope : $root.google.cloud.osconfig.v1.CVSSv3.Scope[message.scope] : message.scope; if (message.confidentialityImpact != null && message.hasOwnProperty("confidentialityImpact")) - object.confidentialityImpact = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.Impact[message.confidentialityImpact] : message.confidentialityImpact; + object.confidentialityImpact = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.Impact[message.confidentialityImpact] === undefined ? message.confidentialityImpact : $root.google.cloud.osconfig.v1.CVSSv3.Impact[message.confidentialityImpact] : message.confidentialityImpact; if (message.integrityImpact != null && message.hasOwnProperty("integrityImpact")) - object.integrityImpact = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.Impact[message.integrityImpact] : message.integrityImpact; + object.integrityImpact = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.Impact[message.integrityImpact] === undefined ? message.integrityImpact : $root.google.cloud.osconfig.v1.CVSSv3.Impact[message.integrityImpact] : message.integrityImpact; if (message.availabilityImpact != null && message.hasOwnProperty("availabilityImpact")) - object.availabilityImpact = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.Impact[message.availabilityImpact] : message.availabilityImpact; + object.availabilityImpact = options.enums === String ? $root.google.cloud.osconfig.v1.CVSSv3.Impact[message.availabilityImpact] === undefined ? message.availabilityImpact : $root.google.cloud.osconfig.v1.CVSSv3.Impact[message.availabilityImpact] : message.availabilityImpact; return object; }; @@ -32692,6 +32894,12 @@ return object; var message = new $root.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep(); switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "TYPE_UNSPECIFIED": case 0: message.type = 0; @@ -32714,6 +32922,12 @@ break; } switch (object.outcome) { + default: + if (typeof object.outcome === "number") { + message.outcome = object.outcome; + break; + } + break; case "OUTCOME_UNSPECIFIED": case 0: message.outcome = 0; @@ -32751,9 +32965,9 @@ object.errorMessage = ""; } if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type[message.type] : message.type; + object.type = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type[message.type] === undefined ? message.type : $root.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type[message.type] : message.type; if (message.outcome != null && message.hasOwnProperty("outcome")) - object.outcome = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome[message.outcome] : message.outcome; + object.outcome = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome[message.outcome] === undefined ? message.outcome : $root.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome[message.outcome] : message.outcome; if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) object.errorMessage = message.errorMessage; return object; @@ -33078,6 +33292,12 @@ } } switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED": case 0: message.state = 0; @@ -33134,7 +33354,7 @@ object.configSteps[j] = $root.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.toObject(message.configSteps[j], options); } if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyComplianceState[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyComplianceState[message.state] === undefined ? message.state : $root.google.cloud.osconfig.v1alpha.OSPolicyComplianceState[message.state] : message.state; if (message.execResourceOutput != null && message.hasOwnProperty("execResourceOutput")) { object.execResourceOutput = $root.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput.toObject(message.execResourceOutput, options); if (options.oneofs) @@ -33704,6 +33924,12 @@ if (object.instance != null) message.instance = String(object.instance); switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED": case 0: message.state = 0; @@ -33778,7 +34004,7 @@ if (message.instance != null && message.hasOwnProperty("instance")) object.instance = message.instance; if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyComplianceState[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyComplianceState[message.state] === undefined ? message.state : $root.google.cloud.osconfig.v1alpha.OSPolicyComplianceState[message.state] : message.state; if (message.detailedState != null && message.hasOwnProperty("detailedState")) object.detailedState = message.detailedState; if (message.detailedStateReason != null && message.hasOwnProperty("detailedStateReason")) @@ -34047,6 +34273,12 @@ if (object.osPolicyAssignment != null) message.osPolicyAssignment = String(object.osPolicyAssignment); switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED": case 0: message.state = 0; @@ -34106,7 +34338,7 @@ if (message.osPolicyAssignment != null && message.hasOwnProperty("osPolicyAssignment")) object.osPolicyAssignment = message.osPolicyAssignment; if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyComplianceState[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyComplianceState[message.state] === undefined ? message.state : $root.google.cloud.osconfig.v1alpha.OSPolicyComplianceState[message.state] : message.state; if (message.osPolicyResourceCompliances && message.osPolicyResourceCompliances.length) { object.osPolicyResourceCompliances = []; for (var j = 0; j < message.osPolicyResourceCompliances.length; ++j) @@ -35861,6 +36093,12 @@ if (object.id != null) message.id = String(object.id); switch (object.originType) { + default: + if (typeof object.originType === "number") { + message.originType = object.originType; + break; + } + break; case "ORIGIN_TYPE_UNSPECIFIED": case 0: message.originType = 0; @@ -35881,6 +36119,12 @@ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "TYPE_UNSPECIFIED": case 0: message.type = 0; @@ -35930,9 +36174,9 @@ if (message.id != null && message.hasOwnProperty("id")) object.id = message.id; if (message.originType != null && message.hasOwnProperty("originType")) - object.originType = options.enums === String ? $root.google.cloud.osconfig.v1alpha.Inventory.Item.OriginType[message.originType] : message.originType; + object.originType = options.enums === String ? $root.google.cloud.osconfig.v1alpha.Inventory.Item.OriginType[message.originType] === undefined ? message.originType : $root.google.cloud.osconfig.v1alpha.Inventory.Item.OriginType[message.originType] : message.originType; if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.osconfig.v1alpha.Inventory.Item.Type[message.type] : message.type; + object.type = options.enums === String ? $root.google.cloud.osconfig.v1alpha.Inventory.Item.Type[message.type] === undefined ? message.type : $root.google.cloud.osconfig.v1alpha.Inventory.Item.Type[message.type] : message.type; if (message.installedPackage != null && message.hasOwnProperty("installedPackage")) { object.installedPackage = $root.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage.toObject(message.installedPackage, options); if (options.oneofs) @@ -38472,6 +38716,12 @@ if (object.name != null) message.name = String(object.name); switch (object.view) { + default: + if (typeof object.view === "number") { + message.view = object.view; + break; + } + break; case "INVENTORY_VIEW_UNSPECIFIED": case 0: message.view = 0; @@ -38508,7 +38758,7 @@ if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.cloud.osconfig.v1alpha.InventoryView[message.view] : message.view; + object.view = options.enums === String ? $root.google.cloud.osconfig.v1alpha.InventoryView[message.view] === undefined ? message.view : $root.google.cloud.osconfig.v1alpha.InventoryView[message.view] : message.view; return object; }; @@ -38771,6 +39021,12 @@ if (object.parent != null) message.parent = String(object.parent); switch (object.view) { + default: + if (typeof object.view === "number") { + message.view = object.view; + break; + } + break; case "INVENTORY_VIEW_UNSPECIFIED": case 0: message.view = 0; @@ -38816,7 +39072,7 @@ if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; if (message.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.cloud.osconfig.v1alpha.InventoryView[message.view] : message.view; + object.view = options.enums === String ? $root.google.cloud.osconfig.v1alpha.InventoryView[message.view] === undefined ? message.view : $root.google.cloud.osconfig.v1alpha.InventoryView[message.view] : message.view; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) @@ -39361,6 +39617,12 @@ if (object.description != null) message.description = String(object.description); switch (object.mode) { + default: + if (typeof object.mode === "number") { + message.mode = object.mode; + break; + } + break; case "MODE_UNSPECIFIED": case 0: message.mode = 0; @@ -39415,7 +39677,7 @@ if (message.description != null && message.hasOwnProperty("description")) object.description = message.description; if (message.mode != null && message.hasOwnProperty("mode")) - object.mode = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicy.Mode[message.mode] : message.mode; + object.mode = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicy.Mode[message.mode] === undefined ? message.mode : $root.google.cloud.osconfig.v1alpha.OSPolicy.Mode[message.mode] : message.mode; if (message.resourceGroups && message.resourceGroups.length) { object.resourceGroups = []; for (var j = 0; j < message.resourceGroups.length; ++j) @@ -41425,6 +41687,12 @@ return object; var message = new $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource(); switch (object.desiredState) { + default: + if (typeof object.desiredState === "number") { + message.desiredState = object.desiredState; + break; + } + break; case "DESIRED_STATE_UNSPECIFIED": case 0: message.desiredState = 0; @@ -41492,7 +41760,7 @@ if (options.defaults) object.desiredState = options.enums === String ? "DESIRED_STATE_UNSPECIFIED" : 0; if (message.desiredState != null && message.hasOwnProperty("desiredState")) - object.desiredState = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.DesiredState[message.desiredState] : message.desiredState; + object.desiredState = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.DesiredState[message.desiredState] === undefined ? message.desiredState : $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.DesiredState[message.desiredState] : message.desiredState; if (message.apt != null && message.hasOwnProperty("apt")) { object.apt = $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT.toObject(message.apt, options); if (options.oneofs) @@ -43665,6 +43933,12 @@ return object; var message = new $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository(); switch (object.archiveType) { + default: + if (typeof object.archiveType === "number") { + message.archiveType = object.archiveType; + break; + } + break; case "ARCHIVE_TYPE_UNSPECIFIED": case 0: message.archiveType = 0; @@ -43716,7 +43990,7 @@ object.gpgKey = ""; } if (message.archiveType != null && message.hasOwnProperty("archiveType")) - object.archiveType = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType[message.archiveType] : message.archiveType; + object.archiveType = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType[message.archiveType] === undefined ? message.archiveType : $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType[message.archiveType] : message.archiveType; if (message.uri != null && message.hasOwnProperty("uri")) object.uri = message.uri; if (message.distribution != null && message.hasOwnProperty("distribution")) @@ -45095,6 +45369,12 @@ message.args[i] = String(object.args[i]); } switch (object.interpreter) { + default: + if (typeof object.interpreter === "number") { + message.interpreter = object.interpreter; + break; + } + break; case "INTERPRETER_UNSPECIFIED": case 0: message.interpreter = 0; @@ -45152,7 +45432,7 @@ object.args[j] = message.args[j]; } if (message.interpreter != null && message.hasOwnProperty("interpreter")) - object.interpreter = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.Interpreter[message.interpreter] : message.interpreter; + object.interpreter = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.Interpreter[message.interpreter] === undefined ? message.interpreter : $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.Interpreter[message.interpreter] : message.interpreter; if (message.outputFilePath != null && message.hasOwnProperty("outputFilePath")) object.outputFilePath = message.outputFilePath; return object; @@ -45470,6 +45750,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 "DESIRED_STATE_UNSPECIFIED": case 0: message.state = 0; @@ -45523,7 +45809,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.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState[message.state] === undefined ? message.state : $root.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState[message.state] : message.state; if (message.permissions != null && message.hasOwnProperty("permissions")) object.permissions = message.permissions; return object; @@ -47169,6 +47455,12 @@ if (object.osPolicyId != null) message.osPolicyId = String(object.osPolicyId); switch (object.complianceState) { + default: + if (typeof object.complianceState === "number") { + message.complianceState = object.complianceState; + break; + } + break; case "UNKNOWN": case 0: message.complianceState = 0; @@ -47220,7 +47512,7 @@ if (message.osPolicyId != null && message.hasOwnProperty("osPolicyId")) object.osPolicyId = message.osPolicyId; if (message.complianceState != null && message.hasOwnProperty("complianceState")) - object.complianceState = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState[message.complianceState] : message.complianceState; + object.complianceState = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState[message.complianceState] === undefined ? message.complianceState : $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState[message.complianceState] : message.complianceState; if (message.complianceStateReason != null && message.hasOwnProperty("complianceStateReason")) object.complianceStateReason = message.complianceStateReason; if (message.osPolicyResourceCompliances && message.osPolicyResourceCompliances.length) { @@ -47543,6 +47835,12 @@ } } switch (object.complianceState) { + default: + if (typeof object.complianceState === "number") { + message.complianceState = object.complianceState; + break; + } + break; case "UNKNOWN": case 0: message.complianceState = 0; @@ -47594,7 +47892,7 @@ object.configSteps[j] = $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.toObject(message.configSteps[j], options); } if (message.complianceState != null && message.hasOwnProperty("complianceState")) - object.complianceState = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState[message.complianceState] : message.complianceState; + object.complianceState = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState[message.complianceState] === undefined ? message.complianceState : $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState[message.complianceState] : message.complianceState; if (message.complianceStateReason != null && message.hasOwnProperty("complianceStateReason")) object.complianceStateReason = message.complianceStateReason; if (message.execResourceOutput != null && message.hasOwnProperty("execResourceOutput")) { @@ -47807,6 +48105,12 @@ return object; var message = new $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep(); switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "TYPE_UNSPECIFIED": case 0: message.type = 0; @@ -47851,7 +48155,7 @@ object.errorMessage = ""; } if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type[message.type] : message.type; + object.type = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type[message.type] === undefined ? message.type : $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type[message.type] : message.type; if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) object.errorMessage = message.errorMessage; return object; @@ -48566,6 +48870,12 @@ if (object.etag != null) message.etag = String(object.etag); switch (object.rolloutState) { + default: + if (typeof object.rolloutState === "number") { + message.rolloutState = object.rolloutState; + break; + } + break; case "ROLLOUT_STATE_UNSPECIFIED": case 0: message.rolloutState = 0; @@ -48647,7 +48957,7 @@ if (message.etag != null && message.hasOwnProperty("etag")) object.etag = message.etag; if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) - object.rolloutState = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState[message.rolloutState] : message.rolloutState; + object.rolloutState = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState[message.rolloutState] === undefined ? message.rolloutState : $root.google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState[message.rolloutState] : message.rolloutState; if (message.baseline != null && message.hasOwnProperty("baseline")) object.baseline = message.baseline; if (message.deleted != null && message.hasOwnProperty("deleted")) @@ -50029,6 +50339,12 @@ if (object.osPolicyAssignment != null) message.osPolicyAssignment = String(object.osPolicyAssignment); switch (object.apiMethod) { + default: + if (typeof object.apiMethod === "number") { + message.apiMethod = object.apiMethod; + break; + } + break; case "API_METHOD_UNSPECIFIED": case 0: message.apiMethod = 0; @@ -50047,6 +50363,12 @@ break; } switch (object.rolloutState) { + default: + if (typeof object.rolloutState === "number") { + message.rolloutState = object.rolloutState; + break; + } + break; case "ROLLOUT_STATE_UNSPECIFIED": case 0: message.rolloutState = 0; @@ -50104,9 +50426,9 @@ if (message.osPolicyAssignment != null && message.hasOwnProperty("osPolicyAssignment")) object.osPolicyAssignment = message.osPolicyAssignment; if (message.apiMethod != null && message.hasOwnProperty("apiMethod")) - object.apiMethod = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod[message.apiMethod] : message.apiMethod; + object.apiMethod = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod[message.apiMethod] === undefined ? message.apiMethod : $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod[message.apiMethod] : message.apiMethod; if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) - object.rolloutState = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.RolloutState[message.rolloutState] : message.rolloutState; + object.rolloutState = options.enums === String ? $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.RolloutState[message.rolloutState] === undefined ? message.rolloutState : $root.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.RolloutState[message.rolloutState] : message.rolloutState; if (message.rolloutStartTime != null && message.hasOwnProperty("rolloutStartTime")) object.rolloutStartTime = $root.google.protobuf.Timestamp.toObject(message.rolloutStartTime, options); if (message.rolloutUpdateTime != null && message.hasOwnProperty("rolloutUpdateTime")) @@ -55448,6 +55770,12 @@ if (object.impactScore != null) message.impactScore = Number(object.impactScore); switch (object.attackVector) { + default: + if (typeof object.attackVector === "number") { + message.attackVector = object.attackVector; + break; + } + break; case "ATTACK_VECTOR_UNSPECIFIED": case 0: message.attackVector = 0; @@ -55470,6 +55798,12 @@ break; } switch (object.attackComplexity) { + default: + if (typeof object.attackComplexity === "number") { + message.attackComplexity = object.attackComplexity; + break; + } + break; case "ATTACK_COMPLEXITY_UNSPECIFIED": case 0: message.attackComplexity = 0; @@ -55484,6 +55818,12 @@ break; } switch (object.privilegesRequired) { + default: + if (typeof object.privilegesRequired === "number") { + message.privilegesRequired = object.privilegesRequired; + break; + } + break; case "PRIVILEGES_REQUIRED_UNSPECIFIED": case 0: message.privilegesRequired = 0; @@ -55502,6 +55842,12 @@ break; } switch (object.userInteraction) { + default: + if (typeof object.userInteraction === "number") { + message.userInteraction = object.userInteraction; + break; + } + break; case "USER_INTERACTION_UNSPECIFIED": case 0: message.userInteraction = 0; @@ -55516,6 +55862,12 @@ break; } switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; case "SCOPE_UNSPECIFIED": case 0: message.scope = 0; @@ -55530,6 +55882,12 @@ break; } switch (object.confidentialityImpact) { + default: + if (typeof object.confidentialityImpact === "number") { + message.confidentialityImpact = object.confidentialityImpact; + break; + } + break; case "IMPACT_UNSPECIFIED": case 0: message.confidentialityImpact = 0; @@ -55548,6 +55906,12 @@ break; } switch (object.integrityImpact) { + default: + if (typeof object.integrityImpact === "number") { + message.integrityImpact = object.integrityImpact; + break; + } + break; case "IMPACT_UNSPECIFIED": case 0: message.integrityImpact = 0; @@ -55566,6 +55930,12 @@ break; } switch (object.availabilityImpact) { + default: + if (typeof object.availabilityImpact === "number") { + message.availabilityImpact = object.availabilityImpact; + break; + } + break; case "IMPACT_UNSPECIFIED": case 0: message.availabilityImpact = 0; @@ -55619,21 +55989,21 @@ if (message.impactScore != null && message.hasOwnProperty("impactScore")) object.impactScore = options.json && !isFinite(message.impactScore) ? String(message.impactScore) : message.impactScore; if (message.attackVector != null && message.hasOwnProperty("attackVector")) - object.attackVector = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.AttackVector[message.attackVector] : message.attackVector; + object.attackVector = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.AttackVector[message.attackVector] === undefined ? message.attackVector : $root.google.cloud.osconfig.v1alpha.CVSSv3.AttackVector[message.attackVector] : message.attackVector; if (message.attackComplexity != null && message.hasOwnProperty("attackComplexity")) - object.attackComplexity = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity[message.attackComplexity] : message.attackComplexity; + object.attackComplexity = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity[message.attackComplexity] === undefined ? message.attackComplexity : $root.google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity[message.attackComplexity] : message.attackComplexity; if (message.privilegesRequired != null && message.hasOwnProperty("privilegesRequired")) - object.privilegesRequired = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired[message.privilegesRequired] : message.privilegesRequired; + object.privilegesRequired = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired[message.privilegesRequired] === undefined ? message.privilegesRequired : $root.google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired[message.privilegesRequired] : message.privilegesRequired; if (message.userInteraction != null && message.hasOwnProperty("userInteraction")) - object.userInteraction = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction[message.userInteraction] : message.userInteraction; + object.userInteraction = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction[message.userInteraction] === undefined ? message.userInteraction : $root.google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction[message.userInteraction] : message.userInteraction; if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.Scope[message.scope] : message.scope; + object.scope = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.Scope[message.scope] === undefined ? message.scope : $root.google.cloud.osconfig.v1alpha.CVSSv3.Scope[message.scope] : message.scope; if (message.confidentialityImpact != null && message.hasOwnProperty("confidentialityImpact")) - object.confidentialityImpact = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.Impact[message.confidentialityImpact] : message.confidentialityImpact; + object.confidentialityImpact = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.Impact[message.confidentialityImpact] === undefined ? message.confidentialityImpact : $root.google.cloud.osconfig.v1alpha.CVSSv3.Impact[message.confidentialityImpact] : message.confidentialityImpact; if (message.integrityImpact != null && message.hasOwnProperty("integrityImpact")) - object.integrityImpact = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.Impact[message.integrityImpact] : message.integrityImpact; + object.integrityImpact = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.Impact[message.integrityImpact] === undefined ? message.integrityImpact : $root.google.cloud.osconfig.v1alpha.CVSSv3.Impact[message.integrityImpact] : message.integrityImpact; if (message.availabilityImpact != null && message.hasOwnProperty("availabilityImpact")) - object.availabilityImpact = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.Impact[message.availabilityImpact] : message.availabilityImpact; + object.availabilityImpact = options.enums === String ? $root.google.cloud.osconfig.v1alpha.CVSSv3.Impact[message.availabilityImpact] === undefined ? message.availabilityImpact : $root.google.cloud.osconfig.v1alpha.CVSSv3.Impact[message.availabilityImpact] : message.availabilityImpact; return object; }; @@ -56118,6 +56488,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; @@ -56142,6 +56518,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; @@ -56189,7 +56569,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")) @@ -56197,7 +56577,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; }; @@ -59971,6 +60351,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; @@ -59985,6 +60371,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; @@ -60111,9 +60503,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")) @@ -62460,6 +62852,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; @@ -62568,7 +62966,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")) @@ -63370,6 +63768,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; @@ -63386,6 +63790,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; @@ -63424,6 +63834,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; @@ -63494,7 +63908,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")) @@ -63502,7 +63916,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")) @@ -63515,7 +63929,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); @@ -64892,6 +65306,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; @@ -64961,7 +65381,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) @@ -66716,6 +67136,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; @@ -66765,7 +67191,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; };