Apache Mesos
messages.hpp
Go to the documentation of this file.
1 // Licensed to the Apache Software Foundation (ASF) under one
2 // or more contributor license agreements. See the NOTICE file
3 // distributed with this work for additional information
4 // regarding copyright ownership. The ASF licenses this file
5 // to you under the Apache License, Version 2.0 (the
6 // "License"); you may not use this file except in compliance
7 // with the License. You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 
17 #ifndef __MESSAGES_HPP__
18 #define __MESSAGES_HPP__
19 
20 #include <google/protobuf/message.h>
21 
22 #include <google/protobuf/io/zero_copy_stream_impl.h> // For ArrayInputStream.
23 
24 #include <iosfwd>
25 #include <string>
26 
27 #include <stout/error.hpp>
28 #include <stout/try.hpp>
29 
30 #include "messages/messages.pb.h"
31 
32 // Definitions for operators on protobuf classes that don't have these
33 // operators generated by the protobuf compiler.
34 
35 namespace mesos {
36 namespace internal {
37 
38 bool operator==(
39  const ResourceVersionUUID& left,
40  const ResourceVersionUUID& right);
41 
42 
43 bool operator!=(
44  const ResourceVersionUUID& left,
45  const ResourceVersionUUID& right);
46 
47 
48 bool operator==(
49  const UpdateOperationStatusMessage& left,
50  const UpdateOperationStatusMessage& right);
51 
52 
53 bool operator!=(
54  const UpdateOperationStatusMessage& left,
55  const UpdateOperationStatusMessage& right);
56 
57 
58 std::ostream& operator<<(std::ostream& stream, const StatusUpdate& update);
59 
60 
61 std::ostream& operator<<(
62  std::ostream& stream,
63  const UpdateOperationStatusMessage& update);
64 
65 
66 std::ostream& operator<<(
67  std::ostream& stream,
69 
70 
71 std::ostream& operator<<(
72  std::ostream& stream,
74 
75 } // namespace internal {
76 } // namespace mesos {
77 
78 #endif // __MESSAGES_HPP__
Try< bool > update(const std::string &link, const Handle &parent, uint16_t protocol, const action::Mirror &mirror)
std::ostream & operator<<(std::ostream &stream, const ImageGcConfig &imageGcConfig)
Definition: flags.hpp:92
Definition: agent.hpp:25
bool operator==(const ResourceVersionUUID &left, const ResourceVersionUUID &right)
Definition: attributes.hpp:24
Type
Definition: capabilities.hpp:82
Try< uint32_t > type(const std::string &path)
bool operator!=(const ResourceVersionUUID &left, const ResourceVersionUUID &right)