Action Engine
Loading...
Searching...
No Matches
converters.h
1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#ifndef ACTIONENGINE_PROTO_CONVERTERS_H_
16#define ACTIONENGINE_PROTO_CONVERTERS_H_
17
18#include <absl/base/nullability.h>
19#include <absl/status/status.h>
20#include <absl/status/statusor.h>
21
23#include "actionengine/proto/types.pb.h"
24
25namespace act::proto {
26
27absl::Status EgltAssignInto(act::ChunkMetadata from,
28 act::proto::ChunkMetadata* absl_nonnull to);
29absl::Status EgltAssignInto(act::proto::ChunkMetadata from,
30 act::ChunkMetadata* absl_nonnull to);
31
32absl::Status EgltAssignInto(act::Chunk from,
33 act::proto::Chunk* absl_nonnull to);
34absl::Status EgltAssignInto(act::proto::Chunk from,
35 act::Chunk* absl_nonnull to);
36
37absl::Status EgltAssignInto(act::NodeRef from,
38 act::proto::NodeRef* absl_nonnull to);
39absl::Status EgltAssignInto(act::proto::NodeRef from,
40 act::NodeRef* absl_nonnull to);
41
42absl::Status EgltAssignInto(act::NodeFragment from,
43 act::proto::NodeFragment* absl_nonnull to);
44absl::Status EgltAssignInto(act::proto::NodeFragment from,
45 act::NodeFragment* absl_nonnull to);
46
47absl::Status EgltAssignInto(act::Port from, act::proto::Port* absl_nonnull to);
48absl::Status EgltAssignInto(act::proto::Port from, act::Port* absl_nonnull to);
49
50absl::Status EgltAssignInto(act::ActionMessage from,
51 act::proto::ActionMessage* absl_nonnull to);
52absl::Status EgltAssignInto(act::proto::ActionMessage from,
53 act::ActionMessage* absl_nonnull to);
54
55absl::Status EgltAssignInto(act::WireMessage from,
56 act::proto::WireMessage* absl_nonnull to);
57absl::Status EgltAssignInto(act::proto::WireMessage from,
58 act::WireMessage* absl_nonnull to);
59
60} // namespace act::proto
61
62#endif // ACTIONENGINE_PROTO_CONVERTERS_H_
ActionEngine data structures used to implement actions and nodes (data streams).