/**
 * @fileoverview
 * @enhanceable
 * @suppress {messageConventions} JS Compiler reports an error if a variable or
 *     field starts with 'MSG_' and isn't a translatable message.
 * @public
 */
// GENERATED CODE -- DO NOT EDIT!

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

goog.exportSymbol('proto.ubii.servers.Server', 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.ubii.servers.Server = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ubii.servers.Server, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  proto.ubii.servers.Server.displayName = 'proto.ubii.servers.Server';
}


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.ubii.servers.Server.prototype.toObject = function(opt_includeInstance) {
  return proto.ubii.servers.Server.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.ubii.servers.Server} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.ubii.servers.Server.toObject = function(includeInstance, msg) {
  var f, obj = {
    id: jspb.Message.getFieldWithDefault(msg, 1, ""),
    name: jspb.Message.getFieldWithDefault(msg, 2, ""),
    ipEthernet: jspb.Message.getFieldWithDefault(msg, 3, ""),
    ipWlan: jspb.Message.getFieldWithDefault(msg, 4, ""),
    portServiceZmq: jspb.Message.getFieldWithDefault(msg, 5, ""),
    portServiceRest: jspb.Message.getFieldWithDefault(msg, 6, ""),
    portTopicDataZmq: jspb.Message.getFieldWithDefault(msg, 7, ""),
    portTopicDataWs: jspb.Message.getFieldWithDefault(msg, 8, ""),
    constantsJson: jspb.Message.getFieldWithDefault(msg, 9, "")
  };

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


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


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.ubii.servers.Server} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.ubii.servers.Server}
 */
proto.ubii.servers.Server.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.setName(value);
      break;
    case 3:
      var value = /** @type {string} */ (reader.readString());
      msg.setIpEthernet(value);
      break;
    case 4:
      var value = /** @type {string} */ (reader.readString());
      msg.setIpWlan(value);
      break;
    case 5:
      var value = /** @type {string} */ (reader.readString());
      msg.setPortServiceZmq(value);
      break;
    case 6:
      var value = /** @type {string} */ (reader.readString());
      msg.setPortServiceRest(value);
      break;
    case 7:
      var value = /** @type {string} */ (reader.readString());
      msg.setPortTopicDataZmq(value);
      break;
    case 8:
      var value = /** @type {string} */ (reader.readString());
      msg.setPortTopicDataWs(value);
      break;
    case 9:
      var value = /** @type {string} */ (reader.readString());
      msg.setConstantsJson(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.ubii.servers.Server} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.ubii.servers.Server.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getId();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getName();
  if (f.length > 0) {
    writer.writeString(
      2,
      f
    );
  }
  f = message.getIpEthernet();
  if (f.length > 0) {
    writer.writeString(
      3,
      f
    );
  }
  f = message.getIpWlan();
  if (f.length > 0) {
    writer.writeString(
      4,
      f
    );
  }
  f = message.getPortServiceZmq();
  if (f.length > 0) {
    writer.writeString(
      5,
      f
    );
  }
  f = message.getPortServiceRest();
  if (f.length > 0) {
    writer.writeString(
      6,
      f
    );
  }
  f = message.getPortTopicDataZmq();
  if (f.length > 0) {
    writer.writeString(
      7,
      f
    );
  }
  f = message.getPortTopicDataWs();
  if (f.length > 0) {
    writer.writeString(
      8,
      f
    );
  }
  f = message.getConstantsJson();
  if (f.length > 0) {
    writer.writeString(
      9,
      f
    );
  }
};


/**
 * optional string id = 1;
 * @return {string}
 */
proto.ubii.servers.Server.prototype.getId = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/** @param {string} value */
proto.ubii.servers.Server.prototype.setId = function(value) {
  jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * optional string name = 2;
 * @return {string}
 */
proto.ubii.servers.Server.prototype.getName = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};


/** @param {string} value */
proto.ubii.servers.Server.prototype.setName = function(value) {
  jspb.Message.setProto3StringField(this, 2, value);
};


/**
 * optional string ip_ethernet = 3;
 * @return {string}
 */
proto.ubii.servers.Server.prototype.getIpEthernet = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};


/** @param {string} value */
proto.ubii.servers.Server.prototype.setIpEthernet = function(value) {
  jspb.Message.setProto3StringField(this, 3, value);
};


/**
 * optional string ip_wlan = 4;
 * @return {string}
 */
proto.ubii.servers.Server.prototype.getIpWlan = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};


/** @param {string} value */
proto.ubii.servers.Server.prototype.setIpWlan = function(value) {
  jspb.Message.setProto3StringField(this, 4, value);
};


/**
 * optional string port_service_zmq = 5;
 * @return {string}
 */
proto.ubii.servers.Server.prototype.getPortServiceZmq = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};


/** @param {string} value */
proto.ubii.servers.Server.prototype.setPortServiceZmq = function(value) {
  jspb.Message.setProto3StringField(this, 5, value);
};


/**
 * optional string port_service_rest = 6;
 * @return {string}
 */
proto.ubii.servers.Server.prototype.getPortServiceRest = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};


/** @param {string} value */
proto.ubii.servers.Server.prototype.setPortServiceRest = function(value) {
  jspb.Message.setProto3StringField(this, 6, value);
};


/**
 * optional string port_topic_data_zmq = 7;
 * @return {string}
 */
proto.ubii.servers.Server.prototype.getPortTopicDataZmq = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};


/** @param {string} value */
proto.ubii.servers.Server.prototype.setPortTopicDataZmq = function(value) {
  jspb.Message.setProto3StringField(this, 7, value);
};


/**
 * optional string port_topic_data_ws = 8;
 * @return {string}
 */
proto.ubii.servers.Server.prototype.getPortTopicDataWs = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};


/** @param {string} value */
proto.ubii.servers.Server.prototype.setPortTopicDataWs = function(value) {
  jspb.Message.setProto3StringField(this, 8, value);
};


/**
 * optional string constants_json = 9;
 * @return {string}
 */
proto.ubii.servers.Server.prototype.getConstantsJson = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};


/** @param {string} value */
proto.ubii.servers.Server.prototype.setConstantsJson = function(value) {
  jspb.Message.setProto3StringField(this, 9, value);
};


goog.object.extend(exports, proto.ubii.servers);
