// Generated by the proto_extras plugin. DO NOT EDIT!
// source: components/enterprise/common/proto/connectors.proto

#include "components/enterprise/common/proto/connectors.equal.h"



#include "components/enterprise/common/proto/connectors.pb.h"
#include "components/safe_browsing/core/common/proto/csd.equal.h"
#include "components/safe_browsing/core/common/proto/csd.pb.h"


namespace enterprise_connectors {
bool operator==(const ContentMetaData& lhs, const ContentMetaData& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_url() != rhs.has_url()) return false;
  if (lhs.has_url() && lhs.url() != rhs.url()) return false;
  if (lhs.has_filename() != rhs.has_filename()) return false;
  if (lhs.has_filename() && lhs.filename() != rhs.filename()) return false;
  if (lhs.has_digest() != rhs.has_digest()) return false;
  if (lhs.has_digest() && lhs.digest() != rhs.digest()) return false;
  if (lhs.has_csd() != rhs.has_csd()) return false;
  if (lhs.has_csd() && lhs.csd() != rhs.csd()) return false;
  if (lhs.has_email() != rhs.has_email()) return false;
  if (lhs.has_email() && lhs.email() != rhs.email()) return false;
  if (lhs.has_content_type() != rhs.has_content_type()) return false;
  if (lhs.has_content_type() && lhs.content_type() != rhs.content_type()) return false;
  if (lhs.has_source() != rhs.has_source()) return false;
  if (lhs.has_source() && lhs.source() != rhs.source()) return false;
  if (lhs.has_destination() != rhs.has_destination()) return false;
  if (lhs.has_destination() && lhs.destination() != rhs.destination()) return false;
  if (lhs.has_tab_title() != rhs.has_tab_title()) return false;
  if (lhs.has_tab_title() && lhs.tab_title() != rhs.tab_title()) return false;
  if (lhs.has_tab_url() != rhs.has_tab_url()) return false;
  if (lhs.has_tab_url() && lhs.tab_url() != rhs.tab_url()) return false;
  if (lhs.has_print_metadata() != rhs.has_print_metadata()) return false;
  if (lhs.has_print_metadata() && lhs.print_metadata() != rhs.print_metadata()) return false;
  if (lhs.has_decryption_key() != rhs.has_decryption_key()) return false;
  if (lhs.has_decryption_key() && lhs.decryption_key() != rhs.decryption_key()) return false;
  if (lhs.has_copied_text_source() != rhs.has_copied_text_source()) return false;
  if (lhs.has_copied_text_source() && lhs.copied_text_source() != rhs.copied_text_source()) return false;
  if (lhs.referrer_chain().size() != rhs.referrer_chain().size()) return false;
  for (int i = 0; i < lhs.referrer_chain().size(); ++i) {
    if (lhs.referrer_chain()[i] != rhs.referrer_chain()[i]) return false;
  }
  if (lhs.has_content_area_account_email() != rhs.has_content_area_account_email()) return false;
  if (lhs.has_content_area_account_email() && lhs.content_area_account_email() != rhs.content_area_account_email()) return false;
  if (lhs.has_source_content_area_account_email() != rhs.has_source_content_area_account_email()) return false;
  if (lhs.has_source_content_area_account_email() && lhs.source_content_area_account_email() != rhs.source_content_area_account_email()) return false;
  if (lhs.frame_url_chain().size() != rhs.frame_url_chain().size()) return false;
  for (int i = 0; i < lhs.frame_url_chain().size(); ++i) {
    if (lhs.frame_url_chain()[i] != rhs.frame_url_chain()[i]) return false;
  }
  if (lhs.has_file_size() != rhs.has_file_size()) return false;
  if (lhs.has_file_size() && lhs.file_size() != rhs.file_size()) return false;
  return true;
}

bool operator!=(const ContentMetaData& lhs, const ContentMetaData& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ContentMetaData_PrintMetadata& lhs, const ContentMetaData_PrintMetadata& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_printer_name() != rhs.has_printer_name()) return false;
  if (lhs.has_printer_name() && lhs.printer_name() != rhs.printer_name()) return false;
  if (lhs.has_printer_type() != rhs.has_printer_type()) return false;
  if (lhs.has_printer_type() && lhs.printer_type() != rhs.printer_type()) return false;
  return true;
}

bool operator!=(const ContentMetaData_PrintMetadata& lhs, const ContentMetaData_PrintMetadata& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ContentMetaData_CopiedTextSource& lhs, const ContentMetaData_CopiedTextSource& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_url() != rhs.has_url()) return false;
  if (lhs.has_url() && lhs.url() != rhs.url()) return false;
  if (lhs.has_context() != rhs.has_context()) return false;
  if (lhs.has_context() && lhs.context() != rhs.context()) return false;
  return true;
}

