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



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.Authentication.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.Authentication.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.Authentication} msg The msg instance to transform.
 * @return {!Object}
 */
proto.google.api.Authentication.toObject = function(includeInstance, msg) {
  var f, obj = {
    rulesList: jspb.Message.toObjectList(msg.getRulesList(),
    proto.google.api.AuthenticationRule.toObject, includeInstance),
    providersList: jspb.Message.toObjectList(msg.getProvidersList(),
    proto.google.api.AuthProvider.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.Authentication}
 */
proto.google.api.Authentication.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.Authentication;
  return proto.google.api.Authentication.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.Authentication} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.Authentication}
 */
proto.google.api.Authentication.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 3:
      var value = new proto.google.api.AuthenticationRule;
      reader.readMessage(value,proto.google.api.AuthenticationRule.deserializeBinaryFromReader);
      msg.getRulesList().push(value);
      msg.setRulesList(msg.getRulesList());
      break;
    case 4:
      var value = new proto.google.api.AuthProvider;
      reader.readMessage(value,proto.google.api.AuthProvider.deserializeBinaryFromReader);
      msg.getProvidersList().push(value);
      msg.setProvidersList(msg.getProvidersList());
      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.Authentication} message
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.Authentication.serializeBinaryToWriter = function(message, writer) {
  message.serializeBinaryToWriter(writer);
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.Authentication.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.Authentication.prototype.serializeBinaryToWriter = function (writer) {
  var f = undefined;
  f = this.getRulesList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      3,
      f,
      proto.google.api.AuthenticationRule.serializeBinaryToWriter
    );
  }
  f = this.getProvidersList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      4,
      f,
      proto.google.api.AuthProvider.serializeBinaryToWriter
    );
  }
};


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


/**
 * repeated AuthenticationRule rules = 3;
 * 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.AuthenticationRule>}
 */
proto.google.api.Authentication.prototype.getRulesList = function() {
  return /** @type{!Array.<!proto.google.api.AuthenticationRule>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthenticationRule, 3));
};


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


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


/**
 * repeated AuthProvider providers = 4;
 * 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.AuthProvider>}
 */
proto.google.api.Authentication.prototype.getProvidersList = function() {
  return /** @type{!Array.<!proto.google.api.AuthProvider>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthProvider, 4));
};


/** @param {Array.<!proto.google.api.AuthProvider>} value  */
proto.google.api.Authentication.prototype.setProvidersList = function(value) {
  jspb.Message.setRepeatedWrapperField(this, 4, value);
};


proto.google.api.Authentication.prototype.clearProvidersList = function() {
  this.setProvidersList([]);
};



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



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.AuthenticationRule.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.AuthenticationRule.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.AuthenticationRule} msg The msg instance to transform.
 * @return {!Object}
 */
proto.google.api.AuthenticationRule.toObject = function(includeInstance, msg) {
  var f, obj = {
    selector: msg.getSelector(),
    oauth: (f = msg.getOauth()) && proto.google.api.OAuthRequirements.toObject(includeInstance, f),
    allowWithoutCredential: msg.getAllowWithoutCredential(),
    requirementsList: jspb.Message.toObjectList(msg.getRequirementsList(),
    proto.google.api.AuthRequirement.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.AuthenticationRule}
 */
proto.google.api.AuthenticationRule.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.AuthenticationRule;
  return proto.google.api.AuthenticationRule.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.AuthenticationRule} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.AuthenticationRule}
 */
proto.google.api.AuthenticationRule.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.OAuthRequirements;
      reader.readMessage(value,proto.google.api.OAuthRequirements.deserializeBinaryFromReader);
      msg.setOauth(value);
      break;
    case 5:
      var value = /** @type {boolean} */ (reader.readBool());
      msg.setAllowWithoutCredential(value);
      break;
    case 7:
      var value = new proto.google.api.AuthRequirement;
      reader.readMessage(value,proto.google.api.AuthRequirement.deserializeBinaryFromReader);
      msg.getRequirementsList().push(value);
      msg.setRequirementsList(msg.getRequirementsList());
      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.AuthenticationRule} message
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.AuthenticationRule.serializeBinaryToWriter = function(message, writer) {
  message.serializeBinaryToWriter(writer);
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.AuthenticationRule.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.AuthenticationRule.prototype.serializeBinaryToWriter = function (writer) {
  var f = undefined;
  f = this.getSelector();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = this.getOauth();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      proto.google.api.OAuthRequirements.serializeBinaryToWriter
    );
  }
  f = this.getAllowWithoutCredential();
  if (f) {
    writer.writeBool(
      5,
      f
    );
  }
  f = this.getRequirementsList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      7,
      f,
      proto.google.api.AuthRequirement.serializeBinaryToWriter
    );
  }
};


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


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


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


