Lines Matching refs:Message
135 jspb.Message = function() { class in jspb
181 jspb.Message.SUPPORTS_UINT8ARRAY_ = (typeof Uint8Array == 'function');
189 jspb.Message.prototype.array;
199 jspb.Message.prototype.wrappers_;
208 jspb.Message.prototype.extensionObject_;
217 jspb.Message.prototype.pivot_;
226 jspb.Message.prototype.messageId_;
234 jspb.Message.prototype.convertedFloatingPointFields_;
246 jspb.Message.prototype.messageXid;
255 jspb.Message.prototype.getJsPbMessageId = function() {
267 jspb.Message.prototype.arrayIndexOffset_;
278 jspb.Message.getIndex_ = function(msg, fieldNumber) {
298 jspb.Message.initialize = function(
300 msg.wrappers_ = jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS ? null : {};
310 jspb.Message.materializeExtensionObject_(msg, suggestedPivot);
317 var index = jspb.Message.getIndex_(msg, fieldNumber);
319 (jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS ?
320 jspb.Message.EMPTY_LIST_SENTINEL_ :
325 (jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS ?
326 jspb.Message.EMPTY_LIST_SENTINEL_ :
336 opt_oneofFields, goog.partial(jspb.Message.computeOneofCase, msg));
349 jspb.Message.EMPTY_LIST_SENTINEL_ = goog.DEBUG && Object.freeze ?
365 jspb.Message.materializeExtensionObject_ = function(msg, suggestedPivot) {
391 var pivotIndex = jspb.Message.getIndex_(msg, suggestedPivot);
392 if (!jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS) {
410 jspb.Message.maybeInitEmptyExtensionObject_ = function(msg) {
411 var pivotIndex = jspb.Message.getIndex_(msg, msg.pivot_);
431 jspb.Message.toObjectList = function(field, toObjectFn, opt_includeInstance) {
454 jspb.Message.toObjectExtension = function(proto, obj, extensions,
469 obj[name] = jspb.Message.toObjectList(
489 jspb.Message.serializeBinaryExtensions = function(proto, writer, extensions,
534 jspb.Message.readBinaryExtension = function(msg, reader, extensions,
577 jspb.Message.getField = function(msg, fieldNumber) {
579 var index = jspb.Message.getIndex_(msg, fieldNumber);
581 if (val === jspb.Message.EMPTY_LIST_SENTINEL_) {
587 if (val === jspb.Message.EMPTY_LIST_SENTINEL_) {
602 jspb.Message.getOptionalFloatingPointField = function(msg, fieldNumber) {
603 var value = jspb.Message.getField(msg, fieldNumber);
616 jspb.Message.getRepeatedFloatingPointField = function(msg, fieldNumber) {
617 var values = jspb.Message.getField(msg, fieldNumber);
638 jspb.Message.bytesAsB64 = function(value) {
642 if (jspb.Message.SUPPORTS_UINT8ARRAY_ && value instanceof Uint8Array) {
657 jspb.Message.bytesAsU8 = function(value) {
675 jspb.Message.bytesListAsB64 = function(value) {
676 jspb.Message.assertConsistentTypes_(value);
680 return goog.array.map(value, jspb.Message.bytesAsB64);
692 jspb.Message.bytesListAsU8 = function(value) {
693 jspb.Message.assertConsistentTypes_(value);
697 return goog.array.map(value, jspb.Message.bytesAsU8);
706 jspb.Message.assertConsistentTypes_ = function(array) {
730 jspb.Message.getFieldProto3 = function(msg, fieldNumber, defaultValue) {
731 var value = jspb.Message.getField(msg, fieldNumber);
747 jspb.Message.setField = function(msg, fieldNumber, value) {
749 msg.array[jspb.Message.getIndex_(msg, fieldNumber)] = value;
765 jspb.Message.setOneofField = function(msg, fieldNumber, oneof, value) {
766 var currentCase = jspb.Message.computeOneofCase(msg, oneof);
771 jspb.Message.setField(msg, currentCase, undefined);
773 jspb.Message.setField(msg, fieldNumber, value);
794 jspb.Message.computeOneofCase = function(msg, oneof) {
799 var value = jspb.Message.getField(msg, fieldNumber);
803 jspb.Message.setField(msg, fieldNumber, undefined);
811 jspb.Message.setField(msg, oneofField, oneofValue);
828 jspb.Message.getWrapperField = function(msg, ctor, fieldNumber, opt_required) {
834 var data = /** @type {Array} */ (jspb.Message.getField(msg, fieldNumber));
852 jspb.Message.getRepeatedWrapperField = function(msg, ctor, fieldNumber) {
857 var data = jspb.Message.getField(msg, fieldNumber);
864 if (val == jspb.Message.EMPTY_LIST_SENTINEL_) {
878 jspb.Message.setWrapperField = function(msg, fieldNumber, value) {
884 jspb.Message.setField(msg, fieldNumber, data);
896 jspb.Message.setOneofWrapperField = function(msg, fieldNumber, oneof, value) {
902 jspb.Message.setOneofField(msg, fieldNumber, oneof, data);
913 jspb.Message.setRepeatedWrapperField = function(msg, fieldNumber, value) {
922 jspb.Message.setField(msg, fieldNumber, data);
943 jspb.Message.toMap = function(
961 jspb.Message.prototype.toArray = function() {
974 jspb.Message.prototype.toString = function() {
985 jspb.Message.prototype.getExtension = function(fieldInfo) {
1027 jspb.Message.prototype.setExtension = function(fieldInfo, value) {
1031 jspb.Message.maybeInitEmptyExtensionObject_(this);
1076 jspb.Message.difference = function(m1, m2) {
1090 if (!jspb.Message.compareFields(arr1[i], arr2[i])) {
1105 jspb.Message.equals = function(m1, m2) {
1107 jspb.Message.compareFields(m1.toArray(), m2.toArray()));
1118 jspb.Message.compareExtensions = function(extension1, extension2) {
1130 if (!jspb.Message.compareFields(extension1[name], extension2[name])) {
1144 jspb.Message.compareFields = function(field1, field2) {
1160 if (jspb.Message.SUPPORTS_UINT8ARRAY_ && field1.constructor === Uint8Array) {
1195 if (!jspb.Message.compareFields(val1, val2)) {
1203 return jspb.Message.compareExtensions(extension1, extension2);
1212 return jspb.Message.compareExtensions(field1, field2);
1225 jspb.Message.clone = function(msg) {
1227 return jspb.Message.cloneMessage(msg);
1236 jspb.Message.cloneMessage = function(msg) {
1238 return new msg.constructor(jspb.Message.clone_(msg.toArray()));
1253 jspb.Message.copyInto = function(fromMessage, toMessage) {
1254 goog.asserts.assertInstanceof(fromMessage, jspb.Message);
1255 goog.asserts.assertInstanceof(toMessage, jspb.Message);
1258 var copyOfFrom = jspb.Message.clone(fromMessage);
1283 jspb.Message.clone_ = function(obj) {
1291 clonedArray[i] = typeof o == 'object' ? jspb.Message.clone_(o) : o;
1299 clone[key] = typeof o == 'object' ? jspb.Message.clone_(o) : o;
1311 jspb.Message.registerMessageType = function(id, constructor) {
1312 jspb.Message.registry_[id] = constructor;
1323 jspb.Message.registry_ = {};
1337 jspb.Message.messageSetExtensions = {};