bool operator!=(const ContentMetaData_CopiedTextSource& lhs, const ContentMetaData_CopiedTextSource& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ClientMetadata& lhs, const ClientMetadata& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_browser() != rhs.has_browser()) return false;
  if (lhs.has_browser() && lhs.browser() != rhs.browser()) return false;
  if (lhs.has_device() != rhs.has_device()) return false;
  if (lhs.has_device() && lhs.device() != rhs.device()) return false;
  if (lhs.has_profile() != rhs.has_profile()) return false;
  if (lhs.has_profile() && lhs.profile() != rhs.profile()) return false;
  if (lhs.has_is_chrome_os_managed_guest_session() != rhs.has_is_chrome_os_managed_guest_session()) return false;
  if (lhs.has_is_chrome_os_managed_guest_session() && lhs.is_chrome_os_managed_guest_session() != rhs.is_chrome_os_managed_guest_session()) return false;
  return true;
}

bool operator!=(const ClientMetadata& lhs, const ClientMetadata& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ClientMetadata_Browser& lhs, const ClientMetadata_Browser& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_browser_id() != rhs.has_browser_id()) return false;
  if (lhs.has_browser_id() && lhs.browser_id() != rhs.browser_id()) return false;
  if (lhs.has_user_agent() != rhs.has_user_agent()) return false;
  if (lhs.has_user_agent() && lhs.user_agent() != rhs.user_agent()) return false;
  if (lhs.has_chrome_version() != rhs.has_chrome_version()) return false;
  if (lhs.has_chrome_version() && lhs.chrome_version() != rhs.chrome_version()) return false;
  if (lhs.has_machine_user() != rhs.has_machine_user()) return false;
  if (lhs.has_machine_user() && lhs.machine_user() != rhs.machine_user()) return false;
  return true;
}

bool operator!=(const ClientMetadata_Browser& lhs, const ClientMetadata_Browser& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ClientMetadata_Device& lhs, const ClientMetadata_Device& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_dm_token() != rhs.has_dm_token()) return false;
  if (lhs.has_dm_token() && lhs.dm_token() != rhs.dm_token()) return false;
  if (lhs.has_client_id() != rhs.has_client_id()) return false;
  if (lhs.has_client_id() && lhs.client_id() != rhs.client_id()) return false;
  if (lhs.has_os_version() != rhs.has_os_version()) return false;
  if (lhs.has_os_version() && lhs.os_version() != rhs.os_version()) return false;
  if (lhs.has_os_platform() != rhs.has_os_platform()) return false;
  if (lhs.has_os_platform() && lhs.os_platform() != rhs.os_platform()) return false;
  if (lhs.has_name() != rhs.has_name()) return false;
  if (lhs.has_name() && lhs.name() != rhs.name()) return false;
  if (lhs.has_device_fqdn() != rhs.has_device_fqdn()) return false;
  if (lhs.has_device_fqdn() && lhs.device_fqdn() != rhs.device_fqdn()) return false;
  if (lhs.has_network_name() != rhs.has_network_name()) return false;
  if (lhs.has_network_name() && lhs.network_name() != rhs.network_name()) return false;
  return true;
}

bool operator!=(const ClientMetadata_Device& lhs, const ClientMetadata_Device& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ClientMetadata_Profile& lhs, const ClientMetadata_Profile& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_dm_token() != rhs.has_dm_token()) return false;
  if (lhs.has_dm_token() && lhs.dm_token() != rhs.dm_token()) return false;
  if (lhs.has_gaia_email() != rhs.has_gaia_email()) return false;
  if (lhs.has_gaia_email() && lhs.gaia_email() != rhs.gaia_email()) return false;
  if (lhs.has_profile_path() != rhs.has_profile_path()) return false;
  if (lhs.has_profile_path() && lhs.profile_path() != rhs.profile_path()) return false;
  if (lhs.has_profile_name() != rhs.has_profile_name()) return false;
  if (lhs.has_profile_name() && lhs.profile_name() != rhs.profile_name()) return false;
  if (lhs.has_client_id() != rhs.has_client_id()) return false;
  if (lhs.has_client_id() && lhs.client_id() != rhs.client_id()) return false;
  return true;
}

