Searched refs:protoType (Results 1 – 4 of 4) sorted by relevance
21 static tamper(protoType: protobuf.Type): TamperedMessageType {22 TamperedMessageType.tamperTypeDfs(protoType);23 return protoType as TamperedMessageType;28 private static tamperTypeDfs(protoType: protobuf.Type) {29 for (const fieldName of Object.keys(protoType.fields)) {30 const field = protoType.fields[fieldName];
27 private readonly protoType: TamperedMessageType; property in AddDefaults34 this.protoType = assertDefined(protoField.tamperedMessageType);39 for (const fieldName in this.protoType.fields) {52 !Object.prototype.hasOwnProperty.call(this.protoType.fields, fieldName)57 const field = this.protoType.fields[fieldName];
52 const protoType: TamperedMessageType | undefined = constant56 if (protoType && field.name !== value.name) {57 field = protoType.fields[value.name] ?? parentField;
27 const protoType = parentField.tamperedMessageType; constant29 if (protoType === undefined) {35 field = protoType.fields[value.name] ?? parentField;