/**
 * @fileoverview
 * @enhanceable
 * @public
 */
// GENERATED CODE -- DO NOT EDIT!

var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();

goog.exportSymbol('proto.google.api.SystemParameter', null, global);
goog.exportSymbol('proto.google.api.SystemParameterRule', null, global);
goog.exportSymbol('proto.google.api.SystemParameters', 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.google.api.SystemParameters = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SystemParameters.repeatedFields_, null);
};
goog.inherits(proto.google.api.SystemParameters, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  proto.google.api.SystemParameters.displayName = 'proto.google.api.SystemParameters';
}
/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.google.api.SystemParameters.repeatedFields_ = [1];



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto suitable for use in Soy templates.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
 *     for transitional soy proto support: http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.SystemParameters.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.SystemParameters.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Whether to include the JSPB
 *     instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.SystemParameters} msg The msg instance to transform.
 * @return {!Object}
 */
proto.google.api.SystemParameters.toObject = function(includeInstance, msg) {
  var f, obj = {
    rulesList: jspb.Message.toObjectList(msg.getRulesList(),
    proto.google.api.SystemParameterRule.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.google.api.SystemParameters}
 */
proto.google.api.SystemParameters.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.SystemParameters;
  return proto.google.api.SystemParameters.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.SystemParameters} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.SystemParameters}
 */
proto.google.api.SystemParameters.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new proto.google.api.SystemParameterRule;
      reader.readMessage(value,proto.google.api.SystemParameterRule.deserializeBinaryFromReader);
      msg.getRulesList().push(value);
      msg.setRulesList(msg.getRulesList());
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Class method variant: serializes the given message to binary data
 * (in protobuf wire format), writing to the given BinaryWriter.
 * @param {!proto.google.api.SystemParameters} message
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.SystemParameters.serializeBinaryToWriter = function(message, writer) {
  message.serializeBinaryToWriter(writer);
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.SystemParameters.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  this.serializeBinaryToWriter(writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the message to binary data (in protobuf wire format),
 * writing to the given BinaryWriter.
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.SystemParameters.prototype.serializeBinaryToWriter = function (writer) {
  var f = undefined;
  f = this.getRulesList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      1,
      f,
      proto.google.api.SystemParameterRule.serializeBinaryToWriter
    );
  }
};


/**
 * Creates a deep clone of this proto. No data is shared with the original.
 * @return {!proto.google.api.SystemParameters} The clone.
 */
proto.google.api.SystemParameters.prototype.cloneMessage = function() {
  return /** @type {!proto.google.api.SystemParameters} */ (jspb.Message.cloneMessage(this));
};


/**
 * repeated SystemParameterRule rules = 1;
 * If you change this array by adding, removing or replacing elements, or if you
 * replace the array itself, then you must call the setter to update it.
 * @return {!Array.<!proto.google.api.SystemParameterRule>}
 */