bool operator!=(const ClientMetadata_Profile& lhs, const ClientMetadata_Profile& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ContentAnalysisRequest& lhs, const ContentAnalysisRequest& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.content_data_case() != rhs.content_data_case()) return false;
  switch (lhs.content_data_case()) {
    case ContentAnalysisRequest::kTextContent:
      if (lhs.text_content() != rhs.text_content()) return false;
      break;
    case ContentAnalysisRequest::kFilePath:
      if (lhs.file_path() != rhs.file_path()) return false;
      break;
    case ContentAnalysisRequest::CONTENT_DATA_NOT_SET:
      break;
  }
  if (lhs.has_device_token() != rhs.has_device_token()) return false;
  if (lhs.has_device_token() && lhs.device_token() != rhs.device_token()) return false;
  if (lhs.has_request_token() != rhs.has_request_token()) return false;
  if (lhs.has_request_token() && lhs.request_token() != rhs.request_token()) return false;
  if (lhs.has_analysis_connector() != rhs.has_analysis_connector()) return false;
  if (lhs.has_analysis_connector() && lhs.analysis_connector() != rhs.analysis_connector()) return false;
  if (lhs.has_request_data() != rhs.has_request_data()) return false;
  if (lhs.has_request_data() && lhs.request_data() != rhs.request_data()) return false;
  if (lhs.tags().size() != rhs.tags().size()) return false;
  for (int i = 0; i < lhs.tags().size(); ++i) {
    if (lhs.tags()[i] != rhs.tags()[i]) return false;
  }
  if (lhs.has_client_metadata() != rhs.has_client_metadata()) return false;
  if (lhs.has_client_metadata() && lhs.client_metadata() != rhs.client_metadata()) return false;
  if (lhs.has_expires_at() != rhs.has_expires_at()) return false;
  if (lhs.has_expires_at() && lhs.expires_at() != rhs.expires_at()) return false;
  if (lhs.has_user_action_id() != rhs.has_user_action_id()) return false;
  if (lhs.has_user_action_id() && lhs.user_action_id() != rhs.user_action_id()) return false;
  if (lhs.has_user_action_requests_count() != rhs.has_user_action_requests_count()) return false;
  if (lhs.has_user_action_requests_count() && lhs.user_action_requests_count() != rhs.user_action_requests_count()) return false;
  if (lhs.has_reason() != rhs.has_reason()) return false;
  if (lhs.has_reason() && lhs.reason() != rhs.reason()) return false;
  if (lhs.has_blocking() != rhs.has_blocking()) return false;
  if (lhs.has_blocking() && lhs.blocking() != rhs.blocking()) return false;
  if (lhs.local_ips().size() != rhs.local_ips().size()) return false;
  for (int i = 0; i < lhs.local_ips().size(); ++i) {
    if (lhs.local_ips()[i] != rhs.local_ips()[i]) return false;
  }
  if (lhs.has_is_content_encrypted() != rhs.has_is_content_encrypted()) return false;
  if (lhs.has_is_content_encrypted() && lhs.is_content_encrypted() != rhs.is_content_encrypted()) return false;
  if (lhs.has_content_hash_in_final_call() != rhs.has_content_hash_in_final_call()) return false;
  if (lhs.has_content_hash_in_final_call() && lhs.content_hash_in_final_call() != rhs.content_hash_in_final_call()) return false;
  if (lhs.has_is_mobile() != rhs.has_is_mobile()) return false;
  if (lhs.has_is_mobile() && lhs.is_mobile() != rhs.is_mobile()) return false;
  return true;
}

bool operator!=(const ContentAnalysisRequest& lhs, const ContentAnalysisRequest& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ContentAnalysisResponse& lhs, const ContentAnalysisResponse& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_request_token() != rhs.has_request_token()) return false;
  if (lhs.has_request_token() && lhs.request_token() != rhs.request_token()) return false;
  if (lhs.results().size() != rhs.results().size()) return false;
  for (int i = 0; i < lhs.results().size(); ++i) {
    if (lhs.results()[i] != rhs.results()[i]) return false;
  }
  return true;
}

bool operator!=(const ContentAnalysisResponse& lhs, const ContentAnalysisResponse& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ContentAnalysisResponse_Result& lhs, const ContentAnalysisResponse_Result& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_tag() != rhs.has_tag()) return false;
  if (lhs.has_tag() && lhs.tag() != rhs.tag()) return false;
  if (lhs.has_status() != rhs.has_status()) return false;
  if (lhs.has_status() && lhs.status() != rhs.status()) return false;
  if (lhs.triggered_rules().size() != rhs.triggered_rules().size()) return false;
  for (int i = 0; i < lhs.triggered_rules().size(); ++i) {
    if (lhs.triggered_rules()[i] != rhs.triggered_rules()[i]) return false;
  }
  if (lhs.has_custom_message() != rhs.has_custom_message()) return false;
  if (lhs.has_custom_message() && lhs.custom_message() != rhs.custom_message()) return false;
  if (lhs.has_status_error_message() != rhs.has_status_error_message()) return false;
  if (lhs.has_status_error_message() && lhs.status_error_message() != rhs.status_error_message()) return false;
  return true;
}

