text: /**
   * @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")();
  
  goog.exportSymbol("proto.Input", null, global);
  goog.exportSymbol("proto.WorkRequest", null, global);
  goog.exportSymbol("proto.WorkResponse", 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.Input = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.Input, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.Input.displayName = "proto.Input";
  }
  /**
   * 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.WorkRequest = function (opt_data) {
    jspb.Message.initialize(
      this,
      opt_data,
      0,
      -1,
      proto.WorkRequest.repeatedFields_,
      null
    );
  };
  goog.inherits(proto.WorkRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.WorkRequest.displayName = "proto.WorkRequest";
  }
  /**
   * 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.WorkResponse = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.WorkResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.WorkResponse.displayName = "proto.WorkResponse";
  }
  
  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.Input.prototype.toObject = function (opt_includeInstance) {
      return proto.Input.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.Input} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.Input.toObject = function (includeInstance, msg) {
      var f,
        obj = {
          path: jspb.Message.getFieldWithDefault(msg, 1, ""),
          digest: msg.getDigest_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.Input}
   */
  proto.Input.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.Input();
    return proto.Input.deserializeBinaryFromReader(msg, reader);
  };
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.Input} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.Input}
   */
  proto.Input.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.setPath(value);
          break;
        case 2:
          var value = /** @type {!Uint8Array} */ (reader.readBytes());
          msg.setDigest(value);
          break;
        default:
          reader.skipField();
          break;
      }
    }
    return msg;
  };
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.Input.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.Input.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.Input} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.Input.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getPath();
    if (f.length > 0) {
      writer.writeString(1, f);
    }
    f = message.getDigest_asU8();
    if (f.length > 0) {
      writer.writeBytes(2, f);
    }
  };
  
  /**
   * optional string path = 1;
   * @return {string}
   */
  proto.Input.prototype.getPath = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  };
  
  /** @param {string} value */
  proto.Input.prototype.setPath = function (value) {
    jspb.Message.setProto3StringField(this, 1, value);
  };
  
  /**
   * optional bytes digest = 2;
   * @return {!(string|Uint8Array)}
   */
  proto.Input.prototype.getDigest = function () {
    return /** @type {!(string|Uint8Array)} */ (
      jspb.Message.getFieldWithDefault(this, 2, "")
    );
  };
  
  /**
   * optional bytes digest = 2;
   * This is a type-conversion wrapper around `getDigest()`
   * @return {string}
   */
  proto.Input.prototype.getDigest_asB64 = function () {
    return /** @type {string} */ (jspb.Message.bytesAsB64(this.getDigest()));
  };
  
  /**
   * optional bytes digest = 2;
   * Note that Uint8Array is not supported on all browsers.
   * @see http://caniuse.com/Uint8Array
   * This is a type-conversion wrapper around `getDigest()`
   * @return {!Uint8Array}
   */
  proto.Input.prototype.getDigest_asU8 = function () {
    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getDigest()));
  };
  
  /** @param {!(string|Uint8Array)} value */
  proto.Input.prototype.setDigest = function (value) {
    jspb.Message.setProto3BytesField(this, 2, value);
  };
  
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.WorkRequest.repeatedFields_ = [1, 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.WorkRequest.prototype.toObject = function (opt_includeInstance) {
      return proto.WorkRequest.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.WorkRequest} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.WorkRequest.toObject = function (includeInstance, msg) {
      var f,
        obj = {
          argumentsList:
            (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
          inputsList: jspb.Message.toObjectList(
            msg.getInputsList(),
            proto.Input.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.WorkRequest}
   */
  proto.WorkRequest.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.WorkRequest();
    return proto.WorkRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.WorkRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.WorkRequest}
   */
  proto.WorkRequest.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.addArguments(value);
          break;
        case 2:
          var value = new proto.Input();
          reader.readMessage(value, proto.Input.deserializeBinaryFromReader);
          msg.addInputs(value);
          break;
        default:
          reader.skipField();
          break;
      }
    }
    return msg;
  };
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.WorkRequest.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.WorkRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.WorkRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.WorkRequest.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getArgumentsList();
    if (f.length > 0) {
      writer.writeRepeatedString(1, f);
    }
    f = message.getInputsList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(2, f, proto.Input.serializeBinaryToWriter);
    }
  };
  
  /**
   * repeated string arguments = 1;
   * @return {!Array<string>}
   */
  proto.WorkRequest.prototype.getArgumentsList = function () {
    return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
  };
  
  /** @param {!Array<string>} value */
  proto.WorkRequest.prototype.setArgumentsList = function (value) {
    jspb.Message.setField(this, 1, value || []);
  };
  
  /**
   * @param {string} value
   * @param {number=} opt_index
   */
  proto.WorkRequest.prototype.addArguments = function (value, opt_index) {
    jspb.Message.addToRepeatedField(this, 1, value, opt_index);
  };
  
  /**
   * Clears the list making it empty but non-null.
   */
  proto.WorkRequest.prototype.clearArgumentsList = function () {
    this.setArgumentsList([]);
  };
  
  /**
   * repeated Input inputs = 2;
   * @return {!Array<!proto.Input>}
   */
  proto.WorkRequest.prototype.getInputsList = function () {
    return /** @type{!Array<!proto.Input>} */ (
      jspb.Message.getRepeatedWrapperField(this, proto.Input, 2)
    );
  };
  
  /** @param {!Array<!proto.Input>} value */
  proto.WorkRequest.prototype.setInputsList = function (value) {
    jspb.Message.setRepeatedWrapperField(this, 2, value);
  };
  
  /**
   * @param {!proto.Input=} opt_value
   * @param {number=} opt_index
   * @return {!proto.Input}
   */
  proto.WorkRequest.prototype.addInputs = function (opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(
      this,
      2,
      opt_value,
      proto.Input,
      opt_index
    );
  };
  
  /**
   * Clears the list making it empty but non-null.
   */
  proto.WorkRequest.prototype.clearInputsList = function () {
    this.setInputsList([]);
  };
  
  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.WorkResponse.prototype.toObject = function (opt_includeInstance) {
      return proto.WorkResponse.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.WorkResponse} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.WorkResponse.toObject = function (includeInstance, msg) {
      var f,
        obj = {
          exitCode: jspb.Message.getFieldWithDefault(msg, 1, 0),
          output: jspb.Message.getFieldWithDefault(msg, 2, ""),
        };
  
      if (includeInstance) {
        obj.$jspbMessageInstance = msg;
      }
      return obj;
    };
  }
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.WorkResponse}
   */
  proto.WorkResponse.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.WorkResponse();
    return proto.WorkResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.WorkResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.WorkResponse}
   */
  proto.WorkResponse.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
        case 1:
          var value = /** @type {number} */ (reader.readInt32());
          msg.setExitCode(value);
          break;
        case 2:
          var value = /** @type {string} */ (reader.readString());
          msg.setOutput(value);
          break;
        default:
          reader.skipField();
          break;
      }
    }
    return msg;
  };
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.WorkResponse.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.WorkResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.WorkResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.WorkResponse.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getExitCode();
    if (f !== 0) {
      writer.writeInt32(1, f);
    }
    f = message.getOutput();
    if (f.length > 0) {
      writer.writeString(2, f);
    }
  };
  
  /**
   * optional int32 exit_code = 1;
   * @return {number}
   */
  proto.WorkResponse.prototype.getExitCode = function () {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  /** @param {number} value */
  proto.WorkResponse.prototype.setExitCode = function (value) {
    jspb.Message.setProto3IntField(this, 1, value);
  };
  
  /**
   * optional string output = 2;
   * @return {string}
   */
  proto.WorkResponse.prototype.getOutput = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  };
  
  /** @param {string} value */
  proto.WorkResponse.prototype.setOutput = function (value) {
    jspb.Message.setProto3StringField(this, 2, value);
  };
  
  goog.object.extend(exports, proto);
  