text: // source: api/common/response_header.proto
  /**
   * @fileoverview
   * @enhanceable
   * @suppress {missingRequire} reports error on implicit type usages.
   * @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!
  /* eslint-disable */
  // @ts-nocheck
  
  var jspb = require('google-protobuf');
  var goog = jspb;
  var global = Function('return this')();
  
  var api_common_data_chunk_properties_pb = require('../../api/common/data_chunk_properties_pb.js');
  goog.object.extend(proto, api_common_data_chunk_properties_pb);
  var api_common_error_pb = require('../../api/common/error_pb.js');
  goog.object.extend(proto, api_common_error_pb);
  var api_common_trace_pb = require('../../api/common/trace_pb.js');
  goog.object.extend(proto, api_common_trace_pb);
  goog.exportSymbol('proto.api.common.ResponseHeader', 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.api.common.ResponseHeader = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.api.common.ResponseHeader, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.api.common.ResponseHeader.displayName = 'proto.api.common.ResponseHeader';
  }
  
  
  
  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.api.common.ResponseHeader.prototype.toObject = function(opt_includeInstance) {
    return proto.api.common.ResponseHeader.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.api.common.ResponseHeader} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.api.common.ResponseHeader.toObject = function(includeInstance, msg) {
    var f, obj = {
      properties: (f = msg.getProperties()) && api_common_data_chunk_properties_pb.DataChunkProperties.toObject(includeInstance, f),
      trace: (f = msg.getTrace()) && api_common_trace_pb.Trace.toObject(includeInstance, f),
      error: (f = msg.getError()) && api_common_error_pb.Error.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.api.common.ResponseHeader}
   */
  proto.api.common.ResponseHeader.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.api.common.ResponseHeader;
    return proto.api.common.ResponseHeader.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.api.common.ResponseHeader} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.api.common.ResponseHeader}
   */
  proto.api.common.ResponseHeader.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 100:
        var value = new api_common_data_chunk_properties_pb.DataChunkProperties;
        reader.readMessage(value,api_common_data_chunk_properties_pb.DataChunkProperties.deserializeBinaryFromReader);
        msg.setProperties(value);
        break;
      case 200:
        var value = new api_common_trace_pb.Trace;
        reader.readMessage(value,api_common_trace_pb.Trace.deserializeBinaryFromReader);
        msg.setTrace(value);
        break;
      case 400:
        var value = new api_common_error_pb.Error;
        reader.readMessage(value,api_common_error_pb.Error.deserializeBinaryFromReader);
        msg.setError(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.api.common.ResponseHeader.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.api.common.ResponseHeader.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.api.common.ResponseHeader} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.api.common.ResponseHeader.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getProperties();
    if (f != null) {
      writer.writeMessage(
        100,
        f,
        api_common_data_chunk_properties_pb.DataChunkProperties.serializeBinaryToWriter
      );
    }
    f = message.getTrace();
    if (f != null) {
      writer.writeMessage(
        200,
        f,
        api_common_trace_pb.Trace.serializeBinaryToWriter
      );
    }
    f = message.getError();
    if (f != null) {
      writer.writeMessage(
        400,
        f,
        api_common_error_pb.Error.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional DataChunkProperties properties = 100;
   * @return {?proto.api.common.DataChunkProperties}
   */
  proto.api.common.ResponseHeader.prototype.getProperties = function() {
    return /** @type{?proto.api.common.DataChunkProperties} */ (
      jspb.Message.getWrapperField(this, api_common_data_chunk_properties_pb.DataChunkProperties, 100));
  };
  
  
  /**
   * @param {?proto.api.common.DataChunkProperties|undefined} value
   * @return {!proto.api.common.ResponseHeader} returns this
  */
  proto.api.common.ResponseHeader.prototype.setProperties = function(value) {
    return jspb.Message.setWrapperField(this, 100, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.api.common.ResponseHeader} returns this
   */
  proto.api.common.ResponseHeader.prototype.clearProperties = function() {
    return this.setProperties(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.api.common.ResponseHeader.prototype.hasProperties = function() {
    return jspb.Message.getField(this, 100) != null;
  };
  
  
  /**
   * optional Trace trace = 200;
   * @return {?proto.api.common.Trace}
   */
  proto.api.common.ResponseHeader.prototype.getTrace = function() {
    return /** @type{?proto.api.common.Trace} */ (
      jspb.Message.getWrapperField(this, api_common_trace_pb.Trace, 200));
  };
  
  
  /**
   * @param {?proto.api.common.Trace|undefined} value
   * @return {!proto.api.common.ResponseHeader} returns this
  */
  proto.api.common.ResponseHeader.prototype.setTrace = function(value) {
    return jspb.Message.setWrapperField(this, 200, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.api.common.ResponseHeader} returns this
   */
  proto.api.common.ResponseHeader.prototype.clearTrace = function() {
    return this.setTrace(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.api.common.ResponseHeader.prototype.hasTrace = function() {
    return jspb.Message.getField(this, 200) != null;
  };
  
  
  /**
   * optional Error error = 400;
   * @return {?proto.api.common.Error}
   */
  proto.api.common.ResponseHeader.prototype.getError = function() {
    return /** @type{?proto.api.common.Error} */ (
      jspb.Message.getWrapperField(this, api_common_error_pb.Error, 400));
  };
  
  
  /**
   * @param {?proto.api.common.Error|undefined} value
   * @return {!proto.api.common.ResponseHeader} returns this
  */
  proto.api.common.ResponseHeader.prototype.setError = function(value) {
    return jspb.Message.setWrapperField(this, 400, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.api.common.ResponseHeader} returns this
   */
  proto.api.common.ResponseHeader.prototype.clearError = function() {
    return this.setError(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.api.common.ResponseHeader.prototype.hasError = function() {
    return jspb.Message.getField(this, 400) != null;
  };
  
  
  goog.object.extend(exports, proto.api.common);
  