@toitware/api
Version:
Toitware API library
1,516 lines (1,379 loc) • 194 kB
JavaScript
// source: toit/api/program.proto
/**
* @fileoverview
* @enhanceable
* @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!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var toit_model_program_pb = require('../../toit/model/program_pb.js');
goog.object.extend(proto, toit_model_program_pb);
goog.exportSymbol('proto.toit.api.AnalyzeRequest', null, global);
goog.exportSymbol('proto.toit.api.AnalyzeRequest.ProgramCase', null, global);
goog.exportSymbol('proto.toit.api.AnalyzeRequest.Source', null, global);
goog.exportSymbol('proto.toit.api.AnalyzeResponse', null, global);
goog.exportSymbol('proto.toit.api.AnalyzeResponse.Features', null, global);
goog.exportSymbol('proto.toit.api.CompileRequest', null, global);
goog.exportSymbol('proto.toit.api.CompileResponse', null, global);
goog.exportSymbol('proto.toit.api.DecodeSystemMessageRequest', null, global);
goog.exportSymbol('proto.toit.api.DecodeSystemMessageResponse', null, global);
goog.exportSymbol('proto.toit.api.DeviceRunRequest', null, global);
goog.exportSymbol('proto.toit.api.DeviceRunResponse', null, global);
goog.exportSymbol('proto.toit.api.DeviceRunResponse.ResponseCase', null, global);
goog.exportSymbol('proto.toit.api.GetCompilationRequest', null, global);
goog.exportSymbol('proto.toit.api.GetCompilationResponse', null, global);
goog.exportSymbol('proto.toit.api.GetProgramRequest', null, global);
goog.exportSymbol('proto.toit.api.GetProgramResponse', null, global);
goog.exportSymbol('proto.toit.api.LookupProgramsRequest', null, global);
goog.exportSymbol('proto.toit.api.LookupProgramsResponse', null, global);
goog.exportSymbol('proto.toit.api.LspRequest', null, global);
goog.exportSymbol('proto.toit.api.LspResponse', null, global);
goog.exportSymbol('proto.toit.api.ProgramSource', null, global);
goog.exportSymbol('proto.toit.api.ProgramSource.Bundle', null, global);
goog.exportSymbol('proto.toit.api.ProgramSource.Files', null, global);
goog.exportSymbol('proto.toit.api.ProgramSource.SourceCase', null, global);
goog.exportSymbol('proto.toit.api.RunInput', null, global);
goog.exportSymbol('proto.toit.api.RunRequest', null, global);
goog.exportSymbol('proto.toit.api.RunRequest.PayloadCase', null, global);
goog.exportSymbol('proto.toit.api.RunResponse', null, global);
goog.exportSymbol('proto.toit.api.RunResponse.ResponseCase', null, global);
goog.exportSymbol('proto.toit.api.RunStart', null, global);
goog.exportSymbol('proto.toit.api.RunStartRequest', null, global);
goog.exportSymbol('proto.toit.api.SyntaxAnalyzeRequest', null, global);
goog.exportSymbol('proto.toit.api.SyntaxAnalyzeResponse', 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.toit.api.ProgramSource = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.toit.api.ProgramSource.oneofGroups_);
};
goog.inherits(proto.toit.api.ProgramSource, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.ProgramSource.displayName = 'proto.toit.api.ProgramSource';
}
/**
* 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.toit.api.ProgramSource.Files = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.ProgramSource.Files, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.ProgramSource.Files.displayName = 'proto.toit.api.ProgramSource.Files';
}
/**
* 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.toit.api.ProgramSource.Bundle = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.ProgramSource.Bundle, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.ProgramSource.Bundle.displayName = 'proto.toit.api.ProgramSource.Bundle';
}
/**
* 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.toit.api.CompileRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.CompileRequest.repeatedFields_, null);
};
goog.inherits(proto.toit.api.CompileRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.CompileRequest.displayName = 'proto.toit.api.CompileRequest';
}
/**
* 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.toit.api.CompileResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.CompileResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.CompileResponse.displayName = 'proto.toit.api.CompileResponse';
}
/**
* 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.toit.api.SyntaxAnalyzeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.SyntaxAnalyzeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.SyntaxAnalyzeRequest.displayName = 'proto.toit.api.SyntaxAnalyzeRequest';
}
/**
* 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.toit.api.SyntaxAnalyzeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.SyntaxAnalyzeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.SyntaxAnalyzeResponse.displayName = 'proto.toit.api.SyntaxAnalyzeResponse';
}
/**
* 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.toit.api.AnalyzeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.toit.api.AnalyzeRequest.oneofGroups_);
};
goog.inherits(proto.toit.api.AnalyzeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.AnalyzeRequest.displayName = 'proto.toit.api.AnalyzeRequest';
}
/**
* 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.toit.api.AnalyzeRequest.Source = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.AnalyzeRequest.Source.repeatedFields_, null);
};
goog.inherits(proto.toit.api.AnalyzeRequest.Source, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.AnalyzeRequest.Source.displayName = 'proto.toit.api.AnalyzeRequest.Source';
}
/**
* 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.toit.api.AnalyzeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.AnalyzeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.AnalyzeResponse.displayName = 'proto.toit.api.AnalyzeResponse';
}
/**
* 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.toit.api.AnalyzeResponse.Features = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.AnalyzeResponse.Features.repeatedFields_, null);
};
goog.inherits(proto.toit.api.AnalyzeResponse.Features, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.AnalyzeResponse.Features.displayName = 'proto.toit.api.AnalyzeResponse.Features';
}
/**
* 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.toit.api.LspRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.LspRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.LspRequest.displayName = 'proto.toit.api.LspRequest';
}
/**
* 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.toit.api.LspResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.LspResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.LspResponse.displayName = 'proto.toit.api.LspResponse';
}
/**
* 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.toit.api.GetProgramRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.GetProgramRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.GetProgramRequest.displayName = 'proto.toit.api.GetProgramRequest';
}
/**
* 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.toit.api.GetProgramResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.GetProgramResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.GetProgramResponse.displayName = 'proto.toit.api.GetProgramResponse';
}
/**
* 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.toit.api.GetCompilationRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.GetCompilationRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.GetCompilationRequest.displayName = 'proto.toit.api.GetCompilationRequest';
}
/**
* 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.toit.api.GetCompilationResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.GetCompilationResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.GetCompilationResponse.displayName = 'proto.toit.api.GetCompilationResponse';
}
/**
* 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.toit.api.LookupProgramsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.LookupProgramsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.LookupProgramsRequest.displayName = 'proto.toit.api.LookupProgramsRequest';
}
/**
* 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.toit.api.LookupProgramsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.LookupProgramsResponse.repeatedFields_, null);
};
goog.inherits(proto.toit.api.LookupProgramsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.LookupProgramsResponse.displayName = 'proto.toit.api.LookupProgramsResponse';
}
/**
* 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.toit.api.RunRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.toit.api.RunRequest.oneofGroups_);
};
goog.inherits(proto.toit.api.RunRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.RunRequest.displayName = 'proto.toit.api.RunRequest';
}
/**
* 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.toit.api.RunStart = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.RunStart.repeatedFields_, null);
};
goog.inherits(proto.toit.api.RunStart, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.RunStart.displayName = 'proto.toit.api.RunStart';
}
/**
* 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.toit.api.RunInput = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.RunInput, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.RunInput.displayName = 'proto.toit.api.RunInput';
}
/**
* 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.toit.api.RunStartRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.RunStartRequest.repeatedFields_, null);
};
goog.inherits(proto.toit.api.RunStartRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.RunStartRequest.displayName = 'proto.toit.api.RunStartRequest';
}
/**
* 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.toit.api.RunResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.toit.api.RunResponse.oneofGroups_);
};
goog.inherits(proto.toit.api.RunResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.RunResponse.displayName = 'proto.toit.api.RunResponse';
}
/**
* 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.toit.api.DeviceRunRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.DeviceRunRequest.repeatedFields_, null);
};
goog.inherits(proto.toit.api.DeviceRunRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.DeviceRunRequest.displayName = 'proto.toit.api.DeviceRunRequest';
}
/**
* 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.toit.api.DeviceRunResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.toit.api.DeviceRunResponse.oneofGroups_);
};
goog.inherits(proto.toit.api.DeviceRunResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.DeviceRunResponse.displayName = 'proto.toit.api.DeviceRunResponse';
}
/**
* 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.toit.api.DecodeSystemMessageRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.DecodeSystemMessageRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.DecodeSystemMessageRequest.displayName = 'proto.toit.api.DecodeSystemMessageRequest';
}
/**
* 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.toit.api.DecodeSystemMessageResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.toit.api.DecodeSystemMessageResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.toit.api.DecodeSystemMessageResponse.displayName = 'proto.toit.api.DecodeSystemMessageResponse';
}
/**
* 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.toit.api.ProgramSource.oneofGroups_ = [[1,2]];
/**
* @enum {number}
*/
proto.toit.api.ProgramSource.SourceCase = {
SOURCE_NOT_SET: 0,
FILES: 1,
BUNDLE: 2
};
/**
* @return {proto.toit.api.ProgramSource.SourceCase}
*/
proto.toit.api.ProgramSource.prototype.getSourceCase = function() {
return /** @type {proto.toit.api.ProgramSource.SourceCase} */(jspb.Message.computeOneofCase(this, proto.toit.api.ProgramSource.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.toit.api.ProgramSource.prototype.toObject = function(opt_includeInstance) {
return proto.toit.api.ProgramSource.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.toit.api.ProgramSource} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.toit.api.ProgramSource.toObject = function(includeInstance, msg) {
var f, obj = {
files: (f = msg.getFiles()) && proto.toit.api.ProgramSource.Files.toObject(includeInstance, f),
bundle: (f = msg.getBundle()) && proto.toit.api.ProgramSource.Bundle.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.toit.api.ProgramSource}
*/
proto.toit.api.ProgramSource.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.toit.api.ProgramSource;
return proto.toit.api.ProgramSource.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.toit.api.ProgramSource} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.toit.api.ProgramSource}
*/
proto.toit.api.ProgramSource.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.toit.api.ProgramSource.Files;
reader.readMessage(value,proto.toit.api.ProgramSource.Files.deserializeBinaryFromReader);
msg.setFiles(value);
break;
case 2:
var value = new proto.toit.api.ProgramSource.Bundle;
reader.readMessage(value,proto.toit.api.ProgramSource.Bundle.deserializeBinaryFromReader);
msg.setBundle(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.toit.api.ProgramSource.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.toit.api.ProgramSource.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.toit.api.ProgramSource} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.toit.api.ProgramSource.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getFiles();
if (f != null) {
writer.writeMessage(
1,
f,
proto.toit.api.ProgramSource.Files.serializeBinaryToWriter
);
}
f = message.getBundle();
if (f != null) {
writer.writeMessage(
2,
f,
proto.toit.api.ProgramSource.Bundle.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.toit.api.ProgramSource.Files.prototype.toObject = function(opt_includeInstance) {
return proto.toit.api.ProgramSource.Files.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.toit.api.ProgramSource.Files} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.toit.api.ProgramSource.Files.toObject = function(includeInstance, msg) {
var f, obj = {
entryFilename: jspb.Message.getFieldWithDefault(msg, 1, ""),
filesMap: (f = msg.getFilesMap()) ? f.toObject(includeInstance, undefined) : []
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.toit.api.ProgramSource.Files}
*/
proto.toit.api.ProgramSource.Files.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.toit.api.ProgramSource.Files;
return proto.toit.api.ProgramSource.Files.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.toit.api.ProgramSource.Files} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.toit.api.ProgramSource.Files}
*/
proto.toit.api.ProgramSource.Files.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.setEntryFilename(value);
break;
case 2:
var value = msg.getFilesMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
});
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.toit.api.ProgramSource.Files.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.toit.api.ProgramSource.Files.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.toit.api.ProgramSource.Files} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.toit.api.ProgramSource.Files.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEntryFilename();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getFilesMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
}
};
/**
* optional string entry_filename = 1;
* @return {string}
*/
proto.toit.api.ProgramSource.Files.prototype.getEntryFilename = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.toit.api.ProgramSource.Files} returns this
*/
proto.toit.api.ProgramSource.Files.prototype.setEntryFilename = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* map<string, bytes> files = 2;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!(string|Uint8Array)>}
*/
proto.toit.api.ProgramSource.Files.prototype.getFilesMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
jspb.Message.getMapField(this, 2, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.toit.api.ProgramSource.Files} returns this
*/
proto.toit.api.ProgramSource.Files.prototype.clearFilesMap = function() {
this.getFilesMap().clear();
return this;};
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.toit.api.ProgramSource.Bundle.prototype.toObject = function(opt_includeInstance) {
return proto.toit.api.ProgramSource.Bundle.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.toit.api.ProgramSource.Bundle} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.toit.api.ProgramSource.Bundle.toObject = function(includeInstance, msg) {
var f, obj = {
bundle: msg.getBundle_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.toit.api.ProgramSource.Bundle}
*/
proto.toit.api.ProgramSource.Bundle.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.toit.api.ProgramSource.Bundle;
return proto.toit.api.ProgramSource.Bundle.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.toit.api.ProgramSource.Bundle} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.toit.api.ProgramSource.Bundle}
*/
proto.toit.api.ProgramSource.Bundle.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.setBundle(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.toit.api.ProgramSource.Bundle.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.toit.api.ProgramSource.Bundle.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.toit.api.ProgramSource.Bundle} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.toit.api.ProgramSource.Bundle.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getBundle_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
};
/**
* optional bytes bundle = 1;
* @return {!(string|Uint8Array)}
*/
proto.toit.api.ProgramSource.Bundle.prototype.getBundle = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes bundle = 1;
* This is a type-conversion wrapper around `getBundle()`
* @return {string}
*/
proto.toit.api.ProgramSource.Bundle.prototype.getBundle_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getBundle()));
};
/**
* optional bytes bundle = 1;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getBundle()`
* @return {!Uint8Array}
*/
proto.toit.api.ProgramSource.Bundle.prototype.getBundle_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getBundle()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.toit.api.ProgramSource.Bundle} returns this
*/
proto.toit.api.ProgramSource.Bundle.prototype.setBundle = function(value) {
return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
* optional Files files = 1;
* @return {?proto.toit.api.ProgramSource.Files}
*/
proto.toit.api.ProgramSource.prototype.getFiles = function() {
return /** @type{?proto.toit.api.ProgramSource.Files} */ (
jspb.Message.getWrapperField(this, proto.toit.api.ProgramSource.Files, 1));
};
/**
* @param {?proto.toit.api.ProgramSource.Files|undefined} value
* @return {!proto.toit.api.ProgramSource} returns this
*/
proto.toit.api.ProgramSource.prototype.setFiles = function(value) {
return jspb.Message.setOneofWrapperField(this, 1, proto.toit.api.ProgramSource.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.toit.api.ProgramSource} returns this
*/
proto.toit.api.ProgramSource.prototype.clearFiles = function() {
return this.setFiles(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.toit.api.ProgramSource.prototype.hasFiles = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Bundle bundle = 2;
* @return {?proto.toit.api.ProgramSource.Bundle}
*/
proto.toit.api.ProgramSource.prototype.getBundle = function() {
return /** @type{?proto.toit.api.ProgramSource.Bundle} */ (
jspb.Message.getWrapperField(this, proto.toit.api.ProgramSource.Bundle, 2));
};
/**
* @param {?proto.toit.api.ProgramSource.Bundle|undefined} value
* @return {!proto.toit.api.ProgramSource} returns this
*/
proto.toit.api.ProgramSource.prototype.setBundle = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.toit.api.ProgramSource.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.toit.api.ProgramSource} returns this
*/
proto.toit.api.ProgramSource.prototype.clearBundle = function() {
return this.setBundle(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.toit.api.ProgramSource.prototype.hasBundle = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.toit.api.CompileRequest.repeatedFields_ = [5];
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.toit.api.CompileRequest.prototype.toObject = function(opt_includeInstance) {
return proto.toit.api.CompileRequest.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.toit.api.CompileRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.toit.api.CompileRequest.toObject = function(includeInstance, msg) {
var f, obj = {
programName: jspb.Message.getFieldWithDefault(msg, 1, ""),
sdkName: jspb.Message.getFieldWithDefault(msg, 2, ""),
entryFilename: jspb.Message.getFieldWithDefault(msg, 3, ""),
sourcesMap: (f = msg.getSourcesMap()) ? f.toObject(includeInstance, undefined) : [],
argsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
source: (f = msg.getSource()) && proto.toit.api.ProgramSource.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.toit.api.CompileRequest}
*/
proto.toit.api.CompileRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.toit.api.CompileRequest;
return proto.toit.api.CompileRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.toit.api.CompileRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.toit.api.CompileRequest}
*/
proto.toit.api.CompileRequest.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.setProgramName(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSdkName(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setEntryFilename(value);
break;
case 4:
var value = msg.getSourcesMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
});
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.addArgs(value);
break;
case 6:
var value = new proto.toit.api.ProgramSource;
reader.readMessage(value,proto.toit.api.ProgramSource.deserializeBinaryFromReader);
msg.setSource(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.toit.api.CompileRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.toit.api.CompileRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.toit.api.CompileRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.toit.api.CompileRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getProgramName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getSdkName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getEntryFilename();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getSourcesMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
}
f = message.getArgsList();
if (f.length > 0) {
writer.writeRepeatedString(
5,
f
);
}
f = message.getSource();
if (f != null) {
writer.writeMessage(
6,
f,
proto.toit.api.ProgramSource.serializeBinaryToWriter
);
}
};
/**
* optional string program_name = 1;
* @return {string}
*/
proto.toit.api.CompileRequest.prototype.getProgramName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.toit.api.CompileRequest} returns this
*/
proto.toit.api.CompileRequest.prototype.setProgramName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string sdk_name = 2;
* @return {string}
*/
proto.toit.api.CompileRequest.prototype.getSdkName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.toit.api.CompileRequest} returns this
*/
proto.toit.api.CompileRequest.prototype.setSdkName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string entry_filename = 3;
* @return {string}
*/
proto.toit.api.CompileRequest.prototype.getEntryFilename = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.toit.api.CompileRequest} returns this
*/
proto.toit.api.CompileRequest.prototype.setEntryFilename = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* map<string, bytes> sources = 4;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!(string|Uint8Array)>}
*/
proto.toit.api.CompileRequest.prototype.getSourcesMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.toit.api.CompileRequest} returns this
*/
proto.toit.api.CompileRequest.prototype.clearSourcesMap = function() {
this.getSourcesMap().clear();
return this;};
/**
* repeated string args = 5;
* @return {!Array<string>}
*/
proto.toit.api.CompileRequest.prototype.getArgsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
};
/**
* @param {!Array<string>} value
* @return {!proto.toit.api.CompileRequest} returns this
*/
proto.toit.api.CompileRequest.prototype.setArgsList = function(value) {
return jspb.Message.setField(this, 5, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.toit.api.CompileRequest} returns this
*/
proto.toit.api.CompileRequest.prototype.addArgs = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.toit.api.CompileRequest} returns this
*/
proto.toit.api.CompileRequest.prototype.clearArgsList = function() {
return this.setArgsList([]);
};
/**
* optional ProgramSource source = 6;
* @return {?proto.toit.api.ProgramSource}
*/
proto.toit.api.CompileRequest.prototype.getSource = function() {
return /** @type{?proto.toit.api.ProgramSource} */ (
jspb.Message.getWrapperField(this, proto.toit.api.ProgramSource, 6));
};
/**
* @param {?proto.toit.api.ProgramSource|undefined} value
* @return {!proto.toit.api.CompileRequest} returns this
*/
proto.toit.api.CompileRequest.prototype.setSource = function(value) {
return jspb.Message.setWrapperField(this, 6, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.toit.api.CompileRequest} returns this
*/
proto.toit.api.CompileRequest.prototype.clearSource = function() {
return this.setSource(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.toit.api.CompileRequest.prototype.hasSource = function() {
return jspb.Message.getField(this, 6) != null;
};
if (jspb.Message.GENERATE