PR #4395: Update proto definitions - offline_wire_formats.proto and connections…

Imported from GitHub PR https://github.com/google/nearby/pull/4395

…_enums.proto for WiFi Direct

<!--
  Thanks for submitting a pull request!
  We appreciate you spending the time to work on these changes. Please provide
  enough information so that others can review your pull request.
-->

## Summary

Update proto definitions - offline_wire_formats.proto and connections_enums.proto for WiFi Direct

## How did you test this change?

on test only update the proto definitions.

Copybara import of the project:

--
71aa603d4557652d87667455dc3233b8f7fd262a by Edwin Wu <edwinwu@google.com>:

Update proto definitions - offline_wire_formats.proto and connections_enums.proto for WiFi Direct

Merging this change closes #4395

PiperOrigin-RevId: 929606397
This commit is contained in:
edwinwugoog
2026-06-09 22:27:52 -07:00
committed by Copybara-Service
parent 7d647f8a85
commit e205d8a08f
6 changed files with 818 additions and 533 deletions
File diff suppressed because it is too large Load Diff
+44 -6
View File
@@ -324,18 +324,19 @@ bool Medium_Parse(
enum WifiDirectAuthType : int {
WIFI_DIRECT_TYPE_UNKNOWN = 0,
WIFI_DIRECT_WITH_PASSWORD = 1,
WIFI_DIRECT_WITH_PIN = 2,
WIFI_DIRECT_WITH_PIN [[deprecated]] = 2,
WIFI_DIRECT_WITH_DEVICE_NAME = 3,
};
extern const uint32_t WifiDirectAuthType_internal_data_[];
inline constexpr WifiDirectAuthType WifiDirectAuthType_MIN =
static_cast<WifiDirectAuthType>(0);
inline constexpr WifiDirectAuthType WifiDirectAuthType_MAX =
static_cast<WifiDirectAuthType>(2);
static_cast<WifiDirectAuthType>(3);
inline bool WifiDirectAuthType_IsValid(int value) {
return 0 <= value && value <= 2;
return 0 <= value && value <= 3;
}
inline constexpr int WifiDirectAuthType_ARRAYSIZE = 2 + 1;
inline constexpr int WifiDirectAuthType_ARRAYSIZE = 3 + 1;
const ::std::string& WifiDirectAuthType_Name(WifiDirectAuthType value);
template <typename T>
const ::std::string& WifiDirectAuthType_Name(T value) {
@@ -1272,17 +1273,54 @@ enum OperationResultCode : int {
DCT_ERROR_SERVICE_CANCELLED = 5022,
DCT_ERROR_UNVERIFIED_INTEGRITY = 5023,
DCT_ERROR_HTTP_SERVER_CLOSED = 5024,
DCT_ERROR_CHECKIN_FAILURE = 5025,
DCT_ERROR_REMOTE_ATTESTATION_TIMEOUT = 5026,
DCT_ERROR_REMOTE_ATTESTATION_NULL_PACKET = 5027,
DCT_ERROR_REMOTE_ATTESTATION_STATUS_NOT_AVAILABLE = 5028,
DCT_ERROR_REMOTE_ATTESTATION_HASH_TOO_SHORT = 5029,
DCT_ERROR_REMOTE_ATTESTATION_APPLE_INTEGRITY_UNAVAILABLE = 5030,
DCT_ERROR_LOCAL_ATTESTATION_PLAY_INTEGRITY_UNAVAILABLE = 5031,
DCT_ERROR_LOCAL_ATTESTATION_TIMEOUT = 5032,
DCT_ERROR_PARALLEL_ATTESTATION_TIMEOUT = 5033,
DCT_ERROR_REMOTE_MDNS_DISCOVERY_TIMEOUT = 5034,
DCT_ERROR_REMOTE_MDNS_REGISTER_SERVICE = 5035,
DCT_ERROR_REMOTE_REQUEST_FAILED = 5036,
DCT_ERROR_REMOTE_RESPONSE_FAILED = 5037,
DCT_ERROR_REMOTE_CONTROL_MESSAGE_EXCHANGE = 5038,
DCT_ERROR_REMOTE_CAPABILITY_MISMATCH = 5039,
DCT_ERROR_REMOTE_HIGH_SPEED_MEDIUM_UNAVAILABLE = 5040,
DCT_ERROR_REMOTE_WIFI_DISABLED = 5041,
DCT_ERROR_REMOTE_WIFI_DISCONNECTED = 5042,
DCT_ERROR_REMOTE_WIFI_CREDENTIAL_TRANSFER = 5043,
DCT_ERROR_REMOTE_WIFI_INTERNET_CONNECTION = 5044,
DCT_ERROR_REMOTE_UPGRADE_HIGH_SPEED_MEDIUM_FAILED = 5045,
DCT_ERROR_REMOTE_USER_CANCELLED = 5046,
DCT_ERROR_REMOTE_SERVICE_CANCELLED = 5047,
DCT_ERROR_REMOTE_UNVERIFIED_INTEGRITY = 5048,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_LOW_SPEED = 5049,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_CONNECTION = 5050,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_USB_NOT_PLUGGED = 5051,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_USB_NOT_HOST = 5052,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_MDNS_DISCOVERY_NOT_STARTED = 5053,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_NO_MEDIUM = 5054,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_USB_NETWORK_NOT_STARTED = 5055,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_MEDIUM_NEGOTIATION = 5056,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_HOST_NOT_STARTED = 5057,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_HOST_NETWORK_NOT_AVAILABLE = 5058,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_NO_INCOMING_HTTP_CONNECTION = 5059,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_USB_NO_CONNECTED_DEVICE = 5060,
DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_INTERRUPTED = 5061,
};
extern const uint32_t OperationResultCode_internal_data_[];
inline constexpr OperationResultCode OperationResultCode_MIN =
static_cast<OperationResultCode>(0);
inline constexpr OperationResultCode OperationResultCode_MAX =
static_cast<OperationResultCode>(5024);
static_cast<OperationResultCode>(5061);
inline bool OperationResultCode_IsValid(int value) {
return ::google::protobuf::internal::ValidateEnum(value, OperationResultCode_internal_data_);
}
inline constexpr int OperationResultCode_ARRAYSIZE = 5024 + 1;
inline constexpr int OperationResultCode_ARRAYSIZE = 5061 + 1;
const ::std::string& OperationResultCode_Name(OperationResultCode value);
template <typename T>
const ::std::string& OperationResultCode_Name(T value) {