text: // source: gwapi/v1/gateway.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 google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
  goog.object.extend(proto, google_protobuf_any_pb);
  goog.exportSymbol('proto.libra.gwapi.v1.PushRequest', null, global);
  goog.exportSymbol('proto.libra.gwapi.v1.PushResponse', null, global);
  goog.exportSymbol('proto.libra.gwapi.v1.SubscribeRequest', null, global);
  goog.exportSymbol('proto.libra.gwapi.v1.SubscribeResponse', 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.libra.gwapi.v1.PushRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.libra.gwapi.v1.PushRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.libra.gwapi.v1.PushRequest.displayName = 'proto.libra.gwapi.v1.PushRequest';
  }
  /**
   * 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.libra.gwapi.v1.PushResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.libra.gwapi.v1.PushResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.libra.gwapi.v1.PushResponse.displayName = 'proto.libra.gwapi.v1.PushResponse';
  }
  /**
   * 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.libra.gwapi.v1.SubscribeRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.libra.gwapi.v1.SubscribeRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.libra.gwapi.v1.SubscribeRequest.displayName = 'proto.libra.gwapi.v1.SubscribeRequest';
  }
  /**
   * 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.libra.gwapi.v1.SubscribeResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.libra.gwapi.v1.SubscribeResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.libra.gwapi.v1.SubscribeResponse.displayName = 'proto.libra.gwapi.v1.SubscribeResponse';
  }
  
  
  
  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.libra.gwapi.v1.PushRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.libra.gwapi.v1.PushRequest.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.libra.gwapi.v1.PushRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.libra.gwapi.v1.PushRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      roleId: jspb.Message.getFieldWithDefault(msg, 1, ""),
      data: (f = msg.getData()) && google_protobuf_any_pb.Any.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.libra.gwapi.v1.PushRequest}
   */
  proto.libra.gwapi.v1.PushRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.libra.gwapi.v1.PushRequest;
    return proto.libra.gwapi.v1.PushRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.libra.gwapi.v1.PushRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.libra.gwapi.v1.PushRequest}
   */
  proto.libra.gwapi.v1.PushRequest.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.setRoleId(value);
        break;
      case 10:
        var value = new google_protobuf_any_pb.Any;
        reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
        msg.setData(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.libra.gwapi.v1.PushRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.libra.gwapi.v1.PushRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.libra.gwapi.v1.PushRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.libra.gwapi.v1.PushRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getRoleId();
    if (f.length > 0) {
      writer.writeString(
        1,
        f
      );
    }
    f = message.getData();
    if (f != null) {
      writer.writeMessage(
        10,
        f,
        google_protobuf_any_pb.Any.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional string role_id = 1;
   * @return {string}
   */
  proto.libra.gwapi.v1.PushRequest.prototype.getRoleId = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.libra.gwapi.v1.PushRequest} returns this
   */
  proto.libra.gwapi.v1.PushRequest.prototype.setRoleId = function(value) {
    return jspb.Message.setProto3StringField(this, 1, value);
  };
  
  
  /**
   * optional google.protobuf.Any data = 10;
   * @return {?proto.google.protobuf.Any}
   */
  proto.libra.gwapi.v1.PushRequest.prototype.getData = function() {
    return /** @type{?proto.google.protobuf.Any} */ (
      jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 10));
  };
  
  
  /**
   * @param {?proto.google.protobuf.Any|undefined} value
   * @return {!proto.libra.gwapi.v1.PushRequest} returns this
  */
  proto.libra.gwapi.v1.PushRequest.prototype.setData = function(value) {
    return jspb.Message.setWrapperField(this, 10, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.libra.gwapi.v1.PushRequest} returns this
   */
  proto.libra.gwapi.v1.PushRequest.prototype.clearData = function() {
    return this.setData(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.libra.gwapi.v1.PushRequest.prototype.hasData = function() {
    return jspb.Message.getField(this, 10) != 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.libra.gwapi.v1.PushResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.libra.gwapi.v1.PushResponse.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.libra.gwapi.v1.PushResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.libra.gwapi.v1.PushResponse.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.libra.gwapi.v1.PushResponse}
   */
  proto.libra.gwapi.v1.PushResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.libra.gwapi.v1.PushResponse;
    return proto.libra.gwapi.v1.PushResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.libra.gwapi.v1.PushResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.libra.gwapi.v1.PushResponse}
   */
  proto.libra.gwapi.v1.PushResponse.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.libra.gwapi.v1.PushResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.libra.gwapi.v1.PushResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.libra.gwapi.v1.PushResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.libra.gwapi.v1.PushResponse.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.libra.gwapi.v1.SubscribeRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.libra.gwapi.v1.SubscribeRequest.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.libra.gwapi.v1.SubscribeRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.libra.gwapi.v1.SubscribeRequest.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.libra.gwapi.v1.SubscribeRequest}
   */
  proto.libra.gwapi.v1.SubscribeRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.libra.gwapi.v1.SubscribeRequest;
    return proto.libra.gwapi.v1.SubscribeRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.libra.gwapi.v1.SubscribeRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.libra.gwapi.v1.SubscribeRequest}
   */
  proto.libra.gwapi.v1.SubscribeRequest.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.libra.gwapi.v1.SubscribeRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.libra.gwapi.v1.SubscribeRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.libra.gwapi.v1.SubscribeRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.libra.gwapi.v1.SubscribeRequest.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.libra.gwapi.v1.SubscribeResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.libra.gwapi.v1.SubscribeResponse.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.libra.gwapi.v1.SubscribeResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.libra.gwapi.v1.SubscribeResponse.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.libra.gwapi.v1.SubscribeResponse}
   */
  proto.libra.gwapi.v1.SubscribeResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.libra.gwapi.v1.SubscribeResponse;
    return proto.libra.gwapi.v1.SubscribeResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.libra.gwapi.v1.SubscribeResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.libra.gwapi.v1.SubscribeResponse}
   */
  proto.libra.gwapi.v1.SubscribeResponse.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.libra.gwapi.v1.SubscribeResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.libra.gwapi.v1.SubscribeResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.libra.gwapi.v1.SubscribeResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.libra.gwapi.v1.SubscribeResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
  };
  
  
  goog.object.extend(exports, proto.libra.gwapi.v1);
  