/**
 * optional OAuthRequirements oauth = 2;
 * @return {proto.google.api.OAuthRequirements}
 */
proto.google.api.AuthenticationRule.prototype.getOauth = function() {
  return /** @type{proto.google.api.OAuthRequirements} */ (
    jspb.Message.getWrapperField(this, proto.google.api.OAuthRequirements, 2));
};


/** @param {proto.google.api.OAuthRequirements|undefined} value  */
proto.google.api.AuthenticationRule.prototype.setOauth = function(value) {
  jspb.Message.setWrapperField(this, 2, value);
};


proto.google.api.AuthenticationRule.prototype.clearOauth = function() {
  this.setOauth(undefined);
};


/**
 * Returns whether this field is set.
 * @return{!boolean}
 */
proto.google.api.AuthenticationRule.prototype.hasOauth = function() {
  return jspb.Message.getField(this, 2) != null;
};


/**
 * optional bool allow_without_credential = 5;
 * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
 * You should avoid comparisons like {@code val === true/false} in those cases.
 * @return {boolean}
 */
proto.google.api.AuthenticationRule.prototype.getAllowWithoutCredential = function() {
  return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
};


/** @param {boolean} value  */
proto.google.api.AuthenticationRule.prototype.setAllowWithoutCredential = function(value) {
  jspb.Message.setField(this, 5, value);
};


/**
 * repeated AuthRequirement requirements = 7;
 * 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.AuthRequirement>}
 */
proto.google.api.AuthenticationRule.prototype.getRequirementsList = function() {
  return /** @type{!Array.<!proto.google.api.AuthRequirement>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthRequirement, 7));
};


/** @param {Array.<!proto.google.api.AuthRequirement>} value  */
proto.google.api.AuthenticationRule.prototype.setRequirementsList = function(value) {
  jspb.Message.setRepeatedWrapperField(this, 7, value);
};


proto.google.api.AuthenticationRule.prototype.clearRequirementsList = function() {
  this.setRequirementsList([]);
};



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

/**
 * @enum {number}
 */
proto.google.api.JwtLocation.InCase = {
  IN_NOT_SET: 0,
  HEADER: 1,
  QUERY: 2
};

/**
 * @return {proto.google.api.JwtLocation.InCase}
 */
proto.google.api.JwtLocation.prototype.getInCase = function() {
  return /** @type {proto.google.api.JwtLocation.InCase} */(jspb.Message.computeOneofCase(this, proto.google.api.JwtLocation.oneofGroups_[0]));
};



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.JwtLocation.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.JwtLocation.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.JwtLocation} msg The msg instance to transform.
 * @return {!Object}
 */
proto.google.api.JwtLocation.toObject = function(includeInstance, msg) {
  var f, obj = {
    header: jspb.Message.getField(msg, 1),
    query: jspb.Message.getField(msg, 2),
    valuePrefix: msg.getValuePrefix()
  };

  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.JwtLocation}
 */
proto.google.api.JwtLocation.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.JwtLocation;
  return proto.google.api.JwtLocation.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.JwtLocation} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.JwtLocation}
 */
