@mishmash-io/mishmash-rpc
Version:
mishmash.io gRPC client services
10,173 lines • 333 kB
JavaScript
// source: protobuf/mishmash_rpc.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
goog.exportSymbol('proto.io.mishmash.common.rpc.BigEndianDecimal', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.BooleanValue', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.BufferValue', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.ClientCallable', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.ClientInvokeRequest', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.ClientInvokeResult', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Collection', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Collection.Entry', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.ConsoleOutput', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.ConsoleOutputAck', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.DateValue', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.DateValue.AltCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Debug', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.DebugAck', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.DecimalValue', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.DecimalValue.AltCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Error', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Id', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Intersection', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.LambdaFunction', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.LambdaFunctionBody', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.LambdaFunctionBody.AltTypesCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.LambdaFunctionClosure', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.LambdaFunctionClosure.AltTypesCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Literal', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Literal.AltCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Member', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Member.AltCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.MishmashSetDescriptor', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.MishmashSetDescriptor.AltCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.MishmashSetDescriptorList', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.MishmashSetup', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.MishmashSetup.MutationType', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.MutationClientMessage', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.MutationClientMessage.AltCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.MutationServerMessage', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.MutationServerMessage.AltCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.NullValue', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.PredefinedFunction', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.PredefinedSet', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.PredefinedSet.identifier', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.SetupAck', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.StreamClientMessage', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.StreamClientMessage.AltCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.StreamServerMessage', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.StreamServerMessage.AltCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.StringValue', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Transformation', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Transformation.Axis', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Union', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Value', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.Value.AltCase', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.YieldData', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.YieldDataAck', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.YieldMember', null, global);
goog.exportSymbol('proto.io.mishmash.common.rpc.YieldValue', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.StreamClientMessage = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.StreamClientMessage.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.StreamClientMessage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.StreamClientMessage.displayName = 'proto.io.mishmash.common.rpc.StreamClientMessage';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.StreamServerMessage = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.StreamServerMessage.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.StreamServerMessage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.StreamServerMessage.displayName = 'proto.io.mishmash.common.rpc.StreamServerMessage';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.MutationClientMessage = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.MutationClientMessage.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.MutationClientMessage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.MutationClientMessage.displayName = 'proto.io.mishmash.common.rpc.MutationClientMessage';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.MutationServerMessage = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.MutationServerMessage.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.MutationServerMessage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.MutationServerMessage.displayName = 'proto.io.mishmash.common.rpc.MutationServerMessage';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.MishmashSetup = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.MishmashSetup, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.MishmashSetup.displayName = 'proto.io.mishmash.common.rpc.MishmashSetup';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.SetupAck = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.SetupAck, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.SetupAck.displayName = 'proto.io.mishmash.common.rpc.SetupAck';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.YieldData = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.io.mishmash.common.rpc.YieldData.repeatedFields_, null);
};
goog.inherits(proto.io.mishmash.common.rpc.YieldData, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.YieldData.displayName = 'proto.io.mishmash.common.rpc.YieldData';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.YieldMember = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.YieldMember, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.YieldMember.displayName = 'proto.io.mishmash.common.rpc.YieldMember';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.YieldValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.YieldValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.YieldValue.displayName = 'proto.io.mishmash.common.rpc.YieldValue';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.YieldDataAck = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.YieldDataAck, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.YieldDataAck.displayName = 'proto.io.mishmash.common.rpc.YieldDataAck';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.ClientInvokeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.ClientInvokeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.ClientInvokeRequest.displayName = 'proto.io.mishmash.common.rpc.ClientInvokeRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.ClientInvokeResult = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.ClientInvokeResult, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.displayName = 'proto.io.mishmash.common.rpc.ClientInvokeResult';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.ConsoleOutput = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.ConsoleOutput, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.ConsoleOutput.displayName = 'proto.io.mishmash.common.rpc.ConsoleOutput';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.ConsoleOutputAck = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.ConsoleOutputAck, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.ConsoleOutputAck.displayName = 'proto.io.mishmash.common.rpc.ConsoleOutputAck';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Debug = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.io.mishmash.common.rpc.Debug.repeatedFields_, null);
};
goog.inherits(proto.io.mishmash.common.rpc.Debug, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Debug.displayName = 'proto.io.mishmash.common.rpc.Debug';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.DebugAck = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.DebugAck, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.DebugAck.displayName = 'proto.io.mishmash.common.rpc.DebugAck';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Error = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.io.mishmash.common.rpc.Error.repeatedFields_, null);
};
goog.inherits(proto.io.mishmash.common.rpc.Error, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Error.displayName = 'proto.io.mishmash.common.rpc.Error';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.MishmashSetDescriptor.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.MishmashSetDescriptor, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.displayName = 'proto.io.mishmash.common.rpc.MishmashSetDescriptor';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.io.mishmash.common.rpc.MishmashSetDescriptorList.repeatedFields_, null);
};
goog.inherits(proto.io.mishmash.common.rpc.MishmashSetDescriptorList, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.displayName = 'proto.io.mishmash.common.rpc.MishmashSetDescriptorList';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Union = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.Union, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Union.displayName = 'proto.io.mishmash.common.rpc.Union';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Intersection = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.Intersection, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Intersection.displayName = 'proto.io.mishmash.common.rpc.Intersection';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Literal = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.Literal.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.Literal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Literal.displayName = 'proto.io.mishmash.common.rpc.Literal';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Member = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.Member.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.Member, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Member.displayName = 'proto.io.mishmash.common.rpc.Member';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Id = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.Id, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Id.displayName = 'proto.io.mishmash.common.rpc.Id';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Value = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.Value.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.Value, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Value.displayName = 'proto.io.mishmash.common.rpc.Value';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.NullValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.NullValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.NullValue.displayName = 'proto.io.mishmash.common.rpc.NullValue';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.BooleanValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.BooleanValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.BooleanValue.displayName = 'proto.io.mishmash.common.rpc.BooleanValue';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.DecimalValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.DecimalValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.DecimalValue.displayName = 'proto.io.mishmash.common.rpc.DecimalValue';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.BigEndianDecimal = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.BigEndianDecimal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.displayName = 'proto.io.mishmash.common.rpc.BigEndianDecimal';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.StringValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.StringValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.StringValue.displayName = 'proto.io.mishmash.common.rpc.StringValue';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.DateValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.DateValue.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.DateValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.DateValue.displayName = 'proto.io.mishmash.common.rpc.DateValue';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.BufferValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.BufferValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.BufferValue.displayName = 'proto.io.mishmash.common.rpc.BufferValue';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.PredefinedSet = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.PredefinedSet, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.PredefinedSet.displayName = 'proto.io.mishmash.common.rpc.PredefinedSet';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Transformation = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.Transformation, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Transformation.displayName = 'proto.io.mishmash.common.rpc.Transformation';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Transformation.Axis = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.Transformation.Axis, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Transformation.Axis.displayName = 'proto.io.mishmash.common.rpc.Transformation.Axis';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.PredefinedFunction = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.io.mishmash.common.rpc.PredefinedFunction.repeatedFields_, null);
};
goog.inherits(proto.io.mishmash.common.rpc.PredefinedFunction, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.PredefinedFunction.displayName = 'proto.io.mishmash.common.rpc.PredefinedFunction';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.LambdaFunction = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.io.mishmash.common.rpc.LambdaFunction.repeatedFields_, null);
};
goog.inherits(proto.io.mishmash.common.rpc.LambdaFunction, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.LambdaFunction.displayName = 'proto.io.mishmash.common.rpc.LambdaFunction';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.LambdaFunctionBody.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.LambdaFunctionBody, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.displayName = 'proto.io.mishmash.common.rpc.LambdaFunctionBody';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.mishmash.common.rpc.LambdaFunctionClosure.oneofGroups_);
};
goog.inherits(proto.io.mishmash.common.rpc.LambdaFunctionClosure, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.displayName = 'proto.io.mishmash.common.rpc.LambdaFunctionClosure';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Collection = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.Collection, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Collection.displayName = 'proto.io.mishmash.common.rpc.Collection';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.Collection.Entry = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.Collection.Entry, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.Collection.Entry.displayName = 'proto.io.mishmash.common.rpc.Collection.Entry';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.mishmash.common.rpc.ClientCallable = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.mishmash.common.rpc.ClientCallable, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.mishmash.common.rpc.ClientCallable.displayName = 'proto.io.mishmash.common.rpc.ClientCallable';
}
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.StreamClientMessage.oneofGroups_ = [[2,3,4,5,6,7]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.AltCase = {
ALT_NOT_SET: 0,
SETUP: 2,
ACK: 3,
ERROR: 4,
INVOKE_RESULT: 5,
OUTPUT_ACK: 6,
DEBUG_ACK: 7
};
/**
* @return {proto.io.mishmash.common.rpc.StreamClientMessage.AltCase}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.getAltCase = function() {
return /** @type {proto.io.mishmash.common.rpc.StreamClientMessage.AltCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.StreamClientMessage.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.StreamClientMessage.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.StreamClientMessage} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.StreamClientMessage.toObject = function(includeInstance, msg) {
var f, obj = {
clientSeqNo: jspb.Message.getFieldWithDefault(msg, 1, 0),
setup: (f = msg.getSetup()) && proto.io.mishmash.common.rpc.MishmashSetup.toObject(includeInstance, f),
ack: (f = msg.getAck()) && proto.io.mishmash.common.rpc.YieldDataAck.toObject(includeInstance, f),
error: (f = msg.getError()) && proto.io.mishmash.common.rpc.Error.toObject(includeInstance, f),
invokeResult: (f = msg.getInvokeResult()) && proto.io.mishmash.common.rpc.ClientInvokeResult.toObject(includeInstance, f),
outputAck: (f = msg.getOutputAck()) && proto.io.mishmash.common.rpc.ConsoleOutputAck.toObject(includeInstance, f),
debugAck: (f = msg.getDebugAck()) && proto.io.mishmash.common.rpc.DebugAck.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.StreamClientMessage;
return proto.io.mishmash.common.rpc.StreamClientMessage.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.StreamClientMessage} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint32());
msg.setClientSeqNo(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.MishmashSetup;
reader.readMessage(value,proto.io.mishmash.common.rpc.MishmashSetup.deserializeBinaryFromReader);
msg.setSetup(value);
break;
case 3:
var value = new proto.io.mishmash.common.rpc.YieldDataAck;
reader.readMessage(value,proto.io.mishmash.common.rpc.YieldDataAck.deserializeBinaryFromReader);
msg.setAck(value);
break;
case 4:
var value = new proto.io.mishmash.common.rpc.Error;
reader.readMessage(value,proto.io.mishmash.common.rpc.Error.deserializeBinaryFromReader);
msg.setError(value);
break;
case 5:
var value = new proto.io.mishmash.common.rpc.ClientInvokeResult;
reader.readMessage(value,proto.io.mishmash.common.rpc.ClientInvokeResult.deserializeBinaryFromReader);
msg.setInvokeResult(value);
break;
case 6:
var value = new proto.io.mishmash.common.rpc.ConsoleOutputAck;
reader.readMessage(value,proto.io.mishmash.common.rpc.ConsoleOutputAck.deserializeBinaryFromReader);
msg.setOutputAck(value);
break;
case 7:
var value = new proto.io.mishmash.common.rpc.DebugAck;
reader.readMessage(value,proto.io.mishmash.common.rpc.DebugAck.deserializeBinaryFromReader);
msg.setDebugAck(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.StreamClientMessage.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.StreamClientMessage} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.StreamClientMessage.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getClientSeqNo();
if (f !== 0) {
writer.writeUint32(
1,
f
);
}
f = message.getSetup();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.MishmashSetup.serializeBinaryToWriter
);
}
f = message.getAck();
if (f != null) {
writer.writeMessage(
3,
f,
proto.io.mishmash.common.rpc.YieldDataAck.serializeBinaryToWriter
);
}
f = message.getError();
if (f != null) {
writer.writeMessage(
4,
f,
proto.io.mishmash.common.rpc.Error.serializeBinaryToWriter
);
}
f = message.getInvokeResult();
if (f != null) {
writer.writeMessage(
5,
f,
proto.io.mishmash.common.rpc.ClientInvokeResult.serializeBinaryToWriter
);
}
f = message.getOutputAck();
if (f != null) {
writer.writeMessage(
6,
f,
proto.io.mishmash.common.rpc.ConsoleOutputAck.serializeBinaryToWriter
);
}
f = message.getDebugAck();
if (f != null) {
writer.writeMessage(
7,
f,
proto.io.mishmash.common.rpc.DebugAck.serializeBinaryToWriter
);
}
};
/**
* optional uint32 client_seq_no = 1;
* @return {number}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.getClientSeqNo = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.setClientSeqNo = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional MishmashSetup setup = 2;
* @return {?proto.io.mishmash.common.rpc.MishmashSetup}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.getSetup = function() {
return /** @type{?proto.io.mishmash.common.rpc.MishmashSetup} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.MishmashSetup, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.MishmashSetup|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.setSetup = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.io.mishmash.common.rpc.StreamClientMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.clearSetup = function() {
return this.setSetup(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.hasSetup = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional YieldDataAck ack = 3;
* @return {?proto.io.mishmash.common.rpc.YieldDataAck}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.getAck = function() {
return /** @type{?proto.io.mishmash.common.rpc.YieldDataAck} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.YieldDataAck, 3));
};
/**
* @param {?proto.io.mishmash.common.rpc.YieldDataAck|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.setAck = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.io.mishmash.common.rpc.StreamClientMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.clearAck = function() {
return this.setAck(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.hasAck = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional Error error = 4;
* @return {?proto.io.mishmash.common.rpc.Error}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.getError = function() {
return /** @type{?proto.io.mishmash.common.rpc.Error} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Error, 4));
};
/**
* @param {?proto.io.mishmash.common.rpc.Error|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.setError = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.io.mishmash.common.rpc.StreamClientMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.clearError = function() {
return this.setError(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.hasError = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional ClientInvokeResult invoke_result = 5;
* @return {?proto.io.mishmash.common.rpc.ClientInvokeResult}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.getInvokeResult = function() {
return /** @type{?proto.io.mishmash.common.rpc.ClientInvokeResult} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.ClientInvokeResult, 5));
};
/**
* @param {?proto.io.mishmash.common.rpc.ClientInvokeResult|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.setInvokeResult = function(value) {
return jspb.Message.setOneofWrapperField(this, 5, proto.io.mishmash.common.rpc.StreamClientMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.clearInvokeResult = function() {
return this.setInvokeResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.hasInvokeResult = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional ConsoleOutputAck output_ack = 6;
* @return {?proto.io.mishmash.common.rpc.ConsoleOutputAck}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.getOutputAck = function() {
return /** @type{?proto.io.mishmash.common.rpc.ConsoleOutputAck} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.ConsoleOutputAck, 6));
};
/**
* @param {?proto.io.mishmash.common.rpc.ConsoleOutputAck|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.setOutputAck = function(value) {
return jspb.Message.setOneofWrapperField(this, 6, proto.io.mishmash.common.rpc.StreamClientMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.clearOutputAck = function() {
return this.setOutputAck(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.hasOutputAck = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional DebugAck debug_ack = 7;
* @return {?proto.io.mishmash.common.rpc.DebugAck}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.getDebugAck = function() {
return /** @type{?proto.io.mishmash.common.rpc.DebugAck} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.DebugAck, 7));
};
/**
* @param {?proto.io.mishmash.common.rpc.DebugAck|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.setDebugAck = function(value) {
return jspb.Message.setOneofWrapperField(this, 7, proto.io.mishmash.common.rpc.StreamClientMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamClientMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.clearDebugAck = function() {
return this.setDebugAck(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamClientMessage.prototype.hasDebugAck = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.StreamServerMessage.oneofGroups_ = [[2,3,4,5,6,7]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.AltCase = {
ALT_NOT_SET: 0,
SETUP_ACK: 2,
YIELD_DATA: 3,
ERROR: 4,
INVOKE: 5,
OUTPUT: 6,
DEBUG: 7
};
/**
* @return {proto.io.mishmash.common.rpc.StreamServerMessage.AltCase}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.getAltCase = function() {
return /** @type {proto.io.mishmash.common.rpc.StreamServerMessage.AltCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.StreamServerMessage.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.StreamServerMessage.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.StreamServerMessage} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.StreamServerMessage.toObject = function(includeInstance, msg) {
var f, obj = {
serverSeqNo: jspb.Message.getFieldWithDefault(msg, 1, 0),
setupAck: (f = msg.getSetupAck()) && proto.io.mishmash.common.rpc.SetupAck.toObject(includeInstance, f),
yieldData: (f = msg.getYieldData()) && proto.io.mishmash.common.rpc.YieldData.toObject(includeInstance, f),
error: (f = msg.getError()) && proto.io.mishmash.common.rpc.Error.toObject(includeInstance, f),
invoke: (f = msg.getInvoke()) && proto.io.mishmash.common.rpc.ClientInvokeRequest.toObject(includeInstance, f),
output: (f = msg.getOutput()) && proto.io.mishmash.common.rpc.ConsoleOutput.toObject(includeInstance, f),
debug: (f = msg.getDebug()) && proto.io.mishmash.common.rpc.Debug.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.StreamServerMessage;
return proto.io.mishmash.common.rpc.StreamServerMessage.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.StreamServerMessage} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint32());
msg.setServerSeqNo(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.SetupAck;
reader.readMessage(value,proto.io.mishmash.common.rpc.SetupAck.deserializeBinaryFromReader);
msg.setSetupAck(value);
break;
case 3:
var value = new proto.io.mishmash.common.rpc.YieldData;
reader.readMessage(value,proto.io.mishmash.common.rpc.YieldData.deserializeBinaryFromReader);
msg.setYieldData(value);
break;
case 4:
var value = new proto.io.mishmash.common.rpc.Error;
reader.readMessage(value,proto.io.mishmash.common.rpc.Error.deserializeBinaryFromReader);
msg.setError(value);
break;
case 5:
var value = new proto.io.mishmash.common.rpc.ClientInvokeRequest;
reader.readMessage(value,proto.io.mishmash.common.rpc.ClientInvokeRequest.deserializeBinaryFromReader);
msg.setInvoke(value);
break;
case 6:
var value = new proto.io.mishmash.common.rpc.ConsoleOutput;
reader.readMessage(value,proto.io.mishmash.common.rpc.ConsoleOutput.deserializeBinaryFromReader);
msg.setOutput(value);
break;
case 7:
var value = new proto.io.mishmash.common.rpc.Debug;
reader.readMessage(value,proto.io.mishmash.common.rpc.Debug.deserializeBinaryFromReader);
msg.setDebug(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.StreamServerMessage.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.StreamServerMessage} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.StreamServerMessage.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getServerSeqNo();
if (f !== 0) {
writer.writeUint32(
1,
f
);
}
f = message.getSetupAck();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.SetupAck.serializeBinaryToWriter
);
}
f = message.getYieldData();
if (f != null) {
writer.writeMessage(
3,
f,
proto.io.mishmash.common.rpc.YieldData.serializeBinaryToWriter
);
}
f = message.getError();
if (f != null) {
writer.writeMessage(
4,
f,
proto.io.mishmash.common.rpc.Error.serializeBinaryToWriter
);
}
f = message.getInvoke();
if (f != null) {
writer.writeMessage(
5,
f,
proto.io.mishmash.common.rpc.ClientInvokeRequest.serializeBinaryToWriter
);
}
f = message.getOutput();
if (f != null) {
writer.writeMessage(
6,
f,
proto.io.mishmash.common.rpc.ConsoleOutput.serializeBinaryToWriter
);
}
f = message.getDebug();
if (f != null) {
writer.writeMessage(
7,
f,
proto.io.mishmash.common.rpc.Debug.serializeBinaryToWriter
);
}
};
/**
* optional uint32 server_seq_no = 1;
* @return {number}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.getServerSeqNo = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.setServerSeqNo = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional SetupAck setup_ack = 2;
* @return {?proto.io.mishmash.common.rpc.SetupAck}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.getSetupAck = function() {
return /** @type{?proto.io.mishmash.common.rpc.SetupAck} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.SetupAck, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.SetupAck|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.setSetupAck = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.io.mishmash.common.rpc.StreamServerMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.clearSetupAck = function() {
return this.setSetupAck(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.hasSetupAck = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional YieldData yield_data = 3;
* @return {?proto.io.mishmash.common.rpc.YieldData}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.getYieldData = function() {
return /** @type{?proto.io.mishmash.common.rpc.YieldData} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.YieldData, 3));
};
/**
* @param {?proto.io.mishmash.common.rpc.YieldData|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.setYieldData = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.io.mishmash.common.rpc.StreamServerMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.clearYieldData = function() {
return this.setYieldData(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.hasYieldData = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional Error error = 4;
* @return {?proto.io.mishmash.common.rpc.Error}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.getError = function() {
return /** @type{?proto.io.mishmash.common.rpc.Error} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Error, 4));
};
/**
* @param {?proto.io.mishmash.common.rpc.Error|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.setError = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.io.mishmash.common.rpc.StreamServerMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.clearError = function() {
return this.setError(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.hasError = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional ClientInvokeRequest invoke = 5;
* @return {?proto.io.mishmash.common.rpc.ClientInvokeRequest}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.getInvoke = function() {
return /** @type{?proto.io.mishmash.common.rpc.ClientInvokeRequest} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.ClientInvokeRequest, 5));
};
/**
* @param {?proto.io.mishmash.common.rpc.ClientInvokeRequest|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.setInvoke = function(value) {
return jspb.Message.setOneofWrapperField(this, 5, proto.io.mishmash.common.rpc.StreamServerMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.clearInvoke = function() {
return this.setInvoke(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.hasInvoke = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional ConsoleOutput output = 6;
* @return {?proto.io.mishmash.common.rpc.ConsoleOutput}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.getOutput = function() {
return /** @type{?proto.io.mishmash.common.rpc.ConsoleOutput} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.ConsoleOutput, 6));
};
/**
* @param {?proto.io.mishmash.common.rpc.ConsoleOutput|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.setOutput = function(value) {
return jspb.Message.setOneofWrapperField(this, 6, proto.io.mishmash.common.rpc.StreamServerMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.clearOutput = function() {
return this.setOutput(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.hasOutput = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional Debug debug = 7;
* @return {?proto.io.mishmash.common.rpc.Debug}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.getDebug = function() {
return /** @type{?proto.io.mishmash.common.rpc.Debug} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Debug, 7));
};
/**
* @param {?proto.io.mishmash.common.rpc.Debug|undefined} value
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.setDebug = function(value) {
return jspb.Message.setOneofWrapperField(this, 7, proto.io.mishmash.common.rpc.StreamServerMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.StreamServerMessage} returns this
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.clearDebug = function() {
return this.setDebug(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.StreamServerMessage.prototype.hasDebug = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.MutationClientMessage.oneofGroups_ = [[2,3,4]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.AltCase = {
ALT_NOT_SET: 0,
SETUP: 2,
YIELD_DATA: 3,
ERROR: 4
};
/**
* @return {proto.io.mishmash.common.rpc.MutationClientMessage.AltCase}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.getAltCase = function() {
return /** @type {proto.io.mishmash.common.rpc.MutationClientMessage.AltCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.MutationClientMessage.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.MutationClientMessage.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.MutationClientMessage} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.MutationClientMessage.toObject = function(includeInstance, msg) {
var f, obj = {
clientSeqNo: jspb.Message.getFieldWithDefault(msg, 1, 0),
setup: (f = msg.getSetup()) && proto.io.mishmash.common.rpc.MishmashSetup.toObject(includeInstance, f),
yieldData: (f = msg.getYieldData()) && proto.io.mishmash.common.rpc.YieldData.toObject(includeInstance, f),
error: (f = msg.getError()) && proto.io.mishmash.common.rpc.Error.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.MutationClientMessage}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.MutationClientMessage;
return proto.io.mishmash.common.rpc.MutationClientMessage.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.MutationClientMessage} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.MutationClientMessage}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint32());
msg.setClientSeqNo(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.MishmashSetup;
reader.readMessage(value,proto.io.mishmash.common.rpc.MishmashSetup.deserializeBinaryFromReader);
msg.setSetup(value);
break;
case 3:
var value = new proto.io.mishmash.common.rpc.YieldData;
reader.readMessage(value,proto.io.mishmash.common.rpc.YieldData.deserializeBinaryFromReader);
msg.setYieldData(value);
break;
case 4:
var value = new proto.io.mishmash.common.rpc.Error;
reader.readMessage(value,proto.io.mishmash.common.rpc.Error.deserializeBinaryFromReader);
msg.setError(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.MutationClientMessage.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.MutationClientMessage} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.MutationClientMessage.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getClientSeqNo();
if (f !== 0) {
writer.writeUint32(
1,
f
);
}
f = message.getSetup();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.MishmashSetup.serializeBinaryToWriter
);
}
f = message.getYieldData();
if (f != null) {
writer.writeMessage(
3,
f,
proto.io.mishmash.common.rpc.YieldData.serializeBinaryToWriter
);
}
f = message.getError();
if (f != null) {
writer.writeMessage(
4,
f,
proto.io.mishmash.common.rpc.Error.serializeBinaryToWriter
);
}
};
/**
* optional uint32 client_seq_no = 1;
* @return {number}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.getClientSeqNo = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.MutationClientMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.setClientSeqNo = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional MishmashSetup setup = 2;
* @return {?proto.io.mishmash.common.rpc.MishmashSetup}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.getSetup = function() {
return /** @type{?proto.io.mishmash.common.rpc.MishmashSetup} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.MishmashSetup, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.MishmashSetup|undefined} value
* @return {!proto.io.mishmash.common.rpc.MutationClientMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.setSetup = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.io.mishmash.common.rpc.MutationClientMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MutationClientMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.clearSetup = function() {
return this.setSetup(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.hasSetup = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional YieldData yield_data = 3;
* @return {?proto.io.mishmash.common.rpc.YieldData}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.getYieldData = function() {
return /** @type{?proto.io.mishmash.common.rpc.YieldData} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.YieldData, 3));
};
/**
* @param {?proto.io.mishmash.common.rpc.YieldData|undefined} value
* @return {!proto.io.mishmash.common.rpc.MutationClientMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.setYieldData = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.io.mishmash.common.rpc.MutationClientMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MutationClientMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.clearYieldData = function() {
return this.setYieldData(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.hasYieldData = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional Error error = 4;
* @return {?proto.io.mishmash.common.rpc.Error}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.getError = function() {
return /** @type{?proto.io.mishmash.common.rpc.Error} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Error, 4));
};
/**
* @param {?proto.io.mishmash.common.rpc.Error|undefined} value
* @return {!proto.io.mishmash.common.rpc.MutationClientMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.setError = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.io.mishmash.common.rpc.MutationClientMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MutationClientMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.clearError = function() {
return this.setError(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MutationClientMessage.prototype.hasError = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.MutationServerMessage.oneofGroups_ = [[2,3,4]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.AltCase = {
ALT_NOT_SET: 0,
SETUP_ACK: 2,
ACK: 3,
ERROR: 4
};
/**
* @return {proto.io.mishmash.common.rpc.MutationServerMessage.AltCase}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.getAltCase = function() {
return /** @type {proto.io.mishmash.common.rpc.MutationServerMessage.AltCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.MutationServerMessage.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.MutationServerMessage.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.MutationServerMessage} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.MutationServerMessage.toObject = function(includeInstance, msg) {
var f, obj = {
serverSeqNo: jspb.Message.getFieldWithDefault(msg, 1, 0),
setupAck: (f = msg.getSetupAck()) && proto.io.mishmash.common.rpc.SetupAck.toObject(includeInstance, f),
ack: (f = msg.getAck()) && proto.io.mishmash.common.rpc.YieldDataAck.toObject(includeInstance, f),
error: (f = msg.getError()) && proto.io.mishmash.common.rpc.Error.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.MutationServerMessage}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.MutationServerMessage;
return proto.io.mishmash.common.rpc.MutationServerMessage.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.MutationServerMessage} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.MutationServerMessage}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint32());
msg.setServerSeqNo(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.SetupAck;
reader.readMessage(value,proto.io.mishmash.common.rpc.SetupAck.deserializeBinaryFromReader);
msg.setSetupAck(value);
break;
case 3:
var value = new proto.io.mishmash.common.rpc.YieldDataAck;
reader.readMessage(value,proto.io.mishmash.common.rpc.YieldDataAck.deserializeBinaryFromReader);
msg.setAck(value);
break;
case 4:
var value = new proto.io.mishmash.common.rpc.Error;
reader.readMessage(value,proto.io.mishmash.common.rpc.Error.deserializeBinaryFromReader);
msg.setError(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.MutationServerMessage.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.MutationServerMessage} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.MutationServerMessage.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getServerSeqNo();
if (f !== 0) {
writer.writeUint32(
1,
f
);
}
f = message.getSetupAck();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.SetupAck.serializeBinaryToWriter
);
}
f = message.getAck();
if (f != null) {
writer.writeMessage(
3,
f,
proto.io.mishmash.common.rpc.YieldDataAck.serializeBinaryToWriter
);
}
f = message.getError();
if (f != null) {
writer.writeMessage(
4,
f,
proto.io.mishmash.common.rpc.Error.serializeBinaryToWriter
);
}
};
/**
* optional uint32 server_seq_no = 1;
* @return {number}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.getServerSeqNo = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.MutationServerMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.setServerSeqNo = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional SetupAck setup_ack = 2;
* @return {?proto.io.mishmash.common.rpc.SetupAck}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.getSetupAck = function() {
return /** @type{?proto.io.mishmash.common.rpc.SetupAck} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.SetupAck, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.SetupAck|undefined} value
* @return {!proto.io.mishmash.common.rpc.MutationServerMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.setSetupAck = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.io.mishmash.common.rpc.MutationServerMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MutationServerMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.clearSetupAck = function() {
return this.setSetupAck(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.hasSetupAck = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional YieldDataAck ack = 3;
* @return {?proto.io.mishmash.common.rpc.YieldDataAck}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.getAck = function() {
return /** @type{?proto.io.mishmash.common.rpc.YieldDataAck} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.YieldDataAck, 3));
};
/**
* @param {?proto.io.mishmash.common.rpc.YieldDataAck|undefined} value
* @return {!proto.io.mishmash.common.rpc.MutationServerMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.setAck = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.io.mishmash.common.rpc.MutationServerMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MutationServerMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.clearAck = function() {
return this.setAck(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.hasAck = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional Error error = 4;
* @return {?proto.io.mishmash.common.rpc.Error}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.getError = function() {
return /** @type{?proto.io.mishmash.common.rpc.Error} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Error, 4));
};
/**
* @param {?proto.io.mishmash.common.rpc.Error|undefined} value
* @return {!proto.io.mishmash.common.rpc.MutationServerMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.setError = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.io.mishmash.common.rpc.MutationServerMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MutationServerMessage} returns this
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.clearError = function() {
return this.setError(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MutationServerMessage.prototype.hasError = function() {
return jspb.Message.getField(this, 4) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.MishmashSetup.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.MishmashSetup.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.MishmashSetup} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.MishmashSetup.toObject = function(includeInstance, msg) {
var f, obj = {
targetSet: (f = msg.getTargetSet()) && proto.io.mishmash.common.rpc.MishmashSetDescriptorList.toObject(includeInstance, f),
clientOptionsMap: (f = msg.getClientOptionsMap()) ? f.toObject(includeInstance, undefined) : [],
mutationType: jspb.Message.getFieldWithDefault(msg, 4, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.MishmashSetup}
*/
proto.io.mishmash.common.rpc.MishmashSetup.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.MishmashSetup;
return proto.io.mishmash.common.rpc.MishmashSetup.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.MishmashSetup} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.MishmashSetup}
*/
proto.io.mishmash.common.rpc.MishmashSetup.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.MishmashSetDescriptorList;
reader.readMessage(value,proto.io.mishmash.common.rpc.MishmashSetDescriptorList.deserializeBinaryFromReader);
msg.setTargetSet(value);
break;
case 3:
var value = msg.getClientOptionsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
});
break;
case 4:
var value = /** @type {!proto.io.mishmash.common.rpc.MishmashSetup.MutationType} */ (reader.readEnum());
msg.setMutationType(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.MishmashSetup.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.MishmashSetup.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.MishmashSetup} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.MishmashSetup.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTargetSet();
if (f != null) {
writer.writeMessage(
1,
f,
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.serializeBinaryToWriter
);
}
f = message.getClientOptionsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
}
f = message.getMutationType();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
};
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.MishmashSetup.MutationType = {
OVERWRITE: 0,
APPEND: 1
};
/**
* optional MishmashSetDescriptorList target_set = 1;
* @return {?proto.io.mishmash.common.rpc.MishmashSetDescriptorList}
*/
proto.io.mishmash.common.rpc.MishmashSetup.prototype.getTargetSet = function() {
return /** @type{?proto.io.mishmash.common.rpc.MishmashSetDescriptorList} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.MishmashSetDescriptorList, 1));
};
/**
* @param {?proto.io.mishmash.common.rpc.MishmashSetDescriptorList|undefined} value
* @return {!proto.io.mishmash.common.rpc.MishmashSetup} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetup.prototype.setTargetSet = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MishmashSetup} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetup.prototype.clearTargetSet = function() {
return this.setTargetSet(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MishmashSetup.prototype.hasTargetSet = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* map<string, string> client_options = 3;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,string>}
*/
proto.io.mishmash.common.rpc.MishmashSetup.prototype.getClientOptionsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,string>} */ (
jspb.Message.getMapField(this, 3, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.io.mishmash.common.rpc.MishmashSetup} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetup.prototype.clearClientOptionsMap = function() {
this.getClientOptionsMap().clear();
return this;};
/**
* optional MutationType mutation_type = 4;
* @return {!proto.io.mishmash.common.rpc.MishmashSetup.MutationType}
*/
proto.io.mishmash.common.rpc.MishmashSetup.prototype.getMutationType = function() {
return /** @type {!proto.io.mishmash.common.rpc.MishmashSetup.MutationType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.io.mishmash.common.rpc.MishmashSetup.MutationType} value
* @return {!proto.io.mishmash.common.rpc.MishmashSetup} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetup.prototype.setMutationType = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.SetupAck.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.SetupAck.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.SetupAck} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.SetupAck.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.SetupAck}
*/
proto.io.mishmash.common.rpc.SetupAck.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.SetupAck;
return proto.io.mishmash.common.rpc.SetupAck.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.SetupAck} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.SetupAck}
*/
proto.io.mishmash.common.rpc.SetupAck.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.SetupAck.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.SetupAck.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.SetupAck} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.SetupAck.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.io.mishmash.common.rpc.YieldData.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.YieldData.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.YieldData.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.YieldData} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.YieldData.toObject = function(includeInstance, msg) {
var f, obj = {
hierarchyList: jspb.Message.toObjectList(msg.getHierarchyList(),
proto.io.mishmash.common.rpc.YieldMember.toObject, includeInstance),
value: (f = msg.getValue()) && proto.io.mishmash.common.rpc.YieldValue.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.YieldData}
*/
proto.io.mishmash.common.rpc.YieldData.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.YieldData;
return proto.io.mishmash.common.rpc.YieldData.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.YieldData} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.YieldData}
*/
proto.io.mishmash.common.rpc.YieldData.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.YieldMember;
reader.readMessage(value,proto.io.mishmash.common.rpc.YieldMember.deserializeBinaryFromReader);
msg.addHierarchy(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.YieldValue;
reader.readMessage(value,proto.io.mishmash.common.rpc.YieldValue.deserializeBinaryFromReader);
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.YieldData.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.YieldData.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.YieldData} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.YieldData.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHierarchyList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.io.mishmash.common.rpc.YieldMember.serializeBinaryToWriter
);
}
f = message.getValue();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.YieldValue.serializeBinaryToWriter
);
}
};
/**
* repeated YieldMember hierarchy = 1;
* @return {!Array<!proto.io.mishmash.common.rpc.YieldMember>}
*/
proto.io.mishmash.common.rpc.YieldData.prototype.getHierarchyList = function() {
return /** @type{!Array<!proto.io.mishmash.common.rpc.YieldMember>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.io.mishmash.common.rpc.YieldMember, 1));
};
/**
* @param {!Array<!proto.io.mishmash.common.rpc.YieldMember>} value
* @return {!proto.io.mishmash.common.rpc.YieldData} returns this
*/
proto.io.mishmash.common.rpc.YieldData.prototype.setHierarchyList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.io.mishmash.common.rpc.YieldMember=} opt_value
* @param {number=} opt_index
* @return {!proto.io.mishmash.common.rpc.YieldMember}
*/
proto.io.mishmash.common.rpc.YieldData.prototype.addHierarchy = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.mishmash.common.rpc.YieldMember, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.io.mishmash.common.rpc.YieldData} returns this
*/
proto.io.mishmash.common.rpc.YieldData.prototype.clearHierarchyList = function() {
return this.setHierarchyList([]);
};
/**
* optional YieldValue value = 2;
* @return {?proto.io.mishmash.common.rpc.YieldValue}
*/
proto.io.mishmash.common.rpc.YieldData.prototype.getValue = function() {
return /** @type{?proto.io.mishmash.common.rpc.YieldValue} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.YieldValue, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.YieldValue|undefined} value
* @return {!proto.io.mishmash.common.rpc.YieldData} returns this
*/
proto.io.mishmash.common.rpc.YieldData.prototype.setValue = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.YieldData} returns this
*/
proto.io.mishmash.common.rpc.YieldData.prototype.clearValue = function() {
return this.setValue(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.YieldData.prototype.hasValue = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.YieldMember.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.YieldMember.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.YieldMember} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.YieldMember.toObject = function(includeInstance, msg) {
var f, obj = {
instanceId: (f = msg.getInstanceId()) && proto.io.mishmash.common.rpc.Id.toObject(includeInstance, f),
member: (f = msg.getMember()) && proto.io.mishmash.common.rpc.Member.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.YieldMember}
*/
proto.io.mishmash.common.rpc.YieldMember.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.YieldMember;
return proto.io.mishmash.common.rpc.YieldMember.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.YieldMember} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.YieldMember}
*/
proto.io.mishmash.common.rpc.YieldMember.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.Id;
reader.readMessage(value,proto.io.mishmash.common.rpc.Id.deserializeBinaryFromReader);
msg.setInstanceId(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.Member;
reader.readMessage(value,proto.io.mishmash.common.rpc.Member.deserializeBinaryFromReader);
msg.setMember(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.YieldMember.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.YieldMember.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.YieldMember} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.YieldMember.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getInstanceId();
if (f != null) {
writer.writeMessage(
1,
f,
proto.io.mishmash.common.rpc.Id.serializeBinaryToWriter
);
}
f = message.getMember();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.Member.serializeBinaryToWriter
);
}
};
/**
* optional Id instance_id = 1;
* @return {?proto.io.mishmash.common.rpc.Id}
*/
proto.io.mishmash.common.rpc.YieldMember.prototype.getInstanceId = function() {
return /** @type{?proto.io.mishmash.common.rpc.Id} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Id, 1));
};
/**
* @param {?proto.io.mishmash.common.rpc.Id|undefined} value
* @return {!proto.io.mishmash.common.rpc.YieldMember} returns this
*/
proto.io.mishmash.common.rpc.YieldMember.prototype.setInstanceId = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.YieldMember} returns this
*/
proto.io.mishmash.common.rpc.YieldMember.prototype.clearInstanceId = function() {
return this.setInstanceId(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.YieldMember.prototype.hasInstanceId = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Member member = 2;
* @return {?proto.io.mishmash.common.rpc.Member}
*/
proto.io.mishmash.common.rpc.YieldMember.prototype.getMember = function() {
return /** @type{?proto.io.mishmash.common.rpc.Member} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Member, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.Member|undefined} value
* @return {!proto.io.mishmash.common.rpc.YieldMember} returns this
*/
proto.io.mishmash.common.rpc.YieldMember.prototype.setMember = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.YieldMember} returns this
*/
proto.io.mishmash.common.rpc.YieldMember.prototype.clearMember = function() {
return this.setMember(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.YieldMember.prototype.hasMember = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.YieldValue.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.YieldValue.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.YieldValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.YieldValue.toObject = function(includeInstance, msg) {
var f, obj = {
instanceId: (f = msg.getInstanceId()) && proto.io.mishmash.common.rpc.Id.toObject(includeInstance, f),
value: (f = msg.getValue()) && proto.io.mishmash.common.rpc.Value.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.YieldValue}
*/
proto.io.mishmash.common.rpc.YieldValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.YieldValue;
return proto.io.mishmash.common.rpc.YieldValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.YieldValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.YieldValue}
*/
proto.io.mishmash.common.rpc.YieldValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.Id;
reader.readMessage(value,proto.io.mishmash.common.rpc.Id.deserializeBinaryFromReader);
msg.setInstanceId(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.Value;
reader.readMessage(value,proto.io.mishmash.common.rpc.Value.deserializeBinaryFromReader);
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.YieldValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.YieldValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.YieldValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.YieldValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getInstanceId();
if (f != null) {
writer.writeMessage(
1,
f,
proto.io.mishmash.common.rpc.Id.serializeBinaryToWriter
);
}
f = message.getValue();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.Value.serializeBinaryToWriter
);
}
};
/**
* optional Id instance_id = 1;
* @return {?proto.io.mishmash.common.rpc.Id}
*/
proto.io.mishmash.common.rpc.YieldValue.prototype.getInstanceId = function() {
return /** @type{?proto.io.mishmash.common.rpc.Id} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Id, 1));
};
/**
* @param {?proto.io.mishmash.common.rpc.Id|undefined} value
* @return {!proto.io.mishmash.common.rpc.YieldValue} returns this
*/
proto.io.mishmash.common.rpc.YieldValue.prototype.setInstanceId = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.YieldValue} returns this
*/
proto.io.mishmash.common.rpc.YieldValue.prototype.clearInstanceId = function() {
return this.setInstanceId(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.YieldValue.prototype.hasInstanceId = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Value value = 2;
* @return {?proto.io.mishmash.common.rpc.Value}
*/
proto.io.mishmash.common.rpc.YieldValue.prototype.getValue = function() {
return /** @type{?proto.io.mishmash.common.rpc.Value} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Value, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.Value|undefined} value
* @return {!proto.io.mishmash.common.rpc.YieldValue} returns this
*/
proto.io.mishmash.common.rpc.YieldValue.prototype.setValue = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.YieldValue} returns this
*/
proto.io.mishmash.common.rpc.YieldValue.prototype.clearValue = function() {
return this.setValue(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.YieldValue.prototype.hasValue = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.YieldDataAck.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.YieldDataAck.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.YieldDataAck} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.YieldDataAck.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.YieldDataAck}
*/
proto.io.mishmash.common.rpc.YieldDataAck.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.YieldDataAck;
return proto.io.mishmash.common.rpc.YieldDataAck.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.YieldDataAck} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.YieldDataAck}
*/
proto.io.mishmash.common.rpc.YieldDataAck.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.YieldDataAck.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.YieldDataAck.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.YieldDataAck} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.YieldDataAck.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.ClientInvokeRequest.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.ClientInvokeRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.ClientInvokeRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.ClientInvokeRequest.toObject = function(includeInstance, msg) {
var f, obj = {
callableId: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.ClientInvokeRequest}
*/
proto.io.mishmash.common.rpc.ClientInvokeRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.ClientInvokeRequest;
return proto.io.mishmash.common.rpc.ClientInvokeRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.ClientInvokeRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.ClientInvokeRequest}
*/
proto.io.mishmash.common.rpc.ClientInvokeRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setCallableId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.ClientInvokeRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.ClientInvokeRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.ClientInvokeRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.ClientInvokeRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCallableId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string callable_id = 1;
* @return {string}
*/
proto.io.mishmash.common.rpc.ClientInvokeRequest.prototype.getCallableId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.ClientInvokeRequest} returns this
*/
proto.io.mishmash.common.rpc.ClientInvokeRequest.prototype.setCallableId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.ClientInvokeResult.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.ClientInvokeResult} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.toObject = function(includeInstance, msg) {
var f, obj = {
ackSeqNo: jspb.Message.getFieldWithDefault(msg, 1, 0),
result: (f = msg.getResult()) && proto.io.mishmash.common.rpc.Value.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.ClientInvokeResult}
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.ClientInvokeResult;
return proto.io.mishmash.common.rpc.ClientInvokeResult.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.ClientInvokeResult} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.ClientInvokeResult}
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint32());
msg.setAckSeqNo(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.Value;
reader.readMessage(value,proto.io.mishmash.common.rpc.Value.deserializeBinaryFromReader);
msg.setResult(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.ClientInvokeResult.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.ClientInvokeResult} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAckSeqNo();
if (f !== 0) {
writer.writeUint32(
1,
f
);
}
f = message.getResult();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.Value.serializeBinaryToWriter
);
}
};
/**
* optional uint32 ack_seq_no = 1;
* @return {number}
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.prototype.getAckSeqNo = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.ClientInvokeResult} returns this
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.prototype.setAckSeqNo = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional Value result = 2;
* @return {?proto.io.mishmash.common.rpc.Value}
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.prototype.getResult = function() {
return /** @type{?proto.io.mishmash.common.rpc.Value} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Value, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.Value|undefined} value
* @return {!proto.io.mishmash.common.rpc.ClientInvokeResult} returns this
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.prototype.setResult = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.ClientInvokeResult} returns this
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.prototype.clearResult = function() {
return this.setResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.ClientInvokeResult.prototype.hasResult = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.ConsoleOutput.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.ConsoleOutput.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.ConsoleOutput} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.ConsoleOutput.toObject = function(includeInstance, msg) {
var f, obj = {
consoleOutputLine: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.ConsoleOutput}
*/
proto.io.mishmash.common.rpc.ConsoleOutput.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.ConsoleOutput;
return proto.io.mishmash.common.rpc.ConsoleOutput.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.ConsoleOutput} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.ConsoleOutput}
*/
proto.io.mishmash.common.rpc.ConsoleOutput.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setConsoleOutputLine(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.ConsoleOutput.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.ConsoleOutput.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.ConsoleOutput} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.ConsoleOutput.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getConsoleOutputLine();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string console_output_line = 1;
* @return {string}
*/
proto.io.mishmash.common.rpc.ConsoleOutput.prototype.getConsoleOutputLine = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.ConsoleOutput} returns this
*/
proto.io.mishmash.common.rpc.ConsoleOutput.prototype.setConsoleOutputLine = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.ConsoleOutputAck.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.ConsoleOutputAck.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.ConsoleOutputAck} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.ConsoleOutputAck.toObject = function(includeInstance, msg) {
var f, obj = {
ackSeqNo: jspb.Message.getFieldWithDefault(msg, 1, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.ConsoleOutputAck}
*/
proto.io.mishmash.common.rpc.ConsoleOutputAck.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.ConsoleOutputAck;
return proto.io.mishmash.common.rpc.ConsoleOutputAck.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.ConsoleOutputAck} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.ConsoleOutputAck}
*/
proto.io.mishmash.common.rpc.ConsoleOutputAck.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint32());
msg.setAckSeqNo(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.ConsoleOutputAck.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.ConsoleOutputAck.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.ConsoleOutputAck} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.ConsoleOutputAck.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAckSeqNo();
if (f !== 0) {
writer.writeUint32(
1,
f
);
}
};
/**
* optional uint32 ack_seq_no = 1;
* @return {number}
*/
proto.io.mishmash.common.rpc.ConsoleOutputAck.prototype.getAckSeqNo = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.ConsoleOutputAck} returns this
*/
proto.io.mishmash.common.rpc.ConsoleOutputAck.prototype.setAckSeqNo = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.io.mishmash.common.rpc.Debug.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Debug.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Debug.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Debug} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Debug.toObject = function(includeInstance, msg) {
var f, obj = {
debugInfoList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Debug}
*/
proto.io.mishmash.common.rpc.Debug.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Debug;
return proto.io.mishmash.common.rpc.Debug.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Debug} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Debug}
*/
proto.io.mishmash.common.rpc.Debug.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.addDebugInfo(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Debug.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Debug.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Debug} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Debug.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDebugInfoList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
};
/**
* repeated string debug_info = 1;
* @return {!Array<string>}
*/
proto.io.mishmash.common.rpc.Debug.prototype.getDebugInfoList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<string>} value
* @return {!proto.io.mishmash.common.rpc.Debug} returns this
*/
proto.io.mishmash.common.rpc.Debug.prototype.setDebugInfoList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.io.mishmash.common.rpc.Debug} returns this
*/
proto.io.mishmash.common.rpc.Debug.prototype.addDebugInfo = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.io.mishmash.common.rpc.Debug} returns this
*/
proto.io.mishmash.common.rpc.Debug.prototype.clearDebugInfoList = function() {
return this.setDebugInfoList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.DebugAck.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.DebugAck.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.DebugAck} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.DebugAck.toObject = function(includeInstance, msg) {
var f, obj = {
ackSeqNo: jspb.Message.getFieldWithDefault(msg, 1, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.DebugAck}
*/
proto.io.mishmash.common.rpc.DebugAck.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.DebugAck;
return proto.io.mishmash.common.rpc.DebugAck.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.DebugAck} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.DebugAck}
*/
proto.io.mishmash.common.rpc.DebugAck.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint32());
msg.setAckSeqNo(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.DebugAck.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.DebugAck.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.DebugAck} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.DebugAck.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAckSeqNo();
if (f !== 0) {
writer.writeUint32(
1,
f
);
}
};
/**
* optional uint32 ack_seq_no = 1;
* @return {number}
*/
proto.io.mishmash.common.rpc.DebugAck.prototype.getAckSeqNo = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.DebugAck} returns this
*/
proto.io.mishmash.common.rpc.DebugAck.prototype.setAckSeqNo = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.io.mishmash.common.rpc.Error.repeatedFields_ = [4];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Error.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Error.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Error} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Error.toObject = function(includeInstance, msg) {
var f, obj = {
inReplyToSeqNo: jspb.Message.getFieldWithDefault(msg, 1, 0),
errorCode: jspb.Message.getFieldWithDefault(msg, 2, 0),
message: jspb.Message.getFieldWithDefault(msg, 3, ""),
additionalInfoList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Error}
*/
proto.io.mishmash.common.rpc.Error.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Error;
return proto.io.mishmash.common.rpc.Error.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Error} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Error}
*/
proto.io.mishmash.common.rpc.Error.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint32());
msg.setInReplyToSeqNo(value);
break;
case 2:
var value = /** @type {number} */ (reader.readSint32());
msg.setErrorCode(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setMessage(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.addAdditionalInfo(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Error.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Error.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Error} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Error.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getInReplyToSeqNo();
if (f !== 0) {
writer.writeUint32(
1,
f
);
}
f = message.getErrorCode();
if (f !== 0) {
writer.writeSint32(
2,
f
);
}
f = message.getMessage();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getAdditionalInfoList();
if (f.length > 0) {
writer.writeRepeatedString(
4,
f
);
}
};
/**
* optional uint32 in_reply_to_seq_no = 1;
* @return {number}
*/
proto.io.mishmash.common.rpc.Error.prototype.getInReplyToSeqNo = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.Error} returns this
*/
proto.io.mishmash.common.rpc.Error.prototype.setInReplyToSeqNo = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional sint32 error_code = 2;
* @return {number}
*/
proto.io.mishmash.common.rpc.Error.prototype.getErrorCode = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.Error} returns this
*/
proto.io.mishmash.common.rpc.Error.prototype.setErrorCode = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional string message = 3;
* @return {string}
*/
proto.io.mishmash.common.rpc.Error.prototype.getMessage = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.Error} returns this
*/
proto.io.mishmash.common.rpc.Error.prototype.setMessage = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* repeated string additional_info = 4;
* @return {!Array<string>}
*/
proto.io.mishmash.common.rpc.Error.prototype.getAdditionalInfoList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
};
/**
* @param {!Array<string>} value
* @return {!proto.io.mishmash.common.rpc.Error} returns this
*/
proto.io.mishmash.common.rpc.Error.prototype.setAdditionalInfoList = function(value) {
return jspb.Message.setField(this, 4, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.io.mishmash.common.rpc.Error} returns this
*/
proto.io.mishmash.common.rpc.Error.prototype.addAdditionalInfo = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.io.mishmash.common.rpc.Error} returns this
*/
proto.io.mishmash.common.rpc.Error.prototype.clearAdditionalInfoList = function() {
return this.setAdditionalInfoList([]);
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.oneofGroups_ = [[1,2,3,4,5,6,7]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.AltCase = {
ALT_NOT_SET: 0,
UNION: 1,
INTERSECTION: 2,
LITERAL: 3,
PREDEFINED_SET: 4,
TRANSFORMATION: 5,
PREDEFINED_FUNCTION: 6,
LAMBDA_FUNCTION: 7
};
/**
* @return {proto.io.mishmash.common.rpc.MishmashSetDescriptor.AltCase}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.getAltCase = function() {
return /** @type {proto.io.mishmash.common.rpc.MishmashSetDescriptor.AltCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.MishmashSetDescriptor.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.MishmashSetDescriptor.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.toObject = function(includeInstance, msg) {
var f, obj = {
union: (f = msg.getUnion()) && proto.io.mishmash.common.rpc.Union.toObject(includeInstance, f),
intersection: (f = msg.getIntersection()) && proto.io.mishmash.common.rpc.Intersection.toObject(includeInstance, f),
literal: (f = msg.getLiteral()) && proto.io.mishmash.common.rpc.Literal.toObject(includeInstance, f),
predefinedSet: (f = msg.getPredefinedSet()) && proto.io.mishmash.common.rpc.PredefinedSet.toObject(includeInstance, f),
transformation: (f = msg.getTransformation()) && proto.io.mishmash.common.rpc.Transformation.toObject(includeInstance, f),
predefinedFunction: (f = msg.getPredefinedFunction()) && proto.io.mishmash.common.rpc.PredefinedFunction.toObject(includeInstance, f),
lambdaFunction: (f = msg.getLambdaFunction()) && proto.io.mishmash.common.rpc.LambdaFunction.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.MishmashSetDescriptor;
return proto.io.mishmash.common.rpc.MishmashSetDescriptor.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.Union;
reader.readMessage(value,proto.io.mishmash.common.rpc.Union.deserializeBinaryFromReader);
msg.setUnion(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.Intersection;
reader.readMessage(value,proto.io.mishmash.common.rpc.Intersection.deserializeBinaryFromReader);
msg.setIntersection(value);
break;
case 3:
var value = new proto.io.mishmash.common.rpc.Literal;
reader.readMessage(value,proto.io.mishmash.common.rpc.Literal.deserializeBinaryFromReader);
msg.setLiteral(value);
break;
case 4:
var value = new proto.io.mishmash.common.rpc.PredefinedSet;
reader.readMessage(value,proto.io.mishmash.common.rpc.PredefinedSet.deserializeBinaryFromReader);
msg.setPredefinedSet(value);
break;
case 5:
var value = new proto.io.mishmash.common.rpc.Transformation;
reader.readMessage(value,proto.io.mishmash.common.rpc.Transformation.deserializeBinaryFromReader);
msg.setTransformation(value);
break;
case 6:
var value = new proto.io.mishmash.common.rpc.PredefinedFunction;
reader.readMessage(value,proto.io.mishmash.common.rpc.PredefinedFunction.deserializeBinaryFromReader);
msg.setPredefinedFunction(value);
break;
case 7:
var value = new proto.io.mishmash.common.rpc.LambdaFunction;
reader.readMessage(value,proto.io.mishmash.common.rpc.LambdaFunction.deserializeBinaryFromReader);
msg.setLambdaFunction(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.MishmashSetDescriptor.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUnion();
if (f != null) {
writer.writeMessage(
1,
f,
proto.io.mishmash.common.rpc.Union.serializeBinaryToWriter
);
}
f = message.getIntersection();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.Intersection.serializeBinaryToWriter
);
}
f = message.getLiteral();
if (f != null) {
writer.writeMessage(
3,
f,
proto.io.mishmash.common.rpc.Literal.serializeBinaryToWriter
);
}
f = message.getPredefinedSet();
if (f != null) {
writer.writeMessage(
4,
f,
proto.io.mishmash.common.rpc.PredefinedSet.serializeBinaryToWriter
);
}
f = message.getTransformation();
if (f != null) {
writer.writeMessage(
5,
f,
proto.io.mishmash.common.rpc.Transformation.serializeBinaryToWriter
);
}
f = message.getPredefinedFunction();
if (f != null) {
writer.writeMessage(
6,
f,
proto.io.mishmash.common.rpc.PredefinedFunction.serializeBinaryToWriter
);
}
f = message.getLambdaFunction();
if (f != null) {
writer.writeMessage(
7,
f,
proto.io.mishmash.common.rpc.LambdaFunction.serializeBinaryToWriter
);
}
};
/**
* optional Union union = 1;
* @return {?proto.io.mishmash.common.rpc.Union}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.getUnion = function() {
return /** @type{?proto.io.mishmash.common.rpc.Union} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Union, 1));
};
/**
* @param {?proto.io.mishmash.common.rpc.Union|undefined} value
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.setUnion = function(value) {
return jspb.Message.setOneofWrapperField(this, 1, proto.io.mishmash.common.rpc.MishmashSetDescriptor.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.clearUnion = function() {
return this.setUnion(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.hasUnion = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Intersection intersection = 2;
* @return {?proto.io.mishmash.common.rpc.Intersection}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.getIntersection = function() {
return /** @type{?proto.io.mishmash.common.rpc.Intersection} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Intersection, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.Intersection|undefined} value
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.setIntersection = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.io.mishmash.common.rpc.MishmashSetDescriptor.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.clearIntersection = function() {
return this.setIntersection(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.hasIntersection = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional Literal literal = 3;
* @return {?proto.io.mishmash.common.rpc.Literal}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.getLiteral = function() {
return /** @type{?proto.io.mishmash.common.rpc.Literal} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Literal, 3));
};
/**
* @param {?proto.io.mishmash.common.rpc.Literal|undefined} value
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.setLiteral = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.io.mishmash.common.rpc.MishmashSetDescriptor.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.clearLiteral = function() {
return this.setLiteral(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.hasLiteral = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional PredefinedSet predefined_set = 4;
* @return {?proto.io.mishmash.common.rpc.PredefinedSet}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.getPredefinedSet = function() {
return /** @type{?proto.io.mishmash.common.rpc.PredefinedSet} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.PredefinedSet, 4));
};
/**
* @param {?proto.io.mishmash.common.rpc.PredefinedSet|undefined} value
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.setPredefinedSet = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.io.mishmash.common.rpc.MishmashSetDescriptor.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.clearPredefinedSet = function() {
return this.setPredefinedSet(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.hasPredefinedSet = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional Transformation transformation = 5;
* @return {?proto.io.mishmash.common.rpc.Transformation}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.getTransformation = function() {
return /** @type{?proto.io.mishmash.common.rpc.Transformation} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Transformation, 5));
};
/**
* @param {?proto.io.mishmash.common.rpc.Transformation|undefined} value
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.setTransformation = function(value) {
return jspb.Message.setOneofWrapperField(this, 5, proto.io.mishmash.common.rpc.MishmashSetDescriptor.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.clearTransformation = function() {
return this.setTransformation(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.hasTransformation = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional PredefinedFunction predefined_function = 6;
* @return {?proto.io.mishmash.common.rpc.PredefinedFunction}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.getPredefinedFunction = function() {
return /** @type{?proto.io.mishmash.common.rpc.PredefinedFunction} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.PredefinedFunction, 6));
};
/**
* @param {?proto.io.mishmash.common.rpc.PredefinedFunction|undefined} value
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.setPredefinedFunction = function(value) {
return jspb.Message.setOneofWrapperField(this, 6, proto.io.mishmash.common.rpc.MishmashSetDescriptor.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.clearPredefinedFunction = function() {
return this.setPredefinedFunction(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.hasPredefinedFunction = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional LambdaFunction lambda_function = 7;
* @return {?proto.io.mishmash.common.rpc.LambdaFunction}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.getLambdaFunction = function() {
return /** @type{?proto.io.mishmash.common.rpc.LambdaFunction} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.LambdaFunction, 7));
};
/**
* @param {?proto.io.mishmash.common.rpc.LambdaFunction|undefined} value
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.setLambdaFunction = function(value) {
return jspb.Message.setOneofWrapperField(this, 7, proto.io.mishmash.common.rpc.MishmashSetDescriptor.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.clearLambdaFunction = function() {
return this.setLambdaFunction(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptor.prototype.hasLambdaFunction = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.MishmashSetDescriptorList.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.MishmashSetDescriptorList} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.toObject = function(includeInstance, msg) {
var f, obj = {
entriesList: jspb.Message.toObjectList(msg.getEntriesList(),
proto.io.mishmash.common.rpc.MishmashSetDescriptor.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptorList}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.MishmashSetDescriptorList;
return proto.io.mishmash.common.rpc.MishmashSetDescriptorList.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.MishmashSetDescriptorList} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptorList}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.MishmashSetDescriptor;
reader.readMessage(value,proto.io.mishmash.common.rpc.MishmashSetDescriptor.deserializeBinaryFromReader);
msg.addEntries(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.MishmashSetDescriptorList} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEntriesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.io.mishmash.common.rpc.MishmashSetDescriptor.serializeBinaryToWriter
);
}
};
/**
* repeated MishmashSetDescriptor entries = 1;
* @return {!Array<!proto.io.mishmash.common.rpc.MishmashSetDescriptor>}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.prototype.getEntriesList = function() {
return /** @type{!Array<!proto.io.mishmash.common.rpc.MishmashSetDescriptor>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.io.mishmash.common.rpc.MishmashSetDescriptor, 1));
};
/**
* @param {!Array<!proto.io.mishmash.common.rpc.MishmashSetDescriptor>} value
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptorList} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.prototype.setEntriesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.io.mishmash.common.rpc.MishmashSetDescriptor=} opt_value
* @param {number=} opt_index
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor}
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.prototype.addEntries = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.mishmash.common.rpc.MishmashSetDescriptor, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptorList} returns this
*/
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.prototype.clearEntriesList = function() {
return this.setEntriesList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Union.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Union.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Union} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Union.toObject = function(includeInstance, msg) {
var f, obj = {
sets: (f = msg.getSets()) && proto.io.mishmash.common.rpc.MishmashSetDescriptorList.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Union}
*/
proto.io.mishmash.common.rpc.Union.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Union;
return proto.io.mishmash.common.rpc.Union.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Union} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Union}
*/
proto.io.mishmash.common.rpc.Union.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.MishmashSetDescriptorList;
reader.readMessage(value,proto.io.mishmash.common.rpc.MishmashSetDescriptorList.deserializeBinaryFromReader);
msg.setSets(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Union.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Union.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Union} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Union.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSets();
if (f != null) {
writer.writeMessage(
1,
f,
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.serializeBinaryToWriter
);
}
};
/**
* optional MishmashSetDescriptorList sets = 1;
* @return {?proto.io.mishmash.common.rpc.MishmashSetDescriptorList}
*/
proto.io.mishmash.common.rpc.Union.prototype.getSets = function() {
return /** @type{?proto.io.mishmash.common.rpc.MishmashSetDescriptorList} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.MishmashSetDescriptorList, 1));
};
/**
* @param {?proto.io.mishmash.common.rpc.MishmashSetDescriptorList|undefined} value
* @return {!proto.io.mishmash.common.rpc.Union} returns this
*/
proto.io.mishmash.common.rpc.Union.prototype.setSets = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Union} returns this
*/
proto.io.mishmash.common.rpc.Union.prototype.clearSets = function() {
return this.setSets(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Union.prototype.hasSets = function() {
return jspb.Message.getField(this, 1) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Intersection.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Intersection.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Intersection} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Intersection.toObject = function(includeInstance, msg) {
var f, obj = {
sets: (f = msg.getSets()) && proto.io.mishmash.common.rpc.MishmashSetDescriptorList.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Intersection}
*/
proto.io.mishmash.common.rpc.Intersection.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Intersection;
return proto.io.mishmash.common.rpc.Intersection.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Intersection} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Intersection}
*/
proto.io.mishmash.common.rpc.Intersection.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.MishmashSetDescriptorList;
reader.readMessage(value,proto.io.mishmash.common.rpc.MishmashSetDescriptorList.deserializeBinaryFromReader);
msg.setSets(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Intersection.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Intersection.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Intersection} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Intersection.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSets();
if (f != null) {
writer.writeMessage(
1,
f,
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.serializeBinaryToWriter
);
}
};
/**
* optional MishmashSetDescriptorList sets = 1;
* @return {?proto.io.mishmash.common.rpc.MishmashSetDescriptorList}
*/
proto.io.mishmash.common.rpc.Intersection.prototype.getSets = function() {
return /** @type{?proto.io.mishmash.common.rpc.MishmashSetDescriptorList} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.MishmashSetDescriptorList, 1));
};
/**
* @param {?proto.io.mishmash.common.rpc.MishmashSetDescriptorList|undefined} value
* @return {!proto.io.mishmash.common.rpc.Intersection} returns this
*/
proto.io.mishmash.common.rpc.Intersection.prototype.setSets = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Intersection} returns this
*/
proto.io.mishmash.common.rpc.Intersection.prototype.clearSets = function() {
return this.setSets(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Intersection.prototype.hasSets = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.Literal.oneofGroups_ = [[2,3]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.Literal.AltCase = {
ALT_NOT_SET: 0,
ID: 2,
VALUE: 3
};
/**
* @return {proto.io.mishmash.common.rpc.Literal.AltCase}
*/
proto.io.mishmash.common.rpc.Literal.prototype.getAltCase = function() {
return /** @type {proto.io.mishmash.common.rpc.Literal.AltCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.Literal.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Literal.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Literal.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Literal} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Literal.toObject = function(includeInstance, msg) {
var f, obj = {
id: (f = msg.getId()) && proto.io.mishmash.common.rpc.Id.toObject(includeInstance, f),
value: (f = msg.getValue()) && proto.io.mishmash.common.rpc.Value.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Literal}
*/
proto.io.mishmash.common.rpc.Literal.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Literal;
return proto.io.mishmash.common.rpc.Literal.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Literal} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Literal}
*/
proto.io.mishmash.common.rpc.Literal.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 2:
var value = new proto.io.mishmash.common.rpc.Id;
reader.readMessage(value,proto.io.mishmash.common.rpc.Id.deserializeBinaryFromReader);
msg.setId(value);
break;
case 3:
var value = new proto.io.mishmash.common.rpc.Value;
reader.readMessage(value,proto.io.mishmash.common.rpc.Value.deserializeBinaryFromReader);
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Literal.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Literal.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Literal} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Literal.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.Id.serializeBinaryToWriter
);
}
f = message.getValue();
if (f != null) {
writer.writeMessage(
3,
f,
proto.io.mishmash.common.rpc.Value.serializeBinaryToWriter
);
}
};
/**
* optional Id id = 2;
* @return {?proto.io.mishmash.common.rpc.Id}
*/
proto.io.mishmash.common.rpc.Literal.prototype.getId = function() {
return /** @type{?proto.io.mishmash.common.rpc.Id} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Id, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.Id|undefined} value
* @return {!proto.io.mishmash.common.rpc.Literal} returns this
*/
proto.io.mishmash.common.rpc.Literal.prototype.setId = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.io.mishmash.common.rpc.Literal.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Literal} returns this
*/
proto.io.mishmash.common.rpc.Literal.prototype.clearId = function() {
return this.setId(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Literal.prototype.hasId = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional Value value = 3;
* @return {?proto.io.mishmash.common.rpc.Value}
*/
proto.io.mishmash.common.rpc.Literal.prototype.getValue = function() {
return /** @type{?proto.io.mishmash.common.rpc.Value} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Value, 3));
};
/**
* @param {?proto.io.mishmash.common.rpc.Value|undefined} value
* @return {!proto.io.mishmash.common.rpc.Literal} returns this
*/
proto.io.mishmash.common.rpc.Literal.prototype.setValue = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.io.mishmash.common.rpc.Literal.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Literal} returns this
*/
proto.io.mishmash.common.rpc.Literal.prototype.clearValue = function() {
return this.setValue(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Literal.prototype.hasValue = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.Member.oneofGroups_ = [[1,2]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.Member.AltCase = {
ALT_NOT_SET: 0,
NAME: 1,
INDEX: 2
};
/**
* @return {proto.io.mishmash.common.rpc.Member.AltCase}
*/
proto.io.mishmash.common.rpc.Member.prototype.getAltCase = function() {
return /** @type {proto.io.mishmash.common.rpc.Member.AltCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.Member.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Member.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Member.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Member} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Member.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
index: jspb.Message.getFieldWithDefault(msg, 2, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Member}
*/
proto.io.mishmash.common.rpc.Member.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Member;
return proto.io.mishmash.common.rpc.Member.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Member} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Member}
*/
proto.io.mishmash.common.rpc.Member.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setIndex(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Member.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Member.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Member} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Member.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {string} */ (jspb.Message.getField(message, 1));
if (f != null) {
writer.writeString(
1,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 2));
if (f != null) {
writer.writeUint64(
2,
f
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.io.mishmash.common.rpc.Member.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.Member} returns this
*/
proto.io.mishmash.common.rpc.Member.prototype.setName = function(value) {
return jspb.Message.setOneofField(this, 1, proto.io.mishmash.common.rpc.Member.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Member} returns this
*/
proto.io.mishmash.common.rpc.Member.prototype.clearName = function() {
return jspb.Message.setOneofField(this, 1, proto.io.mishmash.common.rpc.Member.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Member.prototype.hasName = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional uint64 index = 2;
* @return {number}
*/
proto.io.mishmash.common.rpc.Member.prototype.getIndex = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.Member} returns this
*/
proto.io.mishmash.common.rpc.Member.prototype.setIndex = function(value) {
return jspb.Message.setOneofField(this, 2, proto.io.mishmash.common.rpc.Member.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Member} returns this
*/
proto.io.mishmash.common.rpc.Member.prototype.clearIndex = function() {
return jspb.Message.setOneofField(this, 2, proto.io.mishmash.common.rpc.Member.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Member.prototype.hasIndex = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Id.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Id.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Id} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Id.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Id}
*/
proto.io.mishmash.common.rpc.Id.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Id;
return proto.io.mishmash.common.rpc.Id.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Id} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Id}
*/
proto.io.mishmash.common.rpc.Id.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Id.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Id.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Id} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Id.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string id = 1;
* @return {string}
*/
proto.io.mishmash.common.rpc.Id.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.Id} returns this
*/
proto.io.mishmash.common.rpc.Id.prototype.setId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.Value.oneofGroups_ = [[1,2,4,5,6,7]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.Value.AltCase = {
ALT_NOT_SET: 0,
NULL: 1,
BOOLEAN: 2,
DECIMAL: 4,
STRING: 5,
DATE: 6,
BUFFER: 7
};
/**
* @return {proto.io.mishmash.common.rpc.Value.AltCase}
*/
proto.io.mishmash.common.rpc.Value.prototype.getAltCase = function() {
return /** @type {proto.io.mishmash.common.rpc.Value.AltCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.Value.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Value.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Value.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Value} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Value.toObject = function(includeInstance, msg) {
var f, obj = {
pb_null: (f = msg.getNull()) && proto.io.mishmash.common.rpc.NullValue.toObject(includeInstance, f),
pb_boolean: (f = msg.getBoolean()) && proto.io.mishmash.common.rpc.BooleanValue.toObject(includeInstance, f),
decimal: (f = msg.getDecimal()) && proto.io.mishmash.common.rpc.DecimalValue.toObject(includeInstance, f),
string: (f = msg.getString()) && proto.io.mishmash.common.rpc.StringValue.toObject(includeInstance, f),
date: (f = msg.getDate()) && proto.io.mishmash.common.rpc.DateValue.toObject(includeInstance, f),
buffer: (f = msg.getBuffer()) && proto.io.mishmash.common.rpc.BufferValue.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Value}
*/
proto.io.mishmash.common.rpc.Value.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Value;
return proto.io.mishmash.common.rpc.Value.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Value} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Value}
*/
proto.io.mishmash.common.rpc.Value.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.NullValue;
reader.readMessage(value,proto.io.mishmash.common.rpc.NullValue.deserializeBinaryFromReader);
msg.setNull(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.BooleanValue;
reader.readMessage(value,proto.io.mishmash.common.rpc.BooleanValue.deserializeBinaryFromReader);
msg.setBoolean(value);
break;
case 4:
var value = new proto.io.mishmash.common.rpc.DecimalValue;
reader.readMessage(value,proto.io.mishmash.common.rpc.DecimalValue.deserializeBinaryFromReader);
msg.setDecimal(value);
break;
case 5:
var value = new proto.io.mishmash.common.rpc.StringValue;
reader.readMessage(value,proto.io.mishmash.common.rpc.StringValue.deserializeBinaryFromReader);
msg.setString(value);
break;
case 6:
var value = new proto.io.mishmash.common.rpc.DateValue;
reader.readMessage(value,proto.io.mishmash.common.rpc.DateValue.deserializeBinaryFromReader);
msg.setDate(value);
break;
case 7:
var value = new proto.io.mishmash.common.rpc.BufferValue;
reader.readMessage(value,proto.io.mishmash.common.rpc.BufferValue.deserializeBinaryFromReader);
msg.setBuffer(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Value.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Value.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Value} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Value.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getNull();
if (f != null) {
writer.writeMessage(
1,
f,
proto.io.mishmash.common.rpc.NullValue.serializeBinaryToWriter
);
}
f = message.getBoolean();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.BooleanValue.serializeBinaryToWriter
);
}
f = message.getDecimal();
if (f != null) {
writer.writeMessage(
4,
f,
proto.io.mishmash.common.rpc.DecimalValue.serializeBinaryToWriter
);
}
f = message.getString();
if (f != null) {
writer.writeMessage(
5,
f,
proto.io.mishmash.common.rpc.StringValue.serializeBinaryToWriter
);
}
f = message.getDate();
if (f != null) {
writer.writeMessage(
6,
f,
proto.io.mishmash.common.rpc.DateValue.serializeBinaryToWriter
);
}
f = message.getBuffer();
if (f != null) {
writer.writeMessage(
7,
f,
proto.io.mishmash.common.rpc.BufferValue.serializeBinaryToWriter
);
}
};
/**
* optional NullValue null = 1;
* @return {?proto.io.mishmash.common.rpc.NullValue}
*/
proto.io.mishmash.common.rpc.Value.prototype.getNull = function() {
return /** @type{?proto.io.mishmash.common.rpc.NullValue} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.NullValue, 1));
};
/**
* @param {?proto.io.mishmash.common.rpc.NullValue|undefined} value
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.setNull = function(value) {
return jspb.Message.setOneofWrapperField(this, 1, proto.io.mishmash.common.rpc.Value.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.clearNull = function() {
return this.setNull(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Value.prototype.hasNull = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional BooleanValue boolean = 2;
* @return {?proto.io.mishmash.common.rpc.BooleanValue}
*/
proto.io.mishmash.common.rpc.Value.prototype.getBoolean = function() {
return /** @type{?proto.io.mishmash.common.rpc.BooleanValue} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.BooleanValue, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.BooleanValue|undefined} value
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.setBoolean = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.io.mishmash.common.rpc.Value.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.clearBoolean = function() {
return this.setBoolean(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Value.prototype.hasBoolean = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional DecimalValue decimal = 4;
* @return {?proto.io.mishmash.common.rpc.DecimalValue}
*/
proto.io.mishmash.common.rpc.Value.prototype.getDecimal = function() {
return /** @type{?proto.io.mishmash.common.rpc.DecimalValue} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.DecimalValue, 4));
};
/**
* @param {?proto.io.mishmash.common.rpc.DecimalValue|undefined} value
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.setDecimal = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.io.mishmash.common.rpc.Value.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.clearDecimal = function() {
return this.setDecimal(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Value.prototype.hasDecimal = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional StringValue string = 5;
* @return {?proto.io.mishmash.common.rpc.StringValue}
*/
proto.io.mishmash.common.rpc.Value.prototype.getString = function() {
return /** @type{?proto.io.mishmash.common.rpc.StringValue} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.StringValue, 5));
};
/**
* @param {?proto.io.mishmash.common.rpc.StringValue|undefined} value
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.setString = function(value) {
return jspb.Message.setOneofWrapperField(this, 5, proto.io.mishmash.common.rpc.Value.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.clearString = function() {
return this.setString(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Value.prototype.hasString = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional DateValue date = 6;
* @return {?proto.io.mishmash.common.rpc.DateValue}
*/
proto.io.mishmash.common.rpc.Value.prototype.getDate = function() {
return /** @type{?proto.io.mishmash.common.rpc.DateValue} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.DateValue, 6));
};
/**
* @param {?proto.io.mishmash.common.rpc.DateValue|undefined} value
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.setDate = function(value) {
return jspb.Message.setOneofWrapperField(this, 6, proto.io.mishmash.common.rpc.Value.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.clearDate = function() {
return this.setDate(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Value.prototype.hasDate = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional BufferValue buffer = 7;
* @return {?proto.io.mishmash.common.rpc.BufferValue}
*/
proto.io.mishmash.common.rpc.Value.prototype.getBuffer = function() {
return /** @type{?proto.io.mishmash.common.rpc.BufferValue} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.BufferValue, 7));
};
/**
* @param {?proto.io.mishmash.common.rpc.BufferValue|undefined} value
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.setBuffer = function(value) {
return jspb.Message.setOneofWrapperField(this, 7, proto.io.mishmash.common.rpc.Value.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Value} returns this
*/
proto.io.mishmash.common.rpc.Value.prototype.clearBuffer = function() {
return this.setBuffer(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Value.prototype.hasBuffer = function() {
return jspb.Message.getField(this, 7) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.NullValue.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.NullValue.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.NullValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.NullValue.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.NullValue}
*/
proto.io.mishmash.common.rpc.NullValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.NullValue;
return proto.io.mishmash.common.rpc.NullValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.NullValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.NullValue}
*/
proto.io.mishmash.common.rpc.NullValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.NullValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.NullValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.NullValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.NullValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.BooleanValue.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.BooleanValue.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.BooleanValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.BooleanValue.toObject = function(includeInstance, msg) {
var f, obj = {
pb_boolean: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.BooleanValue}
*/
proto.io.mishmash.common.rpc.BooleanValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.BooleanValue;
return proto.io.mishmash.common.rpc.BooleanValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.BooleanValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.BooleanValue}
*/
proto.io.mishmash.common.rpc.BooleanValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {boolean} */ (reader.readBool());
msg.setBoolean(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.BooleanValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.BooleanValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.BooleanValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.BooleanValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getBoolean();
if (f) {
writer.writeBool(
1,
f
);
}
};
/**
* optional bool boolean = 1;
* @return {boolean}
*/
proto.io.mishmash.common.rpc.BooleanValue.prototype.getBoolean = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
};
/**
* @param {boolean} value
* @return {!proto.io.mishmash.common.rpc.BooleanValue} returns this
*/
proto.io.mishmash.common.rpc.BooleanValue.prototype.setBoolean = function(value) {
return jspb.Message.setProto3BooleanField(this, 1, value);
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_ = [[1,2,3,4,5,6,7]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.DecimalValue.AltCase = {
ALT_NOT_SET: 0,
U_INT_32: 1,
S_INT_32: 2,
U_INT_64: 3,
S_INT_64: 4,
FLOATING: 5,
STRING_SEQUENCE: 6,
BIG_DECIMAL: 7
};
/**
* @return {proto.io.mishmash.common.rpc.DecimalValue.AltCase}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.getAltCase = function() {
return /** @type {proto.io.mishmash.common.rpc.DecimalValue.AltCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.DecimalValue.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.DecimalValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.DecimalValue.toObject = function(includeInstance, msg) {
var f, obj = {
uInt32: jspb.Message.getFieldWithDefault(msg, 1, 0),
sInt32: jspb.Message.getFieldWithDefault(msg, 2, 0),
uInt64: jspb.Message.getFieldWithDefault(msg, 3, 0),
sInt64: jspb.Message.getFieldWithDefault(msg, 4, 0),
floating: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
stringSequence: jspb.Message.getFieldWithDefault(msg, 6, ""),
bigDecimal: (f = msg.getBigDecimal()) && proto.io.mishmash.common.rpc.BigEndianDecimal.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.DecimalValue}
*/
proto.io.mishmash.common.rpc.DecimalValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.DecimalValue;
return proto.io.mishmash.common.rpc.DecimalValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.DecimalValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.DecimalValue}
*/
proto.io.mishmash.common.rpc.DecimalValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint32());
msg.setUInt32(value);
break;
case 2:
var value = /** @type {number} */ (reader.readSint32());
msg.setSInt32(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setUInt64(value);
break;
case 4:
var value = /** @type {number} */ (reader.readSint64());
msg.setSInt64(value);
break;
case 5:
var value = /** @type {number} */ (reader.readDouble());
msg.setFloating(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setStringSequence(value);
break;
case 7:
var value = new proto.io.mishmash.common.rpc.BigEndianDecimal;
reader.readMessage(value,proto.io.mishmash.common.rpc.BigEndianDecimal.deserializeBinaryFromReader);
msg.setBigDecimal(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.DecimalValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.DecimalValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.DecimalValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {number} */ (jspb.Message.getField(message, 1));
if (f != null) {
writer.writeUint32(
1,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 2));
if (f != null) {
writer.writeSint32(
2,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 3));
if (f != null) {
writer.writeUint64(
3,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 4));
if (f != null) {
writer.writeSint64(
4,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 5));
if (f != null) {
writer.writeDouble(
5,
f
);
}
f = /** @type {string} */ (jspb.Message.getField(message, 6));
if (f != null) {
writer.writeString(
6,
f
);
}
f = message.getBigDecimal();
if (f != null) {
writer.writeMessage(
7,
f,
proto.io.mishmash.common.rpc.BigEndianDecimal.serializeBinaryToWriter
);
}
};
/**
* optional uint32 u_int_32 = 1;
* @return {number}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.getUInt32 = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.setUInt32 = function(value) {
return jspb.Message.setOneofField(this, 1, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.clearUInt32 = function() {
return jspb.Message.setOneofField(this, 1, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.hasUInt32 = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional sint32 s_int_32 = 2;
* @return {number}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.getSInt32 = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.setSInt32 = function(value) {
return jspb.Message.setOneofField(this, 2, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.clearSInt32 = function() {
return jspb.Message.setOneofField(this, 2, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.hasSInt32 = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional uint64 u_int_64 = 3;
* @return {number}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.getUInt64 = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.setUInt64 = function(value) {
return jspb.Message.setOneofField(this, 3, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.clearUInt64 = function() {
return jspb.Message.setOneofField(this, 3, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.hasUInt64 = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional sint64 s_int_64 = 4;
* @return {number}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.getSInt64 = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.setSInt64 = function(value) {
return jspb.Message.setOneofField(this, 4, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.clearSInt64 = function() {
return jspb.Message.setOneofField(this, 4, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.hasSInt64 = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional double floating = 5;
* @return {number}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.getFloating = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
};
/**
* @param {number} value
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.setFloating = function(value) {
return jspb.Message.setOneofField(this, 5, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.clearFloating = function() {
return jspb.Message.setOneofField(this, 5, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.hasFloating = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional string string_sequence = 6;
* @return {string}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.getStringSequence = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.setStringSequence = function(value) {
return jspb.Message.setOneofField(this, 6, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.clearStringSequence = function() {
return jspb.Message.setOneofField(this, 6, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.hasStringSequence = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional BigEndianDecimal big_decimal = 7;
* @return {?proto.io.mishmash.common.rpc.BigEndianDecimal}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.getBigDecimal = function() {
return /** @type{?proto.io.mishmash.common.rpc.BigEndianDecimal} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.BigEndianDecimal, 7));
};
/**
* @param {?proto.io.mishmash.common.rpc.BigEndianDecimal|undefined} value
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.setBigDecimal = function(value) {
return jspb.Message.setOneofWrapperField(this, 7, proto.io.mishmash.common.rpc.DecimalValue.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.DecimalValue} returns this
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.clearBigDecimal = function() {
return this.setBigDecimal(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.DecimalValue.prototype.hasBigDecimal = function() {
return jspb.Message.getField(this, 7) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.BigEndianDecimal.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.BigEndianDecimal} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.toObject = function(includeInstance, msg) {
var f, obj = {
sign: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
integerpart: msg.getIntegerpart_asB64(),
fractionalpart: msg.getFractionalpart_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.BigEndianDecimal}
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.BigEndianDecimal;
return proto.io.mishmash.common.rpc.BigEndianDecimal.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.BigEndianDecimal} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.BigEndianDecimal}
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {boolean} */ (reader.readBool());
msg.setSign(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setIntegerpart(value);
break;
case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setFractionalpart(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.BigEndianDecimal.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.BigEndianDecimal} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSign();
if (f) {
writer.writeBool(
1,
f
);
}
f = message.getIntegerpart_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getFractionalpart_asU8();
if (f.length > 0) {
writer.writeBytes(
3,
f
);
}
};
/**
* optional bool sign = 1;
* @return {boolean}
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.getSign = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
};
/**
* @param {boolean} value
* @return {!proto.io.mishmash.common.rpc.BigEndianDecimal} returns this
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.setSign = function(value) {
return jspb.Message.setProto3BooleanField(this, 1, value);
};
/**
* optional bytes integerPart = 2;
* @return {!(string|Uint8Array)}
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.getIntegerpart = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes integerPart = 2;
* This is a type-conversion wrapper around `getIntegerpart()`
* @return {string}
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.getIntegerpart_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getIntegerpart()));
};
/**
* optional bytes integerPart = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getIntegerpart()`
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.getIntegerpart_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getIntegerpart()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.io.mishmash.common.rpc.BigEndianDecimal} returns this
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.setIntegerpart = function(value) {
return jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* optional bytes fractionalPart = 3;
* @return {!(string|Uint8Array)}
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.getFractionalpart = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* optional bytes fractionalPart = 3;
* This is a type-conversion wrapper around `getFractionalpart()`
* @return {string}
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.getFractionalpart_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getFractionalpart()));
};
/**
* optional bytes fractionalPart = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getFractionalpart()`
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.getFractionalpart_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getFractionalpart()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.io.mishmash.common.rpc.BigEndianDecimal} returns this
*/
proto.io.mishmash.common.rpc.BigEndianDecimal.prototype.setFractionalpart = function(value) {
return jspb.Message.setProto3BytesField(this, 3, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.StringValue.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.StringValue.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.StringValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.StringValue.toObject = function(includeInstance, msg) {
var f, obj = {
sequence: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.StringValue}
*/
proto.io.mishmash.common.rpc.StringValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.StringValue;
return proto.io.mishmash.common.rpc.StringValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.StringValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.StringValue}
*/
proto.io.mishmash.common.rpc.StringValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setSequence(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.StringValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.StringValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.StringValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.StringValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSequence();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string sequence = 1;
* @return {string}
*/
proto.io.mishmash.common.rpc.StringValue.prototype.getSequence = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.StringValue} returns this
*/
proto.io.mishmash.common.rpc.StringValue.prototype.setSequence = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.DateValue.oneofGroups_ = [[1]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.DateValue.AltCase = {
ALT_NOT_SET: 0,
ISO8601: 1
};
/**
* @return {proto.io.mishmash.common.rpc.DateValue.AltCase}
*/
proto.io.mishmash.common.rpc.DateValue.prototype.getAltCase = function() {
return /** @type {proto.io.mishmash.common.rpc.DateValue.AltCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.DateValue.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.DateValue.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.DateValue.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.DateValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.DateValue.toObject = function(includeInstance, msg) {
var f, obj = {
iso8601: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.DateValue}
*/
proto.io.mishmash.common.rpc.DateValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.DateValue;
return proto.io.mishmash.common.rpc.DateValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.DateValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.DateValue}
*/
proto.io.mishmash.common.rpc.DateValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setIso8601(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.DateValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.DateValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.DateValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.DateValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {string} */ (jspb.Message.getField(message, 1));
if (f != null) {
writer.writeString(
1,
f
);
}
};
/**
* optional string iso8601 = 1;
* @return {string}
*/
proto.io.mishmash.common.rpc.DateValue.prototype.getIso8601 = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.DateValue} returns this
*/
proto.io.mishmash.common.rpc.DateValue.prototype.setIso8601 = function(value) {
return jspb.Message.setOneofField(this, 1, proto.io.mishmash.common.rpc.DateValue.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.io.mishmash.common.rpc.DateValue} returns this
*/
proto.io.mishmash.common.rpc.DateValue.prototype.clearIso8601 = function() {
return jspb.Message.setOneofField(this, 1, proto.io.mishmash.common.rpc.DateValue.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.DateValue.prototype.hasIso8601 = function() {
return jspb.Message.getField(this, 1) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.BufferValue.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.BufferValue.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.BufferValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.BufferValue.toObject = function(includeInstance, msg) {
var f, obj = {
buf: msg.getBuf_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.BufferValue}
*/
proto.io.mishmash.common.rpc.BufferValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.BufferValue;
return proto.io.mishmash.common.rpc.BufferValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.BufferValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.BufferValue}
*/
proto.io.mishmash.common.rpc.BufferValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setBuf(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.BufferValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.BufferValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.BufferValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.BufferValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getBuf_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
};
/**
* optional bytes buf = 1;
* @return {!(string|Uint8Array)}
*/
proto.io.mishmash.common.rpc.BufferValue.prototype.getBuf = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes buf = 1;
* This is a type-conversion wrapper around `getBuf()`
* @return {string}
*/
proto.io.mishmash.common.rpc.BufferValue.prototype.getBuf_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getBuf()));
};
/**
* optional bytes buf = 1;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getBuf()`
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.BufferValue.prototype.getBuf_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getBuf()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.io.mishmash.common.rpc.BufferValue} returns this
*/
proto.io.mishmash.common.rpc.BufferValue.prototype.setBuf = function(value) {
return jspb.Message.setProto3BytesField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.PredefinedSet.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.PredefinedSet.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.PredefinedSet} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.PredefinedSet.toObject = function(includeInstance, msg) {
var f, obj = {
ident: jspb.Message.getFieldWithDefault(msg, 1, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.PredefinedSet}
*/
proto.io.mishmash.common.rpc.PredefinedSet.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.PredefinedSet;
return proto.io.mishmash.common.rpc.PredefinedSet.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.PredefinedSet} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.PredefinedSet}
*/
proto.io.mishmash.common.rpc.PredefinedSet.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!proto.io.mishmash.common.rpc.PredefinedSet.identifier} */ (reader.readEnum());
msg.setIdent(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.PredefinedSet.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.PredefinedSet.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.PredefinedSet} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.PredefinedSet.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getIdent();
if (f !== 0.0) {
writer.writeEnum(
1,
f
);
}
};
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.PredefinedSet.identifier = {
PARENT: 0,
CHILD: 1,
SIBLINGS: 2,
ANCESTORS: 3,
DESCENDANTS: 4
};
/**
* optional identifier ident = 1;
* @return {!proto.io.mishmash.common.rpc.PredefinedSet.identifier}
*/
proto.io.mishmash.common.rpc.PredefinedSet.prototype.getIdent = function() {
return /** @type {!proto.io.mishmash.common.rpc.PredefinedSet.identifier} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {!proto.io.mishmash.common.rpc.PredefinedSet.identifier} value
* @return {!proto.io.mishmash.common.rpc.PredefinedSet} returns this
*/
proto.io.mishmash.common.rpc.PredefinedSet.prototype.setIdent = function(value) {
return jspb.Message.setProto3EnumField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Transformation.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Transformation.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Transformation} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Transformation.toObject = function(includeInstance, msg) {
var f, obj = {
axis: (f = msg.getAxis()) && proto.io.mishmash.common.rpc.Transformation.Axis.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Transformation}
*/
proto.io.mishmash.common.rpc.Transformation.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Transformation;
return proto.io.mishmash.common.rpc.Transformation.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Transformation} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Transformation}
*/
proto.io.mishmash.common.rpc.Transformation.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.Transformation.Axis;
reader.readMessage(value,proto.io.mishmash.common.rpc.Transformation.Axis.deserializeBinaryFromReader);
msg.setAxis(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Transformation.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Transformation.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Transformation} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Transformation.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAxis();
if (f != null) {
writer.writeMessage(
1,
f,
proto.io.mishmash.common.rpc.Transformation.Axis.serializeBinaryToWriter
);
}
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Transformation.Axis.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Transformation.Axis.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Transformation.Axis} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Transformation.Axis.toObject = function(includeInstance, msg) {
var f, obj = {
left: (f = msg.getLeft()) && proto.io.mishmash.common.rpc.MishmashSetDescriptorList.toObject(includeInstance, f),
right: (f = msg.getRight()) && proto.io.mishmash.common.rpc.MishmashSetDescriptorList.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Transformation.Axis}
*/
proto.io.mishmash.common.rpc.Transformation.Axis.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Transformation.Axis;
return proto.io.mishmash.common.rpc.Transformation.Axis.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Transformation.Axis} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Transformation.Axis}
*/
proto.io.mishmash.common.rpc.Transformation.Axis.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.MishmashSetDescriptorList;
reader.readMessage(value,proto.io.mishmash.common.rpc.MishmashSetDescriptorList.deserializeBinaryFromReader);
msg.setLeft(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.MishmashSetDescriptorList;
reader.readMessage(value,proto.io.mishmash.common.rpc.MishmashSetDescriptorList.deserializeBinaryFromReader);
msg.setRight(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Transformation.Axis.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Transformation.Axis.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Transformation.Axis} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Transformation.Axis.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getLeft();
if (f != null) {
writer.writeMessage(
1,
f,
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.serializeBinaryToWriter
);
}
f = message.getRight();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.MishmashSetDescriptorList.serializeBinaryToWriter
);
}
};
/**
* optional MishmashSetDescriptorList left = 1;
* @return {?proto.io.mishmash.common.rpc.MishmashSetDescriptorList}
*/
proto.io.mishmash.common.rpc.Transformation.Axis.prototype.getLeft = function() {
return /** @type{?proto.io.mishmash.common.rpc.MishmashSetDescriptorList} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.MishmashSetDescriptorList, 1));
};
/**
* @param {?proto.io.mishmash.common.rpc.MishmashSetDescriptorList|undefined} value
* @return {!proto.io.mishmash.common.rpc.Transformation.Axis} returns this
*/
proto.io.mishmash.common.rpc.Transformation.Axis.prototype.setLeft = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Transformation.Axis} returns this
*/
proto.io.mishmash.common.rpc.Transformation.Axis.prototype.clearLeft = function() {
return this.setLeft(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Transformation.Axis.prototype.hasLeft = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional MishmashSetDescriptorList right = 2;
* @return {?proto.io.mishmash.common.rpc.MishmashSetDescriptorList}
*/
proto.io.mishmash.common.rpc.Transformation.Axis.prototype.getRight = function() {
return /** @type{?proto.io.mishmash.common.rpc.MishmashSetDescriptorList} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.MishmashSetDescriptorList, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.MishmashSetDescriptorList|undefined} value
* @return {!proto.io.mishmash.common.rpc.Transformation.Axis} returns this
*/
proto.io.mishmash.common.rpc.Transformation.Axis.prototype.setRight = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Transformation.Axis} returns this
*/
proto.io.mishmash.common.rpc.Transformation.Axis.prototype.clearRight = function() {
return this.setRight(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Transformation.Axis.prototype.hasRight = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional Axis axis = 1;
* @return {?proto.io.mishmash.common.rpc.Transformation.Axis}
*/
proto.io.mishmash.common.rpc.Transformation.prototype.getAxis = function() {
return /** @type{?proto.io.mishmash.common.rpc.Transformation.Axis} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Transformation.Axis, 1));
};
/**
* @param {?proto.io.mishmash.common.rpc.Transformation.Axis|undefined} value
* @return {!proto.io.mishmash.common.rpc.Transformation} returns this
*/
proto.io.mishmash.common.rpc.Transformation.prototype.setAxis = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Transformation} returns this
*/
proto.io.mishmash.common.rpc.Transformation.prototype.clearAxis = function() {
return this.setAxis(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Transformation.prototype.hasAxis = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.io.mishmash.common.rpc.PredefinedFunction.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.PredefinedFunction.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.PredefinedFunction.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.PredefinedFunction} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.PredefinedFunction.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
argumentsList: jspb.Message.toObjectList(msg.getArgumentsList(),
proto.io.mishmash.common.rpc.MishmashSetDescriptor.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.PredefinedFunction}
*/
proto.io.mishmash.common.rpc.PredefinedFunction.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.PredefinedFunction;
return proto.io.mishmash.common.rpc.PredefinedFunction.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.PredefinedFunction} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.PredefinedFunction}
*/
proto.io.mishmash.common.rpc.PredefinedFunction.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.MishmashSetDescriptor;
reader.readMessage(value,proto.io.mishmash.common.rpc.MishmashSetDescriptor.deserializeBinaryFromReader);
msg.addArguments(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.PredefinedFunction.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.PredefinedFunction.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.PredefinedFunction} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.PredefinedFunction.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getArgumentsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.io.mishmash.common.rpc.MishmashSetDescriptor.serializeBinaryToWriter
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.io.mishmash.common.rpc.PredefinedFunction.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.PredefinedFunction} returns this
*/
proto.io.mishmash.common.rpc.PredefinedFunction.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* repeated MishmashSetDescriptor arguments = 2;
* @return {!Array<!proto.io.mishmash.common.rpc.MishmashSetDescriptor>}
*/
proto.io.mishmash.common.rpc.PredefinedFunction.prototype.getArgumentsList = function() {
return /** @type{!Array<!proto.io.mishmash.common.rpc.MishmashSetDescriptor>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.io.mishmash.common.rpc.MishmashSetDescriptor, 2));
};
/**
* @param {!Array<!proto.io.mishmash.common.rpc.MishmashSetDescriptor>} value
* @return {!proto.io.mishmash.common.rpc.PredefinedFunction} returns this
*/
proto.io.mishmash.common.rpc.PredefinedFunction.prototype.setArgumentsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.io.mishmash.common.rpc.MishmashSetDescriptor=} opt_value
* @param {number=} opt_index
* @return {!proto.io.mishmash.common.rpc.MishmashSetDescriptor}
*/
proto.io.mishmash.common.rpc.PredefinedFunction.prototype.addArguments = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.io.mishmash.common.rpc.MishmashSetDescriptor, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.io.mishmash.common.rpc.PredefinedFunction} returns this
*/
proto.io.mishmash.common.rpc.PredefinedFunction.prototype.clearArgumentsList = function() {
return this.setArgumentsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.io.mishmash.common.rpc.LambdaFunction.repeatedFields_ = [5,6];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.LambdaFunction.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.LambdaFunction} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.LambdaFunction.toObject = function(includeInstance, msg) {
var f, obj = {
clientRuntime: jspb.Message.getFieldWithDefault(msg, 1, ""),
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
scopeId: jspb.Message.getFieldWithDefault(msg, 3, ""),
body: (f = msg.getBody()) && proto.io.mishmash.common.rpc.LambdaFunctionBody.toObject(includeInstance, f),
scopeList: jspb.Message.toObjectList(msg.getScopeList(),
proto.io.mishmash.common.rpc.LambdaFunctionClosure.toObject, includeInstance),
dependenciesList: jspb.Message.toObjectList(msg.getDependenciesList(),
proto.io.mishmash.common.rpc.LambdaFunction.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.LambdaFunction}
*/
proto.io.mishmash.common.rpc.LambdaFunction.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.LambdaFunction;
return proto.io.mishmash.common.rpc.LambdaFunction.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.LambdaFunction} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.LambdaFunction}
*/
proto.io.mishmash.common.rpc.LambdaFunction.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setClientRuntime(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setScopeId(value);
break;
case 4:
var value = new proto.io.mishmash.common.rpc.LambdaFunctionBody;
reader.readMessage(value,proto.io.mishmash.common.rpc.LambdaFunctionBody.deserializeBinaryFromReader);
msg.setBody(value);
break;
case 5:
var value = new proto.io.mishmash.common.rpc.LambdaFunctionClosure;
reader.readMessage(value,proto.io.mishmash.common.rpc.LambdaFunctionClosure.deserializeBinaryFromReader);
msg.addScope(value);
break;
case 6:
var value = new proto.io.mishmash.common.rpc.LambdaFunction;
reader.readMessage(value,proto.io.mishmash.common.rpc.LambdaFunction.deserializeBinaryFromReader);
msg.addDependencies(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.LambdaFunction.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.LambdaFunction} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.LambdaFunction.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getClientRuntime();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getScopeId();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getBody();
if (f != null) {
writer.writeMessage(
4,
f,
proto.io.mishmash.common.rpc.LambdaFunctionBody.serializeBinaryToWriter
);
}
f = message.getScopeList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
proto.io.mishmash.common.rpc.LambdaFunctionClosure.serializeBinaryToWriter
);
}
f = message.getDependenciesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
6,
f,
proto.io.mishmash.common.rpc.LambdaFunction.serializeBinaryToWriter
);
}
};
/**
* optional string client_runtime = 1;
* @return {string}
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.getClientRuntime = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunction} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.setClientRuntime = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string name = 2;
* @return {string}
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunction} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string scope_id = 3;
* @return {string}
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.getScopeId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunction} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.setScopeId = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional LambdaFunctionBody body = 4;
* @return {?proto.io.mishmash.common.rpc.LambdaFunctionBody}
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.getBody = function() {
return /** @type{?proto.io.mishmash.common.rpc.LambdaFunctionBody} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.LambdaFunctionBody, 4));
};
/**
* @param {?proto.io.mishmash.common.rpc.LambdaFunctionBody|undefined} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunction} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.setBody = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.LambdaFunction} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.clearBody = function() {
return this.setBody(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.hasBody = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* repeated LambdaFunctionClosure scope = 5;
* @return {!Array<!proto.io.mishmash.common.rpc.LambdaFunctionClosure>}
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.getScopeList = function() {
return /** @type{!Array<!proto.io.mishmash.common.rpc.LambdaFunctionClosure>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.io.mishmash.common.rpc.LambdaFunctionClosure, 5));
};
/**
* @param {!Array<!proto.io.mishmash.common.rpc.LambdaFunctionClosure>} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunction} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.setScopeList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 5, value);
};
/**
* @param {!proto.io.mishmash.common.rpc.LambdaFunctionClosure=} opt_value
* @param {number=} opt_index
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure}
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.addScope = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.io.mishmash.common.rpc.LambdaFunctionClosure, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.io.mishmash.common.rpc.LambdaFunction} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.clearScopeList = function() {
return this.setScopeList([]);
};
/**
* repeated LambdaFunction dependencies = 6;
* @return {!Array<!proto.io.mishmash.common.rpc.LambdaFunction>}
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.getDependenciesList = function() {
return /** @type{!Array<!proto.io.mishmash.common.rpc.LambdaFunction>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.io.mishmash.common.rpc.LambdaFunction, 6));
};
/**
* @param {!Array<!proto.io.mishmash.common.rpc.LambdaFunction>} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunction} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.setDependenciesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 6, value);
};
/**
* @param {!proto.io.mishmash.common.rpc.LambdaFunction=} opt_value
* @param {number=} opt_index
* @return {!proto.io.mishmash.common.rpc.LambdaFunction}
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.addDependencies = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.io.mishmash.common.rpc.LambdaFunction, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.io.mishmash.common.rpc.LambdaFunction} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunction.prototype.clearDependenciesList = function() {
return this.setDependenciesList([]);
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.oneofGroups_ = [[1]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.AltTypesCase = {
ALT_TYPES_NOT_SET: 0,
SOURCE: 1
};
/**
* @return {proto.io.mishmash.common.rpc.LambdaFunctionBody.AltTypesCase}
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.prototype.getAltTypesCase = function() {
return /** @type {proto.io.mishmash.common.rpc.LambdaFunctionBody.AltTypesCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.LambdaFunctionBody.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.LambdaFunctionBody.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.LambdaFunctionBody} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.toObject = function(includeInstance, msg) {
var f, obj = {
source: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionBody}
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.LambdaFunctionBody;
return proto.io.mishmash.common.rpc.LambdaFunctionBody.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.LambdaFunctionBody} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionBody}
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setSource(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.LambdaFunctionBody.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.LambdaFunctionBody} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {string} */ (jspb.Message.getField(message, 1));
if (f != null) {
writer.writeString(
1,
f
);
}
};
/**
* optional string source = 1;
* @return {string}
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.prototype.getSource = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionBody} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.prototype.setSource = function(value) {
return jspb.Message.setOneofField(this, 1, proto.io.mishmash.common.rpc.LambdaFunctionBody.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionBody} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.prototype.clearSource = function() {
return jspb.Message.setOneofField(this, 1, proto.io.mishmash.common.rpc.LambdaFunctionBody.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.LambdaFunctionBody.prototype.hasSource = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.oneofGroups_ = [[2,3,4,5,6,7]];
/**
* @enum {number}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.AltTypesCase = {
ALT_TYPES_NOT_SET: 0,
CONSTANT: 2,
MISHMASH: 3,
COLLECTION: 4,
STREAMING_ITERATOR: 5,
STREAMING_MAP: 6,
STREAMING_OBJECT: 7
};
/**
* @return {proto.io.mishmash.common.rpc.LambdaFunctionClosure.AltTypesCase}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.getAltTypesCase = function() {
return /** @type {proto.io.mishmash.common.rpc.LambdaFunctionClosure.AltTypesCase} */(jspb.Message.computeOneofCase(this, proto.io.mishmash.common.rpc.LambdaFunctionClosure.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.LambdaFunctionClosure.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.toObject = function(includeInstance, msg) {
var f, obj = {
identifier: jspb.Message.getFieldWithDefault(msg, 1, ""),
constant: (f = msg.getConstant()) && proto.io.mishmash.common.rpc.Value.toObject(includeInstance, f),
mishmash: (f = msg.getMishmash()) && proto.io.mishmash.common.rpc.MishmashSetDescriptor.toObject(includeInstance, f),
collection: (f = msg.getCollection()) && proto.io.mishmash.common.rpc.Collection.toObject(includeInstance, f),
streamingIterator: (f = msg.getStreamingIterator()) && proto.io.mishmash.common.rpc.ClientCallable.toObject(includeInstance, f),
streamingMap: (f = msg.getStreamingMap()) && proto.io.mishmash.common.rpc.ClientCallable.toObject(includeInstance, f),
streamingObject: (f = msg.getStreamingObject()) && proto.io.mishmash.common.rpc.ClientCallable.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.LambdaFunctionClosure;
return proto.io.mishmash.common.rpc.LambdaFunctionClosure.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setIdentifier(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.Value;
reader.readMessage(value,proto.io.mishmash.common.rpc.Value.deserializeBinaryFromReader);
msg.setConstant(value);
break;
case 3:
var value = new proto.io.mishmash.common.rpc.MishmashSetDescriptor;
reader.readMessage(value,proto.io.mishmash.common.rpc.MishmashSetDescriptor.deserializeBinaryFromReader);
msg.setMishmash(value);
break;
case 4:
var value = new proto.io.mishmash.common.rpc.Collection;
reader.readMessage(value,proto.io.mishmash.common.rpc.Collection.deserializeBinaryFromReader);
msg.setCollection(value);
break;
case 5:
var value = new proto.io.mishmash.common.rpc.ClientCallable;
reader.readMessage(value,proto.io.mishmash.common.rpc.ClientCallable.deserializeBinaryFromReader);
msg.setStreamingIterator(value);
break;
case 6:
var value = new proto.io.mishmash.common.rpc.ClientCallable;
reader.readMessage(value,proto.io.mishmash.common.rpc.ClientCallable.deserializeBinaryFromReader);
msg.setStreamingMap(value);
break;
case 7:
var value = new proto.io.mishmash.common.rpc.ClientCallable;
reader.readMessage(value,proto.io.mishmash.common.rpc.ClientCallable.deserializeBinaryFromReader);
msg.setStreamingObject(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.LambdaFunctionClosure.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getIdentifier();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getConstant();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.Value.serializeBinaryToWriter
);
}
f = message.getMishmash();
if (f != null) {
writer.writeMessage(
3,
f,
proto.io.mishmash.common.rpc.MishmashSetDescriptor.serializeBinaryToWriter
);
}
f = message.getCollection();
if (f != null) {
writer.writeMessage(
4,
f,
proto.io.mishmash.common.rpc.Collection.serializeBinaryToWriter
);
}
f = message.getStreamingIterator();
if (f != null) {
writer.writeMessage(
5,
f,
proto.io.mishmash.common.rpc.ClientCallable.serializeBinaryToWriter
);
}
f = message.getStreamingMap();
if (f != null) {
writer.writeMessage(
6,
f,
proto.io.mishmash.common.rpc.ClientCallable.serializeBinaryToWriter
);
}
f = message.getStreamingObject();
if (f != null) {
writer.writeMessage(
7,
f,
proto.io.mishmash.common.rpc.ClientCallable.serializeBinaryToWriter
);
}
};
/**
* optional string identifier = 1;
* @return {string}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.getIdentifier = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.setIdentifier = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional Value constant = 2;
* @return {?proto.io.mishmash.common.rpc.Value}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.getConstant = function() {
return /** @type{?proto.io.mishmash.common.rpc.Value} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Value, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.Value|undefined} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.setConstant = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.io.mishmash.common.rpc.LambdaFunctionClosure.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.clearConstant = function() {
return this.setConstant(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.hasConstant = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional MishmashSetDescriptor mishmash = 3;
* @return {?proto.io.mishmash.common.rpc.MishmashSetDescriptor}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.getMishmash = function() {
return /** @type{?proto.io.mishmash.common.rpc.MishmashSetDescriptor} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.MishmashSetDescriptor, 3));
};
/**
* @param {?proto.io.mishmash.common.rpc.MishmashSetDescriptor|undefined} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.setMishmash = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.io.mishmash.common.rpc.LambdaFunctionClosure.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.clearMishmash = function() {
return this.setMishmash(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.hasMishmash = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional Collection collection = 4;
* @return {?proto.io.mishmash.common.rpc.Collection}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.getCollection = function() {
return /** @type{?proto.io.mishmash.common.rpc.Collection} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Collection, 4));
};
/**
* @param {?proto.io.mishmash.common.rpc.Collection|undefined} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.setCollection = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.io.mishmash.common.rpc.LambdaFunctionClosure.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.clearCollection = function() {
return this.setCollection(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.hasCollection = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional ClientCallable streaming_iterator = 5;
* @return {?proto.io.mishmash.common.rpc.ClientCallable}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.getStreamingIterator = function() {
return /** @type{?proto.io.mishmash.common.rpc.ClientCallable} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.ClientCallable, 5));
};
/**
* @param {?proto.io.mishmash.common.rpc.ClientCallable|undefined} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.setStreamingIterator = function(value) {
return jspb.Message.setOneofWrapperField(this, 5, proto.io.mishmash.common.rpc.LambdaFunctionClosure.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.clearStreamingIterator = function() {
return this.setStreamingIterator(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.hasStreamingIterator = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional ClientCallable streaming_map = 6;
* @return {?proto.io.mishmash.common.rpc.ClientCallable}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.getStreamingMap = function() {
return /** @type{?proto.io.mishmash.common.rpc.ClientCallable} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.ClientCallable, 6));
};
/**
* @param {?proto.io.mishmash.common.rpc.ClientCallable|undefined} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.setStreamingMap = function(value) {
return jspb.Message.setOneofWrapperField(this, 6, proto.io.mishmash.common.rpc.LambdaFunctionClosure.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.clearStreamingMap = function() {
return this.setStreamingMap(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.hasStreamingMap = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional ClientCallable streaming_object = 7;
* @return {?proto.io.mishmash.common.rpc.ClientCallable}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.getStreamingObject = function() {
return /** @type{?proto.io.mishmash.common.rpc.ClientCallable} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.ClientCallable, 7));
};
/**
* @param {?proto.io.mishmash.common.rpc.ClientCallable|undefined} value
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.setStreamingObject = function(value) {
return jspb.Message.setOneofWrapperField(this, 7, proto.io.mishmash.common.rpc.LambdaFunctionClosure.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.LambdaFunctionClosure} returns this
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.clearStreamingObject = function() {
return this.setStreamingObject(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.LambdaFunctionClosure.prototype.hasStreamingObject = function() {
return jspb.Message.getField(this, 7) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Collection.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Collection.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Collection} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Collection.toObject = function(includeInstance, msg) {
var f, obj = {
entry: (f = msg.getEntry()) && proto.io.mishmash.common.rpc.Collection.Entry.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Collection}
*/
proto.io.mishmash.common.rpc.Collection.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Collection;
return proto.io.mishmash.common.rpc.Collection.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Collection} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Collection}
*/
proto.io.mishmash.common.rpc.Collection.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.Collection.Entry;
reader.readMessage(value,proto.io.mishmash.common.rpc.Collection.Entry.deserializeBinaryFromReader);
msg.setEntry(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Collection.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Collection.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Collection} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Collection.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEntry();
if (f != null) {
writer.writeMessage(
1,
f,
proto.io.mishmash.common.rpc.Collection.Entry.serializeBinaryToWriter
);
}
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.Collection.Entry.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.Collection.Entry.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.Collection.Entry} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Collection.Entry.toObject = function(includeInstance, msg) {
var f, obj = {
key: (f = msg.getKey()) && proto.io.mishmash.common.rpc.Value.toObject(includeInstance, f),
value: (f = msg.getValue()) && proto.io.mishmash.common.rpc.Value.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.Collection.Entry}
*/
proto.io.mishmash.common.rpc.Collection.Entry.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.Collection.Entry;
return proto.io.mishmash.common.rpc.Collection.Entry.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.Collection.Entry} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.Collection.Entry}
*/
proto.io.mishmash.common.rpc.Collection.Entry.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.io.mishmash.common.rpc.Value;
reader.readMessage(value,proto.io.mishmash.common.rpc.Value.deserializeBinaryFromReader);
msg.setKey(value);
break;
case 2:
var value = new proto.io.mishmash.common.rpc.Value;
reader.readMessage(value,proto.io.mishmash.common.rpc.Value.deserializeBinaryFromReader);
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.Collection.Entry.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.Collection.Entry.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.Collection.Entry} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.Collection.Entry.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getKey();
if (f != null) {
writer.writeMessage(
1,
f,
proto.io.mishmash.common.rpc.Value.serializeBinaryToWriter
);
}
f = message.getValue();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.mishmash.common.rpc.Value.serializeBinaryToWriter
);
}
};
/**
* optional Value key = 1;
* @return {?proto.io.mishmash.common.rpc.Value}
*/
proto.io.mishmash.common.rpc.Collection.Entry.prototype.getKey = function() {
return /** @type{?proto.io.mishmash.common.rpc.Value} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Value, 1));
};
/**
* @param {?proto.io.mishmash.common.rpc.Value|undefined} value
* @return {!proto.io.mishmash.common.rpc.Collection.Entry} returns this
*/
proto.io.mishmash.common.rpc.Collection.Entry.prototype.setKey = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Collection.Entry} returns this
*/
proto.io.mishmash.common.rpc.Collection.Entry.prototype.clearKey = function() {
return this.setKey(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Collection.Entry.prototype.hasKey = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Value value = 2;
* @return {?proto.io.mishmash.common.rpc.Value}
*/
proto.io.mishmash.common.rpc.Collection.Entry.prototype.getValue = function() {
return /** @type{?proto.io.mishmash.common.rpc.Value} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Value, 2));
};
/**
* @param {?proto.io.mishmash.common.rpc.Value|undefined} value
* @return {!proto.io.mishmash.common.rpc.Collection.Entry} returns this
*/
proto.io.mishmash.common.rpc.Collection.Entry.prototype.setValue = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Collection.Entry} returns this
*/
proto.io.mishmash.common.rpc.Collection.Entry.prototype.clearValue = function() {
return this.setValue(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Collection.Entry.prototype.hasValue = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional Entry entry = 1;
* @return {?proto.io.mishmash.common.rpc.Collection.Entry}
*/
proto.io.mishmash.common.rpc.Collection.prototype.getEntry = function() {
return /** @type{?proto.io.mishmash.common.rpc.Collection.Entry} */ (
jspb.Message.getWrapperField(this, proto.io.mishmash.common.rpc.Collection.Entry, 1));
};
/**
* @param {?proto.io.mishmash.common.rpc.Collection.Entry|undefined} value
* @return {!proto.io.mishmash.common.rpc.Collection} returns this
*/
proto.io.mishmash.common.rpc.Collection.prototype.setEntry = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.mishmash.common.rpc.Collection} returns this
*/
proto.io.mishmash.common.rpc.Collection.prototype.clearEntry = function() {
return this.setEntry(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.mishmash.common.rpc.Collection.prototype.hasEntry = function() {
return jspb.Message.getField(this, 1) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.mishmash.common.rpc.ClientCallable.prototype.toObject = function(opt_includeInstance) {
return proto.io.mishmash.common.rpc.ClientCallable.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.mishmash.common.rpc.ClientCallable} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.ClientCallable.toObject = function(includeInstance, msg) {
var f, obj = {
identifier: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.mishmash.common.rpc.ClientCallable}
*/
proto.io.mishmash.common.rpc.ClientCallable.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.mishmash.common.rpc.ClientCallable;
return proto.io.mishmash.common.rpc.ClientCallable.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.mishmash.common.rpc.ClientCallable} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.mishmash.common.rpc.ClientCallable}
*/
proto.io.mishmash.common.rpc.ClientCallable.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setIdentifier(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.mishmash.common.rpc.ClientCallable.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.mishmash.common.rpc.ClientCallable.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.mishmash.common.rpc.ClientCallable} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.mishmash.common.rpc.ClientCallable.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getIdentifier();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string identifier = 1;
* @return {string}
*/
proto.io.mishmash.common.rpc.ClientCallable.prototype.getIdentifier = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.mishmash.common.rpc.ClientCallable} returns this
*/
proto.io.mishmash.common.rpc.ClientCallable.prototype.setIdentifier = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
goog.object.extend(exports, proto.io.mishmash.common.rpc);