bool operator!=(const ContentAnalysisResponse_Result& lhs, const ContentAnalysisResponse_Result& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ContentAnalysisResponse_Result_CustomMessage& lhs, const ContentAnalysisResponse_Result_CustomMessage& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_learn_more_url() != rhs.has_learn_more_url()) return false;
  if (lhs.has_learn_more_url() && lhs.learn_more_url() != rhs.learn_more_url()) return false;
  if (lhs.has_message() != rhs.has_message()) return false;
  if (lhs.has_message() && lhs.message() != rhs.message()) return false;
  return true;
}

bool operator!=(const ContentAnalysisResponse_Result_CustomMessage& lhs, const ContentAnalysisResponse_Result_CustomMessage& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ContentAnalysisResponse_Result_TriggeredRule& lhs, const ContentAnalysisResponse_Result_TriggeredRule& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_action() != rhs.has_action()) return false;
  if (lhs.has_action() && lhs.action() != rhs.action()) return false;
  if (lhs.has_rule_name() != rhs.has_rule_name()) return false;
  if (lhs.has_rule_name() && lhs.rule_name() != rhs.rule_name()) return false;
  if (lhs.has_rule_id() != rhs.has_rule_id()) return false;
  if (lhs.has_rule_id() && lhs.rule_id() != rhs.rule_id()) return false;
  if (lhs.has_custom_message() != rhs.has_custom_message()) return false;
  if (lhs.has_custom_message() && lhs.custom_message() != rhs.custom_message()) return false;
  if (lhs.has_url_category() != rhs.has_url_category()) return false;
  if (lhs.has_url_category() && lhs.url_category() != rhs.url_category()) return false;
  if (lhs.has_custom_rule_message() != rhs.has_custom_rule_message()) return false;
  if (lhs.has_custom_rule_message() && lhs.custom_rule_message() != rhs.custom_rule_message()) return false;
  if (lhs.has_force_save_to_cloud_destination() != rhs.has_force_save_to_cloud_destination()) return false;
  if (lhs.has_force_save_to_cloud_destination() && lhs.force_save_to_cloud_destination() != rhs.force_save_to_cloud_destination()) return false;
  return true;
}

bool operator!=(const ContentAnalysisResponse_Result_TriggeredRule& lhs, const ContentAnalysisResponse_Result_TriggeredRule& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ContentAnalysisResponse_Result_TriggeredRule_CustomRuleMessageSegment& lhs, const ContentAnalysisResponse_Result_TriggeredRule_CustomRuleMessageSegment& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_text() != rhs.has_text()) return false;
  if (lhs.has_text() && lhs.text() != rhs.text()) return false;
  if (lhs.has_link() != rhs.has_link()) return false;
  if (lhs.has_link() && lhs.link() != rhs.link()) return false;
  return true;
}

bool operator!=(const ContentAnalysisResponse_Result_TriggeredRule_CustomRuleMessageSegment& lhs, const ContentAnalysisResponse_Result_TriggeredRule_CustomRuleMessageSegment& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ContentAnalysisResponse_Result_TriggeredRule_CustomRuleMessage& lhs, const ContentAnalysisResponse_Result_TriggeredRule_CustomRuleMessage& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.message_segments().size() != rhs.message_segments().size()) return false;
  for (int i = 0; i < lhs.message_segments().size(); ++i) {
    if (lhs.message_segments()[i] != rhs.message_segments()[i]) return false;
  }
  return true;
}

bool operator!=(const ContentAnalysisResponse_Result_TriggeredRule_CustomRuleMessage& lhs, const ContentAnalysisResponse_Result_TriggeredRule_CustomRuleMessage& rhs) {
  return !(lhs == rhs);
}
bool operator==(const ContentAnalysisAcknowledgement& lhs, const ContentAnalysisAcknowledgement& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_request_token() != rhs.has_request_token()) return false;
  if (lhs.has_request_token() && lhs.request_token() != rhs.request_token()) return false;
  if (lhs.has_status() != rhs.has_status()) return false;
  if (lhs.has_status() && lhs.status() != rhs.status()) return false;
  if (lhs.has_final_action() != rhs.has_final_action()) return false;
  if (lhs.has_final_action() && lhs.final_action() != rhs.final_action()) return false;
  return true;
}

bool operator!=(const ContentAnalysisAcknowledgement& lhs, const ContentAnalysisAcknowledgement& rhs) {
  return !(lhs == rhs);
}
}  // namespace enterprise_connectors