proto.google.api.JwtLocation.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.setHeader(value);
      break;
    case 2:
      var value = /** @type {string} */ (reader.readString());
      msg.setQuery(value);
      break;
    case 3:
      var value = /** @type {string} */ (reader.readString());
      msg.setValuePrefix(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.JwtLocation} message
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.JwtLocation.serializeBinaryToWriter = function(message, writer) {
  message.serializeBinaryToWriter(writer);
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.JwtLocation.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.JwtLocation.prototype.serializeBinaryToWriter = function (writer) {
  var f = undefined;
  f = jspb.Message.getField(this, 1);
  if (f != null) {
    writer.writeString(
      1,
      f
    );
  }
  f = jspb.Message.getField(this, 2);
  if (f != null) {
    writer.writeString(
      2,
      f
    );
  }
  f = this.getValuePrefix();
  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.JwtLocation} The clone.
 */
proto.google.api.JwtLocation.prototype.cloneMessage = function() {
  return /** @type {!proto.google.api.JwtLocation} */ (jspb.Message.cloneMessage(this));
};


/**
 * optional string header = 1;
 * @return {string}
 */
proto.google.api.JwtLocation.prototype.getHeader = function() {
  return /** @type {string} */ (!this.hasHeader() ? "" : jspb.Message.getField(this, 1));
};


/** @param {string?|undefined} value  */
proto.google.api.JwtLocation.prototype.setHeader = function(value) {
  jspb.Message.setOneofField(this, 1, proto.google.api.JwtLocation.oneofGroups_[0], value);
};


proto.google.api.JwtLocation.prototype.clearHeader = function() {
  jspb.Message.setOneofField(this, 1, proto.google.api.JwtLocation.oneofGroups_[0], undefined);
};


/**
 * Returns whether this field is set.
 * @return{!boolean}
 */
proto.google.api.JwtLocation.prototype.hasHeader = function() {
  return jspb.Message.getField(this, 1) != null;
};


/**
 * optional string query = 2;
 * @return {string}
 */
proto.google.api.JwtLocation.prototype.getQuery = function() {
  return /** @type {string} */ (!this.hasQuery() ? "" : jspb.Message.getField(this, 2));
};


/** @param {string?|undefined} value  */
proto.google.api.JwtLocation.prototype.setQuery = function(value) {
  jspb.Message.setOneofField(this, 2, proto.google.api.JwtLocation.oneofGroups_[0], value);
};


proto.google.api.JwtLocation.prototype.clearQuery = function() {
  jspb.Message.setOneofField(this, 2, proto.google.api.JwtLocation.oneofGroups_[0], undefined);
};


/**
 * Returns whether this field is set.
 * @return{!boolean}
 */
proto.google.api.JwtLocation.prototype.hasQuery = function() {
  return jspb.Message.getField(this, 2) != null;
};


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


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



/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.AuthProvider = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.AuthProvider.repeatedFields_, null);
};
goog.inherits(proto.google.api.AuthProvider, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  proto.google.api.AuthProvider.displayName = 'proto.google.api.AuthProvider';
}
/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.google.api.AuthProvider.repeatedFields_ = [6];



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.AuthProvider.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.AuthProvider.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.AuthProvider} msg The msg instance to transform.
 * @return {!Object}
 */
proto.google.api.AuthProvider.toObject = function(includeInstance, msg) {
  var f, obj = {
    id: msg.getId(),
    issuer: msg.getIssuer(),
    jwksUri: msg.getJwksUri(),
    audiences: msg.getAudiences(),
    authorizationUrl: msg.getAuthorizationUrl(),
    jwtLocationsList: jspb.Message.toObjectList(msg.getJwtLocationsList(),
    proto.google.api.JwtLocation.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.AuthProvider}
 */
proto.google.api.AuthProvider.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.AuthProvider;
  return proto.google.api.AuthProvider.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.AuthProvider} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.AuthProvider}
 */
proto.google.api.AuthProvider.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = /** @type {string} */ (reader.readString());
      msg.setId(value);
      break;
    case 2:
      var value = /** @type {string} */ (reader.readString());
      msg.setIssuer(value);
      break;
    case 3:
      var value = /** @type {string} */ (reader.readString());
      msg.setJwksUri(value);
      break;
    case 4:
      var value = /** @type {string} */ (reader.readString());
      msg.setAudiences(value);
      break;
    case 5:
      var value = /** @type {string} */ (reader.readString());
      msg.setAuthorizationUrl(value);
      break;
    case 6:
      var value = new proto.google.api.JwtLocation;
      reader.readMessage(value,proto.google.api.JwtLocation.deserializeBinaryFromReader);
      msg.getJwtLocationsList().push(value);
      msg.setJwtLocationsList(msg.getJwtLocationsList());
      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.AuthProvider} message
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.AuthProvider.serializeBinaryToWriter = function(message, writer) {
  message.serializeBinaryToWriter(writer);
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.AuthProvider.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.AuthProvider.prototype.serializeBinaryToWriter = function (writer) {
  var f = undefined;
  f = this.getId();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = this.getIssuer();
  if (f.length > 0) {
    writer.writeString(
      2,
      f
    );
  }
  f = this.getJwksUri();
  if (f.length > 0) {
    writer.writeString(
      3,
      f
    );
  }
  f = this.getAudiences();
  if (f.length > 0) {
    writer.writeString(
      4,
      f
    );
  }
  f = this.getAuthorizationUrl();
  if (f.length > 0) {
    writer.writeString(
      5,
      f
    );
  }
  f = this.getJwtLocationsList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      6,
      f,
      proto.google.api.JwtLocation.serializeBinaryToWriter
    );
  }
};


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


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


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


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


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


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


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


