text: // source: onos/config/change/network/types.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_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
  goog.object.extend(proto, google_protobuf_timestamp_pb);
  var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js');
  goog.object.extend(proto, gogoproto_gogo_pb);
  var onos_config_change_types_pb = require('../../../../onos/config/change/types_pb.js');
  goog.object.extend(proto, onos_config_change_types_pb);
  var onos_config_change_device_types_pb = require('../../../../onos/config/change/device/types_pb.js');
  goog.object.extend(proto, onos_config_change_device_types_pb);
  goog.exportSymbol('proto.onos.config.change.network.DeviceChangeRef', null, global);
  goog.exportSymbol('proto.onos.config.change.network.NetworkChange', 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.onos.config.change.network.NetworkChange = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.onos.config.change.network.NetworkChange.repeatedFields_, null);
  };
  goog.inherits(proto.onos.config.change.network.NetworkChange, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.onos.config.change.network.NetworkChange.displayName = 'proto.onos.config.change.network.NetworkChange';
  }
  /**
   * 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.onos.config.change.network.DeviceChangeRef = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.onos.config.change.network.DeviceChangeRef, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.onos.config.change.network.DeviceChangeRef.displayName = 'proto.onos.config.change.network.DeviceChangeRef';
  }
  
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.onos.config.change.network.NetworkChange.repeatedFields_ = [7,8];
  
  
  
  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.onos.config.change.network.NetworkChange.prototype.toObject = function(opt_includeInstance) {
    return proto.onos.config.change.network.NetworkChange.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.onos.config.change.network.NetworkChange} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.onos.config.change.network.NetworkChange.toObject = function(includeInstance, msg) {
    var f, obj = {
      id: jspb.Message.getFieldWithDefault(msg, 1, ""),
      index: jspb.Message.getFieldWithDefault(msg, 2, 0),
      revision: jspb.Message.getFieldWithDefault(msg, 3, 0),
      status: (f = msg.getStatus()) && onos_config_change_types_pb.Status.toObject(includeInstance, f),
      created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
      updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
      changesList: jspb.Message.toObjectList(msg.getChangesList(),
      onos_config_change_device_types_pb.Change.toObject, includeInstance),
      refsList: jspb.Message.toObjectList(msg.getRefsList(),
      proto.onos.config.change.network.DeviceChangeRef.toObject, includeInstance),
      deleted: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.onos.config.change.network.NetworkChange}
   */
  proto.onos.config.change.network.NetworkChange.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.onos.config.change.network.NetworkChange;
    return proto.onos.config.change.network.NetworkChange.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.onos.config.change.network.NetworkChange} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.onos.config.change.network.NetworkChange}
   */
  proto.onos.config.change.network.NetworkChange.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 {number} */ (reader.readUint64());
        msg.setIndex(value);
        break;
      case 3:
        var value = /** @type {number} */ (reader.readUint64());
        msg.setRevision(value);
        break;
      case 4:
        var value = new onos_config_change_types_pb.Status;
        reader.readMessage(value,onos_config_change_types_pb.Status.deserializeBinaryFromReader);
        msg.setStatus(value);
        break;
      case 5:
        var value = new google_protobuf_timestamp_pb.Timestamp;
        reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
        msg.setCreated(value);
        break;
      case 6:
        var value = new google_protobuf_timestamp_pb.Timestamp;
        reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
        msg.setUpdated(value);
        break;
      case 7:
        var value = new onos_config_change_device_types_pb.Change;
        reader.readMessage(value,onos_config_change_device_types_pb.Change.deserializeBinaryFromReader);
        msg.addChanges(value);
        break;
      case 8:
        var value = new proto.onos.config.change.network.DeviceChangeRef;
        reader.readMessage(value,proto.onos.config.change.network.DeviceChangeRef.deserializeBinaryFromReader);
        msg.addRefs(value);
        break;
      case 9:
        var value = /** @type {boolean} */ (reader.readBool());
        msg.setDeleted(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.onos.config.change.network.NetworkChange.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.onos.config.change.network.NetworkChange.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.onos.config.change.network.NetworkChange} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.onos.config.change.network.NetworkChange.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getId();
    if (f.length > 0) {
      writer.writeString(
        1,
        f
      );
    }
    f = message.getIndex();
    if (f !== 0) {
      writer.writeUint64(
        2,
        f
      );
    }
    f = message.getRevision();
    if (f !== 0) {
      writer.writeUint64(
        3,
        f
      );
    }
    f = message.getStatus();
    if (f != null) {
      writer.writeMessage(
        4,
        f,
        onos_config_change_types_pb.Status.serializeBinaryToWriter
      );
    }
    f = message.getCreated();
    if (f != null) {
      writer.writeMessage(
        5,
        f,
        google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
      );
    }
    f = message.getUpdated();
    if (f != null) {
      writer.writeMessage(
        6,
        f,
        google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
      );
    }
    f = message.getChangesList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        7,
        f,
        onos_config_change_device_types_pb.Change.serializeBinaryToWriter
      );
    }
    f = message.getRefsList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        8,
        f,
        proto.onos.config.change.network.DeviceChangeRef.serializeBinaryToWriter
      );
    }
    f = message.getDeleted();
    if (f) {
      writer.writeBool(
        9,
        f
      );
    }
  };
  
  
  /**
   * optional string id = 1;
   * @return {string}
   */
  proto.onos.config.change.network.NetworkChange.prototype.getId = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
   */
  proto.onos.config.change.network.NetworkChange.prototype.setId = function(value) {
    return jspb.Message.setProto3StringField(this, 1, value);
  };
  
  
  /**
   * optional uint64 index = 2;
   * @return {number}
   */
  proto.onos.config.change.network.NetworkChange.prototype.getIndex = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  };
  
  
  /**
   * @param {number} value
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
   */
  proto.onos.config.change.network.NetworkChange.prototype.setIndex = function(value) {
    return jspb.Message.setProto3IntField(this, 2, value);
  };
  
  
  /**
   * optional uint64 revision = 3;
   * @return {number}
   */
  proto.onos.config.change.network.NetworkChange.prototype.getRevision = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  };
  
  
  /**
   * @param {number} value
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
   */
  proto.onos.config.change.network.NetworkChange.prototype.setRevision = function(value) {
    return jspb.Message.setProto3IntField(this, 3, value);
  };
  
  
  /**
   * optional onos.config.change.Status status = 4;
   * @return {?proto.onos.config.change.Status}
   */
  proto.onos.config.change.network.NetworkChange.prototype.getStatus = function() {
    return /** @type{?proto.onos.config.change.Status} */ (
      jspb.Message.getWrapperField(this, onos_config_change_types_pb.Status, 4));
  };
  
  
  /**
   * @param {?proto.onos.config.change.Status|undefined} value
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
  */
  proto.onos.config.change.network.NetworkChange.prototype.setStatus = function(value) {
    return jspb.Message.setWrapperField(this, 4, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
   */
  proto.onos.config.change.network.NetworkChange.prototype.clearStatus = function() {
    return this.setStatus(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.onos.config.change.network.NetworkChange.prototype.hasStatus = function() {
    return jspb.Message.getField(this, 4) != null;
  };
  
  
  /**
   * optional google.protobuf.Timestamp created = 5;
   * @return {?proto.google.protobuf.Timestamp}
   */
  proto.onos.config.change.network.NetworkChange.prototype.getCreated = function() {
    return /** @type{?proto.google.protobuf.Timestamp} */ (
      jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
  };
  
  
  /**
   * @param {?proto.google.protobuf.Timestamp|undefined} value
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
  */
  proto.onos.config.change.network.NetworkChange.prototype.setCreated = function(value) {
    return jspb.Message.setWrapperField(this, 5, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
   */
  proto.onos.config.change.network.NetworkChange.prototype.clearCreated = function() {
    return this.setCreated(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.onos.config.change.network.NetworkChange.prototype.hasCreated = function() {
    return jspb.Message.getField(this, 5) != null;
  };
  
  
  /**
   * optional google.protobuf.Timestamp updated = 6;
   * @return {?proto.google.protobuf.Timestamp}
   */
  proto.onos.config.change.network.NetworkChange.prototype.getUpdated = function() {
    return /** @type{?proto.google.protobuf.Timestamp} */ (
      jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
  };
  
  
  /**
   * @param {?proto.google.protobuf.Timestamp|undefined} value
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
  */
  proto.onos.config.change.network.NetworkChange.prototype.setUpdated = function(value) {
    return jspb.Message.setWrapperField(this, 6, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
   */
  proto.onos.config.change.network.NetworkChange.prototype.clearUpdated = function() {
    return this.setUpdated(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.onos.config.change.network.NetworkChange.prototype.hasUpdated = function() {
    return jspb.Message.getField(this, 6) != null;
  };
  
  
  /**
   * repeated onos.config.change.device.Change changes = 7;
   * @return {!Array<!proto.onos.config.change.device.Change>}
   */
  proto.onos.config.change.network.NetworkChange.prototype.getChangesList = function() {
    return /** @type{!Array<!proto.onos.config.change.device.Change>} */ (
      jspb.Message.getRepeatedWrapperField(this, onos_config_change_device_types_pb.Change, 7));
  };
  
  
  /**
   * @param {!Array<!proto.onos.config.change.device.Change>} value
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
  */
  proto.onos.config.change.network.NetworkChange.prototype.setChangesList = function(value) {
    return jspb.Message.setRepeatedWrapperField(this, 7, value);
  };
  
  
  /**
   * @param {!proto.onos.config.change.device.Change=} opt_value
   * @param {number=} opt_index
   * @return {!proto.onos.config.change.device.Change}
   */
  proto.onos.config.change.network.NetworkChange.prototype.addChanges = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.onos.config.change.device.Change, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
   */
  proto.onos.config.change.network.NetworkChange.prototype.clearChangesList = function() {
    return this.setChangesList([]);
  };
  
  
  /**
   * repeated DeviceChangeRef refs = 8;
   * @return {!Array<!proto.onos.config.change.network.DeviceChangeRef>}
   */
  proto.onos.config.change.network.NetworkChange.prototype.getRefsList = function() {
    return /** @type{!Array<!proto.onos.config.change.network.DeviceChangeRef>} */ (
      jspb.Message.getRepeatedWrapperField(this, proto.onos.config.change.network.DeviceChangeRef, 8));
  };
  
  
  /**
   * @param {!Array<!proto.onos.config.change.network.DeviceChangeRef>} value
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
  */
  proto.onos.config.change.network.NetworkChange.prototype.setRefsList = function(value) {
    return jspb.Message.setRepeatedWrapperField(this, 8, value);
  };
  
  
  /**
   * @param {!proto.onos.config.change.network.DeviceChangeRef=} opt_value
   * @param {number=} opt_index
   * @return {!proto.onos.config.change.network.DeviceChangeRef}
   */
  proto.onos.config.change.network.NetworkChange.prototype.addRefs = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.onos.config.change.network.DeviceChangeRef, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
   */
  proto.onos.config.change.network.NetworkChange.prototype.clearRefsList = function() {
    return this.setRefsList([]);
  };
  
  
  /**
   * optional bool deleted = 9;
   * @return {boolean}
   */
  proto.onos.config.change.network.NetworkChange.prototype.getDeleted = function() {
    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
  };
  
  
  /**
   * @param {boolean} value
   * @return {!proto.onos.config.change.network.NetworkChange} returns this
   */
  proto.onos.config.change.network.NetworkChange.prototype.setDeleted = function(value) {
    return jspb.Message.setProto3BooleanField(this, 9, value);
  };
  
  
  
  
  
  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.onos.config.change.network.DeviceChangeRef.prototype.toObject = function(opt_includeInstance) {
    return proto.onos.config.change.network.DeviceChangeRef.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.onos.config.change.network.DeviceChangeRef} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.onos.config.change.network.DeviceChangeRef.toObject = function(includeInstance, msg) {
    var f, obj = {
      deviceChangeId: jspb.Message.getFieldWithDefault(msg, 1, "")
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.onos.config.change.network.DeviceChangeRef}
   */
  proto.onos.config.change.network.DeviceChangeRef.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.onos.config.change.network.DeviceChangeRef;
    return proto.onos.config.change.network.DeviceChangeRef.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.onos.config.change.network.DeviceChangeRef} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.onos.config.change.network.DeviceChangeRef}
   */
  proto.onos.config.change.network.DeviceChangeRef.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.setDeviceChangeId(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.onos.config.change.network.DeviceChangeRef.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.onos.config.change.network.DeviceChangeRef.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.onos.config.change.network.DeviceChangeRef} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.onos.config.change.network.DeviceChangeRef.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getDeviceChangeId();
    if (f.length > 0) {
      writer.writeString(
        1,
        f
      );
    }
  };
  
  
  /**
   * optional string device_change_id = 1;
   * @return {string}
   */
  proto.onos.config.change.network.DeviceChangeRef.prototype.getDeviceChangeId = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.onos.config.change.network.DeviceChangeRef} returns this
   */
  proto.onos.config.change.network.DeviceChangeRef.prototype.setDeviceChangeId = function(value) {
    return jspb.Message.setProto3StringField(this, 1, value);
  };
  
  
  goog.object.extend(exports, proto.onos.config.change.network);
  