diff --git a/examples/android/RunAnywhereAI/app/src/main/AndroidManifest.xml b/examples/android/RunAnywhereAI/app/src/main/AndroidManifest.xml
index d9e2c47e92..2c192735c6 100644
--- a/examples/android/RunAnywhereAI/app/src/main/AndroidManifest.xml
+++ b/examples/android/RunAnywhereAI/app/src/main/AndroidManifest.xml
@@ -4,6 +4,8 @@
+
+
NSSupportsLiveActivities
diff --git a/examples/react-native/RunAnywhereAI/android/app/src/main/AndroidManifest.xml b/examples/react-native/RunAnywhereAI/android/app/src/main/AndroidManifest.xml
index 814d0a2f4d..687097f163 100644
--- a/examples/react-native/RunAnywhereAI/android/app/src/main/AndroidManifest.xml
+++ b/examples/react-native/RunAnywhereAI/android/app/src/main/AndroidManifest.xml
@@ -1,6 +1,8 @@
+
+
diff --git a/examples/react-native/RunAnywhereAI/ios/RunAnywhereAI/Info.plist b/examples/react-native/RunAnywhereAI/ios/RunAnywhereAI/Info.plist
index 1b80e65c17..a3a6a14d20 100644
--- a/examples/react-native/RunAnywhereAI/ios/RunAnywhereAI/Info.plist
+++ b/examples/react-native/RunAnywhereAI/ios/RunAnywhereAI/Info.plist
@@ -33,6 +33,12 @@
Vision AI needs camera access to describe what you see
NSMicrophoneUsageDescription
RunAnywhere needs access to your microphone for speech-to-text transcription.
+ NSLocalNetworkUsageDescription
+ RunAnywhere searches for a language-model host only when you choose Find Host.
+ NSBonjourServices
+
+ _runanywhere-connect._tcp
+
NSPhotoLibraryUsageDescription
Vision AI needs photo library access to describe images
NSSpeechRecognitionUsageDescription
diff --git a/examples/react-native/RunAnywhereAI/package.json b/examples/react-native/RunAnywhereAI/package.json
index d565f656a3..f0a2ac75f0 100644
--- a/examples/react-native/RunAnywhereAI/package.json
+++ b/examples/react-native/RunAnywhereAI/package.json
@@ -49,9 +49,11 @@
"react-native-safe-area-context": "^5.6.2",
"react-native-screens": "~4.18.0",
"react-native-svg": "^15.15.5",
+ "react-native-tcp-socket": "^6.4.1",
"react-native-vector-icons": "^10.3.0",
"react-native-vision-camera": "^4.7.3",
"react-native-worklets": "^0.9.2",
+ "react-native-zeroconf": "^0.14.0",
"zustand": "^5.0.13"
},
"devDependencies": {
diff --git a/examples/react-native/RunAnywhereAI/src/components/model/ModelSelectionSheet.tsx b/examples/react-native/RunAnywhereAI/src/components/model/ModelSelectionSheet.tsx
index 4ac22ca601..1779cf6dfc 100644
--- a/examples/react-native/RunAnywhereAI/src/components/model/ModelSelectionSheet.tsx
+++ b/examples/react-native/RunAnywhereAI/src/components/model/ModelSelectionSheet.tsx
@@ -32,6 +32,7 @@ import {
getPrimaryFramework,
} from '../../utils/modelDisplay';
import { RunAnywhere } from '@runanywhere/core';
+import type { ConnectHost } from '@runanywhere/core';
import {
InferenceFramework,
ModelCategory,
@@ -42,6 +43,7 @@ import {
subscribeNpuCatalog,
} from '../../services/NpuModelCatalog';
import { listVisibleCatalogModels } from '../../services/ModelRegistryQueries';
+import { ConnectService } from '../../services/ConnectService';
const downloadModelStreamHelper = RunAnywhere.downloadModelStream;
@@ -190,6 +192,23 @@ export const ModelSelectionSheet: React.FC = ({
getNpuCatalogSnapshot,
getNpuCatalogSnapshot
);
+ const connectState = useSyncExternalStore(
+ ConnectService.subscribe,
+ ConnectService.getSnapshot,
+ ConnectService.getSnapshot
+ );
+
+ const handleConnect = useCallback(
+ async (host: ConnectHost) => {
+ try {
+ await ConnectService.connect(host);
+ onClose();
+ } catch (error) {
+ console.error('[ModelSelectionSheet] Connect failed:', error);
+ }
+ },
+ [onClose]
+ );
const loadData = useCallback(async () => {
setIsLoading(true);
@@ -266,6 +285,9 @@ export const ModelSelectionSheet: React.FC = ({
setLoadingId(model.id);
try {
await onModelSelected(model);
+ if (context === ModelSelectionContext.LLM) {
+ ConnectService.disconnect();
+ }
setActiveId(model.id);
if (isRAGContext(context)) onClose();
} catch (error) {
@@ -443,7 +465,10 @@ export const ModelSelectionSheet: React.FC = ({
{title}
{list.map((m) => renderRow(m, ready))}
@@ -458,18 +483,199 @@ export const ModelSelectionSheet: React.FC = ({
>
{getContextTitle(context)}
+ {context === ModelSelectionContext.LLM && (
+
+
+ Connect
+
+
+ {connectState.status === 'connected' ? (
+
+
+
+
+
+
+ {connectState.activeHost?.displayName || 'Connected Host'}
+
+
+ {connectState.activeModel?.displayName ||
+ 'Hosted language model'}
+
+
+
+ Use
+
+
+ ) : connectState.availableHosts.length === 0 ? (
+ {
+ ConnectService.findHosts().catch(() => undefined);
+ }}
+ disabled={connectState.status === 'discovering'}
+ >
+
+
+
+
+
+ {connectState.status === 'discovering'
+ ? 'Looking for Hosts'
+ : connectState.status === 'disconnected'
+ ? 'Find a Host again'
+ : 'Connect to a Host'}
+
+
+ {connectState.message ||
+ 'Use a language model hosted on your local network'}
+
+
+ {connectState.status === 'discovering' ? (
+
+ ) : (
+
+ {connectState.status === 'disconnected' ||
+ connectState.status === 'failed'
+ ? 'Retry'
+ : 'Find Host'}
+
+ )}
+
+ ) : (
+ connectState.availableHosts.map((host) => (
+ {
+ handleConnect(host).catch(() => undefined);
+ }}
+ disabled={connectState.status === 'connecting'}
+ >
+
+
+
+
+
+ {host.displayName}
+
+
+ Language model available on this host
+
+
+ {connectState.status === 'connecting' ? (
+
+ ) : (
+
+ Connect
+
+ )}
+
+ ))
+ )}
+
+
+ )}
{isLoading ? (
Loading models…
@@ -484,7 +690,10 @@ export const ModelSelectionSheet: React.FC = ({
>
@@ -551,7 +760,8 @@ export const ModelSelectionSheet: React.FC = ({
{ color: colors.onPrimaryContainer },
]}
>
- {formatBytes(storage?.totalModelsBytes ?? 0)} in models · {onDeviceModels.length} on device
+ {formatBytes(storage?.totalModelsBytes ?? 0)} in models ·{' '}
+ {onDeviceModels.length} on device
@@ -664,6 +874,13 @@ const styles = StyleSheet.create({
paddingHorizontal: 12,
paddingVertical: 12,
},
+ connectRow: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: 12,
+ paddingHorizontal: 12,
+ paddingVertical: 14,
+ },
tile: {
width: 40,
height: 40,
diff --git a/examples/react-native/RunAnywhereAI/src/screens/ChatScreen.tsx b/examples/react-native/RunAnywhereAI/src/screens/ChatScreen.tsx
index 6e2092a7d2..b91848244b 100644
--- a/examples/react-native/RunAnywhereAI/src/screens/ChatScreen.tsx
+++ b/examples/react-native/RunAnywhereAI/src/screens/ChatScreen.tsx
@@ -21,7 +21,13 @@
* Reference: iOS examples/ios/RunAnywhereAI/RunAnywhereAI/Features/Chat/Views/ChatInterfaceView.swift
*/
-import React, { useState, useRef, useCallback, useEffect } from 'react';
+import React, {
+ useState,
+ useRef,
+ useCallback,
+ useEffect,
+ useSyncExternalStore,
+} from 'react';
import {
View,
Text,
@@ -63,6 +69,7 @@ import { getPrimaryFramework } from '../utils/modelDisplay';
// Import RunAnywhere SDK (Multi-Package Architecture)
import { RunAnywhere } from '@runanywhere/core';
+import { ConnectService } from '../services/ConnectService';
import { LLMGenerationOptions } from '@runanywhere/proto-ts/llm_options';
import {
ToolCallFormatName,
@@ -139,6 +146,12 @@ export const ChatScreen: React.FC = () => {
// LoRA adapter management (mirrors iOS LLMViewModel.loraAdapters).
const [showLoRASheet, setShowLoRASheet] = useState(false);
const [loraAdapterCount, setLoraAdapterCount] = useState(0);
+ const connectState = useSyncExternalStore(
+ ConnectService.subscribe,
+ ConnectService.getSnapshot,
+ ConnectService.getSnapshot
+ );
+ const [showConnectBanner, setShowConnectBanner] = useState(false);
// Refs
const flatListRef = useRef(null);
@@ -147,6 +160,20 @@ export const ChatScreen: React.FC = () => {
// Safe area insets for header status bar handling
const insets = useSafeAreaInsets();
+ useEffect(() => {
+ if (
+ connectState.status !== 'connected' &&
+ connectState.status !== 'disconnected' &&
+ connectState.status !== 'failed'
+ ) {
+ return;
+ }
+ setShowConnectBanner(true);
+ if (connectState.status !== 'connected') return;
+ const timer = setTimeout(() => setShowConnectBanner(false), 6000);
+ return () => clearTimeout(timer);
+ }, [connectState.status, connectState.activeHost?.id, connectState.message]);
+
// Initialize conversation store and create first conversation
useEffect(() => {
const init = async () => {
@@ -357,10 +384,10 @@ export const ChatScreen: React.FC = () => {
const handleToggleTools = useCallback(() => {
setToolsEnabled((prev) => {
const next = !prev;
- void AsyncStorage.setItem(
+ AsyncStorage.setItem(
APP_STORAGE_KEYS.TOOL_CALLING_ENABLED,
next ? 'true' : 'false'
- );
+ ).catch(() => undefined);
return next;
});
}, []);
@@ -378,7 +405,14 @@ export const ChatScreen: React.FC = () => {
const text = (
typeof promptOverride === 'string' ? promptOverride : inputText
).trim();
- if (isLoading || !text || !currentConversation) return;
+ const hostedModel = connectState.activeModel;
+ if (
+ isLoading ||
+ !text ||
+ !currentConversation ||
+ (!currentModel && !hostedModel)
+ )
+ return;
const userMessage: Message = {
id: generateId(),
@@ -413,7 +447,8 @@ export const ChatScreen: React.FC = () => {
);
const registeredTools = await RunAnywhere.getRegisteredTools();
- const shouldUseTools = toolsEnabled && registeredTools.length > 0;
+ const shouldUseTools =
+ !hostedModel && toolsEnabled && registeredTools.length > 0;
const supportsThinking = currentModel?.supportsThinking ?? false;
const wasThinkingMode = supportsThinking && options.thinkingModeEnabled;
const disableThinking =
@@ -442,9 +477,14 @@ export const ChatScreen: React.FC = () => {
disableThinking,
});
- const frameworkName = RunAnywhere.formatFramework(
- currentModel?.preferredFramework ?? currentModel?.framework
- );
+ const activeModelId = hostedModel?.id || currentModel?.id || 'unknown';
+ const activeModelName =
+ hostedModel?.displayName || currentModel?.name || 'Unknown Model';
+ const frameworkName = hostedModel?.framework
+ ? hostedModel.framework
+ : RunAnywhere.formatFramework(
+ currentModel?.preferredFramework ?? currentModel?.framework
+ );
// Insert the initial empty assistant message once (matches iOS two-phase pattern).
const initialAssistantMessage: Message = {
@@ -454,8 +494,8 @@ export const ChatScreen: React.FC = () => {
timestamp: new Date(),
isStreaming: true,
modelInfo: {
- modelId: currentModel?.id || 'unknown',
- modelName: currentModel?.name || 'Unknown Model',
+ modelId: activeModelId,
+ modelName: activeModelName,
framework: frameworkName,
frameworkDisplayName: frameworkName,
},
@@ -531,7 +571,18 @@ export const ChatScreen: React.FC = () => {
// Stream tokens as they arrive — canonical cross-SDK path. We drive
// the SDK's `aggregateStream(prompt, events, onToken)` helper exactly
// like iOS LLMViewModel+Generation.swift.
- const eventStream = RunAnywhere.generateStream(prompt, genOptions);
+ const eventStream = hostedModel
+ ? ConnectService.session.generateStream({
+ prompt,
+ emitThoughts: options.thinkingModeEnabled,
+ requestId: assistantMessageId,
+ modelId: hostedModel.id,
+ conversationId: currentConversation.id,
+ metadata: {},
+ options: genOptions,
+ history: [],
+ })
+ : RunAnywhere.generateStream(prompt, genOptions);
const result = await RunAnywhere.aggregateStream(
prompt,
eventStream,
@@ -545,8 +596,8 @@ export const ChatScreen: React.FC = () => {
timestamp: new Date(),
isStreaming: true,
modelInfo: {
- modelId: currentModel?.id || 'unknown',
- modelName: currentModel?.name || 'Unknown Model',
+ modelId: activeModelId,
+ modelName: activeModelName,
framework: frameworkName,
frameworkDisplayName: frameworkName,
},
@@ -570,8 +621,8 @@ export const ChatScreen: React.FC = () => {
thinkingContent: result.thinkingContent,
timestamp: new Date(),
modelInfo: {
- modelId: currentModel?.id || 'unknown',
- modelName: currentModel?.name || 'Unknown Model',
+ modelId: activeModelId,
+ modelName: activeModelName,
framework: frameworkName,
frameworkDisplayName: frameworkName,
},
@@ -648,6 +699,7 @@ export const ChatScreen: React.FC = () => {
inputText,
currentConversation,
currentModel,
+ connectState.activeModel,
toolsEnabled,
addMessage,
updateMessage,
@@ -657,7 +709,7 @@ export const ChatScreen: React.FC = () => {
const handleStopGeneration = useCallback(() => {
generationAbortRef.current?.abort();
- void RunAnywhere.cancelGeneration();
+ RunAnywhere.cancelGeneration().catch(() => undefined);
setIsLoading(false);
}, []);
@@ -726,8 +778,8 @@ export const ChatScreen: React.FC = () => {
*/
const renderHeader = () => (
0}
onModelPress={handleSelectModel}
@@ -737,12 +789,56 @@ export const ChatScreen: React.FC = () => {
/>
);
- const showOverlay = !currentModel && !isModelLoading;
+ const hasUsableModel = !!currentModel || connectState.status === 'connected';
+ const showOverlay = !hasUsableModel && !isModelLoading;
return (
{renderHeader()}
+ {showConnectBanner && (
+
+
+
+
+
+
+ {connectState.status === 'connected'
+ ? `Connected to ${connectState.activeHost?.displayName || 'Host'}`
+ : 'Host connection ended'}
+
+
+ {connectState.status === 'connected'
+ ? connectState.activeModel?.displayName
+ : connectState.message || 'Choose a local model or reconnect'}
+
+
+ {connectState.status === 'connected' && (
+ ConnectService.disconnect()}
+ >
+ Disconnect
+
+ )}
+ setShowConnectBanner(false)}>
+
+
+
+ )}
+
{showOverlay ? (
{
/>
{/* Tool Calling Badge (shows when tools are enabled) */}
- {currentModel && registeredToolCount > 0 && (
-
- )}
+ {currentModel &&
+ connectState.status !== 'connected' &&
+ registeredToolCount > 0 && (
+
+ )}
{/* LoRA pill (mirrors iOS ChatMessageListView's LoRA row above input) */}
- {currentModel && (
+ {currentModel && connectState.status !== 'connected' && (
{
)}
{/* Example prompts (mode follows tool/LoRA state), shown on an empty chat */}
- {currentModel && messages.length === 0 && (
+ {hasUsableModel && messages.length === 0 && (
0}
- onSelect={(p) => void handleSend(p)}
+ onSelect={(p) => {
+ handleSend(p).catch(() => undefined);
+ }}
/>
)}
@@ -818,12 +920,18 @@ export const ChatScreen: React.FC = () => {
onChangeText={setInputText}
onSend={handleSend}
onStop={handleStopGeneration}
- disabled={!currentModel || !currentConversation}
+ disabled={!hasUsableModel || !currentConversation}
isLoading={isLoading}
- toolsEnabled={toolsEnabled}
- onToggleTools={currentModel ? handleToggleTools : undefined}
+ toolsEnabled={
+ connectState.status === 'connected' ? false : toolsEnabled
+ }
+ onToggleTools={
+ currentModel && connectState.status !== 'connected'
+ ? handleToggleTools
+ : undefined
+ }
placeholder={
- currentModel
+ hasUsableModel
? 'Type a message...'
: 'Select a model to start chatting'
}
@@ -876,6 +984,58 @@ const styles = StyleSheet.create({
flex: 1,
backgroundColor: Colors.backgroundPrimary,
},
+ connectBanner: {
+ position: 'absolute',
+ left: 16,
+ right: 16,
+ zIndex: 50,
+ minHeight: 68,
+ flexDirection: 'row',
+ alignItems: 'center',
+ gap: 10,
+ paddingHorizontal: 14,
+ paddingVertical: 10,
+ borderRadius: 24,
+ backgroundColor: 'rgba(255,255,255,0.96)',
+ borderWidth: 1,
+ borderColor: Colors.borderLight,
+ shadowColor: '#000000',
+ shadowOpacity: 0.14,
+ shadowRadius: 16,
+ shadowOffset: { width: 0, height: 8 },
+ elevation: 8,
+ },
+ connectBannerIcon: {
+ width: 36,
+ height: 36,
+ borderRadius: 18,
+ alignItems: 'center',
+ justifyContent: 'center',
+ backgroundColor: Colors.badgeGreen,
+ },
+ connectBannerText: {
+ flex: 1,
+ },
+ connectBannerTitle: {
+ ...Typography.headline,
+ color: Colors.textPrimary,
+ },
+ connectBannerSubtitle: {
+ ...Typography.caption,
+ color: Colors.textSecondary,
+ marginTop: 2,
+ },
+ connectBannerAction: {
+ paddingHorizontal: 10,
+ paddingVertical: 7,
+ borderRadius: 999,
+ backgroundColor: Colors.backgroundSecondary,
+ },
+ connectBannerActionText: {
+ ...Typography.caption,
+ color: Colors.primaryRed,
+ fontWeight: '600',
+ },
header: {
flexDirection: 'row',
alignItems: 'center',
diff --git a/examples/react-native/RunAnywhereAI/src/services/ConnectService.ts b/examples/react-native/RunAnywhereAI/src/services/ConnectService.ts
new file mode 100644
index 0000000000..570b08ccdb
--- /dev/null
+++ b/examples/react-native/RunAnywhereAI/src/services/ConnectService.ts
@@ -0,0 +1,17 @@
+import {
+ ConnectSession,
+ type ConnectHost,
+ type ConnectState,
+} from '@runanywhere/core';
+
+const session = new ConnectSession('React Native device');
+
+export const ConnectService = {
+ session,
+ getSnapshot: (): ConnectState => session.state,
+ subscribe: (listener: () => void): (() => void) =>
+ session.subscribe(() => listener()),
+ findHosts: (): Promise => session.startBrowsing(),
+ connect: (host: ConnectHost): Promise => session.connect(host),
+ disconnect: (): void => session.disconnect(),
+};
diff --git a/examples/react-native/RunAnywhereAI/src/theme/system/icons.tsx b/examples/react-native/RunAnywhereAI/src/theme/system/icons.tsx
index a27b0d44c4..9f29b4227a 100644
--- a/examples/react-native/RunAnywhereAI/src/theme/system/icons.tsx
+++ b/examples/react-native/RunAnywhereAI/src/theme/system/icons.tsx
@@ -43,6 +43,7 @@ import {
Battery,
Calculator,
Zap,
+ Monitor,
} from 'lucide-react-native';
const ICONS = {
@@ -82,6 +83,7 @@ const ICONS = {
battery: Battery,
calculator: Calculator,
bolt: Zap,
+ host: Monitor,
} as const;
export type IconName = keyof typeof ICONS;
diff --git a/idl/connect.proto b/idl/connect.proto
new file mode 100644
index 0000000000..b4a8993b0f
--- /dev/null
+++ b/idl/connect.proto
@@ -0,0 +1,208 @@
+// RunAnywhere IDL — LAN host/client session contract.
+//
+// This schema defines the transport-independent control plane for a local
+// runtime host. Discovery and sockets remain platform adapters; commons owns
+// the role constraints, protocol compatibility checks, session state, and
+// validation of typed remote generation requests.
+
+syntax = "proto3";
+
+package runanywhere.v1;
+
+import "llm_service.proto";
+
+option cc_enable_arenas = true;
+option java_multiple_files = true;
+option java_package = "ai.runanywhere.proto.v1";
+option java_outer_classname = "ConnectProto";
+option objc_class_prefix = "RAV1";
+option csharp_namespace = "Runanywhere.V1";
+option swift_prefix = "RA";
+option go_package = "github.com/runanywhere/runanywhere-sdks/idl/v1;runanywherev1";
+
+// Platform identity is explicit so commons can evaluate role availability
+// from one policy table. Platform SDKs must not hardcode the host/client
+// matrix in UI or transport code.
+enum ConnectPlatform {
+ CONNECT_PLATFORM_UNSPECIFIED = 0;
+ CONNECT_PLATFORM_MACOS = 1;
+ CONNECT_PLATFORM_IOS = 2;
+ CONNECT_PLATFORM_IPADOS = 3;
+
+ // Reserved for the follow-on SDK integrations. Keeping the values in the
+ // canonical IDL avoids a later wire-format migration.
+ CONNECT_PLATFORM_ANDROID = 4;
+ CONNECT_PLATFORM_REACT_NATIVE = 5;
+ CONNECT_PLATFORM_FLUTTER = 6;
+ CONNECT_PLATFORM_WEB = 7;
+
+ // Reserved now so adding the planned Windows host adapter does not require
+ // a platform-identity wire migration. Its host role remains PLANNED until
+ // the native transport, discovery, and protected-storage adapter ships.
+ CONNECT_PLATFORM_WINDOWS = 8;
+}
+
+// Role availability is richer than a boolean so the wire contract can reserve
+// planned platforms without accidentally advertising them as usable.
+enum ConnectRoleAvailability {
+ CONNECT_ROLE_AVAILABILITY_UNSPECIFIED = 0;
+ CONNECT_ROLE_AVAILABILITY_DISABLED = 1;
+ CONNECT_ROLE_AVAILABILITY_PLANNED = 2;
+ CONNECT_ROLE_AVAILABILITY_ENABLED = 3;
+}
+
+message ConnectPlatformPolicyRequest {
+ ConnectPlatform platform = 1;
+}
+
+// Commons is the authority for this policy. SDKs may query it to shape UI,
+// but every host/client entrypoint also enforces it inside C++.
+message ConnectPlatformPolicy {
+ ConnectPlatform platform = 1;
+ ConnectRoleAvailability host_role = 2;
+ ConnectRoleAvailability client_role = 3;
+}
+
+enum ConnectHandshakeStatus {
+ CONNECT_HANDSHAKE_STATUS_UNSPECIFIED = 0;
+ CONNECT_HANDSHAKE_STATUS_ACCEPTED = 1;
+ CONNECT_HANDSHAKE_STATUS_REJECTED = 2;
+}
+
+enum ConnectSessionState {
+ CONNECT_SESSION_STATE_UNSPECIFIED = 0;
+ CONNECT_SESSION_STATE_CONNECTING = 1;
+ CONNECT_SESSION_STATE_CONNECTED = 2;
+ CONNECT_SESSION_STATE_DISCONNECTED = 3;
+ CONNECT_SESSION_STATE_FAILED = 4;
+}
+
+// Non-secret metadata published through LAN service discovery and echoed by
+// the handshake. `instance_id` is generated anew whenever the host starts;
+// it is not a persistent device identifier or a credential.
+message ConnectDiscoveryMetadata {
+ string instance_id = 1;
+ string display_name = 2;
+ ConnectPlatform platform = 3;
+ uint32 protocol_version = 4;
+}
+
+// The single language model currently shared by a host. A host must select a
+// loaded model before it starts publishing; this lets clients enter chat
+// immediately without downloading or selecting a local model.
+message ConnectModelDescriptor {
+ string model_id = 1;
+ string display_name = 2;
+ string framework = 3;
+ uint32 context_window = 4;
+ bool supports_streaming = 5;
+}
+
+message ConnectHostStartRequest {
+ string display_name = 1;
+ ConnectPlatform platform = 2;
+ uint32 protocol_version = 3;
+ ConnectModelDescriptor model = 4;
+}
+
+message ConnectHostStopRequest {}
+
+message ConnectHostState {
+ bool is_hosting = 1;
+ ConnectDiscoveryMetadata discovery_metadata = 2;
+ uint32 active_client_count = 3;
+ string error_message = 4;
+ ConnectModelDescriptor model = 5;
+}
+
+message ConnectClientStartRequest {
+ string display_name = 1;
+ ConnectPlatform platform = 2;
+ uint32 protocol_version = 3;
+}
+
+// Sent by a client immediately after the platform transport is connected.
+message ConnectClientHello {
+ string instance_id = 1;
+ string display_name = 2;
+ ConnectPlatform platform = 3;
+ uint32 protocol_version = 4;
+}
+
+// Sent by the host after commons has accepted or rejected a client hello.
+message ConnectHandshakeResponse {
+ ConnectHandshakeStatus status = 1;
+ string session_id = 2;
+ ConnectDiscoveryMetadata host = 3;
+ string rejection_reason = 4;
+ ConnectModelDescriptor model = 5;
+}
+
+// The client validates the host response through commons and receives the
+// public session state it can expose to its platform UI.
+message ConnectClientSessionState {
+ ConnectSessionState state = 1;
+ string session_id = 2;
+ ConnectDiscoveryMetadata host = 3;
+ string error_message = 4;
+ ConnectModelDescriptor model = 5;
+}
+
+message ConnectSessionCloseRequest {
+ string session_id = 1;
+}
+
+// A client sends the existing typed LLM request to the selected host model.
+// `session_id` binds the request to the prior handshake; `generation.model_id`
+// must match the model the host published for that session.
+message ConnectInvocationRequest {
+ string session_id = 1;
+ string request_id = 2;
+ LLMGenerateRequest generation = 3;
+}
+
+// Commons validates that an invocation belongs to an active session and uses
+// the host's published model before any platform runtime receives the prompt.
+message ConnectInvocationValidation {
+ bool accepted = 1;
+ string rejection_reason = 2;
+}
+
+// Hosts forward the SDK's canonical stream events without translating them to
+// a platform-specific token shape. This is the portable streaming surface for
+// future Kotlin, React Native, Flutter, and Web clients.
+message ConnectInvocationEvent {
+ string request_id = 1;
+ LLMStreamEvent event = 2;
+}
+
+// The connection stays open between generations, so the client needs a
+// control-plane exchange that can detect a host stopped while chat is idle.
+// These frames deliberately remain separate from LLM invocation payloads:
+// a health check must never reach a model or appear as an assistant message.
+message ConnectHeartbeatRequest {
+ string session_id = 1;
+ uint64 sequence = 2;
+}
+
+message ConnectHeartbeatResponse {
+ string session_id = 1;
+ uint64 sequence = 2;
+}
+
+// Every frame after the initial ClientHello handshake is carried in one of
+// these explicit envelopes. This leaves typed inference traffic untouched
+// while allowing clients to verify an otherwise-idle host connection.
+message ConnectClientFrame {
+ oneof payload {
+ ConnectInvocationRequest invocation = 1;
+ ConnectHeartbeatRequest heartbeat = 2;
+ }
+}
+
+message ConnectHostFrame {
+ oneof payload {
+ ConnectInvocationEvent invocation_event = 1;
+ ConnectHeartbeatResponse heartbeat = 2;
+ }
+}
diff --git a/sdk/runanywhere-commons/CMakeLists.txt b/sdk/runanywhere-commons/CMakeLists.txt
index e3a44d0d9f..3d3db81f57 100644
--- a/sdk/runanywhere-commons/CMakeLists.txt
+++ b/sdk/runanywhere-commons/CMakeLists.txt
@@ -716,6 +716,11 @@ set(RAC_CORE_SOURCES
src/core/rac_error_proto.cpp
src/foundation/rac_proto_buffer.cpp
src/foundation/rac_sha256.cpp
+ # Connect owns platform-role policy and transport-independent session
+ # coordination in commons. Platform SDKs register concrete discovery and
+ # channel adapters through the transport vtable.
+ src/connect/rac_connect.cpp
+ src/connect/rac_connect_transport.cpp
# Canonical two-phase SDK init ABI. Wraps existing rac_state /
# rac_auth / rac_device_manager / rac_model_assignment internals behind
# one rac_sdk_init_phase{1,2}_proto + rac_sdk_retry_http_proto surface so
@@ -1383,6 +1388,8 @@ set(_RAC_PROTO_GENERATED_SOURCES
${_RAC_PROTO_GEN_DIR}/device_info.pb.cc
# Plugin loader descriptors (PluginInfo / PluginInfoList).
${_RAC_PROTO_GEN_DIR}/plugin_loader.pb.cc
+ # Cross-platform Connect policy, handshake, and invocation envelopes.
+ ${_RAC_PROTO_GEN_DIR}/connect.pb.cc
# rac_options.proto — custom FieldOptions / EnumValueOptions extensions
# imported by codegen post-processors and several option protos. Required
# at link time by every .pb.cc that imports rac_options.proto.
diff --git a/sdk/runanywhere-commons/exports/RACommons.exports b/sdk/runanywhere-commons/exports/RACommons.exports
index 764cbbcacc..919699454b 100644
--- a/sdk/runanywhere-commons/exports/RACommons.exports
+++ b/sdk/runanywhere-commons/exports/RACommons.exports
@@ -83,6 +83,22 @@ _rac_platform_services_register_availability_callback
_rac_http_download
_rac_http_download_cancel
+# Connect — protocol/session policy plus the platform transport adapter ABI.
+_rac_connect_client_create_hello_proto
+_rac_connect_client_validate_host_proto
+_rac_connect_get_platform_policy_proto
+_rac_connect_host_accept_client_proto
+_rac_connect_host_close_session_proto
+_rac_connect_host_start_proto
+_rac_connect_host_stop_proto
+_rac_connect_host_validate_invocation_proto
+_rac_connect_transport_close
+_rac_connect_transport_is_registered
+_rac_connect_transport_open
+_rac_connect_transport_receive
+_rac_connect_transport_register
+_rac_connect_transport_send
+
# Events — internal lower-level publisher used by lifecycle manager,
# storage analyzer, device manager, and engine plugins for telemetry
# breadcrumbs. Public SDK event stream is rac_sdk_event_* below.
diff --git a/sdk/runanywhere-commons/include/rac/connect/rac_connect.h b/sdk/runanywhere-commons/include/rac/connect/rac_connect.h
new file mode 100644
index 0000000000..b6e1b2f7b4
--- /dev/null
+++ b/sdk/runanywhere-commons/include/rac/connect/rac_connect.h
@@ -0,0 +1,100 @@
+/**
+ * @file rac_connect.h
+ * @brief Transport-independent host/client policy and session ABI.
+ *
+ * Commons owns the platform-role policy, protocol version, host session
+ * registry, protobuf handshake, and remote invocation validation. Platform
+ * SDKs own discovery, transport adapters, permissions, and user-visible state.
+ */
+
+#ifndef RAC_CONNECT_H
+#define RAC_CONNECT_H
+
+#include
+#include
+
+#include "rac/core/rac_error.h"
+#include "rac/core/rac_types.h"
+#include "rac/foundation/rac_proto_buffer.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Return the authoritative host/client role availability for a platform.
+ *
+ * Accepts ConnectPlatformPolicyRequest and returns ConnectPlatformPolicy.
+ * Platform SDKs may use this to shape UI, while every C++ entrypoint still
+ * enforces the same policy independently.
+ */
+RAC_API rac_result_t rac_connect_get_platform_policy_proto(const uint8_t* request_bytes,
+ size_t request_size,
+ rac_proto_buffer_t* out_platform_policy);
+
+/**
+ * Start the process-local host state from a serialized
+ * runanywhere.v1.ConnectHostStartRequest.
+ *
+ * Commons evaluates the requested platform through its role policy, validates
+ * the selected loaded model, generates an ephemeral host instance id, and
+ * returns ConnectHostState.
+ * The platform adapter publishes the returned discovery metadata only after
+ * this call succeeds.
+ */
+RAC_API rac_result_t rac_connect_host_start_proto(const uint8_t* request_bytes, size_t request_size,
+ rac_proto_buffer_t* out_host_state);
+
+/** Stop the process-local host state and invalidate every active session. */
+RAC_API rac_result_t rac_connect_host_stop_proto(const uint8_t* request_bytes, size_t request_size,
+ rac_proto_buffer_t* out_host_state);
+
+/**
+ * Create a canonical client hello from ConnectClientStartRequest.
+ *
+ * Commons accepts only platforms whose client role is currently enabled. The
+ * generated instance id is ephemeral and non-secret.
+ */
+RAC_API rac_result_t rac_connect_client_create_hello_proto(const uint8_t* request_bytes,
+ size_t request_size,
+ rac_proto_buffer_t* out_client_hello);
+
+/**
+ * Validate a client hello against the active host and return an accepted
+ * or rejected ConnectHandshakeResponse. Accepted responses reserve a session
+ * id in the commons host registry until closed or hosting stops.
+ */
+RAC_API rac_result_t rac_connect_host_accept_client_proto(const uint8_t* hello_bytes,
+ size_t hello_size,
+ rac_proto_buffer_t* out_response);
+
+/**
+ * Validate the host's ConnectHandshakeResponse on a client and return its
+ * typed ConnectClientSessionState.
+ */
+RAC_API rac_result_t rac_connect_client_validate_host_proto(const uint8_t* response_bytes,
+ size_t response_size,
+ rac_proto_buffer_t* out_session_state);
+
+/**
+ * Release an active host session after its platform transport terminates.
+ * Unknown session ids are rejected to keep the host registry authoritative.
+ */
+RAC_API rac_result_t rac_connect_host_close_session_proto(const uint8_t* request_bytes,
+ size_t request_size,
+ rac_proto_buffer_t* out_host_state);
+
+/**
+ * Validate a typed remote generation request before the platform host runtime
+ * executes it. The request must belong to an active Connect session and name
+ * the model published when the host started.
+ */
+RAC_API rac_result_t rac_connect_host_validate_invocation_proto(const uint8_t* request_bytes,
+ size_t request_size,
+ rac_proto_buffer_t* out_validation);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // RAC_CONNECT_H
diff --git a/sdk/runanywhere-commons/include/rac/connect/rac_connect_transport.h b/sdk/runanywhere-commons/include/rac/connect/rac_connect_transport.h
new file mode 100644
index 0000000000..0dac2cf488
--- /dev/null
+++ b/sdk/runanywhere-commons/include/rac/connect/rac_connect_transport.h
@@ -0,0 +1,95 @@
+/**
+ * @file rac_connect_transport.h
+ * @brief Platform-neutral channel transport vtable for RunAnywhere Connect.
+ *
+ * Commons owns Connect protocol messages, role/session policy, and dispatch.
+ * Platform SDKs provide discovery plus a channel adapter through this ABI.
+ * Endpoint bytes are opaque to commons: Bonjour, Android NSD, a future
+ * Windows discovery provider, and a future relay may each use their native
+ * endpoint representation without changing the Connect state machine.
+ *
+ * The operations are synchronous by contract and may block. SDKs must invoke
+ * the public dispatch functions from a worker/transport queue, never from a UI
+ * thread. Every logical payload is one complete protobuf frame; stream
+ * segmentation and reassembly belong to the adapter.
+ */
+
+#ifndef RAC_CONNECT_TRANSPORT_H
+#define RAC_CONNECT_TRANSPORT_H
+
+#include
+#include
+
+#include "rac/core/rac_error.h"
+#include "rac/core/rac_types.h"
+#include "rac/foundation/rac_proto_buffer.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define RAC_CONNECT_TRANSPORT_ABI_VERSION ((uint32_t)1u)
+
+typedef uint64_t rac_connect_channel_t;
+#define RAC_CONNECT_INVALID_CHANNEL ((rac_connect_channel_t)0u)
+
+/**
+ * Opaque endpoint token produced by a platform discovery adapter.
+ *
+ * The bytes are borrowed for the duration of open(). Commons never parses or
+ * persists them.
+ */
+typedef struct rac_connect_endpoint {
+ const uint8_t* data;
+ size_t size;
+} rac_connect_endpoint_t;
+
+/**
+ * Platform channel operations.
+ *
+ * open/send/receive/close are mandatory. init/destroy are optional lifecycle
+ * hooks. The adapter must be thread-safe because commons may dispatch on more
+ * than one worker.
+ */
+typedef struct rac_connect_transport_ops {
+ uint32_t abi_version;
+ size_t struct_size;
+
+ rac_result_t (*open)(void* user_data, const rac_connect_endpoint_t* endpoint,
+ rac_connect_channel_t* out_channel);
+ rac_result_t (*send)(void* user_data, rac_connect_channel_t channel, const uint8_t* payload,
+ size_t payload_size);
+ rac_result_t (*receive)(void* user_data, rac_connect_channel_t channel,
+ rac_proto_buffer_t* out_payload);
+ rac_result_t (*close)(void* user_data, rac_connect_channel_t channel);
+
+ rac_result_t (*init)(void* user_data);
+ void (*destroy)(void* user_data);
+} rac_connect_transport_ops_t;
+
+/**
+ * Install or replace the process-wide Connect transport.
+ *
+ * The vtable is copied during registration. Passing NULL unregisters the
+ * active adapter. Replaced adapters are destroyed only after all in-flight
+ * calls release their registry snapshot.
+ */
+RAC_API rac_result_t rac_connect_transport_register(const rac_connect_transport_ops_t* ops,
+ void* user_data);
+
+RAC_API rac_bool_t rac_connect_transport_is_registered(void);
+
+/** Dispatch one operation through the currently registered adapter. */
+RAC_API rac_result_t rac_connect_transport_open(const rac_connect_endpoint_t* endpoint,
+ rac_connect_channel_t* out_channel);
+RAC_API rac_result_t rac_connect_transport_send(rac_connect_channel_t channel,
+ const uint8_t* payload, size_t payload_size);
+RAC_API rac_result_t rac_connect_transport_receive(rac_connect_channel_t channel,
+ rac_proto_buffer_t* out_payload);
+RAC_API rac_result_t rac_connect_transport_close(rac_connect_channel_t channel);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // RAC_CONNECT_TRANSPORT_H
diff --git a/sdk/runanywhere-commons/src/connect/rac_connect.cpp b/sdk/runanywhere-commons/src/connect/rac_connect.cpp
new file mode 100644
index 0000000000..b935e5bd49
--- /dev/null
+++ b/sdk/runanywhere-commons/src/connect/rac_connect.cpp
@@ -0,0 +1,580 @@
+/**
+ * @file rac_connect.cpp
+ * @brief Commons-owned validation and session state for LAN host/client setup.
+ */
+
+#include "rac/connect/rac_connect.h"
+
+#include
+#include
+#include
+#include
+#include
+
+#include "rac/core/rac_uuid.h"
+
+#if defined(RAC_HAVE_PROTOBUF)
+#include "connect.pb.h"
+#endif
+
+namespace {
+
+constexpr uint32_t kConnectProtocolVersion = 1;
+constexpr size_t kMaxDisplayNameLength = 128;
+constexpr size_t kMaxModelIdLength = 512;
+
+#if defined(RAC_HAVE_PROTOBUF)
+
+namespace v1 = ::runanywhere::v1;
+
+struct HostRuntime {
+ bool is_hosting = false;
+ v1::ConnectDiscoveryMetadata metadata;
+ v1::ConnectModelDescriptor model;
+ // One active session per client instance. A reconnect replaces the stale
+ // session from the same SDK instance instead of inflating the device count.
+ std::unordered_map session_clients;
+};
+
+struct PlatformRolePolicy {
+ v1::ConnectPlatform platform;
+ v1::ConnectRoleAvailability host_role;
+ v1::ConnectRoleAvailability client_role;
+};
+
+// Product availability is data, not platform-specific control flow. A new
+// adapter changes one table row after its transport/security requirements are
+// met; the host and handshake validation paths remain unchanged.
+constexpr std::array kPlatformRolePolicies{{
+ {v1::CONNECT_PLATFORM_MACOS, v1::CONNECT_ROLE_AVAILABILITY_ENABLED,
+ v1::CONNECT_ROLE_AVAILABILITY_DISABLED},
+ {v1::CONNECT_PLATFORM_IOS, v1::CONNECT_ROLE_AVAILABILITY_DISABLED,
+ v1::CONNECT_ROLE_AVAILABILITY_ENABLED},
+ {v1::CONNECT_PLATFORM_IPADOS, v1::CONNECT_ROLE_AVAILABILITY_DISABLED,
+ v1::CONNECT_ROLE_AVAILABILITY_ENABLED},
+ {v1::CONNECT_PLATFORM_ANDROID, v1::CONNECT_ROLE_AVAILABILITY_DISABLED,
+ v1::CONNECT_ROLE_AVAILABILITY_ENABLED},
+ {v1::CONNECT_PLATFORM_REACT_NATIVE, v1::CONNECT_ROLE_AVAILABILITY_DISABLED,
+ v1::CONNECT_ROLE_AVAILABILITY_ENABLED},
+ {v1::CONNECT_PLATFORM_FLUTTER, v1::CONNECT_ROLE_AVAILABILITY_DISABLED,
+ v1::CONNECT_ROLE_AVAILABILITY_ENABLED},
+ {v1::CONNECT_PLATFORM_WEB, v1::CONNECT_ROLE_AVAILABILITY_DISABLED,
+ v1::CONNECT_ROLE_AVAILABILITY_PLANNED},
+ {v1::CONNECT_PLATFORM_WINDOWS, v1::CONNECT_ROLE_AVAILABILITY_PLANNED,
+ v1::CONNECT_ROLE_AVAILABILITY_PLANNED},
+}};
+
+std::mutex& runtime_mutex() {
+ static std::mutex mutex;
+ return mutex;
+}
+
+HostRuntime& runtime() {
+ static HostRuntime instance;
+ return instance;
+}
+
+bool has_non_whitespace(const std::string& value) {
+ for (const char character : value) {
+ if (character != ' ' && character != '\t' && character != '\n' && character != '\r') {
+ return true;
+ }
+ }
+ return false;
+}
+
+bool is_valid_display_name(const std::string& value) {
+ return !value.empty() && value.size() <= kMaxDisplayNameLength && has_non_whitespace(value);
+}
+
+bool is_valid_model(const v1::ConnectModelDescriptor& model) {
+ return !model.model_id().empty() && model.model_id().size() <= kMaxModelIdLength &&
+ is_valid_display_name(model.display_name());
+}
+
+const PlatformRolePolicy* find_platform_policy(v1::ConnectPlatform platform) {
+ for (const PlatformRolePolicy& policy : kPlatformRolePolicies) {
+ if (policy.platform == platform) {
+ return &policy;
+ }
+ }
+ return nullptr;
+}
+
+bool is_host_role_enabled(v1::ConnectPlatform platform) {
+ const PlatformRolePolicy* policy = find_platform_policy(platform);
+ return policy != nullptr && policy->host_role == v1::CONNECT_ROLE_AVAILABILITY_ENABLED;
+}
+
+bool is_client_role_enabled(v1::ConnectPlatform platform) {
+ const PlatformRolePolicy* policy = find_platform_policy(platform);
+ return policy != nullptr && policy->client_role == v1::CONNECT_ROLE_AVAILABILITY_ENABLED;
+}
+
+v1::ConnectPlatformPolicy make_platform_policy(const PlatformRolePolicy& policy) {
+ v1::ConnectPlatformPolicy response;
+ response.set_platform(policy.platform);
+ response.set_host_role(policy.host_role);
+ response.set_client_role(policy.client_role);
+ return response;
+}
+
+template
+rac_result_t serialize_message(const Message& message, rac_proto_buffer_t* out_buffer) {
+ if (out_buffer == nullptr) {
+ return RAC_ERROR_NULL_POINTER;
+ }
+
+ std::string bytes;
+ if (!message.SerializeToString(&bytes)) {
+ rac_proto_buffer_set_error(out_buffer, RAC_ERROR_PROCESSING_FAILED,
+ "Failed to serialize Connect protobuf response");
+ return RAC_ERROR_PROCESSING_FAILED;
+ }
+ return rac_proto_buffer_copy(reinterpret_cast(bytes.data()), bytes.size(),
+ out_buffer);
+}
+
+template
+rac_result_t parse_message(const uint8_t* bytes, size_t size, Message* out_message,
+ rac_proto_buffer_t* out_buffer, const char* error_context) {
+ if (out_message == nullptr || out_buffer == nullptr) {
+ return RAC_ERROR_NULL_POINTER;
+ }
+
+ const rac_result_t validation = rac_proto_bytes_validate(bytes, size);
+ if (validation != RAC_SUCCESS) {
+ rac_proto_buffer_set_error(out_buffer, validation, error_context);
+ return validation;
+ }
+ if (!out_message->ParseFromArray(rac_proto_bytes_data_or_empty(bytes, size),
+ static_cast(size))) {
+ rac_proto_buffer_set_error(out_buffer, RAC_ERROR_DECODING_ERROR, error_context);
+ return RAC_ERROR_DECODING_ERROR;
+ }
+ return RAC_SUCCESS;
+}
+
+rac_result_t generate_ephemeral_id(std::string* out_id, rac_proto_buffer_t* out_buffer) {
+ if (out_id == nullptr || out_buffer == nullptr) {
+ return RAC_ERROR_NULL_POINTER;
+ }
+ std::array uuid{};
+ const rac_result_t result = rac_uuid_v4(uuid.data(), uuid.size());
+ if (result != RAC_SUCCESS) {
+ rac_proto_buffer_set_error(out_buffer, result, "Failed to generate Connect instance id");
+ return result;
+ }
+ *out_id = uuid.data();
+ return RAC_SUCCESS;
+}
+
+v1::ConnectHostState make_host_state(const HostRuntime& host) {
+ v1::ConnectHostState state;
+ state.set_is_hosting(host.is_hosting);
+ state.set_active_client_count(static_cast(host.session_clients.size()));
+ if (host.is_hosting) {
+ *state.mutable_discovery_metadata() = host.metadata;
+ *state.mutable_model() = host.model;
+ }
+ return state;
+}
+
+rac_result_t reject_handshake(const HostRuntime& host, const char* reason,
+ rac_proto_buffer_t* out_response) {
+ v1::ConnectHandshakeResponse response;
+ response.set_status(v1::CONNECT_HANDSHAKE_STATUS_REJECTED);
+ response.set_rejection_reason(reason);
+ if (host.is_hosting) {
+ *response.mutable_host() = host.metadata;
+ *response.mutable_model() = host.model;
+ }
+ return serialize_message(response, out_response);
+}
+
+#endif // RAC_HAVE_PROTOBUF
+
+} // namespace
+
+extern "C" {
+
+rac_result_t rac_connect_get_platform_policy_proto(const uint8_t* request_bytes,
+ size_t request_size,
+ rac_proto_buffer_t* out_platform_policy) {
+ if (out_platform_policy == nullptr) {
+ return RAC_ERROR_NULL_POINTER;
+ }
+ rac_proto_buffer_init(out_platform_policy);
+
+#if !defined(RAC_HAVE_PROTOBUF)
+ (void)request_bytes;
+ (void)request_size;
+ rac_proto_buffer_set_error(out_platform_policy, RAC_ERROR_FEATURE_NOT_AVAILABLE,
+ "Connect requires protobuf support");
+ return RAC_ERROR_FEATURE_NOT_AVAILABLE;
+#else
+ v1::ConnectPlatformPolicyRequest request;
+ const rac_result_t parse_result =
+ parse_message(request_bytes, request_size, &request, out_platform_policy,
+ "Invalid ConnectPlatformPolicyRequest protobuf payload");
+ if (parse_result != RAC_SUCCESS) {
+ return parse_result;
+ }
+
+ const PlatformRolePolicy* policy = find_platform_policy(request.platform());
+ if (policy == nullptr) {
+ rac_proto_buffer_set_error(out_platform_policy, RAC_ERROR_NOT_SUPPORTED,
+ "Connect platform is not present in the role policy");
+ return RAC_ERROR_NOT_SUPPORTED;
+ }
+ return serialize_message(make_platform_policy(*policy), out_platform_policy);
+#endif
+}
+
+rac_result_t rac_connect_host_start_proto(const uint8_t* request_bytes, size_t request_size,
+ rac_proto_buffer_t* out_host_state) {
+ if (out_host_state == nullptr) {
+ return RAC_ERROR_NULL_POINTER;
+ }
+ rac_proto_buffer_init(out_host_state);
+
+#if !defined(RAC_HAVE_PROTOBUF)
+ (void)request_bytes;
+ (void)request_size;
+ rac_proto_buffer_set_error(out_host_state, RAC_ERROR_FEATURE_NOT_AVAILABLE,
+ "Connect requires protobuf support");
+ return RAC_ERROR_FEATURE_NOT_AVAILABLE;
+#else
+ v1::ConnectHostStartRequest request;
+ const rac_result_t parse_result =
+ parse_message(request_bytes, request_size, &request, out_host_state,
+ "Invalid ConnectHostStartRequest protobuf payload");
+ if (parse_result != RAC_SUCCESS) {
+ return parse_result;
+ }
+ if (!is_host_role_enabled(request.platform())) {
+ rac_proto_buffer_set_error(out_host_state, RAC_ERROR_NOT_SUPPORTED,
+ "This platform is not enabled for Connect hosting");
+ return RAC_ERROR_NOT_SUPPORTED;
+ }
+ if (request.protocol_version() != kConnectProtocolVersion) {
+ rac_proto_buffer_set_error(out_host_state, RAC_ERROR_INVALID_CONFIGURATION,
+ "Unsupported Connect protocol version");
+ return RAC_ERROR_INVALID_CONFIGURATION;
+ }
+ if (!is_valid_display_name(request.display_name())) {
+ rac_proto_buffer_set_error(
+ out_host_state, RAC_ERROR_INVALID_INPUT,
+ "Connect host display name must be non-empty and at most 128 characters");
+ return RAC_ERROR_INVALID_INPUT;
+ }
+ if (!request.has_model() || !is_valid_model(request.model())) {
+ rac_proto_buffer_set_error(out_host_state, RAC_ERROR_INVALID_INPUT,
+ "Connect host requires a selected loaded model");
+ return RAC_ERROR_INVALID_INPUT;
+ }
+
+ std::lock_guard lock(runtime_mutex());
+ HostRuntime& host = runtime();
+ if (!host.is_hosting) {
+ std::string instance_id;
+ const rac_result_t id_result = generate_ephemeral_id(&instance_id, out_host_state);
+ if (id_result != RAC_SUCCESS) {
+ return id_result;
+ }
+ host.metadata.Clear();
+ host.metadata.set_instance_id(std::move(instance_id));
+ host.metadata.set_display_name(request.display_name());
+ host.metadata.set_platform(request.platform());
+ host.metadata.set_protocol_version(kConnectProtocolVersion);
+ host.model = request.model();
+ host.session_clients.clear();
+ host.is_hosting = true;
+ } else if (host.model.model_id() != request.model().model_id()) {
+ rac_proto_buffer_set_error(out_host_state, RAC_ERROR_INVALID_CONFIGURATION,
+ "Stop the active Connect host before changing its shared model");
+ return RAC_ERROR_INVALID_CONFIGURATION;
+ }
+
+ return serialize_message(make_host_state(host), out_host_state);
+#endif
+}
+
+rac_result_t rac_connect_host_stop_proto(const uint8_t* request_bytes, size_t request_size,
+ rac_proto_buffer_t* out_host_state) {
+ if (out_host_state == nullptr) {
+ return RAC_ERROR_NULL_POINTER;
+ }
+ rac_proto_buffer_init(out_host_state);
+
+#if !defined(RAC_HAVE_PROTOBUF)
+ (void)request_bytes;
+ (void)request_size;
+ rac_proto_buffer_set_error(out_host_state, RAC_ERROR_FEATURE_NOT_AVAILABLE,
+ "Connect requires protobuf support");
+ return RAC_ERROR_FEATURE_NOT_AVAILABLE;
+#else
+ v1::ConnectHostStopRequest request;
+ const rac_result_t parse_result =
+ parse_message(request_bytes, request_size, &request, out_host_state,
+ "Invalid ConnectHostStopRequest protobuf payload");
+ if (parse_result != RAC_SUCCESS) {
+ return parse_result;
+ }
+
+ std::lock_guard lock(runtime_mutex());
+ HostRuntime& host = runtime();
+ host.is_hosting = false;
+ host.metadata.Clear();
+ host.model.Clear();
+ host.session_clients.clear();
+ return serialize_message(make_host_state(host), out_host_state);
+#endif
+}
+
+rac_result_t rac_connect_client_create_hello_proto(const uint8_t* request_bytes,
+ size_t request_size,
+ rac_proto_buffer_t* out_client_hello) {
+ if (out_client_hello == nullptr) {
+ return RAC_ERROR_NULL_POINTER;
+ }
+ rac_proto_buffer_init(out_client_hello);
+
+#if !defined(RAC_HAVE_PROTOBUF)
+ (void)request_bytes;
+ (void)request_size;
+ rac_proto_buffer_set_error(out_client_hello, RAC_ERROR_FEATURE_NOT_AVAILABLE,
+ "Connect requires protobuf support");
+ return RAC_ERROR_FEATURE_NOT_AVAILABLE;
+#else
+ v1::ConnectClientStartRequest request;
+ const rac_result_t parse_result =
+ parse_message(request_bytes, request_size, &request, out_client_hello,
+ "Invalid ConnectClientStartRequest protobuf payload");
+ if (parse_result != RAC_SUCCESS) {
+ return parse_result;
+ }
+ if (!is_client_role_enabled(request.platform())) {
+ rac_proto_buffer_set_error(out_client_hello, RAC_ERROR_NOT_SUPPORTED,
+ "This platform is not enabled as a Connect client");
+ return RAC_ERROR_NOT_SUPPORTED;
+ }
+ if (request.protocol_version() != kConnectProtocolVersion) {
+ rac_proto_buffer_set_error(out_client_hello, RAC_ERROR_INVALID_CONFIGURATION,
+ "Unsupported Connect protocol version");
+ return RAC_ERROR_INVALID_CONFIGURATION;
+ }
+ if (!is_valid_display_name(request.display_name())) {
+ rac_proto_buffer_set_error(
+ out_client_hello, RAC_ERROR_INVALID_INPUT,
+ "Connect client display name must be non-empty and at most 128 characters");
+ return RAC_ERROR_INVALID_INPUT;
+ }
+
+ std::string instance_id;
+ const rac_result_t id_result = generate_ephemeral_id(&instance_id, out_client_hello);
+ if (id_result != RAC_SUCCESS) {
+ return id_result;
+ }
+
+ v1::ConnectClientHello hello;
+ hello.set_instance_id(std::move(instance_id));
+ hello.set_display_name(request.display_name());
+ hello.set_platform(request.platform());
+ hello.set_protocol_version(kConnectProtocolVersion);
+ return serialize_message(hello, out_client_hello);
+#endif
+}
+
+rac_result_t rac_connect_host_accept_client_proto(const uint8_t* hello_bytes, size_t hello_size,
+ rac_proto_buffer_t* out_response) {
+ if (out_response == nullptr) {
+ return RAC_ERROR_NULL_POINTER;
+ }
+ rac_proto_buffer_init(out_response);
+
+#if !defined(RAC_HAVE_PROTOBUF)
+ (void)hello_bytes;
+ (void)hello_size;
+ rac_proto_buffer_set_error(out_response, RAC_ERROR_FEATURE_NOT_AVAILABLE,
+ "Connect requires protobuf support");
+ return RAC_ERROR_FEATURE_NOT_AVAILABLE;
+#else
+ v1::ConnectClientHello hello;
+ const rac_result_t parse_result = parse_message(hello_bytes, hello_size, &hello, out_response,
+ "Invalid ConnectClientHello protobuf payload");
+ if (parse_result != RAC_SUCCESS) {
+ return parse_result;
+ }
+
+ std::lock_guard lock(runtime_mutex());
+ HostRuntime& host = runtime();
+ if (!host.is_hosting) {
+ return reject_handshake(host, "Connect host is not active", out_response);
+ }
+ if (!is_client_role_enabled(hello.platform())) {
+ return reject_handshake(host, "Client platform is not supported by this host",
+ out_response);
+ }
+ if (hello.protocol_version() != host.metadata.protocol_version()) {
+ return reject_handshake(host, "Connect protocol versions are incompatible", out_response);
+ }
+ if (hello.instance_id().empty() || !is_valid_display_name(hello.display_name())) {
+ return reject_handshake(host, "Client identity is invalid", out_response);
+ }
+
+ std::string session_id;
+ const rac_result_t id_result = generate_ephemeral_id(&session_id, out_response);
+ if (id_result != RAC_SUCCESS) {
+ return id_result;
+ }
+
+ // Network transitions can leave the old transport connection alive long
+ // enough for the same device to complete a new handshake. Invalidate that
+ // device's previous session before registering the replacement.
+ for (auto it = host.session_clients.begin(); it != host.session_clients.end();) {
+ if (it->second == hello.instance_id()) {
+ it = host.session_clients.erase(it);
+ } else {
+ ++it;
+ }
+ }
+ host.session_clients.emplace(session_id, hello.instance_id());
+
+ v1::ConnectHandshakeResponse response;
+ response.set_status(v1::CONNECT_HANDSHAKE_STATUS_ACCEPTED);
+ response.set_session_id(std::move(session_id));
+ *response.mutable_host() = host.metadata;
+ *response.mutable_model() = host.model;
+ return serialize_message(response, out_response);
+#endif
+}
+
+rac_result_t rac_connect_client_validate_host_proto(const uint8_t* response_bytes,
+ size_t response_size,
+ rac_proto_buffer_t* out_session_state) {
+ if (out_session_state == nullptr) {
+ return RAC_ERROR_NULL_POINTER;
+ }
+ rac_proto_buffer_init(out_session_state);
+
+#if !defined(RAC_HAVE_PROTOBUF)
+ (void)response_bytes;
+ (void)response_size;
+ rac_proto_buffer_set_error(out_session_state, RAC_ERROR_FEATURE_NOT_AVAILABLE,
+ "Connect requires protobuf support");
+ return RAC_ERROR_FEATURE_NOT_AVAILABLE;
+#else
+ v1::ConnectHandshakeResponse response;
+ const rac_result_t parse_result =
+ parse_message(response_bytes, response_size, &response, out_session_state,
+ "Invalid ConnectHandshakeResponse protobuf payload");
+ if (parse_result != RAC_SUCCESS) {
+ return parse_result;
+ }
+
+ v1::ConnectClientSessionState state;
+ if (response.status() != v1::CONNECT_HANDSHAKE_STATUS_ACCEPTED) {
+ state.set_state(v1::CONNECT_SESSION_STATE_FAILED);
+ state.set_error_message(response.rejection_reason());
+ return serialize_message(state, out_session_state);
+ }
+ if (!response.has_host() || !response.has_model() ||
+ !is_host_role_enabled(response.host().platform()) ||
+ response.host().protocol_version() != kConnectProtocolVersion ||
+ response.session_id().empty() || !is_valid_model(response.model())) {
+ state.set_state(v1::CONNECT_SESSION_STATE_FAILED);
+ state.set_error_message("Host handshake response is incompatible");
+ return serialize_message(state, out_session_state);
+ }
+
+ state.set_state(v1::CONNECT_SESSION_STATE_CONNECTED);
+ state.set_session_id(response.session_id());
+ *state.mutable_host() = response.host();
+ *state.mutable_model() = response.model();
+ return serialize_message(state, out_session_state);
+#endif
+}
+
+rac_result_t rac_connect_host_close_session_proto(const uint8_t* request_bytes, size_t request_size,
+ rac_proto_buffer_t* out_host_state) {
+ if (out_host_state == nullptr) {
+ return RAC_ERROR_NULL_POINTER;
+ }
+ rac_proto_buffer_init(out_host_state);
+
+#if !defined(RAC_HAVE_PROTOBUF)
+ (void)request_bytes;
+ (void)request_size;
+ rac_proto_buffer_set_error(out_host_state, RAC_ERROR_FEATURE_NOT_AVAILABLE,
+ "Connect requires protobuf support");
+ return RAC_ERROR_FEATURE_NOT_AVAILABLE;
+#else
+ v1::ConnectSessionCloseRequest request;
+ const rac_result_t parse_result =
+ parse_message(request_bytes, request_size, &request, out_host_state,
+ "Invalid ConnectSessionCloseRequest protobuf payload");
+ if (parse_result != RAC_SUCCESS) {
+ return parse_result;
+ }
+ if (request.session_id().empty()) {
+ rac_proto_buffer_set_error(out_host_state, RAC_ERROR_INVALID_INPUT,
+ "Connect session id is required");
+ return RAC_ERROR_INVALID_INPUT;
+ }
+
+ std::lock_guard lock(runtime_mutex());
+ HostRuntime& host = runtime();
+ if (!host.is_hosting || host.session_clients.erase(request.session_id()) == 0) {
+ rac_proto_buffer_set_error(out_host_state, RAC_ERROR_NOT_FOUND,
+ "Connect session is not active");
+ return RAC_ERROR_NOT_FOUND;
+ }
+ return serialize_message(make_host_state(host), out_host_state);
+#endif
+}
+
+rac_result_t rac_connect_host_validate_invocation_proto(const uint8_t* request_bytes,
+ size_t request_size,
+ rac_proto_buffer_t* out_validation) {
+ if (out_validation == nullptr) {
+ return RAC_ERROR_NULL_POINTER;
+ }
+ rac_proto_buffer_init(out_validation);
+
+#if !defined(RAC_HAVE_PROTOBUF)
+ (void)request_bytes;
+ (void)request_size;
+ rac_proto_buffer_set_error(out_validation, RAC_ERROR_FEATURE_NOT_AVAILABLE,
+ "Connect requires protobuf support");
+ return RAC_ERROR_FEATURE_NOT_AVAILABLE;
+#else
+ v1::ConnectInvocationRequest request;
+ const rac_result_t parse_result =
+ parse_message(request_bytes, request_size, &request, out_validation,
+ "Invalid ConnectInvocationRequest protobuf payload");
+ if (parse_result != RAC_SUCCESS) {
+ return parse_result;
+ }
+
+ v1::ConnectInvocationValidation validation;
+ std::lock_guard lock(runtime_mutex());
+ const HostRuntime& host = runtime();
+ if (!host.is_hosting) {
+ validation.set_rejection_reason("Connect host is not active");
+ } else if (request.session_id().empty() ||
+ host.session_clients.find(request.session_id()) == host.session_clients.end()) {
+ validation.set_rejection_reason("Connect session is not active");
+ } else if (request.request_id().empty() || !request.has_generation() ||
+ request.generation().prompt().empty()) {
+ validation.set_rejection_reason("Connect generation request is incomplete");
+ } else if (request.generation().model_id() != host.model.model_id()) {
+ validation.set_rejection_reason("Requested model is not shared by this host");
+ } else {
+ validation.set_accepted(true);
+ }
+ return serialize_message(validation, out_validation);
+#endif
+}
+
+} // extern "C"
diff --git a/sdk/runanywhere-commons/src/connect/rac_connect_transport.cpp b/sdk/runanywhere-commons/src/connect/rac_connect_transport.cpp
new file mode 100644
index 0000000000..84b8497f0b
--- /dev/null
+++ b/sdk/runanywhere-commons/src/connect/rac_connect_transport.cpp
@@ -0,0 +1,175 @@
+/**
+ * @file rac_connect_transport.cpp
+ * @brief Registry and dispatch for platform-provided Connect channels.
+ */
+
+#include "rac/connect/rac_connect_transport.h"
+
+#include
+#include
+#include
+
+#include "rac/core/rac_logger.h"
+
+namespace {
+
+constexpr const char* kTag = "rac_connect_transport";
+
+struct TransportSlot {
+ rac_connect_transport_ops_t ops{};
+ void* user_data = nullptr;
+
+ ~TransportSlot() {
+ if (ops.destroy != nullptr) {
+ ops.destroy(user_data);
+ }
+ }
+};
+
+struct TransportRegistry {
+ std::mutex mutex;
+ std::shared_ptr active;
+};
+
+TransportRegistry& registry() {
+ static TransportRegistry instance;
+ return instance;
+}
+
+std::shared_ptr acquire_transport() {
+ std::lock_guard lock(registry().mutex);
+ return registry().active;
+}
+
+rac_result_t validate_ops(const rac_connect_transport_ops_t* ops) {
+ if (ops->abi_version != RAC_CONNECT_TRANSPORT_ABI_VERSION ||
+ ops->struct_size < sizeof(rac_connect_transport_ops_t)) {
+ return RAC_ERROR_ABI_VERSION_MISMATCH;
+ }
+ if (ops->open == nullptr || ops->send == nullptr || ops->receive == nullptr ||
+ ops->close == nullptr) {
+ return RAC_ERROR_INVALID_ARGUMENT;
+ }
+ return RAC_SUCCESS;
+}
+
+} // namespace
+
+extern "C" {
+
+rac_result_t rac_connect_transport_register(const rac_connect_transport_ops_t* ops,
+ void* user_data) {
+ if (ops == nullptr) {
+ std::shared_ptr retiring;
+ {
+ std::lock_guard lock(registry().mutex);
+ retiring = std::move(registry().active);
+ }
+ retiring.reset();
+ RAC_LOG_INFO(kTag, "Connect transport unregistered");
+ return RAC_SUCCESS;
+ }
+
+ const rac_result_t validation = validate_ops(ops);
+ if (validation != RAC_SUCCESS) {
+ RAC_LOG_ERROR(kTag, "Connect transport rejected: invalid ABI or mandatory operation");
+ return validation;
+ }
+
+ auto replacement = std::make_shared();
+ replacement->ops = *ops;
+ replacement->user_data = user_data;
+
+ if (replacement->ops.init != nullptr) {
+ const rac_result_t init_result = replacement->ops.init(user_data);
+ if (init_result != RAC_SUCCESS) {
+ RAC_LOG_ERROR(kTag, "Connect transport init failed: rc=%d",
+ static_cast(init_result));
+ return init_result;
+ }
+ }
+
+ std::shared_ptr retiring;
+ {
+ std::lock_guard lock(registry().mutex);
+ retiring = std::move(registry().active);
+ registry().active = replacement;
+ }
+ retiring.reset();
+
+ RAC_LOG_INFO(kTag, "Connect transport registered");
+ return RAC_SUCCESS;
+}
+
+rac_bool_t rac_connect_transport_is_registered(void) {
+ std::lock_guard lock(registry().mutex);
+ return registry().active != nullptr ? RAC_TRUE : RAC_FALSE;
+}
+
+rac_result_t rac_connect_transport_open(const rac_connect_endpoint_t* endpoint,
+ rac_connect_channel_t* out_channel) {
+ if (endpoint == nullptr || out_channel == nullptr ||
+ (endpoint->data == nullptr && endpoint->size > 0)) {
+ return RAC_ERROR_INVALID_ARGUMENT;
+ }
+ *out_channel = RAC_CONNECT_INVALID_CHANNEL;
+
+ const std::shared_ptr slot = acquire_transport();
+ if (slot == nullptr) {
+ return RAC_ERROR_ADAPTER_NOT_SET;
+ }
+
+ const rac_result_t result = slot->ops.open(slot->user_data, endpoint, out_channel);
+ if (result == RAC_SUCCESS && *out_channel == RAC_CONNECT_INVALID_CHANNEL) {
+ return RAC_ERROR_PROCESSING_FAILED;
+ }
+ return result;
+}
+
+rac_result_t rac_connect_transport_send(rac_connect_channel_t channel, const uint8_t* payload,
+ size_t payload_size) {
+ if (channel == RAC_CONNECT_INVALID_CHANNEL || payload == nullptr || payload_size == 0) {
+ return RAC_ERROR_INVALID_ARGUMENT;
+ }
+
+ const std::shared_ptr slot = acquire_transport();
+ if (slot == nullptr) {
+ return RAC_ERROR_ADAPTER_NOT_SET;
+ }
+ return slot->ops.send(slot->user_data, channel, payload, payload_size);
+}
+
+rac_result_t rac_connect_transport_receive(rac_connect_channel_t channel,
+ rac_proto_buffer_t* out_payload) {
+ if (channel == RAC_CONNECT_INVALID_CHANNEL || out_payload == nullptr) {
+ return RAC_ERROR_INVALID_ARGUMENT;
+ }
+ rac_proto_buffer_init(out_payload);
+
+ const std::shared_ptr slot = acquire_transport();
+ if (slot == nullptr) {
+ rac_proto_buffer_set_error(out_payload, RAC_ERROR_ADAPTER_NOT_SET,
+ "Connect transport adapter is not registered");
+ return RAC_ERROR_ADAPTER_NOT_SET;
+ }
+
+ const rac_result_t result = slot->ops.receive(slot->user_data, channel, out_payload);
+ if (result != RAC_SUCCESS && out_payload->status == RAC_SUCCESS) {
+ rac_proto_buffer_set_error(out_payload, result, "Connect transport receive failed");
+ }
+ return result;
+}
+
+rac_result_t rac_connect_transport_close(rac_connect_channel_t channel) {
+ if (channel == RAC_CONNECT_INVALID_CHANNEL) {
+ return RAC_ERROR_INVALID_ARGUMENT;
+ }
+
+ const std::shared_ptr slot = acquire_transport();
+ if (slot == nullptr) {
+ return RAC_ERROR_ADAPTER_NOT_SET;
+ }
+ return slot->ops.close(slot->user_data, channel);
+}
+
+} // extern "C"
diff --git a/sdk/runanywhere-commons/src/generated/proto/connect.pb.cc b/sdk/runanywhere-commons/src/generated/proto/connect.pb.cc
new file mode 100644
index 0000000000..76f96a7d85
--- /dev/null
+++ b/sdk/runanywhere-commons/src/generated/proto/connect.pb.cc
@@ -0,0 +1,8752 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: connect.proto
+// Protobuf C++ Version: 7.35.1
+
+#include "connect.pb.h"
+
+#include
+#include
+#include "google/protobuf/io/coded_stream.h"
+#include "google/protobuf/generated_message_tctable_impl.h"
+#include "google/protobuf/internal_visibility.h"
+#include "google/protobuf/extension_set.h"
+#include "google/protobuf/generated_message_util.h"
+#include "google/protobuf/wire_format_lite.h"
+#include "google/protobuf/descriptor.h"
+#include "google/protobuf/generated_message_reflection.h"
+#include "google/protobuf/reflection_ops.h"
+#include "google/protobuf/wire_format.h"
+// @@protoc_insertion_point(includes)
+
+// Must be included last.
+#include "google/protobuf/port_def.inc"
+PROTOBUF_PRAGMA_INIT_SEG
+namespace _pb = ::google::protobuf;
+namespace _pbi = ::google::protobuf::internal;
+namespace _fl = ::google::protobuf::internal::field_layout;
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+namespace {
+PROTOBUF_CONSTINIT ::google::protobuf::internal::ReflectionData
+ file_reflection_data[] = {
+ // ::runanywhere::v1::ConnectPlatformPolicyRequest
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectPlatformPolicy
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectDiscoveryMetadata
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectModelDescriptor
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectHostStartRequest
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectHostStopRequest
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectHostState
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectClientStartRequest
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectClientHello
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectHandshakeResponse
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectClientSessionState
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectSessionCloseRequest
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectInvocationRequest
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectInvocationValidation
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectInvocationEvent
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectHeartbeatRequest
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectHeartbeatResponse
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectClientFrame
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+ // ::runanywhere::v1::ConnectHostFrame
+ {&::_pbi::kDescriptorMethods, &::descriptor_table_connect_2eproto, /* tracker*/ nullptr,},
+};
+} // namespace
+#endif
+namespace runanywhere {
+namespace v1 {
+class ConnectSessionCloseRequest::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectSessionCloseRequest, _impl_._has_bits_);
+};
+
+constexpr ConnectSessionCloseRequest::ParseTableT_ ConnectSessionCloseRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectSessionCloseRequest, _impl_._has_bits_),
+ 0, // no _extensions_
+ 1, 0, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967294, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 1, // num_field_entries
+ 0, // num_aux_entries
+ offsetof(ParseTableT_, field_names), // no aux_entries
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectSessionCloseRequest>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ // string session_id = 1;
+ {::_pbi::TcParser::FastUS1,
+ {10, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectSessionCloseRequest, _impl_.session_id_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // string session_id = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectSessionCloseRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ }},
+ // no aux_entries
+ {{
+ "\51\12\0\0\0\0\0\0"
+ "runanywhere.v1.ConnectSessionCloseRequest"
+ "session_id"
+ }},
+ };
+}
+
+
+inline constexpr ConnectSessionCloseRequest::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ session_id_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()) {}
+
+template
+constexpr ConnectSessionCloseRequest::ConnectSessionCloseRequest(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectSessionCloseRequest::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectSessionCloseRequest(arena);
+}
+constexpr auto ConnectSessionCloseRequest::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectSessionCloseRequest), alignof(ConnectSessionCloseRequest));
+}
+constexpr auto ConnectSessionCloseRequest::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectSessionCloseRequest::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectSessionCloseRequest::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectSessionCloseRequest::ByteSizeLong,
+ &ConnectSessionCloseRequest::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectSessionCloseRequest, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[11],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectSessionCloseRequestGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectSessionCloseRequestGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectSessionCloseRequest_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectSessionCloseRequest::InternalGenerateClassData_(
+ _default, &ConnectSessionCloseRequest_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectSessionCloseRequestGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectSessionCloseRequest _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectSessionCloseRequestGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectSessionCloseRequestGlobalsTypeInternal ConnectSessionCloseRequest_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectSessionCloseRequest_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectSessionCloseRequest_globals_.GetClassData();
+#else
+ return ConnectSessionCloseRequest_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectPlatformPolicyRequest::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicyRequest, _impl_._has_bits_);
+};
+
+constexpr ConnectPlatformPolicyRequest::ParseTableT_ ConnectPlatformPolicyRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicyRequest, _impl_._has_bits_),
+ 0, // no _extensions_
+ 1, 0, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967294, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 1, // num_field_entries
+ 0, // num_aux_entries
+ offsetof(ParseTableT_, field_names), // no aux_entries
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectPlatformPolicyRequest>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ // .runanywhere.v1.ConnectPlatform platform = 1;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectPlatformPolicyRequest, _impl_.platform_), 0>(),
+ {8, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicyRequest, _impl_.platform_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // .runanywhere.v1.ConnectPlatform platform = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicyRequest, _impl_.platform_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
+ }},
+ // no aux_entries
+ {{
+ }},
+ };
+}
+
+
+inline constexpr ConnectPlatformPolicyRequest::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ platform_{static_cast< ::runanywhere::v1::ConnectPlatform >(0)} {}
+
+template
+constexpr ConnectPlatformPolicyRequest::ConnectPlatformPolicyRequest(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectPlatformPolicyRequest::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectPlatformPolicyRequest(arena);
+}
+constexpr auto ConnectPlatformPolicyRequest::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectPlatformPolicyRequest), alignof(ConnectPlatformPolicyRequest));
+}
+constexpr auto ConnectPlatformPolicyRequest::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectPlatformPolicyRequest::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectPlatformPolicyRequest::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectPlatformPolicyRequest::ByteSizeLong,
+ &ConnectPlatformPolicyRequest::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicyRequest, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[0],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectPlatformPolicyRequestGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectPlatformPolicyRequestGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectPlatformPolicyRequest_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectPlatformPolicyRequest::InternalGenerateClassData_(
+ _default, &ConnectPlatformPolicyRequest_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectPlatformPolicyRequestGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectPlatformPolicyRequest _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicyRequestGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectPlatformPolicyRequestGlobalsTypeInternal ConnectPlatformPolicyRequest_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectPlatformPolicyRequest_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectPlatformPolicyRequest_globals_.GetClassData();
+#else
+ return ConnectPlatformPolicyRequest_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectPlatformPolicy::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicy, _impl_._has_bits_);
+};
+
+constexpr ConnectPlatformPolicy::ParseTableT_ ConnectPlatformPolicy::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicy, _impl_._has_bits_),
+ 0, // no _extensions_
+ 3, 24, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967288, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 3, // num_field_entries
+ 0, // num_aux_entries
+ offsetof(ParseTableT_, field_names), // no aux_entries
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectPlatformPolicy>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ {::_pbi::TcParser::MiniParse, {}},
+ // .runanywhere.v1.ConnectPlatform platform = 1;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectPlatformPolicy, _impl_.platform_), 0>(),
+ {8, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicy, _impl_.platform_)}},
+ // .runanywhere.v1.ConnectRoleAvailability host_role = 2;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectPlatformPolicy, _impl_.host_role_), 1>(),
+ {16, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicy, _impl_.host_role_)}},
+ // .runanywhere.v1.ConnectRoleAvailability client_role = 3;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectPlatformPolicy, _impl_.client_role_), 2>(),
+ {24, 2, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicy, _impl_.client_role_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // .runanywhere.v1.ConnectPlatform platform = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicy, _impl_.platform_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
+ // .runanywhere.v1.ConnectRoleAvailability host_role = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicy, _impl_.host_role_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
+ // .runanywhere.v1.ConnectRoleAvailability client_role = 3;
+ {PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicy, _impl_.client_role_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
+ }},
+ // no aux_entries
+ {{
+ }},
+ };
+}
+
+
+inline constexpr ConnectPlatformPolicy::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ platform_{static_cast< ::runanywhere::v1::ConnectPlatform >(0)},
+ host_role_{static_cast< ::runanywhere::v1::ConnectRoleAvailability >(0)},
+ client_role_{static_cast< ::runanywhere::v1::ConnectRoleAvailability >(0)} {}
+
+template
+constexpr ConnectPlatformPolicy::ConnectPlatformPolicy(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectPlatformPolicy::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectPlatformPolicy(arena);
+}
+constexpr auto ConnectPlatformPolicy::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectPlatformPolicy), alignof(ConnectPlatformPolicy));
+}
+constexpr auto ConnectPlatformPolicy::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectPlatformPolicy::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectPlatformPolicy::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectPlatformPolicy::ByteSizeLong,
+ &ConnectPlatformPolicy::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicy, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[1],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectPlatformPolicyGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectPlatformPolicyGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectPlatformPolicy_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectPlatformPolicy::InternalGenerateClassData_(
+ _default, &ConnectPlatformPolicy_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectPlatformPolicyGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectPlatformPolicy _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicyGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectPlatformPolicyGlobalsTypeInternal ConnectPlatformPolicy_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectPlatformPolicy_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectPlatformPolicy_globals_.GetClassData();
+#else
+ return ConnectPlatformPolicy_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectModelDescriptor::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_._has_bits_);
+};
+
+constexpr ConnectModelDescriptor::ParseTableT_ ConnectModelDescriptor::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_._has_bits_),
+ 0, // no _extensions_
+ 5, 56, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967264, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 5, // num_field_entries
+ 0, // num_aux_entries
+ offsetof(ParseTableT_, field_names), // no aux_entries
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectModelDescriptor>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ {::_pbi::TcParser::MiniParse, {}},
+ // string model_id = 1;
+ {::_pbi::TcParser::FastUS1,
+ {10, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.model_id_)}},
+ // string display_name = 2;
+ {::_pbi::TcParser::FastUS1,
+ {18, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.display_name_)}},
+ // string framework = 3;
+ {::_pbi::TcParser::FastUS1,
+ {26, 2, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.framework_)}},
+ // uint32 context_window = 4;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectModelDescriptor, _impl_.context_window_), 3>(),
+ {32, 3, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.context_window_)}},
+ // bool supports_streaming = 5;
+ {::_pbi::TcParser::SingularVarintNoZag1(),
+ {40, 4, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.supports_streaming_)}},
+ {::_pbi::TcParser::MiniParse, {}},
+ {::_pbi::TcParser::MiniParse, {}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // string model_id = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.model_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // string display_name = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.display_name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // string framework = 3;
+ {PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.framework_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // uint32 context_window = 4;
+ {PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.context_window_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
+ // bool supports_streaming = 5;
+ {PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.supports_streaming_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
+ }},
+ // no aux_entries
+ {{
+ "\45\10\14\11\0\0\0\0"
+ "runanywhere.v1.ConnectModelDescriptor"
+ "model_id"
+ "display_name"
+ "framework"
+ }},
+ };
+}
+
+
+inline constexpr ConnectModelDescriptor::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ model_id_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ display_name_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ framework_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ context_window_{0u},
+ supports_streaming_{false} {}
+
+template
+constexpr ConnectModelDescriptor::ConnectModelDescriptor(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectModelDescriptor::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectModelDescriptor(arena);
+}
+constexpr auto ConnectModelDescriptor::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectModelDescriptor), alignof(ConnectModelDescriptor));
+}
+constexpr auto ConnectModelDescriptor::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectModelDescriptor::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectModelDescriptor::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectModelDescriptor::ByteSizeLong,
+ &ConnectModelDescriptor::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[3],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectModelDescriptorGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectModelDescriptorGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectModelDescriptor_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectModelDescriptor::InternalGenerateClassData_(
+ _default, &ConnectModelDescriptor_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectModelDescriptorGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectModelDescriptor _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectModelDescriptorGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectModelDescriptorGlobalsTypeInternal ConnectModelDescriptor_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectModelDescriptor_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectModelDescriptor_globals_.GetClassData();
+#else
+ return ConnectModelDescriptor_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectInvocationValidation::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectInvocationValidation, _impl_._has_bits_);
+};
+
+constexpr ConnectInvocationValidation::ParseTableT_ ConnectInvocationValidation::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationValidation, _impl_._has_bits_),
+ 0, // no _extensions_
+ 2, 8, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967292, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 2, // num_field_entries
+ 0, // num_aux_entries
+ offsetof(ParseTableT_, field_names), // no aux_entries
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectInvocationValidation>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ // string rejection_reason = 2;
+ {::_pbi::TcParser::FastUS1,
+ {18, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationValidation, _impl_.rejection_reason_)}},
+ // bool accepted = 1;
+ {::_pbi::TcParser::SingularVarintNoZag1(),
+ {8, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationValidation, _impl_.accepted_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // bool accepted = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectInvocationValidation, _impl_.accepted_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
+ // string rejection_reason = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectInvocationValidation, _impl_.rejection_reason_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ }},
+ // no aux_entries
+ {{
+ "\52\0\20\0\0\0\0\0"
+ "runanywhere.v1.ConnectInvocationValidation"
+ "rejection_reason"
+ }},
+ };
+}
+
+
+inline constexpr ConnectInvocationValidation::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ rejection_reason_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ accepted_{false} {}
+
+template
+constexpr ConnectInvocationValidation::ConnectInvocationValidation(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectInvocationValidation::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectInvocationValidation(arena);
+}
+constexpr auto ConnectInvocationValidation::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectInvocationValidation), alignof(ConnectInvocationValidation));
+}
+constexpr auto ConnectInvocationValidation::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectInvocationValidation::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectInvocationValidation::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectInvocationValidation::ByteSizeLong,
+ &ConnectInvocationValidation::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationValidation, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[13],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectInvocationValidationGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectInvocationValidationGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectInvocationValidation_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectInvocationValidation::InternalGenerateClassData_(
+ _default, &ConnectInvocationValidation_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectInvocationValidationGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectInvocationValidation _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectInvocationValidationGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectInvocationValidationGlobalsTypeInternal ConnectInvocationValidation_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectInvocationValidation_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectInvocationValidation_globals_.GetClassData();
+#else
+ return ConnectInvocationValidation_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectHostStopRequest::_Internal {
+ public:
+};
+
+constexpr ConnectHostStopRequest::ParseTableT_ ConnectHostStopRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectHostStopRequest,
+ _impl_._cached_size_), // no hasbits
+ 0, // no _extensions_
+ 0, 0, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967295, // skipmap
+ offsetof(ParseTableT_, field_names), // no field_entries
+ 0, // num_field_entries
+ 0, // num_aux_entries
+ offsetof(ParseTableT_, field_names), // no aux_entries
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectHostStopRequest>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ {::_pbi::TcParser::MiniParse, {}},
+ }}, {{
+ 65535, 65535
+ }}, // no field_entries, or aux_entries
+ {{
+ }},
+ };
+}
+
+template
+constexpr ConnectHostStopRequest::ConnectHostStopRequest(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::internal::ZeroFieldsBase(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ) {
+}
+inline void* PROTOBUF_NONNULL ConnectHostStopRequest::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectHostStopRequest(arena);
+}
+constexpr auto ConnectHostStopRequest::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectHostStopRequest), alignof(ConnectHostStopRequest));
+}
+constexpr auto ConnectHostStopRequest::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectHostStopRequest::MergeImpl,
+ ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectHostStopRequest::SharedDtor,
+ ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ConnectHostStopRequest::ByteSizeLong,
+ &ConnectHostStopRequest::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectHostStopRequest, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[5],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectHostStopRequestGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectHostStopRequestGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectHostStopRequest_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectHostStopRequest::InternalGenerateClassData_(
+ _default, &ConnectHostStopRequest_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectHostStopRequestGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectHostStopRequest _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectHostStopRequestGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectHostStopRequestGlobalsTypeInternal ConnectHostStopRequest_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectHostStopRequest_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectHostStopRequest_globals_.GetClassData();
+#else
+ return ConnectHostStopRequest_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectHeartbeatResponse::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectHeartbeatResponse, _impl_._has_bits_);
+};
+
+constexpr ConnectHeartbeatResponse::ParseTableT_ ConnectHeartbeatResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectHeartbeatResponse, _impl_._has_bits_),
+ 0, // no _extensions_
+ 2, 8, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967292, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 2, // num_field_entries
+ 0, // num_aux_entries
+ offsetof(ParseTableT_, field_names), // no aux_entries
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectHeartbeatResponse>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ // uint64 sequence = 2;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConnectHeartbeatResponse, _impl_.sequence_), 1>(),
+ {16, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHeartbeatResponse, _impl_.sequence_)}},
+ // string session_id = 1;
+ {::_pbi::TcParser::FastUS1,
+ {10, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHeartbeatResponse, _impl_.session_id_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // string session_id = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectHeartbeatResponse, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // uint64 sequence = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectHeartbeatResponse, _impl_.sequence_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
+ }},
+ // no aux_entries
+ {{
+ "\47\12\0\0\0\0\0\0"
+ "runanywhere.v1.ConnectHeartbeatResponse"
+ "session_id"
+ }},
+ };
+}
+
+
+inline constexpr ConnectHeartbeatResponse::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ session_id_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ sequence_{::uint64_t{0u}} {}
+
+template
+constexpr ConnectHeartbeatResponse::ConnectHeartbeatResponse(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectHeartbeatResponse::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectHeartbeatResponse(arena);
+}
+constexpr auto ConnectHeartbeatResponse::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectHeartbeatResponse), alignof(ConnectHeartbeatResponse));
+}
+constexpr auto ConnectHeartbeatResponse::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectHeartbeatResponse::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectHeartbeatResponse::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectHeartbeatResponse::ByteSizeLong,
+ &ConnectHeartbeatResponse::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectHeartbeatResponse, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[16],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectHeartbeatResponseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectHeartbeatResponseGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectHeartbeatResponse_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectHeartbeatResponse::InternalGenerateClassData_(
+ _default, &ConnectHeartbeatResponse_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectHeartbeatResponseGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectHeartbeatResponse _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectHeartbeatResponseGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectHeartbeatResponseGlobalsTypeInternal ConnectHeartbeatResponse_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectHeartbeatResponse_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectHeartbeatResponse_globals_.GetClassData();
+#else
+ return ConnectHeartbeatResponse_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectHeartbeatRequest::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectHeartbeatRequest, _impl_._has_bits_);
+};
+
+constexpr ConnectHeartbeatRequest::ParseTableT_ ConnectHeartbeatRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectHeartbeatRequest, _impl_._has_bits_),
+ 0, // no _extensions_
+ 2, 8, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967292, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 2, // num_field_entries
+ 0, // num_aux_entries
+ offsetof(ParseTableT_, field_names), // no aux_entries
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectHeartbeatRequest>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ // uint64 sequence = 2;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConnectHeartbeatRequest, _impl_.sequence_), 1>(),
+ {16, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHeartbeatRequest, _impl_.sequence_)}},
+ // string session_id = 1;
+ {::_pbi::TcParser::FastUS1,
+ {10, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHeartbeatRequest, _impl_.session_id_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // string session_id = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectHeartbeatRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // uint64 sequence = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectHeartbeatRequest, _impl_.sequence_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
+ }},
+ // no aux_entries
+ {{
+ "\46\12\0\0\0\0\0\0"
+ "runanywhere.v1.ConnectHeartbeatRequest"
+ "session_id"
+ }},
+ };
+}
+
+
+inline constexpr ConnectHeartbeatRequest::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ session_id_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ sequence_{::uint64_t{0u}} {}
+
+template
+constexpr ConnectHeartbeatRequest::ConnectHeartbeatRequest(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectHeartbeatRequest::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectHeartbeatRequest(arena);
+}
+constexpr auto ConnectHeartbeatRequest::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectHeartbeatRequest), alignof(ConnectHeartbeatRequest));
+}
+constexpr auto ConnectHeartbeatRequest::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectHeartbeatRequest::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectHeartbeatRequest::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectHeartbeatRequest::ByteSizeLong,
+ &ConnectHeartbeatRequest::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectHeartbeatRequest, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[15],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectHeartbeatRequestGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectHeartbeatRequestGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectHeartbeatRequest_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectHeartbeatRequest::InternalGenerateClassData_(
+ _default, &ConnectHeartbeatRequest_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectHeartbeatRequestGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectHeartbeatRequest _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectHeartbeatRequestGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectHeartbeatRequestGlobalsTypeInternal ConnectHeartbeatRequest_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectHeartbeatRequest_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectHeartbeatRequest_globals_.GetClassData();
+#else
+ return ConnectHeartbeatRequest_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectDiscoveryMetadata::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_._has_bits_);
+};
+
+constexpr ConnectDiscoveryMetadata::ParseTableT_ ConnectDiscoveryMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_._has_bits_),
+ 0, // no _extensions_
+ 4, 24, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967280, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 4, // num_field_entries
+ 0, // num_aux_entries
+ offsetof(ParseTableT_, field_names), // no aux_entries
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectDiscoveryMetadata>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ // uint32 protocol_version = 4;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectDiscoveryMetadata, _impl_.protocol_version_), 3>(),
+ {32, 3, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_.protocol_version_)}},
+ // string instance_id = 1;
+ {::_pbi::TcParser::FastUS1,
+ {10, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_.instance_id_)}},
+ // string display_name = 2;
+ {::_pbi::TcParser::FastUS1,
+ {18, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_.display_name_)}},
+ // .runanywhere.v1.ConnectPlatform platform = 3;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectDiscoveryMetadata, _impl_.platform_), 2>(),
+ {24, 2, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_.platform_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // string instance_id = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_.instance_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // string display_name = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_.display_name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // .runanywhere.v1.ConnectPlatform platform = 3;
+ {PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_.platform_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
+ // uint32 protocol_version = 4;
+ {PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_.protocol_version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
+ }},
+ // no aux_entries
+ {{
+ "\47\13\14\0\0\0\0\0"
+ "runanywhere.v1.ConnectDiscoveryMetadata"
+ "instance_id"
+ "display_name"
+ }},
+ };
+}
+
+
+inline constexpr ConnectDiscoveryMetadata::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ instance_id_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ display_name_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ platform_{static_cast< ::runanywhere::v1::ConnectPlatform >(0)},
+ protocol_version_{0u} {}
+
+template
+constexpr ConnectDiscoveryMetadata::ConnectDiscoveryMetadata(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectDiscoveryMetadata::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectDiscoveryMetadata(arena);
+}
+constexpr auto ConnectDiscoveryMetadata::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectDiscoveryMetadata), alignof(ConnectDiscoveryMetadata));
+}
+constexpr auto ConnectDiscoveryMetadata::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectDiscoveryMetadata::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectDiscoveryMetadata::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectDiscoveryMetadata::ByteSizeLong,
+ &ConnectDiscoveryMetadata::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[2],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectDiscoveryMetadataGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectDiscoveryMetadataGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectDiscoveryMetadata_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectDiscoveryMetadata::InternalGenerateClassData_(
+ _default, &ConnectDiscoveryMetadata_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectDiscoveryMetadataGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectDiscoveryMetadata _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadataGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectDiscoveryMetadataGlobalsTypeInternal ConnectDiscoveryMetadata_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectDiscoveryMetadata_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectDiscoveryMetadata_globals_.GetClassData();
+#else
+ return ConnectDiscoveryMetadata_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectClientStartRequest::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectClientStartRequest, _impl_._has_bits_);
+};
+
+constexpr ConnectClientStartRequest::ParseTableT_ ConnectClientStartRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectClientStartRequest, _impl_._has_bits_),
+ 0, // no _extensions_
+ 3, 24, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967288, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 3, // num_field_entries
+ 0, // num_aux_entries
+ offsetof(ParseTableT_, field_names), // no aux_entries
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectClientStartRequest>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ {::_pbi::TcParser::MiniParse, {}},
+ // string display_name = 1;
+ {::_pbi::TcParser::FastUS1,
+ {10, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectClientStartRequest, _impl_.display_name_)}},
+ // .runanywhere.v1.ConnectPlatform platform = 2;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectClientStartRequest, _impl_.platform_), 1>(),
+ {16, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectClientStartRequest, _impl_.platform_)}},
+ // uint32 protocol_version = 3;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectClientStartRequest, _impl_.protocol_version_), 2>(),
+ {24, 2, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectClientStartRequest, _impl_.protocol_version_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // string display_name = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientStartRequest, _impl_.display_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // .runanywhere.v1.ConnectPlatform platform = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientStartRequest, _impl_.platform_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
+ // uint32 protocol_version = 3;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientStartRequest, _impl_.protocol_version_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
+ }},
+ // no aux_entries
+ {{
+ "\50\14\0\0\0\0\0\0"
+ "runanywhere.v1.ConnectClientStartRequest"
+ "display_name"
+ }},
+ };
+}
+
+
+inline constexpr ConnectClientStartRequest::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ display_name_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ platform_{static_cast< ::runanywhere::v1::ConnectPlatform >(0)},
+ protocol_version_{0u} {}
+
+template
+constexpr ConnectClientStartRequest::ConnectClientStartRequest(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectClientStartRequest::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectClientStartRequest(arena);
+}
+constexpr auto ConnectClientStartRequest::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectClientStartRequest), alignof(ConnectClientStartRequest));
+}
+constexpr auto ConnectClientStartRequest::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectClientStartRequest::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectClientStartRequest::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectClientStartRequest::ByteSizeLong,
+ &ConnectClientStartRequest::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectClientStartRequest, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[7],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectClientStartRequestGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectClientStartRequestGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectClientStartRequest_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectClientStartRequest::InternalGenerateClassData_(
+ _default, &ConnectClientStartRequest_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectClientStartRequestGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectClientStartRequest _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectClientStartRequestGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectClientStartRequestGlobalsTypeInternal ConnectClientStartRequest_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectClientStartRequest_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectClientStartRequest_globals_.GetClassData();
+#else
+ return ConnectClientStartRequest_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectClientHello::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectClientHello, _impl_._has_bits_);
+};
+
+constexpr ConnectClientHello::ParseTableT_ ConnectClientHello::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectClientHello, _impl_._has_bits_),
+ 0, // no _extensions_
+ 4, 24, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967280, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 4, // num_field_entries
+ 0, // num_aux_entries
+ offsetof(ParseTableT_, field_names), // no aux_entries
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectClientHello>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ // uint32 protocol_version = 4;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectClientHello, _impl_.protocol_version_), 3>(),
+ {32, 3, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectClientHello, _impl_.protocol_version_)}},
+ // string instance_id = 1;
+ {::_pbi::TcParser::FastUS1,
+ {10, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectClientHello, _impl_.instance_id_)}},
+ // string display_name = 2;
+ {::_pbi::TcParser::FastUS1,
+ {18, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectClientHello, _impl_.display_name_)}},
+ // .runanywhere.v1.ConnectPlatform platform = 3;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectClientHello, _impl_.platform_), 2>(),
+ {24, 2, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectClientHello, _impl_.platform_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // string instance_id = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientHello, _impl_.instance_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // string display_name = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientHello, _impl_.display_name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // .runanywhere.v1.ConnectPlatform platform = 3;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientHello, _impl_.platform_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
+ // uint32 protocol_version = 4;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientHello, _impl_.protocol_version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
+ }},
+ // no aux_entries
+ {{
+ "\41\13\14\0\0\0\0\0"
+ "runanywhere.v1.ConnectClientHello"
+ "instance_id"
+ "display_name"
+ }},
+ };
+}
+
+
+inline constexpr ConnectClientHello::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ instance_id_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ display_name_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ platform_{static_cast< ::runanywhere::v1::ConnectPlatform >(0)},
+ protocol_version_{0u} {}
+
+template
+constexpr ConnectClientHello::ConnectClientHello(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectClientHello::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectClientHello(arena);
+}
+constexpr auto ConnectClientHello::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectClientHello), alignof(ConnectClientHello));
+}
+constexpr auto ConnectClientHello::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectClientHello::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectClientHello::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectClientHello::ByteSizeLong,
+ &ConnectClientHello::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectClientHello, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[8],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectClientHelloGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectClientHelloGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectClientHello_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectClientHello::InternalGenerateClassData_(
+ _default, &ConnectClientHello_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectClientHelloGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectClientHello _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectClientHelloGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectClientHelloGlobalsTypeInternal ConnectClientHello_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectClientHello_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectClientHello_globals_.GetClassData();
+#else
+ return ConnectClientHello_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectHostState::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_._has_bits_);
+};
+
+constexpr ConnectHostState::ParseTableT_ ConnectHostState::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_._has_bits_),
+ 0, // no _extensions_
+ 5, 56, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967264, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 5, // num_field_entries
+ 2, // num_aux_entries
+ offsetof(ParseTableT_, aux_entries),
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectHostState>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ {::_pbi::TcParser::MiniParse, {}},
+ // bool is_hosting = 1;
+ {::_pbi::TcParser::SingularVarintNoZag1(),
+ {8, 3, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_.is_hosting_)}},
+ // .runanywhere.v1.ConnectDiscoveryMetadata discovery_metadata = 2;
+ {::_pbi::TcParser::FastMtS1,
+ {18, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_.discovery_metadata_)}},
+ // uint32 active_client_count = 3;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectHostState, _impl_.active_client_count_), 4>(),
+ {24, 4, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_.active_client_count_)}},
+ // string error_message = 4;
+ {::_pbi::TcParser::FastUS1,
+ {34, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_.error_message_)}},
+ // .runanywhere.v1.ConnectModelDescriptor model = 5;
+ {::_pbi::TcParser::FastMtS1,
+ {42, 2, 1,
+ PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_.model_)}},
+ {::_pbi::TcParser::MiniParse, {}},
+ {::_pbi::TcParser::MiniParse, {}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // bool is_hosting = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_.is_hosting_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
+ // .runanywhere.v1.ConnectDiscoveryMetadata discovery_metadata = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_.discovery_metadata_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
+ // uint32 active_client_count = 3;
+ {PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_.active_client_count_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
+ // string error_message = 4;
+ {PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_.error_message_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // .runanywhere.v1.ConnectModelDescriptor model = 5;
+ {PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_.model_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
+ }},
+ {{
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectDiscoveryMetadata>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::ConnectDiscoveryMetadata_globals_},
+ #endif
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectModelDescriptor>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::ConnectModelDescriptor_globals_},
+ #endif
+ }},
+ {{
+ "\37\0\0\0\15\0\0\0"
+ "runanywhere.v1.ConnectHostState"
+ "error_message"
+ }},
+ };
+}
+
+
+inline constexpr ConnectHostState::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ error_message_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ discovery_metadata_{nullptr},
+ model_{nullptr},
+ is_hosting_{false},
+ active_client_count_{0u} {}
+
+template
+constexpr ConnectHostState::ConnectHostState(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectHostState::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectHostState(arena);
+}
+constexpr auto ConnectHostState::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectHostState), alignof(ConnectHostState));
+}
+constexpr auto ConnectHostState::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectHostState::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectHostState::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectHostState::ByteSizeLong,
+ &ConnectHostState::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectHostState, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[6],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectHostStateGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectHostStateGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectHostState_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectHostState::InternalGenerateClassData_(
+ _default, &ConnectHostState_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectHostStateGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectHostState _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectHostStateGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectHostStateGlobalsTypeInternal ConnectHostState_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectHostState_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectHostState_globals_.GetClassData();
+#else
+ return ConnectHostState_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectHostStartRequest::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_._has_bits_);
+};
+
+constexpr ConnectHostStartRequest::ParseTableT_ ConnectHostStartRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_._has_bits_),
+ 0, // no _extensions_
+ 4, 24, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967280, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 4, // num_field_entries
+ 1, // num_aux_entries
+ offsetof(ParseTableT_, aux_entries),
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectHostStartRequest>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ // .runanywhere.v1.ConnectModelDescriptor model = 4;
+ {::_pbi::TcParser::FastMtS1,
+ {34, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_.model_)}},
+ // string display_name = 1;
+ {::_pbi::TcParser::FastUS1,
+ {10, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_.display_name_)}},
+ // .runanywhere.v1.ConnectPlatform platform = 2;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectHostStartRequest, _impl_.platform_), 2>(),
+ {16, 2, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_.platform_)}},
+ // uint32 protocol_version = 3;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectHostStartRequest, _impl_.protocol_version_), 3>(),
+ {24, 3, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_.protocol_version_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // string display_name = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_.display_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // .runanywhere.v1.ConnectPlatform platform = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_.platform_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
+ // uint32 protocol_version = 3;
+ {PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_.protocol_version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
+ // .runanywhere.v1.ConnectModelDescriptor model = 4;
+ {PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_.model_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
+ }},
+ {{
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectModelDescriptor>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::ConnectModelDescriptor_globals_},
+ #endif
+ }},
+ {{
+ "\46\14\0\0\0\0\0\0"
+ "runanywhere.v1.ConnectHostStartRequest"
+ "display_name"
+ }},
+ };
+}
+
+
+inline constexpr ConnectHostStartRequest::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ display_name_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ model_{nullptr},
+ platform_{static_cast< ::runanywhere::v1::ConnectPlatform >(0)},
+ protocol_version_{0u} {}
+
+template
+constexpr ConnectHostStartRequest::ConnectHostStartRequest(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectHostStartRequest::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectHostStartRequest(arena);
+}
+constexpr auto ConnectHostStartRequest::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectHostStartRequest), alignof(ConnectHostStartRequest));
+}
+constexpr auto ConnectHostStartRequest::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectHostStartRequest::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectHostStartRequest::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectHostStartRequest::ByteSizeLong,
+ &ConnectHostStartRequest::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[4],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectHostStartRequestGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectHostStartRequestGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectHostStartRequest_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectHostStartRequest::InternalGenerateClassData_(
+ _default, &ConnectHostStartRequest_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectHostStartRequestGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectHostStartRequest _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectHostStartRequestGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectHostStartRequestGlobalsTypeInternal ConnectHostStartRequest_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectHostStartRequest_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectHostStartRequest_globals_.GetClassData();
+#else
+ return ConnectHostStartRequest_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectHandshakeResponse::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_._has_bits_);
+};
+
+constexpr ConnectHandshakeResponse::ParseTableT_ ConnectHandshakeResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_._has_bits_),
+ 0, // no _extensions_
+ 5, 56, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967264, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 5, // num_field_entries
+ 2, // num_aux_entries
+ offsetof(ParseTableT_, aux_entries),
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectHandshakeResponse>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ {::_pbi::TcParser::MiniParse, {}},
+ // .runanywhere.v1.ConnectHandshakeStatus status = 1;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectHandshakeResponse, _impl_.status_), 4>(),
+ {8, 4, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_.status_)}},
+ // string session_id = 2;
+ {::_pbi::TcParser::FastUS1,
+ {18, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_.session_id_)}},
+ // .runanywhere.v1.ConnectDiscoveryMetadata host = 3;
+ {::_pbi::TcParser::FastMtS1,
+ {26, 2, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_.host_)}},
+ // string rejection_reason = 4;
+ {::_pbi::TcParser::FastUS1,
+ {34, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_.rejection_reason_)}},
+ // .runanywhere.v1.ConnectModelDescriptor model = 5;
+ {::_pbi::TcParser::FastMtS1,
+ {42, 3, 1,
+ PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_.model_)}},
+ {::_pbi::TcParser::MiniParse, {}},
+ {::_pbi::TcParser::MiniParse, {}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // .runanywhere.v1.ConnectHandshakeStatus status = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_.status_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
+ // string session_id = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // .runanywhere.v1.ConnectDiscoveryMetadata host = 3;
+ {PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_.host_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
+ // string rejection_reason = 4;
+ {PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_.rejection_reason_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // .runanywhere.v1.ConnectModelDescriptor model = 5;
+ {PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_.model_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
+ }},
+ {{
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectDiscoveryMetadata>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::ConnectDiscoveryMetadata_globals_},
+ #endif
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectModelDescriptor>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::ConnectModelDescriptor_globals_},
+ #endif
+ }},
+ {{
+ "\47\0\12\0\20\0\0\0"
+ "runanywhere.v1.ConnectHandshakeResponse"
+ "session_id"
+ "rejection_reason"
+ }},
+ };
+}
+
+
+inline constexpr ConnectHandshakeResponse::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ session_id_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ rejection_reason_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ host_{nullptr},
+ model_{nullptr},
+ status_{static_cast< ::runanywhere::v1::ConnectHandshakeStatus >(0)} {}
+
+template
+constexpr ConnectHandshakeResponse::ConnectHandshakeResponse(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectHandshakeResponse::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectHandshakeResponse(arena);
+}
+constexpr auto ConnectHandshakeResponse::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectHandshakeResponse), alignof(ConnectHandshakeResponse));
+}
+constexpr auto ConnectHandshakeResponse::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectHandshakeResponse::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectHandshakeResponse::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectHandshakeResponse::ByteSizeLong,
+ &ConnectHandshakeResponse::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponse, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[9],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectHandshakeResponseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectHandshakeResponseGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectHandshakeResponse_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectHandshakeResponse::InternalGenerateClassData_(
+ _default, &ConnectHandshakeResponse_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectHandshakeResponseGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectHandshakeResponse _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectHandshakeResponseGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectHandshakeResponseGlobalsTypeInternal ConnectHandshakeResponse_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectHandshakeResponse_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectHandshakeResponse_globals_.GetClassData();
+#else
+ return ConnectHandshakeResponse_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectClientSessionState::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_._has_bits_);
+};
+
+constexpr ConnectClientSessionState::ParseTableT_ ConnectClientSessionState::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_._has_bits_),
+ 0, // no _extensions_
+ 5, 56, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967264, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 5, // num_field_entries
+ 2, // num_aux_entries
+ offsetof(ParseTableT_, aux_entries),
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectClientSessionState>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ {::_pbi::TcParser::MiniParse, {}},
+ // .runanywhere.v1.ConnectSessionState state = 1;
+ {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConnectClientSessionState, _impl_.state_), 4>(),
+ {8, 4, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_.state_)}},
+ // string session_id = 2;
+ {::_pbi::TcParser::FastUS1,
+ {18, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_.session_id_)}},
+ // .runanywhere.v1.ConnectDiscoveryMetadata host = 3;
+ {::_pbi::TcParser::FastMtS1,
+ {26, 2, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_.host_)}},
+ // string error_message = 4;
+ {::_pbi::TcParser::FastUS1,
+ {34, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_.error_message_)}},
+ // .runanywhere.v1.ConnectModelDescriptor model = 5;
+ {::_pbi::TcParser::FastMtS1,
+ {42, 3, 1,
+ PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_.model_)}},
+ {::_pbi::TcParser::MiniParse, {}},
+ {::_pbi::TcParser::MiniParse, {}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // .runanywhere.v1.ConnectSessionState state = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_.state_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
+ // string session_id = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // .runanywhere.v1.ConnectDiscoveryMetadata host = 3;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_.host_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
+ // string error_message = 4;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_.error_message_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // .runanywhere.v1.ConnectModelDescriptor model = 5;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_.model_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
+ }},
+ {{
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectDiscoveryMetadata>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::ConnectDiscoveryMetadata_globals_},
+ #endif
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectModelDescriptor>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::ConnectModelDescriptor_globals_},
+ #endif
+ }},
+ {{
+ "\50\0\12\0\15\0\0\0"
+ "runanywhere.v1.ConnectClientSessionState"
+ "session_id"
+ "error_message"
+ }},
+ };
+}
+
+
+inline constexpr ConnectClientSessionState::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ session_id_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ error_message_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ host_{nullptr},
+ model_{nullptr},
+ state_{static_cast< ::runanywhere::v1::ConnectSessionState >(0)} {}
+
+template
+constexpr ConnectClientSessionState::ConnectClientSessionState(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectClientSessionState::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectClientSessionState(arena);
+}
+constexpr auto ConnectClientSessionState::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectClientSessionState), alignof(ConnectClientSessionState));
+}
+constexpr auto ConnectClientSessionState::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectClientSessionState::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectClientSessionState::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectClientSessionState::ByteSizeLong,
+ &ConnectClientSessionState::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectClientSessionState, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[10],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectClientSessionStateGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectClientSessionStateGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectClientSessionState_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectClientSessionState::InternalGenerateClassData_(
+ _default, &ConnectClientSessionState_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectClientSessionStateGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectClientSessionState _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectClientSessionStateGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectClientSessionStateGlobalsTypeInternal ConnectClientSessionState_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectClientSessionState_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectClientSessionState_globals_.GetClassData();
+#else
+ return ConnectClientSessionState_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectInvocationEvent::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectInvocationEvent, _impl_._has_bits_);
+};
+
+constexpr ConnectInvocationEvent::ParseTableT_ ConnectInvocationEvent::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationEvent, _impl_._has_bits_),
+ 0, // no _extensions_
+ 2, 8, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967292, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 2, // num_field_entries
+ 1, // num_aux_entries
+ offsetof(ParseTableT_, aux_entries),
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectInvocationEvent>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ // .runanywhere.v1.LLMStreamEvent event = 2;
+ {::_pbi::TcParser::FastMtS1,
+ {18, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationEvent, _impl_.event_)}},
+ // string request_id = 1;
+ {::_pbi::TcParser::FastUS1,
+ {10, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationEvent, _impl_.request_id_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // string request_id = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectInvocationEvent, _impl_.request_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // .runanywhere.v1.LLMStreamEvent event = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectInvocationEvent, _impl_.event_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
+ }},
+ {{
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::LLMStreamEvent>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::LLMStreamEvent_globals_},
+ #endif
+ }},
+ {{
+ "\45\12\0\0\0\0\0\0"
+ "runanywhere.v1.ConnectInvocationEvent"
+ "request_id"
+ }},
+ };
+}
+
+
+inline constexpr ConnectInvocationEvent::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ request_id_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ event_{nullptr} {}
+
+template
+constexpr ConnectInvocationEvent::ConnectInvocationEvent(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectInvocationEvent::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectInvocationEvent(arena);
+}
+constexpr auto ConnectInvocationEvent::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectInvocationEvent), alignof(ConnectInvocationEvent));
+}
+constexpr auto ConnectInvocationEvent::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectInvocationEvent::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectInvocationEvent::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectInvocationEvent::ByteSizeLong,
+ &ConnectInvocationEvent::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationEvent, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[14],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectInvocationEventGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectInvocationEventGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectInvocationEvent_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectInvocationEvent::InternalGenerateClassData_(
+ _default, &ConnectInvocationEvent_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectInvocationEventGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectInvocationEvent _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectInvocationEventGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectInvocationEventGlobalsTypeInternal ConnectInvocationEvent_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectInvocationEvent_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectInvocationEvent_globals_.GetClassData();
+#else
+ return ConnectInvocationEvent_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectHostFrame::_Internal {
+ public:
+ static constexpr ::int32_t kOneofCaseOffset =
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostFrame, _impl_._oneof_case_);
+};
+
+constexpr ConnectHostFrame::ParseTableT_ ConnectHostFrame::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectHostFrame,
+ _impl_._cached_size_), // no hasbits
+ 0, // no _extensions_
+ 2, 0, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967292, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 2, // num_field_entries
+ 2, // num_aux_entries
+ offsetof(ParseTableT_, aux_entries),
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectHostFrame>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ {::_pbi::TcParser::MiniParse, {}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // .runanywhere.v1.ConnectInvocationEvent invocation_event = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectHostFrame, _impl_.payload_.invocation_event_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
+ // .runanywhere.v1.ConnectHeartbeatResponse heartbeat = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectHostFrame, _impl_.payload_.heartbeat_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
+ }},
+ {{
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectInvocationEvent>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::ConnectInvocationEvent_globals_},
+ #endif
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectHeartbeatResponse>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::ConnectHeartbeatResponse_globals_},
+ #endif
+ }},
+ {{
+ }},
+ };
+}
+
+
+inline constexpr ConnectHostFrame::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : payload_{},
+ _cached_size_{0},
+ _oneof_case_{} {}
+
+template
+constexpr ConnectHostFrame::ConnectHostFrame(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectHostFrame::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectHostFrame(arena);
+}
+constexpr auto ConnectHostFrame::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectHostFrame), alignof(ConnectHostFrame));
+}
+constexpr auto ConnectHostFrame::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectHostFrame::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectHostFrame::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectHostFrame::ByteSizeLong,
+ &ConnectHostFrame::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectHostFrame, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[18],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectHostFrameGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectHostFrameGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectHostFrame_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectHostFrame::InternalGenerateClassData_(
+ _default, &ConnectHostFrame_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectHostFrameGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectHostFrame _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectHostFrameGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectHostFrameGlobalsTypeInternal ConnectHostFrame_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectHostFrame_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectHostFrame_globals_.GetClassData();
+#else
+ return ConnectHostFrame_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectInvocationRequest::_Internal {
+ public:
+ using HasBits = decltype(::std::declval()._impl_._has_bits_);
+ static constexpr ::int32_t kHasBitsOffset =
+ 8 * PROTOBUF_FIELD_OFFSET(ConnectInvocationRequest, _impl_._has_bits_);
+};
+
+constexpr ConnectInvocationRequest::ParseTableT_ ConnectInvocationRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationRequest, _impl_._has_bits_),
+ 0, // no _extensions_
+ 3, 24, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967288, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 3, // num_field_entries
+ 1, // num_aux_entries
+ offsetof(ParseTableT_, aux_entries),
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectInvocationRequest>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ {::_pbi::TcParser::MiniParse, {}},
+ // string session_id = 1;
+ {::_pbi::TcParser::FastUS1,
+ {10, 0, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationRequest, _impl_.session_id_)}},
+ // string request_id = 2;
+ {::_pbi::TcParser::FastUS1,
+ {18, 1, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationRequest, _impl_.request_id_)}},
+ // .runanywhere.v1.LLMGenerateRequest generation = 3;
+ {::_pbi::TcParser::FastMtS1,
+ {26, 2, 0,
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationRequest, _impl_.generation_)}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // string session_id = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectInvocationRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // string request_id = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectInvocationRequest, _impl_.request_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
+ // .runanywhere.v1.LLMGenerateRequest generation = 3;
+ {PROTOBUF_FIELD_OFFSET(ConnectInvocationRequest, _impl_.generation_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
+ }},
+ {{
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::LLMGenerateRequest>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::LLMGenerateRequest_globals_},
+ #endif
+ }},
+ {{
+ "\47\12\12\0\0\0\0\0"
+ "runanywhere.v1.ConnectInvocationRequest"
+ "session_id"
+ "request_id"
+ }},
+ };
+}
+
+
+inline constexpr ConnectInvocationRequest::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : _cached_size_{0},
+ session_id_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ request_id_(
+ &::google::protobuf::internal::fixed_address_empty_string,
+ ::_pbi::ConstantInitialized()),
+ generation_{nullptr} {}
+
+template
+constexpr ConnectInvocationRequest::ConnectInvocationRequest(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectInvocationRequest::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectInvocationRequest(arena);
+}
+constexpr auto ConnectInvocationRequest::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConnectInvocationRequest), alignof(ConnectInvocationRequest));
+}
+constexpr auto ConnectInvocationRequest::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectInvocationRequest::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectInvocationRequest::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectInvocationRequest::ByteSizeLong,
+ &ConnectInvocationRequest::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectInvocationRequest, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[12],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectInvocationRequestGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectInvocationRequestGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectInvocationRequest_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectInvocationRequest::InternalGenerateClassData_(
+ _default, &ConnectInvocationRequest_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectInvocationRequestGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectInvocationRequest _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectInvocationRequestGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectInvocationRequestGlobalsTypeInternal ConnectInvocationRequest_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectInvocationRequest_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectInvocationRequest_globals_.GetClassData();
+#else
+ return ConnectInvocationRequest_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+class ConnectClientFrame::_Internal {
+ public:
+ static constexpr ::int32_t kOneofCaseOffset =
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientFrame, _impl_._oneof_case_);
+};
+
+constexpr ConnectClientFrame::ParseTableT_ ConnectClientFrame::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
+ return ParseTableT_{
+ {
+ PROTOBUF_FIELD_OFFSET(ConnectClientFrame,
+ _impl_._cached_size_), // no hasbits
+ 0, // no _extensions_
+ 2, 0, // max_field_number, fast_idx_mask
+ offsetof(ParseTableT_, field_lookup_table),
+ 4294967292, // skipmap
+ offsetof(ParseTableT_, field_entries),
+ 2, // num_field_entries
+ 2, // num_aux_entries
+ offsetof(ParseTableT_, aux_entries),
+ class_data,
+ nullptr, // post_loop_handler
+ ::_pbi::TcParser::GenericFallback, // fallback
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
+ ::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectClientFrame>(), // to_prefetch
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
+ }, {{
+ {::_pbi::TcParser::MiniParse, {}},
+ }}, {{
+ 65535, 65535
+ }}, {{
+ // .runanywhere.v1.ConnectInvocationRequest invocation = 1;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientFrame, _impl_.payload_.invocation_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
+ // .runanywhere.v1.ConnectHeartbeatRequest heartbeat = 2;
+ {PROTOBUF_FIELD_OFFSET(ConnectClientFrame, _impl_.payload_.heartbeat_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
+ }},
+ {{
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectInvocationRequest>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::ConnectInvocationRequest_globals_},
+ #endif
+ #ifndef PROTOBUF_MESSAGE_GLOBALS
+ {::_pbi::TcParser::GetTable<::runanywhere::v1::ConnectHeartbeatRequest>()},
+ #else
+ {::_pbi::FieldAuxMessageGlobals(), &::runanywhere::v1::ConnectHeartbeatRequest_globals_},
+ #endif
+ }},
+ {{
+ }},
+ };
+}
+
+
+inline constexpr ConnectClientFrame::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ ::_pbi::ConstantInitialized) noexcept
+ : payload_{},
+ _cached_size_{0},
+ _oneof_case_{} {}
+
+template
+constexpr ConnectClientFrame::ConnectClientFrame(::_pbi::ConstantInitialized,
+ const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
+ : ::google::protobuf::Message(
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ class_data
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ),
+ _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
+}
+inline void* PROTOBUF_NONNULL ConnectClientFrame::PlacementNew_(
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
+ return ::new (mem) ConnectClientFrame(arena);
+}
+constexpr auto ConnectClientFrame::InternalNewImpl_() {
+ return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConnectClientFrame), alignof(ConnectClientFrame));
+}
+constexpr auto ConnectClientFrame::InternalGenerateClassData_(
+ const MessageLite& prototype,
+ const ::google::protobuf::internal::TcParseTableBase* tc_table) {
+ return ::google::protobuf::internal::ClassDataFull{
+ ::google::protobuf::internal::ClassData{
+ &prototype,
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ &_table_.header,
+#else
+ tc_table,
+#endif
+ nullptr, // IsInitialized
+ &ConnectClientFrame::MergeImpl,
+ ::google::protobuf::Message::GetNewImpl(),
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ &ConnectClientFrame::SharedDtor,
+ ::google::protobuf::Message::GetClearImpl(), &ConnectClientFrame::ByteSizeLong,
+ &ConnectClientFrame::_InternalSerialize,
+#endif // PROTOBUF_CUSTOM_VTABLE
+ PROTOBUF_FIELD_OFFSET(ConnectClientFrame, _impl_._cached_size_),
+ false,
+ },
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ &file_reflection_data[17],
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ &::_pbi::kDescriptorMethods,
+ &descriptor_table_connect_2eproto,
+ nullptr, // tracker
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ };
+}
+struct ConnectClientFrameGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
+ constexpr ConnectClientFrameGlobalsTypeInternal()
+ :
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+ _default(::_pbi::ConstantInitialized{},
+ ConnectClientFrame_class_data_.base())
+#else // !PROTOBUF_MESSAGE_GLOBALS
+ MessageGlobalsBase(ConnectClientFrame::InternalGenerateClassData_(
+ _default, &ConnectClientFrame_globals_._table.header)),
+ _default(::_pbi::ConstantInitialized{}, GetClassData()),
+ _table(::_pbi::PrivateAccess::GenerateParseTable(
+ GetClassData()))
+#endif // PROTOBUF_MESSAGE_GLOBALS
+ {
+ }
+ ~ConnectClientFrameGlobalsTypeInternal() {}
+ union {
+ alignas(::_pbi::kMaxMessageAlignment) ConnectClientFrame _default;
+ };
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ decltype(::_pbi::PrivateAccess::GenerateParseTable(
+ ::std::declval())) _table;
+#endif
+};
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+static_assert(PROTOBUF_FIELD_OFFSET(ConnectClientFrameGlobalsTypeInternal, _default) ==
+ ::_pbi::MessageGlobalsBase::OffsetToDefault());
+#endif // PROTOBUF_MESSAGE_GLOBALS
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ConnectClientFrameGlobalsTypeInternal ConnectClientFrame_globals_
+ PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+namespace {
+const ::_pbi::ClassData* ConnectClientFrame_get_class_data() {
+#ifdef PROTOBUF_MESSAGE_GLOBALS
+ return ConnectClientFrame_globals_.GetClassData();
+#else
+ return ConnectClientFrame_class_data_.base();
+#endif // PROTOBUF_MESSAGE_GLOBALS
+}
+} // namespace
+#endif // PROTOBUF_CUSTOM_VTABLE
+} // namespace v1
+} // namespace runanywhere
+static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
+ file_level_enum_descriptors_connect_2eproto[4];
+static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
+ file_level_service_descriptors_connect_2eproto = nullptr;
+const ::uint32_t
+ TableStruct_connect_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
+ protodesc_cold) = {
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectPlatformPolicyRequest, _impl_._has_bits_),
+ 4, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectPlatformPolicyRequest, _impl_.platform_),
+ 0,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectPlatformPolicy, _impl_._has_bits_),
+ 6, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectPlatformPolicy, _impl_.platform_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectPlatformPolicy, _impl_.host_role_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectPlatformPolicy, _impl_.client_role_),
+ 0,
+ 1,
+ 2,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectDiscoveryMetadata, _impl_._has_bits_),
+ 7, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectDiscoveryMetadata, _impl_.instance_id_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectDiscoveryMetadata, _impl_.display_name_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectDiscoveryMetadata, _impl_.platform_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectDiscoveryMetadata, _impl_.protocol_version_),
+ 0,
+ 1,
+ 2,
+ 3,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectModelDescriptor, _impl_._has_bits_),
+ 8, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectModelDescriptor, _impl_.model_id_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectModelDescriptor, _impl_.display_name_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectModelDescriptor, _impl_.framework_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectModelDescriptor, _impl_.context_window_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectModelDescriptor, _impl_.supports_streaming_),
+ 0,
+ 1,
+ 2,
+ 3,
+ 4,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostStartRequest, _impl_._has_bits_),
+ 7, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostStartRequest, _impl_.display_name_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostStartRequest, _impl_.platform_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostStartRequest, _impl_.protocol_version_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostStartRequest, _impl_.model_),
+ 0,
+ 2,
+ 3,
+ 1,
+ 0x000, // bitmap
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostState, _impl_._has_bits_),
+ 8, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostState, _impl_.is_hosting_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostState, _impl_.discovery_metadata_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostState, _impl_.active_client_count_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostState, _impl_.error_message_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostState, _impl_.model_),
+ 3,
+ 1,
+ 4,
+ 0,
+ 2,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientStartRequest, _impl_._has_bits_),
+ 6, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientStartRequest, _impl_.display_name_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientStartRequest, _impl_.platform_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientStartRequest, _impl_.protocol_version_),
+ 0,
+ 1,
+ 2,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientHello, _impl_._has_bits_),
+ 7, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientHello, _impl_.instance_id_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientHello, _impl_.display_name_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientHello, _impl_.platform_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientHello, _impl_.protocol_version_),
+ 0,
+ 1,
+ 2,
+ 3,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHandshakeResponse, _impl_._has_bits_),
+ 8, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHandshakeResponse, _impl_.status_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHandshakeResponse, _impl_.session_id_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHandshakeResponse, _impl_.host_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHandshakeResponse, _impl_.rejection_reason_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHandshakeResponse, _impl_.model_),
+ 4,
+ 0,
+ 2,
+ 1,
+ 3,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientSessionState, _impl_._has_bits_),
+ 8, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientSessionState, _impl_.state_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientSessionState, _impl_.session_id_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientSessionState, _impl_.host_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientSessionState, _impl_.error_message_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientSessionState, _impl_.model_),
+ 4,
+ 0,
+ 2,
+ 1,
+ 3,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectSessionCloseRequest, _impl_._has_bits_),
+ 4, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectSessionCloseRequest, _impl_.session_id_),
+ 0,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectInvocationRequest, _impl_._has_bits_),
+ 6, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectInvocationRequest, _impl_.session_id_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectInvocationRequest, _impl_.request_id_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectInvocationRequest, _impl_.generation_),
+ 0,
+ 1,
+ 2,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectInvocationValidation, _impl_._has_bits_),
+ 5, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectInvocationValidation, _impl_.accepted_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectInvocationValidation, _impl_.rejection_reason_),
+ 1,
+ 0,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectInvocationEvent, _impl_._has_bits_),
+ 5, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectInvocationEvent, _impl_.request_id_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectInvocationEvent, _impl_.event_),
+ 0,
+ 1,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHeartbeatRequest, _impl_._has_bits_),
+ 5, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHeartbeatRequest, _impl_.session_id_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHeartbeatRequest, _impl_.sequence_),
+ 0,
+ 1,
+ 0x081, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHeartbeatResponse, _impl_._has_bits_),
+ 5, // hasbit index offset
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHeartbeatResponse, _impl_.session_id_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHeartbeatResponse, _impl_.sequence_),
+ 0,
+ 1,
+ 0x004, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientFrame, _impl_._oneof_case_[0]),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientFrame, _impl_.payload_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientFrame, _impl_.payload_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectClientFrame, _impl_.payload_),
+ 0x004, // bitmap
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostFrame, _impl_._oneof_case_[0]),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostFrame, _impl_.payload_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostFrame, _impl_.payload_),
+ PROTOBUF_FIELD_OFFSET(::runanywhere::v1::ConnectHostFrame, _impl_.payload_),
+};
+
+static const ::_pbi::MigrationSchema
+ schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ {0, sizeof(::runanywhere::v1::ConnectPlatformPolicyRequest)},
+ {5, sizeof(::runanywhere::v1::ConnectPlatformPolicy)},
+ {14, sizeof(::runanywhere::v1::ConnectDiscoveryMetadata)},
+ {25, sizeof(::runanywhere::v1::ConnectModelDescriptor)},
+ {38, sizeof(::runanywhere::v1::ConnectHostStartRequest)},
+ {49, sizeof(::runanywhere::v1::ConnectHostStopRequest)},
+ {50, sizeof(::runanywhere::v1::ConnectHostState)},
+ {63, sizeof(::runanywhere::v1::ConnectClientStartRequest)},
+ {72, sizeof(::runanywhere::v1::ConnectClientHello)},
+ {83, sizeof(::runanywhere::v1::ConnectHandshakeResponse)},
+ {96, sizeof(::runanywhere::v1::ConnectClientSessionState)},
+ {109, sizeof(::runanywhere::v1::ConnectSessionCloseRequest)},
+ {114, sizeof(::runanywhere::v1::ConnectInvocationRequest)},
+ {123, sizeof(::runanywhere::v1::ConnectInvocationValidation)},
+ {130, sizeof(::runanywhere::v1::ConnectInvocationEvent)},
+ {137, sizeof(::runanywhere::v1::ConnectHeartbeatRequest)},
+ {144, sizeof(::runanywhere::v1::ConnectHeartbeatResponse)},
+ {151, sizeof(::runanywhere::v1::ConnectClientFrame)},
+ {156, sizeof(::runanywhere::v1::ConnectHostFrame)},
+};
+static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const
+ file_message_globals[] = {
+ &::runanywhere::v1::ConnectPlatformPolicyRequest_globals_,
+ &::runanywhere::v1::ConnectPlatformPolicy_globals_,
+ &::runanywhere::v1::ConnectDiscoveryMetadata_globals_,
+ &::runanywhere::v1::ConnectModelDescriptor_globals_,
+ &::runanywhere::v1::ConnectHostStartRequest_globals_,
+ &::runanywhere::v1::ConnectHostStopRequest_globals_,
+ &::runanywhere::v1::ConnectHostState_globals_,
+ &::runanywhere::v1::ConnectClientStartRequest_globals_,
+ &::runanywhere::v1::ConnectClientHello_globals_,
+ &::runanywhere::v1::ConnectHandshakeResponse_globals_,
+ &::runanywhere::v1::ConnectClientSessionState_globals_,
+ &::runanywhere::v1::ConnectSessionCloseRequest_globals_,
+ &::runanywhere::v1::ConnectInvocationRequest_globals_,
+ &::runanywhere::v1::ConnectInvocationValidation_globals_,
+ &::runanywhere::v1::ConnectInvocationEvent_globals_,
+ &::runanywhere::v1::ConnectHeartbeatRequest_globals_,
+ &::runanywhere::v1::ConnectHeartbeatResponse_globals_,
+ &::runanywhere::v1::ConnectClientFrame_globals_,
+ &::runanywhere::v1::ConnectHostFrame_globals_,
+};
+const char descriptor_table_protodef_connect_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
+ protodesc_cold) = {
+ "\n\rconnect.proto\022\016runanywhere.v1\032\021llm_ser"
+ "vice.proto\"Q\n\034ConnectPlatformPolicyReque"
+ "st\0221\n\010platform\030\001 \001(\0162\037.runanywhere.v1.Co"
+ "nnectPlatform\"\304\001\n\025ConnectPlatformPolicy\022"
+ "1\n\010platform\030\001 \001(\0162\037.runanywhere.v1.Conne"
+ "ctPlatform\022:\n\thost_role\030\002 \001(\0162\'.runanywh"
+ "ere.v1.ConnectRoleAvailability\022<\n\013client"
+ "_role\030\003 \001(\0162\'.runanywhere.v1.ConnectRole"
+ "Availability\"\222\001\n\030ConnectDiscoveryMetadat"
+ "a\022\023\n\013instance_id\030\001 \001(\t\022\024\n\014display_name\030\002"
+ " \001(\t\0221\n\010platform\030\003 \001(\0162\037.runanywhere.v1."
+ "ConnectPlatform\022\030\n\020protocol_version\030\004 \001("
+ "\r\"\207\001\n\026ConnectModelDescriptor\022\020\n\010model_id"
+ "\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\021\n\tframewor"
+ "k\030\003 \001(\t\022\026\n\016context_window\030\004 \001(\r\022\032\n\022suppo"
+ "rts_streaming\030\005 \001(\010\"\263\001\n\027ConnectHostStart"
+ "Request\022\024\n\014display_name\030\001 \001(\t\0221\n\010platfor"
+ "m\030\002 \001(\0162\037.runanywhere.v1.ConnectPlatform"
+ "\022\030\n\020protocol_version\030\003 \001(\r\0225\n\005model\030\004 \001("
+ "\0132&.runanywhere.v1.ConnectModelDescripto"
+ "r\"\030\n\026ConnectHostStopRequest\"\327\001\n\020ConnectH"
+ "ostState\022\022\n\nis_hosting\030\001 \001(\010\022D\n\022discover"
+ "y_metadata\030\002 \001(\0132(.runanywhere.v1.Connec"
+ "tDiscoveryMetadata\022\033\n\023active_client_coun"
+ "t\030\003 \001(\r\022\025\n\rerror_message\030\004 \001(\t\0225\n\005model\030"
+ "\005 \001(\0132&.runanywhere.v1.ConnectModelDescr"
+ "iptor\"~\n\031ConnectClientStartRequest\022\024\n\014di"
+ "splay_name\030\001 \001(\t\0221\n\010platform\030\002 \001(\0162\037.run"
+ "anywhere.v1.ConnectPlatform\022\030\n\020protocol_"
+ "version\030\003 \001(\r\"\214\001\n\022ConnectClientHello\022\023\n\013"
+ "instance_id\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022"
+ "1\n\010platform\030\003 \001(\0162\037.runanywhere.v1.Conne"
+ "ctPlatform\022\030\n\020protocol_version\030\004 \001(\r\"\357\001\n"
+ "\030ConnectHandshakeResponse\0226\n\006status\030\001 \001("
+ "\0162&.runanywhere.v1.ConnectHandshakeStatu"
+ "s\022\022\n\nsession_id\030\002 \001(\t\0226\n\004host\030\003 \001(\0132(.ru"
+ "nanywhere.v1.ConnectDiscoveryMetadata\022\030\n"
+ "\020rejection_reason\030\004 \001(\t\0225\n\005model\030\005 \001(\0132&"
+ ".runanywhere.v1.ConnectModelDescriptor\"\351"
+ "\001\n\031ConnectClientSessionState\0222\n\005state\030\001 "
+ "\001(\0162#.runanywhere.v1.ConnectSessionState"
+ "\022\022\n\nsession_id\030\002 \001(\t\0226\n\004host\030\003 \001(\0132(.run"
+ "anywhere.v1.ConnectDiscoveryMetadata\022\025\n\r"
+ "error_message\030\004 \001(\t\0225\n\005model\030\005 \001(\0132&.run"
+ "anywhere.v1.ConnectModelDescriptor\"0\n\032Co"
+ "nnectSessionCloseRequest\022\022\n\nsession_id\030\001"
+ " \001(\t\"z\n\030ConnectInvocationRequest\022\022\n\nsess"
+ "ion_id\030\001 \001(\t\022\022\n\nrequest_id\030\002 \001(\t\0226\n\ngene"
+ "ration\030\003 \001(\0132\".runanywhere.v1.LLMGenerat"
+ "eRequest\"I\n\033ConnectInvocationValidation\022"
+ "\020\n\010accepted\030\001 \001(\010\022\030\n\020rejection_reason\030\002 "
+ "\001(\t\"[\n\026ConnectInvocationEvent\022\022\n\nrequest"
+ "_id\030\001 \001(\t\022-\n\005event\030\002 \001(\0132\036.runanywhere.v"
+ "1.LLMStreamEvent\"\?\n\027ConnectHeartbeatRequ"
+ "est\022\022\n\nsession_id\030\001 \001(\t\022\020\n\010sequence\030\002 \001("
+ "\004\"@\n\030ConnectHeartbeatResponse\022\022\n\nsession"
+ "_id\030\001 \001(\t\022\020\n\010sequence\030\002 \001(\004\"\235\001\n\022ConnectC"
+ "lientFrame\022>\n\ninvocation\030\001 \001(\0132(.runanyw"
+ "here.v1.ConnectInvocationRequestH\000\022<\n\the"
+ "artbeat\030\002 \001(\0132\'.runanywhere.v1.ConnectHe"
+ "artbeatRequestH\000B\t\n\007payload\"\240\001\n\020ConnectH"
+ "ostFrame\022B\n\020invocation_event\030\001 \001(\0132&.run"
+ "anywhere.v1.ConnectInvocationEventH\000\022=\n\t"
+ "heartbeat\030\002 \001(\0132(.runanywhere.v1.Connect"
+ "HeartbeatResponseH\000B\t\n\007payload*\235\002\n\017Conne"
+ "ctPlatform\022 \n\034CONNECT_PLATFORM_UNSPECIFI"
+ "ED\020\000\022\032\n\026CONNECT_PLATFORM_MACOS\020\001\022\030\n\024CONN"
+ "ECT_PLATFORM_IOS\020\002\022\033\n\027CONNECT_PLATFORM_I"
+ "PADOS\020\003\022\034\n\030CONNECT_PLATFORM_ANDROID\020\004\022!\n"
+ "\035CONNECT_PLATFORM_REACT_NATIVE\020\005\022\034\n\030CONN"
+ "ECT_PLATFORM_FLUTTER\020\006\022\030\n\024CONNECT_PLATFO"
+ "RM_WEB\020\007\022\034\n\030CONNECT_PLATFORM_WINDOWS\020\010*\272"
+ "\001\n\027ConnectRoleAvailability\022)\n%CONNECT_RO"
+ "LE_AVAILABILITY_UNSPECIFIED\020\000\022&\n\"CONNECT"
+ "_ROLE_AVAILABILITY_DISABLED\020\001\022%\n!CONNECT"
+ "_ROLE_AVAILABILITY_PLANNED\020\002\022%\n!CONNECT_"
+ "ROLE_AVAILABILITY_ENABLED\020\003*\220\001\n\026ConnectH"
+ "andshakeStatus\022(\n$CONNECT_HANDSHAKE_STAT"
+ "US_UNSPECIFIED\020\000\022%\n!CONNECT_HANDSHAKE_ST"
+ "ATUS_ACCEPTED\020\001\022%\n!CONNECT_HANDSHAKE_STA"
+ "TUS_REJECTED\020\002*\321\001\n\023ConnectSessionState\022%"
+ "\n!CONNECT_SESSION_STATE_UNSPECIFIED\020\000\022$\n"
+ " CONNECT_SESSION_STATE_CONNECTING\020\001\022#\n\037C"
+ "ONNECT_SESSION_STATE_CONNECTED\020\002\022&\n\"CONN"
+ "ECT_SESSION_STATE_DISCONNECTED\020\003\022 \n\034CONN"
+ "ECT_SESSION_STATE_FAILED\020\004B\207\001\n\027ai.runany"
+ "where.proto.v1B\014ConnectProtoP\001Z(
+ from._internal_metadata_);
+}
+PROTOBUF_NDEBUG_INLINE ConnectPlatformPolicyRequest::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+ : _cached_size_{0} {}
+
+inline void ConnectPlatformPolicyRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
+ new (&_impl_) Impl_(internal_visibility(), arena);
+ _impl_.platform_ = {};
+}
+ConnectPlatformPolicyRequest::~ConnectPlatformPolicyRequest() {
+ // @@protoc_insertion_point(destructor:runanywhere.v1.ConnectPlatformPolicyRequest)
+ SharedDtor(*this);
+}
+inline void ConnectPlatformPolicyRequest::SharedDtor(MessageLite& self) {
+ ConnectPlatformPolicyRequest& this_ = static_cast(self);
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ this_.CheckHasBitConsistency();
+ }
+ this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
+ ABSL_DCHECK(this_.GetArena() == nullptr);
+ this_._impl_.~Impl_();
+}
+
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
+ ::google::protobuf::internal::ClassDataFull ConnectPlatformPolicyRequest_class_data_ =
+ ConnectPlatformPolicyRequest::InternalGenerateClassData_(ConnectPlatformPolicyRequest_globals_._default);
+
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectPlatformPolicyRequest::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectPlatformPolicyRequest_class_data_);
+ ::google::protobuf::internal::PrefetchToLocalCache(ConnectPlatformPolicyRequest_class_data_.tc_table);
+ return ConnectPlatformPolicyRequest_class_data_.base();
+}
+#else
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectPlatformPolicyRequest::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectPlatformPolicyRequest_globals_);
+ ::google::protobuf::internal::PrefetchToLocalCache(
+ ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&ConnectPlatformPolicyRequest_globals_));
+ return ConnectPlatformPolicyRequest_globals_.GetClassData();
+}
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT
+PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ConnectPlatformPolicyRequest::ParseTableT_
+ ConnectPlatformPolicyRequest::_table_ =
+ ConnectPlatformPolicyRequest::InternalGenerateParseTable_(ConnectPlatformPolicyRequest_class_data_.base());
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_NOINLINE void ConnectPlatformPolicyRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:runanywhere.v1.ConnectPlatformPolicyRequest)
+ ::google::protobuf::internal::TSanWrite(&_impl_);
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ _impl_.platform_ = 0;
+ _impl_._has_bits_.Clear();
+ _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
+}
+
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+::uint8_t* PROTOBUF_NONNULL ConnectPlatformPolicyRequest::_InternalSerialize(
+ const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
+ const ConnectPlatformPolicyRequest& this_ = static_cast(base);
+#else // PROTOBUF_CUSTOM_VTABLE
+::uint8_t* PROTOBUF_NONNULL ConnectPlatformPolicyRequest::_InternalSerialize(
+ ::uint8_t* PROTOBUF_NONNULL target,
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
+ const ConnectPlatformPolicyRequest& this_ = *this;
+#endif // PROTOBUF_CUSTOM_VTABLE
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ this_.CheckHasBitConsistency();
+ }
+ // @@protoc_insertion_point(serialize_to_array_start:runanywhere.v1.ConnectPlatformPolicyRequest)
+ ::uint32_t cached_has_bits = 0;
+ (void)cached_has_bits;
+
+ cached_has_bits = this_._impl_._has_bits_[0];
+ // .runanywhere.v1.ConnectPlatform platform = 1;
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (this_._internal_platform() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteEnumToArray(
+ 1, this_._internal_platform(), target);
+ }
+ }
+
+ if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
+ target =
+ ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
+ this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:runanywhere.v1.ConnectPlatformPolicyRequest)
+ return target;
+}
+
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+::size_t ConnectPlatformPolicyRequest::ByteSizeLong(const MessageLite& base) {
+ const ConnectPlatformPolicyRequest& this_ = static_cast(base);
+#else // PROTOBUF_CUSTOM_VTABLE
+::size_t ConnectPlatformPolicyRequest::ByteSizeLong() const {
+ const ConnectPlatformPolicyRequest& this_ = *this;
+#endif // PROTOBUF_CUSTOM_VTABLE
+ // @@protoc_insertion_point(message_byte_size_start:runanywhere.v1.ConnectPlatformPolicyRequest)
+ ::size_t total_size = 0;
+
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void)cached_has_bits;
+
+ {
+ // .runanywhere.v1.ConnectPlatform platform = 1;
+ cached_has_bits = this_._impl_._has_bits_[0];
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (this_._internal_platform() != 0) {
+ total_size += 1 +
+ ::_pbi::WireFormatLite::EnumSize(this_._internal_platform());
+ }
+ }
+ }
+ return this_.MaybeComputeUnknownFieldsSize(total_size,
+ &this_._impl_._cached_size_);
+}
+
+void ConnectPlatformPolicyRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
+ const ::google::protobuf::MessageLite& from_msg) {
+ auto* const _this = static_cast(&to_msg);
+ auto& from = static_cast(from_msg);
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ from.CheckHasBitConsistency();
+ }
+ // @@protoc_insertion_point(class_specific_merge_from_start:runanywhere.v1.ConnectPlatformPolicyRequest)
+ ABSL_DCHECK_NE(&from, _this);
+ ::uint32_t cached_has_bits = 0;
+ (void)cached_has_bits;
+
+ cached_has_bits = from._impl_._has_bits_[0];
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (from._internal_platform() != 0) {
+ _this->_impl_.platform_ = from._impl_.platform_;
+ }
+ }
+ _this->_impl_._has_bits_[0] |= cached_has_bits;
+ _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
+ from._internal_metadata_);
+}
+
+void ConnectPlatformPolicyRequest::CopyFrom(const ConnectPlatformPolicyRequest& from) {
+ // @@protoc_insertion_point(class_specific_copy_from_start:runanywhere.v1.ConnectPlatformPolicyRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+
+void ConnectPlatformPolicyRequest::InternalSwap(ConnectPlatformPolicyRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
+ using ::std::swap;
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
+ swap(_impl_.platform_, other->_impl_.platform_);
+}
+
+::google::protobuf::Metadata ConnectPlatformPolicyRequest::GetMetadata() const {
+ return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
+}
+// ===================================================================
+
+ConnectPlatformPolicy::ConnectPlatformPolicy(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::Message(arena, ConnectPlatformPolicy_get_class_data()) {
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::Message(arena) {
+#endif // PROTOBUF_CUSTOM_VTABLE
+ SharedCtor(arena);
+ // @@protoc_insertion_point(arena_constructor:runanywhere.v1.ConnectPlatformPolicy)
+}
+ConnectPlatformPolicy::ConnectPlatformPolicy(
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConnectPlatformPolicy& from)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::Message(arena, ConnectPlatformPolicy_get_class_data()),
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::Message(arena),
+#endif // PROTOBUF_CUSTOM_VTABLE
+ _impl_(from._impl_) {
+ _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
+ from._internal_metadata_);
+}
+PROTOBUF_NDEBUG_INLINE ConnectPlatformPolicy::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+ : _cached_size_{0} {}
+
+inline void ConnectPlatformPolicy::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
+ new (&_impl_) Impl_(internal_visibility(), arena);
+ ::memset(reinterpret_cast(&_impl_) +
+ offsetof(Impl_, platform_),
+ 0,
+ offsetof(Impl_, client_role_) -
+ offsetof(Impl_, platform_) +
+ sizeof(Impl_::client_role_));
+}
+ConnectPlatformPolicy::~ConnectPlatformPolicy() {
+ // @@protoc_insertion_point(destructor:runanywhere.v1.ConnectPlatformPolicy)
+ SharedDtor(*this);
+}
+inline void ConnectPlatformPolicy::SharedDtor(MessageLite& self) {
+ ConnectPlatformPolicy& this_ = static_cast(self);
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ this_.CheckHasBitConsistency();
+ }
+ this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
+ ABSL_DCHECK(this_.GetArena() == nullptr);
+ this_._impl_.~Impl_();
+}
+
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
+ ::google::protobuf::internal::ClassDataFull ConnectPlatformPolicy_class_data_ =
+ ConnectPlatformPolicy::InternalGenerateClassData_(ConnectPlatformPolicy_globals_._default);
+
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectPlatformPolicy::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectPlatformPolicy_class_data_);
+ ::google::protobuf::internal::PrefetchToLocalCache(ConnectPlatformPolicy_class_data_.tc_table);
+ return ConnectPlatformPolicy_class_data_.base();
+}
+#else
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectPlatformPolicy::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectPlatformPolicy_globals_);
+ ::google::protobuf::internal::PrefetchToLocalCache(
+ ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&ConnectPlatformPolicy_globals_));
+ return ConnectPlatformPolicy_globals_.GetClassData();
+}
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT
+PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ConnectPlatformPolicy::ParseTableT_
+ ConnectPlatformPolicy::_table_ =
+ ConnectPlatformPolicy::InternalGenerateParseTable_(ConnectPlatformPolicy_class_data_.base());
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_NOINLINE void ConnectPlatformPolicy::Clear() {
+// @@protoc_insertion_point(message_clear_start:runanywhere.v1.ConnectPlatformPolicy)
+ ::google::protobuf::internal::TSanWrite(&_impl_);
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
+ ::memset(&_impl_.platform_, 0, static_cast<::size_t>(
+ reinterpret_cast(&_impl_.client_role_) -
+ reinterpret_cast(&_impl_.platform_)) + sizeof(_impl_.client_role_));
+ }
+ _impl_._has_bits_.Clear();
+ _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
+}
+
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+::uint8_t* PROTOBUF_NONNULL ConnectPlatformPolicy::_InternalSerialize(
+ const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
+ const ConnectPlatformPolicy& this_ = static_cast(base);
+#else // PROTOBUF_CUSTOM_VTABLE
+::uint8_t* PROTOBUF_NONNULL ConnectPlatformPolicy::_InternalSerialize(
+ ::uint8_t* PROTOBUF_NONNULL target,
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
+ const ConnectPlatformPolicy& this_ = *this;
+#endif // PROTOBUF_CUSTOM_VTABLE
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ this_.CheckHasBitConsistency();
+ }
+ // @@protoc_insertion_point(serialize_to_array_start:runanywhere.v1.ConnectPlatformPolicy)
+ ::uint32_t cached_has_bits = 0;
+ (void)cached_has_bits;
+
+ cached_has_bits = this_._impl_._has_bits_[0];
+ // .runanywhere.v1.ConnectPlatform platform = 1;
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (this_._internal_platform() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteEnumToArray(
+ 1, this_._internal_platform(), target);
+ }
+ }
+
+ // .runanywhere.v1.ConnectRoleAvailability host_role = 2;
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ if (this_._internal_host_role() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteEnumToArray(
+ 2, this_._internal_host_role(), target);
+ }
+ }
+
+ // .runanywhere.v1.ConnectRoleAvailability client_role = 3;
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (this_._internal_client_role() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteEnumToArray(
+ 3, this_._internal_client_role(), target);
+ }
+ }
+
+ if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
+ target =
+ ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
+ this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:runanywhere.v1.ConnectPlatformPolicy)
+ return target;
+}
+
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+::size_t ConnectPlatformPolicy::ByteSizeLong(const MessageLite& base) {
+ const ConnectPlatformPolicy& this_ = static_cast(base);
+#else // PROTOBUF_CUSTOM_VTABLE
+::size_t ConnectPlatformPolicy::ByteSizeLong() const {
+ const ConnectPlatformPolicy& this_ = *this;
+#endif // PROTOBUF_CUSTOM_VTABLE
+ // @@protoc_insertion_point(message_byte_size_start:runanywhere.v1.ConnectPlatformPolicy)
+ ::size_t total_size = 0;
+
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void)cached_has_bits;
+
+ ::_pbi::Prefetch5LinesFrom7Lines(&this_);
+ cached_has_bits = this_._impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
+ // .runanywhere.v1.ConnectPlatform platform = 1;
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (this_._internal_platform() != 0) {
+ total_size += 1 +
+ ::_pbi::WireFormatLite::EnumSize(this_._internal_platform());
+ }
+ }
+ // .runanywhere.v1.ConnectRoleAvailability host_role = 2;
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ if (this_._internal_host_role() != 0) {
+ total_size += 1 +
+ ::_pbi::WireFormatLite::EnumSize(this_._internal_host_role());
+ }
+ }
+ // .runanywhere.v1.ConnectRoleAvailability client_role = 3;
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (this_._internal_client_role() != 0) {
+ total_size += 1 +
+ ::_pbi::WireFormatLite::EnumSize(this_._internal_client_role());
+ }
+ }
+ }
+ return this_.MaybeComputeUnknownFieldsSize(total_size,
+ &this_._impl_._cached_size_);
+}
+
+void ConnectPlatformPolicy::MergeImpl(::google::protobuf::MessageLite& to_msg,
+ const ::google::protobuf::MessageLite& from_msg) {
+ auto* const _this = static_cast(&to_msg);
+ auto& from = static_cast(from_msg);
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ from.CheckHasBitConsistency();
+ }
+ // @@protoc_insertion_point(class_specific_merge_from_start:runanywhere.v1.ConnectPlatformPolicy)
+ ABSL_DCHECK_NE(&from, _this);
+ ::uint32_t cached_has_bits = 0;
+ (void)cached_has_bits;
+
+ cached_has_bits = from._impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (from._internal_platform() != 0) {
+ _this->_impl_.platform_ = from._impl_.platform_;
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ if (from._internal_host_role() != 0) {
+ _this->_impl_.host_role_ = from._impl_.host_role_;
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (from._internal_client_role() != 0) {
+ _this->_impl_.client_role_ = from._impl_.client_role_;
+ }
+ }
+ }
+ _this->_impl_._has_bits_[0] |= cached_has_bits;
+ _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
+ from._internal_metadata_);
+}
+
+void ConnectPlatformPolicy::CopyFrom(const ConnectPlatformPolicy& from) {
+ // @@protoc_insertion_point(class_specific_copy_from_start:runanywhere.v1.ConnectPlatformPolicy)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+
+void ConnectPlatformPolicy::InternalSwap(ConnectPlatformPolicy* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
+ using ::std::swap;
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
+ ::google::protobuf::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicy, _impl_.client_role_)
+ + sizeof(ConnectPlatformPolicy::_impl_.client_role_)
+ - PROTOBUF_FIELD_OFFSET(ConnectPlatformPolicy, _impl_.platform_)>(
+ reinterpret_cast(&_impl_.platform_),
+ reinterpret_cast(&other->_impl_.platform_));
+}
+
+::google::protobuf::Metadata ConnectPlatformPolicy::GetMetadata() const {
+ return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
+}
+// ===================================================================
+
+ConnectDiscoveryMetadata::ConnectDiscoveryMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::Message(arena, ConnectDiscoveryMetadata_get_class_data()) {
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::Message(arena) {
+#endif // PROTOBUF_CUSTOM_VTABLE
+ SharedCtor(arena);
+ // @@protoc_insertion_point(arena_constructor:runanywhere.v1.ConnectDiscoveryMetadata)
+}
+PROTOBUF_NDEBUG_INLINE ConnectDiscoveryMetadata::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
+ [[maybe_unused]] const ::runanywhere::v1::ConnectDiscoveryMetadata& from_msg)
+ : _has_bits_{from._has_bits_},
+ _cached_size_{0},
+ instance_id_(arena, from.instance_id_),
+ display_name_(arena, from.display_name_) {}
+
+ConnectDiscoveryMetadata::ConnectDiscoveryMetadata(
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
+ const ConnectDiscoveryMetadata& from)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::Message(arena, ConnectDiscoveryMetadata_get_class_data()) {
+
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::Message(arena) {
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ConnectDiscoveryMetadata* const _this = this;
+ (void)_this;
+ _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
+ from._internal_metadata_);
+ new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
+ ::memcpy(reinterpret_cast(&_impl_) +
+ offsetof(Impl_, platform_),
+ reinterpret_cast(&from._impl_) +
+ offsetof(Impl_, platform_),
+ offsetof(Impl_, protocol_version_) -
+ offsetof(Impl_, platform_) +
+ sizeof(Impl_::protocol_version_));
+
+ // @@protoc_insertion_point(copy_constructor:runanywhere.v1.ConnectDiscoveryMetadata)
+}
+PROTOBUF_NDEBUG_INLINE ConnectDiscoveryMetadata::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+ : _cached_size_{0},
+ instance_id_(arena),
+ display_name_(arena) {}
+
+inline void ConnectDiscoveryMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
+ new (&_impl_) Impl_(internal_visibility(), arena);
+ ::memset(reinterpret_cast(&_impl_) +
+ offsetof(Impl_, platform_),
+ 0,
+ offsetof(Impl_, protocol_version_) -
+ offsetof(Impl_, platform_) +
+ sizeof(Impl_::protocol_version_));
+}
+ConnectDiscoveryMetadata::~ConnectDiscoveryMetadata() {
+ // @@protoc_insertion_point(destructor:runanywhere.v1.ConnectDiscoveryMetadata)
+ SharedDtor(*this);
+}
+inline void ConnectDiscoveryMetadata::SharedDtor(MessageLite& self) {
+ ConnectDiscoveryMetadata& this_ = static_cast(self);
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ this_.CheckHasBitConsistency();
+ }
+ this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
+ ABSL_DCHECK(this_.GetArena() == nullptr);
+ this_._impl_.instance_id_.Destroy();
+ this_._impl_.display_name_.Destroy();
+ this_._impl_.~Impl_();
+}
+
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
+ ::google::protobuf::internal::ClassDataFull ConnectDiscoveryMetadata_class_data_ =
+ ConnectDiscoveryMetadata::InternalGenerateClassData_(ConnectDiscoveryMetadata_globals_._default);
+
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectDiscoveryMetadata::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectDiscoveryMetadata_class_data_);
+ ::google::protobuf::internal::PrefetchToLocalCache(ConnectDiscoveryMetadata_class_data_.tc_table);
+ return ConnectDiscoveryMetadata_class_data_.base();
+}
+#else
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectDiscoveryMetadata::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectDiscoveryMetadata_globals_);
+ ::google::protobuf::internal::PrefetchToLocalCache(
+ ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&ConnectDiscoveryMetadata_globals_));
+ return ConnectDiscoveryMetadata_globals_.GetClassData();
+}
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT
+PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ConnectDiscoveryMetadata::ParseTableT_
+ ConnectDiscoveryMetadata::_table_ =
+ ConnectDiscoveryMetadata::InternalGenerateParseTable_(ConnectDiscoveryMetadata_class_data_.base());
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_NOINLINE void ConnectDiscoveryMetadata::Clear() {
+// @@protoc_insertion_point(message_clear_start:runanywhere.v1.ConnectDiscoveryMetadata)
+ ::google::protobuf::internal::TSanWrite(&_impl_);
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ _impl_.instance_id_.ClearNonDefaultToEmpty();
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ _impl_.display_name_.ClearNonDefaultToEmpty();
+ }
+ }
+ if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) {
+ ::memset(&_impl_.platform_, 0, static_cast<::size_t>(
+ reinterpret_cast(&_impl_.protocol_version_) -
+ reinterpret_cast(&_impl_.platform_)) + sizeof(_impl_.protocol_version_));
+ }
+ _impl_._has_bits_.Clear();
+ _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
+}
+
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+::uint8_t* PROTOBUF_NONNULL ConnectDiscoveryMetadata::_InternalSerialize(
+ const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
+ const ConnectDiscoveryMetadata& this_ = static_cast(base);
+#else // PROTOBUF_CUSTOM_VTABLE
+::uint8_t* PROTOBUF_NONNULL ConnectDiscoveryMetadata::_InternalSerialize(
+ ::uint8_t* PROTOBUF_NONNULL target,
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
+ const ConnectDiscoveryMetadata& this_ = *this;
+#endif // PROTOBUF_CUSTOM_VTABLE
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ this_.CheckHasBitConsistency();
+ }
+ // @@protoc_insertion_point(serialize_to_array_start:runanywhere.v1.ConnectDiscoveryMetadata)
+ ::uint32_t cached_has_bits = 0;
+ (void)cached_has_bits;
+
+ cached_has_bits = this_._impl_._has_bits_[0];
+ // string instance_id = 1;
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (!this_._internal_instance_id().empty()) {
+ const ::std::string& _s = this_._internal_instance_id();
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "runanywhere.v1.ConnectDiscoveryMetadata.instance_id");
+ target = stream->WriteStringMaybeAliased(1, _s, target);
+ }
+ }
+
+ // string display_name = 2;
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ if (!this_._internal_display_name().empty()) {
+ const ::std::string& _s = this_._internal_display_name();
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "runanywhere.v1.ConnectDiscoveryMetadata.display_name");
+ target = stream->WriteStringMaybeAliased(2, _s, target);
+ }
+ }
+
+ // .runanywhere.v1.ConnectPlatform platform = 3;
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (this_._internal_platform() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteEnumToArray(
+ 3, this_._internal_platform(), target);
+ }
+ }
+
+ // uint32 protocol_version = 4;
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
+ if (this_._internal_protocol_version() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
+ 4, this_._internal_protocol_version(), target);
+ }
+ }
+
+ if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
+ target =
+ ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
+ this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:runanywhere.v1.ConnectDiscoveryMetadata)
+ return target;
+}
+
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+::size_t ConnectDiscoveryMetadata::ByteSizeLong(const MessageLite& base) {
+ const ConnectDiscoveryMetadata& this_ = static_cast(base);
+#else // PROTOBUF_CUSTOM_VTABLE
+::size_t ConnectDiscoveryMetadata::ByteSizeLong() const {
+ const ConnectDiscoveryMetadata& this_ = *this;
+#endif // PROTOBUF_CUSTOM_VTABLE
+ // @@protoc_insertion_point(message_byte_size_start:runanywhere.v1.ConnectDiscoveryMetadata)
+ ::size_t total_size = 0;
+
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void)cached_has_bits;
+
+ ::_pbi::Prefetch5LinesFrom7Lines(&this_);
+ cached_has_bits = this_._impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
+ // string instance_id = 1;
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (!this_._internal_instance_id().empty()) {
+ total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
+ this_._internal_instance_id());
+ }
+ }
+ // string display_name = 2;
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ if (!this_._internal_display_name().empty()) {
+ total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
+ this_._internal_display_name());
+ }
+ }
+ // .runanywhere.v1.ConnectPlatform platform = 3;
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (this_._internal_platform() != 0) {
+ total_size += 1 +
+ ::_pbi::WireFormatLite::EnumSize(this_._internal_platform());
+ }
+ }
+ // uint32 protocol_version = 4;
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
+ if (this_._internal_protocol_version() != 0) {
+ total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
+ this_._internal_protocol_version());
+ }
+ }
+ }
+ return this_.MaybeComputeUnknownFieldsSize(total_size,
+ &this_._impl_._cached_size_);
+}
+
+void ConnectDiscoveryMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
+ const ::google::protobuf::MessageLite& from_msg) {
+ auto* const _this = static_cast(&to_msg);
+ auto& from = static_cast(from_msg);
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ from.CheckHasBitConsistency();
+ }
+ // @@protoc_insertion_point(class_specific_merge_from_start:runanywhere.v1.ConnectDiscoveryMetadata)
+ ABSL_DCHECK_NE(&from, _this);
+ ::uint32_t cached_has_bits = 0;
+ (void)cached_has_bits;
+
+ cached_has_bits = from._impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (!from._internal_instance_id().empty()) {
+ _this->_internal_set_instance_id(from._internal_instance_id());
+ } else {
+ if (_this->_impl_.instance_id_.IsDefault()) {
+ _this->_internal_set_instance_id("");
+ }
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ if (!from._internal_display_name().empty()) {
+ _this->_internal_set_display_name(from._internal_display_name());
+ } else {
+ if (_this->_impl_.display_name_.IsDefault()) {
+ _this->_internal_set_display_name("");
+ }
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (from._internal_platform() != 0) {
+ _this->_impl_.platform_ = from._impl_.platform_;
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
+ if (from._internal_protocol_version() != 0) {
+ _this->_impl_.protocol_version_ = from._impl_.protocol_version_;
+ }
+ }
+ }
+ _this->_impl_._has_bits_[0] |= cached_has_bits;
+ _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
+ from._internal_metadata_);
+}
+
+void ConnectDiscoveryMetadata::CopyFrom(const ConnectDiscoveryMetadata& from) {
+ // @@protoc_insertion_point(class_specific_copy_from_start:runanywhere.v1.ConnectDiscoveryMetadata)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+
+void ConnectDiscoveryMetadata::InternalSwap(ConnectDiscoveryMetadata* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
+ using ::std::swap;
+ auto* arena = GetArena();
+ ABSL_DCHECK_EQ(arena, other->GetArena());
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.instance_id_, &other->_impl_.instance_id_, arena);
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.display_name_, &other->_impl_.display_name_, arena);
+ ::google::protobuf::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_.protocol_version_)
+ + sizeof(ConnectDiscoveryMetadata::_impl_.protocol_version_)
+ - PROTOBUF_FIELD_OFFSET(ConnectDiscoveryMetadata, _impl_.platform_)>(
+ reinterpret_cast(&_impl_.platform_),
+ reinterpret_cast(&other->_impl_.platform_));
+}
+
+::google::protobuf::Metadata ConnectDiscoveryMetadata::GetMetadata() const {
+ return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
+}
+// ===================================================================
+
+ConnectModelDescriptor::ConnectModelDescriptor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::Message(arena, ConnectModelDescriptor_get_class_data()) {
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::Message(arena) {
+#endif // PROTOBUF_CUSTOM_VTABLE
+ SharedCtor(arena);
+ // @@protoc_insertion_point(arena_constructor:runanywhere.v1.ConnectModelDescriptor)
+}
+PROTOBUF_NDEBUG_INLINE ConnectModelDescriptor::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
+ [[maybe_unused]] const ::runanywhere::v1::ConnectModelDescriptor& from_msg)
+ : _has_bits_{from._has_bits_},
+ _cached_size_{0},
+ model_id_(arena, from.model_id_),
+ display_name_(arena, from.display_name_),
+ framework_(arena, from.framework_) {}
+
+ConnectModelDescriptor::ConnectModelDescriptor(
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
+ const ConnectModelDescriptor& from)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::Message(arena, ConnectModelDescriptor_get_class_data()) {
+
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::Message(arena) {
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ConnectModelDescriptor* const _this = this;
+ (void)_this;
+ _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
+ from._internal_metadata_);
+ new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
+ ::memcpy(reinterpret_cast(&_impl_) +
+ offsetof(Impl_, context_window_),
+ reinterpret_cast(&from._impl_) +
+ offsetof(Impl_, context_window_),
+ offsetof(Impl_, supports_streaming_) -
+ offsetof(Impl_, context_window_) +
+ sizeof(Impl_::supports_streaming_));
+
+ // @@protoc_insertion_point(copy_constructor:runanywhere.v1.ConnectModelDescriptor)
+}
+PROTOBUF_NDEBUG_INLINE ConnectModelDescriptor::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+ : _cached_size_{0},
+ model_id_(arena),
+ display_name_(arena),
+ framework_(arena) {}
+
+inline void ConnectModelDescriptor::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
+ new (&_impl_) Impl_(internal_visibility(), arena);
+ ::memset(reinterpret_cast(&_impl_) +
+ offsetof(Impl_, context_window_),
+ 0,
+ offsetof(Impl_, supports_streaming_) -
+ offsetof(Impl_, context_window_) +
+ sizeof(Impl_::supports_streaming_));
+}
+ConnectModelDescriptor::~ConnectModelDescriptor() {
+ // @@protoc_insertion_point(destructor:runanywhere.v1.ConnectModelDescriptor)
+ SharedDtor(*this);
+}
+inline void ConnectModelDescriptor::SharedDtor(MessageLite& self) {
+ ConnectModelDescriptor& this_ = static_cast(self);
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ this_.CheckHasBitConsistency();
+ }
+ this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
+ ABSL_DCHECK(this_.GetArena() == nullptr);
+ this_._impl_.model_id_.Destroy();
+ this_._impl_.display_name_.Destroy();
+ this_._impl_.framework_.Destroy();
+ this_._impl_.~Impl_();
+}
+
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
+ ::google::protobuf::internal::ClassDataFull ConnectModelDescriptor_class_data_ =
+ ConnectModelDescriptor::InternalGenerateClassData_(ConnectModelDescriptor_globals_._default);
+
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectModelDescriptor::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectModelDescriptor_class_data_);
+ ::google::protobuf::internal::PrefetchToLocalCache(ConnectModelDescriptor_class_data_.tc_table);
+ return ConnectModelDescriptor_class_data_.base();
+}
+#else
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectModelDescriptor::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectModelDescriptor_globals_);
+ ::google::protobuf::internal::PrefetchToLocalCache(
+ ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&ConnectModelDescriptor_globals_));
+ return ConnectModelDescriptor_globals_.GetClassData();
+}
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT
+PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ConnectModelDescriptor::ParseTableT_
+ ConnectModelDescriptor::_table_ =
+ ConnectModelDescriptor::InternalGenerateParseTable_(ConnectModelDescriptor_class_data_.base());
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_NOINLINE void ConnectModelDescriptor::Clear() {
+// @@protoc_insertion_point(message_clear_start:runanywhere.v1.ConnectModelDescriptor)
+ ::google::protobuf::internal::TSanWrite(&_impl_);
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ _impl_.model_id_.ClearNonDefaultToEmpty();
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ _impl_.display_name_.ClearNonDefaultToEmpty();
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ _impl_.framework_.ClearNonDefaultToEmpty();
+ }
+ }
+ if (BatchCheckHasBit(cached_has_bits, 0x00000018U)) {
+ ::memset(&_impl_.context_window_, 0, static_cast<::size_t>(
+ reinterpret_cast(&_impl_.supports_streaming_) -
+ reinterpret_cast(&_impl_.context_window_)) + sizeof(_impl_.supports_streaming_));
+ }
+ _impl_._has_bits_.Clear();
+ _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
+}
+
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+::uint8_t* PROTOBUF_NONNULL ConnectModelDescriptor::_InternalSerialize(
+ const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
+ const ConnectModelDescriptor& this_ = static_cast(base);
+#else // PROTOBUF_CUSTOM_VTABLE
+::uint8_t* PROTOBUF_NONNULL ConnectModelDescriptor::_InternalSerialize(
+ ::uint8_t* PROTOBUF_NONNULL target,
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
+ const ConnectModelDescriptor& this_ = *this;
+#endif // PROTOBUF_CUSTOM_VTABLE
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ this_.CheckHasBitConsistency();
+ }
+ // @@protoc_insertion_point(serialize_to_array_start:runanywhere.v1.ConnectModelDescriptor)
+ ::uint32_t cached_has_bits = 0;
+ (void)cached_has_bits;
+
+ cached_has_bits = this_._impl_._has_bits_[0];
+ // string model_id = 1;
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (!this_._internal_model_id().empty()) {
+ const ::std::string& _s = this_._internal_model_id();
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "runanywhere.v1.ConnectModelDescriptor.model_id");
+ target = stream->WriteStringMaybeAliased(1, _s, target);
+ }
+ }
+
+ // string display_name = 2;
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ if (!this_._internal_display_name().empty()) {
+ const ::std::string& _s = this_._internal_display_name();
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "runanywhere.v1.ConnectModelDescriptor.display_name");
+ target = stream->WriteStringMaybeAliased(2, _s, target);
+ }
+ }
+
+ // string framework = 3;
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (!this_._internal_framework().empty()) {
+ const ::std::string& _s = this_._internal_framework();
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "runanywhere.v1.ConnectModelDescriptor.framework");
+ target = stream->WriteStringMaybeAliased(3, _s, target);
+ }
+ }
+
+ // uint32 context_window = 4;
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
+ if (this_._internal_context_window() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
+ 4, this_._internal_context_window(), target);
+ }
+ }
+
+ // bool supports_streaming = 5;
+ if (CheckHasBit(cached_has_bits, 0x00000010U)) {
+ if (this_._internal_supports_streaming() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteBoolToArray(
+ 5, this_._internal_supports_streaming(), target);
+ }
+ }
+
+ if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
+ target =
+ ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
+ this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:runanywhere.v1.ConnectModelDescriptor)
+ return target;
+}
+
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+::size_t ConnectModelDescriptor::ByteSizeLong(const MessageLite& base) {
+ const ConnectModelDescriptor& this_ = static_cast(base);
+#else // PROTOBUF_CUSTOM_VTABLE
+::size_t ConnectModelDescriptor::ByteSizeLong() const {
+ const ConnectModelDescriptor& this_ = *this;
+#endif // PROTOBUF_CUSTOM_VTABLE
+ // @@protoc_insertion_point(message_byte_size_start:runanywhere.v1.ConnectModelDescriptor)
+ ::size_t total_size = 0;
+
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void)cached_has_bits;
+
+ ::_pbi::Prefetch5LinesFrom7Lines(&this_);
+ cached_has_bits = this_._impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
+ // string model_id = 1;
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (!this_._internal_model_id().empty()) {
+ total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
+ this_._internal_model_id());
+ }
+ }
+ // string display_name = 2;
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ if (!this_._internal_display_name().empty()) {
+ total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
+ this_._internal_display_name());
+ }
+ }
+ // string framework = 3;
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (!this_._internal_framework().empty()) {
+ total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
+ this_._internal_framework());
+ }
+ }
+ // uint32 context_window = 4;
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
+ if (this_._internal_context_window() != 0) {
+ total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
+ this_._internal_context_window());
+ }
+ }
+ // bool supports_streaming = 5;
+ if (CheckHasBit(cached_has_bits, 0x00000010U)) {
+ if (this_._internal_supports_streaming() != 0) {
+ total_size += 2;
+ }
+ }
+ }
+ return this_.MaybeComputeUnknownFieldsSize(total_size,
+ &this_._impl_._cached_size_);
+}
+
+void ConnectModelDescriptor::MergeImpl(::google::protobuf::MessageLite& to_msg,
+ const ::google::protobuf::MessageLite& from_msg) {
+ auto* const _this = static_cast(&to_msg);
+ auto& from = static_cast(from_msg);
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ from.CheckHasBitConsistency();
+ }
+ // @@protoc_insertion_point(class_specific_merge_from_start:runanywhere.v1.ConnectModelDescriptor)
+ ABSL_DCHECK_NE(&from, _this);
+ ::uint32_t cached_has_bits = 0;
+ (void)cached_has_bits;
+
+ cached_has_bits = from._impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (!from._internal_model_id().empty()) {
+ _this->_internal_set_model_id(from._internal_model_id());
+ } else {
+ if (_this->_impl_.model_id_.IsDefault()) {
+ _this->_internal_set_model_id("");
+ }
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ if (!from._internal_display_name().empty()) {
+ _this->_internal_set_display_name(from._internal_display_name());
+ } else {
+ if (_this->_impl_.display_name_.IsDefault()) {
+ _this->_internal_set_display_name("");
+ }
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (!from._internal_framework().empty()) {
+ _this->_internal_set_framework(from._internal_framework());
+ } else {
+ if (_this->_impl_.framework_.IsDefault()) {
+ _this->_internal_set_framework("");
+ }
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
+ if (from._internal_context_window() != 0) {
+ _this->_impl_.context_window_ = from._impl_.context_window_;
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000010U)) {
+ if (from._internal_supports_streaming() != 0) {
+ _this->_impl_.supports_streaming_ = from._impl_.supports_streaming_;
+ }
+ }
+ }
+ _this->_impl_._has_bits_[0] |= cached_has_bits;
+ _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
+ from._internal_metadata_);
+}
+
+void ConnectModelDescriptor::CopyFrom(const ConnectModelDescriptor& from) {
+ // @@protoc_insertion_point(class_specific_copy_from_start:runanywhere.v1.ConnectModelDescriptor)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+
+void ConnectModelDescriptor::InternalSwap(ConnectModelDescriptor* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
+ using ::std::swap;
+ auto* arena = GetArena();
+ ABSL_DCHECK_EQ(arena, other->GetArena());
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_id_, &other->_impl_.model_id_, arena);
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.display_name_, &other->_impl_.display_name_, arena);
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.framework_, &other->_impl_.framework_, arena);
+ ::google::protobuf::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.supports_streaming_)
+ + sizeof(ConnectModelDescriptor::_impl_.supports_streaming_)
+ - PROTOBUF_FIELD_OFFSET(ConnectModelDescriptor, _impl_.context_window_)>(
+ reinterpret_cast(&_impl_.context_window_),
+ reinterpret_cast(&other->_impl_.context_window_));
+}
+
+::google::protobuf::Metadata ConnectModelDescriptor::GetMetadata() const {
+ return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
+}
+// ===================================================================
+
+ConnectHostStartRequest::ConnectHostStartRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::Message(arena, ConnectHostStartRequest_get_class_data()) {
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::Message(arena) {
+#endif // PROTOBUF_CUSTOM_VTABLE
+ SharedCtor(arena);
+ // @@protoc_insertion_point(arena_constructor:runanywhere.v1.ConnectHostStartRequest)
+}
+PROTOBUF_NDEBUG_INLINE ConnectHostStartRequest::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
+ [[maybe_unused]] const ::runanywhere::v1::ConnectHostStartRequest& from_msg)
+ : _has_bits_{from._has_bits_},
+ _cached_size_{0},
+ display_name_(arena, from.display_name_) {}
+
+ConnectHostStartRequest::ConnectHostStartRequest(
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
+ const ConnectHostStartRequest& from)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::Message(arena, ConnectHostStartRequest_get_class_data()) {
+
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::Message(arena) {
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ConnectHostStartRequest* const _this = this;
+ (void)_this;
+ _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
+ from._internal_metadata_);
+ new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
+ ::uint32_t cached_has_bits = _impl_._has_bits_[0];
+ _impl_.model_ = (CheckHasBit(cached_has_bits, 0x00000002U))
+ ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_)
+ : nullptr;
+ ::memcpy(reinterpret_cast(&_impl_) +
+ offsetof(Impl_, platform_),
+ reinterpret_cast(&from._impl_) +
+ offsetof(Impl_, platform_),
+ offsetof(Impl_, protocol_version_) -
+ offsetof(Impl_, platform_) +
+ sizeof(Impl_::protocol_version_));
+
+ // @@protoc_insertion_point(copy_constructor:runanywhere.v1.ConnectHostStartRequest)
+}
+PROTOBUF_NDEBUG_INLINE ConnectHostStartRequest::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+ : _cached_size_{0},
+ display_name_(arena) {}
+
+inline void ConnectHostStartRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
+ new (&_impl_) Impl_(internal_visibility(), arena);
+ ::memset(reinterpret_cast(&_impl_) +
+ offsetof(Impl_, model_),
+ 0,
+ offsetof(Impl_, protocol_version_) -
+ offsetof(Impl_, model_) +
+ sizeof(Impl_::protocol_version_));
+}
+ConnectHostStartRequest::~ConnectHostStartRequest() {
+ // @@protoc_insertion_point(destructor:runanywhere.v1.ConnectHostStartRequest)
+ SharedDtor(*this);
+}
+inline void ConnectHostStartRequest::SharedDtor(MessageLite& self) {
+ ConnectHostStartRequest& this_ = static_cast(self);
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ this_.CheckHasBitConsistency();
+ }
+ this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
+ ABSL_DCHECK(this_.GetArena() == nullptr);
+ this_._impl_.display_name_.Destroy();
+ delete this_._impl_.model_;
+ this_._impl_.~Impl_();
+}
+
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
+ ::google::protobuf::internal::ClassDataFull ConnectHostStartRequest_class_data_ =
+ ConnectHostStartRequest::InternalGenerateClassData_(ConnectHostStartRequest_globals_._default);
+
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectHostStartRequest::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectHostStartRequest_class_data_);
+ ::google::protobuf::internal::PrefetchToLocalCache(ConnectHostStartRequest_class_data_.tc_table);
+ return ConnectHostStartRequest_class_data_.base();
+}
+#else
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectHostStartRequest::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectHostStartRequest_globals_);
+ ::google::protobuf::internal::PrefetchToLocalCache(
+ ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&ConnectHostStartRequest_globals_));
+ return ConnectHostStartRequest_globals_.GetClassData();
+}
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT
+PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ConnectHostStartRequest::ParseTableT_
+ ConnectHostStartRequest::_table_ =
+ ConnectHostStartRequest::InternalGenerateParseTable_(ConnectHostStartRequest_class_data_.base());
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_NOINLINE void ConnectHostStartRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:runanywhere.v1.ConnectHostStartRequest)
+ ::google::protobuf::internal::TSanWrite(&_impl_);
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ _impl_.display_name_.ClearNonDefaultToEmpty();
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ ABSL_DCHECK(_impl_.model_ != nullptr);
+ _impl_.model_->Clear();
+ }
+ }
+ if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) {
+ ::memset(&_impl_.platform_, 0, static_cast<::size_t>(
+ reinterpret_cast(&_impl_.protocol_version_) -
+ reinterpret_cast(&_impl_.platform_)) + sizeof(_impl_.protocol_version_));
+ }
+ _impl_._has_bits_.Clear();
+ _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
+}
+
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+::uint8_t* PROTOBUF_NONNULL ConnectHostStartRequest::_InternalSerialize(
+ const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
+ const ConnectHostStartRequest& this_ = static_cast(base);
+#else // PROTOBUF_CUSTOM_VTABLE
+::uint8_t* PROTOBUF_NONNULL ConnectHostStartRequest::_InternalSerialize(
+ ::uint8_t* PROTOBUF_NONNULL target,
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
+ const ConnectHostStartRequest& this_ = *this;
+#endif // PROTOBUF_CUSTOM_VTABLE
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ this_.CheckHasBitConsistency();
+ }
+ // @@protoc_insertion_point(serialize_to_array_start:runanywhere.v1.ConnectHostStartRequest)
+ ::uint32_t cached_has_bits = 0;
+ (void)cached_has_bits;
+
+ cached_has_bits = this_._impl_._has_bits_[0];
+ // string display_name = 1;
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (!this_._internal_display_name().empty()) {
+ const ::std::string& _s = this_._internal_display_name();
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "runanywhere.v1.ConnectHostStartRequest.display_name");
+ target = stream->WriteStringMaybeAliased(1, _s, target);
+ }
+ }
+
+ // .runanywhere.v1.ConnectPlatform platform = 2;
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (this_._internal_platform() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteEnumToArray(
+ 2, this_._internal_platform(), target);
+ }
+ }
+
+ // uint32 protocol_version = 3;
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
+ if (this_._internal_protocol_version() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
+ 3, this_._internal_protocol_version(), target);
+ }
+ }
+
+ // .runanywhere.v1.ConnectModelDescriptor model = 4;
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
+ 4, *this_._impl_.model_, this_._impl_.model_->GetCachedSize(), target,
+ stream);
+ }
+
+ if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
+ target =
+ ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
+ this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:runanywhere.v1.ConnectHostStartRequest)
+ return target;
+}
+
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+::size_t ConnectHostStartRequest::ByteSizeLong(const MessageLite& base) {
+ const ConnectHostStartRequest& this_ = static_cast(base);
+#else // PROTOBUF_CUSTOM_VTABLE
+::size_t ConnectHostStartRequest::ByteSizeLong() const {
+ const ConnectHostStartRequest& this_ = *this;
+#endif // PROTOBUF_CUSTOM_VTABLE
+ // @@protoc_insertion_point(message_byte_size_start:runanywhere.v1.ConnectHostStartRequest)
+ ::size_t total_size = 0;
+
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void)cached_has_bits;
+
+ ::_pbi::Prefetch5LinesFrom7Lines(&this_);
+ cached_has_bits = this_._impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
+ // string display_name = 1;
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (!this_._internal_display_name().empty()) {
+ total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
+ this_._internal_display_name());
+ }
+ }
+ // .runanywhere.v1.ConnectModelDescriptor model = 4;
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_);
+ }
+ // .runanywhere.v1.ConnectPlatform platform = 2;
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (this_._internal_platform() != 0) {
+ total_size += 1 +
+ ::_pbi::WireFormatLite::EnumSize(this_._internal_platform());
+ }
+ }
+ // uint32 protocol_version = 3;
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
+ if (this_._internal_protocol_version() != 0) {
+ total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
+ this_._internal_protocol_version());
+ }
+ }
+ }
+ return this_.MaybeComputeUnknownFieldsSize(total_size,
+ &this_._impl_._cached_size_);
+}
+
+void ConnectHostStartRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
+ const ::google::protobuf::MessageLite& from_msg) {
+ auto* const _this = static_cast(&to_msg);
+ auto& from = static_cast(from_msg);
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ from.CheckHasBitConsistency();
+ }
+ ::google::protobuf::Arena* arena = _this->GetArena();
+ // @@protoc_insertion_point(class_specific_merge_from_start:runanywhere.v1.ConnectHostStartRequest)
+ ABSL_DCHECK_NE(&from, _this);
+ ::uint32_t cached_has_bits = 0;
+ (void)cached_has_bits;
+
+ cached_has_bits = from._impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ if (!from._internal_display_name().empty()) {
+ _this->_internal_set_display_name(from._internal_display_name());
+ } else {
+ if (_this->_impl_.display_name_.IsDefault()) {
+ _this->_internal_set_display_name("");
+ }
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ ABSL_DCHECK(from._impl_.model_ != nullptr);
+ if (_this->_impl_.model_ == nullptr) {
+ _this->_impl_.model_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_);
+ } else {
+ _this->_impl_.model_->MergeFrom(*from._impl_.model_);
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ if (from._internal_platform() != 0) {
+ _this->_impl_.platform_ = from._impl_.platform_;
+ }
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
+ if (from._internal_protocol_version() != 0) {
+ _this->_impl_.protocol_version_ = from._impl_.protocol_version_;
+ }
+ }
+ }
+ _this->_impl_._has_bits_[0] |= cached_has_bits;
+ _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
+ from._internal_metadata_);
+}
+
+void ConnectHostStartRequest::CopyFrom(const ConnectHostStartRequest& from) {
+ // @@protoc_insertion_point(class_specific_copy_from_start:runanywhere.v1.ConnectHostStartRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+
+void ConnectHostStartRequest::InternalSwap(ConnectHostStartRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
+ using ::std::swap;
+ auto* arena = GetArena();
+ ABSL_DCHECK_EQ(arena, other->GetArena());
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.display_name_, &other->_impl_.display_name_, arena);
+ ::google::protobuf::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_.protocol_version_)
+ + sizeof(ConnectHostStartRequest::_impl_.protocol_version_)
+ - PROTOBUF_FIELD_OFFSET(ConnectHostStartRequest, _impl_.model_)>(
+ reinterpret_cast(&_impl_.model_),
+ reinterpret_cast(&other->_impl_.model_));
+}
+
+::google::protobuf::Metadata ConnectHostStartRequest::GetMetadata() const {
+ return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
+}
+// ===================================================================
+
+ConnectHostStopRequest::ConnectHostStopRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::internal::ZeroFieldsBase(arena, ConnectHostStopRequest_get_class_data()) {
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::internal::ZeroFieldsBase(arena) {
+#endif // PROTOBUF_CUSTOM_VTABLE
+ // @@protoc_insertion_point(arena_constructor:runanywhere.v1.ConnectHostStopRequest)
+}
+ConnectHostStopRequest::ConnectHostStopRequest(
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
+ const ConnectHostStopRequest& from)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::internal::ZeroFieldsBase(arena, ConnectHostStopRequest_get_class_data()) {
+
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::internal::ZeroFieldsBase(arena) {
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ConnectHostStopRequest* const _this = this;
+ (void)_this;
+ _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
+ from._internal_metadata_);
+
+ // @@protoc_insertion_point(copy_constructor:runanywhere.v1.ConnectHostStopRequest)
+}
+
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
+ ::google::protobuf::internal::ClassDataFull ConnectHostStopRequest_class_data_ =
+ ConnectHostStopRequest::InternalGenerateClassData_(ConnectHostStopRequest_globals_._default);
+
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectHostStopRequest::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectHostStopRequest_class_data_);
+ ::google::protobuf::internal::PrefetchToLocalCache(ConnectHostStopRequest_class_data_.tc_table);
+ return ConnectHostStopRequest_class_data_.base();
+}
+#else
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectHostStopRequest::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectHostStopRequest_globals_);
+ ::google::protobuf::internal::PrefetchToLocalCache(
+ ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&ConnectHostStopRequest_globals_));
+ return ConnectHostStopRequest_globals_.GetClassData();
+}
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT
+PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ConnectHostStopRequest::ParseTableT_
+ ConnectHostStopRequest::_table_ =
+ ConnectHostStopRequest::InternalGenerateParseTable_(ConnectHostStopRequest_class_data_.base());
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+
+
+
+
+
+
+
+::google::protobuf::Metadata ConnectHostStopRequest::GetMetadata() const {
+ return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full());
+}
+// ===================================================================
+
+ConnectHostState::ConnectHostState(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::Message(arena, ConnectHostState_get_class_data()) {
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::Message(arena) {
+#endif // PROTOBUF_CUSTOM_VTABLE
+ SharedCtor(arena);
+ // @@protoc_insertion_point(arena_constructor:runanywhere.v1.ConnectHostState)
+}
+PROTOBUF_NDEBUG_INLINE ConnectHostState::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
+ [[maybe_unused]] const ::runanywhere::v1::ConnectHostState& from_msg)
+ : _has_bits_{from._has_bits_},
+ _cached_size_{0},
+ error_message_(arena, from.error_message_) {}
+
+ConnectHostState::ConnectHostState(
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
+ const ConnectHostState& from)
+#if defined(PROTOBUF_CUSTOM_VTABLE)
+ : ::google::protobuf::Message(arena, ConnectHostState_get_class_data()) {
+
+#else // PROTOBUF_CUSTOM_VTABLE
+ : ::google::protobuf::Message(arena) {
+#endif // PROTOBUF_CUSTOM_VTABLE
+ ConnectHostState* const _this = this;
+ (void)_this;
+ _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
+ from._internal_metadata_);
+ new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
+ ::uint32_t cached_has_bits = _impl_._has_bits_[0];
+ _impl_.discovery_metadata_ = (CheckHasBit(cached_has_bits, 0x00000002U))
+ ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.discovery_metadata_)
+ : nullptr;
+ _impl_.model_ = (CheckHasBit(cached_has_bits, 0x00000004U))
+ ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_)
+ : nullptr;
+ ::memcpy(reinterpret_cast(&_impl_) +
+ offsetof(Impl_, is_hosting_),
+ reinterpret_cast(&from._impl_) +
+ offsetof(Impl_, is_hosting_),
+ offsetof(Impl_, active_client_count_) -
+ offsetof(Impl_, is_hosting_) +
+ sizeof(Impl_::active_client_count_));
+
+ // @@protoc_insertion_point(copy_constructor:runanywhere.v1.ConnectHostState)
+}
+PROTOBUF_NDEBUG_INLINE ConnectHostState::Impl_::Impl_(
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
+ : _cached_size_{0},
+ error_message_(arena) {}
+
+inline void ConnectHostState::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
+ new (&_impl_) Impl_(internal_visibility(), arena);
+ ::memset(reinterpret_cast(&_impl_) +
+ offsetof(Impl_, discovery_metadata_),
+ 0,
+ offsetof(Impl_, active_client_count_) -
+ offsetof(Impl_, discovery_metadata_) +
+ sizeof(Impl_::active_client_count_));
+}
+ConnectHostState::~ConnectHostState() {
+ // @@protoc_insertion_point(destructor:runanywhere.v1.ConnectHostState)
+ SharedDtor(*this);
+}
+inline void ConnectHostState::SharedDtor(MessageLite& self) {
+ ConnectHostState& this_ = static_cast(self);
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
+ this_.CheckHasBitConsistency();
+ }
+ this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
+ ABSL_DCHECK(this_.GetArena() == nullptr);
+ this_._impl_.error_message_.Destroy();
+ delete this_._impl_.discovery_metadata_;
+ delete this_._impl_.model_;
+ this_._impl_.~Impl_();
+}
+
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
+ ::google::protobuf::internal::ClassDataFull ConnectHostState_class_data_ =
+ ConnectHostState::InternalGenerateClassData_(ConnectHostState_globals_._default);
+
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectHostState::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectHostState_class_data_);
+ ::google::protobuf::internal::PrefetchToLocalCache(ConnectHostState_class_data_.tc_table);
+ return ConnectHostState_class_data_.base();
+}
+#else
+PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
+ConnectHostState::GetClassData() const {
+ ::google::protobuf::internal::PrefetchToLocalCache(&ConnectHostState_globals_);
+ ::google::protobuf::internal::PrefetchToLocalCache(
+ ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&ConnectHostState_globals_));
+ return ConnectHostState_globals_.GetClassData();
+}
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+#ifndef PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_CONSTINIT
+PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ConnectHostState::ParseTableT_
+ ConnectHostState::_table_ =
+ ConnectHostState::InternalGenerateParseTable_(ConnectHostState_class_data_.base());
+#endif // !PROTOBUF_MESSAGE_GLOBALS
+PROTOBUF_NOINLINE void ConnectHostState::Clear() {
+// @@protoc_insertion_point(message_clear_start:runanywhere.v1.ConnectHostState)
+ ::google::protobuf::internal::TSanWrite(&_impl_);
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _impl_._has_bits_[0];
+ if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
+ _impl_.error_message_.ClearNonDefaultToEmpty();
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
+ ABSL_DCHECK(_impl_.discovery_metadata_ != nullptr);
+ _impl_.discovery_metadata_->Clear();
+ }
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
+ ABSL_DCHECK(_impl_.model_ != nullptr);
+ _impl_.model_->Clear();
+ }
+ }
+ if (BatchCheckHasBit(cached_has_bits, 0x00000018U)) {
+ ::memset(&_impl_.is_hosting_, 0, static_cast<::size_t>(
+ reinterpret_cast(&_impl_.active_client_count_) -
+ reinterpret_cast