/**
 * optional string audiences = 4;
 * @return {string}
 */
proto.google.api.AuthProvider.prototype.getAudiences = function() {
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
};


/** @param {string} value  */
proto.google.api.AuthProvider.prototype.setAudiences = function(value) {
  jspb.Message.setField(this, 4, value);
};


/**
 * optional string authorization_url = 5;
 * @return {string}
 */
proto.google.api.AuthProvider.prototype.getAuthorizationUrl = function() {
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 5, ""));
};


/** @param {string} value  */
proto.google.api.AuthProvider.prototype.setAuthorizationUrl = function(value) {
  jspb.Message.setField(this, 5, value);
};


/**
 * repeated JwtLocation jwt_locations = 6;
 * 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.JwtLocation>}
 */
proto.google.api.AuthProvider.prototype.getJwtLocationsList = function() {
  return /** @type{!Array.<!proto.google.api.JwtLocation>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.google.api.JwtLocation, 6));
};


/** @param {Array.<!proto.google.api.JwtLocation>} value  */
proto.google.api.AuthProvider.prototype.setJwtLocationsList = function(value) {
  jspb.Message.setRepeatedWrapperField(this, 6, value);
};


proto.google.api.AuthProvider.prototype.clearJwtLocationsList = function() {
  this.setJwtLocationsList([]);
};



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


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.OAuthRequirements.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.OAuthRequirements.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.OAuthRequirements} msg The msg instance to transform.
 * @return {!Object}
 */
proto.google.api.OAuthRequirements.toObject = function(includeInstance, msg) {
  var f, obj = {
    canonicalScopes: msg.getCanonicalScopes()
  };

  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.OAuthRequirements}
 */
proto.google.api.OAuthRequirements.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.OAuthRequirements;
  return proto.google.api.OAuthRequirements.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.OAuthRequirements} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.OAuthRequirements}
 */
proto.google.api.OAuthRequirements.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.setCanonicalScopes(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.OAuthRequirements} message
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.OAuthRequirements.serializeBinaryToWriter = function(message, writer) {
  message.serializeBinaryToWriter(writer);
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.OAuthRequirements.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.OAuthRequirements.prototype.serializeBinaryToWriter = function (writer) {
  var f = undefined;
  f = this.getCanonicalScopes();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
};


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


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


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



/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.AuthRequirement = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.api.AuthRequirement, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  proto.google.api.AuthRequirement.displayName = 'proto.google.api.AuthRequirement';
}


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.AuthRequirement.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.AuthRequirement.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.AuthRequirement} msg The msg instance to transform.
 * @return {!Object}
 */
proto.google.api.AuthRequirement.toObject = function(includeInstance, msg) {
  var f, obj = {
    providerId: msg.getProviderId(),
    audiences: msg.getAudiences()
  };

  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.AuthRequirement}
 */
proto.google.api.AuthRequirement.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.AuthRequirement;
  return proto.google.api.AuthRequirement.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.AuthRequirement} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.AuthRequirement}
 */
proto.google.api.AuthRequirement.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.setProviderId(value);
      break;
    case 2:
      var value = /** @type {string} */ (reader.readString());
      msg.setAudiences(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.AuthRequirement} message
 * @param {!jspb.BinaryWriter} writer
 */
proto.google.api.AuthRequirement.serializeBinaryToWriter = function(message, writer) {
  message.serializeBinaryToWriter(writer);
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.AuthRequirement.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.AuthRequirement.prototype.serializeBinaryToWriter = function (writer) {
  var f = undefined;
  f = this.getProviderId();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = this.getAudiences();
  if (f.length > 0) {
    writer.writeString(
      2,
      f
    );
  }
};


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


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


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


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


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


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