proto.google.api.SystemParameters.prototype.getRulesList = function() {
  return /** @type{!Array.<!proto.google.api.SystemParameterRule>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.google.api.SystemParameterRule, 1));
};


/** @param {Array.<!proto.google.api.SystemParameterRule>} value  */
proto.google.api.SystemParameters.prototype.setRulesList = function(value) {
  jspb.Message.setRepeatedWrapperField(this, 1, value);
};


proto.google.api.SystemParameters.prototype.clearRulesList = function() {
  this.setRulesList([]);
};



/**
 * 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.google.api.SystemParameterRule = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SystemParameterRule.repeatedFields_, null);
};
goog.inherits(proto.google.api.SystemParameterRule, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  proto.google.api.SystemParameterRule.displayName = 'proto.google.api.SystemParameterRule';
}
/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.google.api.SystemParameterRule.repeatedFields_ = [2];



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto suitable for use in Soy templates.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
 *     for transitional soy proto support: http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.SystemParameterRule.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.SystemParameterRule.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Whether to include the JSPB
 *     instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.SystemParameterRule} msg The msg instance to transform.
 * @return {!Object}
 */
proto.google.api.SystemParameterRule.toObject = function(includeInstance, msg) {
  var f, obj = {
    selector: msg.getSelector(),
    parametersList: jspb.Message.toObjectList(msg.getParametersList(),
    proto.google.api.SystemParameter.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.google.api.SystemParameterRule}
 */
proto.google.api.SystemParameterRule.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.SystemParameterRule;
  return proto.google.api.SystemParameterRule.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.SystemParameterRule} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.SystemParameterRule}
 */
proto.google.api.SystemParameterRule.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.setSelector(value);
      break;
    case 2:
      var value = new proto.google.api.SystemParameter;
      reader.readMessage(value,proto.google.api.SystemParameter.deserializeBinaryFromReader);
      msg.getParametersList().push(value);
      msg.setParametersList(msg.getParametersList());
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Class method variant: serializes the given message to binary data
 * (in protobuf wire format), writing to the given BinaryWriter.
 * @param {!proto.google.api.SystemParameterRule} message
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.SystemParameterRule.serializeBinaryToWriter = function(message, writer) {
  message.serializeBinaryToWriter(writer);
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.SystemParameterRule.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  this.serializeBinaryToWriter(writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the message to binary data (in protobuf wire format),
 * writing to the given BinaryWriter.
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.SystemParameterRule.prototype.serializeBinaryToWriter = function (writer) {
  var f = undefined;
  f = this.getSelector();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = this.getParametersList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      2,
      f,
      proto.google.api.SystemParameter.serializeBinaryToWriter
    );
  }
};


/**
 * Creates a deep clone of this proto. No data is shared with the original.
 * @return {!proto.google.api.SystemParameterRule} The clone.
 */
proto.google.api.SystemParameterRule.prototype.cloneMessage = function() {
  return /** @type {!proto.google.api.SystemParameterRule} */ (jspb.Message.cloneMessage(this));
};


/**
 * optional string selector = 1;
 * @return {string}
 */
proto.google.api.SystemParameterRule.prototype.getSelector = function() {
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};


/** @param {string} value  */
proto.google.api.SystemParameterRule.prototype.setSelector = function(value) {
  jspb.Message.setField(this, 1, value);
};


/**
 * repeated SystemParameter parameters = 2;
 * If you change this array by adding, removing or replacing elements, or if you
 * replace the array itself, then you must call the setter to update it.
 * @return {!Array.<!proto.google.api.SystemParameter>}
 */
proto.google.api.SystemParameterRule.prototype.getParametersList = function() {
  return /** @type{!Array.<!proto.google.api.SystemParameter>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.google.api.SystemParameter, 2));
};


/** @param {Array.<!proto.google.api.SystemParameter>} value  */
proto.google.api.SystemParameterRule.prototype.setParametersList = function(value) {
  jspb.Message.setRepeatedWrapperField(this, 2, value);
};


proto.google.api.SystemParameterRule.prototype.clearParametersList = function() {
  this.setParametersList([]);
};



/**
 * 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.google.api.SystemParameter = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.api.SystemParameter, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  proto.google.api.SystemParameter.displayName = 'proto.google.api.SystemParameter';
}


if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto suitable for use in Soy templates.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
 * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
 *     for transitional soy proto support: http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.SystemParameter.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.SystemParameter.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Whether to include the JSPB
 *     instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.SystemParameter} msg The msg instance to transform.
 * @return {!Object}
 */
proto.google.api.SystemParameter.toObject = function(includeInstance, msg) {
  var f, obj = {
    name: msg.getName(),
    httpHeader: msg.getHttpHeader(),
    urlQueryParameter: msg.getUrlQueryParameter()
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.SystemParameter}
 */
proto.google.api.SystemParameter.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.SystemParameter;
  return proto.google.api.SystemParameter.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.SystemParameter} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.SystemParameter}
 */
proto.google.api.SystemParameter.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 {string} */ (reader.readString());
      msg.setHttpHeader(value);
      break;
    case 3:
      var value = /** @type {string} */ (reader.readString());
      msg.setUrlQueryParameter(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Class method variant: serializes the given message to binary data
 * (in protobuf wire format), writing to the given BinaryWriter.
 * @param {!proto.google.api.SystemParameter} message
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.SystemParameter.serializeBinaryToWriter = function(message, writer) {
  message.serializeBinaryToWriter(writer);
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.SystemParameter.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  this.serializeBinaryToWriter(writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the message to binary data (in protobuf wire format),
 * writing to the given BinaryWriter.
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.SystemParameter.prototype.serializeBinaryToWriter = function (writer) {
  var f = undefined;
  f = this.getName();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = this.getHttpHeader();
  if (f.length > 0) {
    writer.writeString(
      2,
      f
    );
  }
  f = this.getUrlQueryParameter();
  if (f.length > 0) {
    writer.writeString(
      3,
      f
    );
  }
};


/**
 * Creates a deep clone of this proto. No data is shared with the original.
 * @return {!proto.google.api.SystemParameter} The clone.
 */
proto.google.api.SystemParameter.prototype.cloneMessage = function() {
  return /** @type {!proto.google.api.SystemParameter} */ (jspb.Message.cloneMessage(this));
};


/**
 * optional string name = 1;
 * @return {string}
 */
proto.google.api.SystemParameter.prototype.getName = function() {
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
};


/** @param {string} value  */
proto.google.api.SystemParameter.prototype.setName = function(value) {
  jspb.Message.setField(this, 1, value);
};


/**
 * optional string http_header = 2;
 * @return {string}
 */
proto.google.api.SystemParameter.prototype.getHttpHeader = function() {
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
};


/** @param {string} value  */
proto.google.api.SystemParameter.prototype.setHttpHeader = function(value) {
  jspb.Message.setField(this, 2, value);
};


/**
 * optional string url_query_parameter = 3;
 * @return {string}
 */
proto.google.api.SystemParameter.prototype.getUrlQueryParameter = function() {
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
};


/** @param {string} value  */
proto.google.api.SystemParameter.prototype.setUrlQueryParameter = function(value) {
  jspb.Message.setField(this, 3, value);
};


goog.object.extend(exports, proto.google.api);
